11.6.3.2 explain the format of an IP address and how an IP address is associated with a device on a network
IP addresses
IP address - a unique software address used to communicate over the internet.
Every device on the internet has a unique IP address.
IP addresses are either 32-bit numbers.
The address is broken down into four 8-bit numbers (each is called an octet) (standard IPv4).
Each octet can represent a number between 0 and 255 and is separated by a full stop, eg 192.168.1.20.
Equivalent for 11000000 10101000 00000001 00000101 is 192.168.1.5
Each IP address has two parts. How do nodes determine where the network portion is and where is the node address? The subnet mask is used for this.
Subnet mask
A 32-bit IP address mask that indicates the number of bits of an IP address reserved for a subnet address.
In the subnet mask, ones correspond to the network portion and zeros to the host address.
For example,
if IP address 192.168.1.20 and subnet mask 255.255.255.0,
IP address
192
168
1
20
Subnet mask
255
255
255
0
then 20 - host address is in the network 192.168.1
Reserved for future use, or research and development purposes.
Private and public IP addresses
A private IP address, also called internal, intranet, or local, is an IP address that belongs to a special range not used on the Internet. Such addresses are intended for use in local networks, the distribution of such addresses is not controlled by anyone.
IP address range
Classful description
10.0.0.0 – 10.255.255.255
single class A network
172.16.0.0 – 172.31.255.255
16 contiguous class B networks
192.168.0.0 – 192.168.255.255
256 contiguous class C networks
All other addresses are public addresses.
Differences between Public and Private IP addresses
IPv6 addresses consist of 8 groups of 16-bit hexadecimal values separated by colons (:). IPv6 addresses have the following format:
aaaa:aaaa:aaaa:aaaa:aaaa:aaaa:aaaa:aaaa
Each aaaa is a 16-bit hexadecimal value, and each a is a 4-bit hexadecimal value. Following is a sample IPv6 address:
3FFE:0000:0000:0001:0200:F8FF:FE75:50DF
or 3FFE:0:0:1:200:F8FF:FE75:50DF
IPv6 has three types of addresses:
Unicast—For a single interface.
Multicast—For a set of interfaces on the same physical medium. A packet is sent to all interfaces associated with the address.
Anycast—For a set of interfaces on different physical media. A packet is sent to only one of the interfaces associated with this address, not to all the interfaces.