edgecomllc / eupf

5G User Plane Function (UPF) based on eBPF
Apache License 2.0
95 stars 14 forks source link

UE doesn't receive data when i use native mode #524

Open kouamdo opened 6 months ago

kouamdo commented 6 months ago
          i have tried with native , bit there is no XDP program attached to driver interface. Also , the ping is not working.

image

image

image

image

and i'm using this version of kernel 5.16.0-051600-generic

image

why i don't have XDP programattached to interface inside ? Or let me know if i should know something

Originally posted by @kouamdo in https://github.com/edgecomllc/eupf/issues/499#issuecomment-1872495263

pirog-spb commented 6 months ago

Hi @kouamdo

In order to verify XDP program has been installed use bpftool. Seems like ip link don't show xdp program if it's not installed by ip link itself.

pirog-spb commented 6 months ago

If you attached xdp program in native mode to veth interface you also have to load xdp program(any) to the opposite side of veth pair in order to get xdp up and running. See #116 for details

kouamdo commented 6 months ago

But where is the bpftool bin file? Also , i have see the object file to attach with the interface but i have getting some errors

linouxis9 commented 6 months ago

If you are on Ubuntu and you use the generic kernel, you may install bpftool by installing the package linux-tools-generic and linux-tools-common. @kouamdo

pirog-spb commented 5 months ago

But where is the bpftool bin file? Also , i have see the object file to attach with the interface but i have getting some errors

You have to install it manually if there is no bpftool already intalled on host.

Sometimes it's easier to build bpftool from source. See https://github.com/libbpf/bpftool?tab=readme-ov-file#build

kouamdo commented 5 months ago

Here , i have attached program in driver, hoping that i'm rigth :

20240109_225009.jpg

20240109_224940.jpg

kouamdo commented 5 months ago

Well , so i have seen that when xdp was attached , there is downlink session.

image

but nothing is okay because the UE doesn't receive packet back to him :

image

image

there is inside the nat :

image

kouamdo commented 5 months ago

Well , so i have seen that when xdp was attached , there is downlink session.

image

but nothing is okay because the UE doesn't receive packet back to him :

image

image

there is inside the nat :

image

so , i don't know why the UE doesn't receive data Also sometimes , the xdp program detaches itself from the interfaces

pirog-spb commented 5 months ago

@kouamdo Could you please re-upload images from your last comment. Can't see them...

image

kouamdo commented 5 months ago

Like i have said , the xdp program is dettached to the driver sometimes and I don't know why. Also there is no Downlink from upf to gnodeB( looks like the packet was droped)

About the image , it is the same like the image inside the last comment.

kouamdo commented 5 months ago

the UE doesn't received data :

image

also the XDP program leave the attachement sometimes. About the NAT , i think it is okay 👍

image

kouamdo commented 5 months ago

the UPF doesn't transmit the data in sthe N3 interface