Networknewz
networknewz.com


10.30.00
Any Network Administrator knows that before you can set up a network you should know a little about how TCP/IP works. In today's NetworkNewz, I have included an article on just what happens at the IP level that will allow your computers to talk with one another.

Patrick Stoddard
NetworkNewz Editor


Each physical section of a network is usually assigned a unique block of IP addresses. This is done by assigning the segment a network address and subnet mask. Every interface connected to that network segment is then assigned an address from within the block of addresses and it is also configured using the subnet mask. Sometimes multiple blocks of IP addresses will co-exist on a single network segment, utilizing the same physical cabling network but operating as separate logical network segments.

When designing and configuring a subnet, a network address and subnet mask is defined for each block of IP addresses. The network address defines the start of the IP address block and the subnet mask determines how large the block is. The subnet mask also determines which portion of the IP address is used to identify the network and which part of the IP address is used to identify the host or interface.

To properly understand IP addresses and subnet masks, you should think of them binary numbers. Each IP address and each subnet can be written as four groups of eight binary digits (ones and zeroes), separated by periods (called dots). In the subnet mask, when represented in binary notation, the 1 bits identify the network and the 0 bits identify the interface address.

TCP/IP software uses a logical "AND" operation to find out what subnet an address belongs to. When a 0 is ANDed with either a 0 or a 1, the result is a 0. When a 1 is ANDed with a 1, the result is 1:

0 AND 0 = 0
0 AND 1 = 0
1 AND 0 = 0
1 AND 1 = 1

Classless or Classful Subnetting
When TCP/IP was originally developed, there were only a limited number of computer systems on the Internet and IP addresses were plentiful. The methods for distributing IP addresses assumed that there would always be enough addresses to go around. The available address space was broken up into arbitrary networks of three different sizes: Class A, Class B, and Class C. Class C networks were for networks with fewer than 255 hosts. Class B networks were for networks with fewer than 65,535 hosts, and Class A network were for networks with more than 65,535 or more hosts. This is commonly referred to as Classless networking.

The Classless rules for networking and subnetting tend to be very lavish with IP addresses, frequently wasting large numbers of addresses. As the Internet began to grow, the Classless rules of routing were replaced with a newer set of rules called Classful Inter -Domain Routing (CIDR). The Classful rules make much better use of available IP addresses but unfortunately there are still some pieces of equipment and software applications that were written using the original Classless IP rules. If your network has only equipment and software that is Classful compliant, then you should use Classful rules for subnetting. If you have older equipment or software, particularly older Ethernet-TCP/IP printer cards or older UNIX systems, then you should use Classless subnetting rules.

A common situation encountered on TCP/IP networks is the need to break a single Class C network into two subnets of IP. Using Classful IP rules the subnet mask most commonly used to do this is 255.255.255.192, which results in 2 subnets with 62 usable addresses in each.

Now I know you are wondering, if we break a group of 254 addresses into two pieces, why do we only end up with 2 groups of 62? Where did all of the other addresses go? Under Classless and Classful IP rules, within a subnet, the addresses with a host portion that is all zeroes or all ones have special meanings. The host address with all ones is the broadcast address for the subnet. Packets addressed to the broadcast address are received by all devices on the network. The address with a host portion that is all zeroes is the same as the network address and cannot be used as an actual host address because this causes confusion with certain network commands and messages. This is why in a Class C network, with numbers 0 through 255 available, you lose 0 (binary 00000000) and 255 (binary 11111111) and can use only 254 addresses (1 thru 254).

GET 4 BEST SELLING AUDIOBOOKS FOR $1.95.
Download H.M.S. Unseen, Body forLife, The Brethren, and A Brief History of Time --a $95 value--for just $1.95. No Risk! No Commitment! Audible.com delivers audiobooks and more for playback on your desktop PC or MP3 player.

Click for more info about ads

In a Classless IP network the same general guidelines hold true for subnets. A subnet address of all ones is interpreted by Classless IP rules as an announcement to all subnets in that network. This also holds true for subnets that are all zeroes since hardware and software using Classless IP rules may become confused between the address of the subnet and the subnet address zero within the network.

When you use a subnet mask of 192, you have 4 possible subnets:

0       00000000
64     01000000
128   10000000
192   11000000

When using Classless IP rules, it is recommended that you do not use the first and last subnet, because the 0 network has a subnet ID that is all zeroes, and the 192 network, has a subnet ID that is all ones. It is possible however, to configure your subnet mask using all zeros or all ones, but if you are using equipment and software which use the Classless IP rules it may not work correctly, and there are certain circumstances in which you will get an unpredictable result.

If you were to use the 128 subnet mask, the only two subnets available would be all zeros and all ones, so under Classless IP rules this mask is not recommended. The 254 subnet mask would give only two available addresses, 0 and 1, which would both be excluded, so this mask is not used under either Classless or Classful rules. The recommended subnet mask for a Class C network using Classful IP rules, with the number of subnets available and the number of addresses within each subnet, are:

Class C
# bits
Mask Available
Subnets
Available
Addresses
2 255.255.255.192 2 62
3 255.255.255.224 6 30
4 255.255.255.240 14 14
5 255.255.255.248 30 6
6 255.255.255.252 62 2

A Class C network subnetted with the subnet mask 255.255.255.192 gives two recommended usable networks under Classful IP rules. The first has a network address of 64, an announce address of 127, and 62 available addresses in the range 65 thru 126. The second subnet has a network address of 128, an announce address of 191, and 62 available addresses in the range 129 thru 190. Other subnets are calculated in the same fashion.


Writing a security policy falls somewhere in between standing in line at the Department of Motor Vehicles and watching a Barney video for the eighteenth time. You don't want to do it, and you don't know anyone else in your company who would. Even worse, once you've written it, you have to somehow enforce it.
by Dan Blacharski, Network Magazine
More info


This document provides an executive introduction to IP Multicast. It presents the basic concept, highlights its benefits, and provides suggestions for getting started. Whether you're in a TCP/IP-based enterprise or are a vendor interested in implementing or taking advantage of IP Multicast within your product or service, this document will help you.
More info


A proxy server is an application running on a computer that sits between a Web browser and a Web server, and it usually resides on the same network as its user. You may like to think of the proxy server as the Random Access Memory (RAM) and the remote Web server as the hard disk in your PC. Needless to say, the speed of retrieving data from RAM is considerably faster than that from disk.
More info

iEntry.com | Archives | Sign-Up | Comments | Send this page to a Friend | Advertise


©2000 iEntry Inc. All Rights Reserved