ch5-tcpighgp-model
ch5-tcpighgp-model
What is a Protocol?
Protocol is set of rules and
conventions.
Sender and receiver in data
communication must agree on common
set of rules before they can
communicate with each other.
Protocol defines.
a) Syntax (what is to be communicated)
b) Semantics (how is it to be
communicated
TCP/IP Model
TCP/IP Model
The TCPIIP protocol suite was developed
prior to the OSI model.
Therefore, the layers in the TCP/IP
protocol suite do not exactly match
those in the OSI model.
The original TCP/IP protocol suite was
defined as having four layers: host-to-
network, internet, transport, and
application.
TCP/IP Model
TCP/ IP Model
TCP/IP Model
TCP/IP Model
When TCP/IP is compared to OSI,
The host-to-network layer is equivalent to
the combination of the physical and data
link layers.
The internet layer is equivalent to the
network layer, and
the application layer doing the job of the
session, presentation, and application
layers.
TCP/IP Model
TCP/IP
Transmission control Protocol/Internet
Protocol
Developed by DARPA
No official protocol standard
Can identify five layers
Application
Host-to-Host (transport)
Internet
Network Access
Physical
TCP/IP Model
TCP/IP Network Access
Layer
Also called as Host-to-Network Layer.
Performs all functions of physical Layer and Data Link
Layer.
Exchange of data between end system and network.
Address of host and destination
Prioritization of transmission.
This deals with hardware level, connections as in other
network model.
TCP/IP Model
*TCP/IP
Application TELNET FTP SMTP DNS SNMP DHCP
Presentation
Session RIP
IGMP ICMP
ARP
Data link
Ethernet Token Bus Token Ring FDDI
Physical
TCP/IP Model
Host-to-Network Layer
Protocol
Host to network Layer Defines two protocols
SLIP
PPP
SLIP and PPP Protocols allow a user to dial
into an ISP over Telephone Line.
TCP/IP Model
SLIP
SLIP-Serial Line Internet Protocol.
It designed to work over serial ports and
modem connections.
Defines a sequence of bytes that frame IP
packets on a serial line.
Commonly used for point-to-point serial
connections running TCP/IP.
It is designed to transmit signals over a serial
connection and has very low overhead.
TCP/IP Model
PPP
PPP means point to point protocol.
It is a much more developed protocol than
SLIP(which is why it is replacing it).
It transfers additional data, better suited to
data transmission over the Internet.
PPP is More Complex than SLIP.
TCP/IP Model
SLIP Vs PPP
Serial Line Internet Protocol does not In PPP, LCP (Line Control Protocol) is
establish or maintain connection responsible for establishing,
between the client and ISP server. maintaining and termination
connection between two end points.
ARP Protocol
ARP sends the IP broadcast message to all the
computer on the network.
The computer whose IP address matches the
broadcast IP address sends a reply and along
with its physical address to the broadcasting
computer.
All other computers ignore the broadcast
message
TCP/IP Model
ARP Request:
What is the MAC address
of 128.143.71.1?
TCP/IP Model
ARP Reply:
The MAC address of 128.143.71.1
is 00:e0:f9:23:a8:20
TCP/IP Model
RARP
Reverse Address Resolution Protocol.
If we have to obtain the IP address
corresponding to the given Ethernet address.
RARP works in very similar way of ARP, but in
exactly opposite direction.
The RARP server looks at this request.
Then it looks up the Ethernet address in its
configuration files and sends back the
corresponding IP address.
TCP/IP Model
TCP/IP Model
Priority
IPv4 IPv6
1. Source and destination 1. Source and destination
addresses are 32 bits (4 bytes) addresses are 128 bits(16
in length. bytes) in length.
2. Uses broadcast addresses to 2. There are no IPv6 broadcast
send traffic to all nodes on a addresses. Instead, multicast
subnet. scoped addresses are used.
Data
UDP
UDP is user datagram protocol.
It is connectionless protocol because data is
sent without establishing a connection between
sender and receiver before sending the data.
UDP is unreliable because data is delivered
without acknowledgement.
UDP does not perform Auto retransmission.
UDP does not use flow control .
UDP has high transmission speed.
UDP
Length Checksum
Data
TCP UDP
1. TCP is connection oriented protocol 1. UDP is connection less protocol
2. It provides reliable delivery of messages 2. It provides unreliable delivery of
messages
3. It assigns datagram size dynamically for 3. Every datagram segment is of the same
efficiency. size.
4. TCP has flow control 4. UDP has no flow control
5. Overhead is low 5. Overhead is very low.
6. Transmission speed is high 6. Transmission speed is very high
UDP TCP
Complexity UDP is less complex TCP is more complex
Connection UDP is connection less TCP is connection oriented
protocol protocol
Reliability It provides unreliable It provides reliable delivery
delivery of messages of messages
Function By using this protocol one As a message makes its way
program can send a load of across the internet from one
packets to another and that computer to another. This is
would be the end of the connection based.
relationship.
Which layer they Transport layer Transport layer
exist
Flow controlling UDP has no flow control TCP has flow control
Overhead Overhead is very low Overhead is low
Which is UDP is less powerful TCP is more powerful.
powerful
Application Layer Protocols
DHCP
SMTP
FTP
DNS
Telnet
DHCP
DHCP (Dynamic Host Configuration Protocol) is a client-
server protocol that uses DHCP servers and DHCP clients.
A DHCP server is a machine that runs a service that can lease
out IP addresses and other TCP/IP information to any client
that requests them.
The DHCP server typically has a pool of IP addresses that it is
allowed to distribute to clients, and these clients lease an IP
address from the pool for a specific period of time, usually
several days.
Once the lease is ready to expire, the client contacts the server
to arrange for renewal.
DHCP clients are client machines that run special DHCP client
software enabling them to communicate with DHCP server.
DHCP
DHCP clients obtain a DHCP lease for an IP address, a subnet mask, and various
DHCP options from DHCP servers in a four-step process:
DHCP DISCOVER: The client broadcasts a request for a DHCP server.
DHCPOFFER: DHCP servers on the network offer an address to the client.
DHCPREQUEST: The client broadcasts a request to lease an address from one
of the offering DHCP servers.
DHCPACK: The DHCP server that the client responds to acknowledges the
client, assigns it any configured DHCP options, and updates its DHCP database.
The client then initializes and binds its TCP/IP protocol stack and can begin
network communication.
SMTP
SMTP is simple mail transfer protocol.
It is connection oriented text based protocol.
Sender communicates with receiver using a command
and supplying data over reliable TCP connection.
SMTP is standard application layer protocol for
delivery of email over TCP/IP network.
SMTP establish a TCP connection between Sender And
port number 25 of receiver.
FTP
FTP is used for copying a file from one host to the
other.
Some of the problem in transferring files :
Two systems may use different file name conventions.
Two systems may represent text data in different types.
The directory structure of the two systems may be different.
FTP provides a simple solution to all these problems.
FTP established two connections between the client
and server.
One is for data transfer and the other is for the control
information.
OSI reference model TCP/IP network model
It has 7 layers It has 4 layers
Transport layer guarantees Transport layer does not
delivery of packets guarantees delivery of packets
Horizontal approach Vertical approach
Separate presentation layer No presentation layer
Separate session layer No session layer