Professional Documents
Culture Documents
Chapter Four CS
Chapter Four CS
Dilla University,
Department of Computer 29
Science
THE TCP/IP PROTOCOL STACK
• Now assume that Ann has to move to another town
because of her job. Before she moves, the two meet
for the last time in the same cafe. Although both are
sad, Maria surprises Ann when she opens a packet
that contains two small machines. The first machine
can scan and transform a letter in English to a secret
code or vice versa. The other machine can scan and
translate a letter in Spanish to the same secret code
or vice versa. Ann takes the first machine; Maria
keeps the second one. The two friends can still
communicate using the secret code, as shown in
Figure 2.2.
Dilla University, Department of
30
Computer Science
Figure 2.2 Example 2.2
Dilla University,
Department of Computer 31
Science
THE OSI Model
• Established in 1947, the International Standards
Organization (ISO) is a multinational body dedicated
to worldwide agreement on international standards.
Almost three-fourths of countries in the world are
represented in the ISO.
Dilla University,
Department of Computer 33
Science
Figure 2.3 The OSI model
Dilla University,
Department of Computer 34
Science
Figure 2.4 OSI layers
Dilla University,
Department of Computer 35
Science
Figure 2.5 An exchange using the OSI model
Dilla University,
Department of Computer 36
Science
Note
Dilla University,
Department of Computer 37
Science
Figure 2.6 Summary of OSI Layers
Dilla University,
Department of Computer 38
Science
TCP/IP PROTOCOL SUITE
Dilla University,
Department of Computer 40
Science
Figure 2.8 TCP/IP and OSI model
Dilla University,
Department of Computer 41
Science
Figure 2.9 A private internet
Dilla University,
Department of Computer 42
Science
Figure 2.10 Communication at the physical layer
Dilla University,
Department of Computer 43
Science
Note
Dilla University,
Department of Computer 44
Science
Figure 2.11 Communication at the data link layer
Physical Physical
Link 1 Link 3 Link 5 Link 6
D2 H2
Frame
D2 ame
Fr
H2
D2 H2 D2 H2
Frame Frame
Dilla University,
Department of Computer 45
Science
Note
Dilla University,
Department of Computer 46
Science
Figure 2.12 Communication at the network layer
Physical Physical
D3 H3
Datagram
D3 H3
Datagram
Dilla University,
Department of Computer 47
Science
Note
Dilla University,
Department of Computer 48
Science
Figure 2.13 Communication at transport layer
Physical Physical
D4 H4
Segment
D4 H4
Segment
Dilla University,
Department of Computer 49
Science
Note
Dilla University,
Department of Computer 50
Science
Figure 2.14 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
Dilla University,
Message
Department of Computer 51
Science
Note
Dilla University,
Department of Computer 52
Science
Figure 2.15 Addresses in the TCP/IP protocol suite
Dilla University,
Department of Computer 53
Science
TCP/IP PROTOCOL SUITE
• Internet Protocol
• IP stands for the Internet Protocol that deals with the routing
of packets from one host to another in a network. A host can
be any digital device with a communications interface. It may be
a computer, a smartphone, a router, etc. IP is the part that
obtains the address to which data is sent.
• Following are the responsibilities of this protocol: assume
• IP Addressing: IP addresses are used by the internet and
higher layers to identify the device and to provide internetwork
routing.
• Host-to-host communication: It determines the path through
which the data is to be transmitted.
• Data Encapsulation and Formatting: An IP protocol ensures
that the data is sent and received securely, it encapsulates the
data into message known as IP datagram.
• Routing: When IP datagram is sent over the same local network
such as LAN, MAN, WAN, it is known as direct delivery. When
source and destination are on the distant network, then the IP
datagram is sent indirectly.