Subnet Mask

  • A subnet work or subnet is a logical subdivision of an IP network.
  • The practice of dividing a network into two more network is called subneting.
  • Subnet mask differentiates the network and host portion of an IP addresses.
  • Represented with all 1's in the network portion and with all 0's in the host portion.


Working:

  • A mask operation is a bitwise AND of two binary numbers, the address and the mask.


Types:

Fixed Length Subnet Mask:
  • It is a sequence of numbers of unchanging length that streamlines packet routing with in the subnet of proprietary network.
  • A subnet can be a geographically defined LAN.
Variable Length Subnet Mask:
  • It allows network engineers to divide an IP address space into hierarchy of subnets of different sizes.
  • By making it possible to create subnets with very different host counts without wasting large number of addresses.


Use:
  • For security.
  • For decreasing network traffic.
Advantages:
  • It provides security.
  • It allows organization of resources.
  • It speeds up the network.
Disadvantages:
  • Subnetting cost is high.
  • All subnets must be the same size in fixed length subnet mask.
Examples:



My notes images: