TCP Ip
TCP Ip
TCP/IP
TCP/IP (Transmission Control Protocol/Internet Protocol) is the basic
communication language or protocol of the Internet.
TCP is one of the core protocols of the Internet protocol suite (IP)
TCP is a transport layer protocol
TCP/IP is a two-layer program. The higher layer, Transmission Control
Protocol, manages the assembling of a message or file into smaller packets
that are transmitted over the Internet and received by a TCP layer that
reassembles the packets into the original message.
The lower layer, Internet protocol, handles the address part of each packet
so that it gets to the right destination.
Each gateway computer on the network checks this address to see where to
forward the message.
Even though some packets from the same message are routed differently
than others, they'll be reassembled at the destination.
TCP/IP uses the client/server model of communication in which a computer
user requests and is provided a service (such as sending a Web page) by
another computer in the network.
TCP/IP
TCP/IP communication is primarily point-to-point, meaning each
communication is from one point in the network to another point or host
computer.
TCP provides reliable, ordered and error-checked delivery of a stream
of octets (an octet is a unit of digital information in computing and
telecommunication that consists of 8 bits) between programs running on
computers connected to a LAN, intranet or the public Internet. It resides at
the transport layer
Web browsers use TCP when they connect to servers on the World Wide
Web, and it is used to deliver email and transfer files from one location to
another.
Applications that do not require the reliability of a TCP connection may
instead use the connectionless User Datagram Protocol (UDP), which
emphasizes low-overhead operation and reduced latency rather than error
checking and delivery validation.
Application
Transport
Host-to-network layer
Internet
Host has to connect to the network using some
protocol so it can send IP packets to it.
Host-to-network
The internet layer
A packet-switching network based on a connectionless internetwork
layer
Its job is to permit hosts to inject packets into any network and have
them travel independently to the destination.
The internet layer defines an official packet format and protocol called
IP.
The job of the internet layer is to deliver IP packets where they are
supposed to go. Packet routing is clearly the major issue here,
avoiding congestion
Protocols used in a layer are the layers own business. It can use
any protocols it wants to, as long as it gets the job done.
It can also change them at will, without affecting software in higher
layers
OSI model makes such a distinction between these three concepts
but, the TCP/IP model did not clearly distinguish between them.
TCP/IP model is not much of a guide for designing new networks
using new technologies
It is not at all general and is poorly suited to describing any protocol
stack other than TCP/IP
Host- to network layer is not really a layer
It does not distinguish the physical and data link layers
Application
OSI model has proven to be exceptionally useful but
Transport
OSI protocols have not become popular
Network
TCP/IP model is practically nonexistent
Data link
Hybrid model as in fig.
Physical
Protocol
UDP TCP
datagram segment
optional required
No
yes
No
yes
No
yes
No
yes
No
yes
Yes
No
No. of
bits
Description
16
16
Sequence number
32
Segment identifier
Ack. Number
32
Header length
Reserved
zero
Control bits
Window
16
Checksum
16
Checksum value
Urgent pointer
16
options
0 or
more
Establishing a connection
A TCP connection has two end points, one at the source and one
at the destination.
Closing a connection
Closing a connection also requires a handshaking
In addition, at any time, either computer may request to close or reset the
connection and the other computer should ack. the request and may
request to close or reset the connection from the other end