summaryrefslogtreecommitdiff
path: root/tests/topotests/bgp_tcp_mss/test_bgp_tcp_mss.py
AgeCommit message (Collapse)Author
2024-11-07bgpd:support tcp-mss for neighbor grouphanyu.zly
Signed-off-by: hanyu.zly <hanyu.zly@alibaba-inc.com>
2024-06-12tests: supress unused variables at topotestsY Bharath
For code maintainability, suppressed unused variables with "_" Signed-off-by: y-bharath14 <y.bharath@samsung.com>
2024-04-27tests: Drop duplicate pytestmark per fileDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-02-09*: auto-convert to SPDX License IDsDavid Lamparter
Done with a combination of regex'ing and banging my head against a wall. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-11-21tests: Expand minimum run_and_expect to 5 secondsDonald Sharp
Ensure that the minimum time spent run and expecting is 5 seconds. Heavy load is not a reason to fail a test. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2021-09-04tests: cleanup - remove unused importsChristian Hopps
Signed-off-by: Christian Hopps <chopps@labn.net>
2021-09-04tests: remove legacy Topo class (fixes many pylint errors)Christian Hopps
Signed-off-by: Christian Hopps <chopps@labn.net>
2021-09-04tests: micronet: adapt testsChristian Hopps
Signed-off-by: Christian Hopps <chopps@labn.net>
2021-07-28tests: Add pytest.mark.bgpd for tests missing this markDonald Sharp
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2021-05-04bgpd: Support tcp-mss for bgp neighborsAbhinay Ramesh
Problem Statement: ================= In scale setup BGP sessions start flapping. RCA: ==== In virtualized environment there are multiple places where MTU need to be set. If there are some places were MTU is not set properly then there is chances that BGP packets get fragmented, in scale setup this will lead to BGP session flap. Fix: ==== A new tcp option is provided as part of this implementation, which can be configured per neighbor and helps to set the TCP max segment size. User need to derive the path MTU between the BGP neighbors and set that value as part of tcp-mss setting. 1. CLI Configuration: [no] neighbor <A.B.C.D|X:X::X:X|WORD> tcp-mss (1-65535) 2. Running config frr# show running-config router bgp 100 neighbor 198.51.100.2 tcp-mss 150 => new entry neighbor 2001:DB8::2 tcp-mss 400 => new entry 3. Show command frr# show bgp neighbors 198.51.100.2 BGP neighbor is 198.51.100.2, remote AS 100, local AS 100, internal link Hostname: frr Configured tcp-mss is 150, synced tcp-mss is 138 => new display 4. Show command json output frr# show bgp neighbors 2001:DB8::2 json { "2001:DB8::2":{ "remoteAs":100, "bgpTimerKeepAliveIntervalMsecs":60000, "bgpTcpMssConfigured":400, => new entry "bgpTcpMssSynced":388, => new entry Risk: ===== Low - This is a config driven feature and it sets the max segment size for the TCP session between BGP peers. Tests Executed: =============== Have done manual testing with three router topology. 1. Executed basic config and un config scenarios 2. Verified if the config is updated in running config during config and no config operation 3. Verified the show command output in both CLI format and JSON format. 4. Verified if TCP SYN messages carry the max segment size in their initial packets. 5. Verified the behaviour during clear bgp session. 6. done packet capture to see if the new segment size takes effect. Signed-off-by: Abhinay Ramesh <rabhinay@vmware.com>