Skip to content

Commit

Permalink
chore: updated max_link_latency
Browse files Browse the repository at this point in the history
  • Loading branch information
penglei0 committed Oct 22, 2024
1 parent 5d125b0 commit 5efbb64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Detailed information can be found in [Protocols and Tools](docs/protocols_and_to

## Limitations

- **Link latency**: The valid range is 0-100ms; 0ms means no additional latency is added. And the maximum latency of each link is 100ms.
- **Link latency**: The valid range is 0-110ms; 0ms means no additional latency is added. And the maximum latency of each link is 110ms.
The link latency is simulated by the Linux `tc` module, which requires sufficient queuing buffer capacity. If the queuing buffer is not large enough, `tc` module will drop packets under heavy traffic, affecting the accuracy of simulating the link loss rate.

- **Link bandwidth**: The valid range is 1-100Mbps. The maximum bandwidth for each link is limited because the processing rate of the BATS™ protocol binary in this repository is capped at 100Mbps. For rates higher than 100Mbps, a software license from n-hop is required.
2 changes: 1 addition & 1 deletion src/containernet/linear_topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from .topology import (ITopology, MatrixType, MatType2LinkAttr, LinkAttr)

max_link_bandwidth = 100
max_link_latency = 100
max_link_latency = 110


class LinearTopology(ITopology):
Expand Down

0 comments on commit 5efbb64

Please sign in to comment.