Daniele Moro | 8088956 | 2021-09-08 10:09:26 +0200 | [diff] [blame] | 1 | class QOS: |
| 2 | |
| 3 | def __init__(self): |
| 4 | self.default = '' |
| 5 | |
| 6 | def CASE1(self, main): |
Daniele Moro | f811f9f | 2021-09-21 19:07:52 +0200 | [diff] [blame] | 7 | main.case("Leaf Edge with Mobile Traffic Classification") |
Daniele Moro | 8088956 | 2021-09-08 10:09:26 +0200 | [diff] [blame] | 8 | # Leaf-Edge-Mobile |
Carmelo Cascone | 848d1f5 | 2022-01-27 18:15:58 -0800 | [diff] [blame] | 9 | # Attach 2 UEs with different TC |
Daniele Moro | 8088956 | 2021-09-08 10:09:26 +0200 | [diff] [blame] | 10 | # Generate traffic with Trex for the two UEs |
| 11 | # --> no packet drop on RT flow, reasonable latency on RT flow |
| 12 | try: |
Daniele Moro | f811f9f | 2021-09-21 19:07:52 +0200 | [diff] [blame] | 13 | from tests.USECASE.SegmentRouting.QOS.dependencies.QOSTest import \ |
| 14 | QOSTest |
Daniele Moro | 8088956 | 2021-09-08 10:09:26 +0200 | [diff] [blame] | 15 | except ImportError as e: |
| 16 | main.log.error("Import not found. Exiting the test") |
| 17 | main.log.error(e) |
| 18 | main.cleanAndExit() |
Daniele Moro | f811f9f | 2021-09-21 19:07:52 +0200 | [diff] [blame] | 19 | test = QOSTest() |
| 20 | test.runTest( |
Daniele Moro | 9ba5cf0 | 2021-10-08 18:00:56 +0200 | [diff] [blame] | 21 | main, |
Daniele Moro | f811f9f | 2021-09-21 19:07:52 +0200 | [diff] [blame] | 22 | test_idx=1, |
| 23 | n_switches=int(main.params["TOPO"]["switchNum"]) |
Daniele Moro | 9ba5cf0 | 2021-10-08 18:00:56 +0200 | [diff] [blame] | 24 | ) |
| 25 | |
Daniele Moro | f811f9f | 2021-09-21 19:07:52 +0200 | [diff] [blame] | 26 | def CASE2(self, main): |
| 27 | main.case("Leaf Pair Link with Mobile Traffic Classification") |
| 28 | # Leaf Infra Mobile Traffic |
Carmelo Cascone | 848d1f5 | 2022-01-27 18:15:58 -0800 | [diff] [blame] | 29 | # Attach 2 UEs with different TC |
Daniele Moro | f811f9f | 2021-09-21 19:07:52 +0200 | [diff] [blame] | 30 | # Generate traffic with TRex from UEs towards PDN, generating congestion |
| 31 | # on the 40Gbps pair link |
| 32 | # --> no packet drop on RT flow, reasonable latency on RT flow |
| 33 | try: |
| 34 | from tests.USECASE.SegmentRouting.QOS.dependencies.QOSTest import \ |
| 35 | QOSTest |
| 36 | except ImportError as e: |
| 37 | main.log.error("Import not found. Exiting the test") |
| 38 | main.log.error(e) |
| 39 | main.cleanAndExit() |
| 40 | test = QOSTest() |
| 41 | test.runTest( |
| 42 | main, |
| 43 | test_idx=2, |
| 44 | n_switches=int(main.params["TOPO"]["switchNum"]) |
| 45 | ) |