Commit c8a8fda
Ignore received packets that weren't sent during examine_flow (sonic-net#13203)
What is the motivation for this PR?
The platform_tests.test_advanced_reboot.test_fast_reboot test was failing due to received packets that weren't sent.
How did you do it?
How did you verify/test it?
Modified the examine_flow function to run independently then tested the logic with a series of pcap files with various missing packets in the sequence. The cases included:
100 packets, happy path
100 packets, 0th packet receive missing
100 packets, 0th packet send missing
100 packets, 10th packet both missing, 11th packet both missing
100 packets, 10th packet both missing, 11th packet receive missing
100 packets, 10th packet both missing, 11th packet send missing
100 packets, 10th packet both missing
100 packets, 10th packet receive missing, 11th packet receive missing
100 packets, 10th packet receive missing, 11th packet send missing
100 packets, 10th packet receive missing
100 packets, 10th packet send missing, 11th packet receive missing
100 packets, 10th packet send missing, 11th packet send missing
100 packets, 10th packet send missing
100 packets, bunch of sad cases all in one:
pkt-10 both missing
pkt-15 send missing
pkt-20 receive missing
pkt-25 both missing, pkt-26 both missing
pkt-30 both missing, pkt-31 send missing
pkt-35 both missing, pkt-36 receive missing
pkt-45 receive missing, pkt-46 receive missing
pkt-55 receive missing, pkt-56 send missing
pkt-65 send missing, pkt-66 send missing
pkt-75 send missing, pkt-76 receive missing
100 packets, first 10 packets missing
Any platform specific information?1 parent c47a03e commit c8a8fda
1 file changed
+59
-21
lines changedLines changed: 59 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
628 | 628 | | |
629 | 629 | | |
630 | 630 | | |
| 631 | + | |
631 | 632 | | |
632 | 633 | | |
633 | 634 | | |
| |||
1943 | 1944 | | |
1944 | 1945 | | |
1945 | 1946 | | |
| 1947 | + | |
| 1948 | + | |
1946 | 1949 | | |
1947 | 1950 | | |
1948 | 1951 | | |
1949 | 1952 | | |
1950 | 1953 | | |
1951 | | - | |
| 1954 | + | |
1952 | 1955 | | |
1953 | 1956 | | |
| 1957 | + | |
1954 | 1958 | | |
1955 | 1959 | | |
1956 | 1960 | | |
| |||
1985 | 1989 | | |
1986 | 1990 | | |
1987 | 1991 | | |
1988 | | - | |
| 1992 | + | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
| 1997 | + | |
1989 | 1998 | | |
1990 | 1999 | | |
1991 | 2000 | | |
1992 | 2001 | | |
1993 | | - | |
1994 | | - | |
1995 | | - | |
1996 | | - | |
1997 | | - | |
1998 | | - | |
1999 | | - | |
2000 | | - | |
2001 | | - | |
2002 | | - | |
2003 | | - | |
2004 | | - | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
2005 | 2011 | | |
2006 | | - | |
2007 | | - | |
2008 | | - | |
2009 | | - | |
2010 | | - | |
2011 | | - | |
2012 | | - | |
| 2012 | + | |
| 2013 | + | |
| 2014 | + | |
| 2015 | + | |
| 2016 | + | |
| 2017 | + | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
| 2026 | + | |
| 2027 | + | |
| 2028 | + | |
| 2029 | + | |
| 2030 | + | |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
| 2044 | + | |
| 2045 | + | |
2013 | 2046 | | |
2014 | 2047 | | |
2015 | 2048 | | |
| |||
2043 | 2076 | | |
2044 | 2077 | | |
2045 | 2078 | | |
| 2079 | + | |
| 2080 | + | |
| 2081 | + | |
| 2082 | + | |
| 2083 | + | |
2046 | 2084 | | |
2047 | 2085 | | |
2048 | 2086 | | |
| |||
0 commit comments