1) What is IP address?
- IP
address is short for Internet Protocol (IP) address.
- IP
specifies the format of packets, also called datagrams, and the addressing
scheme.
- An IP address is an
identifier for a computer or device on a TCP/IP network. Networks using the
TCP/IPprotocol route messages based on the IP address of the destination
2) IP address is divided into network and host division. Draw an IP address format.
The format of an IP address is a 32-bit numeric address written as four numbers separated by periods. Each number can be zero to 255. For example, 1.160.10.240 could be an IP address.
Offsets
0 7
|
8 15
|
16 23
|
24 31
|
Class A
0 Network
|
Host
|
Class B
10 Network
|
Host
|
Class C
110 Network
|
Host
|
Class D
1110 Multicast address
|
Class E
11110 Reserved for
future use
|
3.
State True or False about IP address .Justify your answers.
a. IP address must be unique. (True)
-Each TCP/IP host is identified
by a logical IP address . The IP address is a network layer address and has no
dependence on the Data-Link layer address (such as a MAC address of a network
adapter). A unique IP address is required for each host and network component
that communicates using TCP/IP.
b. They are 48-bits numbers. (False)
-IP address is a 32-bits numeric address where written in dotted-decimal.
c. They are written and displayed as alphabet or dotted-decimal numbers. (True)
-IPv4 addresses is represented in dotted-decimal notation.
-For example, the quad-dotted
IP address 192.0.2.235 represents the 32-bit decimal number 3221226219, which
in hexadecimal format is 0xC00002EB. This may also be expressed in dotted hex
format as 0xC0.0x00.0x02.0xEB, or with octal byte values as
0300.0000.0002.0353.
-An IPv6 address is represented
as eight groups of four hexadecimal digits, each group representing 16 bits
(two octets). The groups are separated by colons (:).
An example of an IPv6 address (128-bits) is:
2001:0db8:85a3:0000:0000:8a2e:0370:7334
d. Each decimal number in a dotted-decimal IP address represents 8 bits of the IP address. (True)
-IPv4 addresses is separated by a dot for each 8 bits of the IP address
-8 bits of IP address in binary number is converted to dotted-decimal IP address.
4.
Change the following IP address from binary notation to dotted-decimal
notation.
a.
10000011 00001111 00001011 11101111
1(27)+1(21)+1(20)
. 1(23)+1(22)+1(21)+1(20) . 1(23)+1(21)+1(20)
. 1(27)+1(26)+1(25)+1(23)+1(22)+1(21)+1(20)
= 131.15.11.239
b. 11111001 10010011 11111011 00001111 1(27)+1(26)+1(25)+1(24)+1(23)+1(20)
. 1(27)+1(24)+1(21)+1(20) . 1(27)+1(26)+1(25)+1(24)+1(23)+1(21)+1(20)
. 1(23)+1(22)+1(21)+1(20)
= 249.147.251.15
5.
Change the following IP address from dotted decimal notation to binary
notation.
a. 110.66.45.78
=(64+32+8+4+2) . (64+2) . (32+8+4+1)
. (64+8+4+2)
=(26+25+23+22+21)
. (26+21) . (25+23+22+20)
. (26+23+22+21)
=01101110 01000010 00101101 01001110
b. 75.55.64.78
=(64+8+2+1) . (32+16+4+2+1) . (64) .
(64+8+4+2)
=(26+23+21+20)
. (25+24+22+21+20) . (26)
. (26+23+22+21)
=01001011 00110111 01000000 01001110
6.
IP address uses concept of classes.
a.
How many classes do IP address has? Explain each class.
IP
address has 5 classes, class A,B,C,D and E.
Class A
|
-
IP address format : 0nnnnnnn hhhhhhhh hhhhhhhh hhhhhhhh
-
First bit 0; 7 network
bits; 24 host bits
-
Initial byte: 0 – 127
-
126 Class As exist (0
and 127 are reserved)
-16,777,214 hosts on
each Class A
|
Class B
|
- IP address
format:10nnnnnn nnnnnnnn hhhhhhhh hhhhhhhh
- First two
bits 10; 14 network bits; 16 host bits
- Initial
byte: 128 - 191
- 16,384 Class
Bs exist
- 65,532 hosts
on each Class B
|
Class C
|
- IP address
format : 110nnnnn nnnnnnnn nnnnnnnn hhhhhhhh
- First three
bits 110; 21 network bits; 8 host bits
- Initial
byte: 192 - 223
- 2,097,152
Class Cs exist
- 254 hosts on
each Class C
|
Class D
|
-
IP address format :
1110mmmm mmmmmmmm mmmmmmmm mmmmmmmm
- First four
bits 1110; 28 multicast address bits
- Initial
byte: 224 - 247
- Class Ds are
multicast addresses
|
Class E
|
-
IP address format : 1111rrrr rrrrrrrr rrrrrrrr rrrrrrrr
- First four
bits 1111; 28 reserved address bits
- Initial
byte: 248 - 255
- Reserved for
experimental use
|
b.
Draw the format of each IP address class.
Class
A : 0nnnnnnn hhhhhhhh hhhhhhhh hhhhhhhh
Class B : 10nnnnnn
nnnnnnnn hhhhhhhh hhhhhhhh
Class C : 110nnnnn
nnnnnnnn nnnnnnnn hhhhhhhh
Class D : 1110mmmm
mmmmmmmm mmmmmmmm mmmmmmmm
Class E : 1111rrrr rrrrrrrr
rrrrrrrr rrrrrrrr
7.
Find the class of each address.
a.
00000001 00001011 00001011 111011111
By observing the first 4-bit of address
format, we can determine the address is class A.
b.
11110011 10011011 11111011 00001111
By observing the first 4-bit of address
format,we can determine the address is class E.
c.
227.12.14.87
Changing 227 to binary : 11100011
By observing the first 4-bit of address
format, it is class D.
d.
252.5.15.111
Changing 252 to binary : 11111100
By observing the first 4-bit of address
format, it is class E.
e.
134.11.78.56
Changing 134 to binary : 10000110
By observing the first 4-bit of address
format, it is class B.
8.
What is unicast address?
A unicast address is an address that
identifies a unique node on a network. Unicast addressing is available in IPv4
and IPv6 and typically refers to a single sender or a single receiver, although
it can be used in both sending and receiving. A unicast address packet is
transferred to a network node, which includes an interface address. The unicast
address is then inserted into the destination's packet header, which is sent to
the network device destination. Unicast is the most common form of IP
addressing.
9.
What is multicast address?
A multicast address, also called a group
address, is a single IP address for a set of hosts that are joined in a
multicasting group. An IP (Internet protocol) address is a unique numeric
identifier for a computer or other device on a TCP/IP (transmission control
protocol/Internet protocol) network. A multicast is a single stream of data
(i.e., a set of packets) that is transmitted simultaneously to selected
multiple hosts which have joined the multicast group. A host is a computer that
is connected to the network. Officially designated multicast addresses range
from 224.0.0.0 to 239.255.255.255. Some, termed well-known addresses, have been
designated for specific uses. For example, 224.0.0.1 is the address for
transmitting to all hosts in the multicasting group, and 224.0.0.2 is the
multicasting address for all routers on the subnet (i.e., logical division of a
network). OSPF (open shortest path first), an interior gateway protocol (IGP),
uses 224.0.0.5 and 224.0.0.6 to send OSPF routing information to all OSPF routers
on a network segment, and RIP (routing information protocol), another IGP, uses
224.0.0.9 to send routing information to all RIPv2 routers on a network
segment.
10.
What is reserved address?
Reserved address space is the group of
Internet Protocol (IP) addresses that are reserved and categorized only for use
with internal networks or intranets. It is a component of the IP address
scheme/classes reserved by the Internet Engineering Task Force (IETF) and
Internet Address and Naming Authority (IANA) for experimentation and internal
use.
Reserved address space is applicable to
Internet Protocol version 4 (IPv4) and Internet Protocol version 6 (IPv6) IP
addresses. IP addresses within the reserved address space are non-routable and
not meant for general addressing. These include IP addresses that range from
the top 3 IP classes, including Class a, b and c.
The reserved address space includes the
following range of IP addresses in the IPv4 addressing scheme:
~172.16.0.0
- 172.31.255.255 (prefix: 172.16/12)
~10.0.0.0
- 10.255.255.255 (prefix: 10/8)
~92.168.0.0
- 192.168.255.255 (prefix: 192.168/16)
11.
Given address 24.56.7.91, find the network address.
Converting 24.56.7.91 to binary : 00011000
00111000 00000111 01011011
By observing the first 4-bit of address
format, it is a class A address.
Class A address has format of 0nnnnnnn hhhhhhhh
hhhhhhhh hhhhhhhh
Hence, 24.56.7.91 has network address of 24.0.0.0
12.
Given the address 143.17.3.6, find the network address.
Converting 143.17.3.6 to binary : 10001111
00010001 00000011 00000110
By observing the first 4-bit of address
format, it is a class B address.
Class B address has a format of 10nnnnnn
nnnnnnnn hhhhhhhh hhhhhhhh
Hence, 143.17.3.6 has network address of
143.17.0.0
13.
What is address 127.0.0.1?
127.0.0.1 is the IP address of the local host,
which is the IP address of a computer.