Networking, the Internet and the Web
Computer Studies · WAEC and JAMB · SS2 and SS3
Networking questions reward precision: the right topology, the right device and the right protocol. The one distinction that decides several objectives every year is between the internet and the World Wide Web, and between a browser and a search engine.
What you need to know
- A computer network is two or more computers linked together so that they can communicate and share resources. The benefits are sharing of files and data, sharing of hardware such as one printer for a whole office, faster communication, central storage and backup, and lower cost. The drawbacks are the expense of setting it up, the speed with which a virus travels across it, the security risk of unauthorised access, and the need for skilled staff.
- By geographical coverage: a PAN covers a few metres around one person, as Bluetooth does; a LAN covers one building or campus, such as a school computer laboratory, and is privately owned and fast; a MAN covers a city, linking several branches across Lagos for instance; a WAN spans countries and continents, and the internet is the largest WAN in existence.
- In a bus topology all devices connect to a single backbone cable with a terminator at each end. It uses the least cable and is cheap to set up, but the whole network fails if the backbone is cut and performance drops sharply as more devices are added.
- In a star topology every device has its own cable to a central hub or switch. It is easy to install and to troubleshoot, and the failure of one cable or node affects only that node, but the whole network goes down if the central device fails. It uses more cable than a bus and it is the arrangement used in nearly every modern office and school laboratory.
- In a ring topology each device connects to exactly two others so that the whole forms a closed loop, and data travels in one direction, often controlled by a token. There are no collisions, but adding or removing a device disrupts the ring and a single break can bring the network down unless it is a double ring.
- In a mesh topology every device is connected to every other device. It is the most reliable, because there are many alternative routes, and the most expensive in cable and ports, which is why it is used for backbone and WAN links rather than for an office. Tree and hybrid topologies combine these basic forms.
- Transmission media are guided or unguided. Guided media are twisted pair cable, which is cheap and ends in an RJ45 connector; coaxial cable; and fibre optic cable, which carries light, offers the highest speed and longest range, is immune to electrical interference, and costs the most. Unguided media are radio waves, microwave, satellite, infrared, Bluetooth and Wi-Fi.
- Know each network device by its one distinguishing job. A network interface card gives a computer its physical connection and its MAC address. A hub receives a signal and broadcasts it to every port, which wastes bandwidth. A switch is intelligent and sends the data only to the port of the intended recipient. A router connects two different networks and chooses the path packets take. A modem converts digital signals to analogue for transmission and back again. A repeater boosts a weakened signal over distance, a bridge joins two segments of the same network, a gateway links networks using different protocols, and a firewall filters traffic to block unauthorised access.
- A network is organised either as client-server, where one powerful machine provides files, printing and authentication to the rest, or as peer-to-peer, where every machine is equal and shares directly with the others. Client-server gives central control and easier backup; peer-to-peer is cheaper for a handful of machines.
- The internet is a global network of interconnected networks communicating through the TCP/IP protocol suite. It grew out of ARPANET, which began in 1969. An intranet is a private network using the same technology but restricted to one organisation, and an extranet is an intranet extended to selected outsiders such as suppliers or partners.
- The World Wide Web is not the internet. The web is one service running on the internet: a collection of linked hypertext documents, identified by URLs and viewed through a browser. It was invented by Tim Berners-Lee at CERN in 1989. Email, file transfer and voice calls are other internet services that are not part of the web.
- Protocols to name and match: TCP/IP governs how data is broken into packets, addressed and reassembled; HTTP transfers web pages and HTTPS does the same with encryption, shown by the padlock in the address bar; FTP transfers files; SMTP sends email while POP3 and IMAP retrieve it; DNS translates a domain name such as waec.org.ng into the numeric IP address of the server.
- A URL has parts that are separately examinable. In https://www.waec.org.ng/results/index.html, https is the protocol, www.waec.org.ng is the domain name with org as the type of organisation and ng as the country code, /results is the path and index.html is the file. An IPv4 address is four numbers from 0 to 255 separated by dots, such as 192.168.1.1, while IPv6 is longer and was introduced because IPv4 addresses ran out.
- A browser is the program that fetches and displays web pages, such as Chrome, Firefox, Edge, Safari and Opera. A search engine is a website that indexes other websites and returns a list of matches, such as Google, Bing and DuckDuckGo. You use a browser to reach a search engine, and confusing the two is the single most common error in this chapter. Email addresses take the form username@domain, with Cc copying a visible recipient and Bcc copying a hidden one.
Key terms
- Computer network
- Two or more computers connected together in order to communicate and share data, software and hardware resources.
- Topology
- The physical or logical arrangement in which the devices on a network are connected to one another.
- Protocol
- An agreed set of rules governing how data is formatted, transmitted and received between devices on a network.
- Internet
- The global system of interconnected computer networks that communicate using the TCP/IP protocol suite.
- World Wide Web
- A service running on the internet consisting of linked hypertext documents identified by URLs and accessed through a browser.
- Web browser
- Application software that requests, retrieves and displays web pages, such as Chrome, Firefox or Edge.
- Search engine
- A website that indexes the content of other websites and returns a list of pages matching a user's keywords.
Formulae
Bandwidth is measured in bits per second: 1 Kbps = 1000 bps, 1 Mbps = 1000 KbpsFile sizes use bytes, link speeds use bits, and 1 byte = 8 bits, so divide a speed in Mbps by 8 to get megabytes per secondA 10 Mbps link transfers about 10 / 8 = 1.25 million bytes, roughly 1.2 MB, each secondIPv4 address = four numbers (octets) from 0 to 255 separated by dots, e.g. 192.168.1.1URL structure: protocol://domain-name/path/filename
Worked examples
A school wants to connect thirty computers in one laboratory. Recommend a topology, give two advantages and one disadvantage of your choice, and name three devices needed. (10 marks)
- Choose the topology that suits one room and thirty machines, and say so plainly rather than listing all four.
- Give advantages that matter for a laboratory: ease of fault finding and the fact that one failed cable does not stop the class.
- Give the honest disadvantage, which is the single point of failure at the centre, so the answer is balanced.
- Name devices that are actually required: the switch, the cable with its connectors, and the card in each machine.
Answer: A star topology is the right choice. Advantages: each computer has its own cable to the central switch, so a fault on one cable or one machine affects only that machine and the rest of the class continues working; and faults are easy to locate because each link can be tested separately. Disadvantage: if the central switch fails the entire network stops. Devices needed: a switch to serve as the central connecting point, twisted pair cable with RJ45 connectors to run from each computer to the switch, and a network interface card in each computer. A router would be added if the laboratory is also to reach the internet.
Distinguish between the internet and the World Wide Web, and between a browser and a search engine. (8 marks)
- Treat it as two separate distinctions and answer them one after the other under clear headings.
- For the first, say that one is the infrastructure and the other is a service running on it, and name another service to prove the point.
- For the second, say that one is a program installed on the computer and the other is a website, and give an example of each.
Answer: The internet is the global network of interconnected computer networks that communicate using TCP/IP; it is the infrastructure. The World Wide Web is only one of the services that run on that infrastructure, consisting of linked hypertext documents accessed through a browser. Email and file transfer by FTP are other internet services that are not part of the web, which shows that the two are not the same thing. A browser is application software installed on a computer that fetches and displays web pages, for example Chrome, Firefox or Edge. A search engine is a website that indexes other websites and returns a list of pages matching the words you type, for example Google or Bing. You open a browser in order to visit a search engine.
The mistake to avoid
Google is written down as a browser. Google is a search engine; Chrome is the browser. The second trap is swapping the hub and the switch: a hub sends the data to every port, a switch sends it only to the port of the recipient. Candidates also treat the internet and the World Wide Web as the same thing, and describe a MAN as a network covering a country, when a country-wide or global network is a WAN.
In the exam
When a question asks you to recommend a topology, commit to one and defend it; an answer that describes all four without choosing scores poorly. Advantages and disadvantages should be given in equal numbers to whatever the question asks. Learn the protocols as pairs of purpose and name, because objectives here usually give the purpose and ask for the protocol.