You are on page 1of 5

ASSIGNMENT -5

1. Explain IPv4 with different types of addressing.

IPV4 ADDRESSES

The identifier used in the IP layer of the TCP/IP protocol suite to identify the connection of each device
to the Internet is called the Internet address or IP address. An IPv4 address is a 32-bit address that
uniquely and universally defines the connection of a host or a router to the Internet. The IP address is
the address of the connection, not the host or the router, because if the device is moved to another
network, the IP address may be changed. IPv4 addresses are unique in the sense that each address
defines one, and only one, connection to the Internet. If a device has two connections to the Internet,
via two networks, it has two IPv4 addresses. IPv4 addresses are universal in the sense that the
addressing system must be accepted by any host that wants to be connected to the Internet.

Address Space

A protocol like IPv4 that defines addresses has an address space. An address space is the total number
of addresses used by the protocol. If a protocol uses b bits to define an address, the address space is 2b
because each bit can have two different values (0 or 1). IPv4 uses 32-bit addresses, which means that
the address space is 232 or 4,294,967,296 (more than four billion). If there were no restrictions, more
than 4 billion devices could be connected to the Internet.

There are three common notations to show an IPv4 address:

binary notation (base 2),dotted-decimal notation (base 256), and hexadecimal notation (base 16).
In binary notation, an IPv4 address is displayed as 32 bits. To make the address more readable, one or
more spaces are usually inserted between each octet (8 bits). Each octet is often referred to as a byte.

In dotted-decimal notation , IPV4 is usually written in decimal form with a decimal point (dot) separating
the bytes. Each number is between 0 and 255 since number is octet (8 bits).

In Hexa decimal notation ,Each hexadecimal digit is equivalent to four bits. This means that a 32-bit
address has 8 hexadecimal digits

2. Explain all the types of  Classfull addressing and specific features of it.

Classful Addressing :

Fixed length addressing to accomodate both large and small networks with 3 different fields ie
n=8,16,24. Whole address space divided in to 5 classes (A, B ,C , D & E)

Class A: Network length =8 bits , first bit =0 ,27 = 128 networks.

Class B: Network length =16 bits , first two bit =10 ,214 = 16,384 networks.

Class C: Network length =24 bits , first three bit =110 ,221 = 2,097,152 networks.

Class D: Network length is not defined , not divided as prefix and suffix , used for multicast address.

Class E:Network length is not defined , not divided as prefix and suffix , used for reserve for future use..
3. Differentiate between Classfull and Classless addressing

Classfull Addressing:-

1) In Classfull addressing it divides IP address into network ID and host ID

for example Class A :- has first octet as network ID and last three octet as Host ID

Class B :- has first two as network ID and last three two as Host ID

Class C :- has first three as network ID and last  octet as Host ID

2) Here class A,B and C are used where as class D is used for multicasting and class D for research

3) Disadvantage is that it limit the number of network that can be provided to the network

4) Example RIP(Routing Information Protocol) protocol uses classfull addressing

5) Class A  :\8 as (1 octet is network ID) , Class B :-\16 , Class C : \24

6) Same Subnet mask is used in complete network

Classless Addressing :-

1) It allows us to use variable length subnet mask so also known as VLSM (Variable Length Subnet
Mask)

2) Different subnet mask used in same network.

3) In this there is no boundary on host id and network id

4) Classless Addressing also known as CIDR(classless interdomain routing)

5) There is no default subnet mask in classless routing.

4. Explain DHCP , DHCP message format and operation of it .


DHCP message format:
5. Explain Forwarding of IP packets in Network layer .
FORWARDING OF IP PACKETS:
When IP is used as a connectionless protocol, forwarding is based on the destination address of the IP
datagram; when the IP is used as a connection-oriented protocol, forwarding is based on the label
attached to an IP datagram.

Forwarding Based on Destination Address:


In this case, forwarding requires a host or a router to have a forwarding table. When a host has a packet
to send or when a router has received a packet to be forwarded, it looks at this table to find the next
hop to deliver the packet to. In classless addressing, the whole address space is one entity; there are no
classes. This means that forwarding requires one row of information for each block involved. The table
needs to be searched based on the network address . Unfortunately, the destination address in the
packet gives no clue about the network address. To solve the problem, we need to include the mask (/n)
in the table. In other words, a classless forwarding table needs to include four pieces of information: the
mask, the network address, the interface number, and the IP address of the next router.

You might also like