1 Mod051 01
1 Mod051 01
An IP address consists of 32 bits. Presented as four decimal numbers separated by dots : dotted-decimal notation. Each number is 8 bits Eg 176. 15. 123. 11 IP address has two parts: Network ID Host ID
1
IP Addressing
Binary and decimal conversion Example:
176. 15. 123. 11 10110000. 00001111. 01111011. 00001011 Each number is represented by 8 binary bits.
Network ID : Assigned by Internet Network Information Center. Assigned by upper organization. Identifies the network to which a device is attached. Host ID : Assigned by a network administrator. Identifies the specific device on that network.
3
IP Addressing
Network Bits : Identifies network ID Identifies class of the IP address All network bits are 0: NOT allowed Host Bits : Identifies host ID All host bits are 0: reserved for network address All host bits are 1: reserved for broadcast address
4
IP Address Classes
Bit #
18
9..16
17....24
2532
1st Octet 2nd Octet 3rd Octet 4th Octet Class A Class B Class C
Different class addresses reserve different number of bits for the network and host portions of the address Provide the flexibility required to support different size networks
5
IP address classes
Class
A B C
st
2nd Octet
3rd Octet
4th Octet
Class C
IP address classes
Class A
B
C
16,384 (214 )
2,097,152 (221 )
65,534 (216 2)
254 (28 2)
For Class A network, 127. 0. 0. 0 is reserved for loop back testing and all network bits 0 is not allowed. Hence only 126 networks can be created
First bit is always 0. First octet is used to identify the network part of the address. Possible range of class A network address : 1.0.0.0 to 127.0.0.0. The remaining three octets identify the host portion of the address. Each class A network have up to 16,777,214 possible IP addresses.
First 2 bits is always 1 0. First two octets identify network part of the address. Possible range of class B network address : 128.0.0.0 to 191.255.0.0. The remaining two octets identify the host portion of the address. Each class B network have up to 65,534 possible IP addresses.
First 3 bits is always 1 1 0. First three octets to identify the network part of the address. Possible range of class C network address : 192.0.0.0 to 223.255.255.0. The last octet identify the host portion of the address. Each class C network have up to 254 possible IP addresses.
10
1. 0. 0. 0 126. 0. 0. 0
128. 0. 0. 0 191. 255. 0 . 0 192. 0. 0. 0 223. 255. 255. 0 224. 0. 0. 0 - < 240. 0. 0. 0 >= 240. 0. 0. 0
C D E
Multicast (send from 1 source to a few destination host) Internet Engineering Task Force (IETF) reserved it for research
11