TCP Ip Stack
TCP Ip Stack
PROTOCOL SUITE
• A protocol suite is a collection of protocols
that are designed to work together.
• A layered architecture where each layer
depicts some functionality which can be
carried out by a protocol.
• more than one protocol options to carry out
the responsibility that the layer needs pertains
to
• TCP (Transmission Control Protocol) /IP (Internet
Protocol) was developed by the Department of
Defense (DoD) project agency.
• TCP and IP are two of the network standards that
make the internet possible.
• internet Protocol (IP) defines how computers can
get data to each other over
• The Transmission Control Protocol (TCP) defines
how applications can create reliable channels of
communication
• IP basically defines addressing and routing, while
TCP defines how to have a conversation across an
IP-mediated link without garbling or losing data.
The 4 layers are as follows :
1. Application layer
2. Transport layer
3. Network layer
4. Data link layer
OSI Model TCP/IP Hierarchy Protocols
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
BASIS FOR
TCP/IP MODEL OSI MODEL
COMPARISON
Internet Protocol
Interconnect
Meaning
It is a client server model used It is a
is used for
Number Of
the internet.
Layers computing system.
Developed Department of Defense ISO (International
by (DoD) Standard
Organization)
Tangible Yes No
The next step is transferring the message between the mail servers.
The SMTP protocol is used for this communication. Now our message
is with the recipient mail server (MTA).
TCP tracks all data does not have a sequence number and
sent,acknowledgment is sent acknowledgment scheme.
If the data is found to be duplicated Different packets may take different
/missing/out of order it will not be paths to get through the network. The
passed to the upper layer packets are reassembled after they
arrive at the destination
Reliable
Connectionless
Acknowledgement No
Sequencing
• Some ports have been reserved to support
common/well known services:
• ftp 21/tcp
• telnet 23/tcp
• smtp 25/tcp
• login 513/tcp
• http 80/tcp,udp
• https 443/tcp,udp
• User-level process/services generally use port
number value >= 1024
Host identification by ip address and
port num
• each service offered by a computer is uniquely
identified by a port number.
• Each Internet packet contains both the
destination host address and the port number
on that host to which the message/request
has to be delivered.
• The host computer dispatches the packets it
receives to programs by looking at the port
numbers specified within the packets.
TCP/IP Socket Programming
• Classes
– Serversocket
– Socket
• Socket – a 2-way communication link
• It is bound to a port number so that TCP
layer can identify the application that data is
destined to be sent
BASIS FOR
COMPARISON POP3 IMAP
Basic To read the mail ithas to be downloaded first. The mail content can be checked
partially before downloading.
Organize The user can not organize mails in the The user can organize the mails
mailbox of the mail server. on the server.
Folder The user can not create, delete or rename The user can create, delete or
mailboxes on a mail server. rename mailboxes on the mail
server.
Content A user can not search the content of mail for A user can search the content of
prior downloading. mail for specific string of
character before downloading.
Partial Download The user has to download the mail for The user can partially download
accessing it. the mail if bandwidth is limited.
Functions POP3 is simple and has limited functions. IMAP is more powerful, more
complex and has more features
over POP3.