32 2진수 ip 주소를 8비트씩 4그룹으로 나눠 10진수로 표현 함
Binary : 10000000 00001011 00000011 00011111
Dotted decimal: 128.11.3.31
Q. Find the number of address in a range if the first address is 146.102.29.0 and the last address is 146.102.32.255
result : last address - first address = 0.0.3.255
Number of address =
Q. The first address in a range of addresses is 14.11.45.96 if the number of address in the range is 32, what is the last address?
Last address =
class A: (50 %) 0 ~ 127
class B: (25 %) 128 ~ 191
class C: (12.5 %) 192 ~ 223
0 ~ 127
0.0.0.0 ~ 127.0.0.0
128 blocks: 16,777,216 addresss in each block
128 ~ 191
16bit 를 봄
255 * 64: 16,384 blocks (65,536 address in each block)
192 ~ 223
32 255 255 = 2,097,152 blocks (256 address in each block)
Q. An address in a block is given as 73.22.17.25. Find the number of address in the block, the first address, and the last address.
Solution
73.22.17.25 is class A
address number is 1600만
First address: 앞에 8비트 살리고 다 0으로 만들어
Last address: 앞에 8비트도 살리고 뒤에 24비트 다 1로 만들어
Network address is the identifier of a network.
destination address 에서 network address 를 찾기 위해 사용
Network address: Destination address | Default Mask
ex) 141.14.00000000.00000000 → subnet 4
In classless addressing, the prefix defines the network and the suffix defines the host
In classful addressing some addresses were reserved for special purposes. The classless addressing scheme inherits some of these special addresses from classful addresssing
The 0.0.0.0 IP address is sometimes called a wildcard address, unspecified address, or INADDR_ANY
특정 패킷을 불특정 모두에게 보낼때 사용
: 포트포워딩을 자동으로 해주는 것이라고 생각