Skip to content

Commit

Permalink
Consistent use of EligibilityTimeGate and Ieee8021qAsynchronousShaper…
Browse files Browse the repository at this point in the history
….ned
  • Loading branch information
haug-den-lucas authored and adamgeorge309 committed Aug 5, 2024
1 parent f5d0b6b commit 41aca36
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ To enable asynchronous traffic shaping in a TSN switch, the following is require
- Set the type of the ``queue`` and ``transmissionSelectionAlgorithm`` submodules in ``eth[*].macLayer.queue``:

``*.switch.eth[*].macLayer.queue.queue[*].typename = "EligibilityTimeQueue"``
``*.switch.eth[*].macLayer.queue.transmissionSelectionAlgorithm[*].typename = "Ieee8021qAsynchronousShaper"``
``*.switch.eth[*].macLayer.queue.transmissionSelectionAlgorithm[*].typename = "EligibilityTimeGate"``

- We can override the number of traffic classes (8 by default) in the time-aware shaper modules (``eth[*].macLayer.queue``):

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import inet.protocolelement.shaper.EligibilityTimeGate;

//
// This module implements the IEEE 802.1Q asynchronous shaper.
// This module is an alias for the EligibilityTimeGate module.
//
module Ieee8021qAsynchronousShaper extends EligibilityTimeGate
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ sim-time-limit = 1s
*.switch.bridging.streamFilter.ingress.meter[1].committedBurstSize = 322B - 22B # 4B (802.1Q) + 14B (ETH MAC) + 4B (ETH FCS)

*.switch.eth[*].macLayer.queue.queue[5..6].typename = "EligibilityTimeQueue"
*.switch.eth[*].macLayer.queue.transmissionSelectionAlgorithm[5..6].typename = "Ieee8021qAsynchronousShaper"
*.switch.eth[*].macLayer.queue.transmissionSelectionAlgorithm[5..6].typename = "EligibilityTimeGate"

###############################
# Traffic Shaping Configuration
Expand All @@ -140,7 +140,7 @@ sim-time-limit = 1s
*.switch.eth[*].macLayer.queue.queue[*].packetCapacity = 4
*.switch.eth[*].macLayer.queue.queue[*].dropperClass = "inet::queueing::PacketAtCollectionBeginDropper"
*.switch.eth[*].macLayer.queue.queue[5..6].typename = "EligibilityTimeQueue"
*.switch.eth[*].macLayer.queue.transmissionSelectionAlgorithm[5..6].typename = "Ieee8021qAsynchronousShaper"
*.switch.eth[*].macLayer.queue.transmissionSelectionAlgorithm[5..6].typename = "EligibilityTimeGate"

##########################
# Visualizer Configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,9 @@ sim-time-limit = 0.1s

# asynchronous shaper for AVB classes
*.N*.eth[*].macLayer.queue.queue[6].typename = "EligibilityTimeQueue"
*.N*.eth[*].macLayer.queue.transmissionSelectionAlgorithm[6].typename = "Ieee8021qAsynchronousShaper"
*.N*.eth[*].macLayer.queue.transmissionSelectionAlgorithm[6].typename = "EligibilityTimeGate"
*.*.eth[*].macLayer.queue.queue[4..5].typename = "EligibilityTimeQueue"
*.*.eth[*].macLayer.queue.transmissionSelectionAlgorithm[4..5].typename = "Ieee8021qAsynchronousShaper"
*.*.eth[*].macLayer.queue.transmissionSelectionAlgorithm[4..5].typename = "EligibilityTimeGate"

##########################
# Visualizer Configuration
Expand Down

0 comments on commit 41aca36

Please sign in to comment.