TCP/IP Protocol suite in computer network ,Layered Architecture of TCP/IP Protocol , layers of TCP/IP protocol, explanation about TCP/IP protocol,
TCP/IP PROTOCOL SUITE:
- TCP/IP (Transmission Control Protocol/Internet Protocol) is s a protocol suite (a set of protocols organized in different layers) used in the Internet today. It is a hierarchical protocol made up of interactive modules, each of which provides a specific functionality.
- The term hierarchical means that each upper level protocol is supported by the services provided by one or more lower level protocols.
- The original TCP/IP protocol suite was defined as four software layers built upon the hardware. Today, however, TCP/IP is thought of as a five -layer model.
Layered Architecture (Functions and responsibilities) :
To show how the layers in the TCP/IP protocol suite are involved n communication between
two hosts, we assume that we want to use the suite in a small internet made up of three LANs (links), each with a link layer switch. We also assume that the links are connected by one router, as shown in the below figure..
- Let us assume that computer A communicates with computer B.
- As the figure shows, we have five communicating devices in this communication:
- source host (computer A).
- the link-layer switch in link 1
- the router
- the link-layer switch in link 2, and
- the destination host (computer B).
- Each device is involved with a set of layers depending on the role of the device in the internet.
- The two hosts are involved in all five layers; the source host needs to create a message in the application layer and send it down the layers so that it is physically sent to the destination host. The destination host needs to receive the communication at the physical layer and then deliver it through the other layers to the application layer
- The router is involved in only three layers :there is no transport or application layer in a router as long as the router is used only for routing. Although a router is always involved in one network layer, it is involved in n combinations of link and physical layer in which “n” is the number of links the router is connected to
A link-layer switch in a link, however, is involved only in two layers, data
however, is involved only in two layers, data-link and physical.
Although each switch in the a above figure has two different connections, the connections are in
the same link, which uses only one set of protocols. This means that, unlike a router, a link-layer switch is involved only in one data--link and one physical layer
Layers in the TCP/IP Protocol Suite :
To better understand the duties of each layer, we need to think about the logical connections
between layers. The following figure shows logical connections in our simple internet.
- Using logical connections makes it easier for us to think about the duty of each layer. As the figure shows, the duty of the application, transport, and network layers is end -to-end.
- However, the duty of the data-link and physical layers is hop-to-hop, in which a hop is a host or router. In other words, the domain of duty of the top three layers is the internet, and the domain of duty of the two lower layers is the link.
- Another way of thinking of the logical connections is to think about the data unit cr think about the data unit created from each layer.
- In the top three layers, the data unit (packets) should not be changed by any router or link-layer switch.
- In the bottom two layers, the packet created by the host is changed only by the routers packet created by the host is changed only by the routers, not by the link-layer switches.
- The following figure shows the second principle discussed previously for protocol layering. We show the identical objects below each layer related to each device.
Note that, although the logical connection at the network layer is between the two hosts, we
can only say that identical objects exist between two hops in this case because a
fragment the packet at the network layer and send more packets than received Note that the link between two hops does not change the object
TCP/IP MODEL PROTOCOLS OF EACH LAYER :
Description of Each Layer :
Physical Layer :
- Physical layer is responsible for carrying individual bits in a frame across the link.
- Although the physical layer is the lowest level in the TCP/IP protocol suite, the communication between two devices at the physical layer is still a logical communication because there is another, hidden layer, the transmission media, under the physical layer.
- Two devices are connected by a transmission medium (cable or air).
- We need to know that the transmission medium does not carry bits; it carries electrical or optical signals. So the bits received in a frame from the data-link layer are transformed and sent through the transmission media, but we can think that the logical unit between two physical layers in two devices is a bit.
- There are several protocols that transform a bit to a signal.
Data-link Layer :
- An internet is made up of several links (LANs and WANs) connected by routers. There may be several overlapping sets of links that a datagram can travel from the host to the destination.
- The routers are responsible for choosing the best links. However, when the next link to travel is determined by the router, the data-link layer is responsible for taking the datagram and moving it across the link.
- The link can be a wired LAN with a link-layer switch, a wireless LAN, a wired WAN, or a wireless WAN.
- We can also have different protocols used with any link type. In each case, the data-link layer is responsible for moving the packet through the link.
- TCP/IP does not define any specific protocol for the data-link layer. It supports all the standard and proprietary protocols.
- Any protocol that can take the datagram and carry it through the link suffices for the network layer. The data-link layer takes a datagram and encapsulates it in a packet called a frame.
- Each link-layer protocol may provide a different service. Some link-layer protocols provide complete error detection and correction, some provide only error correction.
Network Layer :
- The network layer is responsible for creating a connection between the source computer and the destination computer. The communication at the network layer is host-to-host.
- The network layer is responsible for host-to-host communication and routing the packet through possible routes.
- Why we need the network layer?
- One reason is the separation of different tasks between different layers.
- The second reason is that the routers do not need the application and transport layers. Separating the tasks allows us to use fewer protocols on the routers.
- The network layer in the Internet includes the main protocol, Internet Protocol (IP), that defines the format of the packet, called a datagram at the network layer. IP also defines the format and the structure of addresses used in this layer. IP is also responsible for routing a packet from its source to its destination, which is achieved by each router forwarding the datagram to the next router in its path.
- IP is a connectionless protocol that provides no flow control, no error control, and no congestion control services. The network layer also includes unicast (one-to-one) and multicast (one-to-many) routing protocols.
- A routing protocol does not take part in routing (it is the responsibility of IP), but it creates forwarding tables for routers to help them in the routing process.
- The network layer also has some auxiliary protocols that help IP in its delivery and routing tasks.
- The Internet Control Message Protocol (ICMP) helps IP to report some problems when routing a packet.
- The Internet Group Management Protocol (IGMP) is another protocol that helps IP in multitasking.
- The Dynamic Host Configuration Protocol (DHCP) helps IP to get the network-layer address for a host.
- The Address Resolution Protocol (ARP) is a protocol that helps IP to find the link-layer address of a host or a router when its network-layer address is given.
Transport Layer :
- The logical connection at the transport layer is also end-to-end. The transport layer at the source host gets the message from the application layer, encapsulates it in a transport layer packet (called a segment or a user datagram in different protocols) and sends it, through the logical (imaginary) connection, to the transport layer at the destination host.
- In other words, the transport layer is responsible for giving services to the application layer: to get a message from an application program running on the source host and deliver it to the corresponding application program on the destination host.
- The transport layer should be independent of the application layer. In addition, we will see that we have more than one protocol in the transport layer, which means that each application program can use the protocol that best matches its requirement.
- The main protocol, Transmission Control Protocol (TCP), is a connection-oriented protocol that first establishes a logical connection between transport layers at two hosts before transferring data. It creates a logical pipe between two TCPs for transferring a stream of bytes. TCP provides flow control (matching the sending data rate of the source host with the receiving data rate of the destination host to prevent overwhelming the destination), error control (to guarantee that the segments arrive at the destination without error and resending the corrupted ones), and congestion control to reduce the loss of segments due to congestion in the network.
- The other common protocol, User Datagram Protocol (UDP), is a connectionless protocol that transmits user datagrams without first creating a logical connection. In UDP, each user datagram is an independent entity without being related to the previous or the next one (the meaning of the term connectionless). UDP is a simple protocol that does not provide flow, error, or congestion control. Its simplicity, which means small overhead, is attractive to an application program that needs to send short messages and cannot afford the retransmission of the packets involved in TCP, when a packet is corrupted or lost.
- A new protocol, Stream Control Transmission Protocol (SCTP) is designed to respond to new applications that are emerging in the multimedia.
Application Layer :
- The logical connection between the two application layers is end to-end. The two application layers exchange messages between each other as though there were a bridge between the two layers. However, we should know that the communication is done through all the layers.
- Communication at the application layer is between two processes (two programs running at this layer). To communicate, a process sends a request to the other process and receives a response. Process-to-process communication is the duty of the application layer. The application layer in the Internet includes many predefined protocols, but a user can also create a pair of processes to be run at the two hosts.
- The Hypertext Transfer Protocol (HTTP) is a vehicle for accessing the World Wide Web (WWW). The Simple Mail Transfer Protocol (SMTP) is the main protocol used in electronic mail (e-mail) service. The File Transfer Protocol (FTP) is used for transferring files from one host to another The Terminal Network (TELNET) and Secure Shell (SSH) are used for accessing a site remotely.
- The Simple Network Management Protocol (SNMP) is used by an administrator to manage the Internet at global and local levels.
- The Domain Name System (DNS) is used by other protocols to find the network-layer address of a computer.
- The Internet Group Management Protocol (IGMP) is used to collect membership in a group
Tags:
Computer network