Skip to main content

TCP and UDP protocols of Transport Layer

TCP and UDP are Transport Layer protocols which allow multiple applications to use one network connection simultaneously.

TCP: It stands for Transmission Control Protocol. It is a reliable and connection-oriented transport protocol. A connection must be established between both ends of a transmission before either can transmit data.  It uses three-way handshaking to set up connection.


                 At the sending end of each transmission, TCP divides a stream of data into smaller units called segments. Each segment includes a sequence number and an acknowledgment number for ordering at the receiver side. It has a bigger header of 20 bytes. It provides congestion control and the segments reach in-order.


UDP: It stands for User Datagram Protocol. It is a process-to-process that adds only port addresses, checksum, error control and length information to the data from the upper layer. It is an unreliable connectionless protocol widely used for client-server applications. There is no need to establish and maintain a connection between a sender and a receiver.
                 
                 It is lightweight with a header of size 8 bytes. There is no congestion control and no compensation for lost packets. The packets can arrive out of order at the receiver side. 
        

Comments

Popular posts from this blog

Network Layer

Network Layer(Layer 3):  It is responsible for the source-to-destination delivery of packets across multiple links(networks).It is also responsible for structuring and managing a multi-node network, including addressing, routing, and traffic control. Functions include: Logical Addressing: IP addressing is defined at the Network Layer of the OSI model. This layer adds a header to the packet coming from the upper layer that, among other things, indicates the logical addresses of the sender and receiver. IP addressing is also known as logical addressing. Routing: When independent networks are connected together to create a large network, the connecting devices(routers/gateways) route the packets to their final destination. The decision which route/path should be followed to reach from source to destination is handled by the network layer. 

What is a Network Hub?

Hub is the most simple networking device which is used to connect all network devices on an internal network. It detects whether a device is physically connected to it or not. It is a Layer 1 device in OSI reference model and is best for small and simple local area networks. It is not intelligent because it does not filter any data. When a packet is received by one port, the data is copied to all other ports and is seen by all connected devices. It has 4/12 ports . Drawbacks of Hubs are:- Rebroadcast- Forwards packets across all ports. Creates Security concerns- Traffic could not be safeguarded. Unnecessary traffic which reduces bandwidth.   

Physical Layer

Physical Layer(Layer 1): This is the lowest layer of the OSI model that physically gets connected to the communication channel. It is responsible for movements of individual bits from one node to next i.e. transmission and reception of raw bit streams over a physical medium. Functions include: Physical characteristics of interfaces and medium: The physical layer defines the characteristics of the interface between the devices and the transmission medium. Bit Representation: To be transmitted, the bits must be encoded into signals, so this layer is responsible for defining which type of encoding is to be used. Data Rate: Physical layer defines the number of bits which are to be sent each second. Bit Synchronization: It ensures synchronization between the sender and the receiver at the bit level. Physical Topology: It defines how the devices are connected to make a network. M ode of transmission  Physical layer is responsible for defining the transmission mo...