CSwithZain
WhatsApp Join a class

A Level 9618 · Paper 3 · 14.2

Circuit switching, packet switching

Two ways to carry data across a network: one reserved path, or packets that find their own way. Read the notes, try the past-paper questions, then check the mark scheme.

Past papers from June 2021 to November 202513 questions · 68 marks

    In this subtopic

    • Circuit switching: benefits, drawbacks and where it is used
    • Packet switching: benefits, drawbacks and where it is used
    • What a router does in packet switching
    • How a message crosses a network, including the internet, as packets

    14.2 · 1 of 4Book pages Contents

    Circuit switching

    Builds on

    ASNetworks including the internet2.1: bandwidth
    Six terminals, including computers, a laptop and a telephone, joined to five switches. Terminal 1 and Terminal 6 are joined through Switch 1, Switch 3, Switch 4 and Switch 5 by a shaded chain of dedicated connections; the other terminals have ordinary links.
    A dedicated circuit is set up through the switches for the whole call.

    Circuit switching is where the connection across the network is a dedicated link that lasts for the whole transmission. This is how phone calls usually work: a phone is connected to a switching station, by a landline or by radio; that switching station is connected to other switching stations; and the last switching station is connected to the phone of the person you are calling.

    In a circuit-switched system, all the data is sent from node to node across the same connections. So for the whole of the communication, those links cannot be used by other data.

    Description

    • A dedicated circuit.
    • The circuit is set up before transmission starts.
    • The circuit is released after transmission ends.
    • Data is transferred using the whole bandwidth.
    • All data is transferred over the same route.

    Advantages

    • Data arrives in order and does not need to be put back together (reassembled).
    • The full bandwidth is available.
    • Better synchronisation.
    • Preferred for real-time transmission, such as phone calls.

    Disadvantages

    • The channel is not available to other users, even when it is idle.
    • Less secure, as data is easier to intercept when only one channel is used.
    • Time is needed to set up the circuit before communication can start.
    • If the single route fails, the whole transmission fails.

    14.2 · 2 of 4Book pages Contents

    Packet switching

    Builds on

    ASNetworks including the internet2.1: bandwidth14.1Packet headerspacket header
    Terminal 1 sends four numbered packets to Switch 1. Packets 1 and 2 travel via Switch 4 and packets 3 and 4 travel via Switch 3, and all four meet again at Switch 5, which passes them in order 1 to 4 to Terminal 2.
    Packets from one message can take different routes and are put back in order at the end.

    Traffic on the internet is carried as packets. An internet packet is made of the data being carried, called the payload, and a header.

    Internet packets carry all sorts of payloads: part of a web page, an email, or a streamed audio track, for example. The type of data is identified by the protocol field in the header. Internet packets have a maximum size, to stop anything "hogging" the bandwidth.

    Packets are moved around the internet using a method called packet switching. Using fairly small packets lets many users share a data path. Different packets from the same "conversation" may be sent over different routes.

    The internet follows an end-to-end principle: the end points (the source and the destination) are responsible for checking that everything that was sent has been received. This kind of communication between sender and receiver is called connectionless (rather than dedicated). Most internet traffic uses packet switching, and the internet is basically a connectionless network.

    Description

    • Data is split into packets, and the necessary data is added to each packet (in its header).
    • Each packet is sent independently of the others, and packets do not need to take the same route.
    • The route taken by a packet depends on the congestion.
    • Packets may not arrive in the order they were sent.
    • Packets are reassembled at the destination.
    • Missing or corrupt packets can be sent again.

    Advantages

    • Packets can be rerouted if there are problems.
    • More secure, as messages are harder to intercept.
    • Packets take the least congested route.

    Disadvantages

    • It takes time to reassemble the packets at the destination.
    • Packets can be delayed or dropped.

    Practise this: past-paper questions

    Show 8 more

    14.2 · 3 of 4Book pages Contents

    Circuit switching compared with packet switching

    Builds on

    Questions often ask for differences between the two methods. These all come from the points above:

    Circuit switchingPacket switching
    ConnectionA dedicated circuit is set up before transmission and released after itNo dedicated circuit: connectionless, and each packet is sent independently
    RouteAll data goes over the same routePackets may take different routes, depending on congestion
    OrderData arrives in order, so it does not need reassemblingPackets may arrive out of order and are reassembled at the destination
    BandwidthThe whole bandwidth is used, and the channel is not available to others even when idleSmall packets let the data path be shared
    If a link failsThe whole transmission failsPackets are rerouted
    SecurityEasier to intercept, as only one channel is usedHarder to intercept
    Best forReal-time transmission, such as phone callsMost internet traffic

    14.2 · 4 of 4Book pages Contents

    Routers and routing tables

    Builds on

    ASNetworks including the internet2.1: IP address, LAN, WAN14.2Packet switchingpacket switching

    In any packet-switched network, the router is the key device. The router looks at the destination address of an incoming packet and decides which of its interfaces to send the packet to, until the packet finally arrives at its destination.

    A home router (such as the one in your "home hub") has only two interfaces: the LAN and the WAN. Here the decision is simple: every packet that is not for the local network is sent to the WAN interface. Core backbone routers have many interfaces. Because the internet backbone is a mesh, it may be possible to reach a destination over several different paths.

    Each router has a set of rules, a routing table, that it uses to decide what to do with an incoming packet. Each packet is treated on its own, and a separate routing decision is made for each one. Each router-to-router link is called a hop. The router works out the best "next hop" to move the packet on its way to its final destination. If any part of the communications infrastructure fails, the router chooses a different route, and later packets may be sent over a different path.

    Routers can be set up to select the best route, or they can share data with each other so that they learn the best routes. This is how the core routers work. The routing table is constantly updated with information about the best route for packets to take.

    A routing table includes

    • The number of hops.
    • The IP address of the next router (the next hop) that the packet is forwarded to.
    • Metrics: a cost is given to each available route, so that the most efficient route (path) is found.
    • The network destination (network ID) or pathway.
    • The gateway: the same information as the next hop. It points to the gateway through which the target network can be reached.
    • The netmask, used to work out the network ID.
    • The interface: which local interface is responsible for reaching the gateway.

    14.2

    Concepts in 14.2

    Every idea explained in 14.2, and where else in the notes it is used.

    ConceptIn one lineAlso used in
    circuit switchingSending data over a dedicated circuit that is set up first and held for the whole transmission.14.2 Circuit switching compared with packet switching
    connectionlessCommunication with no dedicated connection; the end points check that everything arrived.14.2 Circuit switching compared with packet switching
    hopOne router-to-router link on a packet’s path.14.1 The data-link layer and frames, 14.1 Packet headers
    packet switchingSplitting data into packets that are sent independently, possibly by different routes, and reassembled.14.2 Circuit switching, 14.2 Circuit switching compared with packet switching, 14.2 Routers and routing tables, 18.1 Where shortest paths are used
    payloadThe actual data carried in a packet, as opposed to its header.14.1 The transport layer and segments
    routerThe device that reads each packet’s destination address and forwards it on the best next hop.14.1 What a protocol is and why it is needed, 14.2 Packet switching
    routing tableThe rules a router uses to decide where to send each packet, such as next hop and metrics.only here

    When you want more than reading

    The notes are the front door. The class is where it clicks.

    Join a class →Ask on WhatsApp