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

ping "request" from UE going across eNB is going to the eth0 interface on the openair-spgwu-tiny container. I think it should be going to the pdn interface??? Right? #5

Open
dcollin5 opened this issue Sep 22, 2020 · 6 comments

Comments

@dcollin5
Copy link

ping "request" from UE going across eNB is going to the eth0 interface on the openair-spgwu-tiny container. I think it should be going to the pdn interface??? Right?

root@0380057da8bb:/openair-spgwu-tiny# tcpdump -i eth0
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
17:09:29.879160 IP 12.1.1.2 > 12.1.1.1: ICMP echo request, id 22845, seq 21, length 64

The ping command from the UE to the pdn gateway interface 12.1.1.1 never responds..

However, a ping from the pdn interface on openair-spgwu-tiny to 12.1.1.2, goes to the UE, but the reply goes to eth0.

Are these commands correct?
$ python3 component/oai-spgwu-tiny/ci-scripts/generateConfigFiles.py --kind=SPGW-U
--sxc_ip_addr=${SPGW0_IP} --sxu=eth0 --s1u=eth0 --from_docker_file
$ docker cp ./spgwu-cfg.sh prod-oai-spgwu-tiny:/openair-spgwu-tiny
$ docker exec -it prod-oai-spgwu-tiny /bin/bash -c "cd /openair-spgwu-tiny && chmod 777 spgwu-cfg.sh && ./spgwu-cfg.sh"

@dcollin5
Copy link
Author

The "temporary" solution.
Change the following in the etc/spgw_u.conf file in the openair-spgwu-tiny container.
From:
SGI :
{
# No config to set, the software will set the SGi interface to the interface used for the default route.
INTERFACE_NAME = "eth0"; # STRING, interface name or "default_gateway"
.....

to
SGI :
{
# No config to set, the software will set the SGi interface to the interface used for the default route.
INTERFACE_NAME = "pdn"; # STRING, interface name or "default_gateway"
....

Then reload the containers.
When the UE attaches to the network, ping responds

I will see if i can find a permanent fix in the scripts.

@liyinxin
Copy link

Hi,dcollin5
I also meet this error,but when i change the SGI inferface_name = "pdn",i find the ue can ping the pdn but i can't access the network, can you help me ?
Thanks very much.

@dcollin5
Copy link
Author

dcollin5 commented Oct 12, 2020 via email

@liyinxin
Copy link

Ok, i will try it.
Thanks Very much

@Matheus-Garbelini
Copy link

Hi, do you need to manually create the interface "pdn" before hand?
Can you share how you call generate_spgwu-tiny_config_script arguments?

@Matheus-Garbelini
Copy link

Hi @liyinxin and @dcollin5 another way is to just change ci-scripts/generate_spgwu-tiny_config_script.py:
from SNAT = "no" to SNAT = "yes". This will enable address translation and masquerade requests to/from PDN.
Unfortunately, this feature is undocumented, not sure why.

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

4 participants
@Matheus-Garbelini @liyinxin @dcollin5 and others