Friday, April 3, 2020

tcpip


TCP/IP Reference Model

TCP/IP that is Transmission Control Protocol and Internet Protocol was developed by Department of Defence's Project Research Agency (ARPA, later DARPA) as a part of a research project of network interconnection to connect remote machines.
Tcp/Ip Reference Model | Wrytin

Different Layers of TCP/IP Reference Model
Review the key networking concepts –TCP/IP reference model ...
Layer 1: Host-to-network Layer
  1. Lowest layer of the all.
  2. Protocol is used to connect to the host, so that the packets can be sent over it.
  3. Varies from host to host and network to network.
  4. A Host-to-network layer is the lowest layer of the TCP/IP model.
  5. A Host-to-network layer is the combination of the Physical layer and Data Link layer defined in the OSI reference model.
  6. It defines how the data should be sent physically through the network.
  7. This layer is mainly responsible for the transmission of the data between two devices on the same network.
  8. The functions carried out by this layer are encapsulating the IP datagram into frames transmitted by the network and mapping of IP addresses into physical addresses.
  9. The protocols used by this layer are ethernet, token ring, FDDI, X.25, frame relay.
Layer 2: Internet layer
  1. Selection of a packet switching network which is based on a connectionless internetwork layer is called a internet layer.
  2. It is the layer which holds the whole architecture together.
  3. It helps the packet to travel independently to the destination.
  4. Order in which packets are received is different from the way they are sent.
  5. IP (Internet Protocol) is used in this layer.
  6. The various functions performed by the Internet Layer are:
    1. Delivering IP packets
    2. Performing routing
    3. Avoiding congestion
Following are the protocols used in this layer are:
IP Protocol: IP protocol is used in this layer, and it is the most significant part of the entire TCP/IP suite.
Following are the responsibilities of this protocol:
  1. IP Addressing: This protocol implements logical host addresses known as IP addresses. The IP addresses are used by the internet and higher layers to identify the device and to provide internetwork routing.
  2. Host-to-host communication: It determines the path through which the data is to be transmitted.
  3. Data Encapsulation and Formatting: An IP protocol accepts the data from the transport layer protocol. An IP protocol ensures that the data is sent and received securely, it encapsulates the data into message known as IP datagram.
  4. Fragmentation and Reassembly: The limit imposed on the size of the IP datagram by data link layer protocol is known as Maximum Transmission unit (MTU). If the size of IP datagram is greater than the MTU unit, then the IP protocol splits the datagram into smaller units so that they can travel over the local network. Fragmentation can be done by the sender or intermediate router. At the receiver side, all the fragments are reassembled to form an original message.
  5. Routing: When IP datagram is sent over the same local network such as LAN, MAN, WAN, it is known as direct delivery. When source and destination are on the distant network, then the IP datagram is sent indirectly. This can be accomplished by routing the IP datagram through various devices such as routers.
ARP Protocol
  1. ARP stands for Address Resolution Protocol.
  2. ARP is a network layer protocol which is used to find the physical address from the IP address.
  3. The two terms are mainly associated with the ARP Protocol:
    1. ARP request: When a sender wants to know the physical address of the device, it broadcasts the ARP request to the network.
    2. ARP reply: Every device attached to the network will accept the ARP request and process the request, but only recipient recognize the IP address and sends back its physical address in the form of ARP reply. The recipient adds the physical address both to its cache memory and to the datagram header
ICMP Protocol
  1. ICMP stands for Internet Control Message Protocol.
  2. It is a mechanism used by the hosts or routers to send notifications regarding datagram problems back to the sender.
  3. A datagram travels from router-to-router until it reaches its destination. If a router is unable to route the data because of some unusual conditions such as disabled links, a device is on fire or network congestion, then the ICMP protocol is used to inform the sender that the datagram is undeliverable.
  4. An ICMP protocol mainly uses two terms:
    1. ICMP Test: ICMP Test is used to test whether the destination is reachable or not.
    2. ICMP Reply: ICMP Reply is used to check whether the destination device is responding or not.
  5. The core responsibility of the ICMP protocol is to report the problems, not correct them. The responsibility of the correction lies with the sender.
  6. ICMP can send the messages only to the source, but not to the intermediate routers because the IP datagram carries the addresses of the source and destination but not of the router that it is passed to.


Layer 3: Transport Layer
  1. It decides if data transmission should be on parallel path or single path.
  2. Functions such as multiplexing, segmenting or splitting on the data is done by transport layer.
  3. The applications can read and write to the transport layer.
  4. Transport layer adds header information to the data.
  5. Transport layer breaks the message (data) into small units so that they are handled more efficiently by the network layer.
  6. Transport layer also arrange the packets to be sent, in sequence.
The two protocols used in the transport layer are User Datagram protocol and Transmission control protocol.
  1. User Datagram Protocol (UDP)
    1. It provides connectionless service and end-to-end delivery of transmission.
    2. It is an unreliable protocol as it discovers the errors but not specify the error.
    3. User Datagram Protocol discovers the error, and ICMP protocol reports the error to the sender that user datagram has been damaged.
Transmission Control Protocol (TCP)
  1. It provides a full transport layer services to applications.
  2. It creates a virtual circuit between the sender and receiver, and it is active for the duration of the transmission.
  3. TCP is a reliable protocol as it detects the error and retransmits the damaged frames. Therefore, it ensures all the segments must be received and acknowledged before the transmission is considered to be completed and a virtual circuit is discarded.
  4. At the sending end, TCP divides the whole message into smaller units known as segment, and each segment contains a sequence number which is required for reordering the frames to form an original message.
  5. At the receiving end, TCP collects all the segments and reorders them based on sequence numbers.
Layer 4: Application Layer
The TCP/IP specifications described a lot of applications that were at the top of the protocol stack. Some of them were TELNET, FTP, SMTP, DNS etc.
  1. TELNET is a two-way communication protocol which allows connecting to a remote machine and run applications on it.
  2. FTP(File Transfer Protocol) is a protocol, that allows File transfer amongst computer users connected over a network. It is reliable, simple and efficient.
  3. SMTP(Simple Mail Transport Protocol) is a protocol, which is used to transport electronic mail between a source and destination, directed via a route.
  4. DNS(Domain Name Server) resolves an IP address into a textual address for Hosts connected over a network.
  5. HTTP: HTTP stands for Hypertext transfer protocol. This protocol allows us to access the data over the world wide web. It transfers the data in the form of plain text, audio, video. It is known as a Hypertext transfer protocol as it has the efficiency to use in a hypertext environment where there are rapid jumps from one document to another.
Merits of TCP/IP model
  1. It operated independently.
  2. It is scalable.
  3. Client/server architecture.
  4. Supports a number of routing protocols.
  5. Can be used to establish a connection between two computers.
Demerits of TCP/IP
  1. In this, the transport layer does not guarantee delivery of packets.
  2. The model cannot be used in any other application.
  3. Replacing protocol is not easy.
  4. It has not clearly separated its services, interfaces and protocols.
Difference between TCP/IP and OSI Model



 4: The TCP/IP reference model, taken from [Tan96, p.36 ...


TCP/IP and OSI are the two most widely used networking models for communication. There are some similarities and dissimilarities between them. One of the major difference is that OSI is a conceptual model which is not practically used for communication, whereas, TCP/IP is used for establishing a connection and communicating through the network.
BASIS FOR COMPARISON
TCP/IP MODEL
OSI MODEL
Expands To
Transmission Control Protocol/ Internet Protocol
Open system Interconnect
Meaning
It is a client server model used for transmission of data over the internet.
It is a theoretical model which is used for computing system.
Number Of Layers
4 Layers
7 Layers
Developed by
Department of Defense (DoD)
ISO (International Standard Organization)
Tangible
Yes
No
Usage
Mostly used
Never used
Obeys
Horizontal approach
Vertical approach

No comments:

Post a Comment