TCP Ip Rly
TCP Ip Rly
History
Transport Layer
Host Level TCP UDP
Internetwork Layer
Gate Way Level IP & ICMP
IP - is responsible for:
Moving packet of data from node to node. IP
forwards each packet based on a four-byte destination
address (the IP number).
The TCP/IP protocol suite is so named for two of its most important
protocols:
Transmission Control Protocol (TCP) and
Internet Protocol (IP).
TCP - is mainly responsible for
Data Concurrency,
Packet Sequencing
Delivery guarantee
Error control
Retransmission
TCP/IP provides the three core services:
File transfer
Remote login
Electronic mail
IP Protocols
• Internet or IP technology over the years has emerged
as the most prominent data communication
technology.
• TCP/IP protocol has become de-facto data
communication standard throughout the world.
• It can carry even voice/video also over IP protocol and
in turn has started challenging the complete monopoly
of TDM technology in voice communication.
TCP/IP and OSI
SESSION
OSI Model TRANSPORT TRANSPORT
TCP/IP Model
NETWORK NETWORK
DATA LINK DATA LINK
PHYSICAL PHYSICAL
TCP/IP Protocol Suite
FTP TFTP
A SMTP NFS
TELNET SNMP
HTTP DNS
T TCP UDP
D
Protocols defined by the underlying networks
P
Data Encapsulation
Application Data
UDP Message
IP Datagram
SEQUENCE NUMBER
ACKNOWLEDGEMENT NUMBER
UAP RS F
HELEN RCS S YI WINDOW SIZE
GKHT NN
TIME TO
LIVE PROTOCOL HEADER CHECKSUM
OPTIONS PADDING
Internet Control Message
Protocol
• Internet Control Message Protocol is a mechanism
used by hosts and routers to send notification of
datagram problems back to the sender.
• Sends error messages only to the source and not to
intermediate routers.
• Sole function is to report problems, not to correct
them.
• ICMP uses echo/reply to test whether a destination is
reachable and responding.
ICMP..
• Echo request/reply (PING; Packet INternet
Gropher)
– Destination unreachable
• 0-Network unreachable
• 1-Host unreachable
• 2-Protocol unreachable
• 3-Port unreachable
• 4-Fragment needed but DF bit is set
• 5-Source route failed
• 6-Destination network unknown
ICMP…
• 7-Destination host unknown
• 8-Source host isolated
• 9-Communication with destination network
administratively prohibited
• 10-Communication with destination host
administratively prohibited
• 11-Network unreachable for type of service
• 12-Host unreachable for type of service
– Time exceeded message format
• 0-TTL exceeded
• 1-Fragment reassembly time exceeded
Internet Group Message Protocol
• Internet Group Message Protocol provides allows
for multicast to operate on an internetwork.
– Multicast is one-to-many communication.
– A message sent can be simultaneously received by a
group of hosts.
• Special type of Class-D IP addresses, starting with
1110, are reserved as multicast addresses.
Address Resolution Protocol
• Address Resolution Protocol is used to
translate 32 bits IP addresses to 48 bits
Ethernet addresses.
• A host’s physical address is determined by
broadcasting its IP address to all machines.
• The machine with matching IP address, in
broadcast message, sends its hardware
address to the machine originating broadcast.
ARP Operation
129.1.1.1 129.1.1.4
Diskless
work
station RARP
Server
08-00-39-00-2F-AB
223.1.2.1 223.1.2.3
08-00-39-00-2F-C3 223.1.2.2 08-00-10-99-AC-54
08-00-5A-21-A7-22
IPv4 Address
32 Bits
Network Host
8 8 8 8
Bits Bits Bits Bits
Class-B: N N H H
Class-C: N N N H
Present day Internet does not use Class full addressing, Instead
Classless addressing is used.
TCP/IP
• TCP/IP and
has simple OSI Model
hierarchical design
• In clear corresponding relations with OSI
OSI reference model
reference model. TCP/IP
7 Application layer
Application layer
6 Presentation layer
5 Conversation layer
Transport layer
UDP
Network layer
0 8 16 24 31
16 bits source port 16 bits destination port
32 bits sequence number
32 bits acknowledge number
UR
AC
offset
SY
NR
FI
PS
N
H
T
S
20/21 23 25 53 69 161
80
Socke
TCP UDP
t
IP data packet
TCP Connection
Internet
client server
SYN(s
e q=a)
c k= a + 1)
e q= b, a
SYN(s
SYN(s
e q=a+1
, a c k= b
) +1
Slide Window
len 1024
win4096
len 1024
win4096
len 1024
To modify the win4096 The sender is
len 1024
win4096
widows size too fast
win2048
ack 4097
len 1024
win4096
len 1024
win4096
win2048
ack 6145
len 1024
win4096
len 1024
win4096
Network Layer Overview
Application layer
IP
Transport layer
ARP
Network layer
RARP
Data Link layer ICMP
0 4
IP8 Header
16
Format 31
Source IP address
Destination IP address
IP options
ARP
This is my Ethernet
address 00-E0-FC-00-
00-12
What is my IP
address?
RARP Request?
ICMP
I am here.
A B
ICMP Echo Reply
Is B
accessible?
ICMP Echo Request
TCP/IP was developed by US DOD for ARPA (Advance
Research Project Agency)