Hello,
I am simulating a Wifi (802.11b) network using ns-3.16. When I have more than 2 clients for a single AP the throughput becomes very unevenly distributed between the clients seen in the flow monitor results below.
Flow ID: 1 Src Addr 10.1.1.1 Dst Addr 10.1.1.2
Tx Packets = 19967
Rx Packets = 19175
Throughput: 1035.15 Kbps
Flow ID: 2 Src Addr 10.1.1.1 Dst Addr 10.1.1.3
Tx Packets = 19967
Rx Packets = 8039
Throughput: 434.005 Kbps
Flow ID: 3 Src Addr 10.1.1.1 Dst Addr 10.1.1.4
Tx Packets = 19967
Rx Packets = 6363
Throughput: 344.616 Kbps
Flow ID: 4 Src Addr 10.1.1.1 Dst Addr 10.1.1.5
Tx Packets = 19967
Rx Packets = 6339
Throughput: 343.308 Kbps
Flow ID: 5 Src Addr 10.1.1.1 Dst Addr 10.1.1.6
Tx Packets = 19967
Rx Packets = 6317
Throughput: 342.109 Kbps
I had the data rate set to 2mbps downlink for each client which means I have 5 onoffapplications set up on my AP. WiFi should split up the time between the 5 clients so they are equally provided the same throughput. If I only have 2 clients the algorithm performs as expected and divides the throughput equally among the clients seen below. Not sure if there is a problem with how I set up the network or if there is a setting I need to change to increase the fairness of the scheduling.
Flow ID: 1 Src Addr 10.1.1.1 Dst Addr 10.1.1.2
Tx Packets = 19967
Rx Packets = 19967
Throughput: 1082.26 Kbps
Flow ID: 2 Src Addr 10.1.1.1 Dst Addr 10.1.1.3
Tx Packets = 19967
Rx Packets = 19967
Throughput: 1082.25 Kbps
I have attached a test code to try and reproduce the problem. If you set “Morethan2clients” equal to true, the number of clients = 5, otherwise it is 2.
Thanks
UE id RxBits Time
0 3915776 2
1 3555328 2
2 3907584 2
3 4390912 2
4 3538944 2
0 20291584 3
1 696320 3
2 688128 3
3 696320 3
4 712704 3
0 23085056 4
1 8192 4
2 8192 4
3 0 4
4 8192 4
0 23076864 5
1 16384 5
2 24576 5
3 16384 5
4 0 5