Professional Documents
Culture Documents
Example
Assume Maria and Ann are neighbors with a lot of common
ideas. However, Maria speaks only Spanish, and Ann speaks
only English. Since both have learned the sign language in their
childhood, they enjoy meeting in a cafe a couple of days per
week and exchange their ideas using signs. Occasionally, they
also use a bilingual dictionary. Communication is face to face
and Happens in one layer as shown in Figure .
Layer Architecture
Layer architecture simplifies the network design.
It is easy to debug network applications in a layered
architecture network.
The network management is easier due to the layered
architecture.
Network layers follow a set of rules, called protocol.
The protocol defines the format of the data being
exchanged, and the control and timing for the handshake
between layers.
OSI Model
Application
Presentation Application
Session
Transport Transport
Network
Internet
Data Link
Network
Physical Access
Figure 2.9 A private internet
Physical Layer
Provides physical interface for transmission of information.
Defines rules by which bits are passed from one system to
another on a physical communication medium.
Covers all - mechanical, electrical, functional and procedural
- aspects for physical communication.
Such characteristics as voltage levels, timing of voltage
changes, physical data rates, maximum transmission
distances, physical connectors, and other similar attributes
are defined by physical layer specifications.
The unit of communication at the physical
layer is a bit.
Physical Physical
Link 1 Link 3 Link 5 Link 6
D2 H2
Frame
D2 ame
Fr
H2
D2 H2 D2 H2
Frame Frame
1 packet
87 10 Data accepted
87 10 Data
Physical Physical
D3 H3
Datagram
D3 H3
Datagram
Physical
addresses
changed
95 66 A P Data 95 66 A P Data
33 99 A P Data
Physical
addresses
changed
Network Layer
Implements routing of packets through the network.
Defines the most optimum path the packet should take from
the source to the destination
Defines logical addressing so that any endpoint can be
identified.
Handles congestion in the network.
Facilitates interconnection between heterogeneous networks
(Internetworking).
The network layer also defines how to fragment a packet
into smaller packets to accommodate different media.
The unit of communication at the network
layer is a datagram (Packet).
Physical Physical
D4 H4
Segment
D4 H4
Segment
28 TCP/IP Protocol Suite
Example
Figure shows two computers communicating via the Internet.
The sending computer is running three processes at this time
with port addresses a, b, and c. The receiving computer is
running two processes at this time with port addresses j and k.
Process a in the sending computer needs to communicate with
process j in the receiving computer. Note that although both
computers are using the same application, FTP, for example,
the port addresses are different because one is a client program
and the other is a server program.
A Sender Receiver P
Data Data
a j Data a j Data
A P a j Data A P a j Data
H2 A P a j Data H2 A P a j Data
Internet
Session Layer
Session layer provides mechanism for controlling the dialogue
between the two end systems. It defines how to start, control and
end conversations (called sessions) between applications.
Presentation Layer
Presentation layer defines the format in which the data is to
be exchanged between the two communicating entities.
Also handles data compression and data encryption
(cryptography).
Figure Communication at application layer
A B
Application Legend Source Destination D Data H Header Application
Transport Transport
R1 R3 R4
Network Network
Physical Physical
D5 D5
Message
D5 D5
34 TCP/IP Protocol Suite Message
OSI Model
Application Layer
Application layer interacts with application programs and is
the highest level of OSI model.
Application layer contains management functions to
support distributed applications.
Examples of application layer are applications such as file
transfer, electronic mail, remote login etc.
The unit of communication at the
application layer is a message.