Académique Documents
Professionnel Documents
Culture Documents
TCP/IP is the first set of protocols used in internet. Allows computers to communicate / share resources across network Work on TCP/IP started in 1970s
Funded ARPA Network
by US Military
protocols of ARPANET where upgraded
as a standard To bridge the gap between non-compatible platforms All the computers are connected to the internet understands TCP/IP
In 1978 international standard Organization (ISO) proposed a seven layer reference model for network services and protocols
Known
as the OSI model TCP/IP does not strictly follow this 7 layer model TCP/IP follows simplified 4 layer model
Why layering?
change in one layer does not affect the other layer Interface must remain the same
Data Link
Data Link
Refers to the family of protocols The protocols are built up on connectionless technology
Data
sent from one node to other node as sequence of datagram Each data gram sent independently The datagram corresponding to same massage may follow different routes
Variable
SMTP DNS
User process
UDP
TCP IP
ICMP
IGMP
ARP
RARP
for routing packets Breaks the packet into smaller packet if required Unreliable source
A
packet may be lost in a transmit Packets may arrive out of order Duplicate packets may be generated
message into packets Reassemble packets at the destination Resend the packet that were lost in transmit
Interface with IP
Each
UDP provides the connectionless unreliable service for sending datagrams (packets)
Messages
query) Simpler and faster than TCP Never split data into multiple packets Does not care about error control
Interface with IP
Each
Addresses in TCP/IP
User process
TCP IP
Data Link and hardware layer (Eg: Ethernet)
User process
UDP
Port address (16 bits) Internet address (32 bits)
Encapsulation
Basic concept:
As
data flows down the protocol hierarchy, headers (and trailers) get upended to it As data moves up hierarchy headers and trailers are removed off
Example:
Trivial
File Transfer Protocol (TFTP) TFTP client transfers 200 bytes of data 4 bytes of TFTP header gets added
TFTP Server
UDP IP Ethernet
H-UDP H-UDP
8
H-IP
20
T-En
4
The IP layer
IP layer provides a connectionless, unreliable delivery of system for packets Each packet is independent of one another
IP
layer need not maintain any history Each IP packet must contain the source and destination addresses IP layer does not guarantee delivery of packets
The IP layer(contd.)
IP layer encapsulation
Receives
a data chunk from higher layer (TCP or UDP) Prepends header of minimum 20 bytes
Containing
control
Illustration
Data
Datagram
Format of IP datagram
H E A D E R
IP header field
VER- (4 bits)
Version
HLEN (4bits)
Length
in bytes for the datagram including header Maximum datagram size : 216 = 65536 bytes
packet to be assigned priority Router can use this field to route packets Not universally used
a packet from traveling in a loop Sender sets a value that is decremented at each hop, If it reaches zero packet is discarded
Protocol - (8 bits)
Identifies
address of sender
address of receiver
Header checksum
Covers
is treated as sequence of 16 bit integer The integers are added using ones complement arithmetic Ones complement of final sum is taken as checksum
Mismatch