-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Subport] On SONiC-201911 branch Parent interface state change is not linked with child interface #601
Comments
The design is to have a separate admin status control from parent interface from the SAI/ASIC perspective. Tried
This may cause kernel side sub interface admin state to be different from that from config in the following scenarios: a) sub interface is configured kernel side sub interface representation will be admin down according to 2) above. Because I think this scenario should fine for both data plane traffic and control plane traffic. b) sub interface is configured In this scenario, kernel side sub interface representation will be admin up according to 1) above. Kernel and application would think the sub interface is up and allows packets to be sent to the ASIC. For packets coming from CPU, our current experiment shows that switch ASIC behaves as a NIC in processing such packets---even if from-cpu packets go through the pipeline, they are sent intact out of the corresponding physical port without any pipeline modification. Assume from step 3 to 5, you are operating on switch tp2: After step 5, you will be able to send traffic from tp2 to tp1 via Ethernet124.10 from the analysis above (sub interface is up at kernel side and from-cpu packets are sent transparently out of the physical port). However, in the opposite direction, packets from tp1 will go through the ASIC pipeline at tp2 and get dropped in ASIC as sub interface Ethernet124.10 in ASIC is admin down. This matches the phenomenon you observe |
[version]
SONiC Software Version: SONiC.nephos-201911-69879e4-202002261959.0-dirty-20200307.002748
Distribution: Debian 9.12
Kernel: 4.9.0-9-2-amd64
Build commit: 7c915950
Build date: Sat Mar 7 08:47:57 UTC 2020
[topo]
taurus----hub----tp1 |----tp2
[configuration]
[operation & rslt]
after step 5 will find traffic is abnormal, tp1 can receive traffic from tp2, tp2 can not receive any traffic.
according to the config, both tp1 and tp2 should not receive any traffic from opposite.
conclusion:When the state of the parent interface changes from up to down,subport status not change to down;When parent interface status from down to up ,Sonic will add all routes on this interface,include subports route,but this time subport status is down
Signed-off-by: Quinn Quinn.Wang@nephosinc.com
The text was updated successfully, but these errors were encountered: