Git Product home page Git Product logo

ueransim's People

Contributors

a-andre avatar abousselmi avatar acetcom avatar aligungr avatar brianchennn avatar brodeuralexis avatar dabch avatar dendod96 avatar edipascale avatar fmeisel avatar haotingc avatar hbouaddi avatar j13tw avatar louisroyer avatar mickaellg avatar namssob avatar oliveiraleo avatar ss920386 avatar stg22 avatar turtle11311 avatar zyddnys avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ueransim's Issues

support for SRS lte

hello i want to know weather can UERANSIM can be connected to srslte core.

pdu session management failed

after sucesssful registration pdu session management failed. i have using UERANSIM-master is it the latest version

UERANSIM is support the SDR(such as USRP)?

Hello.

I have plan that construct 5G environment using UERANSIM.
So.. I have one question about UERANSIM.

The UERANSIM is support the SDR(such as USRP)?
I have USRP X300 and will using for 5G environment.

If you can reply this question, please.

Thanks.

Ping timeout for google.com

Hi,

I installed Open5GS v2.1.1 and UERANSIM v2.2.1 on the same VM. I successfully established PDU connection, but getting [ERRO] [UEAPP] [ue-901700000000003] Ping timeout for google.com (172.217.24.14) after 3 sec no response.
Here is my log:

UERANSIM v2.2.1
Selected profile: "open5gs"
2021-01-06 13:21:28.387 [INFO] [SYS] UERANSIM agent has been started.
2021-01-06 13:23:01.520 [INFO] [CONN] [gnb-1] Trying to establish SCTP connection... (127.0.0.5:38412)
2021-01-06 13:23:01.540 [INFO] [CONN] [gnb-1] SCTP connection established
2021-01-06 13:23:02.062 [SUCC] [PROC] [gnb-1] NGSetup procedure is successful
2021-01-06 13:23:30.299 [INFO] [STATE] [ue-901700000000003] UE switches to state: MM_DEREGISTERED/MM_DEREGISTERED__PLMN_SEARCH
2021-01-06 13:23:30.513 [INFO] [CONN] [ue-901700000000003] UE connected to gNB.
2021-01-06 13:23:30.521 [INFO] [STATE] [ue-901700000000003] UE switches to state: MM_DEREGISTERED/MM_DEREGISTERED__NORMAL_SERVICE
2021-01-06 13:23:30.611 [INFO] [STATE] [ue-901700000000003] UE switches to state: MM_REGISTERED_INITIATED/MM_REGISTERED_INITIATED__NA
2021-01-06 13:23:32.312 [INFO] [STATE] [ue-901700000000003] UE switches to state: RM_REGISTERED
2021-01-06 13:23:32.314 [INFO] [STATE] [ue-901700000000003] UE switches to state: MM_REGISTERED/MM_REGISTERED__NORMAL_SERVICE
2021-01-06 13:23:32.314 [SUCC] [PROC] [ue-901700000000003] Registration is successful
2021-01-06 13:23:47.597 [INFO] [TIMER] [ue-901700000000003] NAS Timer expired: NasTimer{timerCode=3510, interval=15}
2021-01-06 13:24:22.026 [INFO] [UEAPP] [ue-901700000000003] IPv4 connection setup with local IP: 10.45.0.2
2021-01-06 13:24:22.041 [INFO] [FLOW] [ue-901700000000003] PDU session established: PDU session identity value 1
2021-01-06 13:24:22.109 [SUCC] [PROC] [gnb-1] PDU Session Establishment is successful
2021-01-06 13:24:22.111 [SUCC] [PROC] [ue-901700000000003] PDU Session Establishment is successful
2021-01-06 13:25:51.130 [ERRO] [UEAPP] [ue-901700000000003] Ping timeout for google.com (172.217.24.14) after 3 sec no response

Here is upf log:
Open5GS daemon v2.1.1-16-gc9cfc4c

01/06 13:18:42.852: [app] INFO: Configuration: '/home/open5gs/open5gs/install/etc/open5gs/upf.yaml' (../lib/app/ogs-init.c:129)
01/06 13:18:42.853: [app] INFO: File Logging: '/home/open5gs/open5gs/install/var/log/open5gs/upf.log' (../lib/app/ogs-init.c:132)
01/06 13:18:42.859: [app] INFO: UPF initialize...done (../src/upf/app.c:31)
01/06 13:18:42.859: [pfcp] INFO: pfcp_server() [127.0.0.7]:8805 (../lib/pfcp/path.c:32)
01/06 13:18:42.859: [gtp] INFO: gtp_server() [127.0.0.7]:2152 (../lib/gtp/path.c:32)
01/06 13:18:46.645: [pfcp] INFO: ogs_pfcp_connect() [127.0.0.4]:8805 (../lib/pfcp/path.c:60)
01/06 13:18:46.647: [upf] INFO: PFCP associated (../src/upf/pfcp-sm.c:173)
01/06 13:24:21.900: [upf] INFO: [Added] Number of UPF-Sessions is now 1 (../src/upf/context.c:446)
01/06 13:24:21.900: [upf] INFO: UE F-SEID[CP:0x1,UP:0x1] APN[internet] PDN-Type[1] IPv4[10.45.0.2] IPv6[] (../src/upf/context.c:608)
01/06 13:24:22.029: [gtp] INFO: gtp_connect() [127.0.0.1]:2152 (../lib/gtp/path.c:59)

These are the iptable rules. enp0s3 is the internet interface.
sudo iptables -S -t nat

-P PREROUTING ACCEPT
-P INPUT ACCEPT
-P OUTPUT ACCEPT
-P POSTROUTING ACCEPT
-A POSTROUTING -o enp0s3 -j MASQUERADE

sudo iptables -S

-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
-A INPUT -s 10.45.0.0/16 -j ACCEPT
-A FORWARD -i ogstun -o enp0s3 -j ACCEPT
-A FORWARD -i enp0s3 -o ogstun -j ACCEPT

sudo sysctl net.ipv4.ip_forward
net.ipv4.ip_forward = 1

Thanks.

On Using the UERANSIM TUN Interface

I want to inform the community that User Plane functionalities are ready to use.

We are introducing the TUN interface in order to use UE's internet connectivity. This feature can be considered as beta and usage method is subject to change, but I think the feature seems more or less stable. And as always we are open to feedbacks, bug reports, pull requests etc.

In our tests, we have successfully browsed the internet using 3 different core networks. (Open5GS and 2 other commercial CNs)

You may want to try this feature for yourself. Related documentation can be found at: Using Data Plane Features

For your information, currently we only support IPv4 protocol. Other PDU types are in road map and not implemented yet.

- Ali

About ignoreStreamIds for connecting to Open5GS

In the latest version of Open5GS and UERANSIM, when I run NG-Setup / Registration / PDU session establishment when ignoreStreamIds=false/true and checked pcap files, these packets look like the same SID's sequences as below.

root@open5gs01:~# tcpdump -r ignoreStreamIdsFalse.pcap |grep sctp |grep SID
reading from file ignoreStreamIdsFalse.pcap, link-type LINUX_SLL (Linux cooked)
01:18:47.792590 IP localhost.47493 > localhost.38412: sctp (1) [DATA] (B)(E) [TSN: 2277067741] [SID: 0] [SSEQ 0] [PPID 0x3c] 
01:18:47.793196 IP localhost.38412 > localhost.47493: sctp (1) [DATA] (B)(E) [TSN: 2767267129] [SID: 0] [SSEQ 0] [PPID 0x3c] 
01:18:50.627578 IP localhost.47493 > localhost.38412: sctp (1) [DATA] (B)(E) [TSN: 2277067742] [SID: 1] [SSEQ 0] [PPID 0x3c] 
01:18:50.630447 IP localhost.38412 > localhost.47493: sctp (1) [SACK] [cum ack 2277067742] [a_rwnd 106496] [#gap acks 0] [#dup tsns 0] , (2) [DATA] (B)(E) [TSN: 2767267130] [SID: 1] [SSEQ 0] [PPID 0x3c] 
01:18:50.776327 IP localhost.47493 > localhost.38412: sctp (1) [SACK] [cum ack 2767267130] [a_rwnd 106496] [#gap acks 0] [#dup tsns 0] , (2) [DATA] (B)(E) [TSN: 2277067743] [SID: 1] [SSEQ 1] [PPID 0x3c] 
01:18:50.778036 IP localhost.38412 > localhost.47493: sctp (1) [SACK] [cum ack 2277067743] [a_rwnd 106496] [#gap acks 0] [#dup tsns 0] , (2) [DATA] (B)(E) [TSN: 2767267131] [SID: 1] [SSEQ 1] [PPID 0x3c] 
01:18:51.171621 IP localhost.47493 > localhost.38412: sctp (1) [DATA] (B)(E) [TSN: 2277067744] [SID: 1] [SSEQ 2] [PPID 0x3c] 
01:18:51.176046 IP localhost.38412 > localhost.47493: sctp (1) [SACK] [cum ack 2277067744] [a_rwnd 106496] [#gap acks 0] [#dup tsns 0] , (2) [DATA] (B)(E) [TSN: 2767267132] [SID: 1] [SSEQ 2] [PPID 0x3c] 
01:18:51.227277 IP localhost.47493 > localhost.38412: sctp (1) [SACK] [cum ack 2767267132] [a_rwnd 106496] [#gap acks 0] [#dup tsns 0] , (2) [DATA] (B)(E) [TSN: 2277067745] [SID: 1] [SSEQ 3] [PPID 0x3c] 
01:18:51.425847 IP localhost.47493 > localhost.38412: sctp (1) [DATA] (B)(E) [TSN: 2277067746] [SID: 1] [SSEQ 4] [PPID 0x3c] 
01:18:51.426174 IP localhost.38412 > localhost.47493: sctp (1) [SACK] [cum ack 2277067746] [a_rwnd 106496] [#gap acks 0] [#dup tsns 0] , (2) [DATA] (B)(E) [TSN: 2767267133] [SID: 1] [SSEQ 3] [PPID 0x3c] 
01:18:55.568444 IP localhost.47493 > localhost.38412: sctp (1) [DATA] (B)(E) [TSN: 2277067747] [SID: 1] [SSEQ 5] [PPID 0x3c] 
01:18:55.573410 IP localhost.38412 > localhost.47493: sctp (1) [SACK] [cum ack 2277067747] [a_rwnd 106496] [#gap acks 0] [#dup tsns 0] , (2) [DATA] (B)(E) [TSN: 2767267134] [SID: 1] [SSEQ 4] [PPID 0x3c] 
01:18:55.628891 IP localhost.47493 > localhost.38412: sctp (1) [SACK] [cum ack 2767267134] [a_rwnd 106496] [#gap acks 0] [#dup tsns 0] , (2) [DATA] (B)(E) [TSN: 2277067748] [SID: 1] [SSEQ 6] [PPID 0x3c] 
root@open5gs01:~# tcpdump -r ignoreStreamIdsTrue.pcap |grep sctp |grep SID
reading from file ignoreStreamIdsTrue.pcap, link-type LINUX_SLL (Linux cooked)
01:16:23.003234 IP localhost.47509 > localhost.38412: sctp (1) [DATA] (B)(E) [TSN: 969171229] [SID: 0] [SSEQ 0] [PPID 0x3c] 
01:16:23.003399 IP localhost.38412 > localhost.47509: sctp (1) [DATA] (B)(E) [TSN: 2583310719] [SID: 0] [SSEQ 0] [PPID 0x3c] 
01:16:27.774161 IP localhost.47509 > localhost.38412: sctp (1) [DATA] (B)(E) [TSN: 969171230] [SID: 1] [SSEQ 0] [PPID 0x3c] 
01:16:27.777326 IP localhost.38412 > localhost.47509: sctp (1) [SACK] [cum ack 969171230] [a_rwnd 106496] [#gap acks 0] [#dup tsns 0] , (2) [DATA] (B)(E) [TSN: 2583310720] [SID: 1] [SSEQ 0] [PPID 0x3c] 
01:16:27.916062 IP localhost.47509 > localhost.38412: sctp (1) [SACK] [cum ack 2583310720] [a_rwnd 106496] [#gap acks 0] [#dup tsns 0] , (2) [DATA] (B)(E) [TSN: 969171231] [SID: 1] [SSEQ 1] [PPID 0x3c] 
01:16:27.917604 IP localhost.38412 > localhost.47509: sctp (1) [SACK] [cum ack 969171231] [a_rwnd 106496] [#gap acks 0] [#dup tsns 0] , (2) [DATA] (B)(E) [TSN: 2583310721] [SID: 1] [SSEQ 1] [PPID 0x3c] 
01:16:28.280503 IP localhost.47509 > localhost.38412: sctp (1) [DATA] (B)(E) [TSN: 969171232] [SID: 1] [SSEQ 2] [PPID 0x3c] 
01:16:28.285140 IP localhost.38412 > localhost.47509: sctp (1) [SACK] [cum ack 969171232] [a_rwnd 106496] [#gap acks 0] [#dup tsns 0] , (2) [DATA] (B)(E) [TSN: 2583310722] [SID: 1] [SSEQ 2] [PPID 0x3c] 
01:16:28.334810 IP localhost.47509 > localhost.38412: sctp (1) [SACK] [cum ack 2583310722] [a_rwnd 106496] [#gap acks 0] [#dup tsns 0] , (2) [DATA] (B)(E) [TSN: 969171233] [SID: 1] [SSEQ 3] [PPID 0x3c] 
01:16:28.533839 IP localhost.47509 > localhost.38412: sctp (1) [DATA] (B)(E) [TSN: 969171234] [SID: 1] [SSEQ 4] [PPID 0x3c] 
01:16:28.534244 IP localhost.38412 > localhost.47509: sctp (1) [SACK] [cum ack 969171234] [a_rwnd 106496] [#gap acks 0] [#dup tsns 0] , (2) [DATA] (B)(E) [TSN: 2583310723] [SID: 1] [SSEQ 3] [PPID 0x3c] 
01:16:32.713980 IP localhost.47509 > localhost.38412: sctp (1) [DATA] (B)(E) [TSN: 969171235] [SID: 1] [SSEQ 5] [PPID 0x3c] 
01:16:32.719471 IP localhost.38412 > localhost.47509: sctp (1) [SACK] [cum ack 969171235] [a_rwnd 106496] [#gap acks 0] [#dup tsns 0] , (2) [DATA] (B)(E) [TSN: 2583310724] [SID: 1] [SSEQ 4] [PPID 0x3c] 
01:16:32.774500 IP localhost.47509 > localhost.38412: sctp (1) [SACK] [cum ack 2583310724] [a_rwnd 106496] [#gap acks 0] [#dup tsns 0] , (2) [DATA] (B)(E) [TSN: 969171236] [SID: 1] [SSEQ 6] [PPID 0x3c]

Is it generally desirable to set ignoreStreamIds=false? Or true?

Sorry if I misunderstand.

Suci generation

Hello,
Is it possible to generate an encrypted Suci instead of using "Null-Scheme" for Suci generation?
Or is it planned?
Thanks for your support.

RRC

Hi
As I checked history version of 1.1.0 it was mentioned "RRC encoding implementation".
I want to ask how This feature can be tested? Can I see the packets in wireshark?

Thank you

issue about connect to free5GC

Hi UERANSIM team,
We met a problem when we use the config "free5gc"
Have you met the problem about the below error?

time="2020-09-02T11:34:51+08:00" level=info msg="supi conversion => imsi-002089300007487\n" func=free5gc/src/udm/producer.HandleGenerateAuthData file="/home/daily/free5gc/src/udm/producer/generate_auth_data.go:35" UDM=UEAU
time="2020-09-02T11:34:51+08:00" level=error msg="Return from UDR QueryAuthSubsData error" func=free5gc/src/udm/producer.HandleGenerateAuthData file="/home/daily/free5gc/src/udm/producer/generate_auth_data.go:40" UDM=UEAU
time="2020-09-02T11:34:51+08:00" level=info msg="403 Forbidden" func=free5gc/src/ausf/producer.UeAuthPostRequestProcedure file="/home/daily/free5gc/src/ausf/producer/ue_authentication.go:110" AUSF=UeAuthPost

Thanks.

support of multiple core netwrork

hello i want to know whether the UERANSIM can be connected to multiple core network simultaneously. i want to perform the slicing of the network where each core networking serving differenet purpose

Connection to AMF times out (open5gs)

Hi,

I'm trying to connect UERANSIM to open5gs and I'm having some trouble with the gNB-AMF/N2 connection.
The connection cannot be constructed and the run-script then times out. I can affirm that the IP address and port number is correct and the packets arrive on the other side (using tshark). The request is a INIT, the AMF replies with a INIT_ACK but then UERANSIM (or the Ubuntu where it runs on) sends an ABORT. I've looked into the source code and it seems like the connection is handled by com.sun.nio.sctp.SctpChannel. I cannot find any documentation on why the Aborts are sent.

Does anyone know why an ABORT could be sent over SCTP before even a successfull connection? If I change the port of the AMF in UERANSIM without changing the actual port in open5gs, no INIT_ACK is sent, but a ABORT is replied (by the AMF-host). The ports and the AMF must thus be correctly set up. The AMF does not even show a log entry at all (which is strange).

Did anyone have similar issues? Is this maybe even a bug in one of the systems?

Thanks a lot!

initial registration request

hello, i have a query regarding the initial registration request sent by the UE to gnb. in wireshark i am able to see the registration request which is sent from gnb to AMF but unable to see the registration request sent from UE to gnb . is it not implemented?

error in rrc message

hello while running the new update of UERANSIM i am getting error "UE context could not found in receiveRrcMessage" . i have checked the configuration on both side ie . CORE and gnb both are same.

[Question] master branch can't work with Free5GC (Registration Request issue)

Hello @aligungr,

The cli function is awesome, I can write the customize testing script as need.
But I tried to run UERANSIM@master with [email protected], it has some issue when sending UE RegistrationRequest.

The current version of UERANSIM sends the RegistrationComplete message to AMF, and as the following definition in 3GPP TS 24.502 4.2.2.2, if AMF receives the RegistrationComplete message, and PDUSessionList wasn't include in RegistrationRequest, AMF will send UEContextReleaseCommand to UE, so the connection breaks and UE can't establish the PDU session.

image

Compare to the previous version of UERANSIM(7c89a4b), it was able to work with free5GC, and its UE doesn't send RegistrationComplete message.

image

Could you please help me to solve this issue?

Thanks.

ping time out

previously i was able to ping the google but now suddenly i am getting the error [ERROR] [UE_APP] [ue-imsi-901700000000003] Ping timeout for google.com (172.217.163.142) after 3 sec no response. plzz help

Initial registration error on free5GC

Hi,
I'm using the lastest version of Free5GC (in docker). I'm getting an error while performing initial-registration. I'm using the default configurations in free5GC. The user is already added via webui.

Here is the snippet of the log:

`[2020-08-19 14:15:36.303] [DEBUG] [MESSAGING] Plain NAS PDU: 7e005600020000211b5a36ad3bc5b1c1d3c5487a57eb81ef2010dc52489d70ac800044c036c727efedad
[2020-08-19 14:15:36.304] [FUNC_IN] Handling: 5G AKA Authentication Request
[2020-08-19 14:15:36.305] [WARNING] [CONFIG] USE_SQN_HACK: true
[2020-08-19 14:15:36.305] [DEBUG] [VALUE] received rand: 1b5a36ad3bc5b1c1d3c5487a57eb81ef
[2020-08-19 14:15:36.305] [DEBUG] [VALUE] received autn: dc52489d70ac800044c036c727efedad
[2020-08-19 14:15:36.376] [DEBUG] [VALUE] calculated res: 77325b4c0eb3282b
[2020-08-19 14:15:36.376] [DEBUG] [VALUE] calculated ck: 3d0dd4bbe79c93102901d150b020c0d0
[2020-08-19 14:15:36.377] [DEBUG] [VALUE] calculated ik: 84098fa171276feb9377dadfce4658c6
[2020-08-19 14:15:36.378] [DEBUG] [VALUE] calculated milenageAk: 3a042f157025
[2020-08-19 14:15:36.378] [DEBUG] [VALUE] calculated milenageMac: 1e89dd45bb69ecaf
[2020-08-19 14:15:36.379] [DEBUG] [VALUE] used snn: 5G:mnc093.mcc208.3gppnetwork.org
[2020-08-19 14:15:36.379] [DEBUG] [VALUE] used sqn: e65667880089
[2020-08-19 14:15:36.380] [ERROR] [PROC] AUTN validation MAC mismatch. expected: 1e89dd45bb69ecaf received: 44c036c727efedad
[2020-08-19 14:15:36.382] [DEBUG] [VALUE] autnCheck: MAC_FAILURE
[2020-08-19 14:15:36.382] [FUNC_IN] Sending NAS message: AuthenticationFailure
[2020-08-19 14:15:36.390] [DEBUG] [MESSAGING] Plain NAS as JSON: {
"mmCause": {
"value": {
"value": 20,
"name": "MAC failure"
}
},
"securityHeaderType": {
"value": 0,
"name": "Plain 5GS NAS message, not security protected"
},
"messageType": {
"value": 89,
"name": "Authentication failure"
},
"extendedProtocolDiscriminator": {
"value": 126,
"name": "5GS mobility management messages"
}
}
[2020-08-19 14:15:36.390] [DEBUG] [MESSAGING] Plain NAS PDU: 7e005914
[2020-08-19 14:15:36.391] [DEBUG] [MESSAGING] Secured NAS as JSON {
"mmCause": {
"value": {
"value": 20,
"name": "MAC failure"
}
},
"securityHeaderType": {
"value": 0,
"name": "Plain 5GS NAS message, not security protected"
},
"messageType": {
"value": 89,
"name": "Authentication failure"
},
"extendedProtocolDiscriminator": {
"value": 126,
"name": "5GS mobility management messages"
}
}

`

Thanks

Cannot compile ASN files

Hi ,

When I compile the ASN files at step 4.8, it failed with below issue. Could you let me know how to fix it?

Error SystemError : File /tmp/asn16229926315433191916.xml not found. Check that /home/lnatrung/ue-ran-sim/ASNSDK-TCE-JAVA-COMP-PC-LINUX-BIN64/Compiler/bin/asnp is executable. Line 0 Column 0

Thanks,
Trung.

rrc setup request

hello @aligungr i am unable to see rrc setup request which is given by UE to gnb during initial 5G registration. is rrc procedure not implemented in UERANSIM

Nausf_UEAU Authenticate Request Failed: &{Type: Title: Status:500 Detail: Instance: Cause:AV_GENERATION_PROBLEM

Amf error logs

2020-10-19T10:30:57Z [INFO][UDR][DataRepo] Handle QueryAuthSubsData
2020-10-19T10:30:57Z [INFO][UDR][GIN] | 404 | 127.0.0.1 | GET | /nudr-dr/v1/subscription-data/imsi-20893000000uthentication-subscription |
2020-10-19T10:30:57Z [ERRO][UDM][UEAU] Return from UDR QueryAuthSubsData error
2020-10-19T10:30:57Z [INFO][UDM][GIN] | 403 | 127.0.0.1 | POST | /nudm-ueau/v1/suci-0-208-93-0000-0-0-000000000erate-auth-data |
2020-10-19T10:30:57Z [ERRO][AMF][Gmm] Nausf_UEAU Authenticate Request Failed: &{Type: Title: Status:500 Detail: InstanceLEM InvalidParams:[]}
2020-10-19T10:31:57Z [INFO][AMF][NGAP] [AMF] Uplink Nas Transport
2020-10-19T10:31:57Z [ERRO][AMF][Gmm] UE state mismatch: receieve gmm message[message type 0x41] at Authentication state
2020-10-19T10:44:37Z [INFO][AMF][NGAP] [AMF] SCTP Accept from: 127.0.0.1/143.110.190.57/10.47.0.5/10.122.0.2/172.17.0.1/192.188.3.1/192.187.3.1:46383
2020-10-19T10:44:38Z [INFO][AMF][NGAP] Create a new NG connection for: 127.0.0.1/143.110.190.57/10.47.0.5/10.122.0.2/172.17.0.1/192.188.3.1/192.187.3.1:46383
2020-10-19T10:44:38Z [INFO][AMF][NGAP] [AMF] NG Setup request
2020-10-19T10:44:38Z [INFO][AMF][NGAP] [AMF] Send NG-Setup response
2020-10-19T10:44:48Z [INFO][AMF][NGAP] [AMF] Initial UE Message
2020-10-19T10:44:48Z [INFO][AMF][Gmm] [AMF] Handle Registration Request
2020-10-19T10:44:48Z [INFO][AMF][Gmm] Authentication procedure
2020-10-19T10:44:48Z [INFO][UDM][UEAU] Handle GenerateAuthDataRequest
2020-10-19T10:44:48Z [INFO][UDM][UEAU] suciPart [suci 0 208 93 0000 0 0 0000000003]
2020-10-19T10:44:48Z [INFO][UDM][UEAU] scheme 0
2020-10-19T10:44:48Z [INFO][UDM][UEAU] SUPI type is IMSI
2020-10-19T10:44:48Z [INFO][UDR][DataRepo] Handle QueryAuthSubsData
2020-10-19T10:44:48Z [INFO][UDR][GIN] | 404 | 127.0.0.1 | GET | /nudr-dr/v1/subscription-data/imsi-208930000000003/authentication-data/authentication-subscription |
2020-10-19T10:44:48Z [ERRO][UDM][UEAU] Return from UDR QueryAuthSubsData error
2020-10-19T10:44:48Z [INFO][UDM][GIN] | 403 | 127.0.0.1 | POST | /nudm-ueau/v1/suci-0-208-93-0000-0-0-0000000003/security-information/generate-auth-data |
2020-10-19T10:44:48Z [ERRO][AMF][Gmm] Nausf_UEAU Authenticate Request Failed: &{Type: Title: Status:500 Detail: Instance: Cause:AV_GENERATION_PROBLEM InvalidParams:[]}

GNB and Imsi Logs

==> logs/gnb-1.log <==
[2020-10-19 10:44:38.398] [FUNC_IN] Handling: NGSetupResponse
[2020-10-19 10:44:38.399] [SUCCESS] [PROCEDURE_RESULT] NGSetup procedure is successful

==> logs/global.log <==
[2020-10-19 10:44:38.400] [SUCCESS] [PROCEDURE_RESULT] [gnb-1] NGSetup procedure is successful

==> logs/gnb-1.log <==
[2020-10-19 10:44:38.405] [FUNC_OUT]

==> logs/ue-imsi-208930000000003.log <==
[2020-10-19 10:44:48.148] [FUNC_IN] Starting: Registration procedure (initial registration)
[2020-10-19 10:44:48.154] [INFO] [STATE] UE switches to state: MM_REGISTERED_INITIATED/MM_REGISTERED_INITIATED__NA
[2020-10-19 10:44:48.157] [FUNC_IN] Get or Generate SUCI
[2020-10-19 10:44:48.159] [DEBUG] [PROC] T3519 is not running, new SUCI generated.
[2020-10-19 10:44:48.159] [DEBUG] [NAS_TIMER] NAS Timer 3519 started with interval: 60s
[2020-10-19 10:44:48.160] [FUNC_OUT]
[2020-10-19 10:44:48.161] [DEBUG] [NAS_TIMER] NAS Timer 3510 started with interval: 15s
[2020-10-19 10:44:48.162] [FUNC_IN] Sending NAS message: RegistrationRequest
[2020-10-19 10:44:48.214] [DEBUG] [MESSAGING] Plain NAS as JSON: {
"registrationType": {
"followOnRequestPending": {
"value": 0,
"name": "No follow-on request pending"
},
"registrationType": {
"value": 1,
"name": "initial registration"
}
},
"nasKeySetIdentifier": {
"tsc": {
"value": 0,
"name": "Native security context (for KSI_AMF)"
},
"nasKeySetIdentifier": 7
},
"mobileIdentity": {
"mcc": {
"value": 208,
"name": "France"
},
"mnc": {
"value": 93,
"name": "93"
},
"routingIndicator": "0000",
"protectionSchemaId": {
"value": 0,
"name": "Null scheme"
},
"homeNetworkPublicKeyIdentifier": {
"value": "0x00"
},
"schemeOutput": "0000000003"
},
"ueSecurityCapability": {
"supported_5G_EA0": true,
"supported_128_5G_EA1": true,
"supported_128_5G_EA2": true,
"supported_128_5G_EA3": true,
"supported_5G_EA4": false,
"supported_5G_EA5": false,
"supported_5G_EA6": false,
"supported_5G_EA7": false,
"supported_5G_IA0": true,
"supported_128_5G_IA1": true,
"supported_128_5G_IA2": true,
"supported_128_5G_IA3": true,
"supported_5G_IA4": false,
"supported_5G_IA5": false,
"supported_5G_IA6": false,
"supported_5G_IA7": false,
"supported_EEA0": true,
"supported_128_EEA1": true,
"supported_128_EEA2": true,
"supported_128_EEA3": true,
"supported_EEA4": false,
"supported_EEA5": false,
"supported_EEA6": false,
"supported_EEA7": false,
"supported_EIA0": true,
"supported_128_EIA1": true,
"supported_128_EIA2": true,
"supported_128_EIA3": true,
"supported_EIA4": false,
"supported_EIA5": false,
"supported_EIA6": false,
"supported_EIA7": false
},
"mmCapability": {
"s1Mode": {
"value": 0,
"name": "S1 mode not supported"
},
"hoAttach": {
"value": 0,
"name": "not supported"
},
"lpp": {
"value": 0,
"name": "LPP in N1 mode not supported"
}
},
"requestedNSSAI": {
"sNssais": [
{
"sst": {
"value": "0x01"
},
"sd": {
"value": "0x010203"
}
}
]
},
"updateType": {
"smsRequested": {
"value": 1,
"name": "SMS over NAS supported"
},
"ngRanRcu": {
"value": 0,
"name": "NG-RAN radio capability update not needed"
}
},
"securityHeaderType": {
"value": 0,
"name": "Plain 5GS NAS message, not security protected"
},
"messageType": {
"value": 65,
"name": "Registration request"
},
"extendedProtocolDiscriminator": {
"value": 126,
"name": "5GS mobility management messages"
}
}
[2020-10-19 10:44:48.216] [DEBUG] [MESSAGING] Plain NAS PDU: 7e004171000d0102f8390000000000000000301001002e04f0f0f0f02f050401010203530101
[2020-10-19 10:44:48.218] [DEBUG] [MESSAGING] Secured NAS as JSON {
"registrationType": {
"followOnRequestPending": {
"value": 0,
"name": "No follow-on request pending"
},
"registrationType": {
"value": 1,
"name": "initial registration"
}
},
"nasKeySetIdentifier": {
"tsc": {
"value": 0,
"name": "Native security context (for KSI_AMF)"
},
"nasKeySetIdentifier": 7
},
"mobileIdentity": {
"mcc": {
"value": 208,
"name": "France"
},
"mnc": {
"value": 93,
"name": "93"
},
"routingIndicator": "0000",
"protectionSchemaId": {
"value": 0,
"name": "Null scheme"
},
"homeNetworkPublicKeyIdentifier": {
"value": "0x00"
},
"schemeOutput": "0000000003"
},
"ueSecurityCapability": {
"supported_5G_EA0": true,
"supported_128_5G_EA1": true,
"supported_128_5G_EA2": true,
"supported_128_5G_EA3": true,
"supported_5G_EA4": false,
"supported_5G_EA5": false,
"supported_5G_EA6": false,
"supported_5G_EA7": false,
"supported_5G_IA0": true,
"supported_128_5G_IA1": true,
"supported_128_5G_IA2": true,
"supported_128_5G_IA3": true,
"supported_5G_IA4": false,
"supported_5G_IA5": false,
"supported_5G_IA6": false,
"supported_5G_IA7": false,
"supported_EEA0": true,
"supported_128_EEA1": true,
"supported_128_EEA2": true,
"supported_128_EEA3": true,
"supported_EEA4": false,
"supported_EEA5": false,
"supported_EEA6": false,
"supported_EEA7": false,
"supported_EIA0": true,
"supported_128_EIA1": true,
"supported_128_EIA2": true,
"supported_128_EIA3": true,
"supported_EIA4": false,
"supported_EIA5": false,
"supported_EIA6": false,
"supported_EIA7": false
},
"mmCapability": {
"s1Mode": {
"value": 0,
"name": "S1 mode not supported"
},
"hoAttach": {
"value": 0,
"name": "not supported"
},
"lpp": {
"value": 0,
"name": "LPP in N1 mode not supported"
}
},
"requestedNSSAI": {
"sNssais": [
{
"sst": {
"value": "0x01"
},
"sd": {
"value": "0x010203"
}
}
]
},
"updateType": {
"smsRequested": {
"value": 1,
"name": "SMS over NAS supported"
},
"ngRanRcu": {
"value": 0,
"name": "NG-RAN radio capability update not needed"
}
},
"securityHeaderType": {
"value": 0,
"name": "Plain 5GS NAS message, not security protected"
},
"messageType": {
"value": 65,
"name": "Registration request"
},
"extendedProtocolDiscriminator": {
"value": 126,
"name": "5GS mobility management messages"
}
}
[2020-10-19 10:44:48.220] [DEBUG] [MESSAGING] Secured NAS PDU: 7e004171000d0102f8390000000000000000301001002e04f0f0f0f02f050401010203530101
[2020-10-19 10:44:48.225] [FUNC_OUT]
[2020-10-19 10:44:48.225] [FUNC_OUT]

==> logs/gnb-1.log <==
[2020-10-19 10:44:48.228] [FUNC_IN] Handling Uplink NAS Transport
[2020-10-19 10:44:48.261] [DEBUG] [MESSAGING] Sending NGAP: NGAP_InitialUEMessage
[2020-10-19 10:44:48.285] [DEBUG] [MESSAGING] {"NGAP-PDU": {"initiatingMessage": {
"procedureCode": 15,
"criticality": "ignore",
"value": {"InitialUEMessage": {"protocolIEs": {"InitialUEMessage-IEs": [
{
"criticality": "reject",
"id": 85,
"value": {"RAN-UE-NGAP-ID": 1}
},
{
"criticality": "reject",
"id": 38,
"value": {"NAS-PDU": "7e004171000d0102f8390000000000000000301001002e04f0f0f0f02f050401010203530101"}
},
{
"criticality": "reject",
"id": 121,
"value": {"UserLocationInformation": {"userLocationInformationNR": {
"timeStamp": "e337eca0",
"nR-CGI": {
"pLMNIdentity": "02f839",
"nRCellIdentity": "000000000000000000000000000000010000"
},
"tAI": {
"tAC": "000001",
"pLMNIdentity": "02f839"
}
}}}
},
{
"criticality": "ignore",
"id": 90,
"value": {"RRCEstablishmentCause": "mo-Data"}
}
]}}}
}}}
[2020-10-19 10:44:48.301] [FUNC_OUT]

==> logs/ue-imsi-208930000000003.log <==

unable to find tracking area update request

hello everybody when i attach my UERANSIM with open5gs i am unable to find initial attach message in wireshark where i can find the tracking area update request . can anyone help me regarding these

PDU Session Establishment is successful, but ping time out

I deployed open5gs on one virtual machine and ueransim on another. And I successfully established PDU connection, getting the error [ERROR] [UE_APP] [ue-imsi-901700000000003] Ping timeout for baidu.com (172.16.177.139) after 3 sec no response. Here is the log

@ubuntu:~/UERANSIM$ sh ./run.sh
INFO: Selected profile: "open5gs"
2020-11-24 02:36:26.704 [INFO] [CONN] [air] TUN Bridge has been started.
2020-11-24 02:36:26.722 [INFO] [CONN] [gnb-1] Trying to establish SCTP connection... (172.16.177.139:38412)
2020-11-24 02:36:26.741 [INFO] [CONN] [gnb-1] SCTP connection established
2020-11-24 02:36:26.747 [INFO] [PROC] [gnb-1] NGSetup procedure is starting
2020-11-24 02:36:26.865 [INFO] [STATE] [ue-901700000000003] UE switches to state: MM_DEREGISTERED/MM_DEREGISTERED__PLMN_SEARCH
2020-11-24 02:36:27.433 [SUCC] [PROC] [gnb-1] NGSetup procedure is successful
2020-11-24 02:36:27.872 [INFO] [FLOW] [ue-901700000000003] UE connected to gNB.
2020-11-24 02:36:27.875 [INFO] [STATE] [ue-901700000000003] UE switches to state: MM_DEREGISTERED/MM_DEREGISTERED__NORMAL_SERVICE
2020-11-24 02:36:27.970 [SUCC] [SYS] All UE and gNBs are initialized.
-----------------------------------------------------------------------------
List of pre-defined procedure tests:
1) initial-registration
2) periodic-registration
3) de-registration
4) pdu-session-establishment
Selection: 
4
2020-11-24 02:36:30.504 [INFO] [SYS] Starting predefined procedure test: "pdu-session-establishment"
2020-11-24 02:36:30.511 [INFO] [STATE] [ue-901700000000003] UE switches to state: MM_REGISTERED_INITIATED/MM_REGISTERED_INITIATED__NA
2020-11-24 02:36:31.452 [INFO] [STATE] [ue-901700000000003] UE switches to state: RM_REGISTERED
2020-11-24 02:36:31.453 [INFO] [STATE] [ue-901700000000003] UE switches to state: MM_REGISTERED/MM_REGISTERED__NORMAL_SERVICE
2020-11-24 02:36:31.454 [SUCC] [PROC] [ue-901700000000003] Registration is successful
2020-11-24 02:36:31.680 [SUCC] [PROC] [gnb-1] PDU Session Establishment is successful
2020-11-24 02:36:31.687 [INFO] [UEAPP] [ue-901700000000003] IPv4 connection setup with local IP: 10.45.0.4
2020-11-24 02:36:31.687 [INFO] [TUN] [air] IPv4 PDU session established (ue-901700000000003, 10.45.0.4)
2020-11-24 02:36:31.699 [INFO] [FLOW] [ue-901700000000003] PDU session established: PDU session identity value 1
2020-11-24 02:36:31.702 [SUCC] [PROC] [ue-901700000000003] PDU Session Establishment is successful
2020-11-24 02:36:41.806 [ERRO] [UEAPP] [ue-901700000000003] Ping timeout for www.baidu.com (103.235.46.39) after 10 sec no response
2020-11-24 02:36:47.898 [INFO] [TIMER] [ue-901700000000003] NAS Timer expired: NasTimer{timerCode=3510}

And here is the ip information

ubuntu:~/UERANSIM/build$ ip addr show
3: uesimtun: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 500
    link/none 
    inet 10.45.0.2/32 scope global uesimtun
       valid_lft forever preferred_lft forever
    inet 10.45.0.3/32 scope global uesimtun
       valid_lft forever preferred_lft forever
    inet 10.45.0.4/32 scope global uesimtun
       valid_lft forever preferred_lft forever
    inet6 fe80::33b1:59f1:e80c:befa/64 scope link stable-privacy 
       valid_lft forever preferred_lft forever

When I try to use the Tun function, ueransim issues a warning, here is the log

2020-11-24 02:52:09.030 [WARN] [TUN] [air] Tun bridge routing failed, target not found for: 10.45.0.2
@ubuntu:~/UERANSIM/build$ ping www.baidu.com -I 10.45.0.2
PING www.wshifen.com (104.193.88.77) from 10.45.0.2 : 56(84) bytes of data.
^C
--- www.wshifen.com ping statistics ---
169 packets transmitted, 0 received, 100% packet loss, time 172064ms

After checking issue 180, there is still no solution, so what's wrong with me?Thank you.

[Question] Does UERANSIM support different networks for N1/N2 and N3

Hey,
Thanks a lot for sharing this project!

I tried to test splitted solution, where UERANSIM installed on different VM than 5GC. In my case, I'm using free5gc in K8S and I'm using diffrent network interfaces to connect to AMF and UPF. Configuration of UERANSIM only supports to configure one host for N1 and N3 interfaces afaik, therefore, in my case, the same inteface which was used to connect to AMF for signaling part, trying to open GTPU to UPF on N3 interface and fail. Is it any option to define to UERANSIM to use other ip address for GTPuIF ? Is it may be in your planning/roadmap? Thanks in advance

[Configuration] NR Cell Id and gNB ID can't be independent

Hello there,

I'm using UeRanSim v1.0.9 but I think the issue still exists in the latest branch.

The configuration file gnb.yaml shows two parameters :

gnbId: 1

nci: '0000000050'

If I am not wrong, they describe respectively the gNB ID and the NR Cell Identiy but in my opinion, they can't be independent because the 3gpp TS 38.413 - 15.2.0 - [9.3.1.6 & 9.3.1.7] says :

gNB ID - BIT STRING (SIZE(22..32)) - Equal to the leftmost bits of the NR Cell Identity IE contained in the NR CGI IE of each cell served by the gNB.

NR Cell Identity - BIT STRING (SIZE(36)) - The leftmost bits of the NR Cell Identity IE correspond to the gNB ID (defined in subclause 9.3.1.6).

In other words, the nci carries the gnbId so that, they can't be independent.

In my example, I set voluntarily two values that make no sense and the result is :

  1. In the NGSetupRequest message, there is no NR CGI IE but only the GlobalRANNodeID that owns the gNB_ID (1 in my example)
  2. In the next message, InitialUEMessage (NAS RegistrationRequest) there is no GlobalRANNodeID IE but the NR CGI IE that owns the NR Cell Id (5 in my example). That means the gNB ID == 0 and the CellId == 5 and this is wrong (assuming the gNB_ID is coded on 32 bits).

NOTE : The nci in the gnb.yaml file is really mysterious. Why did you used a 'xxxxxxx' value instead of an hex representation, like the nssais/sst for example ?

The difficulty is the gNB_ID size is variable.

My proposal would be :

Set the nci parameter (in the gnb.yaml) in an hex format and set the width of the gNbId in number of bits like :

# gNbId size is 32 bits
gNbIdSize: 32

# nci size is always 36 bits
nci: '0x5a'

So that the values are :
gNbId == 5
CellId == 10

Let me know if I missed something
Greetings

EDIT: Merry Xmas @ALL

initial UE Message

hello i have a query regarding the initial registration message which i got in the recent wireshark capture which is different from the usual wireshark capture . it consist of 5G-TMSI , UE Network capablity and lot of other various capabilities are also exposed that is never capture in before registration message there also i was able to capture service request and identity request which was not captured before . what can be the reason for it.

unable to establish pdu session

hello I am facing a error when I run the command session establishment . it says Unhandled message received: Pdu SessionEstablishmentRequest. can you please tell me How to correct the error

Establishing GTP Tunnels

Hi
I am studying 5GC. In the documents it was mentioned there is a GTP tunnel between gNodeB and AMF and there is a GTP tunnel between UE and UPF. as I checked in Wireshark , there is no GTP tunnel between UERANSIM and 5GC(I am using open5GS)
I wonder how do I configure these tunnels in practice...
Would you please help me out?
Thank you

How to use maven compile ?

Hello every one
I'm new to ue-ran-sim and sorry for asking questions suddenly. I followed the guidance in https://github.com/aligungr/ue-ran-sim, but was stuck at the build process.
"All native libraries and Java source codes are compiled automatically on maven compile." I fell very confused with this sentence, how to use maven compile pom.xml?
Besides, can this project be able to simulate 5G RAN and UE?
Thanks for your help, best wishes.

An error occurred in initial-registration to Open5GS

I tried connecting UERANSIM(dev branch) to Open5GS.

initial-registration succeeded, but it continued, resulting in an error.

[2020-08-12 04:32:43.687]     [SUCCESS] [PROCEDURE_RESULT] Registration is successful
[2020-08-12 04:32:43.688]   [FUNC_OUT] 
[2020-08-12 04:32:43.688] [FUNC_OUT] 
[2020-08-12 04:32:43.695] [INFO] [EVENT] GnbEvent is handling: GnbUplinkNasEvent{ue=984f7306-c8e5-4afe-bb55-dfbb5cb69f39, nasPdu=7e02ce809290017e0043}
[2020-08-12 04:32:43.695] [FUNC_IN] Handling Uplink NAS Transport
...
...
[2020-08-12 04:32:43.881]   [DEBUG] [MESSAGING] Plain NAS PDU: 7e0054430f10004f00700065006e0035004700534702802140233400490100
[2020-08-12 04:32:43.881]   [ERROR] [MESSAGING] Unhandled message received: ConfigurationUpdateCommand

Could you know what is happened?

For reference, the changed configuration file and log are attached.
20200812-2.zip

20200812-2/
  |
  |--- open5gs/install/etc/open5gs
  |     |--- amf.yaml
  |     |--- amf.yaml.orig
  |
  |--- UERANSIM-dev/
  |     |--- app.log
  |     |--- config/
  |           |--- root.yaml
  |           |--- open5gs/
  |                 |--- general.yaml
  |                 |--- gnb.yaml
  |                 |--- mockedAmf.yaml
  |                 |--- ue.yaml
  |
  |--- open5gs.pcap

The difference of configs between free5gc and open5gs for UERANSIM is as follows.

diff -ur free5gc/gnb.yaml open5gs/gnb.yaml
--- free5gc/gnb.yaml    2020-08-12 03:14:47.021911796 +0000
+++ open5gs/gnb.yaml    2020-08-12 03:43:44.958034898 +0000
@@ -1,20 +1,20 @@
 gnbId: 1
 
 gnbPlmn:
-  mcc: 208
-  mnc: 93
+  mcc: 901
+  mnc: 70
 
 amfConfigs:
   - guami:
-      mcc: 208
-      mnc: 93
+      mcc: 901
+      mnc: 70
       amfRegionId:
         hex: '2a'
       amfSetId:
         hex: '5580'
       amfPointer:
         hex: 'a8'
-    host: 127.0.0.1
+    host: 127.0.0.2
     port: 38412
     isMocked: false
     mockingFile: mockedAmf.yaml
@@ -24,11 +24,11 @@
       hex: '000001'
     broadcastPlmns:
       - plmn:
-          mcc: 208
-          mnc: 93
+          mcc: 901
+          mnc: 70
         taiSliceSupportNssais:
           - sst:
               value: 1
             sd:
               value:
-                hex: '010203'
\ No newline at end of file
+                hex: '010203'
diff -ur free5gc/ue.yaml open5gs/ue.yaml
--- free5gc/ue.yaml     2020-08-12 03:14:47.021911796 +0000
+++ open5gs/ue.yaml     2020-08-12 03:26:15.921046675 +0000
@@ -1,9 +1,9 @@
-snn: '5G:mnc093.mcc208.3gppnetwork.org'
-key: '8baf473f2f8fd09487cccbd7097c6862'
-op: '8e27b6af0e692e750f32667a3b14605d'
+snn: '5G:mnc070.mcc901.3gppnetwork.org'
+key: '465B5CE8B199B49FAA5F0A2EE238A6BC'
+op: 'E8ED289DEBA952E4283B54E88E6183CA'
 amf: '8000'
-imei: '356938035643809'
-supi: 'imsi-208930000000003'
+imei: '356938035643803'
+supi: 'imsi-901700000000003'
 
 smsOverNasSupported: true
 dnn: 'internet'
@@ -17,13 +17,13 @@
 userLocationInformationNr:
   nrCgi:
     plmn:
-      mcc: 208
-      mnc: 93
+      mcc: 901
+      mnc: 70
     nrCellIdentity:
       hex: '01b2c3d4e0'
   tai:
-    mcc: 208
-    mnc: 93
+    mcc: 901
+    mnc: 70
     tac: '000001'
   timeStamp:
     hex: 5b5fa680

I used the default values of Open5GS WebUI for UE information. For IMSI that does not have a default value, I have set the following.

IMSI: 901700000000003

Also, the Stream ID of sctp was as follows.

$ tcpdump -r open5gs.pcap |grep sctp |grep SID
reading from file open5gs.pcap, link-type LINUX_SLL (Linux cooked)
04:32:37.783823 IP localhost.49000 > free5gc06.38412: sctp (1) [DATA] (B)(E) [TSN: 2145321369] [SID: 0] [SSEQ 0] [PPID 0x3c] 
04:32:37.783935 IP free5gc06.38412 > localhost.49000: sctp (1) [DATA] (B)(E) [TSN: 2080391333] [SID: 0] [SSEQ 0] [PPID 0x3c] 
04:32:43.351923 IP localhost.49000 > free5gc06.38412: sctp (1) [DATA] (B)(E) [TSN: 2145321370] [SID: 1] [SSEQ 0] [PPID 0x3c] 
04:32:43.353177 IP free5gc06.38412 > localhost.49000: sctp (1) [SACK] [cum ack 2145321370] [a_rwnd 106496] [#gap acks 0] [#dup tsns 0] , (2) [DATA] (B)(E) [TSN: 2080391334] [SID: 1] [SSEQ 0] [PPID 0x3c] 
04:32:43.523744 IP localhost.49000 > free5gc06.38412: sctp (1) [SACK] [cum ack 2080391334] [a_rwnd 106496] [#gap acks 0] [#dup tsns 0] , (2) [DATA] (B)(E) [TSN: 2145321371] [SID: 1] [SSEQ 1] [PPID 0x3c] 
04:32:43.525315 IP free5gc06.38412 > localhost.49000: sctp (1) [SACK] [cum ack 2145321371] [a_rwnd 106496] [#gap acks 0] [#dup tsns 0] , (2) [DATA] (B)(E) [TSN: 2080391335] [SID: 1] [SSEQ 1] [PPID 0x3c] 
04:32:43.594350 IP localhost.49000 > free5gc06.38412: sctp (1) [SACK] [cum ack 2080391335] [a_rwnd 106496] [#gap acks 0] [#dup tsns 0] , (2) [DATA] (B)(E) [TSN: 2145321372] [SID: 1] [SSEQ 2] [PPID 0x3c] 
04:32:43.599613 IP free5gc06.38412 > localhost.49000: sctp (1) [SACK] [cum ack 2145321372] [a_rwnd 106496] [#gap acks 0] [#dup tsns 0] , (2) [DATA] (B)(E) [TSN: 2080391336] [SID: 1] [SSEQ 2] [PPID 0x3c] 
04:32:43.644965 IP localhost.49000 > free5gc06.38412: sctp (1) [SACK] [cum ack 2080391336] [a_rwnd 106496] [#gap acks 0] [#dup tsns 0] , (2) [DATA] (B)(E) [TSN: 2145321373] [SID: 1] [SSEQ 3] [PPID 0x3c] 
04:32:43.839250 IP localhost.49000 > free5gc06.38412: sctp (1) [DATA] (B)(E) [TSN: 2145321374] [SID: 1] [SSEQ 4] [PPID 0x3c] 
04:32:43.840703 IP free5gc06.38412 > localhost.49000: sctp (1) [SACK] [cum ack 2145321374] [a_rwnd 106496] [#gap acks 0] [#dup tsns 0] , (2) [DATA] (B)(E) [TSN: 2080391337] [SID: 1] [SSEQ 3] [PPID 0x3c]

UE-AMBR

Hello @aligungr, is UE-AMBR implemented? I have seen that the value received from the AMF is stored in the UE context, but then it is not used.
Thank you

TUN bridge error

hello while using UE tun interface i am encountering the following error Tun bridge routing failed, target not found for: 10.45.0.2. also my nas timer gets expired after ping message anyone can help to how correct these error

UEContextRequest wasn't included in IntialUEMessage

Linked issues: #160, free5gc/free5gc#142

I was using free5gc v3.0.4 and UERANSIM master branch recently, and I ran into the exactly same problem as @BraedenDiaz did, I checked this issue with the working pcap (testing with Spirent Landslide).

According to my guess, the issue comes with UEContextRequest wasn't included in IntialUEMessage, here is the comparison of "UERANSIM + free5gc (left)" and "Landslide + free5gc (right)".

In left side (UERANSIM + free5gc), InitialUEMessage didn't have UEContextRequst.

image

Therefore, free5gc will not set an important attribute uEContextRequest as true to the ranUe and amfUe instance.

image

When the ueContextRequest was set to true, free5gc will send the SendInitialContextSetupRequest when RegistrationAccept. Otherwise, it only send the DownlinkNasTransport message.

image

And here is the other important attribute called SentInitialContextSetupRequest, it will set to true when InitialContextSetupRequest was sent, this attribute was also determine whether free5gc sends PDUSessionResourceSetupRequest or InitialContextSetupRequest.

image

c.c. @aligungr @BraedenDiaz @free5gc-org

Registration failed: DNN not supported or not subscribed in the slice

I am getting the same errors as mentioned in this issue #199 when I try to register a UE using UE RANSIM and Open5GS. Does anyone knows how to resolve it?

[ERRO] [PROC] [ue-901700000000003] Registration failed: DNN not supported or not subscribed in the slice
[ERRO] [NIMPL] [ue-901700000000003] Registration rejected with unhandled MMCause: DNN not supported or not subscribed in the slice

How to use TUN interface for GTP-U

Hi @aligungr

Thank you very much for supporting U-Plane. It's great!

By the way, I want to communicate using the TUN interface, and even though I select 4) pdu-session-establishment, I could not find the TUN interface on the UERANSIM side.

I would be very glad if you could tell me how to use it.

Thank you very much in advance.

Multiple uesimtun?

Hi @aligungr

I'm sorry if this question was the similar question as before.

Can multiple UERANSIMs run on the same machine? For example, specifying uesimtunX etc.
Is only uesimtun available as the TUN interface?

Thank you very much in advance.

initial registration failed between open5gs and UERANSIM

hello experts i am using open5gs as core and UERANSIM as gnb . i want to connect my UE with UERAN gnb. i gave my subscription information in ue.yaml but it says authenication failed. can you tell me the procedure how to latch my ue with gnb

AMF configuration update support

Hello,
I would like to know if the messages "AMF configuration update support" received after the "NGSetupResponse" are supported (if the UERANSIM is able to Acknowledge such kind of message)?
BR

pdu-session-establishment fails with open5gs

On running pdu-session-establishment with open5gs, registration is complete but pdu session is not established.

[2020-08-30 21:34:10.792] [DEBUG] [MESSAGING] Plain NAS as JSON { "payloadContainerType": { "payloadContainerType": { "value": 1, "name": "N1 SM information" } }, "payloadContainer": { "payload": "2e0101c1ffff91a1" }, "pduSessionId": { "value": "0x01" }, "mmCause": { "value": { "value": 9, "name": "UE identity cannot be derived by the network" } }, "backOffTimerValue": { "timerValue": 3, "unit": { "value": 3, "name": "value is incremented in multiples of 2 seconds" } }, "securityHeaderType": { "value": 0, "name": "Plain 5GS NAS message, not security protected" }, "messageType": { "value": 104, "name": "DL NAS transport" }, "extendedProtocolDiscriminator": { "value": 126, "name": "5GS mobility management messages" } } [2020-08-30 21:34:10.794] [DEBUG] [MESSAGING] Plain NAS PDU: 7e00680100082e0101c1ffff91a112015809370163 [2020-08-30 21:34:10.794] [ERROR] [MESSAGING] Unhandled message received: DlNasTransport [open5gs_pdu_session.log](https://github.com/aligungr/UERANSIM/files/5147514/open5gs_pdu_session.log)

The specific purpose of UERANSIM

Hi,
I want to know the specific purpose of UERANSIM.
As I know,this simulator can register to open5gs and establish pdu session by execute run.sh then select 4.
But can the mechine which deploy UERANSIM ping the open5gs ogstun interface after pdu session established?

issue regarding TAC value

hello when i changed the tac value on both open5gs and ueransim to 2 it gave me error NGSetup procedure is failed: unknown-PLMN
.Is the ueransim is only compatible with only tac value of 1.?

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.