Communication and Networking Technologies
Networks: LANs and WANs, their models, shapes and hardware, Ethernet, the media that carry signals, cloud computing, bit streaming, and how the internet finds a device and a web page.
WATCH IT EXPLAINED
What a network is for: LAN and WAN
A network joins computers so they can share. A LAN is small and owned; a WAN is large and rented.
Why join computers into a network?
- Share things: files, printers and one internet connection.
- Talk: people send email and messages.
- Manage everything from one place: backups, updates, security and user accounts.
| LAN (local area network) | WAN (wide area network) | |
|---|---|---|
| Area | small: one building or one site | large: across cities or countries |
| Who owns the links | the organisation owns its cables and switches | rented from telecom companies |
| Speed | usually higher | usually lower |
| Example | your school's network | the internet, the largest WAN; a WAN often joins LANs together |
Watch out:The difference is the area and who owns the links. It is not the number of computers.
Client-server, peer-to-peer, thin and thick clients
Either one server serves everyone (client-server), or every computer shares with every other (peer-to-peer).
In a client-server network, one computer, the server, gives a service: files, printing or web pages. The other computers, the clients, ask for it.
In peer-to-peer (P2P), every computer is equal. Each one shares its own files and uses the others' files.
| Client-server | Peer-to-peer | |
|---|---|---|
| Good | security, backups and accounts are managed in one place | cheap: no server to buy; no single point of failure |
| Bad | the server costs money and needs a specialist; it is a single point of failure | each user secures and backs up their own files; a file is unavailable while its computer is off |
| Choose it for | a school with 500 users | 3 computers at home, sharing |
Two kinds of client:
- A thin client relies on the server for processing and storage. No connection, no work.
- A thick client does most of its own processing and storage, so it can keep working offline.
Topologies: how a packet crosses each one
A topology is the shape of a network. The shape decides how a packet travels and what one break does.
| How it is joined | How a packet travels | If one part breaks | |
|---|---|---|---|
| Bus | every device is on one shared backbone cable, with a terminator at each end | along the whole cable; every device sees it, but only the device it is addressed to accepts it | the backbone breaks: the whole network stops |
| Star | every device has its own cable to a central switch | the switch sends it only to its destination | one device's cable: only that device is cut off; the switch fails: every device is cut off |
| Mesh | devices have several links | it can take more than one route | the packet takes another route |
| Hybrid | two or more topologies joined, such as a star in each room joined by a backbone | as in each part it crosses | it depends on which part breaks |
- A bus is cheap. But collisions happen, and it slows down under heavy traffic.
- A mesh is very reliable. But it needs a lot of cable.
Exam:Justify a topology by its cost and its reliability in the situation you are given.
The hardware of a LAN
A LAN is built from parts with one job each: connect a device, pass data on, or join pieces together.
On a LAN, data travels in frames (small packets of data). Every network card has a unique MAC address, a fixed hardware address.
| Device | Its job |
|---|---|
| NIC (network interface card) | connects a device to a wired network; holds the device's unique MAC address |
| WNIC (wireless NIC) | does the same by radio, through a WAP |
| WAP (wireless access point) | lets wireless devices join the wired network |
| Switch | joins the devices of a star; reads each frame's destination MAC address and sends the frame only to the port that device is on |
| Server | provides services to the clients |
| Cables | copper or fibre; carry the signals |
| Repeater | regenerates a weak signal so it can travel further |
| Bridge | joins two LAN segments that use the same protocol (set of rules), so they work as one network; reads the MAC address |
| Router | joins different networks; reads the IP address |
Watch out:A switch reads MAC addresses. A router reads IP addresses. A WAP is not a router.
Ethernet and CSMA/CD
On a shared cable, CSMA/CD makes devices listen before sending, and wait a random time after a collision.
Ethernet is the standard set of rules for wired LANs. Data travels in frames. Each frame carries the source and destination MAC addresses.
On a shared cable, two devices can start sending at once. Their signals collide. CSMA/CD (Carrier Sense Multiple Access / Collision Detection) deals with this:
- Listen to the cable first (carrier sense).
- If it is busy, wait until it is idle.
- When it is idle, start sending the frame.
- While sending, watch for a collision (collision detection).
- On a collision, stop and send a jam signal, so every device knows.
- Wait a random time, then go back to step 1. The wait can grow after each collision.
Exam:A full answer needs all three: listen before sending, the jam signal, and the random wait.
Remember:Switched Ethernet avoids collisions. Each device has its own cable to a switch, and can send and receive at the same time.
Wired or wireless: the five media
Wired links are faster and safer; wireless links are free to move. Fibre wins on bandwidth, distance and interference.
Bandwidth is how much data a link can carry each second. Wired links usually have a higher bandwidth and are harder to intercept. Wireless links need no cables and let devices move.
| Medium | Good | Bad |
|---|---|---|
| Copper cable (electrical signals) | cheap, easy to fit | weakens over distance; picks up interference |
| Fibre-optic cable (pulses of light) | very high bandwidth; long distance before a repeater is needed; no electrical interference; hard to tap | costs more; harder to fit and join |
| Radio waves (including WiFi) | no cables, devices can move | short range; blocked by walls; can be intercepted, so the data must be encrypted |
| Microwaves | point to point, dish to dish on towers | needs a clear line of sight |
| Satellites | reach remote places | long delay |
Watch out:Fibre is not better because light is fast. Light in glass is slower than radio waves in air.
A geostationary satellite stays above one place on Earth. The signal goes about 36 000 km up and back down. This adds a delay of about 239 ms.
Cloud computing
Cloud computing means storing and running things on remote servers over the internet, not on your own computers.
Cloud computing means using storage, processing or software on remote servers (computers somewhere else) over the internet, instead of on your own computers. For example, a school keeps its files online, not on its own server.
| Public cloud | Private cloud | |
|---|---|---|
| Who uses it | many customers share it | one organisation only |
| Where it runs | on a provider's servers | on the organisation's own or dedicated servers |
| Control | less | more control over its data and security |
Benefits:
- You can reach your data from anywhere.
- You buy and maintain no servers.
- It is easy to scale up (grow).
- The provider makes the backups.
Drawbacks:
- You need a reliable internet connection.
- Someone else holds your data.
- The fees never stop.
- If the provider fails, you lose access.
The internet is not the World Wide Web
The internet is the network of networks; the web is one service that runs on it.
- The internet is the worldwide network of connected networks: the cables, routers and servers. TCP/IP is its set of rules that carry data between them.
- The World Wide Web (WWW) is a collection of web pages and other resources. They are linked by hyperlinks and opened in a browser using HTTP or HTTPS.
Remember:The WWW is one service that runs on the internet. Email, file transfer and video calls use the internet too, but they are not the web.
How you reach the internet:
| Who | Uses | How it works |
|---|---|---|
| A home | a modem and the PSTN | the modem turns a digital signal into an analogue one and back, so data can go over a telephone line; the PSTN is the public telephone network, used for dial-up and telephone broadband |
| A phone | the cell phone network | each mast serves one cell (area); phones connect to the mast by radio |
| An organisation | a dedicated line | a permanent line rented by one organisation: fast, reliable, private, expensive |
IP addresses: IPv4, IPv6 and subnets
An IP address finds a device. A subnet mask shows which part of it names the network.
Every device on the internet needs an IP address, so packets can be delivered to it. It works like a home address for data.
| IPv4 | IPv6 | |
|---|---|---|
| Size | 32 bits | 128 bits |
| How many addresses | about 4.3 billion: not enough | far more |
| Written as | 4 denary numbers 0-255, with dots | 8 groups of 4 hex digits, with colons |
An address has two parts: a network part and a host part (the device). Like a street name and a house number.
A subnet mask has 1s over the network part. AND the address with the mask, and you get the network address.
- Same network address: the devices are on the same subnet. They send to each other directly.
- Different network address: the data goes through the router.
Subnetting splits one network into smaller ones. Traffic stays local, and each part can be managed and secured separately.
Example:The box below ANDs two addresses with one mask, and finds two different subnets.
IPv4: 32 bits, 4 denary numbers
0-255, dots
IPv6: 128 bits, 8 groups of 4 hex
digits, colons
192.168.10.37 AND 255.255.255.224 (/27)
last octet:
00100101 AND 11100000 = 00100000
network address 192.168.10.32
192.168.10.70 AND 255.255.255.224
last octet:
01000110 AND 11100000 = 01000000
network address 192.168.10.64
different network addresses:
different subnets
2001:0db8:0000:0000:0000:ff00:0042:8329
= 2001:db8::ff00:42:8329
drop the leading zeros in each group,
and replace ONE run of all-zero groups
with ::The router, and public, private, static and dynamic addresses
A router joins networks. Inside, devices have private addresses; outside, the router shows one public address.
A router joins different networks. For each packet it:
- reads the destination IP address
- looks up the best next hop (the next stop) in its routing table
- forwards the packet.
At home, the router joins the LAN to the internet.
| Private IP address | Public IP address | |
|---|---|---|
| Who has it | devices on a LAN | the router, on the internet side |
| Unique? | no: reused in many LANs | yes: unique on the internet |
| Reachable from the internet? | no: it cannot be routed there, so outsiders cannot reach it directly | yes |
The router swaps the addresses on the way out and back.
| Dynamic address | Static address | |
|---|---|---|
| How it is given | automatically by DHCP, each time a device connects | set once |
| Does it change? | it may change | never, so a server can always be found |
Watch out:Public or private, and static or dynamic, are two separate choices. A private address is not secret.
private ranges 10.x.x.x
172.16.x.x to 172.31.x.x
192.168.x.x
in the figure
laptop 192.168.1.23 private, dynamic
phone 192.168.1.24 private, dynamic
printer 192.168.1.50 private, static
router 192.168.1.1 inside the LAN
203.0.113.25 public, outside
web server 198.51.100.80 public, staticURLs and the Domain Name Service
A URL names a web resource; DNS turns its domain name into the IP address that networks need.
A URL is the address of one resource on the web. It has four parts:
| Part | In https://www.school.example/lessons/binary.html |
|---|---|
| protocol | https:// |
| domain name | www.school.example: www is the host, school the organisation, .example the top-level domain (kept for examples; a country has a code, such as .mn) |
| path | /lessons/ |
| file name | binary.html |
Networks route by IP address, not by name. So the browser asks the Domain Name Service (DNS) for the IP address that matches the domain name.
- If the resolver has the answer in its cache (saved copies), it uses it. If not, it asks a root server.
- The root server points it to the server for the top-level domain (here
.example). - That server points it to the domain's own authoritative server, which gives the IP address.
- The answer is cached for next time.
- Only then does the browser request the page.
Watch out:DNS does not send the page. The web server does.
Bit streaming: real-time and on-demand
Streaming plays media while it arrives. It works only if the connection keeps up with the media's bit rate.
Bit streaming sends media as a continuous stream of bits that plays as it arrives. You do not download the whole file first.
| On-demand | Real-time (live) | |
|---|---|---|
| What it sends | a file already stored on a server | an event, as it happens |
| Example | a film or a recorded lesson | a live football match |
| Control | you can pause, rewind and skip | you watch it as it happens |
| Buffering | the player downloads ahead of you | only a few seconds, because the rest does not exist yet |
The player's buffer (a store of bits waiting to be played) smooths out short drops in speed.
Remember:Over time, the connection's bit rate must be at least the media's bit rate. If not, the buffer empties and the video stops.
needed: broadband bit rate
>= media bit rate
video at 5 Mbit/s
over a connection at 8 Mbit/s:
the buffer gains 8 - 5 = 3 Mbit
each second
at 2 Mbit/s it loses 5 - 2 = 3 Mbit
each second
bits and bytes: Mbit/s / 8 = MB/s
8 Mbit/s / 8 = 1 MB/s- Click the stages below in the order they happen.
KEY TERMS
CHECK YOURSELF
1.Which is a genuine drawback of a client-server network?
2.In a bus topology, what happens if the main cable breaks?
3.Which topology gives the highest reliability through redundant paths?
4.In CSMA/CD, what does a station do as soon as it detects a collision?
5.Which device reads a frame's destination MAC address and sends the frame only to the port that device is on?
6.Which of these uses the internet but is NOT part of the World Wide Web?
7.192.168.10.37 and 192.168.10.70 both use the subnet mask 255.255.255.224. Are they on the same subnet?
8.Why can an outsider on the internet not send a packet straight to 192.168.1.23?
9.What does DNS do when you visit www.school.example?
10.Why can a live stream buffer only a few seconds of video?