Network hardware

Computer Science · Hardware. The idea in plain words, the rules to remember, the mistake to avoid and a worked example, written and checked by Mega Lecture.

Test this topic freeAll Computer Science topics

The idea

To join a network, a device needs a network interface card (NIC). Every NIC is given a MAC address when it is made.

A MAC address identifies the device itself. It is set by the manufacturer and normally does not change. An IP address identifies where the device is on a network. It is given by the network, so it can change when the device joins a different network.

A router joins networks together, for example a home network to the internet. It reads the destination IP address in each packet and sends the packet on towards the correct network. It can also give IP addresses to the devices on its own network.

In simpler words

To join a network, a device needs a network card. The card has a MAC address set by the maker, which stays with the device. The device also gets an IP address from the network. That shows where it is and can change. A router links networks together and sends each packet towards the right place using its IP address.

An everyday comparison

A MAC address is like the serial number stamped on your phone. It stays the same wherever you go. An IP address is like a hotel room number. It tells others where you are right now, and changes when you move. The comparison stops working because static IP addresses, used for servers, are kept the same on purpose, like a permanent home.

Rules to remember

Common mistake

Students mix up the two addresses. MAC is from the manufacturer and stays with the device; IP is from the network and can change.

In the exam

Define both addresses and contrast who assigns them and whether they change. Give the formats: MAC is 48 bits as six pairs of hex digits, with manufacturer code then serial number; IPv4 is 32 bits as four denary numbers 0 to 255; IPv6 is 128 bits in hex. Say why IPv6 was introduced. Explain static versus dynamic with an example, and describe what a router does.

Worked example

A student uses the same laptop on the home network and then on the school network. Which address stays the same and which changes?

  1. The MAC address belongs to the laptop's NIC and was set when it was made, so it stays the same.
  2. The IP address is given by the network the laptop joins.
  3. The school network is a different network, so it gives the laptop a different IP address.

Answer: The MAC address stays the same; the IP address changes.

Ask about this

Type what you are stuck on. The helper finds the explanation, worked examples and the notes to read, free and instant.

Keep going

← Data storageTypes of software and interrupts →Take a Computer Science test