omec-project / pfcpsim

PFCP client simulator used for UPF testing
18 stars 18 forks source link

Message: Timeout has expired #56

Closed infinitydon closed 1 year ago

infinitydon commented 2 years ago

Hi,

I tried to use pfcpsim (0.2.0-dev) with omec BESS-UPF but the pfcpsim is giving time-out error:

/ # pfcpctl service associate
FATA[0005] Error while associating: rpc error: code = Aborted desc = Message: Timeout has expired.

Config:

PFCP POD:

/ # ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
3: eth0@if13: <BROADCAST,MULTICAST,UP,LOWER_UP,M-DOWN> mtu 9001 qdisc noqueue state UP
    link/ether 66:58:a7:a6:76:11 brd ff:ff:ff:ff:ff:ff
    inet 10.0.1.83/32 scope global eth0
       valid_lft forever preferred_lft forever
4: net1@if5: <BROADCAST,MULTICAST,NOARP,UP,LOWER_UP,M-DOWN> mtu 1500 qdisc noqueue state UNKNOWN
    link/ether 02:04:a4:3c:b1:f8 brd ff:ff:ff:ff:ff:ff
    inet 10.0.5.20/24 brd 10.0.5.255 scope global net1
       valid_lft forever preferred_lft forever
/ # pfcpctl service configure --n3-addr 10.0.3.10 --remote-peer-addr 10.0.5.9
INFO[0000] Server is configured. Remote peer address: 10.0.5.9, N3 interface address: 10.0.3.10

And I confirmed that the bess upf is actually responding to the PFCP association request:

/ # tcpdump -i any host 10.0.5.9 -s 0 -nv
tcpdump: data link type LINUX_SLL2
tcpdump: listening on any, link-type LINUX_SLL2 (Linux cooked v2), snapshot length 262144 bytes
15:01:34.928046 net1  Out IP (tos 0x0, ttl 255, id 47477, offset 0, flags [DF], proto UDP (17), length 53)
    10.0.5.20.53192 > 10.0.5.9.8805: UDP, length 25
15:01:34.932006 net1  In  IP (tos 0x0, ttl 255, id 6434, offset 0, flags [DF], proto UDP (17), length 85)
    10.0.5.9.8805 > 10.0.5.20.53192: UDP, length 57