Layer | Function | Communication Scope | |
---|---|---|---|
IP | Network Layer | Identify devices across different networks and facilitate routing between them. | Used to determine the path for data to travel across multiple networks when two devices are not directly connected |
MAC | Link Layer | Identify devices within the same local network (LAN) based on their hardware address | Used when two devices are directly connected within the same network |
Address length: 32-bit
Address space: 2^32 IP addresses
Two notations:
dotted decimal: 128.11.3.31
binary: 10000000 00001011 00000011 00011111
Two-level addressing:
| net-id | host-id |
n bits 32-n
Address block: the range of IP addresses that are grouped together to form a "block.”
Each block can be allocated to different networks or organizations based on the number of devices (hosts) they need to support
Host: individual devices that can connect to a network and require a unique IP address