Modern networks, protocols and the internet of things

A-Level Computer Science · Advanced Architecture, Networks and Computational Thinking

Circuit switching and packet switching, compared properly

Circuit switching reserves a dedicated path for the whole conversation: guaranteed bandwidth and constant delay, but the path is wasted during silences and a broken link ends the call. Packet switching sends packets independently: efficient use of the network and survives a failed link, but packets can arrive out of order and delay varies. That is why voice traffic once used circuits and now uses packets with extra protocols to manage the variation.

Bit streaming

Real-time streaming sends live content with no stored copy — a broadcast. On-demand streaming plays a stored file, so it can buffer ahead. A buffer stores a few seconds of content before playback starts, so a brief drop in speed does not interrupt the viewer. Streaming needs sufficient bit rate, and the required bit rate rises with resolution.

Client-server, peer-to-peer and the cloud

These are three ways of deciding where processing and storage happen. The exam question is almost always which suits a described organisation, and the deciding factors are who must control the data, how reliable the connection is, and whether demand varies.

The internet of things

Everyday devices with sensors and network connections — meters, thermostats, vehicles, factory machines. The benefits are automation, real-time monitoring and data for optimisation. The problems are serious: many devices ship with default passwords and are never updated, so they are recruited into botnets; they collect data about behaviour inside homes; and a device with a ten-year life outlives the manufacturer's support.

Judging a network design

Ask four questions: what bandwidth does the traffic need, what happens when the connection fails, who is allowed to see the data, and what does it cost to run. Answers that list technologies without applying these four rarely reach the top band.

Worked example: design the infrastructure for a smart factory

A factory installs $400$ sensors monitoring the temperature and vibration of its machinery, sending data every $10$ seconds. The factory wants to detect early when a machine is about to fail, and has a single internet connection.

Design the data-processing infrastructure and state the risks.

Solution

Step 1 — estimate the traffic before designing. $400$ sensors sending every $10$ seconds is $40$ records per second, about $3.5$ million records per day. Each record is small, so bandwidth is not the problem — but the volume of storage and processing is.

Step 2 — do not push everything to the cloud, and this is the deciding point. The factory has only ONE internet connection. If all the processing is in the cloud, then losing the internet means losing the ability to detect failing machines as well — exactly when the system most needs to work.

Step 3 — a hybrid design.

• Local processing a server in the factory runs instant alert rules: if temperature or vibration exceeds a threshold, raise the alarm immediately. This part must keep running when the internet is lost.

• The cloud receives data aggregated by the hour for long-term trend analysis and for training models that predict failures — this does not need real time so it can tolerate interruptions.

• The internal network uses a dedicated switch for the sensor system, separate from the office network, so sensor traffic does not compete with everyday work and so the damage is limited if a device is compromised.

Risks and measures.

$1.$ Default passwords on $400$ devices. This is the biggest risk of the Internet of Things: every sensor is a way into the factory network. Changing all the passwords at installation must be mandatory, and the sensors should be placed in a separate network segment.

$2.$ Devices that are not updated. Industrial sensors last many years but manufacturers often stop supporting them sooner. A replacement plan is needed, and a firewall that blocks old devices from connecting outward.

$3.$ A single point of failure at the local server. If the server fails the alerts are lost; a backup machine is needed or at least a minimal alert mechanism running independently.

Common mistake

Proposing to push all processing to the cloud without asking 'what happens when the connection is lost'. For a real-time monitoring system, the alerting part must be able to run on site; the cloud should receive only the analysis that is not time-critical.

Key takeaway

Circuit switching guarantees bandwidth but is wasteful; packet switching is efficient but latency varies. A buffer is what keeps streaming from stuttering. With the Internet of Things, the three big risks are default passwords, devices that are not updated, and behavioral data.

← Processor architecture: RISC, CISC and pipelining · All A-Level Computer Science lessons · Practice A-Level Computer Science questions (free, instant scoring) · Computational thinking and problem solving →