GATE Previous Year Questions

Classless Addressing in IP Addressing

The Network address identifies a network on the internet. Using this, we can find a range of addresses in the network and total possible number of hosts in the network.

Mask is a 32-bit binary number that gives the network address in the address block when AND operation is bitwise applied on the mask and any IP address of the block.

The default masks in different classes are :

  • Class A – 255.0.0.0
  • Class B – 255.255.0.0
  • Class C – 255.255.255.0

Question: Given IP address 132.6.17.85 and default class B mask, find the beginning address (network address).

Solution: The default mask is 255.255.0.0, which means that only the first 2 bytes are preserved and the other 2 bytes are set to 0. Therefore, the network address is 132.6.0.0.

Similar Reads

Subnetting

Dividing a large block of addresses into several contiguous sub-blocks and assigning these sub-blocks to different smaller networks is called subnetting. It is a practice that is widely used when classless addressing is done....

Classless Addressing

To reduce the wastage of IP addresses in a block, we use sub-netting. What we do is that we use host id bits as net id bits of a classful IP address. We give the IP address and define the number of bits for mask along with it (usually followed by a ‘/’ symbol), like, 192.168.1.1/28. Here, subnet mask is found by putting the given number of bits out of 32 as 1, like, in the given address, we need to put 28 out of 32 bits as 1 and the rest as 0, and so, the subnet mask would be 255.255.255.240. A classless addressing system or classless interdomain routing (CIDR or supernetting) is the way to combine two or more class C networks to create a/23 or a /22 supernet. A classless addressing system or classless interdomain routing (CIDR) is an improved IP addressing system. In a classless addressing system the block of IP address is assigned dynamically based on specific rules....

Frequently Asked Questions

...

GATE Previous Year Questions

...