TutorChase logo
Login
OCR GCSE Computer Science Notes

3.2.3 IP and MAC Addressing

Understanding IP and MAC addressing is essential for recognizing how data is correctly sent, received, and identified across different networked devices, both locally and globally.

IP Addressing in Network Communications

What is an IP Address?

An Internet Protocol (IP) address is a unique numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication. Every device that communicates over a network, whether private or public, needs an IP address to enable proper data exchange.

An IP address serves two main functions:

  • Identification: Identifies the device on a network.

  • Location Addressing: Specifies where the device is located in the network structure, facilitating correct data delivery.

Without IP addresses, routers and devices would have no way to know where to send information, making network communication impossible.

Format of IPv4 Addresses

IPv4 stands for Internet Protocol version 4. It is the most widely used version of the Internet Protocol and has been the foundation of the internet since its inception.

Structure

  • An IPv4 address is made up of 32 bits.

  • These 32 bits are divided into four octets (groups of 8 bits).

  • Each octet is converted into a decimal number and separated by dots.

  • Example: 192.168.1.1

Each octet can range in value from 0 to 255, because:

  • 2 to the power of 8 equals 256 (possible values: 0 to 255).

Practice Questions

Take your grades to the next level!

UPGRADING TO PREMIUM UNLOCKS
AI Tutor
AI-powered study assistant
instant feedback and guidance
Predicted Papers
Examiner-style predicted papers
based on recent exam trends
Practice Questions
All exam practice questions
by topic for each subject
Study Notes
All detailed revision notes
written by expert teachers
Cheat Sheets
Quick revision summaries
perfect for last-minute review
Past Papers
Complete collection
of practice and past exam papers
Email
Password
Confirm Password
Already have an account?

FAQ

If two devices on the same local network have identical MAC addresses, it causes a serious conflict. Switches and routers rely on MAC addresses to deliver frames to the correct device. If two devices share the same MAC address, network equipment cannot distinguish between them, leading to unpredictable behavior. Data packets might be sent to the wrong device, get lost entirely, or cause repeated retransmissions that slow down or crash the network. Normally, MAC addresses are unique and burned into hardware, but manual changes, cloning, or manufacturing errors can cause duplication. When duplication occurs, network administrators must manually find and reconfigure one of the conflicting devices to restore proper communication. Tools like network analyzers can help locate duplicate MAC addresses. On managed networks, especially enterprise setups, many switches and routers have features that automatically detect and block devices with duplicate MAC addresses to protect network integrity and ensure reliable performance.

Yes, a device can have multiple IP addresses, and in some cases, multiple MAC addresses. Devices like servers, routers, or advanced workstations often have multiple network interfaces (such as Ethernet ports and Wi-Fi adapters). Each network interface card (NIC) has its own MAC address because the MAC address is tied directly to the physical hardware. Therefore, a single device with several NICs will have a different MAC address for each interface. Regarding IP addresses, a single NIC can be configured with multiple IP addresses, especially in complex network environments like hosting servers, virtual machines, or clustered systems. This practice is called IP aliasing. It allows one physical device to appear as multiple logical devices across a network. Additionally, devices can have both an IPv4 and an IPv6 address simultaneously, supporting communication with older and newer network technologies. Modern devices dynamically manage multiple addresses to improve reliability and network compatibility.

When a device connects to a network, it typically obtains an IP address automatically through the Dynamic Host Configuration Protocol (DHCP). The device sends a DHCP request broadcast when it first connects. The DHCP server on the network, such as a router, responds by offering an available IP address from its address pool, along with other important configuration details like the subnet mask, default gateway, and DNS server addresses. The device accepts the offer, and the IP address is temporarily leased to the device. This lease can expire after a set time, requiring renewal. In networks without a DHCP server or when specifically configured, a device may use a static IP address, meaning the IP is manually entered by the user or administrator and remains constant. In some cases, if no DHCP server is found and no static address is set, the device might auto-assign itself an address in a special range (like 169.254.x.x for IPv4).

Private IP address ranges are reserved for use within private networks such as homes, schools, and businesses. They are not routable over the public internet, meaning that devices using private IP addresses cannot communicate directly with the internet without special translation. The three main private IPv4 ranges are 10.0.0.0 to 10.255.255.255, 172.16.0.0 to 172.31.255.255, and 192.168.0.0 to 192.168.255.255. These addresses are reused by countless different private networks around the world. To access the internet, devices with private addresses pass through a router or firewall that uses Network Address Translation (NAT) to map private addresses to a public IP address temporarily. Public IP addresses, on the other hand, are globally unique and assigned by regional internet registries. They allow direct communication over the internet. Private IP addresses help conserve the number of public IP addresses needed and enhance security by isolating internal network traffic from the outside world.

MAC addresses are only used within a local network segment because they are not visible or usable outside of that local environment. When data must travel between different networks, devices rely on IP addresses and routers to move the information appropriately. Routers operate at the network layer and do not pass along MAC addresses when forwarding packets to another network. Instead, they examine the destination IP address, determine the best route, and forward the packet accordingly. As each packet reaches a new network segment, the router on that segment replaces the frame header with a new one containing the router’s own MAC address as the source and the next hop device’s MAC address as the destination. This process, known as packet encapsulation, happens at every router the packet passes through. Therefore, although MAC addresses ensure accurate delivery within a local network, IP addresses are what enable communication across the internet and multiple networks efficiently.

Hire a tutor

Please fill out the form and we'll find a tutor for you.

1/2
Your details
Alternatively contact us via
WhatsApp, Phone Call, or Email