TheHingineer

  • Computer Networks


  • CN Part-1

  • CN Part-2

  • CN Part-3

  • CN Part-4

  • CN Part-5

  •  Transport Layer and Functions in Computer Networks

     Transport Layer kya hai? (What is Transport Layer?)

    • Transport Layer OSI Model ki Layer 4 hoti hai, jise networking ka “Heart of OSI Model” kaha jaata hai.

    • Yeh Upper application software layers (Application, Presentation, Session) aur Lower hardware network layers (Network, Data Link, Physical) ke beech ek vital bridge ka kaam karti hai.

    • Network layer packets ko sirf ek computer se doosre computer (Host-to-Host) tak pahunchati hai. Lekin aapke computer par ek saath Chrome, WhatsApp, Zoom aur Spotify chal rahe hain. Network layer se aane wala packet computer ke kis particular software application ke liye hai? Yeh ensure karna Transport Layer ka kaam hai (jise Process-to-Process Delivery kehte hain).

    • Transport Layer par data unit ko Segment (TCP ke liye) ya User Datagram (UDP ke liye) kaha jaata hai.

     Core Functions of Transport Layer

    -> Service-Point (Port) Addressing: Har running application process ko ek unique 16-bit Port Number assign karta hai taaki data sahi application tab tak deliver ho.
    -> Segmentation and Reassembly: Application layer se aane wale bade message ko manageable pieces (Segments) mein divide karta hai, har segment ko Sequence Number deta hai, aur receiver par unhe sequentially reassemble karta hai.
    -> Connection Control: Do tarah ki services provide karta hai: Connection-Oriented (TCP) with 3-way handshake, aur Connectionless (UDP).
    -> Flow Control: End-to-End flow control provide karta hai using Sliding Window protocol taaki fast sender slow receiver ke buffer ko overflow na kare.
    -> Error Control: Checksum aur ARQ mechanisms ke zariye corrupted, lost, ya duplicate segments ko detect karke retransmission ensure karta hai.
    -> Multiplexing and Demultiplexing: Multiple applications ke data streams ko combine karke single network layer ko dena (Multiplexing) aur destination par alag-alag apps ko deliver karna (Demultiplexing).

     Data Link Layer Flow/Error Control vs Transport Layer Flow/Error Control

    College exams mein aksar students confuse hote hain ki Layer 2 aur Layer 4 dono flow/error control karti hain, toh farq kya hai?

    Parameter Data Link Layer (Layer 2) Transport Layer (Layer 4)
    Scope of Delivery Node-to-Node (Hop-to-Hop): Sirf do directly connected padosi switches ya routers ke beech. End-to-End (Process-to-Process): Source application se final destination application tak.
    Addressing Used Physical MAC Address (48 bits). Port Address / Socket Address (16 bits).
    Intermediate Routers Har intermediate router Layer 2 frame ko unpack aur check karta hai. Intermediate routers Transport layer header ko touch nahi karte; yeh sirf Source aur Destination end-hosts par run hota hai.

     Two Main Transport Layer Protocols

    Feature TCP (Transmission Control Protocol) UDP (User Datagram Protocol)
    Connection Type Connection-oriented (3-way handshake required). Connectionless (No handshake, sends immediately).
    Reliability 100% Reliable (Acknowledgments, Retransmissions). Unreliable (Best effort, no ACK, no retransmission).
    Speed & Overhead Slower (20 to 60 Bytes header, overhead of ACK). Blazing Fast (Fixed 8 Bytes header, minimal overhead).
    Use Cases Web browsing (HTTP/HTTPS), File transfer (FTP), Emails (SMTP). Live streaming, Online gaming, Video calls (Zoom), DNS queries.

     Summary Table

    Aspect Summary Point
    OSI Position Layer 4 – True End-to-End layer connecting userspace software with the network.
    Key Responsibility Process-to-Process communication using 16-bit Port Numbers.
    Protocols TCP (Reliable, heavy) and UDP (Lightweight, real-time speed).
    Scroll to Top