Each
network protocol has its own contribution to the Internet. Let’s see how data travels in the Internet:
Internet Protocol
The Internet Protocol (IP) is the principal communications protocol in the Internet protocol suite for relaying datagrams across network boundaries. Its routing function enables internetworking,
and essentially establishes the Internet.
IP, as the primary
protocol in the Internet
layer of the Internet
protocol suite, has the task of delivering packets from
the source host to the destination host solely based
on the IP addresses in the packet headers. For this purpose, IP defines
packet structures that encapsulates the data to be delivered. It also
defines addressing methods that are used to label the datagram with source and
destination information.
Transmission Control Protocol
The Transmission Control Protocol (TCP) is a set of rules used along
with the IP to send data in the form of message units between computers over
the Internet. While IP takes care of handling the actual delivery of the data,
TCP takes care of keeping track of the individual units of data called packets that a message is divided into for
efficient routing through the Internet.
For example, when an HTML file is sent to you from a Web server,
the TCP program layer in that server
divides the file into one or more packets, numbers the packets, and then
forwards them individually to the IP program layer. Although each packet has
the same destination IP address, it may get routed differently through the
network. At the other end (the client program
in your computer), TCP reassembles the individual packets and waits until they
have arrived to forward them to you as a single file.
TCP is known as a connection-oriented protocol,
which means that a connection is established and maintained until such time as
the message or messages to be exchanged by the application programs at each end
have been exchanged. TCP is responsible for ensuring that a message is divided
into the packets that IP manages and for reassembling the packets back into the
complete message at the other end. In the Open Systems Interconnection (OSI)
communication model, TCP is in layer 4, the Transport Layer.
User Datagram Protocol
The User Datagram Protocol (UDP) is a communications protocol that
offers a limited amount of service when messages are exchanged between
computers in a network that uses the Internet Protocol (IP). UDP is an
alternative to the TCP
and, together with IP, is sometimes referred to as UDP/IP. Like the TCP, UDP
uses the IP to actually get a data unit (called a datagram) from one computer to another. Unlike
TCP, however, UDP does not provide the service of dividing a message into
packets and reassembling it at the other end. Specifically, UDP doesn't provide
sequencing of the packets that the data arrives in. This means that the
application program that uses UDP must be able to make sure that the entire
message has arrived and is in the right order. Network applications that want
to save processing time because they have very small data units to exchange
(and therefore very little message reassembling to do) may prefer UDP to TCP.
The Trivial File Transfer Protocol (TFTP) uses UDP instead of TCP.
UDP provides two services not provided by the IP
layer. It provides port numbers to help distinguish different user
requests and, optionally, a checksum capability
to verify that the data arrived intact.
In the OSI
communication model, UDP, like TCP, is in layer 4, the Transport Layer.
These
are just some of the many protocols. Some will be explained in the next post…
No comments:
Post a Comment