Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kouamdo opened this issue Dec 30, 2023 · 12 comments
Open

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

kouamdo opened this issue Dec 30, 2023 · 12 comments

Comments

@kouamdo
Copy link

kouamdo commented Dec 30, 2023

          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 #499 (comment)

@kouamdo kouamdo changed the title i have tried with native , but there is no XDP program attached to driver interface. Also , the ping is not working. no XDP program attached to driver interface. Also , the ping is not working. Dec 30, 2023
@pirog-spb
Copy link
Collaborator

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
Copy link
Collaborator

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 kouamdo changed the title no XDP program attached to driver interface. Also , the ping is not working. no XDP program attached to driver interface. Also , the ping is not working outside the NAT. Dec 30, 2023
@kouamdo
Copy link
Author

kouamdo commented Jan 4, 2024

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
Copy link

linouxis9 commented Jan 4, 2024

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
Copy link
Collaborator

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
Copy link
Author

kouamdo commented Jan 8, 2024

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

20240109_225009.jpg

20240109_224940.jpg

@kouamdo
Copy link
Author

kouamdo commented Jan 10, 2024

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
Copy link
Author

kouamdo commented Jan 10, 2024

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

@kouamdo kouamdo changed the title no XDP program attached to driver interface. Also , the ping is not working outside the NAT. UE doesn't receive data when i use native mode Jan 10, 2024
@pirog-spb
Copy link
Collaborator

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

image

@kouamdo
Copy link
Author

kouamdo commented Jan 14, 2024

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
Copy link
Author

kouamdo commented Jan 14, 2024

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
Copy link
Author

kouamdo commented Jan 14, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants