Comments (44)
Did you add a subscriber(IMSI=208930000000003) information?
Please, check the WebUI manual.
Thanks!
from open5gs.
Thanks I fill IMSI and new question happen.
[02/08 21:23:20.457] WARN: Unknown UE by GUTI[G:4,C:1,M_TMSI:0x6b113ca0] (mme_context.c:2099)
[02/08 21:23:21.035] WARN: Authentication failure(Synch failure) (emm_sm.c:433)
How to solve this question ? Thanks
from open5gs.
The above warning has no problem. I'm hoping that your phone connects to LTE network.
However, if you have some problem, could you give me a wireshark packet capture file?
from open5gs.
put on google drive
https://drive.google.com/open?id=1hyu0EQBbwU7M80HpbWH4yQsazlJRNix0
file name is Authentication failure.pcapng
Enb ip 192.188.2.1
Thanks
from open5gs.
I've checked wireshark file.
Attach Success -> Idle-mode by UE Context Release Request -> Service Request
However, MME didn't send Initial Context Setup Request.
So, the reason is why eNodeB sends S1 Reset message after sending Service Request.
Probably, I need to see MME log.
trace:
app: 5
s1ap: 5
nas: 5
diameter: 5
gtpv2: 5
gtp: 1
You can change the trace level from 1 to 5 in the configuration file?
And then, please give me a log file to me.
Thanks!
from open5gs.
Sorry how to change configuration file ? Where ?
And where is MME log?
Cant connect to Internet now.
This is correct packet capture file
https://drive.google.com/file/d/1hyu0EQBbwU7M80HpbWH4yQsazlJRNix0/view?usp=sharing
please look again thanks
from open5gs.
I think that you use the build environment. Right?
acetcom:nextepc acetcom$ ./nextepc-epcd
NextEPC daemon v0.3.2 - Feb 7 2018 13:38:14
[02/08 22:13:26.346] WARN: pid file /Users/acetcom/Documents/git/nextepc/install/var/run/nextepc-epcd/pid overwritten -- Unclean shutdown of previous NextEPC run? (init.c:107)
PID[1803] : '/Users/acetcom/Documents/git/nextepc/install/var/run/nextepc-epcd/pid'
File Logging : '/Users/acetcom/Documents/git/nextepc/install/var/log/nextepc/nextepc.log'
MongoDB URI : 'mongodb://localhost/nextepc'
Configuration : '/Users/acetcom/Documents/git/nextepc/install/etc/nextepc/nextepc.conf'`
From the print screen, you can find the location of the log/configuration file.
File Logging : '/Users/acetcom/Documents/git/nextepc/install/var/log/nextepc/nextepc.log'
Configuration : '/Users/acetcom/Documents/git/nextepc/install/etc/nextepc/nextepc.conf'`
Use the editor(e.g vi, emacs), you can change the configuration file.
Thanks!
from open5gs.
please see packet capture file again THANKS.
log.zip
from open5gs.
It is correct! From the capture file and log file, I think that there is no problem.
Thanks!
from open5gs.
But I cant connect to internate
looks bad
from open5gs.
For internet connection, you need to setup TAP/TUN driver.
For setting TUN device.
sudo ip tuntap add name pgwtun mode tun
sudo ip addr add 45.45.0.1/16 dev pgwtun
sudo ip addr add cafe::1/16 dev pgwtun
sudo ip link set pgwtun up
If you are succeeding TUN deivce, the result are as below.
ifconfig pgwtun
pgwtun Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:45.45.0.1 P-t-P:45.45.0.1 Mask:255.255.0.0
inet6 addr: fe80::50f6:182c:5aa3:16bb/64 Scope:Link
inet6 addr: cafe::1/64 Scope:Global
...
Moreover, you need to set your network based on our guide document
Nevertheless, if you cannot connect to internet, please give me a log with 'gtp' to 5.
trace:
app: 5
s1ap: 5
nas: 5
diameter: 5
gtpv2: 5
gtp: 5
Note that gtp log is for data traffic. So, a log of log data will be filled in the log file.
gtp: 5
from open5gs.
from open5gs.
/nextepc-master$ ifconfig
eno1 Link encap:Ethernet HWaddr 54:04:a6:b9:a1:0c
inet addr:192.188.2.2 Bcast:192.188.2.255 Mask:255.255.255.0
inet6 addr: fe80::c202:c44e:86d9:b3eb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5694 errors:0 dropped:0 overruns:0 frame:0
TX packets:6397 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2043135 (2.0 MB) TX bytes:728411 (728.4 KB)
Interrupt:18 Memory:fe600000-fe620000
enp4s1 Link encap:Ethernet HWaddr ec:22:80:eb:84:22
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
enp4s2 Link encap:Ethernet HWaddr 3c:1e:04:46:9e:c4
inet addr:140.113.216.55 Bcast:140.113.216.63 Mask:255.255.255.224
inet6 addr: fe80::7420:b38d:6fd6:5837/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:26935876 errors:0 dropped:145136 overruns:0 frame:0
TX packets:17343574 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:22561265332 (22.5 GB) TX bytes:8074866094 (8.0 GB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:3891559 errors:0 dropped:0 overruns:0 frame:0
TX packets:3891559 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4265260717 (4.2 GB) TX bytes:4265260717 (4.2 GB)
pgwtun Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:45.45.0.1 P-t-P:45.45.0.1 Mask:255.255.0.0
inet6 addr: cafe::1/16 Scope:Global
inet6 addr: fe80::c73f:270e:e79:eeef/64 Scope:Link
UP POINTOPOINT NOARP MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:248 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:768 (768.0 B) TX bytes:37079 (37.0 KB)
from open5gs.
Hmm... TUN setting is good. The remained issue may be IP routing.
If you want to use another method, see the #11
Let me attach eric80s's iptable setting as below.
My host is ubuntu16.04.3, the firewall is enabled, so I added the following few rules:
echo 1 > /proc/sys/net/ipv4/ip_forward
sudo iptables -t nat -A POSTROUTING -o enp0s31f6 -j MASQUERADE
iptables -I INPUT -i pgwtun -j ACCEPT
Then, the UE can access the internet via 4G.
from open5gs.
Thank you very much.
I will try it tomorrow.
from open5gs.
Good luck with you!
from open5gs.
sudo ip route add 45.45.0.0/16 via 140.113.216.55
RTNETLINK answers: File exists
Its this correct?
from open5gs.
Where are you running this command? EPC Installed machine or the external router(which is connected with EPC).
You should execute this command on the external router. And also, this command grammar could be different with the external router.
However, eric80sās command(#11) should be executed in the EPC installed host.
from open5gs.
running on EPC Installed machine.
I dont have external router.
about eric80sās command :
pan@pan:/nextepc-master$ echo 1 > /proc/sys/net/ipv4/ip_forward/nextepc-master$ sudo echo 1 > /proc/sys/net/ipv4/ip_forward
bash: /proc/sys/net/ipv4/ip_forward: Permission denied
pan@pan:
bash: /proc/sys/net/ipv4/ip_forward: Permission denied
from open5gs.
Could you tell me your linux distribution(e.g ubutun 16.04, or fedora,..) for EPC installed machine?
Tomorrow, let me provide the exact command for iptable and sysctl.
Thanks!
from open5gs.
Linux pan 4.13.0-26-generic #29~16.04.2-Ubuntu SMP Tue Jan 9 22:00:44 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
thanks a lot
from open5gs.
Here is our suggestions for your EPC-installed Ubuntu.
- Enable ipv4 forward
$ sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"
- Enable masquerading
(Make sure that your enp4s2(140.113.216.55) interface is connected to internet)
$ sudo iptables -t nat -A POSTROUTING -o enp4s2 -j MASQUERADE
$ sudo iptables -I INPUT -i pgwtun -j ACCEPT
from open5gs.
pan@pan:/nextepc-master$ sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"/nextepc-master$ sudo iptables -t nat -A POSTROUTING -o enp4s2 -j MASQUERADE
[sudo] password for pan:
pan@pan:
pan@pan:~/nextepc-master$ sudo iptables -I INPUT -i pgwtun -j ACCEPT.
iptables v1.6.0: Couldn't load target `ACCEPT.':No such file or directory
Try `iptables -h' or 'iptables --help' for more information.
from open5gs.
Sorry...Please remove '.' after ACCEPT
sudo iptables -I INPUT -i pgwtun -j ACCEPT
from open5gs.
Sorry still cant connect to internet.
from open5gs.
Probably, I need some time to analyze it.
from open5gs.
No problem thank you.Take it easy.
I try to use another eNB( still cant connect to internet) . Maybe it will help you.
pan@pan:~/nextepc-master$ ifconfig
eno1 Link encap:Ethernet HWaddr 54:04:a6:b9:a1:0c
inet addr:10.102.81.80 Bcast:10.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::c202:c44e:86d9:b3eb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7695 errors:0 dropped:0 overruns:0 frame:0
TX packets:8241 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3295174 (3.2 MB) TX bytes:975302 (975.3 KB)
Interrupt:18 Memory:fe600000-fe620000
enp4s1 Link encap:Ethernet HWaddr ec:22:80:eb:84:22
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
enp4s2 Link encap:Ethernet HWaddr 3c:1e:04:46:9e:c4
inet addr:140.113.216.55 Bcast:140.113.216.63 Mask:255.255.255.224
inet6 addr: fe80::7420:b38d:6fd6:5837/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:27653464 errors:0 dropped:145405 overruns:0 frame:0
TX packets:17641012 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:23347237474 (23.3 GB) TX bytes:8102789674 (8.1 GB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:3999167 errors:0 dropped:0 overruns:0 frame:0
TX packets:3999167 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4283953389 (4.2 GB) TX bytes:4283953389 (4.2 GB)
pgwtun Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:45.45.0.1 P-t-P:45.45.0.1 Mask:255.255.0.0
inet6 addr: cafe::1/16 Scope:Global
inet6 addr: fe80::c73f:270e:e79:eeef/64 Scope:Link
UP POINTOPOINT NOARP MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:308 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:768 (768.0 B) TX bytes:47003 (47.0 KB)
from open5gs.
In the first eNB(192.188.2.2).It can send something out but cant receive data from Internet.
from open5gs.
From your log, you may want to use 192.168.2.2 for SGW IP address.
However, MME sends SGW GTP-U IP address(141.113.216.55) to eNB because NextEPC sends first detected IP address to the eNodeB.
GTP Protocol Stack cannot send multiple IP address to peer. So, we are just selecting first detect IP address for SGW GTP-U IP Address.
Does eNodeB can send packet to the 141.113.216.55? OR Is it only possible to send 192.168.2.2?
If 192.168.2.2 is communicated with eNodeB, you may need to change SGW GTP-U address statically.
Please, change the configuration file(nextepc.conf) like the following.
- BEFORE
sgw:
gtpc:
addr: 127.0.0.2
### if Black, GTP-U Auto Detected ###
gtpu:
- AFTER
sgw:
gtpc:
addr: 127.0.0.2
gtpu:
addr: 192.168.2.2
Regardless of the result, we may need to update the IP connectivity guide. We missed multiple interface for SGW GTP-U address.
from open5gs.
Thanks a lot.
I can connect to Internet.
from open5gs.
Wow! Great!
That sounds good to me!
Thanks!
from open5gs.
If I want to run MME HSS SGW PGW on different machine.
Is that capable to do this ? What should I modify?
Thank you
from open5gs.
Basically, nextepc-epcd
is a just handy tool for developer. You need to execute nextepc-mmed, nextepc-sgwd, nextepc-pgwd, nextepc-hssd, nextepc-pcrfd on different machine.
- Fix the configuration files based on your network.
etc/nextepc/freeDiameter/hss.conf
etc/nextepc/freeDiameter/mme.conf
etc/nextepc/freeDiameter/pcrf.conf
etc/nextepc/freeDiameter/pgw.conf
etc/nextepc/hss.conf
etc/nextepc/mme.conf
etc/nextepc/pcrf.conf
etc/nextepc/pgw.conf
etc/nextepc/sgw.conf
- Run the following commands in each machine.
./nextepc-mmed -f install/etc/nextepc/mme.conf
./nextepc-sgwd -f install/etc/nextepc/sgw.conf
./nextepc-pgwd -f install/etc/nextepc/pgw.conf
./nextepc-hssd -f install/etc/nextepc/hss.conf
./nextepc-pcrfd -f install/etc/nextepc/pcrf.conf
Thanks!
from open5gs.
When service request , it cant connect to internet again why?
from open5gs.
Oops! there is a significant problem in nextepc-sgwd process.
Null pointer is accessed during paging process. We fixed it.
Please, re-compile your source code after git pull
See the build guide for updating newly source codes.
Thank you for your comment.
from open5gs.
Ya I can connect internet again ,when service request happen.
Are you a company or college ? You fix so quickly.
Thank you.
from open5gs.
Good news!
About us? We will establish a company. Please contact a representative for more information.
Thanks!
from open5gs.
If I want to install MME HSS SGW PGW PCRF on different virtual machine(like VMware Workstation) , the building step is all the same as Ubuntu (http://nextepc.org/docs/build/5-ubuntu/) ?
Or can you write a documentation about install and configurate about MME HSS SGW PGW PCRF on different virtual machine.
Thanks!
from open5gs.
We do not have the proper documentation related to install on another machine. The only guide is the contents of the configuration file(nextepc.conf). You will need to refer to this and configure IP address.
Anyway, http://nextepc.org/docs/build/5-ubuntu/ is for Old Ubuntu Version such like trusty
. If you are using xenial(current LTS version) or artful, you need to check the http://nextepc.org/guides/2-build/.
Good luck with you!
from open5gs.
hi
I encounter a problem
nextEPC can catch the eNB, but it can't recognize my UE
wireshark is at here:
https://drive.google.com/file/d/1hyu0EQBbwU7M80HpbWH4yQsazlJRNix0/view?usp=sharing
==============================================================================
wirelab@wirelab:~/nextepc$ ./nextepc-epcd
NextEPC daemon v0.3.5 - Mar 12 2018 15:36:56
[03/12 15:57:51.248] WARN: pid file /home/wirelab/nextepc/install/var/run/nextepc-epcd/pid overwritten -- Unclean shutdown of previous NextEPC run? (init.c:112)
PID[26314] : '/home/wirelab/nextepc/install/var/run/nextepc-epcd/pid'
File Logging : '/home/wirelab/nextepc/install/var/log/nextepc/nextepc.log'
MongoDB URI : 'mongodb://localhost/nextepc'
Configuration : '/home/wirelab/nextepc/install/etc/nextepc/nextepc.conf'
[03/12 15:57:51.249] PCRF try to initialize
[03/12 15:57:51.289] PCRF initialize...done
[03/12 15:57:51.289] PGW try to initialize
[03/12 15:57:51.318] PGW initialize...done
[03/12 15:57:51.318] gtp_server() [127.0.0.3]:2123
[03/12 15:57:51.318] gtp_server() [127.0.0.3]:2152
[03/12 15:57:51.319] SGW try to initialize
[03/12 15:57:51.328] INFO: CONNECTED TO 'pgw.localdomain' (TCP,soc#7): (fd_logger.c:93)
[03/12 15:57:51.329] INFO: CONNECTED TO 'pcrf.localdomain' (TCP,soc#10): (fd_logger.c:93)
[03/12 15:57:51.330] SGW initialize...done
[03/12 15:57:51.330] gtp_server() [127.0.0.2]:2123
[03/12 15:57:51.330] gtp_server() [192.188.2.2]:2152
[03/12 15:57:51.330] HSS try to initialize
[03/12 15:57:51.363] HSS initialize...done
[03/12 15:57:51.363] MME try to initialize
[03/12 15:57:51.514] MME initialize...done
[03/12 15:57:51.514] INFO: NextEPC daemon start (main.c:157)
[03/12 15:57:51.514] gtp_server() [192.188.2.2]:2123
[03/12 15:57:51.514] gtp_server() [140.113.216.52]:2123
[03/12 15:57:51.514] gtp_server() [192.168.39.1]:2123
[03/12 15:57:51.514] gtp_client() [127.0.0.2]:2123
[03/12 15:57:51.514] s1ap_server() [192.188.2.2]:36412
[03/12 15:57:51.514] s1ap_server() [140.113.216.52]:36412
[03/12 15:57:51.514] s1ap_server() [192.168.39.1]:36412
[03/12 15:57:51.518] INFO: CONNECTED TO 'mme.localdomain' (TCP,soc#7): (fd_logger.c:93)
[03/12 15:57:51.518] INFO: CONNECTED TO 'hss.localdomain' (TCP,soc#10): (fd_logger.c:93)
[03/12 15:58:00.178] eNB-S1 accepted[192.188.2.1]:3223 in s1_path module
[03/12 15:58:00.178] eNB-S1 accepted[192.188.2.1] in master_sm module
[03/12 15:58:18.439] ERRR: Authentication failure(MAC failure) (emm_sm.c:426)
from open5gs.
from open5gs.
Hi, chengYingHsieh
Authentication failure(MAC failure) means that UE-EPC authentication is failed.
Please, check K, OPc, AMF value between USIM and NextEPC.
It can be configured with Web User Interface in NextEPC.
Thanks!
from open5gs.
Hi
I success to connect the internet
thank you very much
from open5gs.
That sounds good to me!
Thanks!
from open5gs.
Related Issues (20)
- volte_ue
- Assistance Needed with Open5GS and IMS Setup in XIAOMI UEs
- meson test failed 9 tests HOT 1
- meson test failed 9 tests
- Documentation (https://open5gs.org/open5gs/docs/) links under "@gradiant helm charts" are not reachable (404 error) HOT 2
- The slice cannot be throttled.
- Webui failing to get booted
- UE downlink data forwarding HOT 1
- [Bug]: the ogs_pool_cycle macro maybe logic invalid HOT 4
- SMFd uses first PFCP udp socket disregarding multiple IP homing
- No PFCP Session establishment response
- Vulnerability Remediations (#3206)
- [Bug]: Some assertions can be triggered HOT 3
- EAP-TLS support
- [Bug]: Delegated ipv6 prefix changes to invalid after changing UE APN ip type from dual to ipv4 only back to dual HOT 5
- NB-IOT with support for Non-IP PDN
- ogs_sbi_client_handler() failed [-1] (../lib/sbi/path.c:62) HOT 1
- UE failed to attach. Activating Failed Error HOT 1
- 5G Roaming SEPP N32-C and N32-F on separate interfaces
- 5G Roaming AMF support more than one TAI? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open5gs.