Skip to content

Commit 5b66e54

Browse files
committed
showcases: fix: fixed comments in time-aware shaper showcase
1 parent 0fe8334 commit 5b66e54

File tree

1 file changed

+4
-2
lines changed
  • showcases/tsn/trafficshaping/timeawareshaper

1 file changed

+4
-2
lines changed

showcases/tsn/trafficshaping/timeawareshaper/omnetpp.ini

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ description = "Traffic shaping using time-aware shapers"
1616
*.client.app[*].io.destAddress = "server"
1717
*.client.app[0].io.destPort = 1000
1818
*.client.app[1].io.destPort = 1001
19-
*.client.app[*].source.packetLength = 1000B - 54B # 42B = 8B (UDP) + 20B (IP) + 14B (ETH MAC) + 4B (ETH FCS) + 8B (ETH PHY)
19+
*.client.app[*].source.packetLength = 1000B - 54B # 54B = 8B (UDP) + 20B (IP) + 14B (ETH MAC) + 4B (ETH FCS) + 8B (ETH PHY)
2020
*.client.app[0].source.productionInterval = exponential(200us) # ~40Mbps
2121
*.client.app[1].source.productionInterval = exponential(400us) # ~20Mbps
2222

@@ -40,11 +40,13 @@ description = "Traffic shaping using time-aware shapers"
4040
# enable egress traffic shaping
4141
*.switch.hasEgressTrafficShaping = true
4242

43+
**.displayDuration = 20ms
44+
4345
# time-aware traffic shaping
4446
*.switch.eth[*].macLayer.queue.numTrafficClasses = 2
4547
*.switch.eth[*].macLayer.queue.*[0].display-name = "best effort"
4648
*.switch.eth[*].macLayer.queue.*[1].display-name = "video"
4749
*.switch.eth[*].macLayer.queue.transmissionGate[0].offset = 0ms
48-
*.switch.eth[*].macLayer.queue.transmissionGate[0].durations = [4ms, 6ms] # period is 10 # length of periods
50+
*.switch.eth[*].macLayer.queue.transmissionGate[0].durations = [4ms, 6ms] # period is 10
4951
*.switch.eth[*].macLayer.queue.transmissionGate[1].offset = 6ms
5052
*.switch.eth[*].macLayer.queue.transmissionGate[1].durations = [2ms, 8ms]

0 commit comments

Comments
 (0)