Lecture 6 Computer Network
Lecture 6 Computer Network
LECTURE 6
What is TCP/IP..?
TCP/IP is a set of protocols developed to
allow cooperating computers to share
resources across a network.
TCP stands for Transmission Control Protocol
They are Transport Layer & Network Layer
Transport Layer
Internet Layer
Examples :
◦ FTP – (File Transfer Protocol)
◦ Telnet – ( Remote Terminal Protocol)
◦ SMTP – (Simple Mail Transfer Protocol)
◦ HTTP – (Hyper Text Transfer Protocol)
Transport Layer…
End to End data transfer……
Examples :
◦ TCP (Transmission Control Protocol)
Connection oriented (connection established before
data exchanged)
Reliable delivery of data
Examples :
◦ Ethernet
◦ Token Ring
◦ Frame Relay
◦ ATM (Asynchronous Transfer Mode)
How TCP/IP relates to OSI
What is IP……?
unicast
broadcast multicast
Construction of Datagrams….
Each #datagram has two components
◦ Header
◦ Payload
Packet
IP Datagram Format
bit # 0 7 8 15 16 23 24 31
header
version DS ECN total length (in bytes)
length
D M
Identification 0 Fragment offset
F F
time-to-live (TTL) protocol header checksum
source IP address
destination IP address
options (0 to 40 bytes)
payload
4 bytes
16
IP Datagram Format
Fields of the IP Header
Version (4 bits): current version is 4, next version will be
6.
Header length (4 bits): length of IP header, in multiples
of 4 bytes
DS/ECN field (1 byte)
Flags (3 bits):
◦ First bit always set to 0
◦ DF bit (Do not fragment)
◦ MF bit (More fragments)
Fragment Offset—Indicates the position of the
fragment’s data relative to the beginning of the data
in the original datagram, which allows the destination
IP process to properly reconstruct the original
datagram
19
Fields of the IP Header
Time To Live (TTL) (1 byte):
◦ Specifies longest paths before datagram is
dropped
◦ Role of TTL field: Ensure that packet is eventually
dropped when a routing loop occurs
Used as follows:
◦ Sender sets the value (e.g., 64)
◦ Each router decrements the value by 1
◦ When the value reaches 0, the datagram is dropped
20
Fields of the IP Header
Protocol (1 byte):
Specifies the higher-layer protocol.
4 = IP-in-IP
Used for demultiplexing to higher layers. encapsulation
6 = TCP 17 = UDP
1 = ICMP 2 = IGMP
IP
21
Fields of the IP Header
Options:
Security restrictions
Record Route: each router that processes the packet
adds its IP address to the header.
Timestamp: each router that processes the packet
adds its IP address and time to the header.
(loose) Source Routing: specifies a list of routers that
must be traversed.
(strict) Source Routing: specifies a list of the only
routers that can be traversed.
Padding: Padding bytes are added to ensure
that header ends on a 4-byte boundary
22
IPV4 Address
What is an IP address…?
◦ An IP address is a unique global logical adress for a
network interface
128.143.137.144
Class Ranges of Internet Addresses
Class A
Class A addresses are assigned to networks
with a very large number of hosts
The high-order bit in a class A address is
Simplicity
It is simpler and easy to remember
Require less memory
Familiarity
Millions of devices are already knowing it
Existing infrastructure already support it
Benefits of IPV4….
Widely support
purposes.
IPV4 Supporting Devices..
PCs
Servers
Modems
Routers
Printers
Cameras
Smart Phones
Tablets & Gaming Systems
Just about anything else connecting to the
Internet
Why IPV6…..?
IPV6 provides a platform on new internet
functionality that will be needed in the
immediate future and provide
flexibility for future
growth and
expansion.
Benefits of IPV6…..
Extensibility
IPV6
Header translation is necessary when the majority of the Internet has moved
to IPv6 but some systems still use IPv4. The sender wants to use IPv6, but the
receiver does not understand IPv6. Tunneling does not work in this situation
because the packet must be in the IPv4 format to be understood by the
receiver. In this case, the header format must be totally changed through
header translation. The header of the IPv6 packet is converted to an IPv4
header
IP Based Technologies..
Internet
VoIP
IP – TV
IP-VPN
Wireless Mobile Technology
Internet Broadcasting
Multihoming
Challenges of IPv4
Address Depletion
Subnetting….
Prerequisite
◦ Knowledge on binary number
◦ Understand of IP version four
Subnetting….
Subnetting enables the network administrator
to further divide the host part of the address
into two or more subnets.
In this case, a part of the host address is