cloudfoundry / cloudfoundry/bosh-linux-stemcell-builder
Container to container networking performance degradation
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 50
- Forks
- 121
- Avg merge
- 13h 32m
- Merged PRs (30d)
- 29
Description
Moving this issue out of https://github.com/cloudfoundry/cf-networking-release/issues/213 as we have indications that it is related to the Stemcell.
Issue
We currently observe timeouts in C2C when moving CF from Bionic to Jammy.
Please note that this issue can only be observed when the Diego cells are migrated from Bionic to Jammy and cannot be reproduced on Bionic stemcells.
As additional information, we've also tested in different environments with and without dynamic ASGs.
Steps to Reproduce - See additional information below
- Install cf-deployment [v27.2.0] on Jammy stemcell
- Push two apps and add a network-policy enabling traffic from app A to app B
cf add-network-policy app-a app-b --protocol tcp --port 8080- ssh into app-a and try to reach app-b
Expected result
Successful connections from app-a to app-b.
Current result
Sporadic timeouts and slow connections from app-a to app-b.
[backend-wgnnmafs]: Hello!
real 0m2.035s
user 0m0.000s
sys 0m0.007s
[backend-wgnnmafs]: Hello!
real 0m0.018s
user 0m0.000s
sys 0m0.007s
[backend-wgnnmafs]: Hello!
real 0m1.039s
user 0m0.000s
sys 0m0.007s
Workaround
In every CloudFoundry diego cell you should disable a configuration parameter in the networking interface:
ethtool -K eth0 tx-udp_tnl-segmentation off && ethtool -K eth0 tx-udp_tnl-csum-segmentation off
This is currently disabled (off) by default on Bionic compared to Jammy.
Further information
Infrastructure: ESXI prepared with NSX-T / NSX-V (tested on both) - not sure if it can be reproduced in other cloud environments.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the C2C timeout with cf-deployment v27.2.0 on Jammy by pushing two apps, adding the stated network policy, and testing from app A to app B. Compare Jammy with Bionic and inspect the eth0 ethtool offload settings; done means connections are consistently successful without the workaround, including in the reported ESXi NSX-T and NSX-V environments.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, ubuntu
- Domain
- infrastructure, networking, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100