Home / Notes / Class 12 / Computer Science / Networking
Computer networks and their types, topologies, transmission media, devices, network models and protocols, IP addressing, the internet and DNS, bandwidth, and basic network security.
A computer network is a group of computers and devices joined to share data, files, printers and an internet connection. Networks save cost, allow quick communication and make central backup and control possible. Their weaknesses are security risks and loss of work if the main server fails.
Types of network by size:
In a client-server network, powerful servers give services and clients request them. It is easy to manage and secure. In a peer-to-peer network every computer is equal and can share resources. It is cheap and simple but harder to secure and suited to small groups.
Topologies (layouts):
Transmission media:
Network devices:
A protocol is a set of rules for communication. The TCP/IP model has four layers: application (HTTP, FTP, SMTP, DNS), transport (TCP, UDP), internet (IP) and network access. TCP is reliable and ordered, UDP is fast without guarantee, as used in video calls. Data is split into packets which may travel by different routes and are put in order at the destination.
An IP address identifies a device on a network. IPv4 has 32 bits, written as four decimal numbers from 0 to 255 separated by dots, such as 192.168.1.10. This gives 2³² addresses, which are running out, so IPv6 with 128 bits is used. A MAC address is a 48-bit hardware address fixed in the NIC. A subnet mask separates the network part from the host part.
The Domain Name System (DNS) turns names such as example.com into IP addresses, like a phonebook. The internet is a global network of networks, and the World Wide Web is a service on it. An ISP gives access to the internet.
Bandwidth is the amount of data a link can carry per second, measured in bits per second (bps, Mbps). Latency is the delay in reaching the destination. Note that 1 byte is 8 bits, so file sizes in bytes and speeds in bits need care.
Network security protects data and users. A firewall filters traffic by rules. Strong passwords, encryption, antivirus and updates reduce risk. Threats include malware, phishing, hacking and denial of service attacks. Encryption makes data unreadable to anyone without the key.
Study tip: Draw neat labelled diagrams of each topology and give one advantage and disadvantage for each. In numericals, convert units first, and show that 1 byte = 8 bits.
Say the meaning first, then open the card to check.
A network that covers a small area such as a building.
The physical or logical layout of devices in a network.
A set of rules that devices follow to communicate.
A device that joins networks and forwards packets by IP address.
A number that identifies a device on a network.
A system that changes domain names into IP addresses.
The data rate of a link, in bits per second.
Hardware or software that filters network traffic by rules.
A small unit of data sent across a network.
| Name | Formula | What it means |
|---|---|---|
| Download time | time (s) = file size in bits ÷ speed in bps | Time for transfer, with 1 byte = 8 bits |
| IPv4 addresses | 2³² = 4,294,967,296 | Total possible IPv4 addresses |
| Usable hosts | 2ʰ − 2 | h host bits; one address is the network and one the broadcast |
These are the kind of questions asked for 2, 3 and 5 marks. Try each one before opening the answer.
A hub sends incoming data to every port, so all devices see it and traffic is high. A switch learns the MAC address of each device and sends data only to the intended port. A switch is faster, safer and more efficient.
DNS converts a domain name that people can remember, such as example.com, into the numeric IP address that computers use. Without it we would have to type IP addresses to open sites.
Advantages: a fault in one cable affects only that device, and new devices are easy to add. Disadvantages: if the central switch fails, the whole network stops, and it needs more cable than a bus.
TCP sets up a connection, numbers the packets, checks for errors and resends lost ones, so data arrives complete and in order. It is used for web pages and email. UDP sends packets without a connection or checking, so it is faster but may lose data. It is used in live video and games.
A PAN covers a few metres around a person. A LAN covers a building such as a school, and is fast and privately owned. A MAN covers a city and joins several LANs. A WAN covers countries or the world and uses leased lines or satellites. The internet is a WAN. Range, speed and cost differ for each type.
Fibre carries light signals, so it is not affected by electrical noise, loses little signal over distance and offers very high bandwidth. Twisted pair loses signal strength and picks up interference, so it is limited to about 100 m.
Answer: 100 seconds (1 min 40 s)
Answer: 254 hosts
Answer: 192 = 11000000