Skip to content

Commit

Permalink
limit packet loss / corruption to 3 consecutive packets in loss / cor…
Browse files Browse the repository at this point in the history
…ruption test (#405)
  • Loading branch information
larseggert authored Sep 12, 2024
1 parent b15dfbb commit a54d359
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions testcases.py
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ def timeout() -> int:
@staticmethod
def scenario() -> str:
"""Scenario for the ns3 simulator"""
return "drop-rate --delay=15ms --bandwidth=10Mbps --queue=25 --rate_to_server=30 --rate_to_client=30"
return "drop-rate --delay=15ms --bandwidth=10Mbps --queue=25 --rate_to_server=30 --rate_to_client=30 --burst_to_server=3 --burst_to_client=3"

def get_paths(self):
for _ in range(self._num_runs):
Expand Down Expand Up @@ -1036,7 +1036,7 @@ def desc():
@staticmethod
def scenario() -> str:
"""Scenario for the ns3 simulator"""
return "drop-rate --delay=15ms --bandwidth=10Mbps --queue=25 --rate_to_server=2 --rate_to_client=2"
return "drop-rate --delay=15ms --bandwidth=10Mbps --queue=25 --rate_to_server=2 --rate_to_client=2 --burst_to_server=3 --burst_to_client=3"

def get_paths(self):
# At a packet loss rate of 2% and a MTU of 1500 bytes, we can expect 27 dropped packets.
Expand Down Expand Up @@ -1069,7 +1069,7 @@ def desc():
@staticmethod
def scenario() -> str:
"""Scenario for the ns3 simulator"""
return "corrupt-rate --delay=15ms --bandwidth=10Mbps --queue=25 --rate_to_server=30 --rate_to_client=30"
return "corrupt-rate --delay=15ms --bandwidth=10Mbps --queue=25 --rate_to_server=30 --rate_to_client=30 --burst_to_server=3 --burst_to_client=3"


class TestCaseTransferCorruption(TestCaseTransferLoss):
Expand All @@ -1088,7 +1088,7 @@ def desc():
@staticmethod
def scenario() -> str:
"""Scenario for the ns3 simulator"""
return "corrupt-rate --delay=15ms --bandwidth=10Mbps --queue=25 --rate_to_server=2 --rate_to_client=2"
return "corrupt-rate --delay=15ms --bandwidth=10Mbps --queue=25 --rate_to_server=2 --rate_to_client=2 --burst_to_server=3 --burst_to_client=3"


class TestCaseECN(TestCaseHandshake):
Expand Down

0 comments on commit a54d359

Please sign in to comment.