Thanks to:
for the contents of these slides.
Remember the layers?
Host, router network layer functions:
Original:
length=4000 | ID | fragflag=0 | offset=0 | … |
Fragments:
length=1500 | ID | fragflag=1 | offset=0 | … |
length=1500 | ID | fragflag=1 | offset=185 | … |
length=1040 | ID | fragflag=1 | offset=370 | … |
(185 = 1480 / 8)
How it’s not done:
┌─────────┐ ┌────────┐ ┌────────┐ ┌─────────┐ │ 1.2.3.4 │·······│ ISP #1 │ │ ISP #2 │·······│ 3.1.4.1 │ └─────────┘ : └────────┘ └────────┘ : └─────────┘ ┌─────────┐ : : : : ┌─────────┐ │ 2.4.6.8 │···: : ┌──────────┐ : :···│ 2.7.1.8 │ └─────────┘ : ···│ Internet │··· : └─────────┘ ┌─────────┐ : └──────────┘ : ┌─────────┐ │ 9.8.7.6 │···· : ····│ 2.2.3.6 │ └─────────┘ : └─────────┘
ISP #1: “Internet, forward 1.2.3.4, 2.4.6.8, and 9.8.7.6 to me.”
ISP #2: “Internet, forward 3.1.4.1, 2.7.1.8, and 2.2.3.6 to me.”
Imagine if the ISPs had thousands of customers!
How it’s done:
┌─────────┐ ┌────────┐ ┌────────┐ ┌─────────┐ │ 1.2.3.4 │·······│ ISP #1 │ │ ISP #2 │·······│ 3.1.4.1 │ └─────────┘ : └────────┘ └────────┘ : └─────────┘ ┌─────────┐ : : : : ┌─────────┐ │ 1.2.3.8 │···: : ┌──────────┐ : :···│ 3.1.4.8 │ └─────────┘ : ···│ Internet │··· : └─────────┘ ┌─────────┐ : └──────────┘ : ┌─────────┐ │ 1.2.3.6 │···· : ····│ 3.1.4.6 │ └─────────┘ : └─────────┘
ISP #1: “Internet, forward 1.2.3/24 to me.”
ISP #2: “Internet, forward 3.1.4/24 to me.”
This scales nicely.
┌─────────┐ ┌────────┐ ┌────────┐··································· │ 1.2.3.4 │·····│ ISP #1 │ │ ISP #2 │ ┌─────────┐ ┌─────────┐ : └─────────┘ : └────────┘ └────────┘·····│ 3.1.4.1 │ ···│ School │··· ┌─────────┐ : : : : └─────────┘ : └─────────┘ │ 1.2.3.8 │··: ┌──────────┐ : ┌─────────┐ : ┌─────────┐ └─────────┘ : │ Internet │ :··│ 3.1.4.8 │ :··│ 9.8.7.6 │ ┌─────────┐ : └──────────┘ : └─────────┘ : └─────────┘ │ 1.2.3.6 │··· : : ┌─────────┐ : ┌─────────┐ └─────────┘ : ···│ 3.1.4.6 │ ···│ 9.8.1.2 │ └─────────┘ └─────────┘
ISP #1: “Internet, forward 1.2.3/24 to me.”
ISP #2: “Internet, forward 3.1.4/24 and 9.8/16 to me.”
┌───────────────┐ ┌──────────┐ ┌────────┐ ┌───────────────┐ │ 129.82.40.123 │·····│ Business │ │ CS │·····│ 129.82.44.12 │ └───────────────┘ : │ router │ │ router │ : └───────────────┘ ┌───────────────┐ : └──────────┘ └────────┘ : ┌───────────────┐ │ 129.82.43.4 │··: : : :··│ 129.82.45.85 │ └───────────────┘ : : ┌────────────┐ : : └───────────────┘ ┌───────────────┐ : ···│ CSU router │··· : ┌───────────────┐ │ 129.82.42.66 │··· └────────────┘ ···│ 129.82.47.234 │ └───────────────┘ : └───────────────┘
0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Version | IHL | Type of service | Total length | ||||||||||||||||||||||||||||
Identification | Flags | Fragment offset | |||||||||||||||||||||||||||||
Time to live | Protocol | Header checksum | |||||||||||||||||||||||||||||
Source IP address | |||||||||||||||||||||||||||||||
Destination IP address | |||||||||||||||||||||||||||||||
Options (optional) | |||||||||||||||||||||||||||||||
IP data payload (many bytes) |
Type | Code | Description |
---|---|---|
0 | 0 | echo reply (ping) |
3 | 0 | dest network unreachable |
3 | 1 | dest host unreachable |
3 | 2 | dest protocol unreachable |
3 | 3 | dest port unreachable |
3 | 6 | dest network unknown |
3 | 7 | dest host unknown |
8 | 0 | echo request (ping) |
9 | 0 | router advertisement |
% ping google.com PING google.com (216.58.217.14) 56(84) bytes of data. 64 bytes from den03s09-in-f14.1e100.net (216.58.217.14): icmp_seq=1 ttl=58 time=2.89 ms 64 bytes from den03s09-in-f14.1e100.net (216.58.217.14): icmp_seq=2 ttl=58 time=2.90 ms ^C --- google.com ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1002ms rtt min/avg/max/mdev = 2.895/2.897/2.900/0.053 ms % ping hp.com PING hp.com (15.216.241.18) 56(84) bytes of data.
Modified: 2016-06-28T22:48 User: Guest Check: HTML CSSEdit History Source |
Apply to CSU |
Contact CSU |
Disclaimer |
Equal Opportunity Colorado State University, Fort Collins, CO 80523 USA © 2015 Colorado State University |