Tip

The importance of the subnet mask

From Understanding the Network, a Practical Guide to Internetworking, by Michael J. Martin, New Riders.

How important is a correct subnet mask in an IP address? If the subnet mask isn't correct, then all sorts of problems ensue. Configuring a correct IP subnet mask is vital for good network routing performance.

Imagine that a gateway is connected to three different IP networks. When the gateway receives an IP datagram, it looks at the network address portion of the datagram's destination address and then looks to see if it knows how to reach that network. It performs this lookup by comparing the datagram's IP address to a table of networks it knows how to reach. This table is known as a routing table.

The routing table is created using the IP addresses and masks of its connected interfaces. The router uses the mask to determine the network address of its connected interfaces and then places the network address in the table. If the destination address matches one of the networks to which it is connected, the datagram is forwarded through the corresponding gateway interface. If the datagram is not destined for one of the networks to which the router is connected, the packet is forwarded to another gateway, or discarded.

This same process is performed by the end-stations. When an end-station creates an IP datagram, it takes the destination address of the datagram, compares it to its own address, and then

    Requires Free Membership to View

uses its subnet mask to see if the network addresses match. The datagram is either forwarded on the destination or is sent to the gateway. The subnet mask is clearly important and will cause problems if not set correctly.

For more on Understanding the Network, a Practical Guide to Internetworking, go to http://www.newriders.com/books/title.cfm?id=653.

This was first published in September 2000

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.