-
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add tun based simulation test (IPv4 only) (#908)
- Loading branch information
1 parent
e891cb5
commit edcfdd6
Showing
18 changed files
with
840 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: IPv4/ICMP | ||
target: 10.0.0.107 | ||
protocol: Icmp | ||
icmp_identifier: 1 | ||
hops: | ||
- ttl: 1 | ||
resp: !SingleHost | ||
addr: 10.0.0.101 | ||
rtt_ms: 10 | ||
- ttl: 2 | ||
resp: !SingleHost | ||
addr: 10.0.0.102 | ||
rtt_ms: 20 | ||
- ttl: 3 | ||
resp: !SingleHost | ||
addr: 10.0.0.103 | ||
rtt_ms: 30 | ||
- ttl: 4 | ||
resp: !SingleHost | ||
addr: 10.0.0.104 | ||
rtt_ms: 40 | ||
- ttl: 5 | ||
resp: !SingleHost | ||
addr: 10.0.0.105 | ||
rtt_ms: 50 | ||
- ttl: 6 | ||
resp: !SingleHost | ||
addr: 10.0.0.106 | ||
rtt_ms: 60 | ||
- ttl: 7 | ||
resp: !SingleHost | ||
addr: 10.0.0.107 | ||
rtt_ms: 70 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: IPv4/ICMP with out of order responses | ||
target: 10.0.0.105 | ||
protocol: Icmp | ||
icmp_identifier: 4 | ||
hops: | ||
- ttl: 1 | ||
resp: !SingleHost | ||
addr: 10.0.0.101 | ||
rtt_ms: 20 | ||
- ttl: 2 | ||
resp: !SingleHost | ||
addr: 10.0.0.102 | ||
rtt_ms: 15 | ||
- ttl: 3 | ||
resp: !SingleHost | ||
addr: 10.0.0.103 | ||
rtt_ms: 10 | ||
- ttl: 4 | ||
resp: !SingleHost | ||
addr: 10.0.0.104 | ||
rtt_ms: 5 | ||
- ttl: 5 | ||
resp: !SingleHost | ||
addr: 10.0.0.105 | ||
rtt_ms: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: IPv4/TCP with a fixed dest port | ||
target: 10.0.0.103 | ||
protocol: Tcp | ||
port_direction: !FixedDest 80 | ||
hops: | ||
- ttl: 1 | ||
resp: !SingleHost | ||
addr: 10.0.0.101 | ||
rtt_ms: 10 | ||
- ttl: 2 | ||
resp: !SingleHost | ||
addr: 10.0.0.102 | ||
rtt_ms: 20 | ||
- ttl: 3 | ||
resp: !SingleHost | ||
addr: 10.0.0.103 | ||
rtt_ms: 20 |
18 changes: 18 additions & 0 deletions
18
tests/resources/simulation/ipv4_udp_classic_fixed_dest.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: IPv4/UDP classic with a fixed dest port | ||
target: 10.0.0.103 | ||
protocol: Udp | ||
port_direction: !FixedDest 33000 | ||
multipath_strategy: Classic | ||
hops: | ||
- ttl: 1 | ||
resp: !SingleHost | ||
addr: 10.0.0.101 | ||
rtt_ms: 10 | ||
- ttl: 2 | ||
resp: !SingleHost | ||
addr: 10.0.0.102 | ||
rtt_ms: 20 | ||
- ttl: 3 | ||
resp: !SingleHost | ||
addr: 10.0.0.103 | ||
rtt_ms: 20 |
18 changes: 18 additions & 0 deletions
18
tests/resources/simulation/ipv4_udp_classic_fixed_src.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: IPv4/UDP classic with a fixed src port | ||
target: 10.0.0.103 | ||
protocol: Udp | ||
port_direction: !FixedSrc 5000 | ||
multipath_strategy: Classic | ||
hops: | ||
- ttl: 1 | ||
resp: !SingleHost | ||
addr: 10.0.0.101 | ||
rtt_ms: 10 | ||
- ttl: 2 | ||
resp: !SingleHost | ||
addr: 10.0.0.102 | ||
rtt_ms: 20 | ||
- ttl: 3 | ||
resp: !SingleHost | ||
addr: 10.0.0.103 | ||
rtt_ms: 20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: IPv4/UDP Paris with a fixed src and dest port | ||
target: 10.0.0.103 | ||
protocol: Udp | ||
port_direction: !FixedBoth | ||
src: 5000 | ||
dest: 33000 | ||
multipath_strategy: Paris | ||
hops: | ||
- ttl: 1 | ||
resp: !SingleHost | ||
addr: 10.0.0.101 | ||
rtt_ms: 10 | ||
- ttl: 2 | ||
resp: !SingleHost | ||
addr: 10.0.0.102 | ||
rtt_ms: 20 | ||
- ttl: 3 | ||
resp: !SingleHost | ||
addr: 10.0.0.103 | ||
rtt_ms: 20 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#![cfg(feature = "sim-tests")] | ||
mod network; | ||
mod simulation; | ||
mod tests; | ||
mod tracer; | ||
mod tun_device; |
Oops, something went wrong.