[ndnSIM] How I can cheek the bandwidth
aa at CS.UCLA.EDU
Wed Nov 11 02:03:14 PST 2015
> On Nov 1, 2015, at 9:00 PM, Kerrouche Abdelali <kerrouche.abdelali at yahoo.fr> wrote:
> Dears ALL,
> How can I access the link Bandwidth to manage it in ndnSIM?
> In fact, I want know where I can find the Values of Bandwidth that I give to link by the following instruction:
> Config::SetDefault("ns3::PointToPointNetDevice::DataRate", StringValue("1Mbps"));
It is very easy to set the default DataRate on PointToPointNetDevice, but not as simple to get actual value. Though, it is possible.
First. You need to get hold of the NetDevice you're interested in (this is the most complex part, as it depends on your scenario). After you have this, getting the value is easy:
Ptr<NetDevice> nd = ...;
// now value contains what you need
For more info check: https://www.nsnam.org/doxygen/classns3_1_1_data_rate_value.html and https://www.nsnam.org/doxygen/classns3_1_1_data_rate.html
> How I can Access to this values to check it;
> Best regards
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
More information about the ndnSIM