CT320

CT320: Network and System Administration

Fall 2016

Routing

See this page as a slide show

CT320: Routing

Thanks to:

for the contents of these slides.

The Internet Network layer

Remember the layers?

The Internet Network layer

Host, router network layer functions:

IP Fragmentation & Reassembly

IP Fragmentation and Reassembly Example

Original:

length=4000IDfragflag=0offset=0

Fragments:

length=1500IDfragflag=1offset=0
length=1500IDfragflag=1offset=185
length=1040IDfragflag=1offset=370

(185 = 1480 / 8)

Hierarchical Addressing: Route Aggregation

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!

Hierarchical Addressing: Route Aggregation

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.

Hierarchical Addressing: More Specific Routes

┌─────────┐     ┌────────┐  ┌────────┐···································
│ 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.”

Hierarchical Addressing

IP Addressing: ICANN

Addressing at CSU

Hierarchy at CSU

Hierarchy at CSU

┌───────────────┐     ┌──────────┐  ┌────────┐     ┌───────────────┐
│ 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 │
└───────────────┘                :                 └───────────────┘

IP datagram format, redux

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)

ICMP: Internet Control Message Protocol

TypeCodeDescription
00echo reply (ping)
30dest network unreachable
31dest host unreachable
32dest protocol unreachable
33dest port unreachable
36dest network unknown
37dest host unknown
80echo request (ping)
90router advertisement

Ping

% 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.

Traceroute and ICMP

Modified: 2016-06-28T22:48

User: Guest

Check: HTML CSS
Edit History Source
Apply to CSU | Contact CSU | Disclaimer | Equal Opportunity
Colorado State University, Fort Collins, CO 80523 USA
© 2015 Colorado State University
CS Building