Addressing Technologies

by Jeremy Reis on Wednesday, July 09, 2008

Addressing Technologies: subnetting, classful vs classless, NAT, PAT, SNAT, public vs private, DHCP

In computer networks that use Internet Protocol, a subnet is a range of IP addresses in the assigned address space. For example, if you are assigned the 192.168. space, 192.168.1.1 through 192.168.1.255 could be one potential subnet you use. You will often hear “what is your subnet mask?” asked in regards to IP addressing – what you are being asked is used to denote what address space is being used.

Subnetting is a method by which network administrators can take a single network and split it into several smaller network portions.

A subnet mask is truly “masking” the network information – it becomes clearer if you look at it in binary. Look at this example from Wikipedia:

 

Dot-decimal Address

Binary

Full Network Address

192.168.5.10

11000000.10101000.00000101.00001010

Subnet Mask

255.255.255.0

11111111.11111111.11111111.00000000

Network Portion

192.168.5.0

11000000.10101000.00000101.00000000

Host Portion

0.0.0.10

00000000.00000000.00000000.00001010

In the example above, the 1s designate the part of the address being part of the network partition and the 0s designate the part of the address being the host address. A classful network is a network which has a subnet mask of 255.0.0.0, 255.255.0.0, or 255.255.255.0.

Subnet masks are often expressed in a shorter form known as Classless Inter-Domain Routing (CIDR) notation. This provides an address followed by a slash (“/”) and the number of 1 bits in the binary notation of the netmask. For example, 192.168.1.22/24 indicates an IP address where the first 24 bits are used as the network address (aka 255.255.255.0).

Unlike the Cisco exams, you are not required to subnet on the Network+ exam, but you do need to understand what a subnet is, what the subnet mask is, and why network administrators use subnetting.

IPv4 Address Class Ranges

Class A - 1.0.0.0 to 126.0.0.0
Class B - 128.0.0.0 to 191.255.0.0
Class C - 192.0.1.0 to 223.255.255.0

Class D (Multicast) - 224.0.0.0 to 239.255.255.255
Class E (Multicast) - 240.0.0.0 to 255.255.255.255

Network Address Translation

Addresses in the IPv4 space are running low, so network gear provides and network administrators are using NAT to use private addresses internally and map them to an Internet accessible address. Network address translation (NAT) maps one set of addresses onto another and often uses IP masquerading to map an entire range of addresses into a single address.

At your house, it is likely you have a home router between your PC and the Internet. If you have multiple PCs at your house, you use an internal network of addresses assigned by your router (e.g. 192.168.1.100, 192.168.1.101, 192.168.1.102) for your internal network and they are all map to single external IP address provided by your ISP (such as 205.23.57.102). Your network is using two techniques: NAT and IP (or network) masquerading.

Most companies now use the same technique as they are not provide a class of Internet routable IP addresses for internal use.

Port Address Translation

Using the same example with your home router, you can also setup certain ports to forward to an internal device on a different port. Using Port Address Translation (PAT), you could translate an http request on port 8080 (or 205.23.57.102:8080 as it is commonly notated), to an internal server at 192.168.1.100 on port 80 (traditional HTTP port, aka 192.168.1.100:80).

Using PAT, you could have multiple connections to the external IP address on different ports to use the same servers. For example, you could set port 1020, 1022, 1380 to all accept SMTP traffic and forward to email servers in the environment. Any device connecting would have to know to connect to those ports for SMTP, but it could be setup this way.

Secure NAT (SNAT)

Secure NAT (aka Stateful NAT) is a secure way of performing Network Address Translation. SNAT enables access control for protocols like FTP, ICMP, H.323, and PPTP.

Public versus Private

Several sets of addresses have been set aside for private, internal network use including:

10.0.0.0 – 10.255.255.255

172.16.0.0 – 172.31.255.255

192.168.0.0 – 192.168.255.255

All of the other addresses detailed in the IPv4 Address list above are publicly routable on the Internet.

Dynamic Host Configuration Protocol

Dynamic Host Configuration Protocol (DHCP) is a protocol used by network devices and clients to retrieve settings for network configuration (such as IP address, Subnet mask, Gateway, and more), reducing the need for manual configuration.

A DHCP server or device assigns addresses to ensure no duplicates exist on the network.

There are two modes for DHCP in a network: dynamic and automatic.

In dynamic mode, the DHCP server provides an address and a lease on that address to the client. The lease is a period of time set by an administrator that the client can “own” the IP address until it needs to return it to the pool of available addresses. If your network has a lot of mobile clients and you seem to run out of IP addresses frequently, you can shorten the lease period that a client “owns” the IP address so you have more frequent turnover of addresses.

Automatic mode is also referred to as DHCP reservation. DHCP reservation assigns an IP address to a MAC address so it receives the same IP each time it requests an IP. This mode is commonly used to set devices which do not change frequently, but you still want to centrally configure them. An example is to set all of your printers with a DHCP reservation (versus statically assigning IP addresses to each one manually).

There is an additional way for a client to receive an IP address (not using a DHCP server to deliver it) and that is manual configuration. This is not a recommended solution as it is labor intensive and not friendly to central administration of the network.

Page 6 of 10

Comments

 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
useful to me
Hai this free networking class is very usefull to me
99 out of 177 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
very good
very good site for learning
92 out of 165 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
very good
very good site for learning
95 out of 166 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
sanju
You are the original author of this comment and heretoafter license That Network to use this post in any form it sees fit, electronic or otherwise.
91 out of 159 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
Salamat
Maayo jud kaayo ni nga site! Dako gud kaayo ug ikatabang sa amoa.
84 out of 162 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
Sankajan
Ya gotsta balee dat yo!
87 out of 157 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
network tuttrioal
welcome
it
good
70 out of 137 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
Where is the next section?
I enjoyed your information and feel that it will go a long way towards helping me knock out the cert.  Was trying to continue where it was stated the next section but I cannot locate it.  Help?!!   Thanks.
71 out of 137 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
lmfao my activation code is burger
lmfao like omfg omfg omfg omfg omfg
64 out of 125 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
yo whats up
you can write in the box next to comment box lol
65 out of 124 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
LIKE OMFGosherz
i had the flush the feeling of me being the shit becasue i was leaving shit marks on like every where i sit
71 out of 130 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
Cool
Lots of useful information, I guess.

ELVIN ELVIN ELVIN
65 out of 122 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
Wow
I love this site

-Adam Hegab
67 out of 129 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
This Is a Wack Article
This WAAAAAAAAAAAAAAAAACK
64 out of 124 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
HEGAB BITCH
Hegab Hegab Hegab Hegab Hegab Hegab Hegab Hegab Hegab Hegab Hegab Hegab Hegab Hegab Hegab Hegab Hegab Hegab Hegab Hegab
65 out of 122 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
oj suck
oj miller spills orange jiuce like OMFG
69 out of 125 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
[][][][]HEGAB[][][][]
][][][][][][][] [][][[] [[ ]][][[]]][ [] ] ] [ ] ][ ] [][][][] [][][][][][]][][][][]][[]][][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]
63 out of 120 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
Killa
HA HA HA HA HA
65 out of 121 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
5 Star G
U know Me
65 out of 119 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
D Block
D-Bloooooooooooooooooooooooock
69 out of 123 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
fantastic
It helped me alot. Thank you so much. I searched for about a month to find this useful site.
55 out of 104 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
the next step
where is it how do i find it
42 out of 81 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
really good stuff
but could not find the other domains on n+ tutorial 2008.please help!!!!!!!!!!!111
44 out of 83 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
vERY GOOD
i FOUND A LOT OF THINGS THERE
44 out of 78 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
Very Good
Thanks for very good learning through for us.
27 out of 50 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
love
i love net working
14 out of 25 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
MOBILE ROKE STOCK TAKE OFF
Worldwide client base in the mobile communications space. See the details at
www.icoft.com/roke.html
any clarification at
icoft123@gmail.com

14 out of 24 people found this comment informative.
 Rate This Post:    Rate This Comment as Good Rate This Comment as Bad
MOBILE ROKE STOCK TAKE OFF
This company stock (ROKE) is set to take off. Worldwide client base in the mobile communications space. See the details at
www.icoft.com/roke.html
any clarification contact at
icoft123@gmail.com
13 out of 22 people found this comment informative.

Add a Comment to This Article

Anonymous (Please Login to Post With Your Account)

      
HTML not permitted, some code allowed in [brackets]:
[b]bold[/b] , [i]italicized[/i], [br] line break, other formatting...


Code Image - Please contact webmaster if you have problems seeing this image code Load New Code
Please enter the code above
 
Please submit your comment only once, some comments may be reviewed by moderators
That Network: Interactive Internet Publishing Network DefineThat.com: free technical definitions define wordsExamPractice.com: free certification news and practice exams   Explorestartups.com: find free business plans and business ideas   GiveThat.com: free gift ideas, birthday, Christmas, holidays  helpthat: got questions, we got answers   Jerm.com: entrepreneurship blog   learnthat.com: free software tutorials  mytutorials.com: collaborative write your own tutorials  Publishondemand.net: free publish on demand print on demand pod comparison   Romancetips.com: free romantic tips, advice, dating, date ideas, free romance   seekthat: free technical search engine   selfpublishthat: publish on demand   startupwatch: profiles of new companies   thatgear.com: gadget and electronic reviews   thatlead.com: sales leads and company profiles   tutorialguru.com: free tutorials