blob: aa4d94f444974997a77821b847061e820efb029e [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
Carmelo Cascone848d1f52022-01-27 18:15:58 -08009 # Attach 2 UEs with different TC
Daniele Moro80889562021-09-08 10:09:26 +020010 # 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
Carmelo Cascone848d1f52022-01-27 18:15:58 -080029 # Attach 2 UEs with different TC
Daniele Morof811f9f2021-09-21 19:07:52 +020030 # 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 )