Clastify logo
Subjects
Features
Review
HOT
Tutoring

A2.3: Data transmissions

Master IB Computer Science A2.3: Data transmissions with notes created by examiners and strictly aligned with the syllabus.

This content can't be printed from the browser. Use Export PDF with Pro for an offline copy.

IB Syllabus Requirements for Data transmissions

A2.3.1

Types of IP addressing

A2.3.2

Comparing transmission media

A2.3.3

Packet switching

A2.3.4

Static and dynamic routing

HL

A2.3.1

TYPES OF IP ADDRESSING

IP addressing identifies network interfaces so packets can reach their destinations. When describing an address, make three separate distinctions: which version it uses, whether it is public or private, and whether it is assigned statically or dynamically.

IPv4 and IPv6

IPv4 uses 32-bit addresses, usually written as four decimal numbers separated by full stops. With IPv6, addresses are 128 bits long and are usually written as groups of hexadecimal digits separated by colons.

FeatureIPv4IPv6
Address length32 bits128 bits
Written representationFour decimal groups, each from 0 to 255Eight hexadecimal groups in full notation; shortened forms are possible
Example192.168.10.42001:db8:0:0:0:0:0:4
Address capacitySmaller address space, with limited availability of public addressesVastly larger address space, supporting many more uniquely addressed interfaces

The difference goes beyond how the addresses look. IPv6 provides many more possible addresses, easing the pressure caused by IPv4 address shortages.

Public and private addresses

A public IP address is globally unique and can be routed across the public internet. Within a private network, a private IP address is used instead; it is not routed directly across the public internet.

Private addresses must be unique within their own network. Separate private networks, though, can reuse the same addresses. Two unrelated studios could each have a device addressed 192.168.10.4 without a conflict, because those devices belong to different private networks.

A public address doesn't automatically give anyone permission to access a device. The address makes routing possible; access controls decide which communications are permitted.

Static and dynamic addresses

A static IP address stays assigned to an interface until its configuration is changed. By contrast, a dynamic IP address is assigned automatically for a period of use and may change when reassigned.

AssignmentMain benefitMain limitation
StaticA stable address makes a device consistently reachable at a known locationAssignments must be managed carefully to avoid conflicts and incorrect settings
DynamicAutomatic assignment reduces manual configuration and allows addresses to be reusedThe address is not guaranteed to remain unchanged

These distinctions are independent. A private address, for example, can be static or dynamic. So can a public address.

Network address translation

Network address translation (NAT) changes address information in packets as they pass between networks. A common IPv4 arrangement lets many devices with private addresses share one public address for internet communication.

Consider a studio with a laptop at 192.168.10.4 and a tablet at 192.168.10.5. Both reach an internet server through a NAT router whose public address is 198.51.100.20. The figure follows their outgoing traffic and the replies that return.

When a packet goes out, the router replaces its private source address with the router's public address. The router records a translation entry to distinguish the devices' communications. When a reply arrives, it uses that entry to translate the destination information and forward the packet to the correct private device.

The laptop and tablet therefore don't each need their own public address, reducing the number of public IPv4 addresses required. NAT also lets devices with private addresses communicate with the public internet, where their original private addresses cannot be routed directly.

Key terms: IPv4, IPv6, public IP addresses, private IP addresses, static IP addresses, dynamic IP addresses, network address translation (NAT).

A2.3.2

COMPARING TRANSMISSION MEDIA

Compare transmission media using the same requirements. Fibre optic cables, twisted pair cables and wireless transmission differ in performance, installation demands and risk. No single medium is best for every connection.

How the media carry data

Fibre optic cables carry data as pulses of light through thin glass or plastic fibres. In Twisted pair cables, electrical signals carry data through pairs of insulated copper wires. The wires are twisted together to reduce electromagnetic interference. Wireless transmission uses electromagnetic waves to carry data through space rather than through a cable.

The figure shows how the signal paths differ: light travels through fibre, electrical signals pass through twisted copper pairs, and radio waves travel between wireless devices.

Comparing the required factors

Bandwidth describes a connection's data-carrying capacity, normally expressed in bits per second. As a signal travels through a medium, it weakens; this is Attenuation.

These comparisons apply to typical installations. Actual performance depends on the equipment and cable specification, as well as the distance and environment.

FactorFibre optic cablesTwisted pair cablesWireless transmission
BandwidthVery high capacity; suits large volumes of trafficHigh capacity over shorter cable runs, though generally less than fibreCapacity varies; shared use, obstacles and interference can reduce the rate each device receives
Complexity of installationNeeds careful handling and termination, often requiring specialist skillsUsually easier to terminate and connect than fibre, though cables still need routingNo individual cable run is needed for each device, but access-point placement and coverage need planning
CostSpecialist installation and connection equipment can lead to high initial costsUsually economical for short wired connectionsCan cut cabling costs, though access points and additional coverage equipment still cost money
RangeSuits long-distance linksBetter suited to shorter connections within a buildingLimited by signal strength, obstacles and the wireless technology used
Susceptibility to interferenceUnaffected by electromagnetic interferenceTwisting reduces electromagnetic interference without eliminating itOther transmissions and electrical equipment can cause interference
AttenuationRelatively low, so links can run further before the signal needs regenerationElectrical signals weaken as cable length increases, limiting useful rangeSignal strength falls with distance; walls and other obstacles reduce it too
ReliabilityUsually stable if properly installed, but physical cable damage can interrupt serviceUsually stable within its supported range, though damaged cables or interference can cause problemsMore variable: movement, interference and obstacles can change the connection
SecurityIntercepting the cable signal generally requires physical access; interception is difficult but possibleIntercepting or connecting to the cable generally requires physical accessSignals reach beyond the intended devices, making interception easier unless suitable protection is used

Matching the medium to the requirement

For a theatre linking buildings across its site, fibre optic cables may be the preferred choice. Range, bandwidth and resistance to electromagnetic interference matter more here than installation cost. Inside one building, fixed ticket-office computers may get sufficient bandwidth and reliable connections from twisted pair cables at lower cost.

Staff using handheld ticket scanners need to move, so wireless transmission suits this task. Mobility is its advantage. Coverage gaps and interference, however, may interrupt communication. Adding wireless access doesn't remove the need to consider reliability and security.

A wired connection isn't automatically secure. Nor does a high-bandwidth medium guarantee that every transfer will reach its maximum capacity.

Key terms: fibre optic cables, twisted pair cables, wireless transmission, bandwidth, complexity of installation, cost, range, susceptibility to interference, attenuation, reliability, security.

A2.3.3

PACKET SWITCHING

Packet switching divides data into packets and forwards them separately across a network. When explaining the process, link each stage to its purpose. Segmentation makes the data manageable; headers support delivery. Network devices forward the packets, and the destination reassembles the data.

From a message to packets

The sender splits the original data into smaller portions. Each portion becomes a packet's payload, with a routing header attached. This header carries control information, including source and destination addresses; sequence information lets the receiving system restore the original order.

Each packet travels separately, carrying the control information needed to handle it. The network doesn't have to send the original message as one uninterrupted block or reserve a dedicated path for the whole message.

Forwarding through the network

A switch forwards traffic between devices within a local area network. It normally selects an outgoing port using destination MAC addresses. A router forwards packets between networks: it examines destination IP addresses and uses its routing table to choose an appropriate next hop.

For example, a design studio sends a file from a sender through a switch and Router A. From there, Router A can forward packets towards Router B or Router C before they reach the destination. In the figure, packets P, Q and R travel independently. P and R go through Router B; Q goes through Router C.

Packets can take different routes when forwarding decisions or network conditions differ. They can also all follow the same route. Packet switching permits separate routing; it doesn't require different paths.

Reassembly at the destination

Different delays can cause packets to arrive out of order. If the studio's packets arrive in the order Q, P, R, the receiving system uses sequence information to put their payloads back into the original order P, Q, R.

At the destination, the packet headers are removed and the payloads reassembled to recover the original data. Complete reconstruction must wait until any missing required data is obtained. Receiving some packets doesn't mean the whole message has arrived.

Because packets are forwarded independently, many communications can share network links. If one path becomes unavailable, an available alternative route may allow traffic to continue.

Key terms: packet switching, packets, routing header, control information, switches, routers, reassembled at the destination.

A2.3.4

STATIC AND DYNAMIC ROUTING

HL

Both static and dynamic routing give routers the information they need to forward packets between connected local area networks. They differ in how routes enter the routing table and what happens to those routes when the network changes.

Static routing: routes entered by an administrator

With Static routing, an administrator configures routes manually. Each route identifies a destination network and the next hop or outgoing interface needed to reach it.

On receiving a packet, the router checks the destination IP address against its routing table, then forwards the packet using the matching route. That route won't automatically adapt if the topology changes. If the selected link fails, an administrator may have to change the configuration before traffic can take an alternative path.

Paths are predictable with static routing, and there's no continuing exchange of routing updates. The trade-off is manual work: every affected router must be configured correctly. As the network grows, maintaining many routes takes more time.

Dynamic routing: routes learned and updated

With Dynamic routing, routing processes learn network reachability information and update routes automatically. Routers exchange information, then use it to select routes according to the routing method's criteria.

If a link becomes unavailable, routers detect the change and share updated information before recalculating routes. Packets can then follow a suitable alternative, if one exists. An administrator doesn't have to replace each affected route manually.

Convergence is the process by which routers reach a consistent, updated view of available routes after a network change. Some routers may still use outdated information during convergence, so traffic can be delayed or lost.

Following a route change

Consider Office LAN connected to Router A and Workshop LAN connected to Router B. Router A has a direct link to Router B, with an alternative path through Router C. The figure shows the direct link failing, making the alternative path necessary.

If Router A has only a static route directly to Router B, traffic to Workshop LAN cannot switch automatically to Router C. Unless an alternative has already been configured, an administrator must change the route. Dynamic routing lets routers learn that the direct link is unavailable and select the path through Router C after convergence.

Neither method can create a physical alternative. If the failed link was the only connection, routing changes alone cannot restore communication.

Comparing the required factors

FactorStatic routingDynamic routing
ConfigurationRoutes are entered manually; straightforward when few routes are neededA routing process must be configured correctly; routes can then be learned automatically
MaintenanceChanges usually need manual updates on affected routersRoute changes are handled automatically, though monitoring and troubleshooting are still necessary
ComplexitySimple for a small, stable topology; managing many interconnected routes is difficultRouting behaviour is more complex, but a changing network needs less manual route management
Resource usageLow processing and memory overhead; static routes generate no ongoing routing-update trafficMaintaining and exchanging routing information uses processing, memory and bandwidth
ConvergenceStatic routes themselves do not automatically converge after a change; recovery may need manual interventionWorks towards updated routes automatically, but convergence takes time
ScalabilityScales less well as the number of networks and required manual entries increasesBetter suited to growth because routers learn and update routes
Network sizeOften suitable for small networks with few paths and infrequent changesOften suitable for larger networks with multiple paths or frequent changes

When simplicity and predictable paths matter most, along with low resource usage, static routing is attractive. Dynamic routing is attractive when automatic adaptation and scalability justify its extra configuration complexity and resource usage. Network size offers a useful guide to the choice, but the number of alternative paths matters too, as does how often the network changes.

Key terms: static routing, dynamic routing, configuration, maintenance, complexity, resource usage, convergence, scalability, network size.

Were those notes helpful?

A2.2 Network architecture

A2.4 Network security