Professional Documents
Culture Documents
Communication in IP-based Internetworks: Siemens
Communication in IP-based Internetworks: Siemens
Communication in IP-based Internetworks: Siemens
Communication in IP-based
Internetworks
Contents
1 The Client-Server Model 3
1.1 Overview of the Client/Server Model 4
1.2 The Functions of the Clients and the Server 6
1.3 How are the Clients/Server Addressed? 8
1.4 Examples - Application Protocols 10
2 Review of the OSI Model 13
2.1 Why a Model? 14
2.2 Communication between Layers 16
2.3 The Concept of Encapsulation 18
2.4 The OSI Reference Model 20
2.5 OSI Model and other Items 22
3 Glossary 25
4 Exercises 29
5 Solutions 35
TI1332EU02TI_0003
1
© 2002 Siemens AG
Siemens Communication in IP-based Internetworks
2 TI1332EU02TI_0003
© 2002 Siemens AG
Communication in IP-based Internetworks Siemens
Client-Server Model
TI1332EU02TI_0003
3
© 2002 Siemens AG
Siemens Communication in IP-based Internetworks
4 TI1332EU02TI_0003
© 2002 Siemens AG
Communication in IP-based Internetworks Siemens
Internet Network
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TI1332EU02TI_0003
5
© 2002 Siemens AG
Siemens Communication in IP-based Internetworks
6 TI1332EU02TI_0003
© 2002 Siemens AG
Communication in IP-based Internetworks Siemens
query
a French restaurant
TI1332EU02TI_0003
7
© 2002 Siemens AG
Siemens Communication in IP-based Internetworks
Example
"Ports" are conceptually similar to the mailboxes used at your local post office. When
a letter comes in for recipient, it is placed into a known mailbox reserved for that
specific recipient. Whenever the recipient comes by, he will pick up any messages in
that mailbox and process the data at his convenience.
Reality
Similarly, ports provide TCP and UDP with a way to deliver data to higher-layer
application protocols. Every time an application protocol opens a connection to one of
the transport protocols, it will allocate a port from the transport protocol, and then use
that port for all network I/O. Any traffic that is destined for that particular application
will be routed to the appropriate port for the application to deal with.
Some servers wait for requests at a well-known port (see "The Transport Layer " in a
later chapter) so their clients know to which end point (IP socket, see chapter "The
Transport Layer") to direct their requests. The client uses an arbitrary port for its
communication.
Some applications can open many simultaneous network connections, and in this
case, each instance would get its own port number.
TIP
For example an HTTP (Hypertext Transfer Protocol) server uses the well-known port
number 80. An HTTP client can choose the next available port number e.g. 1084.
(Another client e.g. 1127.) Another client on another physical device can choose also
1084. These clients with the same port number are then distinguished with the help
of there different network addresses.
8 TI1332EU02TI_0003
© 2002 Siemens AG
Communication in IP-based Internetworks Siemens
TI1332EU02TI_0003
9
© 2002 Siemens AG
Siemens Communication in IP-based Internetworks
10 TI1332EU02TI_0003
© 2002 Siemens AG
Communication in IP-based Internetworks Siemens
Application Protocols
End-user related protocols
SMTP Simple Mail Transfer Protocol
POP3 Post Office Protocol
IMAP Internet Message Access Protocol
MIME Multipurpose Internet Mail Exchange
Application Protocols
Directory and naming protocols
DNS Domain Name System
LDAP Lightweight Directory Access Protocol
Background protocols
DHCP Dynamic Host Configuration Protocol
BOOTP Boot Protocol
SNMP Simple Network Management Protocol
Voice over IP protocols
H.323 Protocol Family (H.225, H.245)
SIP Session Initiation Protocol
MEGACO Media Gateway Control Protocol
RTP Real Time Transport Protocol
TI1332EU02TI_0003
11
© 2002 Siemens AG
Siemens Communication in IP-based Internetworks
12 TI1332EU02TI_0003
© 2002 Siemens AG
Communication in IP-based Internetworks Siemens
TI1332EU02TI_0003
13
© 2002 Siemens AG
Siemens Communication in IP-based Internetworks
Layer
Layer
Communication Layer
Layer
Layer
Layer
Layer
Layer
Layer
Layer
Fig. 10 Communication
14 TI1332EU02TI_0003
© 2002 Siemens AG
Communication in IP-based Internetworks Siemens
service
service
using
the services of service
service
the layer below
service
service
service
service
service
service providing a service
to the layer above
service
service
service
service
SAP:
SAP:
service
service access
access point
point
Layer
Layer
Layer
Layer
Layer
Layer
Layer
Layer
IPv4
IPv4 IPv6
IPv6
Layer
Layer
Layer
Layer
TI1332EU02TI_0003
15
© 2002 Siemens AG
Siemens Communication in IP-based Internetworks
Vertical communication
The communication between layer n and layer n-1 is known as an interface. The
connection points between the different layers are called service access points
(SAP). Between two layers there are normally more than one SAPs. With the help of
a SAP the layer above have access to a special service, laying in the layer below. In
the other direction a service can offer its result (service) to the higher layer with the
help of this SAP.
Data Units
In the vertical communication let us assume that layer n want to give information to
the layer below. This information is called service data unit (SDU). The layer below
adds to this given SDU its own information. Then you will have the SDU of the lower
layer and so on. To determine of which SDU you are spoken simple the name of the
corresponding layer is preadded. For example you speak of NSDU - meaning the
network SDU when you means the SDU of the layer with the name network.
In the horizontal communication you have in the most cases (excluding layer1) a
virtual communication between the peers. This information are called protocol data
unit (PDU).
16 TI1332EU02TI_0003
© 2002 Siemens AG
Communication in IP-based Internetworks Siemens
node 1 node 2
Communication
peer
peer peer
peer
Vertical
Horizontal
Communication
Fig. 13 Communication
node 1 node 2
Layer
Layer nn
(PDU)
Vertical
SDU SDU
Layer
Layer n-1
n-1 protocol data unit Layer
Layer n-1
n-1
(PDU)
Horizontal
SDU...
SDU... service
service data
data unit
unit
Communication
TI1332EU02TI_0003
17
© 2002 Siemens AG
Siemens Communication in IP-based Internetworks
18 TI1332EU02TI_0003
© 2002 Siemens AG
Communication in IP-based Internetworks Siemens
Send Receive
Layer n+1
n+1 n+1
n + 1 Data n + 1 Data
Header Header
Layer n
n n
n Data n Data
Header Header
Send Receive
Data Data
5-7 Data 5-7 Data
4 5-7 Data 4 5-7 Data
3 4 5-7 Data 3 4 5-7 Data
2 3 4 5-7 Data 2 2 3 4 5-7 Data 2
TI1332EU02TI_0003
19
© 2002 Siemens AG
Siemens Communication in IP-based Internetworks
Physical Layer:
The physical layer transmits bits of information across a link. It deals with such
problems as size and shape of connectors, assignment of functions to pins,
conversion of bits to electrical signals, and bit-level synchronization. It is usual for
several different types of physical layers to exist within a network and even for
multiple different types of physical layers to exist within a node, because each
technology requires its own physical layer.
Transport Layer:
The Transport layer establishes a end-to-end connection, a reliable or non reliable
communication stream between a pair of systems. It deals with errors that can be
introduced by the network layer, such as lost packets, duplicated packets, packet
ordering, and fragmentation and reassembly (so that the user of the transport layer
can deal with large size messages and so that less-efficient network layer can deal
with larger-size messages and so that less-efficient network layer fragmentation and
reassembly might be avoided). The transport layer can react to congestion in the
network by sending more slowly in response.
20 TI1332EU02TI_0003
© 2002 Siemens AG
Communication in IP-based Internetworks Siemens
The next three Layers are in the most cases not separately implemented. They are
often integrated in the application. However, here are the different tasks:
Session Layer:
It deals with dialog control (enforcing a particular pattern of communication between
systems) and chaining (combining groups of packets so that either all or none of the
packets in the group gets delivered).
Presentation Layer:
The goal of this layer is to agree on representation for data so that people defining
structures don't have to worry about bit/byte order or what a floating point number
looks like. ISO standardized on ASN.1 (Abstract Syntax Notation 1).A lot of the IETF
(Internet Engineering Task Force) standards use it.
Application Layer:
Applications include file transfer, virtual terminal, Web browsing, and so on. It is
common for multiple applications to be running concurrently in a node.
Application
Application Layer
Presentation
Presentation Layer
Session Layer
Transport
Transport Layer
Layer
Network
Network Layer
Layer
Data
Data Link
Link Layer
Layer
Physical Layer
TI1332EU02TI_0003
21
© 2002 Siemens AG
Siemens Communication in IP-based Internetworks
22 TI1332EU02TI_0003
© 2002 Siemens AG
Communication in IP-based Internetworks Siemens
gateway
gateway Application
Application Layer
application
application
Presentation
Presentation Layer
Session
Session Layer
Layer port
Transport Layer
router
router Network
Network Layer
Layer using logical addresses
network
bridge,
bridge, switch
switch Data
Data Link Layer using physical addresses
repeater,
repeater, hub
hub Physical
Physical Layer
Layer
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TI1332EU02TI_0003
23
© 2002 Siemens AG
Siemens Communication in IP-based Internetworks
24 TI1332EU02TI_0003
© 2002 Siemens AG
Communication in IP-based Internetworks Siemens
3 Glossary
What´s the
meaning of ...?
Fig. 19 Glossary
TI1332EU02TI_0003
25
© 2002 Siemens AG
Siemens Communication in IP-based Internetworks
26 TI1332EU02TI_0003
© 2002 Siemens AG
Communication in IP-based Internetworks Siemens
TI1332EU02TI_0003
27
© 2002 Siemens AG
Siemens Communication in IP-based Internetworks
28 TI1332EU02TI_0003
© 2002 Siemens AG
Communication in IP-based Internetworks Siemens
4 Exercises
Fig. 20 Exercise
TI1332EU02TI_0003
29
© 2002 Siemens AG
Siemens Communication in IP-based Internetworks
30 TI1332EU02TI_0003
© 2002 Siemens AG
Communication in IP-based Internetworks Siemens
Exercise 1
Title: OSI Model
Task
Please explain the different types of communication within the OSI model.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TI1332EU02TI_0003
31
© 2002 Siemens AG
Siemens Communication in IP-based Internetworks
32 TI1332EU02TI_0003
© 2002 Siemens AG
Communication in IP-based Internetworks Siemens
Exercise 2
Title: OSI Model
Task
Please name the different layers of the OSI reference model.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TI1332EU02TI_0003
33
© 2002 Siemens AG
Siemens Communication in IP-based Internetworks
34 TI1332EU02TI_0003
© 2002 Siemens AG
Communication in IP-based Internetworks Siemens
5 Solutions
Fig. 21 Solution
TI1332EU02TI_0003
35
© 2002 Siemens AG
Siemens Communication in IP-based Internetworks
36 TI1332EU02TI_0003
© 2002 Siemens AG
Communication in IP-based Internetworks Siemens
Solution 1
Title: OSI Model
Task
Please explain the different types of communication within the OSI model.
Horizontal communication
Each layer communicates with its peer layer (the layer of the same level) in another
node through the use of a protocol. Because only in the lowest layer there is really a
physical connection, nearly in all the cases these peer-to-peer connections are only a
virtual connection.
This communication is accomplished through the vertical connections and at least
through the direct communication of the lowest layer.
Vertical communication
The communication between layer n and layer n-1 is known as an interface. The
connection points between the different layers are called service access points
(SAP). Between two layers there are normally more than one SAPs. With the help of
a SAP the layer above have access to a special service, laying in the layer below. In
the other direction a service can offer its result (service) to the higher layer with the
help of this SAP.
The kinds of information are called service data units or protocol data units.
TI1332EU02TI_0003
37
© 2002 Siemens AG
Siemens Communication in IP-based Internetworks
38 TI1332EU02TI_0003
© 2002 Siemens AG
Communication in IP-based Internetworks Siemens
Solution 2
Title: OSI Model
Task
Please name the different layers of the OSI reference model.
Application
Application Layer
Layer
Presentation
Presentation Layer
Layer
Session
Session Layer
Layer
Transport Layer
Network Layer
Physical Layer
TI1332EU02TI_0003
39
© 2002 Siemens AG
Siemens Communication in IP-based Internetworks
40 TI1332EU02TI_0003
© 2002 Siemens AG