Skip to content

Extending the default Asynchronous Traffic Shaping scenario #951

Description

@arboulahdour

Greetings,

I have tried to expand upon the linear topology utilized in the Asynchronous Traffic Shaping demonstration showcased earlier. I incorporated an additional TSN Switch and implemented identical configurations as the initial switch.

`import inet.networks.base.TsnNetworkBase;
import inet.node.contract.IEthernetNetworkNode;
import inet.node.ethernet.EthernetLink;

network TsnAsynchronous extends TsnNetworkBase
{
parameters:
.eth[].bitrate = default(100Mbps);
@display("bgb=773,569");
submodules:
switch1: TsnSwitch {
@display("i=abstract/switch;p=444.64798,238.368");
}
switch2: TsnSwitch {
@display("i=abstract/switch;p=545.496,238.368");
}
client: TsnDevice {
parameters:
@display("p=338.06998,238.368;i=device/pc");
}
server: TsnDevice {
@display("p=644.052,238.368;i=device/server");
}

connections:
    client.ethg++ <--> EthernetLink <--> switch1.ethg++;
    switch1.ethg++ <--> EthernetLink <--> switch2.ethg++;
    switch2.ethg++ <--> EthernetLink <--> server.ethg++;

}`

Screenshot from 2024-02-13 13-21-45

However, upon running the simulation, I encountered the following error:

Tag 'inet::EligibilityTimeTag' is absent -- in module (inet::EligibilityTimeGate) TsnAsynchronous.switch2.eth[1].macLayer.queue.transmissionSelectionAlgorithm[0] (id=359), at t=0.00016906s, event #34

Screenshot from 2024-02-13 13-05-34

After incorporating (in omnetpp.ini) an additional encoding step in switch1 following the decoding process, the previously encountered error disappeared.

*.switch1.bridging.streamCoder.encoder.mapping = [{stream: "best effort", pcp: 0}, {stream: "voice", pcp: 4}]

Upon running the simulation, it was observed that packets were being forwarded correctly through the appropriate gates in each switch.

I would like to ensure the correctness of what I did, and how to deal with that error in scenarios involving multiple switches within the network.

Thank you in advance.

Originally posted by @arboulahdour in #946

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions