The IP lookup failed on the decapped packet, there’s no route to 60.60.0.100 in 
fib index 1 – which I assume is table 1. You can check which table it is with:
  sh ip fib index 1 summary

I’m not familiar with UPF so I can’t tell you why the lookup was done that way.

/neale


From: <vpp-dev@lists.fd.io> on behalf of sothy <sothy....@gmail.com>
Date: Thursday 23 January 2020 at 04:17
To: "vpp-dev@lists.fd.io" <vpp-dev@lists.fd.io>
Subject: [vpp-dev] Error:null-node: blackholed packets

Hello,
May I get help on interpreting the error of null-node: blackholed packets. I'm 
sending ICM packet with src(60.60.0.1) and dst (60.60.0.100) address over GTP 
tunnel(172.21.0.1 -> 172.30.1.2).
The corresponding GTP packet is blackholed. In my understanding, VPP does not 
know where to send. In my init.conf (below), I have default path in table 2 via 
host-vpp1eth1. Please see trace for corresponding packet.

******************trace************************

01:53:43:990163: af-packet-input
  af_packet: hw_if_index 1 next-index 4
    tpacket2_hdr:
      status 0x20000009 len 130 snaplen 130 mac 66 net 80
      sec 0x5e285d19 nsec 0x1d5b210b vlan 0 vlan_tpid 0
01:53:43:990167: ethernet-input
  IP4: 3e:28:14:3b:20:c0 -> 00:0c:29:46:1f:53
01:53:43:990169: ip4-input
  UDP: 172.21.0.1 -> 172.30.1.2
    tos 0x00, ttl 63, length 116, checksum 0x6cdc
    fragment id 0x7566, flags DONT_FRAGMENT
  UDP: 2152 -> 2152
    length 96, checksum 0x0000
01:53:43:990172: ip4-lookup
  fib 1 dpo-idx 13 flow hash: 0x00000000
  UDP: 172.21.0.1 -> 172.30.1.2
    tos 0x00, ttl 63, length 116, checksum 0x6cdc
    fragment id 0x7566, flags DONT_FRAGMENT
  UDP: 2152 -> 2152
    length 96, checksum 0x0000
01:53:43:990174: ip4-local
    UDP: 172.21.0.1 -> 172.30.1.2
      tos 0x00, ttl 63, length 116, checksum 0x6cdc
      fragment id 0x7566, flags DONT_FRAGMENT
    UDP: 2152 -> 2152
      length 96, checksum 0x0000
01:53:43:990177: ip4-udp-lookup
  UDP: src-port 2152 dst-port 2152
01:53:43:990178: gtpu4-input
  GTPU decap from gtpu_session0 teid 0x00000001 next 3 error 0
01:53:43:990180: upf-ip4-process
  upf_session0 cp-seid 0x0000000000000001 pdr 1 far 1
  ICMP: 60.60.0.1 -> 60.60.0.100
    tos 0x00, ttl 64, length 48, checksum 0x01f0
    fragment id 0x0001
  ICMP echo_request checksum 0xaf88
01:53:43:990182: ip4-input
  ICMP: 60.60.0.1 -> 60.60.0.100
    tos 0x00, ttl 64, length 48, checksum 0x01f0
    fragment id 0x0001
  ICMP echo_request checksum 0xaf88
01:53:43:990183: ip4-lookup
  fib 1 dpo-idx 0 flow hash: 0x00000000
  ICMP: 60.60.0.1 -> 60.60.0.100
    tos 0x00, ttl 64, length 48, checksum 0x01f0
    fragment id 0x0001
  ICMP echo_request checksum 0xaf88
01:53:43:990183: ip4-drop
    ICMP: 60.60.0.1 -> 60.60.0.100
      tos 0x00, ttl 64, length 48, checksum 0x01f0
      fragment id 0x0001
    ICMP echo_request checksum 0xaf88
01:53:43:990184: error-drop
  rx:local0
01:53:43:990185: drop
  null-node: blackholed packets


++++++++++++++++++++++++++++init.conf+++++++++++++++++++++
ip table add 1
ip table add 2
ip6 table add 1
ip6 table add 2

create host-interface name vpp1eth0
set interface mac address host-vpp1eth0 00:0c:29:46:1f:53
set interface ip table host-vpp1eth0 1
set interface ip6 table host-vpp1eth0 1
set interface ip address host-vpp1eth0 172.30.1.2/24<http://172.30.1.2/24>
set interface state host-vpp1eth0 up

create host-interface name vpp1eth1
set interface mac address host-vpp1eth1 00:50:56:86:ed:f9
set interface ip table host-vpp1eth1 2
set interface ip6 table host-vpp1eth1 2
set interface ip address host-vpp1eth1 172.31.1.2/24<http://172.31.1.2/24>
set interface state host-vpp1eth1 up

create host-interface name vpp1eth2
set interface mac address host-vpp1eth2 02:fe:f5:6f:45:72
set int ip address host-vpp1eth2 172.32.1.2/24<http://172.32.1.2/24>
set int state host-vpp1eth2 up

ip route add 172.17.0.1/16<http://172.17.0.1/16>  via 172.32.1.1
ip route add 172.21.0.1/16<http://172.21.0.1/16> table 1 via 172.30.1.1 
host-vpp1eth0
ip route add 0.0.0.0/0<http://0.0.0.0/0> table 2 via 172.31.1.1 host-vpp1eth1

upf pfcp endpoint ip 172.32.1.2 vrf 0

upf nwi name cp vrf 0
upf nwi name internet vrf 1
upf nwi name sgi vrf 2

upf gtpu endpoint ip 172.32.1.2 nwi cp teid 0x80000000/2
upf gtpu endpoint ip 172.30.1.2 nwi internet teid 0x80000000/2
+++++++++++++++++++++++++++++++++++++++++++++++
I used UPF-VPP development in 
https://github.com/travelping/vpp/tree/feature/1908/upf
VPP version is
 show version
vpp v19.08.1-393~g25cea519e-dirty built by root on buildkitsandbox at Tue Dec  
3 14:06:31 UTC 2019.

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

View/Reply Online (#15226): https://lists.fd.io/g/vpp-dev/message/15226
Mute This Topic: https://lists.fd.io/mt/69984274/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