Could anyone answer me this? What is the purpose of specifying parts of the IP address into network and host parts? Thanks in advance, Mark
Subnetting allows a large physical network to be split up into smaller LANs, which tends to reduce overhead and make the network easier to manage. That's all I know though, so you might want to check around en.wikipedia.org/wiki/subnet
Think of it this way: There are public and private (non-routable) networks. The first byte or two of the address will tell you right away which it is. If your computer has a static route to a private network, it will prefer that route. Otherwise, everything goes to the default route.
The reason that there are network and host parts of an address have to do with management of the overall namespace. When someone wants an IP address block, ICANN used to assign them either a Class A, Class B, or Class C, depeding on how many hosts were needed. In A networks, 8 out of 32 bits make up the network part In B networks, 16 bits make up the network part In C networks, 24 bits make up the network part. The subnet mask is a 32 bit binary number that tells a layer 3 device what parts of the IP are network bits and what parts are host bits. This is to allow network managers to divide their networks into smaller logical networks (the same idea as VLANS) Now, since there is a shortage in the IPv4 address space, CIDR is used, which stands for classless interdomain routing. In CIDR, the address is written as an IP/<number of network bits> so, for example, 10.0.0.1/8 is equivalent to 10.0.0.1 with a subnet mask of 255.255.255.0 The original intention of CIDR was to make routing tables smaller, but it is now used also for preserving as much of the IP address space as possible.