Skip to content
Related Articles

Related Articles

Improve Article

Alternate method to find DBA from given IP address

  • Last Updated : 30 Mar, 2020

One more drawback in the previous method finding DBA from IP address is that if we have to find only DBA of the network and not Net Id of the network but by using that method DBA of the network can’t be obtained without finding Net Id of the network.

In this approach we will use shortcut approach for finding the both NetId and DBA. Using this approach we can find the DBA of the network without finding the Net Id of the network. On thing common is both approach is that we need to find which class IP address belongs.

Every IP address has :-

1. Net bits
2. Host bits  
  • Approach for finding Net ID – For a Net Id, host bits are all zeros.
  • Approach for finding DBA – For a DBA, host bits are all ones.

Example-1:
IP = 144.89.69.120
This belongs to class B.
In class B, 16 bits are net bits and 16 bits are host bits.
Hence,

Net Id = 144.89.0.0
DBA = 144.89.255.255  

Example-2:
IP = 62.89.99.123
This belongs to class A.
In class A, 8 bits are net bits and 24 bits are host bits.
Hence,

Net Id = 62.0.0.0
DBA = 62.255.255.255   

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.

My Personal Notes arrow_drop_up
Recommended Articles
Page :