xenanetworks / open-automation-rfc-test-suites

🚀 XOA test suite library for network performance benchmarking and more.
https://docs.xenanetworks.com/projects/xoa-core
Apache License 2.0
2 stars 1 forks source link

L2 Single direction flow #4

Closed RonDingDing closed 2 years ago

RonDingDing commented 2 years ago

Question: If you send the traffic with only L2(Ethernet), and your topology is "all ports connected to a switch", there is no way for the tx ports to get to know where to send to. So the tester will broadcast to all ports in the network.

Solution: According to Zohn, asking all the ports to send their mac address before the test will be an idea. (L2 learning)

leonardhyu commented 2 years ago

@RonDingDing, this is what we have already implemented. This is called L2 learning where all ports (strictly speaking all RX ports) send some packets to the switch so the switch can construct its MAC table. I believe @MaureenChan has already had this done, hasn't it?

RonDingDing commented 2 years ago

Still the server can't get a correct mac in the app.

leonardhyu commented 2 years ago

Not sure if I understand "still the server can't get a correct MAC in the app". To train a L2 DUT (switch) prior to the test with the L2 learning frames, the tester won't get any MAC address from the DUT. Instead what the tester does is simply sending some frames to the DUT to let the DUT learn what MAC addresses are present on its ports, so when the switch needs to forward a frame to a MAC address, it knows where to forward.