Response time on RTS/CTS handshake

61 views
Skip to first unread message

Harry May

unread,
Feb 16, 2022, 3:55:49 PM2/16/22
to ns-3-users
I have been checking the response time of the Wifi RTS/CTS handshake using different network setups.  I have noticed the time is the same, approximately 16 microseconds, no matter what the distance is between the nodes.

I have several questions:
  - Is the response automatic without any calculations as to distance?
  - Is there a procedure to generate time according to distance?
  - I know the RTS/CTS is located in the WifiRemoteStationManager module but so far I haven't been able to find it. My thought is, can I modify the module to generate the time according to distance between nodes or am I trying to do the impossible?

Thanks in advance for your response!

Harry May

Soulimane Mammar

unread,
Feb 16, 2022, 5:59:04 PM2/16/22
to ns-3-users
Hi,
it seems that you have create a channel with YansWifiChannelHelper::Default().Create(), while this is ok for most scenarios, in your case you'll not see any significant difference since the propagation model used by default is ns3::ConstantSpeedPropagationDelayModel with a very big Propagation Speed  by default  ( 2.99792e+08 ) 
A change in distances of few meters will have almost no effect on the delay (and sometimes not even captured by the floating point arithmetic of the machine)
Regards 

Tom Henderson

unread,
Feb 23, 2022, 8:28:43 PM2/23/22
to ns-3-...@googlegroups.com, Harry May


On 2/16/22 10:55 AM, Harry May wrote:
> I have been checking the response time of the Wifi RTS/CTS handshake
> using different network setups.  I have noticed the time is the same,
> approximately 16 microseconds, no matter what the distance is between
> the nodes.
>
> I have several questions:
>   - Is the response automatic without any calculations as to distance?

As someone else responded, the propagation delay is negligible compared
to the SIFS delay. You are probably observing the SIFS delay, which
defaults to 16 us for 802.11n/ac Wi-Fi standards:

https://en.wikipedia.org/wiki/Short_Interframe_Space

See the second figure in this blog post for a graphical explanation:

https://blogs.arubanetworks.com/industries/understanding-802-11-medium-contention/

>   - Is there a procedure to generate time according to distance?

No, the delays in Wi-Fi are dominated by MAC timers and operation.

>   - I know the RTS/CTS is located in the WifiRemoteStationManager
> module but so far I haven't been able to find it. My thought is, can I
> modify the module to generate the time according to distance between
> nodes or am I trying to do the impossible?

If you search that code (WifiRemoteStationManager) for the strings 'Rts'
and 'Cts' you should be able to find it.

- Tom

Soulimane Mammar

unread,
Feb 25, 2022, 4:45:45 PM2/25/22
to ns-3-users
Hi,
RTS/CTS transactions are managed by MacLow
Regards

Tom Henderson

unread,
Feb 25, 2022, 7:33:08 PM2/25/22
to ns-3-...@googlegroups.com, Soulimane Mammar
Please keep in mind that the below link is from the ns-3.23 release and
the Wi-Fi module has been significantly refactored since that time.
MacLow class has been removed as of the ns-3.33 release.

The
> --
> Posting to this group should follow these guidelines
> https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
> <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
> <mailto:ns-3-users+...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ns-3-users/4842632b-8b79-4739-9a86-308c1f83952dn%40googlegroups.com
> <https://groups.google.com/d/msgid/ns-3-users/4842632b-8b79-4739-9a86-308c1f83952dn%40googlegroups.com?utm_medium=email&utm_source=footer>.

Soulimane Mammar

unread,
Feb 26, 2022, 3:15:00 AM2/26/22
to ns-3-users
Hi,
I have an ns-3.33 setup and the MacLow is still there, I checked 3.34 and indeed It has been removed.
When checking the depreciation list of 3.33, MacLow is not there!! 
I don't understand, I thought that before removing anything, it has to be marked as deprecated at least one version before
The whole Wifi module is driving me crazy, I'm trying to modify the behavior of the QoS adhoc MAC and It's been months that I'm trying to figure  out how things are related to each other
Nevertheless, Thanks for your update
Regards

Soulimane Mammar

unread,
Feb 26, 2022, 3:22:23 AM2/26/22
to ns-3-users
Hi, 
I think that RTS/CTS exchange is now (versions  3.34 and higher) handled by the FrameExchangeManager
Regards 

Reply all
Reply to author
Forward
0 new messages