Chapter - 2: TCP / IP Reference Model
Chapter - 2: TCP / IP Reference Model
2.1
Chapter 2
2.2
Transmission Control Protocol / Internet
Protocol (TCP / IP) Model
single network.
2.4
Characteristics
• TCP Characteristics
● Connection oriented protocol
● Provides reliability
○ Data acknowledgement
○ 3 way handshake
○ Checksums on both
header and contents
● Implements flow control
• IP Characteristics
• Connectionless Protocol
• Unreliable Protocol
• It is responsible for addressing, sending and receiving the data
packets over the Internet.
2.5
TCP / IP Key Features
• Logical Addressing: Big networks into smaller networks and
subdivided into smaller subnets - IP Address.
2.7
TCP / IP Reference Model .
• The TCP/IP Protocol suite was developed prior to the OSI
model.
• TCP/IP is compared to OSI
Host-to-Network layer is equivalent to the combination of the
Physical and Data Link Layers.
The Internet Layer is equivalent to the Network Layer.
Transport Layer taking care of part of the duties of the Transport
Layer.
The Application Layer is roughly doing the job of the Session,
Presentation, and Application Layers. 2.8
TCP / IP Reference Model . . .
2.10
An Application Layer . . .
2.11
2.12
The Transport Layer
• Only the two end computers need to have the transport layer.
• The transport layer is responsible for delivering the whole
message, which is called a segment, a user datagram, or a packet,
from A to B.
• A segment may consist of a few or tens of datagrams.
• Since the Internet defines a different route for each datagram, the
datagrams may arrive out of order and may be lost.
• The transport layer at computer B needs to wait until all of these
datagrams to arrive, assemble them and make a segment out of
2.13
them.
The Transport Layer . . .
2.14
The Transport Layer . . .
Traditionally, the transport layer was represented in the TCP/IP
suite by two protocols:
User Datagram Protocol (UDP)
• Unreliable, Connectionless Protocol
Transmission Control Protocol (TCP)
• Reliable, Connection-oriented Protocol
sizes.
An Internet Layer . . .
• Datagrams can travel along different routes and can arrive out of
sequence or be duplicated.
• IP does not keep track of the routes and has no facility for
reordering datagrams once they arrive at their destination.
• Communication at the network layer is end to end .
• The datagram started at computer A is the one that reaches
computer B.
• The network layers of the routers can inspect the source and
destination address of the packet for finding the best route.
2.18
• Routers are not allowed to change the contents of the packet.
An Internet Layer . . .
2.19
An Internet Layer . . .
2.20
IP Packet Header
An Internet Layer . . .
2.21
The Host – to - Network Layer
• TCP/IP does not define any specific protocol for the physical
layer.
2.22
The Host – to - Network Layer . . .
• Assuming two computers have discovered that the most efficient way
to communicate with each other is via routers R1, R3, and R4.
protocols.
2.23
The Host – to - Network Layer . . .
2.24
The Host – to - Network Layer . . .
Each computer involves with only one link; each router involves
with only two links.
It is the same situation with the other two routers involved in the
2.25
communication.
The Host – to - Network Layer . . .
Router R1 has two / three physical layers (two are shown in our
scenario).
2.26
The Host – to - Network Layer . . .
2.27
OSI TCP/IP
OSI represents Open System TCP/IP model represents the Transmission
Interconnection. Control Protocol / Internet Protocol.
2.30
Addressing . . .
2.31
Physical Address
• Also known as the link address.
• It is included in the frame used by the data link layer.
• It is the lowest-level address.
• The physical addresses have authority over the link.
• Can be either unicast (one single recipient), multicast (a group
of recipients), or broadcast (to be received by all systems)
• The size and format of addresses vary depending on the
network.
• For example,
• Ethernet - 6-byte physical address that is imprinted NIC. 2.32
• Local Talk (Apple) - 1-byte dynamic address.
Physical Address . . .
Example 1
Node with physical address 10 sends a frame to a node
with physical address 87. The two nodes are connected by a link
(bus topology LAN).
2.33
Physical Address . . .
Example 2
07:01:02:01:2C:4B
2.34
Logical Address
Physical addresses are not adequate in an internetwork
environment.
Different networks can have different address formats.
Each host can be identified uniquely.
So, Logical addresses are necessary for universal
communications.
A logical address in the Internet is 32-bit IP Address that
can uniquely define a host connected to the Internet.
2.35
Logical Address – IP Address
• IPv4 uses 32-Bit and IPv6 uses 128-Bit for logical address.
• An IP address represented in dotted decimal notation.
Ex.- 123.22.33.44
• IP Addresses are divided into five classes
IP
Starting First No. of
Address Last Address No. of Host
Binary Value Address Network
Class
27-1
Class A 0 1.0.0.0 126.255.255.254 1-126 224– 2
127 loopback
Net ID Host ID
€=============16=============> €===========16============> 2.38
8 bit 8 bit 8 bit 8 bit
Logical Address – IP Address – Class C
• It uses first three octets for network address to uniquely identify
the network and last octet for host address to uniquely identify the
host on that network.
• (11000000 to 11011111 ie. 192 to 223 ) First three bits of first octet
are set to 110. Totally 21 bits are used to distinguish this network
from all other networks.
• Hence 221= 2,097,152 number of Class C networks.
• 28-2=254 number of host on class C network.
Net ID Host ID
€===================24=====================> €======8=====> 2.39
8 bit 8 bit 8 bit 8 bit
Logical Address – IP Address – Class D
• In the first octet, the first 4 bits are 1110.
• (11100000 to 11101111 ie. 224 to 239 ) First four bits of first octet are set to 1110.
Class D addresses are called Multicast Address.
• The purpose of a multicast address is to enable a server somewhere to send data
to a Class D address that no one host has so that several hosts can listen to that
address at the same time.
• Watching TV on the Internet or listening to the radio on the Internet, your
computer is listening to a Class D address.
• No server is sending data directly to your workstation; instead, a server is
sending data to the multicast address.
• Any host can use software to listen for data at that address, and many hosts can
2.40
be listening at once.
Logical Address – IP Address – Class E
• 240 t0 254
• 240.0.0.0 t0 255.255.255.254
• Class E addresses are reserved addresses and are invalid host
addresses.
• They are used for experimental purposes by the IETF.
Special Address:
• Address use for Private use
Class A: 10.0.0.0 to 10.255.255.255
Class B: 172.16.0.0 to 172.31.255.255
Class C: 192.168.0.0 to 192.168.255.255 2.41
2.42
Logical Address – IP Address . . .
2.43
Port Addresses
• The IP address and the physical address are necessary for a
quantity of data to travel from a source to the destination host.
2.44
Port Addresses . . .
• For example, computer A can communicate with computer C by
using TELNET.
• At the same time, computer A communicates with computer B
by using the File Transfer Protocol (FTP).
• For these processes to receive data simultaneously, we need a
method to label the different processes. In other words, they
need addresses.
• In the TCP/IP architecture, the label assigned to a process is
called a Port Address.
• A port address in TCP/IP is 16 bits in length. 2.45
Port Addresses . . .
Example 4
2.47
Port Addresses . . .
Example 5
753
2.48
The physical addresses will change from hop to hop,
but the logical addresses usually remain the same.
2.49
Application-Specific Addresses
• Some applications have user-friendly addresses that are designed
for that specific application.
• Examples
• e-mail address
2.50