-
Notifications
You must be signed in to change notification settings - Fork 104
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
Questions about the implementation of conntrack in pcn-iptables #244
Comments
Hi @whl739, Below you can find my answers to your questions:
You are absolutely right, nice catch! Unfortunately, I do not have time to implement it now but, if you would like to do it and create a PR I would be happy to review it.
Even in this case, you are absolutely right; the cleanup code was there before, but we decided to remove it for the same reason you explained. I have noticed that the code that checks the expired entries is not there (probably we did some mistakes in porting the code from one branch to another). I'll do it ASAP or again, if you want to submit a PR even for that it will be appreciated. Please if there is something that it is still not clear to you let me know. |
Thanks for your detailed answers, i got it. |
Hi, guys,
I saw this project in this paper: Securing_Linux_with_a_Faster_and_Scalable_Iptables.
And i have some questions about the implemention of conntrack in iptables.
In section 4.5
Conntrack entry creation
:the conntrack process will create a single entry for both directions, but if egress and ingress packets with same flow are handled at the same time, they will update the entry too, and if the packets are handled on the same cpu, then there is no problem, but if they are not on same cpu, will this cause inconsistent state?
In section 4.5
TCP state machine
andConntrack Cleanup
:I didn't find the cleanup code of conntrack entries, did i miss something?
And another question, if the control plane finds an expired entry, and decides to delete it, during the operation, the datapath reuses the connection, and updates the entry, after this, the control plane deletes it, how to prevent this?
Thank you.
The text was updated successfully, but these errors were encountered: