Wednesday, January 27, 2016

readings in computer science found in a time capsule

recently, I was re-reading the classic old article on Smashing the stack for fun and profit in phrack, and wondering where the positive alternative lesson might be. Quite a while ago, I did a port of the SR(Synchronized Resources) programming language out of Arizona, to the newly minted RS6000 system out of IBM. The language is an elegant system for teaching principles of concurrency in lots of nice ways - at the time we didnt have a single agreed way to do it (e.g. wrong like in C11, or possibly ok in Java), so there was a need for a pedagogic approach and SR together with a nice book was very cool. However, we'd just bought a bunch of new IBM AIX systems with the new POWER PC RISC processor, which had a whole new instruction set - lets leave aside the amising idea of a "reduced" or "regular" instruction set that includes "floating point multiple and add" in its portfolio. However, in terms of registers, its a pretty nice system.

So why is porting SR to the Power CPU reminiscent of stack smashing, I hear you cry?
Because, you need to implement the threads system it uses to emulate real multi-core, I hear myself answer. And what does it take to do that, you continue? well you need to save the current context (like all the registers and thread state (i.e. PC, stack) move to a different thread/stack by calling the scheduler with a pointer to that context. To do this involves becoming familiar with the stack format used for most programming languages.as well as all the important (i.e. all) registers etc. So basically, slightly more than the Phrack folks....basically, writing stuff that moves to another exection context, but can get back again correctly, is harder:-)
You can see some nice examples of the context switch stuff for a variety of processors in the (not supported) SR archive

Meanwhile, I was also reading about the integrity check used for DNSSEC caches. so that will be reported elsewhere, but the interesting thing is that its a weak version of the IP header (and TCP) checksum algorithm. Again this is something that excercises computer science #101 - you need to add up all the 16 bit fields in the buffer (imagine you have a n byte buffer, then if n is odd, add a zero value byte and sum it as a vector of 16 bit values using "end round carry" (or ones-complement) artithmentic - basically, you have a 32 bit accumulator, and loop over the buffer. when you are done, you do one more thing - in the checksum case: check any bits above the 16 least sig are set, and fold them in (add again) and then do one more add in case that overflows too. In the integrity check case, just 0 any bits in the more significant 16 bits (i.e. && accumulator with 0x0ffff). For the ARM IP cksum case, see this
code with inline asm - the crucial bit's lines 78&79 after the bne loop.

amusing, back in the early days, i remember someone loop unrolling asm code for hte M68000 (that's not a 68020 or 68010, but 68000 - that was sold as a "Codata" computer in the uk, but was a Sun-1, i think, never sold by Sun) - the code went slower as the loop was now to big to fit in the miniscule instruction cache of said CPU...

hum...........what could possibly go oddly wrong with the allegedly simpler (by 1 instruction) integrity check algorithm? I leave that as an exercise for the coder

Thursday, January 07, 2016

counciling the UK research councils

The UK research councils are unique in the way proposals are reviewed in several ways (in my experience)

firstly, unlike almost any other research funding agency (unlike DARPA, NSF in USA, CNRS in france, DFG in germany, the Japanese, scandinavian, and just about any other national funding agency I have dine reviewing for, which is a lot), the officers are not seconded experts so the assignment of reviewers depends on the reviewers self description - notoriously inaccurate. Unlike a journal (where the editor is an expert) there's not really a _peer_ review assignment process

secondly, the reviews can be rebutted by the proposer, but since the reviewers don't see each others reviews, they can't be calibrated against each other (unlike a conference or journal)

thirdly, the panel are not the reviewers and are not allowed to re-review the proposal, even if they are experts and only in exceptional circumstances will they discount an obviously incompetent or inappropriate review.

As a recipient of significant funding from the research councils, I am not expressing this through some sour grapes emotion, but more on behalf of my bewildered junior colleagues, who frequently receive inexplicably odd reviews and panel decisions. This is not good for community trust in the system - it may be ok at the obvious top 5-10% of proposals, but it results effectively in random decisions quite shortly after the very top (all 6s) ranked research. This is not good for confidence.

I can't give examples as that would be a breach of confidentiality, but everyone I know can tell a tale.

Maybe the new system after the recent review will involve people who have an answer to why the EPSRC and other councils should have a unique, and uniquely odd system. I have never heard an evidence based response to the comments above, which I have made several times to officials from the research councils. of course, since they themselves are not seconded from the community, how would they know, in any case. However, they could try talking to colleagues in other countries a bit more and see what works (or not) to persuade us that this is not just some random "we do it this way because we always have done"...

Wednesday, December 02, 2015

Part II Principles of Communications, 2015, to Dec 2

Wrapped up Traffic Management, including
idea of signaling protocols, and
space/time scales of different techniques;
and review of the course contents.

Planning to do revision classes next term.
Supervision notes will be linked to course web page after end of term.

[systems structures lecture moved to background]

some notes/problems from supervisions added
now

Monday, November 23, 2015

Part II Principles of Communications, 2015, to Nov 27

This week is

  • Shared Media
  • Mesh Network Capacity
  • Coding and Multihop Radio (Cope)

Two useful network coding primer and coded storage articles...
and just what is a shim?

Friday, November 20, 2015

Part II Principles of Communications, 2015, to Nov 20

this week, covered scheduling, work conservation, max/min fairness, and PGPS approximations + queue jump!

Monday, November 09, 2015

Part II Principles of Communications, 2015, to Nov 13

Optimization (Nov 9) - background paper:-
from Princeton group

TCP in the wild - Optical Carrier Speed
table + Reminder about R-squared

Schedulers&Rounds....up to WFQ.

Wednesday, November 04, 2015

Part II Principles of Communications, 2015, to Nov 6

Flow Control, Congestion Control,
open and closed loop systems

Control Theory -
time domain model
transform to frequency domain
recipies for laplace transforms
stability & efficiency
proportional, integral and differential (and PID) controllers.

Online slides (PPT and PDF) are ok -
apologies for symbol/font problem in some of the printed pages!

Friday, October 30, 2015

Part II Principles of Communications, 2015, to Oct 30

Previously, Compact routing, Central routing (fibbing to link state),&path vector

This week covered
interdomain routing, including AS paths and deadlocks,
for which see interdomain revision notes/slides
+
multicast,
+
random routing

Just started on error and flow control.
[As usual, wikipedia is great on gaussian elimination ]

Pretty much as per schedule

Friday, October 23, 2015

Part II Principles of Communications, 2015, to Oct 23

This week has been about inter-domain routing, and BGP.
Covered background business relationships (peering, customer/provider etc), the protocol, the attributes/selection, SPP, and discussed scaling, convergence, and problems (like bad gadgets, wedgies) - as always, data is out of date, but Geoff Huston to the rescue...

Thursday, October 15, 2015

Part II Principles of Communications, 2015

This week (to Dec 16) I should have covered the graph material (random graphs + alpha&beta models of small world/clustered graphs), and
Compact and Centralised routing - viz
http://www.cl.cam.ac.uk/teaching/1516/PrincComm/slides/schedule-2015.html

On graphs and networks there's a new really nice book by Jon Kleinberg


There's some lack of precision about the terms "small world" but basically, (wikipedia is your friend) a scale-free network refers to the power law degree distribution, and consequential small diameter (and some clustering), which leads to the small world property. Not all small world networks are scale free, but scale free networks are small world...

Sunday, June 28, 2015

The Smell of Memory

scientists in cambridge have recently figured out how to code the smell of memory, not just a smell of one thing that evokes a particular memory, but the underlying phenomenon that is memory itself. It turns out that it is not so abstract, and that there are only really 7 key parameters (somewhat like taste, which is, of course, related to smell in any case). Working backwards from the examples of smells that evoke memories, using a statistical technique called PCA, scientists can now code the entire space that is memory - so not only evoking a particular memory, but replaying everything at once.

Of course, there are severe dangers of synaesthesia with this technique, so it will only be allowed in key, socially beneficial situations, such as court cases, or TV interviews with politicians.

And it must be noted that there will inevitably be people who have an innate fear of smell - loosely related to the smell of fear, but far more disabling in this context, except where you'd like the right to be forgotten - de-oderant amnesia.

Thursday, February 26, 2015

Re-use ill-considered (twitter and hypothermia)

I've been reading a lot about ethics recently for a forthcoming workshop in Oxford on the topic.
It seems that a lot of the book keeping elements of ethics have been defined (I guess, perhaps, in reaction to the lamentably long list of unethical things that are done by all and sundry in online media commercial appropriation of the essence of you, and dodgy medical research re-owning folk knowledge on drugs from rainforest eco-systems, or testing stuff on people who have no political or economic choices...

So there's a long list of stuff we (as researchers) have to go through.....

but it seems to me that quite near the top of the list ought to be something about re-use

In computing (and in general in engineering), re-use of stuff (re-cycling harware, and re-cycling good ideas, or software) is regarded as a good thing - rep-purposing too - the internet came out of dual-use (re-purposing a survivable defense network, as a cheap extnesive global communications utility for the public)...

but the real elephant in the room for me is re-use of stuff in a new context without ethical consideration.

Let me give two examples (from the title of this post)

1/ someone (NOT ill-advisedly) tweets that, unless the snow in an airport is cleared soon, he will blow it up. This is a daft joke which maybe to his friends is funny coz he's that sort of a guy.
That's not the problem. THe problem is that it got re-tweeted or forward to the police - whoever did that, did they stop to consider the original intent. Or was this thoughtless? or possibly even malicious? why did the police not regard this as potentially a "crank call"? were they not wasting police time

2/ research on hypothermia received a boost from the Nazi doctors trying stuff out on people in concentration camps. The research actually turned out to be useful. Should we deny ourselves the benefit, despite the awful provenance of the results?

Some of this can be reduced (in a classic reductionist manner) by looking at cost-benefit tradeoffs. What are the risks the tweet really is a bad guy? what are the chances that if we use the nazi medical results, someone will start a land war with russia, to aid in their drug discovery programme?
How much extra work do we have to do to make deciding the right way about the incentives, or the re-use of results?

Why do I care?

Well, its clear that many open, public-minded people constrain themselves from doing potentially valuable research by setting barriers before working out the cost-benefit/incentive balance, whilst at the same time, a lot of industry just goes ahead and does it, and fixes things up after the event.
Is there a middle ground?

I'm suggesting that considering re-use and the safeguards one should put in place for that, might give a way to evaluate whether something is ethically acceptable or no.

It could also serve by offering "re-use cases" which might be easier to explain to people as part of the "informed consent" steps of any ethical experimental design.

As more pressure is put on us to do work with larger and larger data sets (whether the GCHQ surveillance data, or police crime/geo-loc data, or NHS care.data) we need to figure this out soonest.

Sunday, January 25, 2015

Intellectual Property and Production - workshop in Law, 24.1.2015

at Wolfson College, 25 Jan 2015
Organised by Center for Intellectual Property and Information Law

Jennifer Davies introduced the workshop (6th in a series run by CIPIL ) and reminded attendees this was about production (and place!)

Session 1: Producing Output, led by Lionel Bently

Tanya Aplin: 'The Impact of Prosumers on Photojournalism' - this talk mapped out how the massive rise of amateur photography and the ubiquitous presence of cameras (especially in phones) had given rise to the de-skilling of the area of photojournalism, starting especially in disasters and emergencies (Katrina, Tsunami, Arab Spring etc), where classical photojournalists might not be on the scene for days in any case, but now supplanting every day coverage of events. The talk then went on to the new businesses that had arisen to "professionalise" the contributions by the public, and new agencies that would find takers for pictures and pay producers (albeit massively less than the famous photojournalists of yore).

Great talk - i think to be fair, the "professionals" always over-stated the skills you need to be a good journalist - many amateurs are massively better than many paparazzi - see my friend tim harris photos - he's a research leader at Oracle labs....this is also true of bloggers - for example my local kentish town blogger produces more timely and better job than the main traditional local newspaper (in my view:)

Alan Durant: ‘Kinds of Work in Copyright: a Semantic Perspective’

This was a foundational take on the triptych "Original Literary Works" unpicking the individual and combined meanings over history and showing how ambiguous the terms sepeaately and together were and still are. THis has important consequences for public and other stakeholders understanding of the relevant law!

Hye-Kyung Lee: ‘Media fans as new cultural intermediaries’

This was about fan contributed works with a new spin - the Manga translators - fandom who take japanese and korean comic art, and produce versions for other markets! Again (as with the first talk in this session) the emergent business models have first been squashed, but then embraced and extended by the original Manga production houses. Fans reactions vary (as you would expect) from approval to "uncool" - also, interestingly, cultural differences mean that Chinese reaction is quite different than other countries in this regards. I asked if anyone has tried personality profiling (c.f. psychometrics facebook app in cambridge) to see what sort of people enjoy these activities - is it mostly about fame, social capital, etc - inclusion - etc or do some really want to make it like their heroes in the original comics? or a mix (changing over time). Was reminded of two related stories. (Anecdotal) - 1/ The Dr Who fan contributed plots and characters were threatened with a lawsuit for copyright reasons, but then it emerged some of the writers of Dr Who had been reading the site, and may have inadvertently used material and fans suggested that they might countersue - so a quid pro quo was reached:) 2/ My cousin was teaching computer science in Brasil and translated US text books by reading then speaking aloud in portuguese, to a dictation/speech to text system (Dragon Dictate) - students bought the original book, so there's no loss to publishers or authors, but were given handouts of the text part in their own language.  Publishers became interested (low cost way to get foreign language editions of books....and discover markets).

This element of fan led A&R seems like an obvious way for producers of new work who live in the "long tail" of the popularity distribution to find their market, and for new fans to find content. Seems like a good thing - for a given area, it may not be a zero sum game  although over all content, I guess the population does have a finite disposable income. However, this new mode may lead to a wider breadth of availability, perhaps at the expense only of the few people at the very tip of the popularity (U2, Beyonce might lose a few percent of their gazillions) - maybe Thomas Pikety will approve!

Session 2: The Means of Production (I) led by: Ian Walden

Jon Crowcroft: ‘Software Tools and Die’
here's my talk which is mostly just about how we write software but also a plea not to do s/w patents (the clever bits are just math) and how copyright is ok, but there's lots of different uses (license models) which can all work (and co-exist)

Catherine Seville: “Controlling the Production of Literary Works: Hard
Then, Impossible Now?

This was a fascinating talk about the ways in which the technologies for production have always seen (mostly failed) attempts to control - from limited access to printing press, to control of rights to publish, through to DRM etc - really interesting...

Simon Eliot: ‘From 'Literary' to 'Commercial' in the Registry Books of
the Stationers' Company

Beautifully read and presented talk about this history and hilariously incompetent antics of rhe Stationers' company (registry for all things trademarkish) esp in the 19th century, which some fabulous graphic examples of Victorial graphic design for a wide range of useful, daft, and sentimental works. Sheer diversity of display is astonishing.

Session 3: The Means of Production (II) led by: Andrew Griffiths

Sean Bottomley: ‘Trade secrecy and production during the late
seventeenth and eighteenth centuries.’

Lovely talk about Worshipful socieiies and their control of their magic pixie dust techniques-  interestingly, the use of sanctions against people for revealing these tricks to "foreigners" (i.e. non guild members) was relatively rare in practice.  It makes you wonder why the Worshipful Company of Information Technologists was set up - What have they got to hide???

Dev Gangjee: ‘Why Wine is Not a Commodity: Geographic Indications,
Place and Process’

Great talk as with all the talks, really well presented and clear) on "terroir, and the way GIs are being used more and more, and yet have very little public recognition yet (outside of the original "Appelation Controle) - I asked the questions a) how "little britain" is all this and b) can you have a GI for "produced near here" for any definition of here (i.e. eco-didn't fly far food) - answer, yes...

Theresa Lopes: ‘Trademarks and Production of Consumer Goods from an
Historical Perspective’

Great econometric analysis of a large body of data from several places showing how IP protection trends track a) innovation b) the economic growth/shrinkage - a lot to take in - hopefully, we get some slides/paper post workshop!


Session 4: Geographical Delineation, led by Session leader: Graeme Dinwoodie

Sun Thathong: ‘A Marxian interpretation of the traditional knowledge
debate: the role of IP in the
coexistence of primitive and capitalist modes of production.’

Fun stuff -not quite as alarming as it sounds - basically, traditional knowledge is folk lore and crafts embedded in simple societies and held in common. It is being ram-raided by developed countries profit led companies (most obviously, plant medicines in rain forests being patented by big Pharma). This is about the moves to try and figure out a range of IP models that will appropriately recompense those "simple" societies (which, if course, are never so simple). Main bug is the hilariously naive Marxian description of primitive communism, which an anthropologist would have a field day with (literally and figuratively), but the model economically is good.

Here I had to leave to go to a memorial Mass for my brother in law, Declan McKeever
so I missed one of the organisers papers, which was a shame as it was
foundational to the main purpose of the workshop:

Jennifer Davis: ‘The End of Trade Marks as an Indicator of Place and
the Implications for Labour’

Graham Dutfield: ‘The compulsory working of patents and developing
countries.’

Henning Grosse Ruse-Khan: ‘From Local Manufacture Rules to Import
Barriers in Global Production Chains’

Tuesday, December 09, 2014

Science and Policy - Why should they pay attention to us?

Reading the latest CSAP (center for Science and Policy) report on "future Directions for Scientfic Advice in Whitehall" is quite frustrating if you are a geek.

Several behavioural weirdnesses define geeks, and these matter:

  1. geeks tend to read about anything whatever their core training is, whether climate science, social media analytics, psychology, behavioural economics, and XKCD
  2. notwithstanding Steve Hand's memorable pub rant[1], politics appears to be quite a lot simpler than a physics (Natural Sciences) or computer science or engineering degree, really.
  3. they witness many people in political decision making roles who are actually less qualified even in terms of soft (social) sciences (lets not rehearse the PPE pub rant again just yet [2])
So what does this lead to?

  1. incredulity when governments do not act on scientific advice (drugs, immigration, climate).
  2. frustration when governments offer explanations as to why they cannot act on said advice.
  3. strong inclination to walk away from bothering ever again to offer advice/evidence.
Far from this being something scientistcs should apoligise for, given the nature of the public's alienation with current western democratic policies (e.g. economics of austerity), it behoves politicians to rethnk how they react to public advice:

  1. scientists have a methodology (atually lots, but lets stick with Popperian classical Object Knowledge for now).
  2. Theories are falsifiable - the latest theory is "best of breed", that's all its merit is.
  3. We dismiss theories when new ones come along that meet the criteria (better fit, simpler, more elegant -- pick any).
  4. We change our minds. 
Indeed, there are honourable occasions (e.g. discovering that stomach ulcers were caused by bacteria, or the italians finding that their neutrinos did not go fast than the speed of light, or the cold fusion fail), when this is very public, but it happens every day on a finer granularity

I think the time has come for scientific method to be applied by politicians. Just as Jeanette Wing argued for computational thinking to be part of everyone's intellectual landscape, scientific method has already been embedded in everyone's subconscious for some time (e.g. since the Age of Enlightenment, aka Age of Reason)

Why not? As Oliver Cromwell said to one government (and remember what happened to them 

Think it possible you may be mistaken.

Thursday, August 14, 2014

CLuDo

CLuDo

All bar one of the suspects was ruled out through a rigorous process of logic
and fermentation.  Suspect B was never identified, although her love of Citrus
flavoured chewing gum inclined Devonshire to discount her on the basis of the
lack of scent in any of the crime scenes. The fine detective had the measure
of Napier, and deemed his extremely asymmetric length arms to put him beyond
the reach of the law.  The recent Turkish immigrant who went by the moniker Moosh had an alibi (waylaid in a public loo by a nearly terminal bizarre
kebab accident). The Polis had no beef with Professor Baron, who was in any
case too absent minded to remember who could be next o nthe serial killer
list. Ms Bath was in the Ale House, where she tended to hang out with other
birds in hand. Dr Burleigh was too gentle a character, despite being a well
known Arms dealer.  The reverend Carlton was left handed, whilst the
Carpenters were both right handed, which saw them in the clear.
Thomas Champion was in london rowing, on the  Thames that day, and indeed,
had turned a corner since leaving the county seat for town, and given up his
unnatural addiction to Dobblers. (Dobblers is that well known breakfast dish
that looks like a classic grill, but in fact is made from dog & pheasant
and isn't as illegal as it is unpleasant).

The Earls of Beaconsfield and Derby were both out at a shoot, and so the
inspector was shot of them, even before five bells. Indeed, he thought to him
self with a wry ha-ha, pigs might fly and his golden hind come in, before
they'd commit any such gross moral turpentine. Henry was OK, since he'd made
peace with his Armenian girlfriend Ishca over the proper use of feathers in
millinery.

It was known that Milton was blind drunk, and waxing eloquent over some
jolly waterman about his time playing frag piano in old Orleans.
The chancellor was above suspicion, as were any of the occupant of the
Regent house. All five of the Irish brothers were known to react badly to the
men in blue, a red rag to a bull, but the inspector rose to the challenge, and
avoided a crowning.  Rupert Brooke was with Milton the whole day, according
to the sheep rustler known to everyone just as The Eagle, who had dropped in
after some wild spread betting.

Radegund's sainted aunt claimed he was down at Ally Pally, his Alma mater, and
the only anchor in his peripathetic life.
The inspector would give drink bakers dozen once the moon was over the yard
arm if that blackamoor's head was capable of such dark thoughts.
Devonshire asked his trusty sidekicks Argyle and Clarendon if they thought
there was anything in the rumour about the boats? Dr A saw on the
British Queen not, whilst det inspector C, smelling like a
brewery concurred. Devonshire looked at these two interchangeable chaps, like
peas in a pod - you couldn't tell if you swapped them, castle-to-castle like.
He hadn't graduated in the Jubilee year to waste time like this. He had other
buns in the shop to fry.

Back in  Cambridge feeling blue drinking a hog's head of big black cow and watching the
cricketers cut down another elm tree, failing to impress, as they fought
by George to keep the greyhounds and haymakers at bay, Inspector Devonshire
wondered if perhaps the evil genius artist, Geldart was behind it all.
Granted, he had the locomotive and was a man with a means, if not completely
in a pickerel. After all, he was known to have a predilection for chasing the
Green Dragon down King Street at quite a run. Many times, Dr Kingston had
tried to wean him off, but he would claim to be a master of the Marinade,
although everyone knew he was just driving them up the Maypole.

So summing up the first victim, Panton was found  bashed in by a
globe carved curiously with Fleur De Lys; the second, Portland,
rolled around a Fountain, pursued by a green manatee. The third,
Ms Parrot, crushed beneath a free press, like grapes, blood
spoiling all the nice mitred corners, pouring out like an old spring, only
attractive to the rats. The fourth, Salisbury trapped between the mill stone
and a rock, but curiously tied up with rope and twine. The fifth was drowned
regally when his ship ploughed into a dead end.

At six bells, listening to Bert Jansch playing
down by black Waterside on his iPod, the inspector suddenly remembers Arthur C Clark's story from Tales from the White Hart
(the one with all the violations of Sir Isaac Newton 3 laws of droog).
he lit a fine Unicorn cigar with a White Swan vesta matches, and decided to
see if the Wrestlers were still slugging it out over a bacon, lettuce and
tomato roll. As seven starts came out, the inspector took the last tram home
but fell asleep and landed up in the depot once again.

Friday, November 29, 2013

principles of communications, 2013/2014, end of week #7 to L22

This week, we covered shared media & ad hoc capacity, and started on traffic engineering.

A sharp question on proportional fairness in earlier material prompted me to notice that that isn't well contrasted with max-min fair sharing -- It turns out (as often with technical areas) Wikipedia has a nice explanation - see this article on
proportionally fair w.r.t weighted (max/min) fair queues

Next week will finish traffic engineering and wrap up with summary of course.

Friday, November 22, 2013

principles of communications, 2013/2014, end of week #6 to L19

This week have done scheduling, queue management and switching
and just about to start on shared media

One interesting point historically -the colossus computer at Bletcheley Park built for code breaking was not a von Neumann classical architecture computer but was a "switched programme" machine  - this made it incredibly fast (for a 1940s design) although incredibly inflexible -- and it took a very long time for people to catch up on a standard desktop (about 50 years) - amusingly, about as long as the Dr Who series has run on BBC TV:)

Friday, November 15, 2013

principles of communications, 2013/2014, end of week #5 to L16

This week, control theory and optimization...

Some minor inaccuracies in slides have been corrected in the online copies linked from the course materials page...[or will be as soon as I can get powerpoint with the right fonts:) - the key error is in the calculation of the steady state error of the proportional controller - for some reason, there's a subtraction of the two terms for U(s) where it should be +
(KUs + Rc) / (s(s+K)
I think {need to check this:) it kind of makes sense (if the completion rate increases, the admission rate should increase....)

then when we take the limit of s(U(s), as s->0, we'll get Us + Rc/K
so ess (error in steady state) is Us - (Us + Rc/K) which gives us -Rc/K
(i.e. the answer is right, but the system response wasn't...will check and correct soon...

again, to note, the chapter on control theory in Keshav's book is very clear if you want alternative source + some nice example problems.

Friday, November 08, 2013

principles of communications, 2013/2014, end of week #4 to L13

Error, Flow and Congestion Control done (99.9%)

further reading - maybe - on Network Coding (see Digital Fountains)
and on what's in Linux (CUBIC) and Windows (Compound) for congestion control, and what real traffic actually looks like - see CAIDA
http://www.caida.org/home/

next week: control theory...and optimzation:)

Friday, November 01, 2013

principles of communications, 2013/2014, end of week #3 to L10

This week we covered routing -

there's one egregious error on the slide explaining Dijkstra's algorithm in Link State where the sign on the comparison is the wrong way round (well spotted students!) - I leave it as an exercise for you to find, as it makes for careful reading:-)

In Sparse Mode, we use Rendezvous Points to coordinate a single RPF tree around a designated/configured router (maybe one for each of a different block or subset of multicast addresses) - there's no guarantee the RP is in a sensible place, although the switch from RP centric tree to source based tree after an traffic flows helps reduce latency -  automatic placement of an RP to be in the "centre" of the group would be a solution to the Steiner Tree (Min spanning tree) problem which is NP-Hard, although there are polynomial time approximation algorithms for it (but you probably wouldn't deploy them in routers, but in a network management system for e.g. a gamer or trader network, this might be sensible)

One other note - consistency, symmetry of routes, and so on - IP and IP routing make no guarantees about this at all! BGP (inter-AS routes) are often asymmetric...recent computer science work on building new protocols that provide global consistency during route update and computation does exist, but is still research, largely....although the techniques are promising!

Next week, errors, then flow and congestion control.