Re: [vpp-dev] NAT44 UDP sessions are not clearing

2020-06-03 Thread Klement Sekera via lists.fd.io
Transitory means that the session has not been fully established. Transitory (wait-closed) means the session has been established and then closed and it’s in transitory timeout, after which it will move to transitory (closed). Sessions in this state are not eligible for freeing. Transitory (close

Re: [vpp-dev] NAT44 UDP sessions are not clearing

2020-06-02 Thread carlito nueno
Testing with 30 ip addresses (users) opening around 300 sessions each. When using vpp-20.01 + fixes by you and Filip (before the port overloading patches), total sessions and total transitory sessions were much smaller (around 15062). on vpp-20.05 with port overloading NAT44 pool addresses: 130.

Re: [vpp-dev] NAT44 UDP sessions are not clearing

2020-06-02 Thread carlito nueno
Hi Klement, Got it. Sorry one more question :) I did another test and I noticed that tcp transitory sessions increase rapidly when I create new sessions from new internal ip address really fast (without delay). for example: tcp sessions are never stopped, so tcp transitory sessions should be 0 a

Re: [vpp-dev] NAT44 UDP sessions are not clearing

2020-06-02 Thread Klement Sekera via lists.fd.io
Hi Carlito, For ED NAT it doesn’t, as ED NAT no longer has any “user” concept. The code for different flavours of NAT needs to be split and polished anyway. Idea is to have data/code/APIs separate where appropriate. Thanks, Klement > On 2 Jun 2020, at 20:31, Carlito Nueno wrote: > > Hi Kleme

Re: [vpp-dev] NAT44 UDP sessions are not clearing

2020-06-02 Thread carlito nueno
Hi Klement, Really appreciate the detailed explanation! That makes sense and I could see that behavior from my tests. Last question: does "max translations per user" matter any more because the concept of user doesn't exist with new NAT? max translations: 400 max translations per user: 500 >

Re: [vpp-dev] NAT44 UDP sessions are not clearing

2020-06-01 Thread Klement Sekera via lists.fd.io
Hi, as you can see almost all of NAT sessions are timed out. NAT will automatically free and reuse them when needed again. this line: > udp LRU min session timeout 5175 (now 161589) hints whether immediate reuse is possible. Minimum session timeout in the LRU list for UDP sessions is 5175, whil

[vpp-dev] NAT44 UDP sessions are not clearing

2020-05-31 Thread carlito nueno
Hi all, I am using vpp v20.05 and running NAT44 in end-point dependent mode. To test NAT, I created 50k tcp and udp sessions and ran packets for 5 mins. Then I stopped the test. As soon as the test is stopped, tcp established sessions is 0, tcp transitory sessions increase and all of the tcp ses