AIW Numerical
AIW Numerical
Note: If usable address asked, then first usable address is 192.168.1.1 and last usable address is
192.168.1.254
Note: If usable address asked, then first usable address is 172.16.10.1 and last usable address is
172.16.10.62
192.168.1.0/26
192.168.1.64/26
192.168.1.128/26
192.168.1.192/26
Answer:
As we can see, the total IP address range of all four networks is:
Question 2:
First, separate the entries by next hop. You have to summarize them separately:
129.10.0.0 255.255.0.0 R2
129.10.64.0 255.255.192.0 R3
129.10.63.0 255.255.255.0 R4
129.10.63.0 255.255.255.0 R4
10000001.00001010.01110000.00000000 = 129.10.112.0
10000001.00001010.01010000.00000000 = 129.10.80.0
Now find all the identical digits, starting from the left. In this case, the digits are all the same up to the
18th position. So your new mask is /18. Now, using either address and the /18 mask, find the network
address by ANDing the address and the mask:
10000001.00001010.01110000.00000000 = 129.10.112.0
11111111.11111111.11000000.00000000 = /18 (255.255.192.0)
-------------------------------------
10000001.00001010.01000000.00000000 = 129.10.64.0 /18
So the best summarization of the first two routes is 129.10.64.0/18.
Question 3:
Abbreviation Rules:
E.g.: FE80:CD00:0000:0CDE:1257:0000:211E:729C
FE80:CD00:0:CDE:1257:0:211E:729C
Rule 2: If two of more blocks contain consecutive zeroes, omit them all and replace with double colon sign
::
2001:0000:3238:DFE1:63:0000:0000:FEFB
can be written as
2001:0000:3238:DFE1:63::FEFB
The IPv6 addressing architecture allows you use the two-colon (::) notation to represent contiguous 16-
bit fields of zeros.
Q. Use the IPv6 abbreviation rules to give the following address in its shortest form:
FE80:CD00:0000:0000:0257:0000:211E:729C
a) With IP Options
1. Assume a link layer protocol, called Newnet with MTU 1600 bytes. A TCP segment with 7540 bytes of
user data is to be sent over Newnet link. There are 20 bytes IP options field involved. How many IP
fragments are transmitted and what is the offset and IP payload length of each fragment?
Given,
Payload
MTU: 1600 bytes 7540 bytes
i.e. (40 bytes header and 1560 bytes payload) can be placed in a single IP packet at max.
Data bytes should be in multiple of 8. 1560 is already in multiple of 8. So, 1560 bytes data payload
can be placed in each IP packet.
b) Without IP Options
2. Assume a link layer protocol, called Newnet with MTU 1400 bytes. A TCP segment with 6000 bytes of
user data is to be sent over Newnet link. There are no IP options field involved. How many IP fragments
are transmitted and what is the offset and IP payload length of each fragment?
Given,
Payload
MTU: 1400 bytes 6000 bytes
Data bytes should be in multiple of 8. 1380 is not divisible by 8. So, we can transmit 1376 bytes in each
packet.
128 bits
e.g. 2001:2A1:CAD:0000::/64
Problem 1:
i.e.
2000:ACAD:1234:6600::/64
2000:ACAD:1234:6601::/64
2000:ACAD:1234:6602::/64
2000:ACAD:1234:6603::/64
i.e.
2000:ACAD:1234:66FC::/64
2000:ACAD:1234:66FD::/64
2000:ACAD:1234:66FE::/64
2000:ACAD:1234:66FF::/64
Last:
1111 =>F
1110 =>E
1101 =>D
1100 =>C
1011 =>B
1010 =>A
1000 =>8
0111 =>7
0110 =>6
0101 =>5
0100 =>4
0011 =>3
0010 =>2
0001 =>1
0000 =>0
Problem 2:
Solution:
So,
ABCD:0000:0000:0000::/49
ABCD:0000:0000:8000::/49
ABCD:0000:0001:0000::/49
ABCD:0000:0001:8000::/49
ABCD:0000:0002:0000::/49
ABCD:0000:0002:8000::/49
Solution:
64-60=4
2001:ACAD:1234:1230::/60
Problem 4:
Solution:
IPv4 Subnetting:
Question 1: VLSM
The administrator has four different departments with different number of hosts. Sales department has
100 computers, Purchase department has 50 computers, Accounts has 25 computers and Management
has 5 computers. How should the administrator perform the subnetting?
Solution:
Sales 100
Purchase 50
Accounts 25
Management 5
The complete range of the address in the above provided network is:
192.168.1.0 to 192.168.1.255
Divide the given network consisting 256 hosts into 2 networks with 128 hosts each:
192.168.1.0-192.168.1.127 (192.168.1.0/25)
192.168.1.128-192.168.1.255 (192.168.1.128/25)
The largest network requirement is of 100 hosts for Sales department. For this, we need to assign
subnetwork with 128 hosts.
Dividing this subnetwork, two subnetworks with 64 hosts each are formed.
Our second network requirement is of 50 hosts for Purchase department. We need to assign
subnetwork consisting of 64 hosts.
Dividing this subnetwork, two subnetworks with 32 hosts each are formed.
Dividing this subnetwork, two subnetworks with 16 hosts each are formed.
Our fourth network requirement is of 5 hosts for Management department. We need to assign
subnetwork consisting of 8 hosts, which is sufficient.
So, again dividing the subnetwork 192.168.1.240/28, two subnetworks with 8 hosts each are formed.
Our fourth network requirement is of 5 hosts for Management department. We need to assign
subnetwork consisting of 8 hosts.
Question 2: FLSM
. If you are given a network 210.25.23.0 with the subnet mask 255.255.255.0, assign the networks to
four different departments with 50 hosts each.
Ans: The complete range of the address in the above provided network is:
210.25.23.0 to 210.25.23.255
Each subnetwork requires 50 usable hosts. So, we need to assign n/w with 64 hosts each to the four
departments.
Since we are using FLSM, the divided networks will be of same size. The given network consists of 256
hosts which needs to be divided into four subnetworks with 64 hosts each.
First of all, divide the given network range into four equal parts.
Now, as per the requirement, there are four networks required and we can assign the above networks
to each of the four departments.
Question 3: FLSM
Suppose you are network administrator with provided network 172.16.0.0/24. You need to manage
the entire n/w by dividing into subnetworks so that each of the Development, Sales, Reception, HR
and Production. How would you do so?
Ans: Provided network: 172.16.0.0/24. Here, /24 indicates 256 hosts are contained in the given network.
There are five departments to address the networks with. So, we divide the given network into 8
networks. 256/8 = 32
Each of the 8 subnetworks will contain 32 hosts each. The divided networks will be:
Now, we can assign 5 of the above 8 subnetworks to the departments of our requirement.
Question 4: VLSM
If you are assigned an IP address 92.16.1.0/24 and plans to deploy CIDR. Here are some requirements
which you have to fulfill for Subnet A= 120 hosts, Subnet B=60 hosts, Subnet C=30 hosts, Subnet D= 10
hosts, Subnet E= 5. You are also required to calculate subnet mask, range, netid, broadcast id for each
subnet.
Subnet A: 120
Subnet B: 60
Subnet C: 30
Subnet D: 10
Subnet E: 5
The complete range of the address in the above provided network is:
92.16.1.0 to 92.16.1.255
The largest network requirement is of 120 hosts for Subnet A. For this, we need to assign subnetwork
with 128 hosts.
Divide the given network consisting 256 hosts into 2 networks with 128 hosts each:
92.16.1.0-92.16.1.127 (92.16.1.0/25)
92.16.1.128-92.16.1.255 (92.16.1.128/25)
Our second network requirement is of 60 hosts for Subnet B. We need to assign subnetwork consisting
of 64 hosts.
Dividing this subnetwork, two subnetworks with 64 hosts each are formed.
Dividing this subnetwork, two subnetworks with 32 hosts each are formed.
Our fourth network requirement is of 10 hosts for Subnet D. We need to assign subnetwork consisting of
16 hosts.
Dividing this subnetwork, two subnetworks with 16 hosts each are formed.
Our fifth network requirement is of 5 hosts for Subnet E. We need to assign subnetwork consisting of 8
hosts.
So, again dividing the subnetwork 92.16.1.240/28, two subnetworks with 8 hosts each are formed.
We can Assign either of the subnetwork to Subnet E. Let us assign 92.16.1.240/29 to Subnet E.
Note:
Question 5: VLSM
Requirement:
Divide 192.168.1.0/24,
Assign 192.168.1.0/25 to B.
Remaining: 192.168.1.128/25
Divide 192.168.1.128/25,
Assign 192.168.1.128/26 to C.
Remaining: 192.168.1.192/26
Divide 192.168.1.192/26,
Assign 192.168.1.192/27 to D
Unused: 192.168.1.224/27
For mapping IP Multicast addresses to Ethernet Addresses, the lower 23 bits of a Class D IP Address are
copied to one of the IANA (Internet Assigned Numbers Authority) Designated Ethernet Addresses.
Ethernet addresses reserved for this purpose are in the range of 01:00:53:00:00:00 through
01:00:5e:7f:ff:ff. Ethernet Addresses have a 48 bit address field (Source and Destination 48 bits each one).
Expressed in hexadecimal numbering, the first 24 bits of an Ethernet multicast address are 01:00:5e, this
indicates the frame as multicast, the next bit in the Ethernet address is always 0, leaving 23 bit for the
multicast address.
Because IP Multicast groups are 28 bits (1110XXXX XXXXXXXX XXXXXXXX XXXXXXXX) long and there are
only 23 bits available the mapping cannot be one to one, so only 23 low order bits of the multicast group
ID are mapped onto the Ethernet address. The 5 higher order bit remain in the multicast group are
ignored.
An example:
Having the following IP Multicast Address 224.192.16.1 convert it to the appropriate Ethernet MAC
Representation.
11100000.11000000.00010000.00000001
Multicast Ethernet
01:00:5e
00000001.00000000.01011110.0XXXXXXX.XXXXXXXX.XXXXXXXX
11100000.11000000.00010000.00000001
Final=
01 00 5 E 4 0 1 0 0 1
01:00:5E:40:10:01
Question:
From the following information, convert MAC address into IPv6 address using EUI-64.
64 bits 64 bits
Network Portion Host portion (interface ID)
To do so, first split the given MAC address into 2 parts (24 bits each)
10:0B:0D 10:0A:20
10:0B:0D:FF:FE:10:0A:20
Regroup the above for IPv6 format, 4 digits are placed in a group forming 4 groups with 16 bits each.
100B:0DFF:FE10:0A20
Now, flip the 7th bit starting from first position by expanding into binary.
Flipping 0 to 1,
i.e. 120B:0DFF:FE10:0A20
20B4:2001:1A34:ABBA:120B:0DFF:FE10:0A20
Now, we need to find the link local IPv6 address. Link local addresses are the addresses that are used for
IPv6 local area networks.
Note that, link local IPv6 addresses always start from FE80:: (i.e. network portion)
We need to append the 64 bit interface ID calculated before to the end of FE80::
So,
This is the link local IPv6 address which consists consecutive blocks of zeros represented by ::