facebookincubator / katran

A high performance layer 4 load balancer
GNU General Public License v2.0
4.76k stars 504 forks source link

enable proper healthchecks testing #143

Closed tehnerd closed 3 years ago

tehnerd commented 3 years ago

https://www.spinics.net/lists/netdev/msg620553.html landed long time ago and now widely available in vanilla kernels. we should enable proper healthchecking tests

Tests output:

I1122 23:35:29.210656 66233 BpfTester.cpp:224] Test: v4 packet. no fwmark                                         result: Passed
I1122 23:35:29.210664 66233 BpfTester.cpp:224] Test: v4 packet. fwmark 1                                          result: Passed
I1122 23:35:29.210671 66233 BpfTester.cpp:224] Test: v4 packet. fwmark 2                                          result: Passed
I1122 23:35:29.210678 66233 BpfTester.cpp:224] Test: v6 packet. fwmark 3                                          result: Passed
23:31:20.469250 IP (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto UDP (17), length 43)
    192.168.1.1.31337 > 10.200.1.1.80: [udp sum ok] UDP, length 15
23:31:20.469255 IP (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto UDP (17), length 43)
    192.168.1.1.31337 > 10.200.1.1.80: [udp sum ok] UDP, length 15
23:31:20.469260 IP (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto UDP (17), length 43)
    192.168.1.1.31337 > 10.200.1.1.80: [udp sum ok] UDP, length 15
23:31:20.469263 IP (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto IPIP (4), length 63)
    10.0.13.37 > 10.0.0.1: IP (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto UDP (17), length 43)
    192.168.1.1.31337 > 10.200.1.1.80: [udp sum ok] UDP, length 15
23:31:20.469268 IP (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto TCP (6), length 55)
    192.168.1.1.31337 > 10.200.1.1.80: Flags [.], cksum 0x27e4 (correct), seq 0:15, ack 1, win 8192, length 15: HTTP
23:31:20.469270 IP (tos 0x0, ttl 64, id 0, offset 0, flags [none], proto IPIP (4), length 75)
    10.0.13.37 > 10.0.0.2: IP (tos 0x0, ttl 64, id 1, offset 0, flags [none], proto TCP (6), length 55)
    192.168.1.1.31337 > 10.200.1.1.80: Flags [.], cksum 0x27e4 (correct), seq 0:15, ack 1, win 8192, length 15: HTTP
23:31:20.469275 IP6 (hlim 64, next-header TCP (6) payload length: 35) fc00:2::1.31337 > fc00:1::1.80: Flags [.], cksum 0xfd4f (correct), seq 0:15, ack 1, win 8192, length 15: HTTP
23:31:20.469277 IP6 (hlim 64, next-header IPv6 (41) payload length: 75) fc00:2307::1337 > fc00::1: IP6 (hlim 64, next-header TCP (6) payload length: 35) fc00:2::1.31337 > fc00:1::1.80: Flags [.], cksum 0xfd4f (correct), seq 0:15, ack 1, win 8192, length 15: HTTP
facebook-github-bot commented 3 years ago

@udippant has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

facebook-github-bot commented 3 years ago

@udippant merged this pull request in facebookincubator/katran@ea00ca32aeb283637fc34bdc950f235f3b1a0350.