An assigned numerical label that is used to identify internet communicating devices on a computer network |
Layer 2
Addressing
Between two devices that are internal to own network or LAN
Internet Protocol (IP) Address
Layer 3
Addressing
Between two different networks or subnets
A unique number that identifies a device on a network.
IP Address
IP addresses work at Layer 3 (Network Layer).
Network Layer
Used inside your local networks (Layer 2)
MAC
Used to send data between networks
IP (Layer 3)
like a home address for a device.
House number, street, city → tells routers where to send data.
Routers = post offices, sending “mail” (data) from one network to another.
IP address
What is an IPv4 address?
What is an IPv4 address?
What is an octet in IPv4?
Each of the four numbers in an IPv4 address, representing 8 bits.
How is an IPv4 address divided?
Into a network portion (identifies the network) and a host portion (identifies a specific device).
What is a subnet mask?
A 32-bit number that separates the network portion from the host portion of an IPv4 address.
What does a subnet mask of 255.255.255.0 mean?
The first three octets (24 bits) are the network portion, and the last octet (8 bits) is the host portion.
What are the five IPv4 classes?
A (1–127), B (128–191), C (192–223), D (224–239, multicast), E (240–255, experimental).
How many hosts can a class A, B, or C network have?
Class A: ~16.7 million, Class B: 65,536, Class C: 256 hosts.
What is a classful subnet mask?
The default subnet mask for an IPv4 class (A: /8, B: /16, C: /24).
What is a classless subnet mask?
Any subnet mask that differs from the default, used in CIDR notation (e.g., /26 instead of /24).
How do you write an IPv4 address with CIDR notation?
By adding a slash and the number of network bits (e.g., 192.168.1.4/24).
A logical identifier for a group of hosts in a computer network
Multicast Address
First number: 1–127
Subnet mask: 255.0.0.0 → 1 part network, 3 parts devices
Can have ~16.7 million devices
Class A
First number: 128–191
Subnet mask: 255.255.0.0 → 2 parts network, 2 parts devices
Can have 65,536 devices
Class B
First number: 192–223
Subnet mask: 255.255.255.0 → 3 parts network, 1 part device
Can have 256 devices
Class C
First number: 224–239
No subnet mask → used for multicast (sending to a group)
Class D
First number: 240–255
No subnet mask → reserved for future or experimental use (~268 million addresses)
Class E
It’s basically:
A = huge network
B = medium network
C = small network
D = group messages
E = experiments/future