Professional Documents
Culture Documents
Contents
1 The TCP/IP protocol suite 3
1.1 Why does TCP/IP exist? 4
1.2 What is TCP/IP? 4
1.3 The structure of the TCP/IP suite 4
2 Overview of the TCP/IP protocol layers 7
2.1 Layer 1 8
2.2 Layer 2 8
2.3 Layer 3 10
2.4 Layer 4 10
3 A TCP/IP conversation 13
4 IP addressing 17
4.1 Addressing on the network layer 18
4.2 Address classes 22
4.3 Subnetworks and subnetwork masks 32
5 Routing 41
5.1 Routing principles 42
5.2 Routing protocols 48
6 Network access layer protocols 57
6.1 Important network access layer protocols 58
6.2 Ethernet V2 60
6.3 Fiber Distributed Data Interface (FDDI) 62
6.4 Asynchronous Transfer Mode (ATM) 62
7 Internet layer protocols 63
7.1 Important internet layer protocols 64
7.2 Internet Protocol (IP) 64
7.3 Internet Control Message Protocol (ICMP) 72
7.4 The Address Resolution Protocol ARP 78
7.5 The Reverse Address Resolution Protocol RARP 78
8 Transport layer protocols 81
MN2585EU10MN_0002
1
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
2 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
MN2585EU10MN_0002
3
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
4 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
6 Presentation Application
Application Layer
Layer 4
5 Session
Session
4 Transport Transport
Transport Layer 3
3 Network
Network Internet Layer
Layer 2
2 Data
Data Link
Link
Network
Network Access Layer 1
Access Layer
1 Physical
Physical
Transport
Transport Layer
Layer TCP UDP
Internet
Internet Layer
Layer ARP RARP IP ICMP
2
Network
Network Access
Access Layer
Layer IEEE IEEE IEEE IEEE
FDDI ATM
Frame
X.25 PPP
802.2 802.3 802.4 802.5 Relay
1
MN2585EU10MN_0002
5
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
6 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
MN2585EU10MN_0002
7
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
2.1 Layer 1
The Network Access Layer corresponds to the physical and data link layers of the
OSI model and performs the same functions: It comprises data links and physical
transport services. This layer specifies procedures for transmitting data across the
network and how to access the physical medium. This interface may be packet- or
stream-oriented. The Internet Layer of the TCP/IP protocol can be implemented on
top of nearly all network interfaces.
Examples for Network Access Layer protocols are:
Serial Link Interface Protocol (SLIP), seldomly used (was replaced by PPP)
Point-to-Point Protocol (PPP), used for dial-up connections to ISP
Ethernet (802.3), media access vis CSMA/CD (10Mbit/s)
Fast Ethernet, used in most network implementations (100Mbit/s)
Fiber Distributed Data Interface (FDDI)
Token Ring, ring topology with controlled media access by so called "tokens"
Asynchronous Transfer Mode (ATM), encapsulation of IP packets in ATM cells
2.2 Layer 2
In the OSI model, the Internet Layer (also known as network or internetwork layer)
would be a network layer component. One major function of layer 2 is to release the
higher layer protocols from having to find out about the physical characteristics of the
transmission medium. The layer 2 forms a barrier between the physical layers
(architecture below) and the next highest layer, the transport protocols. Furthermore
layer 2 provides other main functions like packet addressing, delivery, fragmentation
and re-assembly. The Internet Layer protocols are:
Internet Protocol (IP), used for doing the job
Internet Control Message Protocol (ICMP), used for supervision of job success
IP is the most important protocol in this layer. It is a connectionless protocol which
does not provide reliability, flow control or error recovery. These functions must be
provided at a higher level, either at the Transport Layer by using TCP as the
transport protocol, or at the Application Layer if UDP is used as the transport
protocol. The used transport protocol depends absolutely on the requirements of the
application.
Local area networks interface with the Internet Layer via address resolution protocols
that map hardware addresses to Internet addresses:
Address Resolution Protocol (ARP), translating IP address to MAC address
Reverse Address Resolution Protocol (RARP), assigning for each MAC
address an IP address
8 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
TCP UDP
TCP UDP
MN2585EU10MN_0002
9
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
2.3 Layer 3
The function of the Transport Layer corresponds to the transport layer of the OSI
model and provides the end-to-end data transfer. This layer manages all aspects of
data routing and delivery, multiplexing/demultiplexing, session initiation, error control
and sequence checking. Transport Layer protocols are often implemented as library
routines that are linked to specific applications. Applications are identified via port
numbers that are embedded in the Transport Layer packet headers. The Transport
Layer protocols are:
Transmission Control Protocol (TCP)
User Datagram Protocol (UDP)
2.4 Layer 4
The Application Layer comprises the user processes that cooperate with other
processes on the same or different host. The lower level protocols provide services to
the Application Layer protocols and specify how application programs interface to the
network. Some Application Layer protocols are:
Domain Name System (DNS)
File Transfer Protocol (FTP)
Terminal Emulation (TELNET)
Simple Network Management Protocol (SNMP)
Simple Mail Transfer Protocol (SMTP)
Network File System (NFS)
10 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
TCP UDP
TCP UDP
MN2585EU10MN_0002
11
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
12 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
3 A TCP/IP conversation
MN2585EU10MN_0002
13
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
A TCP/IP ”conversation” takes place between two hosts that are connected to the
Internet. Every network transaction moves down through the protocol layers on its
originating system, travels across the physical medium, and then moves up through
the same stack of protocols on the destination system.
The name of a unit of data that flows through an internet is dependent upon where it
exists in the protocol stack. In summary:
on an Ethernet it is called an Ethernet frame
between the Ethernet driver and the IP module it is called a IP packet
between the IP module and the UDP module it is called a UDP datagram
between the IP module and the TCP module it is called a TCP segment (more
generally, a transport message)
in a network application it is called a application message.
At a high level, the interaction between the TCP/IP protocol layers can be described
as follows:
At Host A, the following transactions take place:
A network operation is initiated at the Application Layer by a user command or
program. The application sends arbitrary sized blocks of information, called
messages, to the Transport Layer.
The Transport Layer receives the messages from the application, divides them
into segments of variable length (in case of TCP) or send the complete message in
one datagram (in case of UDP), adds a transport header, and passes the
segments along to the Internet Layer. This starts the encapsulation process.
The Internet Layer encloses the segments in an IP packet matching the frame
size of used physical media, adds the packet header, decides where to send the
packets, and passes the packets to the Network Access Layer.
The Network Access Layer accepts IP packets, adds the frame header and
trailer and transmits them as frames or bit streams over specific network hardware.
At host B, the frames or bit streams are received and go through the protocol layers
in reverse.
Although there are provision to open and maintain connections through the network,
TCP/IP primarily uses connectionless communication technology. Information is
transferred as a series of packets (each with a destination and source address) that
are sent through the network individually (i.e. each packet may take a separate
route). IP protocols break up files into packets (matching the Maximum Transmission
Unit MTU of the underlying network access layer) for transmission through the
network and reassemble the packets at the destination.
The figure below is a graphical representation of the TCP/IP conversation between
hosts A and B.
14 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Message
Application Application
Segment/Datagram
TCP / UDP
Transport Transport
Packet
Internet Internet
Frame
SIEMENS SIEMENS
NI XDORF NIXDORF
Internet
Host A Host B
SUMMARY
TCP/IP is a layered set of protocols. In order to communicate between these layers,
a field is included in each data packet’s header that indicates what higher level
protocol a packet should be handed to next.
MN2585EU10MN_0002
15
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
16 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
4 IP addressing
IP Addressing
Fig. 9 IP addressing
MN2585EU10MN_0002
17
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
SUMMARY
The 6-byte Ethernet address is unique for each interface on an Ethernet and is
located at the lower interface of the Ethernet driver
The computer also has a 4-byte IP address. This address is located at the lower
interface to the IP module. The IP address must be unique for an internet.
A running computer always knows its own IP address and Ethernet address.
18 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Problem: MAC addresses are distributed randomly all over the network,
there is no logical structure.
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
MN2585EU10MN_0002
19
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
IP addresses consist of a network part (network identifier) and a host part (host
identifier)...
The network identifier (net ID) is assigned by a central authority, such as the
Network Information Center (NIC). The NIC tracks the net Ids to ensure that they
remain unique across the entire Internet.
The host identifier (host ID) specifies a particular host (station, node, or other
device) within a given network. The host ID is assigned by a local network
administrator. A host ID needs to be unique within its own network.
This contributes to better handling of message transmission through networks.
TIP
It can, however, also be useful to represent individual bytes in binary format, for
example when working with subnetwork masks.
20 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
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
MN2585EU10MN_0002
21
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
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.
22 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
32 Bits
8 31
16
24
Network class
Note: Two class A, B, and C host IDs are pre-assigned: the ”all bits 0” (this network)
and the ”all bits 1”(directed broadcast) number.
MN2585EU10MN_0002
23
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
24 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Directed
Directed Broadcast
Broadcast to
to
SIEMEN S
NI XD OR F
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 Local
Local Broadcast
Broadcast to
to
all
all networks
networks must
must not
not be
be forwarded
forwarded
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MN2585EU10MN_0002
25
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
The class A network number 127.0.0.1 is a reserved software loopback address that
is used when a host ”pings” itself. The address 127.0.0.1 allows a host to test the
operation of the TCP/IP software without sending traffic across the network. A packet
with the loopback address is sent from the application layer to the IP layer. If the
software is working properly, the IP layer will recognize the address and return the
packet to the application layer.
26 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Application
Destination
127.0.0.1
Host A
TCP UDP
SIEMENS
NIXDORF
IP
Network Access
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MN2585EU10MN_0002
27
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
These addresses may be used by any organization without reference to any other
organization, including the Internet authorities. However, they must not be referenced
by any host in another organization, nor must they be defined to any external routers.
All external routers should discard any routing information regarding these
addresses, and internal routers should restrict the advertisement of routes to these
private IP addresses.
Any organization that elects to use addresses from these reserved blocks can do so
without contacting the IANA or an Internet registry. Since these addresses are never
injected into the global Internet routing system, the address space can
simultaneously be used by many different organizations.
The disadvantage to this addressing scheme is that it requires an organization to use
a Network Address Translator (NAT) for global Internet access. However, the use of
the private address space and a NAT make it much easier for clients to change their
ISP without the need to renumber. The benefits of this addressing scheme to the
Internet are that it reduces the demand for IP addresses so large organizations may
require only a small block of the globally unique IPv4 address space.
28 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Address
Address Range
Range Networks
Networks Address
Address Class
Class
10.0.0.0
10.0.0.0 -- 11 A
A
10.255.255.255
10.255.255.255
172.16.0.0
172.16.0.0 --
172.31.255.255 16
16 B
B
172.31.255.255
192.168.0.0
192.168.0.0 --
192.168.255.255 256
256 C
C
192.168.255.255
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MN2585EU10MN_0002
29
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
Examples
The following diagram shows the input of an IP address under Windows NT,
Windows 9x or Windows 2000
30 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
MN2585EU10MN_0002
31
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
Subnetmasks
Since a router needs to discriminate between (sub-) network part and host part,
standard class A, B, C network addresses cannot be used to differentiate between
individual subnets. In order to do this differentiation, subnet masks are used.
Subnetmasks allow the assignment of certain bits of the host part of the class A, B, C
address to be part of the subnet address.
32 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Net ID Host ID
Class A, B or C
IP Address
Subnet
Host
Routers are used to Router
connect subnetworks.
Router
Net ID Host ID
Class A, B or C
Subnet address
MN2585EU10MN_0002
33
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
Example:
Filtering the IP address 85.139.117.4 with the subnetwork mask 255.192.0.0
produces the subnet 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 of the class A network address 85.0.0.0. Using this mask, an
other subnetwork can be created (85.64.0.0). A router may be used to link both
subnetworks.
34 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Subnetwork Mask
Is used to:
• discriminate the host number from the network number.
• indicate the number of bits in the prefix.
Must have:
• a contiguous string of ones at the more significant end,
• a contiguous string of zeros at the less significant end, and
• no intervening bits.
Subnetwork Mask
Network Part
of the Address 85 128 0 0 01010101 10 000000 00000000 00000000
(Subnet address)
MN2585EU10MN_0002
35
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
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 triple: IP address, subnetwork mask and default gateway.
36 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Router
Router
Therouter
The routerisislinked
linkedtotoall
all Nextrouter
router
Next
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
85.128.0.3
85.128.0.3
Subnet 85.128.0.0; Mask 255.192.0.0
Router
85.64.0.1
85.64.0.1
85.64.0.1
85.128.0.1 85.128.0.2
OriginalClass
Original ClassAA Subnet 85.64.0.0; Mask 255.192.0.0
Network
Network
85.0.0.0
85.0.0.0
85.64.0.3 85.64.0.2
Fig. 25 Input mask with IP address, subnetwork mask and default gateway for a popular operating system
MN2585EU10MN_0002
37
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
38 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
OriginalNetwork
Original Network
130.5.0.0
130.5.0.0
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MN2585EU10MN_0002
39
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
40 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
5 Routing
Router
Switch
Router Router
Router
Router
Switch
Which
Which way
way
to
to go ?
go ?
Fig. 27 Routing
MN2585EU10MN_0002
41
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
42 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
SIEMENS
NIXDORF
SIEMENS
NIXDORF
Host A Host B
Message
Application Application
Segment
TCP TCP
IP Packet IP Packet
IP IP IP
LAN PSDN
Input
Ports
Router
Input
Port Routing 128.0.5.4
Table
128.1.2.2 128.0.6.6
Datagramms
Routung
Process 128.0.7.2
Fig. 29 Routing
MN2585EU10MN_0002
43
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
44 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Direct routing allows the local delivery of an IP packet without using a router
IP address IP address
MAC MAC
Router
Router
Router
MN2585EU10MN_0002
45
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
Hosts which are directly attached to one of the networks to which the router is
attached
Hosts or networks for which the router has been given explicit definitions
Hosts or networks for which the router has received an Internet Control Message
Protocol (ICMP) Redirect message
A default destination for everything else (called: 'default router' or 'default
gateway')
46 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Routing
Process
Routing IP Packet
Table
SA DA
IP Packets
SA DA SA DA
SA DA
192.16.3.0
192.16.3.0
Router A
Router B 192.16.4.0
192.16.4.0
192.16.1.0
192.16.1.0
192.16.2.0
192.16.2.0
MN2585EU10MN_0002
47
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
Static Routing
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:
This is a static routing table that is created manually when the device is first
configured. Since this routing table represents only a part of the whole Internet, it is
called a router with partial routing information.
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 128.15.1.2 metric 1 Windows
route add net 129.7.0.0 128.15.1.2 1 Solaris
48 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
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
MN2585EU10MN_0002
49
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
Dynamic Routing
Dynamic creation of entries in routing tables minimizes the administrative burden of
the operator. Dynamic routing uses routing protocols to exchange network
reachability and topology state information. Based on this information, routers
determine the optimal route through a network towards the destination.
Convergence time is the time required to pass information on topology changes
throughout the network.
For each physical link between routers an individual metric is implicitly or explicitly
assigned. The lower the overall metric of a route, the better.
50 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Routing Protocol
Router
Switch
Router Router
Router
Router
Switch
What
What isis
an
an optimal
optimal
route
route ??
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MN2585EU10MN_0002
51
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
52 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
2 Hops
1 Hop 1 Hop
192.16.1.0
192.16.1.0 Flow
Flow ofof routing
routing 192.16.7.0
192.16.7.0
information
information
192.16.5.0
192.16.5.0
Fig. 38 The principle of a distance vector algorithm routing protocol using hop count as a metric
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MN2585EU10MN_0002
53
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
TIP
Link state packets are sent out to all routers in the network only under following
circumstances:
When a router discovers a new neighbor or a link to a neighbor goes down
When the cost (metric) of the link changes
Basic refreshment packets are sent every 30 minutes (Link State Update=LSU)
54 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
A
A specific
specific value
value for
for the
the
Link State Routing (LSR)
„metric“
„metric“ is
is valid
valid for
for
aa connection.
connection.
33 Router C
11 11 Router E
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.
SPF
LSP: LSP:
„My links to „My links to R1 and R3 are up.
R2 and R4 are up“ Routing My link to R2 is down.“
Tabelle
Router 1 Router 4
Router 2 Router 3
MN2585EU10MN_0002
55
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
56 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
MN2585EU10MN_0002
57
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
WARNING
The required version can be set on the Ethernet cards (set jumper or software). DIX
is usually set as standard since approximately 90% of installed networks use
this version. Please note that all stations in a network that wish to communicate with
each other must use the same version!
TIP
That's the reason why we discuss only Ethernet V2.
58 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
TIP
This section highlights some characteristics of common networking services and
provides a brief overview of Internet access options.
TCP/IP
Layers
MIME
Others...
Netbios
SNMP
Telnet
HTTP
TFTP
TCP,
Xwin
DNS
RPC
NFS
FTP
POP3
4 SMTP
3 TCP UDP
Fig. 41
MN2585EU10MN_0002
59
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
6.2 Ethernet V2
The wiring of Ethernet LANs may consist of:
twisted pairs (telephone wiring)
coaxial cable,
fiber-optic links for large distances.
The network devices include repeaters, transceivers, terminators and local net
interfaces (hubs).
Data is transmitted in frames of 64 (minimum) to 1518 bytes (maximum) at a
maximum speed of 10 Mb/s.
Data field
The data field is of variable length (46 … 1500 byte) and contains the data received
from the next higher layer protocol.
Ethernet Checksum
The transmission protocol typically provides a cyclic redundancy check (CRC). The
result of that logical operation will be transmitted in the 16 bit (2 byte) Ethernet
Checksum.
Additionally the transmission protocol and guarantees collision control.
60 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Ethernet
Destination Source Data
Frame Type Checksum
Address Address Field
Preambel Deli- (e.g. IP)
meter (4 bytes)
(6 bytes) (6 bytes) (46 ... 1500 bytes)
(2 bytes)
32 Bits
0 16 32
Type Code
IP Header
TCP Header
Data
Ethernet Checksum
MN2585EU10MN_0002
61
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
62 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
MN2585EU10MN_0002
63
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
64 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Further requirements:
Integrity: Delivery to the correct destination
Quality of Service: Sometimes best effort is not enough
Addressing of higher
layer protocols
Addressing of stations
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MN2585EU10MN_0002
65
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
7.2.1 IP datagram
The IP datagram is the base transfer packet in the Internet protocol suite. It has a
header potion and a data portion. The IP datagram is encapsulated (embedded)
within a frame (e.g. PPP frame, Ethernet frame, or ATM cell) that is transmitted via
the physical network.
Each IP datagram header contains a source IP address and a destination IP
address. To send a datagram to a certain IP destination, the target IP address must
be translated or mapped to a physical address for a specific network. This may
require transmissions on the network to find out the destination's physical network
address (for example, on LANs the Address Resolution Protocol (ARP) is used to
translate IP addresses to physical MAC addresses).
Fragments of a datagram all have a header, basically copied from the original
datagram, and data following it. They are treated as normal IP datagrams while being
transported to their destination. If one of the fragments gets lost, the complete
datagram is considered lost since IP does not provide any acknowledgment
mechanism, so the remaining fragments will simply be discarded by the destination
host.
The IP datagram header is a minimum of 20 bytes long and contains the fields shown
below.
66 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
IP Datagramm
Fig. 45 IP datagram
32 Bits
0 4 8 16 31
Destination IP Address
Options Padding
Data
MN2585EU10MN_0002
67
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
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 (n * 32 bits or 4bytes)
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 don’t fragment, MF for more fragments)
Fragment Offset Position of fragment relative to original datagram, shows the position in
datagram, where data of a single fragment will be inserted during reassembly.
The fragment offset is measured in units of 8 bytes (0 … 8091 * 8 bytes offset
is possible)
Time to Live Specifies the time in seconds (0 … 255) this datagram is allowed to travel on
(TTL) the Internet 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 IP header only to guarantee error free transmission of the IP
Checksum header. If the header checksum does not match the 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. This checksum will be newly
evaluated in each intermediate router.
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.
68 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
32 Bits
0 4 8 16 31
Destination IP Address
Options Padding
Data
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MN2585EU10MN_0002
69
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
7.2.3 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.
The Mode of Operation of Fragmentation
Fragments of a datagram all have a header, basically copied from the original
datagram with updated fragmentation flags and fragmentation offset, and data
following it. They are treated as normal IP datagrams while being transported to their
destination. If one of the fragments gets lost, the complete datagram is considered
lost since IP does not provide any acknowledgment mechanism, so the remaining
fragments will simply be discarded by the destination host.
When fragmentation is done, the following steps are performed:
1. The DF flag bit is checked to see if fragmentation is allowed. If fragmentation is
not allowed, the datagram will be discarded
2. Depending on the MTU value, the data field is split into two or more parts.
3. All data portions are placed in IP datagrams. The headers of the datagrams are
updated copies of the original one.
4. Each of the fragmented datagrams is independently routed to the destination.
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.
When subsequent fragments of the datagram arrive, before the timer expires, the
data is copied into the buffer storage, at the location indicated by the fragment offset
field. As soon as all fragments have arrived, the complete original unfragmented
datagram is restored, and processing continues.
70 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
32 Bits
0 4 8 16 31
Destination IP Address
Options Padding
Data
Fragmentation
Fragmentation
data header
Router Router
Fig. 49 Fragmentation
MN2585EU10MN_0002
71
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
TIP
RFC 792 states that ICMP messages can be generated to report IP datagram
processing errors, not must. In practice, routers will almost always generate ICMP
messages for errors, but for destination hosts, the number of ICMP messages
generated is implementation dependent.
72 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
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
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MN2585EU10MN_0002
73
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
74 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
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 on on the
the complete
complete specific
specific ICMP
ICMP
unreachable
unreachable problem
problem in in more
more detail
detail ICMP
ICMP message
message message
message
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MN2585EU10MN_0002
75
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
Option Explanation
host IP address or host name
packetsize size of the ping message (default size 64 bytes)
count number of pings to the host
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, Solaris, Windows,
routers, switches, etc.). Depending on the operating system there may be other
options available.
Trace route
The Trace route program can be useful when used for debugging purposes. Trace
route enables determination of the route that IP datagrams follow from host to host.
Trace route 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. Trace route actually sends
UDP datagrams to the destination host, which reference a port number that is outside
the normally used range. This enables Trace route to determine when the destination
host has been reached, that is, when an ICMP "Port Unreachable" message is
received.
TIP
These commands will be discussed later in detail.
76 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
ICMP
“Destination Unreachable”
to D
e.g. Destination Port 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
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MN2585EU10MN_0002
77
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
TIP
Today RARP is seldom used. It has been replaced by other protocols like DHCP and
BOOTP.
78 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Host A
ARP Request – Ethernet Broadcast to all hosts
SIEMENS
NIXDORF
„What is the hardware address for IP address 128.0.10.4?“
ARP Reply
SI EMENS
NI X DORF
SIE ME NS
NIXDORF
Host B
IP Address: 128.0.10.4
HW Address: 080020021545
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MN2585EU10MN_0002
79
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
80 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Fig. 54
MN2585EU10MN_0002
81
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
Multiplexing Services
For example, both UDP and TCP provide a multiplexing service to application
protocols by way of application-specific port numbers. Essentially, port numbers
act as virtual post office boxes for messages to be delivered to within a single host,
allowing multiple applications to run on a single host concurrently. When packets
arrive at destination system, they are handed off to the transport protocol specified in
the packet, which then delivers the transport-specific message data to the port
number specified in the header of the message. In this manner, many different
applications can run on the same host, using different port numbers to identify
themselves to the transport protocols.
TIP
Both, TCP and UDP provide functionality that is above that offered by IP alone, and
both protocols are required to build an effective set of network applications.
82 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
TCP/IP
Layers
MIME
Others...
Netbios
SNMP
Telnet
HTTP
TFTP
TCP,
Xwin
DNS
RPC
NFS
FTP
POP3
4 SMTP
3 TCP UDP
Mechanisms
Mechanisms forfor
addressing
addressing higher
higher
layer
layer protocols
protocols
TCP: connection oriented
and reliable
UDP: not connection oriented,
not reliable
service assumed
MN2585EU10MN_0002
83
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
84 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Port Numbers
Server Client
IP IP
Physical Physical
S D
D S
BOOTP/
BOOTP/
RLOGIN
Telnet
SNMP
DHCP
WWW
SMTP
LDAP
POP3
SNMP
Telnet
DHCP
TFTP
WWW
SMTP
IMAP
LDAP
POP3
TFTP
IMAP
DNS
FTP
DNS
Layers
FTP
44
Port
20/21 23 513 25 110 143 80 389 53 69 67/68 161/162
Numbers
33 TCP
TCP UDP
UDP
EGP
EGP ICMP
ICMP OSPF
OSPF
Protocol
22 08 06 01 17 89
Numbers
ARP
ARP IP
IP RARP
RARP
MN2585EU10MN_0002
85
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
86 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MN2585EU10MN_0002
87
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
Sockets
The socket interface is one of several application programming interfaces (APIs) to
the communication protocols.
Let us consider the following terminologies:
Term Description
Socket An application process uses a socket as a file handle to request
network services from the operating system.
Socket Address The triple: <protocol, local-address, local-port_number>
For example, in the TCP/IP suite: <tcp, 193.44.234.3, 12345>
Conversation Communication link between two processes. (Interprocess
Communication)
Association The 5-tuple that completely specifies the two processes that
comprise a connection:
<protocol, local-address, local-port_number, foreign-address,
foreign-port_number>
In the TCP/IP suite, the following could be a valid association:
<tcp, 193.44.234.3, 1500, 193.44.234.5, 21>
Half- Either <protocol, local-address, local-port_number> or
association <protocol, foreign-address, foreign-port_number>
which specify each half of a connection, either the local or the
remote part
The half-association is also called a socket or a transport address. That is, a socket
is an endpoint for communication that can be named and addressed in a network.
Two processes communicate via TCP sockets. The socket model provides a process
with a full-duplex byte stream connection to another process. The application need
not concern itself with the management of this stream; these facilities are provided by
TCP.
88 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
TCP TCP
10.27.51.3:1127 10.27.51.2:1084
10.27.51.1:80 10.27.51.1:80
The socket interface is differentiated by the different services that are provided to the
applications.
The stream socket interface (SOCK_STREAM) defines a reliable connection-
oriented service (over TCP for example) with built-in flow control to avoid data
overruns. The File Transfer Protocol (FTP) is an example of an application that
uses stream sockets.
The datagram socket interface (SOCK_DGRAM) defines an unreliable
connectionless service (over UDP for example). Datagrams are sent as
independent packets. The packet delivery is not guaranteed. Packets are not
fragmented and reassembled. The Network File System (NFS) is an example of an
application that uses datagram sockets.
The Raw socket interface (SOCK_RAW) allows direct access to lower-layer
protocols such as IP and ICMP. This interface is used for testing new protocol
implementations. An example of an application that uses raw sockets is the Ping
command.
SUMMARY
TCP uses the same port principle as UDP to provide multiplexing. Like UDP, TCP
uses well-known and ephemeral ports. Each side of a TCP connection has a socket
that can be identified by the triple <TCP, IP address, port number>. If two processes
are communicating over TCP, they have a logical connection that is uniquely
identifiable by the two sockets involved, that is, by the combination <TCP, local IP
address, local port, remote IP address, remote port>. Server processes are able to
manage multiple conversations through a single port.
MN2585EU10MN_0002
89
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
90 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Unreliable
IP Packets
IP IP
SIEMENS
NIXDORF SIEMENS
NI XDORF
Host A Host B
IP IP
MN2585EU10MN_0002
91
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
92 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
IP
IP Header
Header TCP
TCP Header
Header TCP
TCP Data
Data
TCP Segment
IP Packet
0 16 31
Data
MN2585EU10MN_0002
93
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
94 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
0 16 31
Sequence Number
Data
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MN2585EU10MN_0002
95
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
Passive OPEN
The most simple of the two methods is the passive "OPEN", which is the form used
by servers that want to listen for incoming connections. A passive "OPEN" indicates
that the server is willing to accept incoming connection requests from other systems,
and that it does not want to initiate an outbound connection. Typically a passive
"OPEN" is "unqualified", meaning the server can accept an incoming connection from
anybody.
Active OPEN
Client applications (e.g. a web browser) use active "OPEN" when making these
connection requests. An active "OPEN" is the opposite of an passive "OPEN" , in that
it is a specific request to establish a virtual circuit with a specific destination socket
(typically this will be the well known port number of the server that is associated with
the specific client). On an active "OPEN" command, the TCP will begin the procedure
to synchronize (i.e., establish) the connection at once.
96 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
0 16 31
Sequence Number
Acknowledgement Number
U A P R S F
Data
Reserved R C S S Y I Window
Offset
G K H T N N
Telnet
Telnet „Connect“
„Connect“
“Three-way Handshake"
“SYN“,“ACK“ SN=1690412290 , ACK= 50628
MN2585EU10MN_0002
97
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
98 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Telnet
Telnet „Disconnect“
„Disconnect“
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MN2585EU10MN_0002
99
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
100 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Campus Campus
Client WAN Server
Server Client
Application Application
Transport User
User Datagram
Datagram Protocol
Protocol UDP
UDP Transport
Transport Transport
Network Network Network Network
Data Link Data Link Data Link Data Link Data Link Data Link Data Link
Physical Physical Physical Physical Physical Physical Physical
UDP Multiplexing/Demultiplexing
based on Port #
IP
Network Access
Internet
MN2585EU10MN_0002
101
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
102 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
UDP
UDP
IP
IP Header
Header UDP
UDP Data
Data
Header
Header
UDP Datagram
IP Packet
0 0 16 31
Data
MN2585EU10MN_0002
103
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
104 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
HTTP
TP
TF
DHCP
in TELNET Finger
Rlog
P
FT S
NF
BOOTP
SM SN M
TP P
Fig. 72
MN2585EU10MN_0002
105
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
9.1 Introduction
The protocols reviewed so far essentially describe data transport via networks. The
following protocols describe the applications that use these transport services. In the
OSI model, these functions are allocated to layers 5 to 7; in the TCP/IP model, they
belong to the application layer. The protocols important within the scope of this
course are presented below.
Application layer protocols communicate with applications on other Internet hosts.
They therefore prescribe uniform standards for the transmission and representation
of data. These must be adhered to, regardless of the operating system for which the
applications were developed.
The implementation of application protocols can vary on different platforms (e.g.
DOS, OS/2) but all of the higher-level protocols have some characteristics in
common:
They can be user-written applications or applications standardized and shipped
with the TCP/IP product.
Each particular TCP/IP implementation will include a more or less restricted set of
application protocols.
They use either UDP or TCP as a transport mechanism. If UDP is used (less
protocol overhead but unreliable transport and no flow control), the application has
to provide its own error recovery and flow control routines.
Most of them use the client/server model of interaction. A server is a system that
offers a service to the rest of the network. A client is the requester of a service. An
application consists of both a server and a client part. Some servers wait for
requests at a well-known port so that their clients know to which IP socket they
must direct their requests. The client uses an arbitrary port for its communication.
The communication between client and server is handled with internal commands,
which are not accessible by users.
The following are brief descriptions of some common Application Layer protocols
used at the Radio Commander.
106 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
TELNET
BOOTP
Rlogin
SNMP
DHCP
SMTP
HTTP
TFTP
NFS
FTP
TCP UDP
Network-Hardware
Internet Network
Fig. 74 The client server model
MN2585EU10MN_0002
107
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
Virtual Terminal
There are many terminals that are non-compatible with each other. Each terminal can
use its own commands, e.g. to control the cursor or edit text.
The TELNET protocol is based on the concept of a virtual terminal (NVT = Network
Virtual Terminal). A virtual terminal simulates the functions of a normal terminal.
There are standardized control commands that are the same for all users of the
virtual terminal. A program must merely be written for each real terminal, which
converts the commands of the real terminal into those of the virtual terminal.
In this way, for example, a movement of the cursor to the right on the real terminal is
likewise converted into a cursor movement to the right on the virtual terminal.
Additional Attributes
Most TELNET implementations do not provide graphics capabilities. Operation is
relatively Spartan, as the example shows.
Only commands of the operating system (OS) on the remote station can be executed
(Windows -> DOS commands, UNIX -> UNIX-specific commands, Routers -> Router
OS-specific commands).
TIP
TELNET is standardized in RFC 854 and uses the well-known TCP port 23.
108 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Port 23
Operating TCP
System System
IP IP
Network Virtual
Terminal (NVT)
Negotiations
MN2585EU10MN_0002
109
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
Commands
The user will issue specific commands to perform FTP operations, such as:
Connect to a remote host (commands: open, user),
Select a directory (commands: cd, lcd),
List files available for transfer (commands: dir, ls),
Define the transfer mode (commands: mode, type),
Copy files to or from the remote host (commands: copy, get, put),
Disconnect from the remote host (commands: quit, close).
The server responds to the client-issued commands with 3-digit reply codes and
comments.
Anonymous FTP
Anonymous FTP sites allow public access to some file directories. The client uses
an anonymous login name and guest password, or some other common password
convention that is explained to the user during the login process.
110 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
File Transfer
File Administration
SIEMENS
NIXDORF
SIEMENS SIEMENS
NIXDORF NIXDORF
Data Data
Control Control
Transfer Transfer
Module Module
Module Module
Port 21 Port 20
TCP TCP
Control Data
Connection Connection
IP IP
Internet
MN2585EU10MN_0002
111
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
TIP
NFS is standardized in RFC 3010 and is running either on TCP using the well-known
port number 2049. It makes use of Remote Procedure Calls (RPC).
112 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
root
Exported and
Visible to Clients
SIEMENS
NIXDORF
File
System
Fig. 79
MN2585EU10MN_0002
113
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
9.5 Rlogin
Rlogin is also used to login into remote hosts; its functionality is very similar to that of
TELNET. In contrast to TELNET, rlogin is typically supported in UNIX (Solaris)
environments only. One of the advantages when compared to TELNET is indeed,
that the UNIX semantic can better be transferred than with TELNET.
Rlogin has flow control capabilities, where the server can send START/STOP
sequences to throttle down the sender in case its buffer overflows.
Rlogin always uses remote echoes: The characters seen on the client's screen have
been sent by the server. By this, the user can be sure the data have reached the
server. This also is a difference with TELNET, where remote echo is an option only,
while local echo (characters typed in appear on the screen immediately without
crossing the network) is the standardized operation.
In UNIX environments it is common to set up trusted hosts: All hosts defined in a
specific file (in Solaris: $HOME/.rhosts) on a specific host are allowed to log into that
specific host without any password required.
WARNING
Obviously, the feature of trusted hosts should be used with extreme care, since
no further password protection exists.
Rlogin Operation
When login into a remote host, clients go through a rlogin connection setup
procedure, where client- and server user name as well as terminal type (VT100,
VT52 etc) as well as speed (e.g. 9600 baud) is being communicated. After successful
connection setup, data can be transmitted.
Rlogin runs on the well-known TCP port 513.
Command Meaning
rsh remote shell
rcp remote copy
rwall remote write to all users
rwho remote list of users logged in
ruptime remote display of computers that are up on the network
114 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
MN2585EU10MN_0002
115
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
X Operation
Basically there are two parts communicating with each other:
The application, which gets input from the user, executes code, and sends output
back to the user. Instead of reading and writing directly to a display, the application
uses the Xlib programming interface to send and receive data to/from the user's
terminal. The station running the application is called the X client.
The user's terminal, running a display-managing software which receives/sends
data from/to the application and is called the X server.
X client and X server can be on different hosts. They use the TCP/IP protocol to
communicate over the network. Multiple X client applications can communicate with
one X server. The X server displays the application windows and sends the user
input to the appropriate X client application. The X client is notified by events from the
X server whenever other clients change something on the display. The client
applications send request messages to the X server. The X server can also send
event messages to the applications. Event messages indicate changes to the
windows and user input (mouse and keyboard).
The following elements are part of the X Window System:
X Window Manager
This is an X client program on the workstation where the X server runs. The
window manager permits windows to be resized, moved, and otherwise modified
on demand.
X Protocol
This protocol describes the format of messages exchanged between client and
server. It uses a reliable byte stream connection (TCP).
116 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
The X Protocol
Appl.
TCP/IP Network
X Server X Client
Create Window
Window Created
Xlib
This is a collection subroutines which translate client requests to X protocol
requests, parse incoming messages (events, replies, and errors) from the X
server, and provide several additional utilities, such as storage management and
operating system independent (portable) operations.
X Toolkits
The toolkits are facilities to implement the display layout and common user-
interface objects (buttons, menus, and scrollbars).
Widgets
These are X windows plus some additional data and a set of procedures for
operating on that data on the client-side
TIP
The X protocol (i.e. the X display Manager Control Protocol, in X terms) uses TCP or
UDP, and ports in the range of 6000-6063. It is standardized by the X consortium.
RFC 1198 mentions the relevant X consortium standards.
MN2585EU10MN_0002
117
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
TIP
SNMP information is transported via UDP using port 161, trap messages use port
162. SNMP has gone over a number of iteration steps. the standards mentioned
above refer to SNMPv1. A version 2 of the standards with fundamentals
improvements with respect to security has also been devised. At the moment of this
writing, version 3 of the SNMP standard is in the process of being finalized.
118 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
SNMP Framework
Management Station
Management Agent
Router
MIB
IP Network
SNMP
MN2585EU10MN_0002
119
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
120 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Joint ISO-
CCITT (0) ISO (1)
CCITT (2)
Other int‘l
organiz. (3)
IAB (1)
experiment.
Directory (1) Mgmt (2) private (4)
(3)
enterprise
MIB (1)
(1)
MN2585EU10MN_0002
121
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
SNMP commands
SNMP is a protocol used to transport management information across the network.
The term "simple" stems from the fact that the protocol does not offer too much
functionality.
Five commands are available:
GetRequest Retrieve values for a specific object from the MIB
GetNextRequest Walk through specific portions of the MIB
SetRequest Alter the values of a specific object in the MIB
GetResponse Response from GetRequest, GetNextRequest, SetRequest
Trap Send a message to management station (SNMP trap receiver)
asynchronously
Usually, the management station queries the network elements periodically using the
GetRequest and the GetNextRequest. In the case that information must be sent
immediately, the management agent may sent information asynchronously.
Each request/set command contains information on the MIB entry to be modified or
queried. These are identified by a sequence of numbers. Each number identifies a
node in the MIB tree (e.g. 1.3.6.1.2.1.2..2.1.2.0 for the interface description in the
picture above, "0" indicating "this value").
TIP
A message in the SNMP protocol consists of a version identifier, an SNMP
community name and a Protocol Data Unit (PDU).
TIP
The Common Management Information Protocol over TCP/IP (CMOT)
is a network management architecture that has been developed to move towards a
closer relationship with the Open System Interconnection (OSI) network management
standards named Common Management Information Protocol (CMIP). In the OSI
approach the management can occur only over fully established connections
between the managers and the agents. CMOT allows management information
exchange over connectionless services (datagram).
122 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Managed
Resources
get_response
get_response
get_next
get_next
event
event
get
set
get
set
SNMP
SNMP Manager SNMP Manager
Messages (PDUs)
UDP UDP
IP IP
SNMP
SIEMENS
NIXDORF
Network Access Network Access Device
SNMP Commands
SNMP Commands
GetRequest
GetNextRequest
SetRequest
GetResponse
Trap
Command Structure (Example)
SNMP Command Position in MIB tree
Map request/response
MN2585EU10MN_0002
123
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
124 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
10 IP based O-link
MN2585EU10MN_0002
125
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
10.1 Basics
This feature introduces the IP based O-link between the BSC (Base Station
Controller) and the RC (Radio Commander) as well as between the BSC and the
CBC (Cell Broadcast Center). The TCP/IP link uses Ethernet 10/100 Base T.
Operators, which currently have applied a X.25 network, now can replace their X.25
network by an IP network, which significantly speeds up the O-link. The IP based O-
link is introduced in addition to the already supported X-25 link.
TIP
The BSC supports either X.25 or IP exclusively, while the RC also supports
mixed configurations, e.g. X.25 and IP connections can be used
simultaneously.
The option of handling IP based O interfaces expands the BSC, by replacing the
existing MPCC (Microprocessor Control Circuit) and TDPC (Telephony Distribution
Processor Circuit) boards by the new versions MPCC V8 and TDPC V7. Although the
key functionality is implemented within the MPCC board, both boards have to be
exchanged as MPCC and TDPC operate closely together.
These new processor versions (MPCC V8, TDPC V7) also are needed to implement
the HC BSC, step 2 providing 900 TRXs.
126 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
New in BR7.0
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MN2585EU10MN_0002
127
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
RC implementation
The RC supports both – the X.25 link and the IP link via an appropriate
communication board. IP and X.25 connections can be used simultaneously.
As the physical Ethernet link is a reliable connection, which is shared between
multiple hosts with or without bridges, in the first step, the Radio Commander does
not support redundancy, but it is provided by the BSC, which represents the most
important part of redundancy.
Since the RC supports both – X.25 networks and IP networks. So the system
upgrade from X.25 networks to IP networks can be done smoothly and stepwise
(BSC per BSC).
128 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Dedicated Link
MPCC Ethernet 10/100 Base T
Board To the BSC Connector
LMT
LAN
IP-0 RC
X.25 Dedicated Active
IXLT-0 MPCC-0
X.25 PCM Timeslot Hub or
Switch or
BSC Router
X.25 Dedicated
IXLT-1 CBC
Standby
X.25 PCM Timeslot MPCC-1 X
Test only
MN2585EU10MN_0002
129
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
The next example fully exploits the separate IP links of both the active and standby
MPCC with respect to their separate IP addresses. The redundant aspects concern
separate IP connections, e.g., separate gateways. When testing the standby MPCC
board, a complete IP network-separated connection is under test.
RC
Active
MPCC-0 IP-0
IP
BSC
Router Network
Standby
MPCC-1
X CBC
Test only
RC
Active
MPCC-0 IP-0
Router
Router
BSC IP
Network
Standby
MPCC-1 Router
X
Test only
CBC
130 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Address Handling
Two IP addresses must be uniquely defined for each BSC, as each BSC is equipped
with two MPCC boards – one active board and one standby board. The active IP
address is always related to the active MPCC copy, while the additional one is
always associated with the standby one. The RC or the CBC reaches the active
MPCC board at the BSC via the corresponding active IP address. The additional IP
address is necessary for testing purposes with respect to the standby MPCC board.
To each Ethernet port there is assigned a unique Medium Access Control (MAC)
address. The following figure shows the association between the IP addresses and
the MAC addresses. There is only one active IP address, which corresponds at
different times and in an exclusive way to two different MAC addresses.
MN2585EU10MN_0002
131
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
132 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
String of 7 ... 15
SUBNETMASK IPLI BSC subnetwork mask
characters, null
MN2585EU10MN_0002
133
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
WARNING
Because of the fact that a LAN-card supports only one port, it is not possible to
create any port on the LANCARD object. All needed information like local
NSAP (IP address) has to be set during LANCARD modification.
For IP based O-link no secondary port can be specified.
134 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
MN2585EU10MN_0002
135
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
11.1 General
Since the Radio Commander runs on Solaris operating system this chapter is
dedicated to the aspects of network configuration under Solaris.
11.1.1 Host
An Internet host is a device that has been assigned an Internet address and has the
proper hardware and software to run TCP/IP and connect to the Internet. A host can
also be referred to as a node.
11.1.3 Server
There are a lot of Servers possible in a network. In case of the OMC-B the term
"server" is used in conjunction with the X-term server and of course the omp. A
server is nothing more than an application running on a particular hardware, offering
services to other applications. In Solaris (and in many other operating systems) client
and server can run on the same machine.
11.1.4 X-terminal
An X-terminal is a terminal, which owns the capability to display and control a
graphical user interface. This type of terminal has in minimum a processor and RAM.
Both is used only to manage the GUI (graphical user interface). A so called X-Server
runs on an X-terminal, which is a piece of software, interfacing an application process
and the graphic card. The application mentioned above runs on another workstation.
Using the X11 protocol, an X-terminal displays the application data of a remote
application on the local screen. In case of the OMC-B a normal OMT is used as X-
term server and a Sparc 20 is used as X-terminal.
136 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
X11 messages
X-Client (Application)
Fig. 95 X-terminal
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MN2585EU10MN_0002
137
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
11.1.5 Repeater
A repeater is a device which propagates electrical signals from one cable to another
without making routing decisions or providing packet filtering. As opposed to a bridge,
a repeater is not selective, all traffic is repeated.
11.1.6 Hub
A hub is also referred to as concentrator. It provides a star shaped network. It is the
most convenient way to make up a network. Depending on the model it is possible to
configure a hub using SNMP.
11.1.7 Bridge
One of the networking elements supported by the OMC-B is a bridge. A bridge
divides one logical network into two or more physically divided networks. So it is
possible to isolate a particular part of a network with high traffic load, to avoid that
other parts of the network slow down due to traffic which is not dedicated to the
elements of this network part.
11.1.8 Router
A router is a host with more than one network interfaces. By its routing information
the router decides via which connection an incoming packet has to be passed on. A
router can have a static routing table or a particular routing software working on the
base of a particular routing protocol. The most known routing protocols are the RIP
(routing information protocol) protocol and the OSPF (open shortest path first)
protocol (see above).
11.1.9 Gateway
A gateway interconnects different networks types at higher levels than routers. A
gateway supports address mapping from one network to another and provides
transformation of data between different network environments. A host cannot send
an IP datagram through a gateway: it can only send it to a gateway.
138 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
LAN 139.7.0.0
Router
LAN 139.8.0.0
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MN2585EU10MN_0002
139
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
11.2.1 /etc/inet/hosts
This file contains the assignments between IP address and hostname. Here you
should find all the workstations that have been configured during the OMT
installation. From the OMC point of view it is not recommended to add a workstation
manually to this file. For this, only the "Network editor" or during first installation the
"Configuration wizard" should be used. There is furthermore a link called /etc/hosts
pointing on the file /etc/inet/hosts to obtain compatibility between Solaris and other
Unix systems.
11.2.2 /etc/inet/networks
This file contains the assignment between a network's number and its name. It fulfils
the same task as the file /etc/inet/hosts but related to the networks known to a host.
This file may be used by the commands "route" or "netstat". There is furthermore a
link called /etc/networks pointing on the file /etc/inet/networks to obtain compatibility
between Solaris and other Unix systems.
11.2.3 /etc/inet/netmasks
In the case of subnetting the netmask for the network can be set in this file which will
be read during system start. In general this will be defined during the installation of
Solaris. According to the settings in that file the IP address will be subdivided into
network part and host part. There is furthermore a link called /etc/netmasks pointing
on the file /etc/inet/netmasks to obtain compatibility between Solaris and other Unix
systems.
11.2.4 /etc/defaultrouter
This file can contain a list of hostnames (defined in /etc/inet/hosts) or IP addresses. A
packet sent to a network, which has no explicit entry in the routing table, is forwarded
to one of the machines which are mentioned in this file. These machines therefore
are used by turns as default routers.
11.2.5 /etc/notrouter
By creating this file, the system administrator can forcedly disable the routing
capability of a host.
140 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Fig. 97 /etc/hosts
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MN2585EU10MN_0002
141
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
142 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MN2585EU10MN_0002
143
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
TIP
The ifconfig command must be used at boot time (startscripts in /etc/init.d) to define
the network address of each interface present on a machine; it may also be used at a
later time to redefine an interface's address or other operating parameters
temporarily.
The permanent setting of an interface should be done in /etc/init.d/rootusr (settings
which were given during Solaris installation)
144 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MN2585EU10MN_0002
145
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
TIP
When using ping for fault isolation, first ping the local host to verify that the local
network interface and also the local TCP/IP stack is running.
Command execution
/usr/sbin/ping <host> [ timeout ]
With timeout you can specify the maximum allowed response time (default: 20 sec.).
After expiration of timeout the message "no answer from <host>" appears.
/usr/sbin/ping [ -s ] [ -dlLnrRv ] [ -i interface_address ] [ -I interval ] [ -t ttl ]
<host> [ packetsize <number> ] [ count <number>]
In the following tables the most important flags, options and arguments are explained
(for further information take a look to the Solaris manpages):
Flag Description
-s if specified, ping sends one datagram per second (adjustable with -I option) and prints one
line of output for every ECHO_RESPONSE that it receives
Option Description
-v detailed messages are shown (only in the case of ICMP packets other than
“ECHO_RESPONSE”)
-R the route taken by a packet is shown (has to be used in conjunction with –v )
-i interface_address Specify the outgoing interface address to use for multicast packets
-I interval Specify the interval between successive transmissions. The default is one
second
-t ttl specifies the hops a packet can take (time to live), default is 1
Attribute Description
packetsize <number> specifies the packetsize in bytes (default: 64 bytes), can be used for check
<number> of fragmentation of used transmission media
count <number> specifies the number of “ECHO_REQUEST” send out by the ping
<number> command (default: 20)
146 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
# ping Host_B
# Host_B is alive
Host_A
ICMP echo reply
Host_B
Example:
ping –svR <hostname>
will send one packet per second and will list the entire route a packet took.
Following outputs are possible:
Answer to a ping command Description
<hostname> is alive If everything is all right this message will be printed
on the screen
no answer from If there is no reply within timeout seconds (default:
<hostname> 20 seconds) after the command has been entered
this message appears, which means, that either the
interface or the workstation is down.
unknown host If a hostname is specified ( ping omp5 instead of
ping 139.7.150.50) and the message “unknown
host” appears at least the entry in the /etc/inet/hosts
file is wrong
ICMP Host/Net Unreachable This message means that the routing settings are
from gateway wrong
MN2585EU10MN_0002
147
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
Command execution
/usr/sbin/spray [ -c count ] [ -d delay ] [ -l length ] <host>
The spray command sends a one-way stream of packets to host and reports how
many were received, as well as the transfer rate.
TIP
Spray is not useful as a networking benchmark as it uses unreliable connectionless
transports, (UDP for example). Spray can report a large number of packets dropped
when the drops were caused by spray sending packets faster than they can be
buffered locally (before the packets get to the network medium).
In the following table the possible options of spray are shown:
Option Description
-c count Specify how many packets to send to the destination host. The default
value of count is the number of packets required to make the total
stream size 100000 bytes.
-d delay Specify how many microseconds to pause between sending consecutive
packets. The default is 0.
-l length The length parameter is the numbers of bytes in the Ethernet frame
(including Ethernet addresses (MAC) but excluding Ethernet checksum).
When length is greater than 1514, then the IP packet sent out by spray
can no longer be encapsulated in one Ethernet packet. default value of
length is 86 bytes (the size of minimum packet size possible with spray
and UDP headers).
host destination host where the packets should be sent to, can be either a
host name or an Internet address
148 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MN2585EU10MN_0002
149
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
Command execution
snoop [options] [filter expression]
In the following table the main important options of snoop are shown (fur further
details take a look to the Solaris manpages):
Option Description
-D Display number of packets dropped during capture on the summary
line.
-S Display size of the entire Ethernet frame in bytes on the summary line.
-v Verbose mode. Print packet headers in lots of detail. This display
consumes many lines per packet and should be used only on
selected packets.
-V Verbose summary mode. This is halfway between summary mode
and verbose mode in degree of verbosity. Instead of displaying just
the summary line for the highest level protocol in a packet, it displays
a summary line for each protocol layer in the packet.
-t [ r | a | d ] Time-stamp presentation.
d (delta) format (the time since receiving the previous packet). This
is used as default.
a (absolute) gives wall-clock time
r (relative) gives time relative to the first packet displayed
-c maxcount Quit after capturing maxcount packets. Otherwise keep capturing until
there is no disk space left or until interrupted with CTRL-C.
-o filename Save captured packets in filename as they are captured.
-i filename Display packets previously captured in filename. Without this option,
snoop reads packets from the network interface.
-d device Receive packets from the network using the interface specified by
device. Usually le0 or hme0.
150 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
The filter expression is used to select packets either from the network or from a
capture file. Only packets for which the expression is true will be selected. If no
expression is provided it is assumed to be true.
In the following table the main important filter expressions of snoop are shown (fur
further details take a look to the Solaris manpages):
TIP
A filter expression consists of a series of one or more boolean primitives that may
be combined with boolean operators (AND, OR, and NOT).
MN2585EU10MN_0002
151
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
Option Description
-a Show the state of all sockets and all routing table entries.
-n Show network addresses as numbers. The netstat command normally
displays addresses as symbols (hostnames). This option may be used
with any of the display formats.
-v Verbose mode. Show additional information for the sockets and the
routing table.
Option / Description
Operand
-i Show the state of the interfaces that are used for TCP/IP traffic.
-I interface Show the state of a particular interface. Interface can be any valid
interface such as hme0 or le0.
interval If interval is specified, netstat displays interface information over the
last interval seconds, repeating forever.
netstat -r [ -anv ]
Option -r shows the routing table of a machine. Other options like described
above.
TIP
The routing table display lists the available routes and the status of each. Each
route consists of a destination host or network, and a gateway to use in forwarding
packets.
152 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Flag Description
U The interface is active (up)
G Whether the route is a gateway (points to a router)
D Route is created dynamically via routing protocol by redirect messages
(RIP, RDISC)
A, B, H If the -a option is specified, there will be routing entries with flags for:
combined routing and address resolution entries (A),
broadcast addresses (B),
and the local addresses for the host (H).
MN2585EU10MN_0002
153
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
Option / Description
Operand
-f Flush the routing tables of all gateway entries. If this is used in
conjunction with the command described above, route flushes the
gateways before performing the command.
-n Prevent attempts to print host and network names sym-bolically when
reporting actions. This is useful, for example, when all name servers are
down on your local net, and you need a route before you can contact the
name server.
add Add a route to the routing table
delete Deletes a specific route from the routing table
host/net Routes to a particular host must be distinguished from those to a
network. The optional keywords net and host indicates whether the
destination is a single host or a network.
destination indicates the hostname or IP address of the destination host or network
gateway The gateway argument, if present, indicates the network gateway
(directly connected to the source hosts network) to which packets should
be addressed.
metric The metric argument indicates the number of "hops" to the destination.
The metric is required for add commands; it must be 0 if the destination
is on a directly attached network (direct route), and non-zero if the route
utilizes one or more gateways (indirect route).
TIP
All routes added with the route command are static routes and they are only
temporarily stored (will be lost after next reboot).
To fix any routes to the hosts routing table you have to add them to a stratscript
directly executed after /etc/rc2.d/S69inet, e.g. /etc/rc2.d/S69routes.
154 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Examples:
route add net <network number> <router name or address > 1
defines a static route to a network which is one hop away.
route add net 139.7.0.0 <workstation name> 0
defines a static route from a workstation to the network this workstation is connected
to.
This setting is necessary to reach the network at all.
route add default <router name or address> 1
defines a default route could be set with.
TIP
A default route will be used if a packet's address is not present in the routing table.
MN2585EU10MN_0002
155
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
Option / Description
Operand
-F Sets the "don't fragment bit" for the outgoing probe packets.
-n Print intermediate router/gateway addresses numerically (IP address)
rather than symbolically (hostname)
-v Verbose output. Received ICMP packets other than TIME_EXCEEDED
and UNREACHABLEs are listed.
-x Toggle checksums. Normally, this prevents trace route from calculating
checksums.
-f first_ttl Set the initial time-to-live value used in the first outgoing probe packet.
-i iface Specify a network interface to obtain the source IP address for outgoing
probe packets. This is normally only useful on a multi-homed host. (See
the -s flag for another way to do this.)
-m max_ttl Set the max time-to-live (max number of hops) used in outgoing probe
packets. The default is 30 hops (the same default used for TCP
connections).
-p port Set the base UDP port number used in probes (default is 33434). Trace
route hopes that nothing is listening on UDP port 33434 at the
destination host (so an ICMP PORT_UNREACHABLE message will be
returned to terminate the route tracing). If something is listening on a
port in the default range, this option can be used to pick an unused port
range.
156 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Option / Description
Operand
-s src_addr Use the following IP address (which usually is given as an IP number,
not a hostname) as the source address in outgoing probe packets. On
multi-homed hosts (those with more than one IP address), this option
can be used to force the source address to be something other than
the IP address of the interface the probe packet is sent on. If the IP
address is not one of this machine's interface addresses, an error is
returned and nothing is sent. (See the -i flag for another way to do
this.)
-w waittime Set the time (in seconds) to wait for a response to a probe (default 5
sec.)
host indicates the IP address of the destination host
packetlength specifies the packet length of the probe packets (default: 40 bytes)
MN2585EU10MN_0002
157
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
158 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
12 Exercises
MN2585EU10MN_0002
159
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
160 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Exercise 1
Title: Network interface configuration
Objectives: The participant is able to configure a network interface
Pre-requisite: TCP/IP theory and Unix commands
Task
Interrogate the state and configuration data of the network interfaces of your
workstation.
Redirect the output in a file.
Remove hme0 from the system.
Add hme0 again to the system.
Interrogate again the state and configuration data of the network interfaces of your
workstation. Check above all the IP address, broadcast address and netmask !
Set the IP address, netmask and broadcast address of hme0. Hint: use the
command ifconfig with the options “broadcast” and “netmask”, if necessary refer to
the online manual of the command.
Try to ping any other host in the network. If the ping was successful, the interface
works if not, try to find out what is wrong by responding to the ping command.
MN2585EU10MN_0002
161
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
162 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Exercise 2
Title: Mac addresses and arp cache handling
Objectives: The participant is able to handle the arp cache
Pre-requisite: TCP / IP theory and Unix commands
Task
Check the arp cache of your machine. Ping any machine which is not in the arp
cache and check again the arp cache. What has changed ?
Check the arp cache of the omp. What is the difference to the arp cache of an OMT ?
MN2585EU10MN_0002
163
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
164 MN2585EU10MN_0002
© 2002 Siemens AG
TCP/IP addressing and routing Siemens
Exercise 3
Title: Administration of static routes
Objectives: The participant is able to configure static routes
Pre-requisite: TCP / IP theory and Unix commands
Task
The following configuration is present:
LAN 139.7.0.0
Router:
139.7.150.99, eth0
139.8.150.99, eth1
LAN 139.8.0.0
MN2585EU10MN_0002
165
© 2002 Siemens AG
Siemens TCP/IP addressing and routing
166 MN2585EU10MN_0002
© 2002 Siemens AG