A tutorial on IP network addressing

Jan 1, 2006 12:00 PM, By Brad Gilmer

             



Table 1. This table illustrates subnet masks. The number after the “/” in the CIDR notation indicates the total number of IP addresses available. Click here to see an enlarged diagram.

Understanding how computer network addresses work is fundamental to understanding how networked computers communicate. It is important to properly configure your networks, as well as to understand how computers on your network communicate with computers on the Internet. This month and next, we will look at network addressing in detail.



IP addresses

Internet Protocol (IP) addresses take the form xxx.xxx.xxx.xxx, where xxx is a number between zero and 255. There are public IP addresses and private IP addresses. Public IP addresses are assigned by the Internet Corporation for Assigned Names and Numbers (www.icann.org) and are routable over the Internet. Private IP addresses are not routable over the Internet: They are intended to be used within a facility.

In addition to IP addresses, computers use a subnet mask to determine which addresses are valid on a network. Subnets are critical to understanding how the Internet works, so we are going to spend the rest of this month's article on this topic.

Subnet masks defined

A subnet mask is a mask that is applied to an IP address to determine which portion of the address refers to the network and which portion refers to a host on the network. You might wonder why you would ever need to use a subnet mask. In fact, many times a subnet mask is not used. Most computers have their network masks set to 255.255.255.0, which effectively turns the subnet mask off. If this is the case, then what is the subnet mask for?

The primary use of a subnet mask is to apportion network addresses in an environment where these addresses are scarce. If you are working with an internal network where you can create all the addresses you need, then you may never worry about a subnet mask. On the other hand, if you ever work with a piece of equipment that is directly connected to the Internet, then you will almost always need to set the subnet mask appropriately.



Table 2. In binary numbers, the right-most digit represents ones, the next digit to the left represents twos, the next digit to the left represents fours, and so on. Click here to see an enlarged diagram.

Understanding subnet masks

It may be easier to understand subnet masks if we look at an example. Let's say that you are an engineer at a television station that has a T1 connection to the Internet. Your Internet Service Provider (ISP) tells you that you have six public IP addresses and that your CIDR address is 66.235.22.8/29.

If you are not familiar with CIDR, you may be a little confused. First, you should know that CIDR stands for Classless Inter-Domain Routing. CIDR resolved a problem with a shortage in Internet addresses, but more on CIDR next month. As you look over the information from the ISP, you may wonder what the /29 stands for. It means that there are eight IP addresses in this network.

By giving you the CIDR address of 66.235.22.8, the ISP is telling you that your network-addressing block starts at this address. The /29 specifies that there are a total of eight IP addresses in this block. As Table 1 shows, the number after the “/” indicates the total number of IP addresses available.

Why is it that Table 1 shows that you were issued eight addresses, but the ISP told you that you only have six? The reason is that the first and last addresses are reserved. Given the CIDR of 66.235.22.8/29, you would be free to assign the addresses 66.235.22.9 through 66.235.22.14 to host computers you want to connect directly to the Internet.



Table 3. Network addresses assigned by the ISP. Click here to see an enlarged diagram.

Note that you would set the subnet mask on these computers to 255.255.255.248. This would tell these computers that the only valid IP addresses on this network are from 66.235.22.8 to 66.235.22.15.

Why in the world does /29 mean that there are eight addresses available? IP addresses run from 0.0.0.0 through 255.255.255.255. But what is magic about 255? It turns out that this is an easy number to represent in binary. You may remember that in binary, the right most digit represents ones, the next digit to the left represents twos, the next digit to the left represents fours, and so on. (See Table 2.)

As you can see from the table, a binary value of “11111111,” or eight “ones” equals 128+64+32+16+8+4+2+1= 255. With eight bits, you can represent values from zero to 255 (a total of 256 unique values). A group of eight binary digits is sometimes referred to as an octet. Internet addresses are specified by four octets separated by periods. Note that 255.255.255.255 is equal to four octets, with each octet set to a value of all “ones” in binary. The reason 255 is a common number in Internet notation is that it is easy for computers to count from zero to “11111111” in binary and to make decisions based upon values that are all ones or zeros.




Want to use this article?
Click here for options!
Get Copyright Clearance

Share this article

blog comments powered by Disqus

 

Brad on Broadcast



Current Issue

A view from the top

January 2012

Some of broadcast's brightest reveal where the industry is headed.

Read More articles...


Recent Comments

Powered by Disqus

 


Submit your product for our NAB coverage.

Resources

Broadcast Engineering Newsletters Broadcast Engineering Essential Guides Broadcast Engineering White Papers Broadcast Engineering Videos Broadcast Engineering Podcasts Broadcast Engineering Industry Calendar

Industry Calendar

Broadcast Engineering Glossary of Terms

Glossary

Broadcast Engineering RSS feed

RSS

Interactive Media

Broadcast Engineering Webinars Broadcast Engineering Training Broadcast Engineering Blogs Broadcast Engineering Mobile Apps Broadcast Engineering on Facebook

Facebook

Broadcast Engineering JobZone

JobZone

Broadcast Engineering BE Roll

Blog

Featured Products

A Broadcaster's Guide To Camera & Lens Technology

A Broadcaster's Guide To Camera & Lens TechnologyThis eBook provides both new and veteran shooters an in-depth understanding of the technology that lies between the camera lens and the recording medium and how to maximize a camera's performance.

File Based Technology and Workflow

File Based Technology and WorkflowFile-based technologies have replaced video tape methods for a majority of production and broadcast operations. The worlds of AV and IT are coalescing to create new methods and workflows for media

Digital Television Fundamentals

Digital Television FundamentalsThis course, written by broadcast engineer Phil Cianci, provides a basic tutorial platform on the hows and whys of ATSC digital operation.

Video Compression, Editing and Displays

Video Compression, Editing and DisplaysVideo compression, editing and displays is an in-depth tutorial on MPEG compression technology, editing MPEG content and evaluating color video monitors written by long-time video expert, trainer and writer Steve Mullen, Ph. D.

 

 

Sound Off Podcasts

Erik Moreno, co-general manager of the Mobile Content Venture

MCV racks up successes on way to bright mobile DTV future

2012 will be the year of mobile DTV. That’s the view of Erik Moreno, who along with Salil Dalvi, senior VP for Mobile Platform Development at NBC Universal, is co-general manager of the Mobile Content Venture.

Danny Wilson

OTT year in review

Hear snippets of podcast interviews done throughout 2011 with Pat McDonough of The Nielsen Company, Glen Friedman of Ideas & Solutions!, Danny Wilson of Pixelmetrix and Greg Herman of Watch TV. Pictured is Danny Wilson, Pixelmetrix.

 

Broadcast Engineering Digital Reference Guide

Browse Back Issues

Back to Top