Subnetting is performed to divide the larger network to smaller network. The advantage of doing this that we can handle the broadcast domain of the network. In other words we can say that from the subnet mask we can easily determinr the network id of a packet which we want to transfer.