Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ER: adding route "options" beside usual ones #4788

Open
gsustek opened this issue Oct 21, 2024 · 0 comments
Open

ER: adding route "options" beside usual ones #4788

gsustek opened this issue Oct 21, 2024 · 0 comments
Labels
kind/feature All issues/PRs that are new features

Comments

@gsustek
Copy link

gsustek commented Oct 21, 2024

What would you like to be added?

OVNKubernetes-CNI Feature Proposal

I would like to have additional capability of setting arbitrary options on routes which will be affective upon pod creation.
Specific ip route options of interest is quickack
Proposal i based on following link.
https://man7.org/linux/man-pages/man8/ip-route.8.html - OPTIONS := FLAGS

You should extend route class, when routes are defined in pod after ipam assign IP address to the pod

with OPTIONS and possible FLAGS from https://man7.org/linux/man-pages/man8/ip-route.8.html page.

Why is this needed?

Applications running in container often can not be changed programatically but network performance issues can be controlled on kernel level.

The 40ms delay in responding to ACK is an method built into the Linux IP stack to improve network performance.

When a participant in a TCP conversation has an ACK to send, the participant is acknowledging some data that has been received. That receiver will very likey have a reply to the data it just received.

The linux kernel will delay the outgoing ACK by up to 40ms to allow the reply to queue, then send both the reply and the ACK together.

This can be controlled/overide in two ways:

At the application level with the TCP_QUICKACK socket option. See man 7 tcp for further details. This option needs to be set with setsockopt() after each operation of TCP on a given socket.

In newer kernel route level with quickack 1 on the end of a route, eg:
ip route change default via 10.0.0.1 quickack 1

Regards,
Goran.

@gsustek gsustek added the kind/feature All issues/PRs that are new features label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature All issues/PRs that are new features
Projects
None yet
Development

No branches or pull requests

1 participant