Sunday, January 30, 2011

Classful Ip Address Tutorial (Interactive Animation 4)

Q1. What is address classification?
Answer: Ip address is divided into network Id and host Id. It is classified into 5 classes: A, B, C, D, E. The department is based on network mask, a fixed length of leftmost bits assigned to network Id and host Id.

Q2. How to classify Ip address?
Answer: Ip address has 32 bits (4 bytes) and is often represented as 4 decimal numbers a.b.c.d, one amount per byte. Each number's value is in the middle of 0~255. They are classified as follows:
Class A: "a" is 0~127. Network Id is "a" (the leftmost digit). Host Id is "b.c.d " (right 3 digits)
Class B: "a" is 128~191. Network Id is "a.b" (the left 2 digits). Host Id is "c.d " (the right 2 digits)
Class C: "a" is 192~223. Network Id is "a.b.c" (the leftmost 3 digits). Host Id is "d " (the rightmost digit)
Class D, E: "a" is 224~255. Class D addresses are used for multicasting. Class E addresses are reserved for scientific research.

Android Tutorial

Q3. How many host Ids and network Ids for class A, B, C addresses?
Answer: The amount of host/network Ids is considered by the amount of bytes allocated for each class.
Class Host-Ids Network-Ids Usage

A: 16,777,216 256 Very large networks

B: 65,536 65,536 Large networks

C: 256 16,777,216 Small networks. Each contains no more than 256 computers.
Note: In each class, two host Ids are reserved and cannot be assigned to hosts: all 0 bits, all 1 bits.

Q4. How to rule classes when Ip addresses are presented in binary?
Answer: We can just look at the first byte (leftmost 3 bits)

Number of left- Leftmost byte a.b.c.d
Class most bits, value in binary (4-decimals)

A: 1 bit: 0 0xxxxxxx a is 0~127

B: 2 bit: 10 10xxxxxx a is 128~191

C: 3 bit: 110 110xxxxx a is 192~223
Note: The connection in the middle of classful address and routing table destination network is more clear when playing the companion animation.

Q5. How well does classful address work?
Answer: It worked well in the early stage of Internet when there were not too many computers linked to Internet. However, classifying Ip addresses by fixed length of bit does not scale well when the amount of networks increases.

For example, how to assign a network address for a group of 1000 computers? One class C network is not enough. If allocate a class B address space for this group, there are 64,536 host Ids unused. It's a big waste.

To solve this problem, computer scientists designed classless Ip address (or subnetting) to additional divide a classful address space into smaller networks. This way, a group of 1000 computers can fit into a network address that contains 1024 hosts.

To learn classless Ip address, see next tutorial: Ip subnetting.

This report is the Faq of an interactive animation. Concepts are easier to grasp when seeing visualizd topology, packets, and tables in this animation. It is listed under External links.

Classful Ip Address Tutorial (Interactive Animation 4)

No comments:

Post a Comment