Hi,

I wanted some information for my deterministic and non-deterministic NAT 
sessions but I was unable to figure out the port numbers and protocol ID from 
the result.

Here is a snippet of the output I have obtained:

vat# nat44_user_session_dump ip_address 100.64.0.3 vrf_id 0
dynamic session 100.64.0.3:-122683392 to 192.168.10.30:-1235681280 protocol id 
1114112 total packets 6 total bytes 0
dynamic session 100.64.0.3:-968818688 to 192.168.10.30:1384841216 protocol id 
1114112 total packets 5 total bytes 0
dynamic session 100.64.0.3:-140443648 to 192.168.10.30:1690697728 protocol id 
1114112 total packets 5 total bytes 0
dynamic session 100.64.0.3:-539820032 to 192.168.10.30:-1502281728 protocol id 
1114112 total packets 5 total bytes 0
dynamic session 100.64.0.3:-338100224 to 192.168.10.30:-2008875008 protocol id 
1114112 total packets 5 total bytes 0

>From the NAT VPP page here is the API:
define nat44_user_session_dump { u32 client_index; u32 context; u8 
ip_address[4]; u32 vrf_id; }; define nat44_user_session_details { u32 context; 
u8 outside_ip_address[4]; u16 outside_port; u8 inside_ip_address[4]; u16 
inside_port; u16 protocol; u8 is_static; u64 last_heard; u64 total_bytes; u32 
total_pkts; };

Kindly check if this is the correct export and help me find the correct port 
numbers and protocol fields (122683392, 1235681280 and 1114112).

Thanks,
Hamid.
  • [vpp-dev] Figure ... Hamid via Lists.Fd.Io
    • Re: [vpp-dev... Hamid via Lists.Fd.Io
      • Re: [vpp... Matus Fabian -X (matfabia - PANTHEON TECHNOLOGIES@Cisco)
        • Re: ... Hamid via Lists.Fd.Io
          • ... Matus Fabian -X (matfabia - PANTHEON TECHNOLOGIES@Cisco)
            • ... Hamid Rasool

Reply via email to