2.2 Identification Needed: Documenting My Network
🌐AP Networking Unit 2 Review
2.2 Identification Needed: Documenting My Network
🌐 AP Networking
continue practicing 2.2
Multiple choice
Every device on a network needs some kind of name tag so data actually ends up in the right place. That's what this topic is really about: the two kinds of addresses (MAC and IP) that identify devices, the different flavors of IPv4 addresses you'll run into, and how to draw out a network so you (or someone else) can actually understand what's connected to what. Once you've got this stuff down, troubleshooting and expanding a network stops feeling like a guessing game.
MAC Addresses and How Devices Get Identified
Before talking about addresses, get the vocabulary straight. A node is any device attached to a network. A host is a specific kind of node that sends or receives data, like a printer or a computer. Hosts are often called endpoints. Networking gear like switches, routers, and access points move data around but aren't considered hosts themselves.
For a device to join a network at all, it needs a network interface card (NIC). The NIC is the hardware piece that physically connects your device to the network, whether by cable or wireless.
What a MAC Address Is
A media access control (MAC) address (also called a physical or hardware address) is assigned directly to the NIC. Think of it as the permanent name stamped on the network card itself. Because it's hardcoded into the NIC, the MAC address stays the same even when the device moves to a different network. That's what makes it good for identifying a specific piece of hardware.
A MAC address is 48 bits long and gets split in half:
- First half: the Organizationally Unique Identifier (OUI), which tells you the manufacturer
- Second half: identifies the specific device made by that manufacturer
Writing MAC Addresses in Hexadecimal
MAC addresses are written in hexadecimal, which is base-16. Hex uses the digits 0 through 9 plus the letters A through F (where A = 10, B = 11, up to F = 15). Hex is more compact than binary, which makes long addresses way easier for humans to read.
There are three accepted formats for writing a MAC address:
- No separators:
6F72696F6E2A - Colons between pairs:
6F:72:69:6F:6E:2A - Hyphens between pairs:
6F-72-69-6F-6E-2A
Converting Decimal to Hexadecimal
To turn a decimal number into hex, divide by 16, write down the remainder as a hex digit, then divide the quotient by 16 again. Keep going until the quotient is 0. Read the remainders from bottom to top.
Example: convert decimal 79 to hex.
- 79 ÷ 16 = 4 remainder 15 (which is
F) - 4 ÷ 16 = 0 remainder 4 (which is
4) - Read bottom to top:
4F
So 79 in decimal is 4F in hex.
The CAM Table
Every device physically connected to a switch has its MAC address recorded in the switch's content addressable memory (CAM) table. This table maps each MAC address to the specific port it's plugged into. Because of that, the switch can send data only to the right device instead of broadcasting it out every port.
Example CAM table:
| MAC Address | Port |
|---|---|
| 6D:6F:72:69:61:68 (Device A) | 1 |
| 4F:72:69:6F:6E:2A (Device B) | 2 |
| 70:6F:6C:61:72:24 (Device C) | 3 |
If Device A sends something meant for Device B, the switch checks the CAM table, sees Device B is on port 2, and forwards the data only out port 2.
How IP Addresses Are Structured
An Internet Protocol (IP) address is a logical identifier a device gets on a specific network. Unlike a MAC address, an IP address typically changes when the device moves to a different network. That's why it's "logical" instead of "physical": it describes where you are on the network, not what piece of hardware you are.
IPv4 Format
An IPv4 address is 32 bits long, split into four 8-bit chunks called octets. IPv4 addresses are usually written in dotted decimal format, where each octet is shown as a decimal number from 0 to 255, separated by periods.
Example: the binary value 10001110.11111010.10111111.01001110 becomes 142.250.191.78 in dotted decimal.
Network ID vs Host ID
Every IPv4 address has two parts:
- Network ID: shared by all devices on the same local network
- Host ID: uniquely identifies each device within that network
The network ID can take up 1 to 3 octets depending on the network's class. The more octets the network ID uses, the fewer are left for host IDs, which means fewer devices can fit on that network.
Classful Addressing
Under classful addressing, IPv4 addresses are split into five classes:
| Class | Approx. hosts allowed | Notes |
|---|---|---|
| A | ~17 million | Huge networks |
| B | ~65,000 | Medium networks |
| C | ~254 | Small networks |
| D | N/A | Reserved for other uses |
| E | N/A | Reserved for other uses |
Subnet Masks
An IPv4 address must be paired with a subnet mask, which is also commonly written in dotted decimal. The subnet mask tells you which bits of the IP address belong to the network ID and which belong to the host ID.
Common subnet masks:
| Subnet Mask | Class | What it means |
|---|---|---|
| 255.0.0.0 | A | First octet is network, last three are host |
| 255.255.0.0 | B | First two octets are network, last two are host |
| 255.255.255.0 | C | First three octets are network, last octet is host |
For example, with mask 255.255.255.0, the IP 192.168.1.25 has a network ID of 192.168.1 and a host ID of 25.
ARP: Connecting IP to MAC
Devices on a local network actually need both identifiers to communicate. That's where the Address Resolution Protocol (ARP) comes in. ARP links a device's IP address to its MAC address so data arrives at the right destination.
Here's how it plays out when a device wants to send data to another device on the same local network:
- The sender broadcasts an ARP request to all devices on the network, including the destination's known IP address.
- The device whose IP matches responds with an ARP reply containing its MAC address.
- The sender now knows the MAC address and can send the data directly.
Types of IPv4 Addresses
Not every IPv4 address does the same job. There are a few categories you need to recognize.
Public Addresses
A public IP address is unique on the internet. Your ISP assigns one so your network can be directly reached from outside. Public addresses are what carry communication across the internet and between separate networks. Organizations get public addresses for anything they want the internet to be able to reach.
Private Addresses
Private IP addresses are used only inside a local area network (LAN). Private IP addresses aren't globally routable on the public internet, so outside sources can't directly reach devices using them. Routers inside an organization still route traffic to private addresses fine—it's internet routers that have no path to private address space (which is also why NAT is used to let private devices reach the internet). That adds a layer of security because those devices simply aren't visible from the internet.
Private address ranges by class:
| Class | Private range |
|---|---|
| A | 10.0.0.0 to 10.255.255.255 |
| B | 172.16.0.0 to 172.31.255.255 |
| C | 192.168.0.0 to 192.168.255.255 |
If your home Wi-Fi gives you an address like 192.168.1.14, that's a Class C private address.
APIPA Addresses
Normally a Dynamic Host Configuration Protocol (DHCP) server handles assigning and configuring IP addresses automatically so you don't have to set each one by hand. But if the DHCP server is unavailable or misconfigured, Automatic Private IP Addressing (APIPA) steps in and gives the host an address automatically.
APIPA addresses fall in the range 169.254.0.0 to 169.254.255.255. If you ever see a device sitting on a 169.254 address, that's a clue the DHCP server isn't doing its job.
Loopback Addresses
A loopback address lets a device send data to itself for testing purposes. The most common loopback address is 127.0.0.1, which refers to the local machine. If you can ping 127.0.0.1 successfully, you know the device's own networking stack is working.
Documenting an Existing Network
Once a network is set up, you need a way to keep track of what's on it. Network diagrams work both for planning a network before you build it and for documenting one that already exists.
What a Network Diagram Shows
A diagram gives you a visual picture of all the gear on a network: endpoints, servers, routers, switches, and access points. Two drawing conventions to know:
- Solid lines represent wired connections
- Dashed lines represent wireless connections
Each device on the diagram should be labeled with its MAC address and IP address. Having both written down makes troubleshooting way faster and makes expanding the network much less of a headache.
SOHO Networks
A SOHO (small office/home office) network supports a small number of users on a single LAN, usually in a home or a small business. Typical parts include endpoints, firewalls, routers, switches, access points, and cabling.
Here's what each piece does:
- Router: moves data between outside networks and the local network. Often combined with a modem in one device to provide internet access through an ISP.
- Switch: links wired devices and handles traffic inside the LAN.
- Wireless access point (WAP): provides wireless connections by attaching to a switch or router.
- Wireless gateway: one device that combines a modem, router, switch, and WAP all in one. Many SOHO networks use these because they're simpler.
Endpoints in a SOHO Network
Endpoints are devices that join a network to send and receive data. Common examples:
- Mobile phones
- Laptops
- Servers
- PCs
- IoT devices (smart speakers, smart bulbs, etc.)
- Printers and 3D printers
- Network attached storage (NAS)
- Voice over IP (VoIP) phones
Cabling
Three cable types show up in SOHO networks:
- Twisted pair (Ethernet): the most common choice for internal wired connections
- Coaxial: often used by ISPs for the external connection to the SOHO router
- Fiber optic: also commonly used by ISPs for the external link
So the cable running from your wall to your router is probably coax or fiber (from the ISP), while the cable from your router to your desktop is almost certainly twisted pair.
Put it all together and you have everything you need to label every device, every address, and every connection on a real network, then draw it out so anyone who looks at the diagram knows exactly what's going on.
Practice Questions for 2.2
1 of 10
An AI security assistant alerts a user that their network attached storage (NAS) device is vulnerable to wireless interception. The user's network diagram shows the NAS connected to the wireless gateway with a dashed line. Which mitigation strategy best addresses this specific vulnerability using the documented network components?
A.
Reconnecting the NAS to the gateway using a twisted pair cable, represented by a solid line.
B.
Reconnecting the NAS to the gateway using a new coaxial cable, represented by a dashed line.
C.
Reconnecting the NAS to the gateway using a loopback address, represented by a solid line.
D.
Reconnecting the NAS to the gateway using a new APIPA address, represented by a dashed line.
Vocabulary
The following words are mentioned explicitly in the AP® course framework for this topic.Term | Definition |
|---|---|
APIPA address | An Automatic Private IP Addressing address (169.254.x.x) a device assigns itself when it cannot obtain an address from a DHCP server. |
Class A private span | The private IPv4 address range 10.0.0.0 to 10.255.255.255. |
Class B private span | The private IPv4 address range 172.16.0.0 to 172.31.255.255. |
Class C private span | The private IPv4 address range 192.168.0.0 to 192.168.255.255. |
coaxial cable | A cable with a central conductor surrounded by insulation and a metallic shield, used in older networks and cable-based internet connections. |
DHCP server | A server that automatically assigns IP addresses and network configuration information, such as default gateway and subnet mask, to devices on a network. |
Dynamic Host Configuration Protocol (DHCP) | A protocol that automatically assigns and configures IP addresses for devices on a network. |
endpoint device | A device, such as a computer, mobile device, or IoT item, that connects to a network to send or receive data. |
Ethernet | A wired networking standard that commonly uses twisted pair cable. |
fiber optic cable | A cable that carries data as pulses of light through glass or plastic fibers, offering very high bandwidth and complete immunity to EMI. |
firewall | A security device or software that restricts which network traffic is permitted to enter or leave a network, based on rules that check details such as IP addresses, ports, and protocols. |
Internet service provider (ISP) | A company that provides the outside connection giving a network access to the internet. |
IoT device | An Internet of Things device, such as a smart TV, speaker, or thermostat, that often has security weaknesses. |
IP address | A numerical address assigned to a device on a network that identifies its location for sending and receiving data. |
IPv4 address | A 32-bit numerical address, written in dotted decimal notation, that identifies a device on an IPv4 network. |
local area network (LAN) | A network that connects devices within a limited physical area, such as a home or office. |
loopback address | A special address (127.0.0.1) that a device uses to refer to itself, shown when a device has no real network connection. |
MAC address | A unique hardware identifier assigned to a network interface, used to identify devices on a local network. |
modem | A device that connects a network to an internet service provider (ISP) so it can access the internet. |
network attached storage (NAS) | A storage device connected to a network that allows multiple devices to store and access data. |
network diagram | A visual map showing the devices in a network, their addresses, and the links between them, used to plan or record a network's configuration. |
private IP address | An IP address reserved for use within a local network that cannot be routed directly on the public internet. |
public IP address | A globally unique IP address used to identify a network or device on the public internet. |
router | A networking device that forwards packets between networks by consulting a routing table to choose the path to the destination. |
server | A computer that provides resources or services to other devices on a network and is suited to running many tasks at once. |
SOHO network | A small office/home office network used by a small number of users and devices, typically in a home or small business. |
switch | A network device that delivers data to a destination device on the same network segment using MAC addresses. |
twisted pair | A copper cable in which pairs of wires are twisted together to reduce interference, commonly used for desktop computers, printers, and NAS devices. |
Voice over IP (VoIP) phone | A specialized endpoint device that carries voice calls across an internet connection. |
wired link | A physical cable connection between network devices, drawn as a solid line in a network diagram. |
wireless access point | A network device that provides wireless connectivity to a LAN. |
wireless gateway | A single device that combines the functions of a modem, router, switch, and wireless access point. |
wireless link | A network connection that transmits data through radio signals rather than physical cables, offering mobility but more prone to interference. |
See Fiveable more often in Google
Mark Fiveable as a preferred source and Google is more likely to show you our guides in Top Stories, with a "preferred" badge in AI Mode and AI Overviews.