14.2 Circuit Switching, Packet Switching Notes
14.2 Circuit Switching, Packet Switching Notes
Objective:
Show understanding of circuit switching. Benefits, drawbacks and where it is applicable.
Show understanding of packet switching. Benefits, drawbacks and where it is applicable.
Show understanding of the function of a router in packet switching.
Explain how packet switching is used to pass messages across a network, including internet.
Switching refers to method used to route or direct data through a network between
communicating devices.
Circuit Switching
Circuit Switching uses a dedicated channel which lasts throughout connection: the
communication line is effectively ‘tied up’. Circuit switching method is used in traditional
telephone system, private telephone networks and private data networks.
Scenario where use of Circuit Switching is suitable: P31 May 23
✓ Circuit switching is used in scenarios where a dedicated communication path is
necessary throughout duration of communication session.
✓ Circuit switching is beneficial for applications requiring real-time communication and
consistent quality of service, as it reserves entire bandwidth for duration of session.
✓ Circuit Switching application is standard voice communications, video streaming ,
private data networks.
Sometimes it is possible for packets to get lost and keep ‘bouncing’ around from router to
router and never actually get to their destination. Eventually, network could grind to halt as
number of ‘lost’ packets mounts up and clogs up system.
To overcome this, method called hopping is used. A hop number is added to header of each
packet. Each packet is only allowed to hop a finite number of times (Hop number is
determined by network protocol and routing table being used). Each time a packet passes
through a router, hop number is decreased by 1. If packet has not reached its destination
and hop number = 0, then it will be deleted when it reaches next router.
Error Detection Method:
Each packet contains an error checking technique such as a checksum
or parity check. If a checksum is used, this value is calculated for each packet and is added to
header. Checksum for each package is recalculated at Destination to ensure no errors have
occurred. If checksum values are different, then a request is made to re-send the packet.
Routing Tables
Routing tables contain information necessary to forward a package along
shortest/best route to allow it to reach its destination. As soon as packet reaches a router,
packet header is examined and compared with routing table. Table supplies router with
instructions to send packet to next available router.
Routing Tables Include;
➢ Number of hops: This represent number of intermediate router or "hops" a packet
needs to pass through to reach destination. Fewer hops mean a shorter, faster route.
➢ Metrics (a cost is assigned to each available route so that most efficient route is found)
➢ Network destination (network ID):
This is destination network or IP address range that router can reach. It
identifies where packet should be sent based on destination IP address.
➢ Gateway: This points to next hop router (or gateway) that a packet should be
forwarded to, to eventually reach its destination.
➢ Netmask (Subnet Mask): Netmask is used to define size or range of network. It helps
in identifying portion of IP address that corresponds to network and part that
identifies host.
➢ Interface: This specifies the local network interface (e.g., Ethernet, Wi-Fi) through
which the router should send the packet to reach the gateway.
ESQ: How would packet switching be used to download a page from a website?
Ans:
➢ Web page is divided up into data packets
➢ Each packet has a header, which includes the IP address of the destination
➢ Router checks the header against values stored in the routing table to determine
which router the packet needs to be sent to next (hopped) the MAC address of the
next router is added to the package header
➢ The hop value is checked to see if it equals zero
➢ Each packet may go by a different route
➢ The destination computer reassembles the packets building up the final web page.
***************
Do You Know ?
✓ Mobile networks (like 4G LTE and 5G) use packet switching for voice communication in
services like VoLTE (Voice over LTE), where voice data is transmitted as IP packets.
✓ Telephony systems, such as VoIP (e.g., Skype, Zoom, WhatsApp calls), use packet
switching.
✓ Some older networks or parts of PSTN still use circuit switching, particularly in regions
where older infrastructure is in place. However, these systems often connect to newer
packet-switched networks for long-distance or international calls.