Question - TSN: Accessing the input port number of the Switch #43
Replies: 3 comments
-
Hello, Is there any way that what you want to implement in the output queue can be implemented in the relay engine instead? If there is no other way you could attach a custom control information to the frame in the switching module (which knows the input port) and than extract that control info again at the egress queue. Regards |
Beta Was this translation helpful? Give feedback.
-
Hello Timo, Thanks for the information. I have further questions, I don't think that there is an easy way of accessing the input port number at the egress port, since the arrival gate will change when the message is passed from module to module.
Is there any way that what you want to implement in the output queue can be implemented in the relay engine instead?
If there is no other way you could attach a custom control information to the frame in the switching module (which knows the input port) and than extract that control info again at the egress queue.
Whether it is possible to access the mac table using getsubmodule from the egress port? Any other way that you can suggest to access the input port number from the PHY port module. Best Regards, |
Beta Was this translation helpful? Give feedback.
-
Hi Kamalkannan,
No I mean the actual relay unit which decides where to forward packets (called beswitch in your image). I thought it might be possible to do decisions based on the ingress port before pushing the packet to an egress port. If not the ControlInformation is the only good way I can think of.
Yes it is possible to access the macTable module through a combination of (multiple) getParentModule() calls depending on how deep your Module is in the PHY Port and then calling getSubmodule("macTable "). Regards |
Beta Was this translation helpful? Give feedback.
-
Hi,
How to identify the input port number of a TSN flow in the egress port?
In the MACRelayTable there is a function to get the inputport number which is used to update the MAC address table.
int inputport = frame->getArrivalGate()->getIndex();
I want to do something similar to determine the input port number of a flow in the egress port queues (the 8 egress queues)
I want to access the port number from the PHY port module.
Beta Was this translation helpful? Give feedback.
All reactions