Professional Documents
Culture Documents
• A suite of protocols
• Rules that dictate how packets
of information are sent across
multiple networks
• Addressing
• Error checking
TCP/IP Protocol
• The Transmission Control Protocol/Internet Protocol (TCP/IP) suit
was created by the Department of Defense (DoD).
• The Internet Protocol can be used to communicate across any set
of interconnected networks.
• TCP/IP supports both LAN and WAN communications.
• IP suite includes not only Layer 3 and 4 specifications but also
specifications for common applications like e-mail, remote login,
terminal emulation and file transfer.
• The TCP/IP protocol stack maps closely to the OSI model in the
lower layers.
The DoD & OSI
Internet
Internet Protocol
Protocol (IP)
(IP)
Application
Internet
Internet Control
Control Message
Message
Transport Protocol
Protocol (ICMP)
(ICMP)
Internet Address
Address Resolution
Resolution
Protocol
Protocol (ARP)
(ARP)
Data-Link
Reverse
Reverse Address
Address
Physical Resolution
Resolution Protocol
Protocol (RARP)
(RARP)
Options (0 or 32 if Any)
Transport
TCP UDP
Layer
6 17 Protocol
Numbers
Internet
Layer IP
172.16.3.1 172.16.3.2
IP:
IP: 172.16.3.2
172.16.3.2 == ???
???
Address Resolution Protocol
I need the
I heard that broadcast.
Ethernet
The message is for me.
address of
Here is my Ethernet
176.16.3.2.
address.
172.16.3.1 172.16.3.2
IP:
IP: 172.16.3.2
172.16.3.2 == ???
???
Address Resolution Protocol
I need the
I heard that broadcast.
Ethernet
The message is for me.
address of
Here is my Ethernet
176.16.3.2.
address.
172.16.3.1 172.16.3.2
IP:
IP: 172.16.3.2
172.16.3.2 == ???
???
IP:
IP: 172.16.3.2
172.16.3.2
Ethernet:
Ethernet: 0800.0020.1111
0800.0020.1111
Address Resolution Protocol
I need the
I heard that broadcast.
Ethernet
The message is for me.
address of
Here is my Ethernet
176.16.3.2.
address.
172.16.3.1 172.16.3.2
IP:
IP: 172.16.3.2
172.16.3.2 == ???
???
IP:
IP: 172.16.3.2
172.16.3.2
Ethernet:
Ethernet: 0800.0020.1111
0800.0020.1111
Map IP Ethernet
RARP (Reverse ARP)
• This also works at Internet Layer.
• It works exactly opposite of ARP
• It resolves an IP address with the help of a known
MAC addres.
• DHCP is the example of an RARP implementation.
• Workstations get their IP address from a RARP
server or DHCP server with the help of RARP.
Reverse ARP
What is
my IP
address?
Ethernet:
Ethernet: 0800.0020.1111
0800.0020.1111 IP
IP == ???
???
Reverse ARP
I heard that
broadcast.
What is
Your IP
my IP
address is
address?
172.16.3.25.
Ethernet:
Ethernet: 0800.0020.1111
0800.0020.1111 IP
IP == ???
???
Reverse ARP
I heard that
broadcast.
What is
Your IP
my IP
address is
address?
172.16.3.25.
Ethernet:
Ethernet: 0800.0020.1111
0800.0020.1111 IP
IP == ???
???
Ethernet:
Ethernet: 0800.0020.1111
0800.0020.1111
IP:
IP: 172.16.3.25
172.16.3.25
Reverse ARP
I heard that
broadcast.
What is
Your IP
my IP
address is
address?
172.16.3.25.
Ethernet:
Ethernet: 0800.0020.1111
0800.0020.1111 IP
IP == ???
???
Ethernet:
Ethernet: 0800.0020.1111
0800.0020.1111
IP:
IP: 172.16.3.25
172.16.3.25
•Map Ethernet IP
Bootstrap Protocol (BootP)
Application
Transport Destination
1 Unreachable
ICMP
Echo (Ping)
Internet
Other
Data-Link
Physical
ICMP Ping
Transport Layer Overview
Transmission
Transmission Control
Control Connection-
Application Protocol
Protocol (TCP)
(TCP) Oriented
Transport User
User Datagram
Datagram Connectionless
Protocol
Protocol (UDP)
(UDP)
Internet
Data-Link
Physical
Transmission Control Protocol (TCP)
Options (0 or 32 if Any)
Data (Varies)
TCP Segment Format
• Source port – Number of the calling port
• Destination Port – Number of the called port
• Sequence Number – Number used to ensure correct sequencing of the
arriving data
• Acknowledgement Number – Next expected TCP octet
• Header Length – Length of the TCP header
• Reserved – Set to zero
• Code Bits – Control Functions (setup and termination of a session)
• Window – Number of octets that the sender is willing to accept
• Checksum – Calculated checksum of the header and data fields
• Urgent Pointer – Indication of the end of the urgent data
• Options – One option currently defined (maximum TCP segment size)
• Data – Upper layer protocol data
Port Numbers
F T S D T S R
T E M N F N I
Application P
Layer
P L T S T M
N P P P
E
T
21
21 23 25 53
53 69
69 161 520 Port
Transport Numbers
Layer TCP UDP
TCP Port Numbers
Source
Source Destination
Destination …
…
Port
Port Port
Port
Telnet Z
Host A Host Z
Send SYN
1
(seq = 100 ctl = SYN)
SYN Received
Send 2
Receive 2
Send ACK 3
Receive ACK 3
Send 3
Receive 3
• Window Size = 1
TCP Sequence and
Acknowledgment Numbers
Source
Source Destination
Destination Sequence
Sequence Acknowledgment
Acknowledgment …
…
Port
Port Port
Port
I just
sent number
I just got number
10
10, now I need
number 11.
Source
Source Dest.Seq.
Dest. Seq. Ack.
Ack.
23
23 1028
1028 11 11
11
1028
1028 23
23 11
11 22 .
TCP Windowing
Window Size = 3
Sender Send 1 Window Size = 3 Receiver
Window Size = 3
Send 2
Window Size = 3
Send 3
ACK 3 Packet 3 Is
Window Size = 2 Dropped
Window Size = 3
Send 3
Window Size = 3
Send 4
ACK 5
Window Size = 2
UDP (User Datagram Protocol)
• A connectionless and unacknowledged protocol.
• UDP is also responsible for transmitting messages.
• But no checking for segment delivery is provided.
• UDP depends on upper layer protocol for reliability.
• TCP and UDP uses Port no. to listen to a particular services.
UDP Segment Format
Bit
1 0 Bit 15 Bit 16 Bit 31
X Window
• X-windows defines a protocol for the writing of
graphical user interface-based client/Server
application.
Simple Network Management Protocol
• SNMP enable a central management of Network.
• Using SNMP an administrator can watch the entire
network.
• SNMP works with TCP/IP.
• IT uses UDP for transportation of the data.
DNS (Domain Name Service)
• DNS resolves FQDNs with IP address.
• DNS allows you to use a domain name to specify and
IP address.
• It maintains a database for IP address and
Hostnames.
• On every query it checks this database and resolves
the IP.