Lab Lecture 1 IP - Addressing I
Lab Lecture 1 IP - Addressing I
• Classification of Address
• Conversion from binary to decimal and vice-versa
• Range of Address
How to identify the recipient?
How to identify the recipient? (contd…)
Receiver Is single address is
enough for both
LAN
and collection of
networks?
Sender
Classification of Address
Address
Physical Address
Logical Address
Port Address
Physical Address
CA1885-0CB72C
CA-18-85-0C-B7-2C
Physical address is not suitable for internetwork as different networks can have
different address formats
A universal addressing system is needed in which each host can be identified
uniquely, regardless of the underlying physical network
Can be changed depending on the network
No two publicly addressed and visible hosts on the Internet can have the same logical
address (widely known as Internet Protocol (IP) address.
32-bits length
Port Address
Used to identify a process (Email, FTP)
16-bits length
Internet Assigned Number
Authority (IANA) assigns
Port address
Binary-to-Decimal Conversion
Digit x8 x7 x6 x5 x4 x3 x2 x1
Position of digit, i 8 7 6 5 4 3 2 1
Contribution of the digit, 28-1 27-1 26-1 25-1 24-1 23-1 22-1 21-1
2i-1
Decimal contribution 128 64 32 16 8 4 2 1
Binary-to-Decimal Conversion (contd…)
128+16+8+1=153
(10011001)2=(153)10
Binary-to-Decimal Conversion (contd…)
0 1 0 0 1 1 0 1
Digits 0 1 0 0 1 1 0 1
Position 8 7 6 5 4 3 2 1
Contribution 64 8 4 1
64+8+4+1=77
(01001101)2=(77)10
Decimal-to-Binary Conversion
(172)10 =( )2 (172)10 =( 10101100)2
Decimal-to-Binary Conversion (contd…)
(20)10 =( )2 (20)10 =( 00010100)2
IP Address
IP=Internet Protocol Address space
Unique and universal Total number of address used by a protocol
32-bit binary address For b bits, the address space is 2b
Divided into four octate
Octets are separated by dot (.) sign
10000000000010110000001100011111
10000000 00001011 00000011 00011111
Octet
IP Address10000000.00001011.00000011.00011111
Doted Decimal of IP address 128.11.3.31
IP Address (contd…)
Example
Example
IP Address (contd…)
Example
Ranges of Address
Example
Solution
Example
Solution
References
2. CCNA Routing and Switching, T. Lammle, John Wily & Sons, Second
Edition, 2016, USA.
2. CCNA Routing and Switching, T. Lammle, John Wily & Sons, Second
Edition, 2016, USA.