Git Product home page Git Product logo

Comments (9)

acetcom avatar acetcom commented on June 12, 2024

The problem is caused by:

[03/13 12:48:21.805] ERRR: ERROR: in '(fd_cnx_receive(c, &ts, &rcv_data.buffer, &rcv_data.length))' : Connection timed out (fd_init.c:116)

What was happening in the socket for diameter network between MME and HSS?

Could you attach the /var/log/nextepc/hss.log file?

And also, are you changing diameter configuration which is located at /etc/nextepc/freeDiameter/mme.conf and /etc/nextepc/freediameter/hss.conf?

If you are not changing the diameter configuration files, more log might be needed.
For more diameter logging, You need to change the trace level like the followings:

logger:
    file: /home/acetcom/Documents/git/nextepc/install/var/log/nextepc/nextepc.log
    trace:
        app: 1
        s1ap: 1
        nas: 1
        diameter: 30
        gtpv2: 1
        gtp: 1

The configuration(diameter: 30) could be applied in /etc/nextepc/mme.conf and /etc/nextepc/hss.conf.

Thanks!

from open5gs.

gusapleton avatar gusapleton commented on June 12, 2024

Hi,

The configuration is the default after installation, I not change nothing. See below the files.

Any helps ?

  1. hss.log:

[03/13 12:34:37.478] HSS try to terminate

[03/13 12:34:37.481] freeDiameter[6]: Initiating freeDiameter shutdown sequence (3)
[03/13 12:34:37.589] HSS terminate...done
File Logging : '/var/log/nextepc/hss.log'
MongoDB URI : 'mongodb://localhost/nextepc'
Configuration : '/etc/nextepc/hss.conf'
[03/13 12:34:37.607] HSS try to initialize
[03/13 12:34:37.627] HSS initialize...done

[03/13 12:34:37.627] INFO: NextEPC daemon start (main.c:157)
[03/13 12:35:21.719] ERRR: ERROR: in '(fd_cnx_receive(c, &ts, &rcv_data.buffer, &rcv_data.length))' : Connection timed out (fd_ini
t.c:116)
[03/13 12:36:01.647] ERRR: ERROR: in '(fd_cnx_receive(c, &ts, &rcv_data.buffer, &rcv_data.length))' : Connection timed out (fd_ini
t.c:116)
[03/13 12:36:41.251] ERRR: ERROR: in '(fd_cnx_receive(c, &ts, &rcv_data.buffer, &rcv_data.length))' : Connection timed out (fd_ini
t.c:116)
[03/13 12:37:19.911] ERRR: ERROR: in '(fd_cnx_receive(c, &ts, &rcv_data.buffer, &rcv_data.length))' : Connection timed out (fd_ini
t.c:116)
[03/13 12:37:59.397] ERRR: ERROR: in '(fd_cnx_receive(c, &ts, &rcv_data.buffer, &rcv_data.length))' : Connection timed out (fd_ini
t.c:116)

  1. /etc/nextepc/mme.conf :

For reference, see nextepc.conf

logger:
file: /var/log/nextepc/mme.log
trace:
app: 1
s1ap: 1
nas: 1
diameter: 1
gtpv2: 1

parameter:

mme:
freeDiameter: mme.conf
s1ap:
gtpc:
gummei:
plmn_id:
mcc: 001
mnc: 01
mme_gid: 2
mme_code: 1
tai:
plmn_id:
mcc: 001
mnc: 01
tac: 12345
security:
integrity_order : [ EIA1, EIA2, EIA0 ]
ciphering_order : [ EEA0, EEA1, EEA2 ]
network_name:
full: NextEPC

sgw:
gtpc:
addr: 127.0.0.2

pgw:
gtpc:
addr:
- 127.0.0.3
- ::1

  1. /etc/nextepc/hss.conf

For reference, see nextepc.conf

db_uri: mongodb://localhost/nextepc

logger:
file: /var/log/nextepc/hss.log
trace:
app: 1
diameter: 1

parameter:

hss:
freeDiameter: hss.conf

from open5gs.

acetcom avatar acetcom commented on June 12, 2024

Good!.

Could you perform the following sequence?

  1. Please update logger.trace.diameter:30 in mme.conf and hss.conf as below
logger:
   trace:
      diameter: 30
  1. Run the followings.
systemctl restart nextepc-mmed
systemctl restart nextepc-hssd
  1. Give us the mme.log and hss.log

We'll try to analyze the problem.

Thanks!

from open5gs.

gusapleton avatar gusapleton commented on June 12, 2024

Hi,

Attached nextepc log and configuration, with deep traces.

I appreciate your help

NextEPCConfig.zip

nextepcLogs1.zip

Regards

from open5gs.

acetcom avatar acetcom commented on June 12, 2024

The followings is my log.

./nextepc-hssd

03/15 23:02:41.674] freeDiameter[1]: Core state: 1 -> 2
[03/15 23:02:41.675] freeDiameter[3]: Local server address(es): 127.0.0.4{C----}
[03/15 23:02:41.675] freeDiameter[1]: Core state: 2 -> 3
[03/15 23:02:41.675] freeDiameter[1]: mme.localdomain: Connecting...
[03/15 23:02:41.675] freeDiameter[1]: 'STATE_CLOSED'	-> 'STATE_WAITCNXACK'	'mme.localdomain'
[03/15 23:02:41.675] freeDiameter[1]: Prepared 1 sets of connection parameters to peer mme.localdomain
[03/15 23:02:41.675] freeDiameter[1]: Connecting to TCP 127.0.0.2(3868)...
[03/15 23:02:41.675] freeDiameter[1]: TCP connection to 127.0.0.2(3868) failed: Connection refused
[03/15 23:02:41.675] HSS initialize...done
[03/15 23:02:41.675] freeDiameter[3]: CONNECT FAILED to mme.localdomain: All connection attempts failed, will retry later


[03/15 23:02:41.675] INFO: NextEPC daemon start (main.c:157)
[03/15 23:02:41.675] freeDiameter[1]: 'STATE_WAITCNXACK'	-> 'STATE_CLOSED'	'mme.localdomain'

./nextepc-mmed

[03/15 23:03:08.597] freeDiameter[1]: Core state: 1 -> 2
[03/15 23:03:08.597] freeDiameter[3]: Local server address(es): 127.0.0.2{C----}
[03/15 23:03:08.597] freeDiameter[1]: Core state: 2 -> 3
[03/15 23:03:08.597] freeDiameter[1]: hss.localdomain: Connecting...
[03/15 23:03:08.598] freeDiameter[1]: 'STATE_CLOSED'	-> 'STATE_WAITCNXACK'	'hss.localdomain'
[03/15 23:03:08.598] freeDiameter[1]: Prepared 1 sets of connection parameters to peer hss.localdomain
[03/15 23:03:08.598] freeDiameter[1]: Connecting to TCP 127.0.0.4(3868)...
[03/15 23:03:08.599] freeDiameter[1]: hss.localdomain: Connection established, {----} TCP,#11->127.0.0.4(3868)

If MME connected with HSS, hss.log is below

[03/15 23:01:37.867] freeDiameter[1]: Incoming connection: '{----} TCP srv [127.0.0.4]:3868 (8)' <- '127.0.0.4'   {{----} TCP from [127.0.0.4]:64109 (8<-11)}

However, your hss.log is different with me. 127.0.0.1 try to connect MME diameter.

[03/14 16:12:49.971] freeDiameter[1]: Incoming connection: '{----} TCP srv [127.0.0.4]:3868 (6)' <- 'localhost'   {{----} TCP from [127.0.0.1]:60704 (6<-8)}
[03/14 16:13:09.971] ERRR: ERROR: in '(fd_cnx_receive(c, &ts, &rcv_data.buffer, &rcv_data.length))' :   Connection timed out (fd_init.c:116)

Are you using docker or VM environment?
Or Is there any other dimaeter application?

We suggest to use an initial Ubuntu machine for the first time.

Thanks!

from open5gs.

gusapleton avatar gusapleton commented on June 12, 2024

Im using a virgin Ubuntu 16.04.4 machine, on a virtual machine.
Selinux , iptables and AppArmor are off.
No other application was installed.
Maybe is a bug on the latest version, are you using the latest version ?

Regards

from open5gs.

acetcom avatar acetcom commented on June 12, 2024

In Windows 7 machine, I've installed VirtualBox. And also, my guest OS is ubuntu 16.04.4. I don't know what is your virtual machine. But I believe it might be a similar approach.

After sudo apt-get install nextepc, the followings are my log file.

acetcom@sejin123:/var/log/nextepc$ sudo cat mme.log 
  File Logging : '/var/log/nextepc/mme.log'
  Configuration : '/etc/nextepc/mme.conf'
[03/16 11:50:51.051] MME try to initialize
[03/16 11:50:51.342] gtp_server() [10.0.2.15]:2123
[03/16 11:50:51.342] gtp_client() [127.0.0.2]:2123
[03/16 11:50:51.342] s1ap_server() [10.0.2.15]:36412
[03/16 11:50:51.342] MME initialize...done


[03/16 11:50:51.342] INFO: NextEPC daemon start (main.c:157)
[03/16 11:51:16.071] INFO: CONNECTED TO 'hss.localdomain' (TCP,soc#11): (fd_logger.c:93)

acetcom@sejin123:/var/log/nextepc$ sudo cat mme.log 
  File Logging : '/var/log/nextepc/mme.log'
  Configuration : '/etc/nextepc/mme.conf'
[03/16 11:50:51.051] MME try to initialize
[03/16 11:50:51.342] gtp_server() [10.0.2.15]:2123
[03/16 11:50:51.342] gtp_client() [127.0.0.2]:2123
[03/16 11:50:51.342] s1ap_server() [10.0.2.15]:36412
[03/16 11:50:51.342] MME initialize...done


[03/16 11:50:51.342] INFO: NextEPC daemon start (main.c:157)
[03/16 11:51:16.071] INFO: CONNECTED TO 'hss.localdomain' (TCP,soc#11): (fd_logger.c:93)

So, diameter protocol is correctly setup between MME and HSS.

Thanks!

from open5gs.

gusapleton avatar gusapleton commented on June 12, 2024

I got it works mostly of the time, at least after linux reboot.

Was not clear the root cause, maybe /etc/hosts (I did some changes) or the order of the applications starts.

But at the moment I got it working and attach an UE.

Regards

from open5gs.

acetcom avatar acetcom commented on June 12, 2024

The order in which you run mme/hss/sgw/pgw/pcrf is not important. We designed that they work in any order. And it will not be /etc/hosts. We have not set diameter default configuration to work with domain name. In /etc/nextepc/freeDiameter/*.conf, all default settings are set to run at IP address (127.0.0.x) instead of domain name.

We will let you know if we get the good fortune to be in the same situation as you.
Enjoy NextEPC.

Thanks!

from open5gs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.