Fundamentals of Computer Networks IP Address PDF
Document Details
Uploaded by Deleted User
N.E.C. Jayasekera
Tags
Summary
This document provides a lecture on the fundamentals of computer networks, specifically focusing on IP addresses. It explains what an IP address is, its usage, different types (public and private), and formats (IPV4 and IPV6). The document includes exercises for readers to test their understanding of the material.
Full Transcript
IP Address By N.E.C. Jayasekera (B.Sc., M.B.A., M.Sc.) An IP address (Internet Protocol address) is a unique string of numbers assigned to every device that connects to the Internet or a local network. It serves as an identifier for devices, enabling them to communicat...
IP Address By N.E.C. Jayasekera (B.Sc., M.B.A., M.Sc.) An IP address (Internet Protocol address) is a unique string of numbers assigned to every device that connects to the Internet or a local network. It serves as an identifier for devices, enabling them to communicate and transfer data over a network. CST131-2 2 Assigned by your Internet Service Provider (ISP) and is unique across the Internet. It allows devices to connect to external networks. CST131-2 3 Used within a local network and is not accessible directly over the Internet. Class A: 10.0.0.0—10.255.255.255 Class B: 172.16.0.0—172.31.255.255 Class C: 192.168.0.0—192.168.255.255 Private addresses created by RFC 1918 are to be used for addressing internal networks CST131-2 4 32 Bits 232 different addresses. 4,294,967,296 Dotted Decimal Notation CST131-2 5 128 Bits 2128 different addresses. 2001:0db8:85a3:0000:0000:8a2e:0370:7334 CST131-2 6 CST131-2 7 Class A 1—126* Class B 128—191 Class C 192—223 Class D 224—239 Class E 240—255 *127 is reserved for loopback CST131-2 8 CST131-2 9 In IPv4 dotted decimal notation there should be exactly four (04) groups. No leading zeros (0). Should be written in decimal only or binary only. In one group the maximum value in decimal should be 255. CST131-2 10 State whether the following I Pv4 addresses are correct or not. If the IP address is incorrect state the reason. 192.248.248.270 192.248.100.010 192.248.48.48.58 192.48.01111111 00000011 CST131-2 11 State whether the following I Pv4 addresses are correct or not. If the IP address is incorrect state the reason. 192.248.248.270 – Incorrect. Can’t exceed 255 100.25.200.10 - Correct 192.248.100.010 – Incorrect. Can’t have leading zero ( 0 ) 192.248.48.48.58 - Incorrect. Can’t have five (05) groups. Only four groups. 192.48.01111111 00000011 - Incorrect. Can’t use both decimal and binary. CST131-2 12 Previous IP Address Given IP Next IP Address 0.0.0.0 10.10.100.20 100.101.200.255 255.255.255.255 CST131-2 13 Previous IP Address Given IP Next IP Address No IP Address Before 0.0.0.0 0.0.0.1 0.0.0.0 10.10.100.19 10.10.100.20 10.10.100.21 100.101.200.254 100.101.200.255 100.101.201.0 255.255.255.254 255.255.255.255 No IP Address CST131-2 14 Find the class of each address: a. 00000001 00001011 00001011 11101111 b. 11000001 10000011 00011011 11111111 c. 10100111 11011011 10001011 01101111 d. 11110011 10011011 11111011 00001111 e. 227.12.14.87 f.193.14.56.22 g.14.23.120.8 h. 252.5.15.111 i.134.11.78.56 CST131-2 15 a. The first bit is 0This is a class A address. b. The first 2 bits are 1; the third bit is 0. This is a class C address. c. The first bit is 1; the second bit is 0. This is a class B address. d. The first 4 bits are 1s. This is a class E address. e. The first byte is 227 (between 224 and 239); the class is D. f. The first byte is 193 (between 192 and 223); the class is C. g. The first byte is 14 (between 0 and 126); the class is A. h. The first byte is 252 (between 240 and 255); the class is E. i. The first byte is 134 (between 128 and 191); the class is B. CST131-2 16 CST131-2 17 CST131-2 18 CST131-2 19 The network address is the beginning address of each block. It can be found by applying the default mask to any of the addresses in the block (including itself). It retains the netid of the block and sets the hostid to zero. CST131-2 20 Note that we must not apply the default mask of one class to an address belonging to another class. CST131-2 21 1st 2nd 3rd 4th Class Octet Octet Octet Octet A N H H H B N N H H C N N N H CST131-2 22 10.20.50.60 IP address was given to you. Find the Network address (Starting IP address) of the Network which the given IP address belongs. CST131-2 23 192.200.64.192 IP address was given to you. Find the Network address (Starting IP address) of the Network which the given IP address belongs. CST131-2 24 180.120.150.160/ 18 IP address was given to you. Find the Network address (Starting IP address) of the Network which the given IP address belongs. CST131-2 25 150.150.0.0 Network address was given to you. a) What is the First IP address of the above- mentioned Network? b) What is the last IP address of the mentioned Network? c) How many IP addresses are there in the above network? d) How many maximum number of devices/ Hosts that you can connect to the above network? CST131-2 26 200.192.200.100 IP address was given to you. a) Find the Network address (Starting IP address) of the Network which the given IP address belongs. b) What is the First IP address of the mentioned Network? c) What is the last IP address of the mentioned Network? d) How many IP addresses are there in the above network? e) How many maximum number of devices that you can connect to the above network? CST131-2 27