Académique Documents
Professionnel Documents
Culture Documents
In this section, we discuss internetworking, connecting networks together to make an internetwork or an internet. internet.
20.1
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
20.3
20.4
Figure 20 3 N t k l 20.3 Network layer at th source, router, and d ti ti ( ti d) t the t d destination (continued)
20.5
20.6
Note
Note
Switching t th S it hi at the network layer in the t kl i th Internet uses the datagram approach to packet switching. k t it hi
20.7
20.8
packets from routers input to appropriate p pp p router output route taken by packets from source to dest.
routing algorithms
routing: determine
1
3 2
20.9
20.10
Decentralized switching:
given datagram dest., lookup output port using forwarding table in input port y memory goal: complete input port processing at line speed queuing: if datagrams arrive faster than forwarding rate into switch fabric
20.11
20.12
System Bus
20.13
20.14
datagram from input port memory to output port memory via a shared bus bus b contention: switching speed t ti it hi d limited by bus bandwidth 32 Gbps bus, Cisco 5600: sufficient speed for access and enterprise routers
overcome bus bandwidth limitations Banyan networks, other interconnection nets initially y , y developed to connect processors in multiprocessor advanced design: fragmenting datagram into fixed length cells switch cells through the fabric cells, fabric. Cisco 12000: switches 60 Gbps through the interconnection network
20.15
20.16
Output Ports p
buffering when arrival rate via switch exceeds output line speed
20.19
20.20
Network layer
forwarding f di table
20.23
20.24
IP datagram format
IP protocol version t l i number header length (bytes) type of data max number remaining hops g p (decremented at each router) upper layer protocol to deliver payload to how much overhead with TCP? 20 bytes of TCP 20 bytes of IP = 40 bytes + app layer overhead
32 bits ver head. type of len service flgs length fragment offset header checksum
20.25
20.26
Note
The Th precedence subfield was part of d bfi ld t f version 4, but never used.
20.27
20.28
Note
The total length field defines the total Th t t l l th fi ld d fi th t t l length of the datagram including the header. h d
20.29
20.30
20.31
20.32
Example 20.1
Table 20.4 Protocol values
An IPv4 packet has arrived with the first 8 bits as shown: 01000010 The receiver discards the packet. Why? Solution There is an error in this packet. The 4 leftmost bits (0100) show the version, which is correct. The next 4 bits (0010) show an invalid header length (2 4 = 8). The minimum number of bytes in the header must be 20. The packet has been corrupted in transmission.
20.33
20.34
Example 20.3
Figure 20 9 M i 20.9 Maximum transfer unit (MTU) t f it
In an IPv4 packet, the value of HLEN is 5, and the value of the total length field is 0x0028. How many bytes of data are being carried by this packet? Solution The HLEN value is 5, which means the total number of bytes in the header is 5 4, or 20 bytes (no options). The total length is 40 bytes, which means the packet is carrying 20 bytes of data (40 20).
20.35
20.36
reassembly
20.37
20.38
One large datagram becomes several smaller datagrams length ID =1500 =x fragflag =1 fragflag =1 fragflag =0 offset =0 offset =185 offset =370
20.39
20.40
20.41
20.42
Reassembly
Figure 20 14 T 20.14 Taxonomy of options in IPv4 f ti i IP 4
When the fragments arrive what strategy should be used to reassemble them? (they may be out of order)
Solution 1. The fist fragment has an offset field value of zero. g 2. Divide the length of the first fragment by 8. The second fragment has an offset value equal to that result. 3. 3 Divide the total length of the first and second fragment by 8 8. The third fragment has an offset value equal to that result. 4. Continue the process. The last fragment has a more bit value of 0.
20.43
20.44
IPv6
Initial motivation: 32-bit address space soon to be completely allocated. Additional motivation:
header format helps speed p processing/forwarding g/ g header changes to facilitate QoS IPv6 datagram format: fixed-length 40 byte header no fragmentation allowed
Advantages of IPv6
1. Better address space 2. Better header format 3. New options 4. Allowance of extension 5. Support for resource allocation 6. Support for more security
20.47
20.48
Figure 20.16 Format of an IPv6 datagram Figure 20 15 IP 6 d t 20.15 IPv6 datagram h d and payload header d l d
20.49
20.50
20.53
20.54
20.55
20.56
Table 20.10 Comparison between IPv4 options and IPv6 extension headers
20.57
20.58
20.59
20.60
20.61
20.62
Tunneling
Figure 20 21 H d translation strategy 20.21 Header t l ti t t
Logical view: A
IPv6
B
IPv6
tunnel
E
IPv6
F
IPv6
A Physical view:
IPv6
Flow: X Src: A Dest: F
B
IPv6
C
IPv4
D
IPv4
E
IPv6 IP 6
F
IPv6 IP 6
Flow: X Src: A Dest: F
Src:B Dest: E
Flow: X Src: A Dest: F
Src:B Dest: E
Flow: X Src: A Dest: F
data
data
data
data
A-to-B: IPv6 IP 6
E-to-F: IPv6 IP 6
20.63
20.64
20.65