Finding DBA from given IP address
Direct Broadcast Address (DBA):
Two addresses are subtracted from the number of hosts in each network because one is used for Net Id and other one is used for DBA of the network.
In this article we are going to discuss how to find out DBA of a network if a IP address is given. Following is the procedure of finding it.
Attention reader! Don’t stop learning now. Practice GATE exam well before the actual exam with the subject-wise and overall quizzes available in GATE Test Series Course.
Learn all GATE CS concepts with Free Live Classes on our youtube channel.
- First we need to recognize the class of the IP address.
- Then according to the class of IP address, every class has a mask.
- There after we need to find the Net Id which is obtained by doing the bitwise AND of IP and mask.
- Then from obtained Net Id we can obtained the DBA of that network.
Above method can be illustrated by the following example:
Given, IP = 220.127.116.11
And, we have to find the DBA of the network.
- Step-1: It can be recognized that this IP belongs to Class C.
- Step-2: Mask of Class C = 255.255.255.0
- Step-3: In this step Net Id is calculated by doing bitwise AND of IP (18.104.22.168) and mask (255.255.255.0).
201 & 255 = 201 55 & 255 = 55 63 & 255 = 63 123 & 0 = 0 Hence, Net Id = 22.214.171.124
- Step-4: Since Net Id = 126.96.36.199
First host = 188.8.131.52 Second host = 184.108.40.206 . . . Last host = 220.127.116.11
And, DBA of network = 18.104.22.168