Networking

Describe networks and how they communicate (part 2: the suffering continues)

This part includes the introduction. Read that before continuing.

LANs and WANs

Network topologies

Describes the arrangement of computers/devices that make up a network.

Bus topology

Bus Network
Advantages Disadvantages
Cheap and easy to set up as only one big backbone cable is needed. The backbone is a single point of failure (i.e. if it breaks, the entire network goes down).
Data can only be sent in one direction at a time.
Additional devices slow down the network greatly.

CSMA/CD

Recommended video

Means carrier sense multiple access with collision detection.

Process:

  1. Check if wire is idle. If so, send the data.
  2. If a collision occurs (i.e. when 2 computers send data at the same time), transmission stops and a jamming signal is sent to stop further transmissions.
  3. The 2 computers that caused the collision wait a random amount of time before resending the data, and then transmission resumes as normal.

CSMA/CD isn’t particularly relevant anymore. It is only relevant on half-duplex networks, where data can only be sent in one direction at a time.

CSMA/CA will be talked about later. This is not the same as that.

Star topology

Bus Network

Computers are connected to a central node, such as a hub or switch.

Advantages Disadvantages
Easy to scale up (only one cable per node). The central node is a single point of failure.
One node failing doesn’t destroy the network.

Physical and logical topologies

A network with a physical star topology can behave logically as a bus network by using a bus protocol and appropriate physical switching.

MAC addressing

Every networking device contains an NIC (network interface card).

Each NIC has a hardcoded MAC (media access control) address when it is manufactured.

A switch uses MAC addresses of devices connected to the network to direct data packets to the correct devices.

MAC addresses are a unique 12-digit hexadecimal code, each byte being separated with a dash.

Example: 00:00:5e:00:53:af

Network architecture

Things to know: client-server, peer-to-peer.

Client-server

Client-server network

A large client-server network can contain many servers, each performing a specialised task. Examples are web servers, print servers, mail servers, file servers and database servers.

Peer-to-peer

Peer-to-peer network

Peer-to-peer networking can also be used on file-sharing websites such as BBC iPlayer, since it would alleviate a lot of stress from BBC’s servers. They are widely used on piracy sites because peer-to-peer networks are extremely difficult to shut down completely.