Architecture
Architecture
Internet architecture
Routing Protocols
Internet Architecture
Protocol Stack:
Physical layer provides the actual connectivity (copper, fiber, radio)
Access layer defines how to deliver data between
Application
two devices on the same network
Network layer defines how to route messages
Transport
across networks
Network
Transport defines how to provide reliable communication,
so that data will not be lost or corrupted (TCP, UDP)
Access/Link
Application layer defines how programs request messages
to be sent across the internet, using encryption, compression etc. Physical
The Internet Protocol
Responsible for:
Fragmentation / Reassembly (based on MTU).
Routing.
HTTP
MESSAGE
A B
HTTP
User A runs HTTP application TCP
IP
Link Layer
Copper
Packet Transmission
TCP HTTP
Header MESSAGE
A B
HTTP
Link Layer
Copper
Packet Transmission
IP TCP HTTP
Header Header MESSAGE
A B
HTTP
IP adds header including host A and B TCP
addresses
IP
Link Layer
Copper
IP Fragmentation
If the outbound link has smaller MTU than the IP packet that the
router want to sent, the solution is Fragmentation
IP Header
IHL: header length only in 32-bit words (5 <= HLen <= 15)
Type of Service, split in:
Differentiated Service Field (6 bits)
remaining two bits used by ECN (Early Congestion Notification)
Length: the length of the entire datagram/segment; header + data
Flags: Don’t Fragment (DF) and More Fragments (MF)
Fragment offset: all fragments excepting last one contain multiples of 8 bytes
The Internet Engineering Task Force (IETF)
produce technical documents that influence the way people design, use,
and manage the Internet – RFCs (Request for Comments)
Outline
Internet architecture
Routing Protocols
Hierarchical addressing
Internet
A
Q
D 1
Address of Host
A- D - Q- 1
IP addresses
Internet architecture
Routing Protocols
IPv4 Addressing
Every IP address consists of two parts, one identifying the network and
one identifying the Host.
The Class of the address and the subnet mask determine which part belongs to
the network address and which part belongs to the node address.
IPv4 addresses by class
Class A 0
Class B 10
Class C 110
Class A addressing (or /8s networks)
Since the /8 address block contains 2^31 individual addresses and theIPv4
address space contains a maximum of 2^32 (4,294,967,296) addresses,
the /8 address space is 50% of the total IPv4 unicast address space.
range: from 1 to 126
Class B addressing (or /16s networks)
10
110
1.22.11.12 Class A
137.22.11.12 Class B
201.22.11.12 Class C
193.92.96.255 /24 Broadcast address
All “1”s at the host part represent the broadcast address.
The broadcast address is the address used to send a message
to all hosts on the network
193.92.96.0 /20 Network address
All “0”s at the host part represent the network address
The network address is an IP address for the network as a
whole, as used by routers to know where to send the messages
Subnets
11111111.11111111.11111111.00000000 255.255.255.0
Example 1 – part 1
/24 network
Subnets P, Q, R require 12 hosts each
Subnet S requires 36 hosts
Subnet T requires 90 hosts
Network
T : /25
S : /26
PQR: /28
Variable length subnets example
Internet architecture
Routing Protocols
IPv6 header
Multicast: 11111111
Link-Local Unicast: 1111111010
Internet architecture
Routing Protocols
Shortest path routing
Routing in the Internet
Routing and addresses
Characteristics required
Correctness
Simplicity
Robustness
Stability
Fairness
Optimality
Efficiency
Performance Criteria
Minimum hops
Minimum cost
Each link has a cost that reflects
The length of the link
Delay on the link
Congestion
Cost
Cost may change with time
Examples:
Bellman-Ford
Dijkstra’s algorithm
Many others
Decision Time and Place
Fixed Routing
Single permanent route for each source, destination pair
Determine routes using a least cost algorithm
Dijkstra Algorithm
Bellman-Ford Algorithm
Route fixed, at least until a change in network topology
Routing Strategy - Flooding
Flooding
No network info required
Packet sent by node to every neighbour
Incoming packets retransmitted on every link except incoming link
Eventually a number of copies will arrive at destination
Each packet is uniquely numbered so duplicates can be discarded
Can include a hop count in packets
Properties:
All possible routes are tried
Very robust
At least one packet will have taken minimum hop count route
All nodes are visited
Useful to distribute information (e.g. routing)
Routing Strategy - Random
Random
Node selects one outgoing path for the retransmission of
incoming packets
Selection can be random or round robin
Outgoing path can be selected based on probability calculation
No network info needed
Route is typically not least cost nor minimum hop
Routing Strategy - Adaptive
Adaptive
Used by almost all packet switching networks
Routing decisions change as conditions on the network change
Failure
Congestion
Requires info about network
Decisions are more complex
Trade-off between quality of network info and overhead
Reacting too quickly can cause oscillation
Reacting too slowly, information may not be relevant
Outline – Next week
Internet architecture
Routing Protocols
Shortest path routing