tcp/ip Mystery

spatio

Junior Member
Feb 16, 2014
2
0
0
I have a text which indicates that a Class A network, using the 1st 8 bits for network id, can have 126 Networks, and 16,777,214 hosts. In Class A, the first bit is 0, which leaves all remaining combinations of the rest of the 7 bits for uniqe NetworkID's. 2 to the 7th power is 128 combinations, with decimal values 0-127. So why can you apparently only have 126 NetworksID's within a Class A Address. Also 2 to the 24th power is 16,777,216 for the possible combinations of the remaining 24 bits for unique host ID's. Again there seems to be a discrepency of 2. I can see where the decimal 0 might be eliminated, but then I am still left w/ a discrepency of 1. Can anyone shed some light on this mystery?

thanks
Spatio
 

drebo

Diamond Member
Feb 24, 2006
7,034
1
81
There's a rule in classful networking that says you cannot use the first available network nor the last available network. Just like you can't use the first host (network address) or the last host (broadcast address.)

However, classful networking doesn't exist, so it's all irrelevant.

I've been Cisco certified (CCNA and CCNP) for a decade now and never knew until recently that Class A addresses are those whose first bit is 0, Class B addresses first two bits are 10, class C addresses first two bits are 110, etc. Why didn't I know this? Because you don't need to. Not for Cisco certifications and not for practical applications.

The only people who need to concern themselves with classful networking are historians, and even that's debatable because classful networking was never actually implemented.
 
Last edited:

Gryz

Golden Member
Aug 28, 2010
1,551
204
106
because classful networking was never actually implemented.
For historical reasons: yes, it was implemented.

RIPv1 does class-full routing only. The RIP-packet format does not have any fields to describe the prefix-length (or network mask).

Later implementations would assume that all subnets in a class-full network would have the same prefix-length (and thus the same subnet-length and host-part length). A router would deduct the subnet-length from an example that is configured on its own interfaces.

BGPv1 - BGPv3 were class-full. Again, there were no fields in the update packets to describe prefix-length or subnet mask. BGPv4 changed all that, and introduced prefix-lengths. BGPv4 was deployed somewhere around 1993-1994 (in cisco's IOS 9.21). That's when CIDR really started.


But you are absolutely right of course. Anyone doing networking these days should forget about class-full routing. It confuses people a lot more than it helps them understand things.


Networks get assigned a prefix.
Prefixes are bit-strings 1-32 bits.
Hosts get assigned an IP address.
Addresses are exactly 32 bits.
Hosts connected to a network get assigned an IP address from the prefix of the network.

That's all you need to know.
 
Last edited:

imagoon

Diamond Member
Feb 19, 2003
5,199
0
0
Wiki isn't exactly authoritative and those who know IP and IP routing will never bother to look at it. That part the drebo mentioned really is meaning less today so why bother remembering it etc.

Now "Class a,b,c" generally refer to the subnet mask length and pretty loosely. Knowing the old 0.0.0.0 -> 127.255.255.255 thing doesn't really help any more. Knowing how to subnet all the range and the exceptions for each range helps more.
 
Last edited:

Qrilock

Member
Dec 20, 2004
101
2
81
Beyond the deprecated classfull rules for only having 126 networks in the 'Class A' range there are 2 special networks. 0.0.0.0/8 is reserved for special use as broadcast to current network and is only valid as a source address. 127.0.0.0/8 is reserved for special use as loopback/localhost addressing. Neither of these is usable as a subnet.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |