Professional Documents
Culture Documents
Contents
1 Introduction to IP 3
1.1 The Properties of the IP Protocol 4
1.2 Structure of an IP Packet 4
2 IP Addressing 5
2.1 Addressing on the Network Layer 6
2.2 Structured Addresses 8
2.3 Subnetworks and Subnetwork Masks 22
3 The ARP Protocol Family 33
3.1 The Address Resolution Protocol ARP 34
3.2 The Reverse Address Resolution Protocol RARP 34
3.3 Proxy-ARP 36
4 Routing 39
4.1 What is Routing? 40
4.2 Routing Principles 42
4.3 Routing Protocols 48
5 The IP Packet Revisited 75
5.1 Internet Protocol (IP) 76
6 Internet Control Message Protocol (ICMP) 83
6.1 ICMP Characteristics 84
6.2 ICMP Messages 86
6.3 ICMP Queries 88
6.4 ICMP Error Reports 90
6.5 ICMP Applications 92
7 Appendix 97
7.1 IP 98
TG7020XEN02GLA1
2009 Nokia Siemens Networks
1
Appendix - The Network Layer
TG7020XEN02GLA1
2 2009 Nokia Siemens Networks
Appendix - The Network Layer
1 Introduction to IP
Fig. 1 Introduction to IP
TG7020XEN02GLA1
2009 Nokia Siemens Networks
3
Appendix - The Network Layer
TG7020XEN02GLA1
4 2009 Nokia Siemens Networks
Appendix - The Network Layer
2 IP Addressing
TG7020XEN02GLA1
2009 Nokia Siemens Networks
5
Appendix - The Network Layer
TG7020XEN02GLA1
6 2009 Nokia Siemens Networks
Appendix - The Network Layer
Problem: MAC addresses are distributed randomly all over the network,
there is no logical structure.
MAC MAC
MAC MAC
Bridge MAC
MAC
Bridge Bridge
Bridge
MAC MAC
MAC MAC Bridge
MAC
Network address
Network address
MAC address
MAC address
Router Router
Router
Network address
Network address Router
MAC address
MAC address
Every station
has a MAC address
and a network address
TG7020XEN02GLA1
2009 Nokia Siemens Networks
7
Appendix - The Network Layer
TG7020XEN02GLA1
8 2009 Nokia Siemens Networks
Appendix - The Network Layer
CC
CC NDC
NDC SN
SN
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TG7020XEN02GLA1
2009 Nokia Siemens Networks
9
Appendix - The Network Layer
IP addresses consist of a network part (network prefix) and a host part ...
IP addresses are structured addresses; i.e. one part identifies the network and one
part a certain host within a network. This contributes to better handling of message
transmission through networks.
TIP
This can for example be compared with a central directory number for a Siemens
branch office and the subsequent extension to the individual telephone.
TG7020XEN02GLA1
10 2009 Nokia Siemens Networks
Appendix - The Network Layer
32 Bit IP Address
Network
Network Host
Host
The
Thehost
hostpart
partofofthe
theaddress
address
The
Thenetwork
networkpart
partofofthe
theaddress
address identifies
identifies identifies a certainhost
a certain host
identifies a certainnetwork
a certain network within
withinthe
thenetwork
network
Router Router
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TG7020XEN02GLA1
2009 Nokia Siemens Networks
11
Appendix - The Network Layer
TG7020XEN02GLA1
12 2009 Nokia Siemens Networks
Appendix - The Network Layer
Byte z
Byte z
Byte z
Byte
Decimal
Notation 85 z
11 z
117 z
4
Binary
Notation 01010101 z 00001011 z 01110101 z 00000100
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TG7020XEN02GLA1
2009 Nokia Siemens Networks
13
Appendix - The Network Layer
Class D
Class D addresses are used for multicast groups. The four most significant bits are
always set to 1110. Multicast addresses operate in a range from 224.0.0.0 to
239.255.255.255.
Class E
Class E addresses are used for experimental purposes and are not available for
general use. The four most significant bits are always set to 1111.
TIP
Class D and Class E addresses are never used for addressing end user devices.
TG7020XEN02GLA1
14 2009 Nokia Siemens Networks
Appendix - The Network Layer
Class A N H H H
0 7 Bits 24 Bits
Range: (1-126)
Class B N N H H
10 14 Bits 16 Bits
Range: (128-191)
Class C N N N H
110 21 Bits 8 Bits
Range: (192-223)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TG7020XEN02GLA1
2009 Nokia Siemens Networks
15
Appendix - The Network Layer
TG7020XEN02GLA1
16 2009 Nokia Siemens Networks
Appendix - The Network Layer
Application
Destination
127.0.0.1
TCP
IP
Data Link Layer
Directed
Directed Broadcast
Broadcast to
to
SIEMENS
NIXDORF
DA=201.3.3.255
DA=201.3.3.255 network
network 201.3.3.0
201.3.3.0 by
by default
default disabled
disabled
192.16.1.1
192.16.1.1
Router
Network
Network addr.
addr. 192.16.1.0
192.16.1.0
DA=255.255.255.255
DA=255.255.255.255
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TG7020XEN02GLA1
2009 Nokia Siemens Networks
17
Appendix - The Network Layer
TG7020XEN02GLA1
18 2009 Nokia Siemens Networks
Appendix - The Network Layer
10.0.0.0
1 A
10.255.255.254
172.16.0.0
16 B
172.31.255.254
192.168.1.0
256 C
192.168.255.254
IANA / ICANN
Local IR Local IR
Enterprise
Local IR
TG7020XEN02GLA1
2009 Nokia Siemens Networks
19
Appendix - The Network Layer
Examples
The following diagram shows the input of an IP address under Windows NT,
Windows 9x or Windows 2000
For a CISCO router the command would be:
cisco# conf t
cisco# interface e0
cisco# ip address 132.76.250.55 255.255.255.0
TG7020XEN02GLA1
20 2009 Nokia Siemens Networks
Appendix - The Network Layer
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TG7020XEN02GLA1
2009 Nokia Siemens Networks
21
Appendix - The Network Layer
TG7020XEN02GLA1
22 2009 Nokia Siemens Networks
Appendix - The Network Layer
0 8 16 24 31
Network part Host part
IP Address
Subnet
Host
Routers are used to
connect subnetworks. Router
Router
TG7020XEN02GLA1
2009 Nokia Siemens Networks
23
Appendix - The Network Layer
TIP
The subnetwork mask contains a contiguous number of "1" followed by a contiguous
number of "0". The number of bits set to "1" is also referred to as "prefix length".
Example:
Filtering the IP address 85.139.117.4 with the subnetwork mask 255.192.0.0
produces the network address 85.128.0.0.
In the example below, the subnetwork mask 255.192.0.0 is used to create
subnetwork 85.128.0.0. Using this mask, a second subnetwork can be created
(85.64.0.0). A router may be used to link both subnetworks.
TG7020XEN02GLA1
24 2009 Nokia Siemens Networks
Appendix - The Network Layer
Subnetwork
Mask 255z192z 0 z 0 11111111z11 000000z00000000z00000000
Network Part
of the Address 85 z128z 0 z 0 01010101z10 000000z00000000z00000000
Computer Part of
the Address 0 z 11 z117 z 4 00000000z00 001011z01110101z00000100
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TG7020XEN02GLA1
2009 Nokia Siemens Networks
25
Appendix - The Network Layer
Default Gateway
When a host is willing to send it has to decide whether the destination host is in the
same subnetwork or in another one. In the latter case the default gateway must be
used to forward the IP packet. This creates interaction between IP addresses,
subnetwork mask and the so-called default gateway.
Example
Let us assume that station 85.128.0.1 wants to send an IP packet to a station that is
not part of the same subnetwork. Station 85.128.0.1 determines its own subnetwork
address by filtering its own IP address through the configured subnetwork mask.
It then determines the network address of the destination station by filtering
destination IP address using the locally configured subnetwork mask. If the two
network addresses do not match, the packet cannot be transmitted locally, but must
be forwarded to the default gateway for further transmission.
When you look at your computers network settings, the TCP/IP settings will generally
be the value pair IP address, subnetwork mask and default gateway.
TG7020XEN02GLA1
26 2009 Nokia Siemens Networks
Appendix - The Network Layer
Router
Router
The router isislinked
The router linkedtotoall
all Nextrouter
Next router
subnets and, in this instance,
subnets and, in this instance,
alsoforms
also formsthe
thedefault
defaultgateway
gateway
for both networks
for both networks Router
85.128.0.3
1. Subnet 85.128.0.0; Mask 255.192.0.0
Router
85.64.0.1
85.128.0.1 85.128.0.2
OriginalNetwork
Original Network
85.x.x.x
85.x.x.x 85.64.0.3 85.64.0.2
Fig. 17 Input mask with IP address, subnetwork mask and default gateway for a popular operating system
TG7020XEN02GLA1
2009 Nokia Siemens Networks
27
Appendix - The Network Layer
NOTE
When defining subnetwork masks, it must be taken into consideration that some digit
combinations are reserved, for example, for broadcast addresses and are therefore
not available. This reduces the number of possible subnetworks and hosts.
The available address space must be large enough, to cover the required number of
subnets and hosts.
TG7020XEN02GLA1
28 2009 Nokia Siemens Networks
Appendix - The Network Layer
1. Number of subnets 6
4+2=
2. Establishing the 0 0 0 0 0 1 1 0 (3Bits)
necessary bits
3. Set to most
significant digit 11111111 11111111 11100000 00000000
00000000 = 0= reserved
00100000 = 32 = Subnet 1
01000000 = 64 = Subnet 2
01100000 = 96 = Subnet 3
10000000 = 128 = Subnet 4
10100000 = 160 = Subnet 5
11000000 = 192 = Subnet 6
11100000 = 224 = reserved
TG7020XEN02GLA1
2009 Nokia Siemens Networks
29
Appendix - The Network Layer
TG7020XEN02GLA1
30 2009 Nokia Siemens Networks
Appendix - The Network Layer
TG7020XEN02GLA1
2009 Nokia Siemens Networks
31
Appendix - The Network Layer
TG7020XEN02GLA1
32 2009 Nokia Siemens Networks
Appendix - The Network Layer
TG7020XEN02GLA1
2009 Nokia Siemens Networks
33
Appendix - The Network Layer
Try it
With the command:
arp -a
you will get the ARP cache table, which contains the relation between MAC
addresses and IP addresses.
TIP
Today RARP is seldom used. It has been replaced by other protocols like DHCP and
BOOTP.
TG7020XEN02GLA1
34 2009 Nokia Siemens Networks
Appendix - The Network Layer
Host A
ARP Request - Broadcast to all hosts
SIEMENS
NIXDORF
What is the hardware address for IP address 128.0.10.4?
ARP Reply
SIEMENS
NIXDORF
SIEMENS
NIXDORF
Host B
IP Address: 128.0.10.4
HW Address: 080020021545
TG7020XEN02GLA1
2009 Nokia Siemens Networks
35
Appendix - The Network Layer
3.3 Proxy-ARP
If an existing network is split up into several subnets Proxy ARP is method to avoid a
modification to the existing IP routing algorithm in the existing hosts, but with
modifications to the routers that interconnect the subnets.
Proxy-ARP Concept
Consider one IP network that is divided into subnets and interconnected by routers.
We use the existing IP routing algorithm, which means that no host knows about the
existence of multiple physical networks.
Consider hosts A and B, which are on different physical networks within the same IP
network, and a router R between the two subnetworks:
When host A wants to send an IP datagram to host B, it first has to determine the
physical network address of host B through the use of the ARP protocol. As host A
cannot differentiate between the physical networks, its IP routing algorithm thinks that
host B is on the local physical network and sends out a broadcast ARP request. Host
B doesn't receive this broadcast, but router R does.
Router R understands subnets, that is, it runs the subnet version of the IP routing
algorithm and it will be able to see that the destination of the ARP request (from the
target protocol address field) is on another physical network. If router R's routing
tables specify that the next hop to that other network is through a different physical
device, it will reply to the ARP as if it were host B, saying that the network address of
host B is that of the router R itself.
Host A receives this ARP reply, puts it in its cache and will send future IP packets for
host B to the router R. The router will forward such packets to the correct subnet.
The result is transparent subnetting:
Normal hosts (such as A and B) don't know about subnetting, so they use the old
IP routing algorithm.
The routers between subnets have to:
1. Use the subnet IP routing algorithm.
2. Use a modified ARP module, which can reply on behalf of other hosts.
TG7020XEN02GLA1
36 2009 Nokia Siemens Networks
Appendix - The Network Layer
A
B
Router R
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TG7020XEN02GLA1
2009 Nokia Siemens Networks
37
Appendix - The Network Layer
TG7020XEN02GLA1
38 2009 Nokia Siemens Networks
Appendix - The Network Layer
4 Routing
Router
Switch
Router Router
Router
Router
Switch
Which
Which way
way
to
to go ??
go
Fig. 23
TG7020XEN02GLA1
2009 Nokia Siemens Networks
39
Appendix - The Network Layer
TG7020XEN02GLA1
40 2009 Nokia Siemens Networks
Appendix - The Network Layer
Network:
Netz USA.x.x.x
usa.x.x.x Network:
Netz Europe.x.x.x
europe.x.x.x
Router
Router Router
Network:
Netz Europe.France.x.x
europe.france.x.x
Router
Router Network:
Netz USA.Texas.x.x
usa.texas.x.x
Network:
Netz Europe.France.Paris.x
europe.france.paris.x
Network:
Netz USA.Texas.Houston.x
usa.texas.houston.x
Computer 1 Computer 2
Network address: Network address:
usa.texas.houston.host_1 europe.france.paris.host_1
Fig. 24 Addressing on the network layer the advantages of the routing concept
NOTE
Please do not confuse the names used here with symbolic names. They merely
indicate a hierarchical structure and could also be replaced by numerical values, e.g.
IP addresses. We will look at symbolic names later.
TG7020XEN02GLA1
2009 Nokia Siemens Networks
41
Appendix - The Network Layer
TIP
To explain the routing principles, in the following we will use the IP protocol as an
example.
Direct Routing
If two computers are located within the same (sub-) network, a packet can be
delivered without a router. The destination hardware address corresponding to the
destination IP address is determined. Afterwards, the IP packet is embedded in an
appropriate layer 2 transmission frame. In IP-based LANs, the mechanism of
determining the hardware address is implemented by the so-called ARP protocol.
TG7020XEN02GLA1
42 2009 Nokia Siemens Networks
Appendix - The Network Layer
Direct routing allows the local delivery of an IP packet without using a router
IP address IP address
MAC MAC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TG7020XEN02GLA1
2009 Nokia Siemens Networks
43
Appendix - The Network Layer
Indirect Routing
We speak of "indirect routing" when the destination host is not located within the
same (sub-) network:
The default gateway's layer two address is determined using the ARP protocol
(see below)
The IP packet is embedded in an appropriate layer 2 transmission frame and sent
to the default gateway
The default gateway decapsulates the IP packet from the layer two frame and
makes its routing decision based on the (sub-) network part of the packet's
"destination address"
The router's interface towards the destination (sub-) network is determined and the
packet is forwarded through it using the next router's layer 2 address
Each router repeats this process. This principle is also referred to as hop-by-hop
routing.
TG7020XEN02GLA1
44 2009 Nokia Siemens Networks
Appendix - The Network Layer
Router
Router
Router
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TG7020XEN02GLA1
2009 Nokia Siemens Networks
45
Appendix - The Network Layer
Routing tables
A routers stored knowledge is located within its routing table. An entry in a routing
table contains at least three items:
The destination (sub-) network address (this is also called a "prefix")
The IP address of the next router (next hop)
The egress port
Mostly the costs to the destination (sub-) network is included as well (dynamic routing
see below)
The following commands can be used to read the contents of a routing table:
TIP
Generally, in a multiprotocol router each network layer protocol uses its own routing
process and its own routing table. This is also called "ships in the night" routing.
TG7020XEN02GLA1
46 2009 Nokia Siemens Networks
Appendix - The Network Layer
Routing IP Packet
Process
Routing
Table
IP Packets DA
SA
DA
SA
DA DA
SA SA
192.16.3.0
192.16.3.0
Router
Router 192.16.4.0
192.16.4.0
192.16.1.0
192.16.1.0
192.16.2.0
192.16.2.0
All addresses starting with ...have to be delivered via the router with
132.76.250 (Prefix).... IP address 132.76.250.55 (next hop).
TG7020XEN02GLA1
2009 Nokia Siemens Networks
47
Appendix - The Network Layer
Static Routing
Manual configuration is used to establish entries into the routing tables
Dynamic Routing
Routing protocols are used for dynamic establishment and update of entries into a
routing table.
Example
In the example below, host A has direct routes to host B and routers D and F, and an
indirect route to host C. Router D is located between networks 128.10.0.0 and
128.15.0.0. Router D has two interfaces with an IP address allocated to each. Router
F is a located between networks 128.15.0.0 and 129.7.0.0. Router F has also two
interfaces with an IP address allocated to each.
The IP routing table of host D will contain the following entries:
TIP
It is quite obvious that manually maintained routing tables can only be used for small
networks, and even then the burden that may result from reconfiguring a network is
considerable.
Configuration examples:
Command Operating System
route add 129.7.0.0 mask 255.255.0.0 Windows
128.15.1.2 metric 1
ip route 129.7.0.0 255.255.0.0 CISCO IOS
128.15.1.2
TG7020XEN02GLA1
48 2009 Nokia Siemens Networks
Appendix - The Network Layer
E C Net
128.10.0.0
Eth0:128.10.1.1 / 255.255.0.0
Router D
Net
Eth1: 128.15.2.4 / 255.255.0.0
128.15.0.0
Eth0:128.15.1.2 / 255.255.0.0
A B
Router F
Net
Eth1: 129.7.1.80 / 255.255.0.0 129.7.0.0
G H
TG7020XEN02GLA1
2009 Nokia Siemens Networks
49
Appendix - The Network Layer
TG7020XEN02GLA1
50 2009 Nokia Siemens Networks
Appendix - The Network Layer
The Internet
Autonomous
AS System
AS Exterior Gateway
Protocols are used
for routing between
autonomous systems
AS
AS
Interior Gateway Protocols are
used for routing decisions
within an autonomous system.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TG7020XEN02GLA1
2009 Nokia Siemens Networks
51
Appendix - The Network Layer
TG7020XEN02GLA1
52 2009 Nokia Siemens Networks
Appendix - The Network Layer
A
A specific
specific value
value for
for the
the
metric
metric is
is valid
valid for
for
aa connection.
connection.
33 Router C
Router E
11 11
10
10
Router A
Router D
192.16.8.0
192.16.8.0
22
192.16.1.0
192.16.1.0
11
Router B
The
The best
best way
way from
from network
network 192.16.1.0
192.16.1.0
to
to network
network 192.16.8.0
192.16.8.0 is
is via
via
Router
Router A,
A, B,
B, D,
D, and
and EE because
because
the
the overall-metric
overall-metric is
is minimal.
minimal.
2 Hops
1 Hop 1 Hop
192.16.1.0
192.16.1.0 Flow
Flow of
of routing
routing 192.16.7.0
192.16.7.0
information
information
192.16.5.0
192.16.5.0
Fig. 33 The principle of a distance vector routing protocol using hopcount as a metric
TG7020XEN02GLA1
2009 Nokia Siemens Networks
53
Appendix - The Network Layer
Slow convergence
The limited amount of information leads to a problem that is referred to as "slow
convergence". Convergence time is the time required to pass information on topology
changes throughout the network. Distance vector routing protocols show a long
convergence time. The following examples show why this is the case:
Example 1:
Assume a network scenario as shown in the diagram below:
When the network is turned on, each router only knows the directly connected
networks
Routing updates are sent periodically
After the first update each router is also informed about networks which are
reachable via the next hop
After the second update each router is additionally informed about networks which
are reachable via 2 hops
After the third update router A and router D finally know about the distant networks
which are reachable via 3 hops
Therefore several cycles are required until the presence of all networks is known
throughout the entire network.
TG7020XEN02GLA1
54 2009 Nokia Siemens Networks
Appendix - The Network Layer
192.16.3.0
192.16.3.0
192.16.2.0
192.16.2.0 192.16.6.0
192.16.6.0
192.16.4.0
192.16.4.0
192.16.1.0
192.16.1.0 192.16.7.0
192.16.7.0
192.16.5.0
192.16.5.0
192.16.1.0
192.16.1.0 00 LL 192.16.2.0
192.16.2.0 00 LL 192.16.4.0
192.16.4.0 00 LL 192.16.6.0
192.16.6.0 00 LL
192.16.2.0
192.16.2.0 00 LL 192.16.3.0
192.16.3.0 00 LL 192.16.5.0
192.16.5.0 00 LL 192.16.7.0
192.16.7.0 00 LL
192.16.4.0
192.16.4.0 00 LL 192.16.6.0
192.16.6.0 00 LL
192.16.1.0
192.16.1.0 00 LL 192.16.2.0
192.16.2.0 00 LL 192.16.4.0
192.16.4.0 00 LL 192.16.6.0
192.16.6.0 00 LL
192.16.2.0
192.16.2.0 00 LL 192.16.3.0
192.16.3.0 00 LL 192.16.5.0
192.16.5.0 00 LL 192.16.7.0
192.16.7.0 00 LL
192.16.3.0
192.16.3.0 11 B
B 192.16.4.0
192.16.4.0 00 LL 192.16.6.0
192.16.6.0 00 LL 192.16.5.0
192.16.5.0 11 C
C
192.16.4.0
192.16.4.0 11 B
B 192.16.1.0
192.16.1.0 11 A
A 192.16.3.0
192.16.3.0 11 B
B 192.16.4.0
192.16.4.0 11 C
C
192.16.5.0
192.16.5.0 11 C
C 192.16.2.0
192.16.2.0 11 B
B
LL Locally 192.16.6.0
192.16.6.0 11 C
C 192.16.7.0
192.16.7.0 11 D
D
Locally connected
connected
192.16.1.0
192.16.1.0 00 LL 192.16.2.0
192.16.2.0 00 LL 192.16.4.0
192.16.4.0 00 LL 192.16.6.0
192.16.6.0 00 LL
192.16.2.0
192.16.2.0 00 LL 192.16.3.0
192.16.3.0 00 LL 192.16.5.0
192.16.5.0 00 LL 192.16.7.0
192.16.7.0 00 LL
192.16.3.0
192.16.3.0 11 B
B 192.16.4.0
192.16.4.0 00 LL 192.16.6.0
192.16.6.0 00 LL 192.16.5.0
192.16.5.0 11 C
C
192.16.4.0
192.16.4.0 11 B
B 192.16.1.0
192.16.1.0 11 A
A 192.16.3.0
192.16.3.0 11 B
B 192.16.4.0
192.16.4.0 11 C
C
192.16.5.0
192.16.5.0 22 B
B 192.16.5.0
192.16.5.0 11 C
C 192.16.2.0
192.16.2.0 11 B
B 192.16.3.0
192.16.3.0 22 C
C
192.16.6.0
192.16.6.0 22 B
B 192.16.6.0
192.16.6.0 11 C
C 192.16.7.0
192.16.7.0 11 D
D 192.16.2.0
192.16.2.0 22 C
C
192.16.7.0
192.16.7.0 22 C
C 192.16.1.0
192.16.1.0 22 B
B
192.16.1.0
192.16.1.0 00 LL 192.16.2.0
192.16.2.0 00 LL 192.16.4.0
192.16.4.0 00 LL 192.16.6.0
192.16.6.0 00 LL
192.16.2.0
192.16.2.0 00 LL 192.16.3.0
192.16.3.0 00 LL 192.16.5.0
192.16.5.0 00 LL 192.16.7.0
192.16.7.0 00 LL
192.16.3.0
192.16.3.0 11 B
B 192.16.4.0
192.16.4.0 00 LL 192.16.6.0
192.16.6.0 00 LL 192.16.5.0
192.16.5.0 11 C
C
192.16.4.0
192.16.4.0 11 B
B 192.16.1.0
192.16.1.0 11 A
A 192.16.3.0
192.16.3.0 11 B
B 192.16.4.0
192.16.4.0 11 C
C
192.16.5.0
192.16.5.0 22 B
B 192.16.5.0
192.16.5.0 11 C
C 192.16.2.0
192.16.2.0 11 B
B 192.16.3.0
192.16.3.0 22 C
C
192.16.6.0
192.16.6.0 22 B
B 192.16.6.0
192.16.6.0 11 C
C 192.16.7.0
192.16.7.0 11 D
D 192.16.2.0
192.16.2.0 22 C
C
192.16.7.0
192.16.7.0 33 B
B 192.16.7.0
192.16.7.0 22 C
C 192.16.1.0
192.16.1.0 22 B
B 192.16.1.0
192.16.1.0 33 C
C
Fig. 35 Distribution of routing information with distance vector routing protocol (cont.)
TG7020XEN02GLA1
2009 Nokia Siemens Networks
55
Appendix - The Network Layer
In the case of a failing network, the convergence time may be exceptionally long:
Example 2
Assume a network scenario as shown in the diagram below:
Theoretically there are two possible paths from each source network towards
network "alpha"
Routers C chooses a route via 2 hops to network "alpha" via router B
Routers D chooses a route via 2 hops to network "alpha" via router B
Router C propagates its route towards network "alpha" to router D
Router D propagates its route towards network "alpha" to router C
However, this announcement has no effect since both routers have already a
better direct route via router B
Count-to-Infinity
With each exchange of routing information, the number of hops associated with the
route towards network "alpha" is increased until a threshold value is reached and the
route is detected as unusable. Without these thresholds, the routers would continue
to count indefinitely (count-to-infinity problem).
TG7020XEN02GLA1
56 2009 Nokia Siemens Networks
Appendix - The Network Layer
Router C
metric=1
SIEMENS
NIXDORF
metric=1
metric=1 Router B
metric=1
Router A
Router D
Network name:
alpha
Status=down Router C
Status=up
metric=1 Router C
metric=1 metric=1
Router B
Router A metric=1
Router D
TG7020XEN02GLA1
2009 Nokia Siemens Networks
57
Appendix - The Network Layer
TG7020XEN02GLA1
58 2009 Nokia Siemens Networks
Appendix - The Network Layer
1 1
Router A Router B Router C
3 a) Standard RIP
A informs B about a connection to C with length = 2
Distance to C = 2
b) Split horizon
A does not inform B about the connection to C via B
c) Reverse poison
A informs B about a connection to C with length = 16
Distance to C = 16
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TG7020XEN02GLA1
2009 Nokia Siemens Networks
59
Appendix - The Network Layer
General
The growth in the size of internetworks in recent years has necessitated the
replacement of distance vector routing protocols with alternatives that address the
shortcomings of those. These new protocols have been based on link state or
shortest path first algorithms. The best example is the OSPF Protocol.
Hello packets
Routers contact neighbors by sending hello packets on their network interfaces. Hello
packets are sent directly to neighbors on point-to-point links and non-broadcast
networks. On LANs, hello packets are sent to a group or multicast IP address that
can be received by all routers. Neighbors who receive hellos from a router should
reply with hello packets that include the identity of that originating router.
TG7020XEN02GLA1
60 2009 Nokia Siemens Networks
Appendix - The Network Layer
SPF
Router 1 Router 4
Router 2 Router 3
My links to My links to
R1 and R3 are up, R2 and R4 are up.
my link to R4 is down.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TG7020XEN02GLA1
2009 Nokia Siemens Networks
61
Appendix - The Network Layer
Flooding
Distribution of LSPs would normally be on the basis of each router's routing tables.
However, this leads to a chicken and egg situation. Routing tables would rely on
LSPs for their creation and LSPs would rely on routing tables for their distribution. A
simple scheme called flooding overcomes this, and ensures that LSPs are
successfully distributed to all routers in a network.
Flooding requires that a router that receives an LSP transmits it to all neighbors
except the one from which it was received. All LSPs must be explicitly acknowledged
to ensure successful delivery, and they are sequenced and time stamped to ensure
duplicates are not received and retransmitted.
When a router receives an LSP it looks into its database to check the sequence
number of the last LSP from the originator. If the sequence number is the same as, or
earlier than, the sequence number of the LSP in its database, then the LSP is
discarded. Otherwise the LSP is added to the database.
The flooding process ensures that all routers in a network have the same link state
information. All routers are then able to compute the same shortest path tree
topology map for the network, and hence select best routes to all destinations.
TG7020XEN02GLA1
62 2009 Nokia Siemens Networks
Appendix - The Network Layer
11
Router A Router C 33
22 11 Router E
33
44
Router B Router D
A
A C
B D
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TG7020XEN02GLA1
2009 Nokia Siemens Networks
63
Appendix - The Network Layer
4.3.4 RIP
4.3.4.1 RIPv1
RIP (= Routing Information Protocol) is now a somewhat old distance vector protocol.
It was developed at a time when networks were still rather small and trunks with
different speeds were rather rare. Bearing these facts in mind, it is easier to
understand some of RIPs peculiarities.
Slow convergence
The fact that the receiving router does not know which stations are part of the route
to a certain destination can lead to so-called routing loops and very slow
convergence in the event of faults. This manifests itself in the fact that a fault within a
route only becomes known with considerable delay in the network.
RIP is a distance vector protocol, which means that the count to infinity problem may
occur. As already discussed in the section dealing with slow convergence, affected
routers increment the metric entries in their routing tables until a certain threshold
value is reached. This value is 16. Since updates are only sent every 30 seconds, up
to 15*30 seconds may pass until the affected routers realize that a certain physical
connection is no longer available.
The infinity threshold value does however also determine the maximum extent of a
network. For networks with connections of more than 15 hops, RIP is not suitable.
TIP
When using RIP-1, subnet masks have to be uniform across the entire network-
prefix. RIP-1 allows only a single subnet mask to be used within each network
number because it does not provide subnet mask information as part of its routing
table update messages.
TG7020XEN02GLA1
64 2009 Nokia Siemens Networks
Appendix - The Network Layer
RIPv1
Distribution of Routing Tables
to adjacent routers
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TG7020XEN02GLA1
2009 Nokia Siemens Networks
65
Appendix - The Network Layer
4.3.4.2 RIPv2
RIP Version 2 was defined to overcome some of the limitations of RIP Version 1
without impacting on the advantages of RIP, i.e. its simplicity and easy
administration. RIP Version 2 has the following new features:
Transmission subnetwork masks
Authentication
Route Tag
Use of multicast addresses.
Subnetwork masks
RIPv2 allows the transmission of subnetwork masks and thus supports improved
network structuring.
Authentication
Authentication offers protection from unauthorized routing advertising that could
impair the security of a network. The original specification only envisages the use of a
plain text password, but for future specifications, other more complex mechanisms
could be considered.
Route Tag
Is a field intended for communicating additional information about the origin of the
route information? It is intended for interoperation between RIP and other routing
protocols. RIP-2 implementations must preserve this tag, but RIP-2 does not further
specify how it is to be used.
Multicast addresses
RIP Version 1 uses broadcast messages to forward routing information. RIP Version
2 can optionally use multicast messages to update tables so those devices that do
not implement RIP are also not subject to a load.
TG7020XEN02GLA1
66 2009 Nokia Siemens Networks
Appendix - The Network Layer
RIPv2
Authentication
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TG7020XEN02GLA1
2009 Nokia Siemens Networks
67
Appendix - The Network Layer
4.3.5 OSPF
Hierarchies in OSPF
In addition to the weaknesses already mentioned, a further drawback of RIP is that it
does not permit simple network structuring. This situation can be improved
considerably with the OSPF protocol, which we will discuss now.
OSPF properties
OSPF is based on a link state algorithm. All routers of a particular area inform each
other about which connected routers or networks they can access. In OSPF these
messages are referred to as LSAs (link state advertisements). Link state
advertisements contain information on known network addresses as well as the
subnetwork mask used in conjunction with the relevant address. OSPF supports
subnetworks and subnetwork masks of different lengths. Various metrics can be
used to evaluate the connections.
OSPF supports three types of connections and networks:
point-to-point connections between two routers,
multiconnected networks that allow broadcasts (usually LANs),
multiconnected networks that do not allow broadcasts (e.g. packet-switched
WANs).
Link status-oriented protocols take into consideration the status of the connections
and report the failure of a connection in the area. The convergence of OSPF is
therefore much quicker than that of RIP.
TG7020XEN02GLA1
68 2009 Nokia Siemens Networks
Appendix - The Network Layer
Autonomous System
AS
Backbone
Backbone Area
Area
Router
Router
Router Router
Router
Router
Router B
TG7020XEN02GLA1
2009 Nokia Siemens Networks
69
Appendix - The Network Layer
Routing levels
There are also conceptual differences within the scope of the so-called routing levels.
OSPF knows three routing levels:
routes within one area (intra-area). If two stations within one area want to
communicate with each other they can use internal routers.
routes between areas (inter-area). If two stations within different areas want to
communicate with each other they choose a route that leads via an area border
router (which is also the backbone router) via the backbone area to the destination
area and its border area router.
Autonomous system external routes. If a station within one area wants to
communicate with the station of another autonomous system it selects a route via
an area border router to an AS boundary router that knows the route to the
destination autonomous target system.
TG7020XEN02GLA1
70 2009 Nokia Siemens Networks
Appendix - The Network Layer
AS Boundary
Autonomous
Autonomous System
System Router
AS
AS
Backbone
Backbone Area
Area Router AS
AS
External
External Route
Route
Backbone
Backbone Router Router
Router
Router
Area
Area Border
Border
Router
Router Router Router Inter
Inter Area
Area
Route
Route
Internal
Internal Router
Router
Router Router Router
Router Area
Area 22
Area
Area 11
Intra
Intra Area
Area
Route
Route
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TG7020XEN02GLA1
2009 Nokia Siemens Networks
71
Appendix - The Network Layer
TIP
Use static routing instead
TG7020XEN02GLA1
72 2009 Nokia Siemens Networks
Appendix - The Network Layer
Default
Default route
route
AS: 20 used
used here
here AS: 40
AS: 30
Router Router
Router
Router Router Router Router
Router
Router
Router Router
Stub network Stub network
Multiconnected
network
Between
Between networks,
networks,
The
The AS
AS numbers
numbers (1-65535
(1-65535 )) are
are used
used to
to policy
policy based
based routing
routing
detect
detect routing
routing loops
loops The
The AS
AS numbers
numbers can
can be
be used
used
64512
64512 to
to 65535
65535 are
are reserved
reserved for
for private
private ASes
ASes
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TG7020XEN02GLA1
2009 Nokia Siemens Networks
73
Appendix - The Network Layer
TG7020XEN02GLA1
74 2009 Nokia Siemens Networks
Appendix - The Network Layer
Fig. 47 IP
TG7020XEN02GLA1
2009 Nokia Siemens Networks
75
Appendix - The Network Layer
Fragmentation
On layer 2, different transmission methods can be used that stipulate different
maximum lengths for the transmission of a packet. This is taken into account by the
capability of IP to fragment datagrams.
Addressing terminals
IP provides a datagram transmission service. It must be possible to transmit both
originator and destination addresses.
Transmission integrity
If you look at an IP packet as a pure means of transport, like a container, it should be
ensured that the container arrives correctly at its destination. The recipient must
determine whether the content was destroyed during transit.
Quality of service
Different applications can have different requirements as regards quality of service.
IP should be able to take such requirements into consideration during transmission.
TG7020XEN02GLA1
76 2009 Nokia Siemens Networks
Appendix - The Network Layer
Further requirements:
Integrity: Delivery to the correct destination
Addressing of higher
layer protocols
Addressing of stations
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TG7020XEN02GLA1
2009 Nokia Siemens Networks
77
Appendix - The Network Layer
5.1.1 IP Datagram
IP packet structure
An IP packet consists of two parts, the IP header and a part for the data to be
transmitted. The IP datagram header has a minimum length of 20 bytes.
The structure of the IP header will not be discussed in detail. Without burdening you
with too much information, one orientation aid is that the previously mentioned IP
protocol requirements must also be discernible in the structure of the header .
Fragmentation
The fields Identification, the flags DF (dont fragment), MF (more fragments) and
fragment offset belong to fragmentation. For a detailed description of fragmentation
please refer to the appendix.
Addressing terminals
The source IP address field (IP address of the transmitting station) and destination
IP address field (IP address of the destination station) are used to address terminals.
32 Bits
0 4 8 16 32
Destination IP Address
Options Padding
Data
TG7020XEN02GLA1
78 2009 Nokia Siemens Networks
Appendix - The Network Layer
32 Bits
0 4 8 16 32
Destination IP Address
Options Padding
Data
32 Bits
0 4 8 16 32
Destination IP Address
Options Padding
Data
TG7020XEN02GLA1
2009 Nokia Siemens Networks
79
Appendix - The Network Layer
Transmission integrity
The checksum field serves this purpose. This checksum involves the header fields
only; data are not checked. If the header is correct, the correct transmission of the
packet is ensured.
Quality of service
In the type of service field, different quality of service requirements can be coded.
This option is currently not used much. As the course progresses, you will learn of
other approaches to ensure quality of service.
Additional fields
For a list of all header fields, including the ones not described here, please refer to
this chapters appendix.
5.1.2 Fragmentation
In transit from one host to another, an IP datagram can cross different physical
networks. Physical networks have a limitation for the size of the transmitted data
units, called the Maximum Transmission Unit (MTU). The MTU limits the length of
a datagram that can be placed in one physical frame.
IP is responsible for dividing messages to fit into the MTU of the transmission
medium. The fragments are re-assembled at the destination host. The Internet
standards suggest that networks, routers and hosts should be able to handle
datagrams up to 576 bytes without fragmentation.
TG7020XEN02GLA1
80 2009 Nokia Siemens Networks
Appendix - The Network Layer
32 Bits
0 4 8 16 32
Destination IP Address
Options Padding
Data
32 Bits
0 4 8 16 32
Destination IP Address
Options Padding
Data
TG7020XEN02GLA1
2009 Nokia Siemens Networks
81
Appendix - The Network Layer
TG7020XEN02GLA1
82 2009 Nokia Siemens Networks
Appendix - The Network Layer
TG7020XEN02GLA1
2009 Nokia Siemens Networks
83
Appendix - The Network Layer
TG7020XEN02GLA1
84 2009 Nokia Siemens Networks
Appendix - The Network Layer
Router
ICMP
ICMP Error
Error Reports:
Reports: ICMP
ICMP Queries:
Queries:
-- Destination
Destination Unreachable
Unreachable -- Echo
Echo
-- Source
Source Quench
Quench -- Echo
Echo Reply
Reply
-- Redirect
Redirect -- ...
...
-- ...
...
Router
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TG7020XEN02GLA1
2009 Nokia Siemens Networks
85
Appendix - The Network Layer
TG7020XEN02GLA1
86 2009 Nokia Siemens Networks
Appendix - The Network Layer
IP Datagram
Physical
Physical Network
Network IP
IP ICMP
ICMP Data End
End
CRC
CRC
Frame
Frame Header
Header Header
Header Message
Message Frame
Frame Flag
Flag
ICMP
ICMP Header
Header
0 8 16 31
Type
Type Code
Code Checksum
Checksum Data
This
This field
field
describes
describes the
the This
This field
field contains
contains This
This field
field contains
contains
type
type of
of message,
message, additional
additional information,
information, This
This field
field is
is computed
computed information
information for
for aa
e.g.
e.g. destination
destination which
which describes
describes the
the based
based onon the
the complete
complete specific
specific ICMP
ICMP
unreachable
unreachable problem
problem in in more
more detail
detail ICMP
ICMP message
message message
message
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TG7020XEN02GLA1
2009 Nokia Siemens Networks
87
Appendix - The Network Layer
TG7020XEN02GLA1
88 2009 Nokia Siemens Networks
Appendix - The Network Layer
C
A
Router Router
D
B
ICMP
Time Stamp Request ICMP
to D: Time Stamp Reply
My current time is to B:
My current time is
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TG7020XEN02GLA1
2009 Nokia Siemens Networks
89
Appendix - The Network Layer
Source Quench
If this message is received from an intermediate router, it means that the router does
not have the buffer space needed to queue the datagrams for output to the next
network.
If this message is received from the destination host, it means that the incoming
datagrams are arriving too quickly to be processed.
Redirect
If this message is received from an intermediate router, it means that the host should
send future datagrams for the network to the router whose IP address is given in the
ICMP message. This preferred router will always be on the same subnet as the host
that sent the datagram and the router that returned the IP datagram. The router will
forward the datagram to its next hop destination. If the router IP address matches the
source IP address in the original datagram header it indicates a routing loop. This
ICMP message will not be sent if the IP datagram contains a source route.
Time Exceeded
If this message is received from an intermediate router, it means that the time-to-live
field of an IP datagram has expired.
If this message is received from the destination host, it means that the IP fragment
reassembly time-to-live timer has expired while the host is waiting for a fragment of
the datagram.
TG7020XEN02GLA1
90 2009 Nokia Siemens Networks
Appendix - The Network Layer
ICMP ICMP
Destination Unreachable Redirect
to A to C:
e.g. Destination Unknown I use the
other Router
C
A
Router
Router
Router
B D
ICMP
Source Quench ICMP
to B: Time Exceeded
e.g. Buffer Overrun to D:
TTL expired
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TG7020XEN02GLA1
2009 Nokia Siemens Networks
91
Appendix - The Network Layer
Examples:
ping 144.19.74.201 (ping of a remote host)
ping 127.0.0.1 (host self-test - loopback)
This command is available in every possible environment (UNIX, Windows, routers,
switches, etc.). Depending on the operating system there may be other options
available.
TG7020XEN02GLA1
92 2009 Nokia Siemens Networks
Appendix - The Network Layer
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TG7020XEN02GLA1
2009 Nokia Siemens Networks
93
Appendix - The Network Layer
Example:
ping 132.76.250.55
TG7020XEN02GLA1
94 2009 Nokia Siemens Networks
Appendix - The Network Layer
Traceroute
The Traceroute program can be useful when used for debugging purposes.
Traceroute enables determination of the route that IP datagrams follow from host to
host.
Traceroute is based upon ICMP and UDP. It sends an IP datagram with a TTL of 1 to
the destination host. The first router to see the datagram will decrement the TTL to 0
and return an ICMP "Time Exceeded" message as well as discarding the datagram.
In this way, the first router in the path is identified.
This process can be repeated with successively larger TTL values in order to identify
the series of routers in the path to the destination host. Traceroute actually sends
UDP datagrams to the destination host which reference a port number that is outside
the normally used range. This enables Traceroute to determine when the destination
host has been reached, that is, when an ICMP "Port Unreachable" message is
received.
ICMP
Destination Unreachable
to D
e.g. Destination Unknown
From D: C
A Traceroute to A
Router
Router Router
Router
B D
ICMP
Time Exceeded
to D: ICMP
ICMP TTL expired Time Exceeded ICMP
Time Exceeded to D: Time Exceeded
to D: TTL expired to D:
TTL expired TTL expired
Fig. 60 Traceroute
TG7020XEN02GLA1
2009 Nokia Siemens Networks
95
Appendix - The Network Layer
TG7020XEN02GLA1
96 2009 Nokia Siemens Networks
Appendix - The Network Layer
7 Appendix
TG7020XEN02GLA1
2009 Nokia Siemens Networks
97
Appendix - The Network Layer
7.1 IP
7.1.1 All IP Header Fields
Field Description
VERS Version of the IP protocol. The current version is 4 (IPv4).
LEN Length of the IP header counted in 32-bit quantities
Type of Service Indication of the quality of service (precedence, delay, throughput and
reliability) requested for the IP datagram. IP cannot guarantee availability of the
selected service.
Total Length Total length of the datagram, header and data, specified in bytes
Identification A unique number assigned by the sender to aid in reassembling a fragmented
datagram. Fragments of a datagram will have the same identification number.
Flags Various control flags (e.g. DF for dont fragment, MF for more fragments)
Fragment Offset Position of fragment relative to original datagram
Time to Live Specifies the time in seconds this datagram is allowed to travel on the Internet
(TTL) before being discarded. Each router passed is supposed to subtract its
processing time.
Protocol Code number for the higher-level protocol to which IP should deliver the data:
Number e.g. 01 = ICMP, 06 = TCP, 17 = UDP
Header Checksum on the header only. If the header checksum does not match the
Checksum contents, the datagram is discarded because at least one bit in the header is
corrupt, and the datagram may even have arrived at the wrong destination.
Source IP 32-bit IP address of the host sending this datagram
Address
Destination IP 32-bit IP address of the destination host for this datagram
Address
Options Options include Internet Timestamp, Record Route, and Stream ID. This field
is used for network testing and debugging.
Padding Variable length field that is used to ensure that the IP header length is an exact
multiple of 32 bits. If an option is used, the datagram is padded with all-zero
bytes up to the next 32-bit boundary.
Data The data contained in the datagram is passed to a higher-level protocol, as
specified in the protocol field. The amount of data that can be transmitted in
one datagram varies depending on the MTU value for the physical network
layer.
TG7020XEN02GLA1
98 2009 Nokia Siemens Networks
Appendix - The Network Layer
32 Bits
0 4 8 16 32
Destination IP Address
Options Padding
Data
Fig. 61
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TG7020XEN02GLA1
2009 Nokia Siemens Networks
99
Appendix - The Network Layer
At the receiving side, the incoming fragments are identified based on the
identification field and the source and destination IP addresses in the datagram.
To reassemble the fragments, the receiving host allocates a buffer in storage when
the first fragment arrives and a timer is started. When the timer times out and not all
the fragments have been received, the datagram is discarded. The initial value of this
timer is called the IP datagram time-to-live (TTL) value.
TG7020XEN02GLA1
100 2009 Nokia Siemens Networks