Hi,

You need to change “translation hash buckets” in startup configuration of the 
NAT plugin https://wiki.fd.io/view/VPP/NAT#Startup_config, we added session 
number limitation to avoid running out of memory crash in runtime (maximum 
sessions = 10 x “translation hash buckets”).

Regards,
Matus


From: Yuliang Li [mailto:[email protected]]
Sent: Monday, October 30, 2017 8:21 PM
To: Matus Fabian -X (matfabia - PANTHEON TECHNOLOGIES at Cisco) 
<[email protected]>
Cc: [email protected]
Subject: Re: [vpp-dev] nat44 address pool not fully used

Here are the results:
   Count                    Node                  Reason
     10240          nat44-in2out-slowpath         Good in2out packets processed
   7847236          nat44-in2out-slowpath         Maximum sessions exceeded
  23864696              nat44-in2out              Good in2out packets processed
     10240          nat44-in2out-slowpath         Good in2out packets processed
   7846673          nat44-in2out-slowpath         Maximum sessions exceeded
  23864371              nat44-in2out              Good in2out packets processed

It seems the number of maximum sessions limits. I just updated from an older 
version to the latest by pulling from https://gerrit.fd.io/r/vpp3 days ago. I 
did not change the configuration file that I used before. Is there any default 
parameter value change?

On Mon, Oct 30, 2017 at 1:29 AM, Matus Fabian -X (matfabia - PANTHEON 
TECHNOLOGIES at Cisco) <[email protected]<mailto:[email protected]>> wrote:
Hi,

Are you on latest?
Could you please provide “show node counters” output.

Regards,
Matus


From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] On 
Behalf Of Yuliang Li
Sent: Saturday, October 28, 2017 8:48 PM
To: [email protected]<mailto:[email protected]>
Subject: [vpp-dev] nat44 address pool not fully used

Hi,

I use "nat44 add addr 10.1.1.2-10.1.1.254", in the hope that in2out traffic can 
use any of the source IP in the range.

However, when I generate in2out traffic composing 65536 different internal 
source IP (with the same source port), only 10.1.1.2 is used for external 
source IP, and allocated 20162 port number. That means only 20162 internal IP 
get translated, while the rest are dropped. I am wondering why it does not 
allocate other addresses in the pool (e.g., 10.1.1.3)?

Here are the output of show nat44 detail:
10.1.1.2
  tenant VRF independent
  0 busy udp ports
  20162 busy tcp ports
  0 busy icmp ports
10.1.1.3
  tenant VRF independent
  0 busy udp ports
  0 busy tcp ports
  0 busy icmp ports
.... (all following shows 0 busy ports).

Thanks,
--
Yuliang Li
PhD student
Department of Computer Science
Yale University



--
Yuliang Li
PhD student
Department of Computer Science
Yale University
_______________________________________________
vpp-dev mailing list
[email protected]
https://lists.fd.io/mailman/listinfo/vpp-dev
  • [vpp-dev] nat4... Yuliang Li
    • Re: [vpp-... Matus Fabian -X (matfabia - PANTHEON TECHNOLOGIES at Cisco)
      • Re: [... Yuliang Li
        • R... Matus Fabian -X (matfabia - PANTHEON TECHNOLOGIES at Cisco)

Reply via email to