Improve tests

This commit is contained in:
Loic Guegan 2022-07-02 15:28:58 +02:00
parent c5fa6d856a
commit 9f17395651
2 changed files with 13 additions and 7 deletions

View file

@ -72,10 +72,16 @@ Tests folders names convention:
* hidden_node_2s1r [2/2]
- [X] Bandwidth is 0 between 2 nodes means unreachable
- [X] Interferences occur on the node in between (hidden node problem)
* mobility_eth0_bandwidth_1s1r
* mobility_eth0_bandwidth_2s1r
* mobility_eth0_latency_1s1r
* mobility_eth0_latency_2s1r
* mobility_wlan0_bandwidth_1s1r
* mobility_wlan0_latency_1s1r
* mobility_eth0_bandwidth_1s1r [1/1]
- [X] Every 0.5s bandwidth get multiply by 2
* mobility_eth0_bandwidth_2s1r [1/1]
- [X] Every 0.5s bandwidth get multiply by 2 with 2 senders sending to the same receiver (bandwidth divided by 2)
* mobility_eth0_latency_1s1r [1/1]
- [X] Every 0.5s latency increases by 0.5s
* mobility_eth0_latency_2s1r [1/1]
- [X] Every 0.5s latency increases by 0.5s with 2 senders sending to the same receiver (bandwidth divided by 2)
* mobility_wlan0_bandwidth_1s1r [1/1]
- [X] Every 0.5s bandwidth get multiply by 2
* mobility_wlan0_latency_1s1r [1/1]
- [X] Every 0.5s latency increases by 0.5s

View file

@ -14,7 +14,7 @@ import numpy as np
# - Bandwidth = BW
# - Latency = L
# |-------------------+------------+----------------+----------------------+--------------------------+-------------------------|
# | Simulated time(s) | Latency(s) | Bandwidth(bps) | Remaining data (bit) | Communcation duration(s) | Communcation ends at(s) |
# | Simulated time(s) | Latency(s) | Bandwidth(bps) | Remaining data (bit) | Communcation duration(s) | Communication ends at(s) |
# |-------------------+------------+----------------+----------------------+--------------------------+-------------------------|
# | 0 | 0 | 8 | 8 | 1 | 1 |
# | 0.5 | 0.5 | 8 | C/U*D = 4 | R/I * L + R/BW = 0.75 | 1.25 |