Giter Site home page Giter Site logo

Comments (2)

eudoxiabanderbear avatar eudoxiabanderbear commented on July 20, 2024

When looking at the flow using tcpdump, we did see that the application pod did receive the SYN call from the ingress. However when the application pop was attempting to send the SYN-ACK back, the packet appears to be unable to route back, to the ingress. Followed by the ingress, attempting to restart the TCP flow.

19:23:00.745947 IP ip-100-66-155-240.us-west-2.compute.internal.46283 > ip-100-66-156-47.us-west-2.compute.internal.7654: Flags [S], seq 2885681828, win 62727, options [mss 8961,sackOK,TS val 340353580 ecr 0,nop,wscale 7], length 0
19:23:00.745967 IP ip-100-66-156-47.us-west-2.compute.internal.7654 > ip-100-66-155-240.us-west-2.compute.internal.46283: Flags [S.], seq 3184591693, ack 2885681829, win 62643, options [mss 8961,sackOK,TS val 3149138160 ecr 340353580,nop,wscale 7], length 0
19:23:00.745984 IP ip-100-66-156-47.us-west-2.compute.internal.7654 > ip-100-66-155-240.us-west-2.compute.internal.46283: Flags [S.], seq 3184591693, ack 2885681829, win 62643, options [mss 8961,sackOK,TS val 3149138160 ecr 340353580,nop,wscale 7], length 0
19:23:01.755860 IP ip-100-66-155-240.us-west-2.compute.internal.46283 > ip-100-66-156-47.us-west-2.compute.internal.7654: Flags [S], seq 2885681828, win 62727, options [mss 8961,sackOK,TS val 340354590 ecr 0,nop,wscale 7], length 0
19:23:01.755887 IP ip-100-66-156-47.us-west-2.compute.internal.7654 > ip-100-66-155-240.us-west-2.compute.internal.46283: Flags [S.], seq 3184591693, ack 2885681829, win 62643, options [mss 8961,sackOK,TS val 3149139170 ecr 340353580,nop,wscale 7], length 0
19:23:01.755904 IP ip-100-66-156-47.us-west-2.compute.internal.7654 > ip-100-66-155-240.us-west-2.compute.internal.46283: Flags [S.], seq 3184591693, ack 2885681829, win 62643, options [mss 8961,sackOK,TS val 3149139170 ecr 340353580,nop,wscale 7], length 0
19:23:01.755906 IP ip-100-66-156-47.us-west-2.compute.internal.7654 > ip-100-66-155-240.us-west-2.compute.internal.46283: Flags [S.], seq 3184591693, ack 2885681829, win 62643, options [mss 8961,sackOK,TS val 3149139170 ecr 340353580,nop,wscale 7], length 0
19:23:01.755909 IP ip-100-66-156-47.us-west-2.compute.internal.7654 > ip-100-66-155-240.us-west-2.compute.internal.46283: Flags [S.], seq 3184591693, ack 2885681829, win 62643, options [mss 8961,sackOK,TS val 3149139170 ecr 340353580,nop,wscale 7], length 0

from cilium.

sayboras avatar sayboras commented on July 20, 2024

Thanks for your issue.

As mentioned in your comment, the workaround is to set bpf.hostLegacyRouting=true. You can probably set endpointRoutes.enabled=true as well.

Based on my previous investigation, most likely it's due to below block, especially the variable ENABLE_SKIP_FIB.

if !option.Config.EnableHostLegacyRouting && option.Config.DirectRoutingDevice != "" {
directRoutingIface := option.Config.DirectRoutingDevice
directRoutingIfIndex, err := link.GetIfIndex(directRoutingIface)
if err != nil {
return err
}
fmt.Fprintf(fw, "#define DIRECT_ROUTING_DEV_IFINDEX %d\n", directRoutingIfIndex)
if len(option.Config.GetDevices()) == 1 {
if e.IsHost() || !option.Config.EnforceLXCFibLookup() {
fmt.Fprintf(fw, "#define ENABLE_SKIP_FIB 1\n")
}
}

from cilium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.