Introduction To TCP/IP: Vikyath M.B
Introduction To TCP/IP: Vikyath M.B
Introduction to TCP/IP
VIKYATH M.B
2
OSI and Protocol Stack OSI: Open Systems Interconnect
7th
Application Layer
6th
Presentation Layer Application Layer
5th
Session Layer
4th
Transport Layer
Transport Layer
3rd
Network Layer
Network Layer
2nd
Link Layer
Link Layer
1st
Physical Layer
64 to 1500 Bytes
4
Ethernet
Ethernet Packet:
Preamble Dest. Source Type Data CRC
address address
Protocol
1. ARP request broadcast on Ethernet
2. Destination host ARP layer responds
6
IP: Internet Protocol
Unreliable … connectionless datagram delivery service
Responsible for routing of data through intermediate
networks and computers
1 :ICMP
6 :TCP
17 :UDP
7
8
IP Routing
Source Destination
Application Application
Transport Router Transport
Network Network Network
Link Link Link
Routing Table
Destination IP address
IP address of a next-hop router
Flags
Network interface specification
9
ICMP : Internet Control Message Protocol
Used to report problems with delivery of IP Datagrams
within an IP network
Used by Ping, Tracerout commands
ICMP Message
20bytes 4bytes
IP ICMP ICMP
Header Header Data
Client Host
Send Packet 1
Start Timer Packet Lost Packet should arrive
Timer ACK should be sent
ACK would normally
Arrive at this time
Time Expires
Retransmit Packet1
Timer Start Timer Receive Packet 1
Send ACK 1
Receive ACK 1
Cancel Timer
14
HTTP : Hyper Text Transfer Protocol
Client Server
Http request
Appl GET “http://www.ee.ucla.edu”<CR> Appl
Http response
HTTP 200 “” <CR> <html file in MIME format> HTTP
Transp Initiate connection (hdshk) Transp
Package data (add TCP header)
send http request packet
TCP Assemble response TCP
(break into several packets)
Send http response packets
Close connection (hdshk)
send data to next hop
Net Net Net
Relay data
IP ARP to provide IP IP
IP/MAC translation
Link Link Link
ethernet ethernet ethernet
Router(s)
17
References
“TCP/IP Illustrated, Volume 1 The Protocols “
by W. Richard Stevens (http://yenigul.net/tcpip)