본문 바로가기

Ryu's Tech

IP Address



1. What is IP ?
 IP = Network address + Host Address
Network Address는 Group의 의미라고 생각하면 되고, Host는 Group에 속한 멤버라고 생각하면된다.

또한, IP 주소는 유일해야 한다.

앞에서 말한 Network address의 크기를 구분짓기 위해서 이를 클래스로 구분하는데

This addressing scheme is illustrated in the following table:

This addressing scheme is illustrated in the following table:

Class Leading
Bits
Size of Network
Number
Bit field
Size of Rest
Bit field
Number
of Networks
Addresses
per Network
Start address End address
Class A     0     8     24     128 (27)     16,777,216 (224) 0.0.0.0 127.255.255.255
Class B     10     16     16     16,384 (214)     65,536 (216) 128.0.0.0 191.255.255.255
Class C     110     24     8     2,097,152 (221)     256 (28) 192.0.0.0 223.255.255.255
Class D (multicast)     1110     not defined     not defined     not defined     not defined 224.0.0.0 239.255.255.255
Class E (reserved)     1111     not defined     not defined     not defined     not defined 240.0.0.0 255.255.255.255

각 클래스를 구분짓는 가장 쉬운 방법은 Leading Bits를 보는 법이다. IP의 숫자를 암기하는 것 보다는 Leading Bits를 통한 이해가 더 중요하다.



  • n indicates a binary slot used for network ID.
  • H indicates a binary slot used for host ID.
  • X indicates a binary slot (without specified purpose)
 
Class A
  0.  0.  0.  0 = 00000000.00000000.00000000.00000000
127.255.255.255 = 01111111.11111111.11111111.11111111
                  0nnnnnnn.HHHHHHHH.HHHHHHHH.HHHHHHHH

Class B
128.  0.  0.  0 = 10000000.00000000.00000000.00000000
191.255.255.255 = 10111111.11111111.11111111.11111111
                  10nnnnnn.nnnnnnnn.HHHHHHHH.HHHHHHHH

Class C
192.  0.  0.  0 = 11000000.00000000.00000000.00000000
223.255.255.255 = 11011111.11111111.11111111.11111111
                  110nnnnn.nnnnnnnn.nnnnnnnn.HHHHHHHH

Class D
224.  0.  0.  0 = 11100000.00000000.00000000.00000000
239.255.255.255 = 11101111.11111111.11111111.11111111
                  1110XXXX.XXXXXXXX.XXXXXXXX.XXXXXXXX

Class E
240.  0.  0.  0 = 11110000.00000000.00000000.00000000
255.255.255.255 = 11111111.11111111.11111111.11111111
                  1111XXXX.XXXXXXXX.XXXXXXXX.XXXXXXXX