Bugzilla – Full Text Bug Listing |
Summary: | beacons transmitted concurrently | ||
---|---|---|---|
Product: | ns-3 | Reporter: | Jonathan Ling <jonathan.ling77> |
Component: | wifi | Assignee: | Daniel L. <nikkipui> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ns-bugs, ruben, tomh |
Priority: | P5 | ||
Version: | ns-3.17 | ||
Hardware: | All | ||
OS: | All | ||
Attachments: |
A patch to random the time for the first beacon
patch using attributes |
Description
Jonathan Ling
2013-06-28 10:32:30 EDT
Created attachment 1665 [details]
A patch to random the time for the first beacon
I think the attached patch will fix this issue.
It's not really a bug but something that is normal in the simulation where all APs start up at the same time (t=0) so all beacons will be sent out at the same time (t=0, t=beaconInterval, t=2*beaconInterval, ...).
The attached patch random the time for the first beacon uniformly between 1 and beaconInterval.
(I'm not sure which one is better between [1, beaconInterval] and [0, beaconInterval - 1] since 0 and beaconInterval are the same thing.)
Created attachment 1668 [details]
patch using attributes
I'd like to instead suggest a variation that allows one to configure the random variable through the attribute system.
I tested Tom's patch with a few APs and everything is working as expected. I think it is ready to go. Fixed changeset: 10206:ecd136bcb899 |