Skip to content

[fdb] Extend the FDB scripts to cover more MACs#813

Merged
liat-grozovik merged 3 commits intosonic-net:masterfrom
wangxin:fdb-pr
Mar 18, 2019
Merged

[fdb] Extend the FDB scripts to cover more MACs#813
liat-grozovik merged 3 commits intosonic-net:masterfrom
wangxin:fdb-pr

Conversation

@wangxin
Copy link
Copy Markdown
Collaborator

@wangxin wangxin commented Feb 20, 2019

Description of PR

Summary:
Fixes # (issue)
The existing FDB scripts only send one packet on each PTF interface to populate MAC table on DUT. This update extends the FDB scripts to send 10 more packets from each PTF interface to DUT to populate MAC table with more entries. Each packet has an unique dummy MAC address. Then send packets from each PTF ports to remaining ports to verify that L2 forwarding works for these MAC addresses.

Type of change

  • [] Bug fix
  • [] Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Approach

How did you do it?

  1. Send 10 more packets from each PTF port to DUT switch to populate MAC table. Each packet has an unique MAC address.
  2. Send packets from each PTF ports to remaining ports to verify that L2 forwarding is working as expected.

How did you verify/test it?

Tested on Mellanox platform using the latest master image.

Any platform specific information?

None

Supported testbed topology if it's a new test case?

Supported topologies are not changed: [t0, t0-16, t0-64, t0-64-32, t0-116]

Documentation

Xin Wang added 3 commits February 20, 2019 17:15
* Extend the FDB test case to cover more MAC entries. Populate L2
MAC table with 10 dummy MAC entries for each switch port during setup.
Then send packet to each of the dummy MAC from other ports to verify
L2 forwarding.

* Remove the irrelevant ARP responding related code from ansible
and the PTF script.

* Clear FDB table before and after test.

Signed-off-by: Xin Wang <xinw@mellanox.com>
* Change name of method check_route to more meaningful
  test_l2_forwarding
* Remove unused import

Signed-off-by: Xin Wang <xinw@mellanox.com>
* Count the number of MAC entries in output of "show mac".
  Compare with the expected number of entries, including dummy MACs
  and all MACs

Signed-off-by: Xin Wang <xinw@mellanox.com>
@liat-grozovik
Copy link
Copy Markdown
Collaborator

@wangxin can you please elaborate what is the max scale of the FDB after the change? whether there are additional flows which are validated by the new test

@wangxin
Copy link
Copy Markdown
Collaborator Author

wangxin commented Feb 26, 2019

On t0 topology:

  • Before the change, the script creates 24 entreis in FDB on DUT, one entry for one port, totally 24 ports.
  • After this change, the script creates another 10 entries for each port. That's 240 additional entries. Totally 240 + 24 = 264 entries. The new test also validates flows of all the new entries.

@qiluo-msft qiluo-msft requested a review from stcheng March 13, 2019 22:48
self.setUpFdb()

self.log("Start arp_responder")
self.shell(["supervisorctl", "start", "arp_responder"])
Copy link
Copy Markdown
Contributor

@qiluo-msft qiluo-msft Mar 13, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

arp_responder [](start = 47, length = 13)

why the supervisorctl is removed? #Closed

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is to start arp_responder on the PTF container. Arp_responder is to reply to ARP request. It was not used in this FDB testing at all. So I removed irrelevant code.

@liat-grozovik liat-grozovik merged commit 729feed into sonic-net:master Mar 18, 2019
@wangxin wangxin deleted the fdb-pr branch May 24, 2019 03:33
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
1906fdf [pyext] Update Makefile to disable warning Wconversion for older swig (sonic-net#817)
1dbcaeb Remove gbsyncd_startup.py (sonic-net#813)
0372615 [vslib] Refresh queue pause status (sonic-net#814)
00d883c [sairedis] Add sai_dbg_generate_dump api to redis interface (sonic-net#811)
8585803 [sairedis] Unlock api mutex for communication mode (sonic-net#812)
c69549a [pyext] Add SWIG sairedis python submodule (sonic-net#806)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants