Module 1 - Topic 5 - TCP IP Network Layers
Module 1 - Topic 5 - TCP IP Network Layers
17/10/2024 1
Objectives
17/10/2024 2
TCP/IP Protocol suite
The layers in the TCP/IP protocol suite do not exactly match those in the OSI
model.
The original TCP/IP protocol suite was defined as having four layers: host-to-
network, internet, transport, and application.
However, when TCP/IP is compared to OSI, we can say that the TCP/IP
protocol suite is made of five layers: physical, data link, network, transport,
and application.
17/10/2024 3
TCP/IP and OSI model
17/10/2024 5
A Private internet
• Our imaginary internet that is used to show the purpose of each layer.
17/10/2024 7
Physical Layer
• TCP/IP does not define any specific protocol for the physical layer. It
supports all of the standard and proprietary protocols.
17/10/2024 8
Physical Layer
17/10/2024 9
Physical Layer
• We are assuming that at this moment the two computers have discovered
that the most efficient way to communicate with each other is via routers
R1, R3, and R4.
• Each bit to router R1 in the format of the protocol used by link 1. Router 1
sends each bit to router R3 in the format dictated by the protocol used by
link 3. And so on.
17/10/2024 10
Data Link Layer
• TCP/IP does not define any specific protocol for the data link layer either. It
supports all of the standard and proprietary protocols.
• At this level, the communication is also between two hops or nodes. The
unit of communication however, is a packet called a frame.
• A frame is a packet that encapsulates the data received from the network
layer with an added header and sometimes a trailer.
17/10/2024 11
Data Link Layer
• Note that the frame that is travelling between computer A and router R1
may be different from the one travelling between router R1 and R3.
• When the frame is received by router R1, passes the frame to the data link
layer protocol (left). The frame is opened, the data are removed.
• The data are then passed to the data link layer protocol (right) to create
a new frame to be sent to the router R3.
17/10/2024 13
Network Layer
• At the network layer (or, more accurately, the internetwork layer), TCP/IP
supports the Internet Protocol (IP).
• IP does not keep track of the routes and has no facility for reordering
datagrams once they arrive at their destination.
17/10/2024 14
Network Layer
17/10/2024 15
Network Layer
17/10/2024 16
Transport Layer
• There is a main difference between the transport layer and the network
layer is: Although all nodes in a network need to have the network layer,
only the two end computers need to have the transport layer.
17/10/2024 17
Transport Layer
• Since the Internet defines a different route for each datagram, the
datagrams may arrive out of order and may be lost.
17/10/2024 18
Transport Layer
17/10/2024 19
Transport Layer
Traditionally, the transport layer was represented in the TCP/IP suite by two
protocols:
17/10/2024 20
Transport Layer
17/10/2024 21
Transport Layer: process-to-process delivery
17/10/2024 22
Application Layer
• Note that the communication at the application layer, like the one at the
transport layer, is end to end. A message generated at computer A is sent
to computer B without being changed during the transmission.
17/10/2024 23
Application Layer
17/10/2024 24
Addressing
17/10/2024 25
Addressing
17/10/2024 26
Physical Addressing
17/10/2024 27
Physical Addressing
• The two nodes are connected by a link (a LAN). At the data link layer, this
frame contains physical (link) addresses in the header. These are the only
addresses needed. The rest of the header contains other information
needed at this level.
• As the figure shows, the computer with physical address 10 is the sender,
and the computer with physical address 87 is the receiver.
17/10/2024 28
Physical Addressing
• The data link layer at the sender receives data from an upper layer. It
encapsulates the data in a frame.
• The frame is propagated through the LAN. Each station with a physical
address other than 87 drops the frame because the destination address in
the frame does not match its own physical address.
17/10/2024 29
Physical Addressing
• Most local area networks use a 48-bit (6-byte) physical address written as
12 hexadecimal digits; every byte (2 hexadecimal digits( Hexadecimal
numbers are represented by only 16 symbols. These symbols or values
are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E and F. Each digit represents a
decimal value.)) is separated by a colon, as shown below:
• 07:01:02:01:2C:4B
• A 6-byte (12 hexadecimal digits) physical address
17/10/2024 30
Logical Addressing
17/10/2024 31
Logical Addressing
• Figure shows a part of an internet with two routers connecting three LANs.
Each device (computer or router) has a pair of addresses (logical and
physical) for each connection.
• In this case, each computer is connected to only one link and therefore
has only one pair of addresses. Each router, however, is connected to
three networks. So each router has three pairs of addresses, one for each
connection.
17/10/2024 32
Logical Addressing
• We use letters to show the logical addresses and numbers for physical
addresses, but note that both are actually numbers, as we will see in later
chapters.
17/10/2024 33
Port Addressing
• 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.
17/10/2024 35
Port Addressing
753
• A 16-bit port address represented as one single number
• The physical addresses change from hop to hop, but the logical and port
addresses usually remain the same.
17/10/2024 36
Specific Addressing
17/10/2024 37
Summary
At the end of this session we have learned about
• Comparison between OSI and TCP/IP
• TCP/IP Networking Layers
17/10/2024 38