RTS/CTS threshold

524 views
Skip to first unread message

Yalda Edalat

unread,
Sep 5, 2017, 3:59:15 PM9/5/17
to ns-3-users
Hi,

I want to change the RTS/CTS threshold for every single packet. Is it possible? I have a text file with a column of the threshold. How can I feed it to the RTS/CTS threshold?

I really appreciate your help.

Thanks

Varun Reddy

unread,
Sep 6, 2017, 10:56:44 AM9/6/17
to ns-3-users
  //Enable RTS/CTS
 
Config::SetDefault ("ns3::WifiRemoteStationManager::RtsCtsThreshold", StringValue ("100"));

Yalda Edalat

unread,
Sep 6, 2017, 1:56:01 PM9/6/17
to ns-3-...@googlegroups.com
Thanks, but I want to have different threshold for different nodes.
Any idea?!!

--
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 a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/ww9kAcVFP5U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+unsubscribe@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

Varun Reddy

unread,
Sep 6, 2017, 3:19:55 PM9/6/17
to ns-3-users
For that I guess you'll have to meddle with the src/wifi/model/wifi-remote-station-manager.cc/h files.

Varun


On Wednesday, 6 September 2017 13:56:01 UTC-4, Yalda Edalat wrote:
Thanks, but I want to have different threshold for different nodes.
Any idea?!!
On Wed, Sep 6, 2017 at 7:56 AM, Varun Reddy <varunam...@gmail.com> wrote:
  //Enable RTS/CTS
 
Config::SetDefault ("ns3::WifiRemoteStationManager::RtsCtsThreshold", StringValue ("100"));



On Tuesday, 5 September 2017 15:59:15 UTC-4, Yalda Edalat wrote:
Hi,

I want to change the RTS/CTS threshold for every single packet. Is it possible? I have a text file with a column of the threshold. How can I feed it to the RTS/CTS threshold?

I really appreciate your help.

Thanks

--
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 a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/ww9kAcVFP5U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.

Francisco Eduardo Balart Sanchez

unread,
Sep 6, 2017, 6:11:58 PM9/6/17
to ns-3-users
Good day:

So, in your test you get to put a phy and mac in the node via wifihelper (example below)
devices = wifi.Install (wifiPhy, wifiMac, c);

Then you have created WifiNetDevices and therefore
Then for each node (there are several methods to get the node like get(numberofnode), etc)
you will need to grab their remote station manager with the function
GetRemoteStationManager


which returns m_stationManager
Which is a pointer so the code mike look something like this (depending if the wifi net device is a pointer or not you use . or ->)
YourWifiNetDeviceNode0->GetRemoteStationManager()-> SetRtsCtsThreshold(0)  to enable it always
YourWifiNetDeviceNode0->GetRemoteStationManager()-> SetRtsCtsThreshold(99999)  to disable it


As Varun mentions, not sure if there is only 1 remotestationmanager for all wifinodes or one per node, you will need to check that in the install from the wifi helper


Hope it helps a little bit

Regards
Eduardo

Rediet

unread,
Sep 11, 2017, 7:49:56 AM9/11/17
to ns-3-users
Hello,

In reply to Eduardo's interrogation, there is one WifiRemoteStationManager per station. However, the same threshold will be used for all destination stations.

Rediet

Yalda Edalat

unread,
Sep 12, 2017, 3:32:52 PM9/12/17
to ns-3-...@googlegroups.com
Is  "WifiRemoteStationManager::GetRtsCtsThreshold (Mac48Address address)" The correct place to set the threshold?

I want to change the rts/cts threshold for every single packet. Should I put my changes in "GetRtsCtsThreshold"?
I want to make sure that when a packet is going to be sent, it first get the threshold from this function. Am I right?

Thanks

--
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 a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/ww9kAcVFP5U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+unsubscribe@googlegroups.com.

Rediet

unread,
Sep 20, 2017, 3:08:48 AM9/20/17
to ns-3-users
Hello Yalda,

This method seems to be the place to modify it (or even NeedRts since you have additional information that are passed as arguments). However, I'm quite surprised by your method's signature; in 3.26 and dev it takes no arguments...

Rediet
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages