2079 8

BIT101 ยท 2079 ยท 5 marks

What is TCP/IP? Explain the working of the packet switching technique.

What is TCP/IP? Explain the working of the packet switching technique. [5]

Introduction to Information TechnologyChapter 6: Computer Networks and CommunicationTCP/IP protocol and functions

Quick answer

TCP/IP (Transmission Control Protocol / Internet Protocol) is a set of communication protocols used to interconnect network devices on the internet and other networks. It defines how data should be packaged, addressed, transmitted, routed, and received across networks.

TCP/IP and Packet Switching Technique

TCP/IP

TCP/IP is a layered protocol suite consisting of two main protocols:

  • TCP (Transmission Control Protocol): A connection-oriented protocol that ensures reliable, ordered, and error-checked delivery of data between applications. It breaks data into segments, numbers them, and reassembles them at the destination.

  • IP (Internet Protocol): A connectionless protocol responsible for addressing and routing packets from the source host to the destination host across networks.

TCP/IP Layer Model

LayerFunction
Application LayerProvides network services to applications (HTTP, FTP, SMTP)
Transport LayerEnd-to-end communication, reliability (TCP/UDP)
Internet LayerLogical addressing and routing (IP)
Network Access LayerPhysical transmission of data

Packet Switching Technique

Packet switching is a method of data transmission in which a message is broken into smaller units called packets, and each packet is transmitted independently through the network.

Working of Packet Switching

Step 1: Packetization

  • The sender breaks the original message/data into smaller, fixed or variable-size units called packets.
  • Each packet contains:
    • Header: Source address, destination address, sequence number, and control information.
    • Payload: The actual data being transmitted.

Step 2: Independent Routing

  • Each packet is sent independently into the network.
  • Routers/switches examine the destination address in each packet header and forward it toward the destination using the best available path.
  • Different packets of the same message may travel through different routes.

Step 3: Store and Forward

  • Each intermediate node (router) receives a packet completely, stores it temporarily, checks for errors, and then forwards it to the next node.
  • This is known as the store-and-forward mechanism.

Step 4: Reassembly

  • Since packets may arrive out of order (due to different paths), the destination node uses the sequence numbers in the headers to reorder and reassemble the original message.

Step 5: Error Handling

  • If a packet is lost or corrupted, only that specific packet is retransmitted, not the entire message.

Diagram

Sender --> [P1][P2][P3] --> Network (different paths) --> [P1][P2][P3] --> Receiver
                              Router A --> P1
                              Router B --> P2
                              Router C --> P3

Advantages of Packet Switching

  • Efficient use of network bandwidth (no dedicated path needed)
  • More reliable -- if one route fails, packets take another route
  • Multiple users can share the same network links
  • Only lost packets need to be retransmitted

Disadvantage

  • Packets may arrive out of order, causing reassembly delay
  • Header overhead is added to every packet
  • Not ideal for real-time applications (e.g., voice calls) without special handling

Note: TCP/IP uses packet switching as its underlying data transmission mechanism. IP handles the routing of individual packets, while TCP handles reassembly and reliability at the transport layer.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.