In: Computer Science
What is the 199th address in the 220 (2 ^ 20) block of Class C?
IP Address:
An IP address is an identifier or label used to identify a machine on the internet or a particular network. Each of the devices on the internet must have an IP address for identification.
IPv4 is the first version of Internet Protocol that uses a 32-bit address and this protocol is most widely used.
Total number of IP address supported by IPv4 = 232
The netmask and subnet mask is used to divide the IP address.
Classful Addressing:
In classful addressing, an IP address is related to a class and we need to purchase a class of the IP addresses as per the requirement.
Address class:
Class A:
The range of the first octet: 0 to 127
Subnet mask = 255.0.0.0
Class B:
First octet range: 128 to 191
Subnet mask = 255.255.0.0
Class C:
First octet range: 192 to 223
Subnet mask = 255.255.255.0
Here, the first 24 bits are used for network id, and the last 8 bits are used for host id.
The first block of class C address is = 192.0.0.0
The second block of class C address is = 192.0.1.0
The third block of class C address is = 192.0.2.0
The (2 ^ 20) block of class C address is = 207.255.255.0
The first address of the (2 ^ 20) block of class C is = 207.255.255.0
The second address of the (2 ^ 20) block of class C is = 207.255.255.1
The 199th address of the (2 ^ 20) block of class C is = 207.255.255.198