5.3 TCP IP Protocol Architecture
5.3 TCP IP Protocol Architecture
SLO # 5:
Network Communication and Protocols
Sub topic:
5.3 TCP/ IP Protocol Architecture
1
1/27/2023
TCP/IP Protocol
[Transmission Control Protocol/ Internet Protocol]
TCP/IP was developed by Department of Defense in USA. It is used on the largest network,
the internet but is available in all the small and big computers.
It provides communication between two or more computer systems used for communication
over the internet.
TCP/IP Protocol
[Transmission Control Protocol/ Internet Protocol]
Internet Protocol Suite is a set of communication protocols used on Internet and many other
computer networks.
It is defines the functions of each layer during communication between computers on the
internet.
2
1/27/2023
TCP/IP Protocol
[Transmission Control Protocol/ Internet Protocol]
The two main protocols in the internet protocol suite serve specific functions.
TCP defines how applications can create channels of communication across a network. It also
manages how a message is assembled into smaller packets before they are then transmitted
over the internet and reassembled in the right order at the destination address.
IP defines how to address and route each packet to make sure it reaches the right destination.
Each gateway computer on the network checks this IP address to determine where to
forward the message.
3
1/27/2023
TCP/IP Architecture
TCP/IP model is a concise version of the OSI model. It contains four layers, unlike seven layers
in the OSI model. The layers are:
• Application Layer (Process)
• Transport Layer (Host-to-Host)
• Network Layer (Internet Layer)
• Network Access Layer (Link Layer)
The first layer is the Process layer(Application) on the behalf of the sender and Network
Access layer on the behalf of the receiver.
4
1/27/2023
This layer parallels the functions of OSI’s Network layer. It defines the protocols which are
responsible for logical transmission of data over the entire network.
The main protocols residing at this layer are :
This layer is analogous to the transport layer of the OSI model. It is responsible for
end-to-end communication and error-free delivery of data. The transport protocols include
TCP and User Datagram Protocol (UDP),
5
1/27/2023
HTTP and HTTPS – HTTP stands for Hypertext transfer protocol. It is used by the
World Wide Web to manage communications between web browsers and servers.
6
1/27/2023
OSI is less reliable and has strict boundaries. TCP/IP is more reliable and does not have very strict boundaries.
OSI layers have seven layers. TCP/IP has four layers.
In the OSI model, the data link layer and physical are In TCP, physical and data link are both combined as a single host-
separate layers. to-network layer.
Session and presentation layers are a part of the OSI There is no session and presentation layer in the TCP model.
model.
The minimum size of the OSI header is 5 bytes. The minimum header size is 20 bytes.
7
1/27/2023
Circuit switching and packet switching are the two switching methods that are used to connect
the multiple communicating devices with one another.
Circuit Switching was particularly designed for voice communication and it was less suitable
for data transmission. So, a better solution evolved for data transmission called
Packet switching.
8
1/27/2023
Circuit Switching
• Circuit Switching establishes a physical path between the sender and receiver of the message
• before a message is delivered.
• When a connection is established between a sender and a receiver, the entire message travels
through the established path from sender to the receiver.
• Once the message is delivered to the receiver, the source informs the network about the
completion of transmission and all the switches released.
Packet Switching
Packet Switching is connectionless as it doesn’t establish any physical connection before the
transmission starts. In packet switching before the message is transmitted, it is divided into
some manageable parts called packets.
9
1/27/2023
Circuit Switching is inflexible as once a path is Packet Switching is flexible as each packet may travel through a
established for transmission, it doesn’t change while different route to reach its destination.
the duration of the session.
In packet switching, as each packet travels a different path
Message is received in the order, sent from the
hence, the packet are received out of order at the receiver side
source.
and later arranged in order
Circuit Switching is always implemented at physical Packet Switching is implemented on the network layer.
layer
Conclusion
For Data transmission, Packet Switching is the more efficient than Circuit
Switching.
10
1/27/2023
What is IP?
IP (short for Internet Protocol) specifies the technical format of packets and the addressing
scheme for computers to communicate over a network.
11
1/27/2023
What is IP Address?
An IP address is binary numbers but can be stored as text for human readers. For example, a
32-bit numeric address (IPv4) is written in decimal as four numbers separated by periods.
Each number can be zero to 255. For example, 1.160.10.240 could be an IP address.
12
1/27/2023
IPV4
IPv4 is the most widely deployed Internet protocol used to connect devices to the Internet.
IPv4 uses a 32-bit address scheme allowing for a total of 2^32 addresses (just over 4 billion
addresses).
With the growth of the Internet it is expected that the number of unused IPv4 addresses will
eventually run out because every device -- including computers, smartphones and game
consoles -- that connects to the Internet requires an address.
IPV6
IPv6 (Internet Protocol Version 6) is also called IPng (Internet Protocol next generation) and it
is the newest version of the Internet Protocol (IP)
It was designed as an evolutionary upgrade to the Internet Protocol and will, in fact, coexist
with the older IPv4 for some time.
IPv6 is designed to allow the Internet to grow steadily, both in terms of the number of hosts
connected and the total amount of data traffic transmitted.
IPv6 was born out of concern that the demand for IP addresses would exceed the available
supply
13
1/27/2023
IPV4 VS IPV6
IPV4 IPV6
IPv4 has 32-bit(4-bytes) address length IPv6 has 128-bit(16 bytes) address length
IPv4 has header of 20-60 bytes. IPv6 has header of 40 bytes fixed
In IPv4 Packet flow identification is not In IPv6 packet flow identification are
available Available.
14
1/27/2023
Some are used for public internet-accessible IPs and subnets, that is, those networks behind
a router
(as in classes A, B and C)
15
1/27/2023
Class Addressing
The 32 bit IP address is divided into five sub-classes. These are:
Class A first byte range: 1-127, first byte is network id
Class B first byte range: 128-191, first two bytes is network id
Class C first byte range: 192-223, first three bytes is network id
Class D
Class E
179.8.0.1
16
1/27/2023
Address Class First Byte Decimal Host assignment range Network Address Host Address
Range in dotted decimal
Note: Class A addresses 127.0.0.0 to 127.255.255.255 cannot be used and is reserved for loopback and
diagnostic functions
17
1/27/2023
Class C IP addresses, where the 1st three bits are 110, are in the range of 192.0.0.0 to
223.255.255.255. This class is for smaller networks and has 24 bits for network and 8 bits for
hosts.
Class D or multicast IP addresses, where the 1st four bits are 1110 are in the range of
254.0.0.0 to 239.255.255.255.
Address Class First Byte Decimal Host assignment range Network Address Host Address
Range in dotted decimal
18
1/27/2023
Class E or experimental IP addresses, where the 1st four bits are 11110, are in the range of
192.0.0.0 to 254.255.255.255.
Address Class First Byte Decimal Host assignment range Network Address Host Address
Range in dotted decimal
19
1/27/2023
[Not in SLO]
20
1/27/2023
[Not in SLO]
[Not in SLO]
21
1/27/2023
Resources
Computer Science grade 11
National Book Foundation
https://techdifferences.com/difference-between-circuit-switching-and-packet-
switching.html
Ip Address Classes
https://www.computerhope.com/jargon/i/ip.htm
22