How to use a custom bridge module on the Standart Host??? #959
Replies: 3 comments 7 replies
-
I am also having same problem in a compound module I am trying to create. In my case I am adding a QTag module in between which is causing the issue. Somehow because of this intermediate module (maybe this bridge in the case here) the upper layer does not see the interface. If you have direct connection (from mp to down), then it should detect the interface. I checked documentation but not sure why this happens. @rhornig any pointers on why this is happening is very useful. |
Beta Was this translation helpful? Give feedback.
-
The error message is raised because the MessageDispatcher registration tables are not filled in with the necessary information. I think the root cause is something else though. The packet is supposed to go to the link layer protocol first, so it should have a DispatchProtocolReq attached. The MessageDispatcher at that level is expected to dispatch the packet based on the DispatchProtocolReq and not based on the InterfaceReq. Is there a DispatchProtocolReq attached to the packet when it arrives at the MessageDispatcher? If so, what is the designated protocol? |
Beta Was this translation helpful? Give feedback.
-
Yes, that's because your insertQtag submodule is not transparent to interface registration. See the IInterfaceRegistrationListener.h header file. So the registration calls from the network interfaces are not reported towards insertQtag from li, but they are not reported to nl from insertQtag. Unfortunately, the IEEE 802.11 MAC protocol encapsulation module resides in the network interface, so the packet must be delivered to the desired network interface first. You can try to implement that C++ interface and forward the interface registrations towards nl so that it can learn about the network interfaces and be able to dispatch packets towards them. |
Beta Was this translation helpful? Give feedback.
-
Hi to all, I have seen the examples on Tsn Networks for Asynchronous Shapers. In the Bridge layer, the module uses the stream identifier module to identify the flows by the destination port and the stream encoder module to assign PCP numbers according to the stream.
With that in mind, I want to use something similar to a Standart Host.
I use a very simple network which comprises two Standart Hosts and one Router. Below is my network setup:
Using as reference the Bridge layer from INET, I assemble a more simple module. I copied and pasted the parameters from the Bridge layer (maybe it is not necessary). Below is the code:
If I understand right I can use my version of the bridge layer from the .ini file just by using my model through the .typename command.
When I run the simulation the network initializes but when the first packet passes the IP module the MessageDispatcher gives me the following error.
Maybe I am missing something or I haven't configured properly my network. Does anyone know what I need to change??
Beta Was this translation helpful? Give feedback.
All reactions