Implementation of DBR

122 views
Skip to first unread message

Sreerang R

unread,
Jun 29, 2023, 1:11:01 AM6/29/23
to ns-3-users
Can anyone help me with implementation of DBR routing protocol.?

Charles Pandian

unread,
Jun 29, 2023, 3:47:48 PM6/29/23
to ns-3-...@googlegroups.com
If you mean Debth Based Routing (DBR)  Protocol, then there is no need to implement DBR in ns-3. It is already implemented and available with aquasim-ng extension. 

Check the official site of aquasim-ng for the installation procedure
or
You may get an abstract idea about the installation of aquasim-ng on ns-3.38 in this link.

But you should understand that the default examples available in aquasim-ng will only create flat 2D topology like the below one.

image.png

So, to run DBR you need to create a 3D topology like the below one :

image.png

Then only it will be meaningful 😊 to run a "Debth based routing protocol" -DBR

You may get some idea of setting DBR as UWSN routing protocol and setting a suitable mobility model from this link.

As shown in that example, the DBR routing protocol is set at the line :

            asHelper.SetRouting("ns3::AquaSimDBR");

A 3D mobility has been set at the lines :

           mobility.SetMobilityModel ("ns3::RandomWalk3dMobilityModel",
           "Mode", StringValue ("Time"),
           "Time", StringValue ("10s"),
           "Speed", StringValue ("ns3::ConstantRandomVariable[Constant=25.0]"),
           "Bounds", BoxValue (Box (0.0, 300.0, 0.0, 300.0, 0.0, 200.0)));


Explore all the examples provided in aqua-sim-ng. You will get the idea of using it.

Charles Pandian,


On Thu, Jun 29, 2023 at 10:41 AM Sreerang R <sreera...@gmail.com> wrote:
Can anyone help me with implementation of DBR routing protocol.?

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/d7c7409d-6e23-43c4-a0ee-d19bb7853a18n%40googlegroups.com.

igs...@gmail.com

unread,
Jun 29, 2023, 3:55:02 PM6/29/23
to ns-3-users
Sorry for a silly typo Error 😊 : 
      Debth   
it is 
       Depth

Sreerang R

unread,
Jul 14, 2023, 8:02:18 AM7/14/23
to ns-3-users
How can I print routing metrics for DBR protocol?
Reply all
Reply to author
Forward
0 new messages