Tuesday, October 27, 2026

Principles of Communications Week 4 27-29.10.2026

 This week we covered BGP abstract models (Stable Paths in Interdomain Routing) and Performance challenges from the dynamic behaviour of users.

Then we went on to Multicast Routing:

Two compelling applications were tv/radio broadcast and software distribution. However, application layer overlays (Content Distribution Networks) have subsumed those needs - a great example is how Zoom coordinates multiparty sessions - this talk by their CEO is instructive. Also interesting is this paper on netflix content distribution approach.

Thursday, October 15, 2026

Principles of Communications Week 3 20-22/10/2026

 

Interdomin routing-  BGP - key 4 slides - 125 127 132 133 in https://www.cl.cam.ac.uk/teaching/2627/PrincComm/slides/routing.pdf


Routing is about choosing paths, if there are alternatives. Choice may be based on local, as well as neighbour and global inputs. BGP mixes this up in interesting ways:

Moving from intra-domain (within one autonomous system/routing domain/internet service provider) to intradomain, the key change is from policy within a domain (as used for steering traffic in centralised routing or in mpls or segment routing) to policy between multiple autonomous (i.e. independent) domains who may have conflicts and often require some level of information hiding (protecting knowledge of their customers' needs from competitors). So while connectivity is the minimum requirement, there's often no shared goal in terms of what is "optimal" (i.e. what routing metric to use) - we'll see that in default cases, for traffic engineering, and various tie breaking reasons, metrics implicitly creep in as an implici part of BGP routing, but not in any way consistently.


Two nice questions in this lecture: Different clients in an AS have different shortest path to egress routers - so how do we use MEDs - this is basically each prefix advertised to the neighbour ASs has attriabutes so we can list each local prefix with a different MED to match its preferred route for traffic inbound towards it!

And what if an AS is very geographically distributed ? how do we configure that? I think ideally one might split into multiple ASs and then use BGP confederations (see slide 123 in routing link above).








The last thing on BGP is going to follow from Traffic Engineering and asks two questions: what really is the model BGP implements, to better understand how it works (and goes wrong)? and What engineering tweaks can we do to make it actually operate better in practice. We'll finish up on this on Oct 27-29th

Tuesday, October 13, 2026

Principles of Communications Week 2 13-15/10/2026

1 Centralised (!) Routing - Fibbing (see fibbing paper for more details - esp. figure 9/10 on failure/recovery modes) - in particular, fail-open and fail-close is used in the paper to refer to the persistence of a path made up by fibbing in the event of a controller failure where in some cases this is needed, and in others it needs to be removed! [1,2]

2 Stateful Routing - MPLS. Multi-protocol label switching has a long history (probably started in Cambridge!). It simplifes switch/router design in terms of forwarding, at the cost of increasing complexity in the control plane  -- possibly in routing, but more crucially, signaling. Signaling protocols have a very long history (from railways over 200 years ago). One interesting computer science dimension that arose from signaling is the concept of mutual exclusion. The first algorithms for avoiding contention for a limited resource are direct descendents of the P and V flags used to prevent two trains entering the same section of track....

In a sense, these two ideas (central and stateful) can be reconciled via "soft state" protocols (see final lecture).

Note also: MLPS involves a "shim" layer between IP and lower levels. Segment routing may use that, or may just use IP6 routing options directly. Recall layering from IB networking course. It is often not a pure picture - IP tunnels are another example of extra layers  between this and that. MPLS can also simplify switch & router port processing (and possibly, if switch is "cell switched" scheduling forwarding packets across the switch fabric - again, recall router architecure from IB networking course). Segment Routing is a re-think of MPLS, which can use IPv6 routing options as labels, and then use IP routing updates to distribute the label information to ( amongst others, upstream) neighbours. There's a nice slidepack SR explainer from CERN which shows the interaction with routing... Note segment routing with IPv6 dispenses with the potential hardware speedup of having 20 bit MLPS labels for forwarding, so one assumes router NICs and Processors may have ASIC support for v6 header processing!

So fibbing refines routing by adding FIBs which splits traffic into different paths, but MPLS coarsens it by bundling flows into the same forwarding paths/treatments.

Optional background reading...

2. Another dimension of signaling is that it requires a level of accesss control authentication and authorisation not typically present in pure datagram networks like traditional IP. For a measure of how bad it can get, look no further than the old digital telephone network signaling system number 7 (SS7) which is more complex than the whole TCP/IP regular data stack (see report on vulnerabilities in SS7). RSVP (serves similar function for signaling for MPLS if you don't just rely on routing!) is about as bad.

1. Further work was done based on the fibbing idea

https://sites.uclouvain.be/defo/
The core family of algorithms that could run in the controller.

Basically, it leverages FIBbing-like mechanisms to optimize (oblivious) TE in IP networks.

This paper is about the hardness of configuring ECMP for TE. This is actually based on a very cute hardness amplification proof technique.

Good question asked about stochastic & multipath routing - yes, you can do stochastic unipath (i.e. keep changing the route based on statisitcs) but it is more common load balancing/multipath scenarious...

Mneahile, back to MPLS - (and see later under differentiated services) - we have the idea of a packet flow, identified by some fields in the IP or possibly IP and TCP (or UDP or UDP/QUIC) Headers - between one packet and the next in the same forwarding equivalence class, some fields remain unchanged - a handy way to look at this comes from a completely different source, that of TCP/IP header compression! here's the key fields (shaded stay same):



From:
https://mirrors.ircam.fr/pub/rfc/rfc1144.pdf

A simple type of Fowarding Equivalence Class is one end-to-end flow, which can uniquely be identified (at a given time) by the 5-tuple of source+destination IP addresses, TCP (or UDP) ports and protocol id - i.e 2*32 bit fields, 2*16 bit fields and one 8 bit field.

We can also use an IP ToS field called the DS byte for an even coarser grain grouping of packets, but using the above gives us an individual end-to-end packet flow....of course we could also wild card some fields (e.g. source address) to group all the packets/flows to a given destination, or use IP prefixes (not all 32 bits of the IP destination address) to get all the packets to some particular network, rather than specific host.

Question: Why are MPLS labels local only? Answer - this lets them be small number of bits (order the numner of overall flows through a given router, rather than the number of possible flows in the world ever, which is what the 5-tuple would represent). BUt because it is local, we need to distribute the mapping from each hop to previous hop.


Thursday, October 08, 2026

Principles of Communications Week 1 8/10/2026

I'll be noting progress and also adding occasional related reading/ and corrections on this blog.

If you want to revise anything to warm up for the course, I suggest last year's Computer Networks course should be a quick re-read (e..g on routing ) A fun review of 40+ years of the Internet

This week we'll just make a start on routing. If you want to review just link-state (useful to understand fibbing (lecture 2), then video on link-state routing is very thorough.

Please do ask questions - two good ones today were

Q1 -so there's only one BGP for the whole world- yes, to have multiple Inter-domain routing protocols would mean every borader router might have to implement all of them (sort of "polyglot") which isn't impossible, but would be a nightmare of complexity to manage and operationally hard to understand - although these days, maybe we could use AI tools to manage it?

Q2 - isn't source routing a bit like virtual circuits - excellent question - yes&no - see later in MPLS where we see source routing is a way to manage VCs underlying IP potentially, but it can also be dynamic (well, more so than hard virtual circuit setup)

For fun, you might find this discussion on why LLMs aren't much use for networking, mostly interesting - video recording of panel session

Reference requested for Glossary of Terms: from ISOC

Some acronyms come from the 7 layer model of the communications stack including terms like PHY (short for physical, so not really an acronym).