Yuri,

> NAT44 does not use all addresses uniformly

The address and port allocation algorithm is plugable.
Contributions to alternative/better algorithms would be very welcomed!

Best regards,
Ole

> 
> Hi,
> 
> I use nat output address space:
> nat44 add address 19.246.159.5 - 19.246.159.100
> 
> Configuration:
> nat {
>   translation hash buckets 1048576
>   translation hash memory 268435456
>   user hash buckets 250
>   max translations per user 20000
> }
> 
> Looks like external address is changing only when all port become busy:
> vpp# show nat44 sessions 
> NAT44 sessions:
> -------- thread 0 vpp_main: 292204 sessions --------
> ...
> 
> vpp# show nat44 addresses 
> NAT44 pool addresses:
> 19.246.159.5
>   tenant VRF independent
>   0 busy udp ports
>   0 busy tcp ports
>   0 busy icmp ports
> ...all others shows 0 busy ports
> 19.246.159.95
>   tenant VRF independent
>   0 busy udp ports
>   0 busy tcp ports
>   0 busy icmp ports
> 19.246.159.96
>   tenant VRF independent
>   0 busy udp ports
>   17804 busy tcp ports
>   0 busy icmp ports
> 19.246.159.97
>   tenant VRF independent
>   0 busy udp ports
>   64511 busy tcp ports
>   0 busy icmp ports
> 19.246.159.98
>   tenant VRF independent
>   0 busy udp ports
>   64511 busy tcp ports
>   0 busy icmp ports
> 19.246.159.99
>   tenant VRF independent
>   0 busy udp ports
>   64511 busy tcp ports
>   0 busy icmp ports
> 19.246.159.100
>   tenant VRF independent
>   16143 busy udp ports
>   64511 busy tcp ports
>   213 busy icmp ports
> NAT44 twice-nat pool addresses:
> vpp# 
> 
> Is there method to make more uniform use of all output addresses?
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> 
> View/Reply Online (#14782): https://lists.fd.io/g/vpp-dev/message/14782
> Mute This Topic: https://lists.fd.io/mt/66430016/675193
> Group Owner: vpp-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [otr...@employees.org]
> -=-=-=-=-=-=-=-=-=-=-=-

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#14784): https://lists.fd.io/g/vpp-dev/message/14784
Mute This Topic: https://lists.fd.io/mt/66430016/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to