Subtopic Notes

14.2 Circuit switching, packet switching

14. Communication and internet technologies

Circuit Switching

  • Method of communication where a dedicated physical path (or circuit) is established between two devices for the entire duration of a communication session
  • The links that make up the circuits are removed afterwards
  • The circuit has a constant bandwidth, regardless of usage
  • Example: Traditional telephone networks, Voice calls, Video Conferencing
AdvantagesDisadvantages
Reliable and consistent data flowTakes time to establish the circuit
Suitable for real-time communication (e.g., voice calls)Wastes bandwidth if no data is being sent
Data arrives in order so it doesn’t need to be reassembledNot efficient for bursty or low-volume data (like emails or browsing)
No delay once the circuit is set upLess secure as it only uses one route
Data can’t get lostNo alternative route in case of failure
Bandwidth can’t be shared

Packet Switching

  • Method of data transmission where messages are broken into small units called packets, which are sent independently across a network
  • Ideal for data like emails, browsing, and file transfer
  • If there’s a missing packet, a request is sent to retransmit the data.
  • Data is broken down into packets to be transmitted
  • A packet of data contains
    • Packet Header

      • Destination IP address
      • Packet serial number
      • Originator’s IP address
      • Packet Size
    • Payload

      • The Actual data
    • Trailer

      • A Method of identifying that it’s the end of packet
      • An error-checking method
AdvantagesDisadvantages
Efficient use of bandwidthPossible delays due to congestion
Scalable and flexible network usePackets can arrive out of order
Robust against network failure (alternative routes possible)Requires reassembly and error checking at the receiver
Communication is asynchronous1Packets might be lost (Packet loss)
Corrupt packets can be resentMust wait until the last packet received to reassemble

Router in Packet Switching

  • Assigns IP Addresses to devices on local network
  • Checks the destination IP address of incoming data packets.
  • Utilizes routing tables to decide the next hop or router on the path to the destination.
  • Send the data packet to the designated next hop.
  • Routing table: Stores network ID, routing metric2, Next hop3, Interface4
Packet SwitchingCircuit Switching
No fixed pathDedicated fixed paths
Data is sent in small packetsData is sent as a continuous stream
Efficient: bandwidth is sharedLess efficient: bandwidth reserved even when idle
No setup requiredTime required to setup
May be less reliable without error controlReliable once connection is established
Delays due to routing and reassemblyMinimal delay after connection setup
Ideal for internet, emails, web browsing, file transfersIdeal for real-time calls, like traditional phone systems
Resources used only when neededResources remain occupied throughout the session
Data needs to be rearrangedData comes in order

Footnotes

  1. Asynchronous communication: A method of communication where data is sent and received without requiring the sender and receiver to interact at the same time.

  2. Routing Metric: A value used by routing protocols to determine the best path to a network, based on factors like hop count, bandwidth, delay, or cost.

  3. Next Hop: The IP address of the next router a packet should be sent to on its way to the destination network.

  4. Interface: The local network connection (e.g., Ethernet port, Wi-Fi interface) through which the packet should be forwarded to reach the next hop or destination.