Q1. What is network address?
Reply: We can see community and host addresses in two approaches:
one) Community-ID and Host-ID
An IP deal with is made of two parts, the left element is network ID, the right element is host ID.
For illustration, in one hundred.three.four.five, if one hundred is a community ID, then 3.four.five is a host ID. If 100.three is network ID, then four.five is a host ID.
two) Network-address and host-handle. Let us appear at two examples:
IP-tackle Community-ID Host-ID Network-address Host-tackle Mask
one hundred.four.5.six/8 100 four.five.six one hundred… one hundred.four.5.6 /8
one hundred fifty.1.2.three/sixteen a hundred and fifty.1 2.three a hundred and fifty.1.. 150.one.two.3 /sixteen
Observe: Network mask is offered as /m the place m is a two-digit decimal variety among 8~31.
Observe: IP, network, and host addresses are usually introduced with masks.
Q2. What is mask?
Answer. IP employs community mask to crack up a 32-little bit IP-handle into network-ID and host-ID. Community-handle is manufactured of network-ID bits on the remaining and bits on the proper.
For instance, for one hundred fifty.1.two.3/sixteen, sixteen is the community mask, 150.1 is network-ID, one hundred fifty.1../sixteen is network-deal with, two.three is host-ID, a hundred and fifty.1.two.3/16 is host-handle. Community-deal with is utilized by routers to forward packets. Host handle is used to distinguish hosts in the identical network.
Q3. Why community addresses?
Reply: When numbers are as well a lot of, we use hierarchical composition to manage them. For illustration, telephone amount are structured as.
For instance, 086.021.1234.5678 is a amount in China, Shanghais. The voice message is switched by nation code, metropolis code, and prefix. Structured telephone quantities are considerably simpler to change than flat ten-digit mobile phone numbers.
Internet faces a comparable circumstance. There are practically four.two billion addresses (IP has 32 bits. or two^32 individual addresses.) Routers use routing tables to foreword packets. Certainly, it’s significantly less complicated for router to handle structured addresses than four billion flat types.
IP’s solution is to use network-addresses to forward packets, not personal ones. Community mask breaks an handle into a community-ID and a host-ID. Routing tables use network addresses, not IP addresses.
– one hundred…/8 network has 16,777,216 addresses. In a routing table, (100…/eight, up coming hop interface) suggests: ahead packets with the same location community to the exact same following hop interface.
– a hundred and fifty.one../16 network has 65,536 addresses. In a routing table, (one hundred fifty.one../sixteen, following hop interface) will take treatment of forwarding 65,536 individual addresses in 150.1../16 network.
– 150.1../16 network has sixty five,536 IP addresses. In a routing table, (150.one../16, following hop interface) normally takes treatment of forwarding 65,536 person handle in 150.1../sixteen network.
– 222.111.forty four./24 has 256 IP addresses. In a routing desk, (222.111.forty four./24, subsequent hop interface) forwards 256 IP addresses in 222.111.44. network to the subsequent hop interface.
This autumn. How existing mask in decimal?
sell ip address . Present mask the same way as IP tackle. For case in point.
/eight is introduced as 255….
/16 is presented as 255.255…
/24 is offered as 255.255.255.
Q5. Why mask length is multiple of 8 but?
Solution: There are two variety of IP addressing schemes: classful and classless. What we have talked so considerably is classful. Classless IP handle can use mask of any size. See following tutorials for details.
This article is the FAQ of an interactive animation. You can play this animation outlined under External links.