blob: 45414f1efa1443c53eed3eee5c2015935b6dc233 [file] [log] [blame]
Daniele Moro80889562021-09-08 10:09:26 +02001class QOS:
2
3 def __init__(self):
4 self.default = ''
5
6 def CASE1(self, main):
Daniele Morof811f9f2021-09-21 19:07:52 +02007 main.case("Leaf Edge with Mobile Traffic Classification")
Daniele Moro80889562021-09-08 10:09:26 +02008 # Leaf-Edge-Mobile
9 # Attach 2 UEs with different QFI
10 # Generate traffic with Trex for the two UEs
11 # --> no packet drop on RT flow, reasonable latency on RT flow
12 try:
Daniele Morof811f9f2021-09-21 19:07:52 +020013 from tests.USECASE.SegmentRouting.QOS.dependencies.QOSTest import \
14 QOSTest
Daniele Moro80889562021-09-08 10:09:26 +020015 except ImportError as e:
16 main.log.error("Import not found. Exiting the test")
17 main.log.error(e)
18 main.cleanAndExit()
Daniele Morof811f9f2021-09-21 19:07:52 +020019 test = QOSTest()
20 test.runTest(
Daniele Moro9ba5cf02021-10-08 18:00:56 +020021 main,
Daniele Morof811f9f2021-09-21 19:07:52 +020022 test_idx=1,
23 n_switches=int(main.params["TOPO"]["switchNum"])
Daniele Moro9ba5cf02021-10-08 18:00:56 +020024 )
25
Daniele Morof811f9f2021-09-21 19:07:52 +020026 def CASE2(self, main):
27 main.case("Leaf Pair Link with Mobile Traffic Classification")
28 # Leaf Infra Mobile Traffic
29 # Attach 2 UEs with different QFI
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 )