Networks - EduqasAddressing and protocols

Devices can be networked using different hardware, such as routers, hubs, switches, gateways and bridges. They can cover local areas (LANs) or wider areas (WANs). Networks are constructed using different topologies, including ring, bus, star and mesh. All of these differences have advantages and disadvantages to users.

Part ofComputer ScienceUnderstanding Computer Science

Addressing and protocols

Any form of communication requires rules. These determine how the communication is actually made and manage key factors like transmission speed, error checking and methods of addressing, for example, how to locate another node on the network. Rules that govern communication are known as . Many types of protocol exist, but the ones that govern addressing are:

  • adressing
  • addressing

IP Addressing

When connected to a network each device is given a unique . This address consists of four sets of up to three digits, each with a maximum value of 255, which are separated by dots. An example is:

192.168.0.254

When a wants to send a message to another node, it uses the recipient node's address as the destination. A on the network knows where the node with this address is and routes the message to it accordingly.

IP addresses can be static or dynamic.

A node given a static address always keeps the same address. A node given a dynamic address has a different address assigned to it each time it connects to the network. This method is known as dynamic host configuration protocol (DHCP). Static addressing makes it easy for network managers to know which device is which on a network. However, dynamic addressing allows more devices to connect than there are available addresses. When a device disconnects from the network, its address is freed up for another device to use. When the first device reconnects it is assigned any free address.

This method of addressing using four sets of digits is called . When IPv4 was devised, the range of addresses allowed was deemed to be enough. However, the huge increase in internet enabled devices has seen IPv4 run out of addresses. A new version, , which includes six sets of three digits, has been introduced, greatly increasing the number of possible addresses to trillions.

MAC addressing

A MAC address is a unique serial number assigned to each . This allows a network to uniquely identify any device, even when a dynamic IP address is assigned using DHCP, each time the device connects to a network. The device’s IP address changes depending on the network and the MAC address is unique to the device.

A MAC address consists of a string of numbers. An example is:

1A:5B:6H:98:78:35

The MAC address is assigned by the NIC’s manufacturer and cannot be changed. If a device has more than one NIC, for example a wired NIC and a wireless NIC, each NIC will have its own MAC address.

Ethernet

an ethernet cable bundle with velcro
Figure caption,
An ethernet cable

Ethernet is a type of used to connect devices on a local area network (LAN) via a physical cable.

It allows computers, printers and other devices to communicate through a wired connection.

Advantages of ethernet

  • It provides a stable and reliable connection that is not affected by walls or interference.
  • It offers higher speeds than wi-fi.
  • It is more secure than a wireless connection because physical access is usually required to cables and also because data that is travelling through the cables is harder to intercept than a wireless connection.

Disadvantages of ethernet

  • Devices must be near a connection point.
  • It can be difficult to install, due to issues with infrastructure, such as older buildings not designed for cabling or having to drill and lift floorboards in buildings.
  • Cables can appear to be messy.

Wi-fi

A high-view of a person using laptop at table
Figure caption,
A person using a laptop connected to the internet

Wi-fi is a type of used to connect devices to a network, wirelessly.

It allows the user to move around and to be mobile. The disadvantages of wi-fi are that it can be slower and less stable (due to issues such as signal strength) than other protocols, such as ethernet.

Other protocols

close up of the letters https showing an example of a secure website
Figure caption,
An example of a secure web address

Many other protocols exist. Some of the more common protocols are:

  • TCP/IP - Transmission Control Protocol/Internet Protocol - enables communication over the internet.
  • HTTP and HTTPS - Hypertext Transfer Protocol - governs communication between a webserver and a client. HTTPS (secure) includes secure encryption to allow transactions to be made over the internet.
  • FTP - File Transfer Protocol - governs the transmission of files across a network and the internet.
  • SMTP - Simple Mail Transfer Protocol - governs the sending of email over a network to a mail server.
  • POP and IMAP - Post Office Protocol and Internet Message Access Protocol - govern retrieving emails from email servers. POP is an older implementation, largely replaced by IMAP.