When an application sends data, it needs more than a destination address. The device must work out which network the destination belongs to, how to reach it, and how to hand the packet to the next device. Start with that simple delivery problem. Each later topic adds something to it: more receivers, a moving device, a different address format, or two IP versions that must communicate.
IPv4: from an address to a working path
IP carries data in separate packets called datagrams. Each router forwards a packet toward its destination using its routing table, without first setting up an IP connection. This is a best-effort service: packets can be lost, delayed or reordered, and IP itself does not repair those outcomes. That is the basic delivery model on which the rest of the course builds. IPv4 Datagram Service and Forwarding
To forward a packet, the network needs to identify where it is going. An IPv4 address identifies a network interface, so a router connecting several networks normally has an address on each relevant interface. Some addresses have special meanings: loopback refers back to the local host, while broadcast addresses target a set of interfaces rather than one ordinary host. IPv4 Interfaces and Special Addresses
An address alone still leaves a question: which part identifies the network, and which part identifies an interface within it? Historically, address classes imposed fixed boundaries such as /8, /16 and /24. This explains the older terminology, but those classes are not the rule to use for modern route selection. Classful IPv4 Addressing
CIDR makes that boundary explicit with a prefix length. In 192.0.2.10/24, the first 24 bits identify the network; the subnet mask expresses the same division in another form. This lets us describe networks of different sizes instead of being restricted to the old classes. CIDR Prefixes and Netmasks
Once the boundary is known, we can derive the actual network address by setting every host bit to zero. This matters because an address inside a subnet is not necessarily its Network ID: 192.0.2.24/28 belongs to the network starting at 192.0.2.16. Checking boundaries prevents us from building an addressing plan around a subnet that does not start where we think it does. IPv4 Network IDs and Subnet Boundaries
The same prefix also tells us how many addresses fit inside the subnet. Under ordinary IPv4 subnet rules, the network and broadcast addresses are reserved, leaving the remaining addresses for interfaces. Point-to-point /31 links are a special case, while a /32 describes one address. These distinctions matter when choosing a prefix for a real requirement. IPv4 Host Counts and Point-to-Point Subnets
We can now turn a list of requirements into an addressing plan: choose suitable block sizes, place each subnet on a valid boundary, and keep allocations from overlapping. Allocating larger requirements first often makes the remaining space easier to manage. The result is a set of networks that can actually be configured. IPv4 Addressing Plans and Subnet Allocation
With addresses assigned, a host must decide how to reach a destination. Its routing table contains destination prefixes and instructions for reaching them. If several routes match, the longest prefix wins because it describes the most specific destination range. A default route is the least specific fallback. IPv4 Routing Tables and Longest Prefix Matching
Selecting a route does not yet put a packet on Ethernet. The sender also needs the MAC address of the selected local neighbor: the destination itself for direct delivery, or a router for an off-link destination. ARP resolves that neighbor’s IPv4 address. Each router repeats the route-and-local-delivery process; the final IP destination and the immediate Ethernet receiver serve different purposes. IPv4 Static Routing Paths and ARP
This explains why a gateway must be reachable through the local link, and why a wrong mask can break communication even when the addresses look plausible. A host may try ARP for a remote destination it mistakenly considers local, or send traffic toward a gateway when direct delivery was intended. Troubleshooting starts by checking these decisions. IPv4 Gateways and Addressing Troubleshooting
As networks grow, keeping a separate route for every small subnet becomes cumbersome. Aggregation replaces several prefixes with a broader summary, but that summary can also attract packets for unused space. If neighboring routers send such a packet back to each other, a routing loop forms until TTL expires. A summary therefore needs deliberate handling of the space it covers. IPv4 Route Aggregation and Routing Loops
The complete lecture and its source examples are in Lecture 01 - IPv4 Addressing and Routing. Apply the sequence through Exercise 01c - IP Addressing and Exercise 01d - IP Static Routing.
Observing the path: what must happen before data arrives?
Now imagine entering a hostname and watching the resulting traffic. DNS may first resolve the name to an IP address. Routing then determines the next hop, and ARP may resolve its Ethernet address. ICMP supports diagnostics and reports certain delivery problems. These are separate jobs, so the order of visible packets reflects dependencies rather than one indivisible operation. Packet Delivery - DNS ARP and ICMP
A capture only shows what crosses its observation point. An ARP broadcast, a unicast reply and traffic on another switched link need not all be visible to the same sniffer. Frame counting therefore starts with the topology, the capture location and the initial cache state; only then can we count the transmissions the observer actually sees. Packet Capture Visibility and Frame Counting
When an expected exchange is missing, follow those dependencies to find where progress stops. Incorrect addressing can change ARP and routing behavior, while an HTTP proxy changes the application’s communication path by receiving requests and making onward requests itself. A ping and a proxied web request can therefore test different paths. Traffic Analysis - Failure Patterns and HTTP Proxies
Practice reconstructing those exchanges in Exercise 01e - Packet Sniffing and Traffic Analysis.
Multicast: when the destination is a group
So far, the packet has had one destination interface. If many receivers want the same data, separate unicast transmissions repeat copies over shared links. Multicast instead uses an address identifying a group of interested receivers, allowing the network to replicate packets where their paths separate. The group address identifies the audience rather than one ordinary interface. IPv4 Multicast Groups and Addresses
A group address does not tell a router whether anyone on its attached network wants the traffic. IGMP supplies local membership information: hosts indicate interest, and routers maintain knowledge of whether a group has listeners on a link. This answers the local demand question before we consider distribution across several networks. IGMP and Multicast Group Membership
The packet must still travel in a frame on Ethernet. IPv4 multicast groups map to Ethernet multicast MAC addresses, but the mapping is not unique: several IP groups can share one MAC address. Receiving a matching Ethernet frame is therefore not enough to establish that its IP group is the one an application wants. IPv4 Multicast to Ethernet MAC Mapping
Switches can observe IGMP messages to learn which ports need group traffic, reducing unnecessary local distribution. Routers have a different responsibility: forwarding multicast across networks along a distribution tree and copying packets at branch points. Local membership, switch snooping and routed distribution cooperate, but each solves a different part of delivery. IGMP Snooping and Multicast Distribution Trees
Multicast also supports local discovery. A device can ask the local link about a name or service without first knowing the address of a conventional DNS server. mDNS uses link-local multicast for this purpose; discovering something locally does not imply that the query will travel across routers. Multicast DNS and Local Service Discovery
The lecture brings these layers together in Lecture 01f - IPv4 Multicast.
Cellular networks: when the attachment point changes
Packet routing assumes there is a usable way to reach the next network. A mobile device first needs radio access, and radio spectrum is shared and limited. Cellular systems divide coverage into cells and reuse frequencies with enough separation to control interference. Cell size and reuse choices connect coverage, capacity and interference. Cellular Cells and Frequency Reuse
Movement then creates a location problem. Registration tells the system about a subscriber’s presence, location updates keep its whereabouts sufficiently current, and paging finds an idle device when service is needed. Handover addresses a different situation: transferring an active connection as the serving cell changes. Cellular Registration Paging and Handover
GSM assigns these responsibilities to concrete components. The SIM provides subscriber identity and authentication-related information; subscriber databases maintain subscription and location information, while radio and switching components provide access and service. Following those roles makes the architecture easier to understand than memorizing its component names separately. GSM Architecture SIM and Subscriber Databases
That architecture must also coordinate transmissions over the air. GSM organizes radio resources into frequencies, timeslots and frames. Devices at different distances have different propagation delays, so timing advance makes their uplink bursts arrive in the intended slots. This connects the physical distance of a moving device to the timing of shared radio access. GSM Radio Channels Frames and Timing Advance
LTE reorganizes service around a packet-based core. Its control plane manages tasks such as attachment and mobility, while its user plane carries the subscriber’s data. Bearers describe the logical transport service provided through the network. Keeping signaling and user packets separate makes it easier to follow which component is responsible at each step. LTE Architecture Control Plane and Bearers
5G develops the architecture further with service-based core functions, slicing for different service requirements, and options for placing processing closer to users. These choices connect radio access to differences in latency, capacity and service needs; they are easier to follow once the control and data responsibilities are clear. 5G Core Slicing Edge Computing and Radio
The generation-by-generation detail is in Lecture 02 - Cellular Networks, with practice in Cellular Networks - Revision Questions.
IPv6: rebuilding the same delivery process
IPv4’s limited address space motivates a larger addressing system. IPv6 uses 128-bit addresses, but its purpose is not simply to fill every possible address: hierarchical allocation leaves room for growth and route aggregation. This connects address availability to the ability to organize and route networks at scale. IPv6 Allocation Aggregation and Coexistence
To use those addresses, we first need to read their notation and understand their scope. A link-local address is usable on its link, while other address types serve different communication needs. Prefixes still describe network ranges, so the familiar distinction between a destination address and a network prefix remains useful. IPv6 Addresses Prefixes and Scope
A newly connected device then needs configuration information. Router Advertisements communicate router and prefix information; SLAAC can construct addresses from advertised prefixes, and DHCPv6 can supply addresses or other configuration. These roles must be distinguished: obtaining an address through DHCPv6 does not by itself discover the default router. IPv6 SLAAC Router Advertisements and DHCPv6
When the device forms an address, the interface identifier raises another question: should it remain stable, change over time, or expose information tied to hardware? Stable and temporary identifiers make different tradeoffs between operational usefulness and privacy. An interface can consequently have several IPv6 addresses with different purposes and lifetimes. IPv6 Interface Identifiers and Privacy
Once configured, the device still needs to deliver frames to a neighbor. IPv6 uses Neighbor Discovery instead of ARP, including Neighbor Solicitation and Advertisement messages. For an off-link destination, the local Ethernet receiver is a router; for an on-link destination, it is the destination neighbor. The route decision still comes before resolving the appropriate local neighbor. IPv6 Neighbor Discovery and Ethernet Delivery
The resulting packet has an IPv6 base header and may carry extension headers. If a link cannot carry the packet at its current size, IPv6 routers do not fragment it; the sender must adapt using Path MTU information or perform source fragmentation when appropriate. This makes packet size another part of successful end-to-end delivery. IPv6 Headers Extensions and Path MTU
ICMPv6 connects several of these operations: it carries Neighbor Discovery messages and errors such as Packet Too Big. Multicast Listener Discovery manages local IPv6 multicast membership. These control exchanges are part of making delivery work, rather than optional traffic unrelated to the packet path. ICMPv6 and Multicast Listener Discovery
Follow the complete network-join example in Lecture 03 - IPv6 to connect configuration, address checks, routing and neighbor resolution in one sequence.
Coexistence: when the path does not speak one IP version
Understanding each IP version separately leaves a practical mismatch: endpoints and intermediate networks may support different versions. Dual stack gives a system both versions, tunneling encloses a packet for transport across another network, and translation changes its IP representation. The right distinction starts with where the incompatibility lies. IPv4 IPv6 Dual Stack Tunneling and Translation
Suppose customers still generate IPv4 traffic while their provider operates an IPv6 access network. DS-Lite carries the IPv4 packets through that network inside IPv6 and performs shared IPv4 NAT at the provider. Address-plus-port approaches introduce another way to share an IPv4 address: assign customers different port sets, so the address alone is no longer the whole customer identifier. DS-Lite and Address Plus Port
MAP mechanisms develop that mapping idea using rules that associate IPv4 information and port sets with IPv6 information. MAP-E uses encapsulation, while MAP-T uses translation. Reading the rules together with the packet path explains how provider forwarding can use customer allocations without keeping the same per-connection NAT state as DS-Lite’s provider function. MAP-E MAP-T and Port Sets
A different mismatch appears when an IPv6 client needs an IPv4-only destination. DNS64 can synthesize an IPv6 destination from an IPv4 DNS answer, and NAT64 translates traffic toward the IPv4 server. IPv4 literals and IPv4-only applications need additional handling; 464XLAT adds customer-side translation to support IPv4 traffic over IPv6 access. NAT64 DNS64 and 464XLAT
The comparison diagrams and source qualifications are in Lecture 03a - IPv4 to IPv6 Transition. At each stage, keep track of the packet being carried, any outer header, any translation, and where state is stored. Those four observations connect the mechanism names back to the delivery process you started with.
Routing: how forwarding instructions are learned
The IPv4 table tells a router where to send a packet, but those instructions must first be configured or learned. Routing chooses and maintains directions; forwarding uses the local result for each packet. Failures take time to propagate and can temporarily cause loops or dropped traffic. Routing Forwarding and Convergence
In distance vector, a router adds its cost to a neighbor to the neighbor’s advertised destination cost. Stale reports can create feedback, so safeguards manage particular failure patterns. Distance Vector Routing and Failure Recovery
In link state, routers share descriptions of local links, build a domain map and calculate their own shortest paths. This makes the information exchanged different from distance vector, even when both select the same path. Link State Routing and Dijkstra
Larger networks divide routing into domains and exchange selected reachability information across their borders. This limits detail, but exit choices, summarization and redistribution introduce tradeoffs. Hierarchical Routing and Route Redistribution Read the connected explanation and source map in Lecture 04 - Forwarding and Routing Algorithms.
Routing protocols: OSPF inside, BGP between domains
OSPF puts link-state routing into practice. First, neighboring routers use Hello packets to discover each other; routers forming an adjacency compare database descriptions, request missing records, and exchange and acknowledge LSAs. Their area databases provide the information each router uses to calculate its own shortest paths. A shared Ethernet uses a designated router to reduce control-plane work; that role does not make it the mandatory next hop for user packets. OSPF Neighbors Flooding and LSAs
Areas limit how much topology each router must maintain. An area border router advertises inter-area reachability, while an AS boundary router can introduce external destinations. When links fail, the routers must update their information and converge; summarization and virtual links introduce their own reachability considerations. External E1 and E2 routes use internal and external costs differently. OSPF Areas Costs and External Routes The step-by-step exchange, cost comparisons, area-failure scenarios and worked slide configuration are in Lecture 05 - OSPF.
BGP connects independently administered networks using prefix advertisements, AS paths and operator policy. A route can move between ASes over eBGP and between BGP routers inside an AS over iBGP; the normal iBGP re-advertisement restriction and route reflectors shape internal distribution. A router checks whether the advertised next hop is reachable and compares eligible routes using attributes such as LOCAL_PREF and AS_PATH. OSPF may supply internal reachability, but every router on the actual data path still needs a suitable forwarding route. BGP Sessions Paths and Attributes
The network’s choice to accept, prefer or advertise a route reflects its policies and agreements. A BGP peer is a router at the other end of a session; network peering is an agreement to exchange specified traffic. Transit is a provider service, and an IXP offers an interconnection point without automatically creating a session or agreement with everyone. Aggregation can reduce advertisements but can also attract traffic for failed or unused space. BGP Policy Transit and Internet Exchange Follow a prefix across the source’s AS 30 example, compare routes and review a worked configuration in Lecture 06 - BGP.
This summary connects the supplied lecture and exercise notes. It is added study explanation; source attribution, page references, worked examples and technical qualifications remain in the linked notes.