Closed Aravindchockaiaahkannan closed 2 years ago
Hi, Those messages in the free5gc log are after the N3IWF received the PDU Session Establishment Request from the UE. It looks something is failing in the free5gc with the UPF. The userplane SA child is not being created...
Can you increase the log level do debug?
In version 3.0.6 the free5GC does not send yet the PDU Session Establishment Accepted to the UE. If you want to add this you need to modify NFs/n3iwf/ngap/handler/handler.go file and add some code: https://github.com/fasferraz/n3iwf/commit/7226b0e1dc43fdd617a7f5f334443268ae9dbc88, and rebuild the N3IWF again (make n3iwf) Nevertheless, this will only happen if everything is ok with session creation, which is not the case with your logs, since you have some internal errors...
This is my log:
2022-02-15T14:03:54Z [INFO][AMF][NGAP][172.16.168.131/10.0.0.1/172.16.62.131/172.16.63.11:43810] Handle Uplink Nas Transport 2022-02-15T14:03:54Z [INFO][AMF][NGAP][172.16.168.131/10.0.0.1/172.16.62.131/172.16.63.11:43810][AMF_UE_NGAP_ID:1] Uplink NAS Transport (RAN UE NGAP ID: 0) 2022-02-15T14:03:54Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Handle Registration Complete 2022-02-15T14:03:54Z [INFO][AMF][NGAP][172.16.168.131/10.0.0.1/172.16.62.131/172.16.63.11:43810] Handle Uplink Nas Transport 2022-02-15T14:03:54Z [INFO][AMF][NGAP][172.16.168.131/10.0.0.1/172.16.62.131/172.16.63.11:43810][AMF_UE_NGAP_ID:1] Uplink NAS Transport (RAN UE NGAP ID: 0) 2022-02-15T14:03:54Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Handle UL NAS Transport 2022-02-15T14:03:54Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Transport 5GSM Message to SMF 2022-02-15T14:03:54Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Select SMF [snssai: {Sst:1 Sd:010203}, dnn: internet] 2022-02-15T14:03:54Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2022-02-15T14:03:54Z [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=AMF&target-nf-type=NSSF | 2022-02-15T14:03:54Z [INFO][NSSF][NsSelect] Handle NSSelectionGet 2022-02-15T14:03:54Z [INFO][NSSF][GIN] | 200 | 127.0.0.1 | GET | /nnssf-nsselection/v1/network-slice-information?nf-id=f78285c9-0672-4a0d-b784-a5a2f0e3daae&nf-type=AMF&slice-info-request-for-pdu-session=%7B%22sNssai%22%3A%7B%22sst%22%3A1%2C%22sd%22%3A%22010203%22%7D%2C%22roamingIndication%22%3A%22NON_ROAMING%22%7D | 2022-02-15T14:03:54Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2022-02-15T14:03:54Z [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?dnn=internet&preferred-locality=area1&requester-nf-type=AMF&service-names=nsmf-pdusession&snssais=%7B%22sst%22%3A1%2C%22sd%22%3A%22010203%22%7D&target-nf-type=SMF&target-plmn-list=%7B%22mcc%22%3A%22208%22%2C%22mnc%22%3A%2293%22%7D | 2022-02-15T14:03:54Z [INFO][SMF][PduSess] Recieve Create SM Context Request 2022-02-15T14:03:54Z [INFO][SMF][PduSess] In HandlePDUSessionSMContextCreate 2022-02-15T14:03:54Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2022-02-15T14:03:54Z [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=SMF&target-nf-type=UDM | 2022-02-15T14:03:54Z [INFO][SMF][PduSess] Send NF Discovery Serving UDM Successfully 2022-02-15T14:03:54Z [INFO][SMF][CTX] Allocated UE IP address: 60.60.0.1 2022-02-15T14:03:54Z [INFO][SMF][CTX] Selected UPF: UPF 2022-02-15T14:03:54Z [INFO][SMF][PduSess] UE[imsi-2089300007487] PDUSessionID[5] IP[60.60.0.1] 2022-02-15T14:03:54Z [INFO][UDM][SDM] Handle GetSmData 2022-02-15T14:03:54Z [INFO][UDM][SDM] getSmDataProcedure: SUPI[imsi-2089300007487] PLMNID[20893] DNN[internet] SNssai[{"sst":1,"sd":"010203"}] 2022-02-15T14:03:54Z [INFO][UDR][DRepo] Handle QuerySmData 2022-02-15T14:03:54Z [INFO][UDR][GIN] | 200 | 127.0.0.1 | GET | /nudr-dr/v1/subscription-data/imsi-2089300007487/20893/provisioned-data/sm-data?single-nssai=%7B%22sst%22%3A1%2C%22sd%22%3A%22010203%22%7D | 2022-02-15T14:03:54Z [INFO][UDM][GIN] | 200 | 127.0.0.1 | GET | /nudm-sdm/v1/imsi-2089300007487/sm-data?dnn=internet&plmn-id=20893&single-nssai=%7B%22sst%22%3A1%2C%22sd%22%3A%22010203%22%7D | 2022-02-15T14:03:54Z [INFO][SMF][GSM] In HandlePDUSessionEstablishmentRequest 2022-02-15T14:03:54Z [INFO][NAS][Convert] ProtocolOrContainerList: [0xc00000cae0] 2022-02-15T14:03:54Z [INFO][SMF][GSM] Protocol Configuration Options 2022-02-15T14:03:54Z [INFO][SMF][GSM] &{[0xc00000cae0]} 2022-02-15T14:03:54Z [INFO][SMF][PduSess] PCF Selection for SMContext SUPI[imsi-2089300007487] PDUSessionID[5] 2022-02-15T14:03:54Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2022-02-15T14:03:54Z [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=SMF&target-nf-type=PCF | 2022-02-15T14:03:54Z [INFO][PCF][SMpolicy] Handle CreateSmPolicy 2022-02-15T14:03:54Z [INFO][UDR][DRepo] Handle PolicyDataUesUeIdSmDataGet 2022-02-15T14:03:54Z [INFO][UDR][GIN] | 200 | 127.0.0.1 | GET | /nudr-dr/v1/policy-data/ues/imsi-2089300007487/sm-data?dnn=internet&snssai=%7B%22sst%22%3A1%2C%22sd%22%3A%22010203%22%7D | 2022-02-15T14:03:54Z [INFO][PCF][GIN] | 201 | 127.0.0.1 | POST | /npcf-smpolicycontrol/v1/sm-policies | 2022-02-15T14:03:54Z [INFO][SMF][PduSess] SUPI[imsi-2089300007487] has no pre-config route 2022-02-15T14:03:54Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2022-02-15T14:03:54Z [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=SMF&target-nf-instance-id=f78285c9-0672-4a0d-b784-a5a2f0e3daae&target-nf-type=AMF | 2022-02-15T14:03:54Z [INFO][SMF][Consumer] SendNFDiscoveryServingAMF ok 2022-02-15T14:03:54Z [INFO][SMF][GIN] | 201 | 127.0.0.1 | POST | /nsmf-pdusession/v1/sm-contexts | 2022-02-15T14:03:54Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] create smContext[pduSessionID: 5] Success 2022-02-15T14:03:54Z [INFO][UPF][Util] [PFCP] Handle PFCP session establishment request 2022-02-15T14:03:54Z [INFO][UPF][Util] [PFCP] Session Establishment Response 2022-02-15T14:03:54Z [INFO][SMF][PFCP] In HandlePfcpSessionEstablishmentResponse &{1000 Kbps 1000 Kbps} 2022-02-15T14:03:54Z [INFO][LIB][PFCP] Remove Request Transaction [2] 2022-02-15T14:03:54Z [INFO][AMF][Producer] Handle N1N2 Message Transfer Request 2022-02-15T14:03:54Z [INFO][AMF][NGAP][172.16.168.131/10.0.0.1/172.16.62.131/172.16.63.11:43810][AMF_UE_NGAP_ID:1] Send PDU Session Resource Setup Request 2022-02-15T14:03:54Z [INFO][AMF][GIN] | 200 | 127.0.0.1 | POST | /namf-comm/v1/ue-contexts/imsi-2089300007487/n1-n2-messages | 2022-02-15T14:03:54Z [INFO][N3IWF][NGAP] [N3IWF] Handle PDU Session Resource Setup Request 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] Encoding IKE payloads 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] [SecurityAssociation] marshal(): Start marshalling 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] [Nonce] marshal(): Start marshalling 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] [TrafficSelector] marshal(): Start marshalling 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] [TrafficSelector] marshal(): Start marshalling 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] [Notification] marshal(): Start marshalling 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] [Notification] marshal(): Start marshalling 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] Encoding IKE message 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] Encoding IKE payloads 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] [Encrypted] marshal(): Start marshalling 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] Encoding IKE message 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] Encoding IKE payloads 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] [Encrypted] marshal(): Start marshalling 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] Decoding IKE message 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] Decoding IKE payloads 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] [Encrypted] unmarshal(): Start unmarshalling received bytes 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] Handle CREATE_CHILD_SA 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] Encoding IKE message 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] Encoding IKE payloads 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] [Encrypted] marshal(): Start marshalling 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] Decoding IKE payloads 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] [SecurityAssociation] unmarshal(): Start unmarshalling received bytes 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] [Nonce] unmarshal(): Start unmarshalling received bytes 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] [TrafficSelector] unmarshal(): Start unmarshalling received bytes 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] [TrafficSelector] unmarshal(): Start unmarshalling received bytes 2022-02-15T14:03:54Z [INFO][N3IWF][NGAP] [N3IWF] Send PDU Session Resource Setup Response 2022-02-15T14:03:54Z [INFO][AMF][NGAP][172.16.168.131/10.0.0.1/172.16.62.131/172.16.63.11:43810] Handle PDU Session Resource Setup Response 2022-02-15T14:03:54Z [INFO][SMF][PduSess] Recieve Update SM Context Request 2022-02-15T14:03:54Z [INFO][SMF][PduSess] In HandlePDUSessionSMContextUpdate 2022-02-15T14:03:54Z [INFO][UPF][Util] [PFCP] Handle PFCP session modification request 2022-02-15T14:03:54Z [INFO][UPF][Util] [PFCP] Session Modification Response 2022-02-15T14:03:54Z [INFO][LIB][PFCP] Remove Request Transaction [3] 2022-02-15T14:03:54Z [INFO][SMF][PFCP] In HandlePfcpSessionModificationResponse 2022-02-15T14:03:54Z [INFO][SMF][PduSess] [SMF] PFCP Modification Resonse Accept 2022-02-15T14:03:54Z [INFO][SMF][PFCP] PFCP Session Modification Success[1] 2022-02-15T14:03:54Z [INFO][SMF][GIN] | 200 | 127.0.0.1 | POST | /nsmf-pdusession/v1/sm-contexts/urn:uuid:5d686404-1943-47f8-b83e-d6e66b0cff6a/modify |
Hello,
I have attached the full free5gc log below. Thanks.
2022-02-15T14:11:44Z [INFO][UPF][Util] Free5GC log: /home/aravind/free5gc/log/free5gc.log
2022-02-15T14:11:44Z [INFO][UPF][Util] UPF log: /home/aravind/free5gc/log/nf/upf.log
2022-02-15T14:11:44Z [INFO][UPF][Util] Config: /home/aravind/free5gc/config/upfcfg.yaml
2022-02-15T14:11:44Z [INFO][UPF][Util] UPF config version [1.0.0]
2022-02-15T14:11:44Z [INFO][UPF][Util] Set log level: info
2022-02-15T14:11:44Z [INFO][UPF][Util] DNN routes added, main routing table:
2022-02-15T14:11:44Z [INFO][UPF][Util] DstIp Gateway Iface Priority RtProto Type
2022-02-15T14:11:44Z [INFO][UPF][Util] 192.168.57.0 /24 0.0.0.0 enp0s9 0 kernel unicast
2022-02-15T14:11:44Z [INFO][UPF][Util] 192.168.56.0 /24 0.0.0.0 enp0s8 0 kernel unicast
2022-02-15T14:11:44Z [INFO][UPF][Util] 60.60.0.0 /24 0.0.0.0 upfgtp 0 static unicast
2022-02-15T14:11:44Z [INFO][UPF][Util] 10.0.2.2 /32 0.0.0.0 enp0s3 100 dhcp unicast
2022-02-15T14:11:44Z [INFO][UPF][Util] 10.0.2.0 /24 0.0.0.0 enp0s3 0 kernel unicast
2022-02-15T14:11:44Z [INFO][UPF][Util] 10.0.0.0 /24 0.0.0.0 ipsec0 0 kernel unicast
2022-02-15T14:11:44Z [INFO][UPF][Util] 0.0.0.0 /0 10.0.2.2 enp0s3 100 dhcp unicast
nrf
2022-02-15T14:11:45Z [INFO][NRF][App] NRF version:
free5GC version: v3.0.6-10-gfa56062
build time: 2022-02-09T13:09:09Z
commit hash: e74af1f5
commit time: 2021-08-27T07:54:21Z
go version: go1.17.6 linux/amd64
2022-02-15T14:11:45Z [INFO][NRF][Init] NRF Log level is set to [info] level
2022-02-15T14:11:45Z [INFO][LIB][Path] set log level : info
2022-02-15T14:11:45Z [INFO][LIB][Path] set report call : false
2022-02-15T14:11:45Z [INFO][LIB][OAPI] set log level : info
2022-02-15T14:11:45Z [INFO][LIB][OAPI] set report call : false
2022-02-15T14:11:45Z [INFO][LIB][MonDB] set log level : info
2022-02-15T14:11:45Z [INFO][LIB][MonDB] set report call : false
2022-02-15T14:11:45Z [INFO][NRF][CFG] config version [1.0.0]
2022-02-15T14:11:45Z [INFO][NRF][Init] Server started
2022-02-15T14:11:45Z [INFO][NRF][Init] nrfconfig Info: Version[1.0.0] Description[NRF initial local configuration]
2022-02-15T14:11:45Z [INFO][NRF][Init] Binding addr: [127.0.0.10:8000]
2022-02-15T14:11:45Z [INFO][AMF][App] amf
2022-02-15T14:11:45Z [INFO][AMF][App] AMF version:
free5GC version: v3.0.6-10-gfa56062
build time: 2022-02-09T13:07:19Z
commit hash: 3241cae9
commit time: 2022-01-04T16:20:05Z
go version: go1.17.6 linux/amd64
2022-02-15T14:11:45Z [INFO][AMF][Init] AMF Log level is set to [info] level
2022-02-15T14:11:45Z [INFO][LIB][NAS] set log level : info
2022-02-15T14:11:45Z [INFO][LIB][NAS] set report call : false
2022-02-15T14:11:45Z [INFO][LIB][NGAP] set log level : info
2022-02-15T14:11:45Z [INFO][LIB][NGAP] set report call : false
2022-02-15T14:11:45Z [INFO][LIB][FSM] set log level : info
2022-02-15T14:11:45Z [INFO][LIB][FSM] set report call : false
2022-02-15T14:11:45Z [INFO][LIB][Aper] set log level : info
2022-02-15T14:11:45Z [INFO][LIB][Aper] set report call : false
2022-02-15T14:11:45Z [INFO][LIB][Path] set log level : info
2022-02-15T14:11:45Z [INFO][LIB][Path] set report call : false
2022-02-15T14:11:45Z [INFO][LIB][OAPI] set log level : info
2022-02-15T14:11:45Z [INFO][LIB][OAPI] set report call : false
2022-02-15T14:11:45Z [INFO][AMF][CFG] config version [1.0.2]
2022-02-15T14:11:45Z [INFO][AMF][Init] Server started
2022-02-15T14:11:45Z [INFO][AMF][Util] amfconfig Info: Version[1.0.2] Description[AMF initial local configuration]
2022-02-15T14:11:45Z [INFO][AMF][NGAP] Listen on 192.168.56.103/127.0.0.1:38412
2022-02-15T14:11:45Z [INFO][NRF][MGMT] Handle NFRegisterRequest
2022-02-15T14:11:45Z [INFO][NRF][MGMT] urilist update
2022-02-15T14:11:45Z [INFO][NRF][MGMT] Create NF Profile
2022-02-15T14:11:45Z [INFO][NRF][MGMT] Location header: http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/8e6c1a04-5392-4eb9-bb94-4409289fcd83
2022-02-15T14:11:45Z [INFO][NRF][GIN] | 201 | 127.0.0.1 | PUT | /nnrf-nfm/v1/nf-instances/8e6c1a04-5392-4eb9-bb94-4409289fcd83 |
smf
2022-02-15T14:11:45Z [INFO][SMF][App] SMF version:
free5GC version: v3.0.6-10-gfa56062
build time: 2022-02-09T13:11:03Z
commit hash: 55480238
commit time: 2022-01-04T16:22:46Z
go version: go1.17.6 linux/amd64
2022-02-15T14:11:45Z [INFO][SMF][Init] SMF Log level is set to [info] level
2022-02-15T14:11:45Z [INFO][LIB][NAS] set log level : info
2022-02-15T14:11:45Z [INFO][LIB][NAS] set report call : false
2022-02-15T14:11:45Z [INFO][LIB][NGAP] set log level : info
2022-02-15T14:11:45Z [INFO][LIB][NGAP] set report call : false
2022-02-15T14:11:45Z [INFO][LIB][Aper] set log level : info
2022-02-15T14:11:45Z [INFO][LIB][Aper] set report call : false
2022-02-15T14:11:45Z [INFO][LIB][Path] set log level : info
2022-02-15T14:11:45Z [INFO][LIB][Path] set report call : false
2022-02-15T14:11:45Z [INFO][LIB][OAPI] set log level : info
2022-02-15T14:11:45Z [INFO][LIB][OAPI] set report call : false
2022-02-15T14:11:45Z [INFO][LIB][PFCP] set log level : info
2022-02-15T14:11:45Z [INFO][LIB][PFCP] set report call : false
2022-02-15T14:11:45Z [INFO][SMF][CFG] SMF config version [1.0.2]
2022-02-15T14:11:45Z [INFO][SMF][CFG] UE-Routing config version [1.0.1]
2022-02-15T14:11:45Z [INFO][SMF][CTX] smfconfig Info: Version[1.0.2] Description[SMF initial local configuration]
2022-02-15T14:11:45Z [INFO][SMF][CTX] Endpoints: [192.168.56.103]
2022-02-15T14:11:45Z [INFO][SMF][Init] Server started
2022-02-15T14:11:45Z [INFO][NRF][MGMT] Handle NFRegisterRequest
2022-02-15T14:11:45Z [INFO][NRF][MGMT] urilist update
2022-02-15T14:11:45Z [INFO][NRF][MGMT] Create NF Profile
2022-02-15T14:11:45Z [INFO][NRF][MGMT] Location header: http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/66412a7e-6bbc-4c32-a061-e76d746b802f
2022-02-15T14:11:45Z [INFO][NRF][GIN] | 201 | 127.0.0.1 | PUT | /nnrf-nfm/v1/nf-instances/66412a7e-6bbc-4c32-a061-e76d746b802f |
2022-02-15T14:11:45Z [INFO][SMF][Init] SMF Registration to NRF {66412a7e-6bbc-4c32-a061-e76d746b802f SMF REGISTERED 0 0xc0002f89a8 0xc0002f89d8 [] [] [127.0.0.2] []
From: Fabricio @.> Sent: Tuesday, February 15, 2022 15:09 To: fasferraz/NWu-Non3GPP-5GC @.> Cc: Aravind KANNAN @.>; Author @.> Subject: Re: [fasferraz/NWu-Non3GPP-5GC] PDUSessionResourceSetupResponseTransfer failed: sequence truncated (Issue #3)
Hi, Those messages in the free5gc log are after the N3IWF received the PDU Session Establishment Request from the UE. It looks something is failing in the free5gc with the UPF. The userplane SA child is not being created...
Can you increase the log level do debug?
In version 3.0.6 the free5GC does not send yet the PDU Session Establishment Accepted to the UE. If you want to add this you need to modify NFs/n3iwf/ngap/handler/handler.go file and add some code: @.***https://github.com/fasferraz/n3iwf/commit/7226b0e1dc43fdd617a7f5f334443268ae9dbc88, and rebuild the N3IWF again (make n3iwf) Nevertheless, this will only happen if everything is ok with session creation, which is not the case with your logs, since you have some internal errors...
This is my log:
2022-02-15T14:03:54Z [INFO][AMF][NGAP][172.16.168.131/10.0.0.1/172.16.62.131/172.16.63.11:43810] Handle Uplink Nas Transport 2022-02-15T14:03:54Z [INFO][AMF][NGAP][172.16.168.131/10.0.0.1/172.16.62.131/172.16.63.11:43810][AMF_UE_NGAP_ID:1] Uplink NAS Transport (RAN UE NGAP ID: 0) 2022-02-15T14:03:54Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Handle Registration Complete 2022-02-15T14:03:54Z [INFO][AMF][NGAP][172.16.168.131/10.0.0.1/172.16.62.131/172.16.63.11:43810] Handle Uplink Nas Transport 2022-02-15T14:03:54Z [INFO][AMF][NGAP][172.16.168.131/10.0.0.1/172.16.62.131/172.16.63.11:43810][AMF_UE_NGAP_ID:1] Uplink NAS Transport (RAN UE NGAP ID: 0) 2022-02-15T14:03:54Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Handle UL NAS Transport 2022-02-15T14:03:54Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Transport 5GSM Message to SMF 2022-02-15T14:03:54Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Select SMF [snssai: {Sst:1 Sd:010203}, dnn: internet] 2022-02-15T14:03:54Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2022-02-15T14:03:54Z [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=AMF&target-nf-type=NSSF | 2022-02-15T14:03:54Z [INFO][NSSF][NsSelect] Handle NSSelectionGet 2022-02-15T14:03:54Z [INFO][NSSF][GIN] | 200 | 127.0.0.1 | GET | /nnssf-nsselection/v1/network-slice-information?nf-id=f78285c9-0672-4a0d-b784-a5a2f0e3daae&nf-type=AMF&slice-info-request-for-pdu-session=%7B%22sNssai%22%3A%7B%22sst%22%3A1%2C%22sd%22%3A%22010203%22%7D%2C%22roamingIndication%22%3A%22NON_ROAMING%22%7D | 2022-02-15T14:03:54Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2022-02-15T14:03:54Z [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?dnn=internet&preferred-locality=area1&requester-nf-type=AMF&service-names=nsmf-pdusession&snssais=%7B%22sst%22%3A1%2C%22sd%22%3A%22010203%22%7D&target-nf-type=SMF&target-plmn-list=%7B%22mcc%22%3A%22208%22%2C%22mnc%22%3A%2293%22%7D | 2022-02-15T14:03:54Z [INFO][SMF][PduSess] Recieve Create SM Context Request 2022-02-15T14:03:54Z [INFO][SMF][PduSess] In HandlePDUSessionSMContextCreate 2022-02-15T14:03:54Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2022-02-15T14:03:54Z [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=SMF&target-nf-type=UDM | 2022-02-15T14:03:54Z [INFO][SMF][PduSess] Send NF Discovery Serving UDM Successfully 2022-02-15T14:03:54Z [INFO][SMF][CTX] Allocated UE IP address: 60.60.0.1 2022-02-15T14:03:54Z [INFO][SMF][CTX] Selected UPF: UPF 2022-02-15T14:03:54Z [INFO][SMF][PduSess] UE[imsi-2089300007487] PDUSessionID[5] IP[60.60.0.1] 2022-02-15T14:03:54Z [INFO][UDM][SDM] Handle GetSmData 2022-02-15T14:03:54Z [INFO][UDM][SDM] getSmDataProcedure: SUPI[imsi-2089300007487] PLMNID[20893] DNN[internet] SNssai[{"sst":1,"sd":"010203"}] 2022-02-15T14:03:54Z [INFO][UDR][DRepo] Handle QuerySmData 2022-02-15T14:03:54Z [INFO][UDR][GIN] | 200 | 127.0.0.1 | GET | /nudr-dr/v1/subscription-data/imsi-2089300007487/20893/provisioned-data/sm-data?single-nssai=%7B%22sst%22%3A1%2C%22sd%22%3A%22010203%22%7D | 2022-02-15T14:03:54Z [INFO][UDM][GIN] | 200 | 127.0.0.1 | GET | /nudm-sdm/v1/imsi-2089300007487/sm-data?dnn=internet&plmn-id=20893&single-nssai=%7B%22sst%22%3A1%2C%22sd%22%3A%22010203%22%7D | 2022-02-15T14:03:54Z [INFO][SMF][GSM] In HandlePDUSessionEstablishmentRequest 2022-02-15T14:03:54Z [INFO][NAS][Convert] ProtocolOrContainerList: [0xc00000cae0] 2022-02-15T14:03:54Z [INFO][SMF][GSM] Protocol Configuration Options 2022-02-15T14:03:54Z [INFO][SMF][GSM] &{[0xc00000cae0]} 2022-02-15T14:03:54Z [INFO][SMF][PduSess] PCF Selection for SMContext SUPI[imsi-2089300007487] PDUSessionID[5] 2022-02-15T14:03:54Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2022-02-15T14:03:54Z [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=SMF&target-nf-type=PCF | 2022-02-15T14:03:54Z [INFO][PCF][SMpolicy] Handle CreateSmPolicy 2022-02-15T14:03:54Z [INFO][UDR][DRepo] Handle PolicyDataUesUeIdSmDataGet 2022-02-15T14:03:54Z [INFO][UDR][GIN] | 200 | 127.0.0.1 | GET | /nudr-dr/v1/policy-data/ues/imsi-2089300007487/sm-data?dnn=internet&snssai=%7B%22sst%22%3A1%2C%22sd%22%3A%22010203%22%7D | 2022-02-15T14:03:54Z [INFO][PCF][GIN] | 201 | 127.0.0.1 | POST | /npcf-smpolicycontrol/v1/sm-policies | 2022-02-15T14:03:54Z [INFO][SMF][PduSess] SUPI[imsi-2089300007487] has no pre-config route 2022-02-15T14:03:54Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2022-02-15T14:03:54Z [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=SMF&target-nf-instance-id=f78285c9-0672-4a0d-b784-a5a2f0e3daae&target-nf-type=AMF | 2022-02-15T14:03:54Z [INFO][SMF][Consumer] SendNFDiscoveryServingAMF ok 2022-02-15T14:03:54Z [INFO][SMF][GIN] | 201 | 127.0.0.1 | POST | /nsmf-pdusession/v1/sm-contexts | 2022-02-15T14:03:54Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] create smContext[pduSessionID: 5] Success 2022-02-15T14:03:54Z [INFO][UPF][Util] [PFCP] Handle PFCP session establishment request 2022-02-15T14:03:54Z [INFO][UPF][Util] [PFCP] Session Establishment Response 2022-02-15T14:03:54Z [INFO][SMF][PFCP] In HandlePfcpSessionEstablishmentResponse &{1000 Kbps 1000 Kbps} 2022-02-15T14:03:54Z [INFO][LIB][PFCP] Remove Request Transaction [2] 2022-02-15T14:03:54Z [INFO][AMF][Producer] Handle N1N2 Message Transfer Request 2022-02-15T14:03:54Z [INFO][AMF][NGAP][172.16.168.131/10.0.0.1/172.16.62.131/172.16.63.11:43810][AMF_UE_NGAP_ID:1] Send PDU Session Resource Setup Request 2022-02-15T14:03:54Z [INFO][AMF][GIN] | 200 | 127.0.0.1 | POST | /namf-comm/v1/ue-contexts/imsi-2089300007487/n1-n2-messages | 2022-02-15T14:03:54Z [INFO][N3IWF][NGAP] [N3IWF] Handle PDU Session Resource Setup Request 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] Encoding IKE payloads 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] [SecurityAssociation] marshal(): Start marshalling 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] [Nonce] marshal(): Start marshalling 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] [TrafficSelector] marshal(): Start marshalling 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] [TrafficSelector] marshal(): Start marshalling 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] [Notification] marshal(): Start marshalling 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] [Notification] marshal(): Start marshalling 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] Encoding IKE message 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] Encoding IKE payloads 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] [Encrypted] marshal(): Start marshalling 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] Encoding IKE message 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] Encoding IKE payloads 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] [Encrypted] marshal(): Start marshalling 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] Decoding IKE message 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] Decoding IKE payloads 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] [Encrypted] unmarshal(): Start unmarshalling received bytes 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] Handle CREATE_CHILD_SA 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] Encoding IKE message 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] Encoding IKE payloads 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] [Encrypted] marshal(): Start marshalling 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] Decoding IKE payloads 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] [SecurityAssociation] unmarshal(): Start unmarshalling received bytes 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] [Nonce] unmarshal(): Start unmarshalling received bytes 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] [TrafficSelector] unmarshal(): Start unmarshalling received bytes 2022-02-15T14:03:54Z [INFO][N3IWF][IKE] [TrafficSelector] unmarshal(): Start unmarshalling received bytes 2022-02-15T14:03:54Z [INFO][N3IWF][NGAP] [N3IWF] Send PDU Session Resource Setup Response 2022-02-15T14:03:54Z [INFO][AMF][NGAP][172.16.168.131/10.0.0.1/172.16.62.131/172.16.63.11:43810] Handle PDU Session Resource Setup Response 2022-02-15T14:03:54Z [INFO][SMF][PduSess] Recieve Update SM Context Request 2022-02-15T14:03:54Z [INFO][SMF][PduSess] In HandlePDUSessionSMContextUpdate 2022-02-15T14:03:54Z [INFO][UPF][Util] [PFCP] Handle PFCP session modification request 2022-02-15T14:03:54Z [INFO][UPF][Util] [PFCP] Session Modification Response 2022-02-15T14:03:54Z [INFO][LIB][PFCP] Remove Request Transaction [3] 2022-02-15T14:03:54Z [INFO][SMF][PFCP] In HandlePfcpSessionModificationResponse 2022-02-15T14:03:54Z [INFO][SMF][PduSess] [SMF] PFCP Modification Resonse Accept 2022-02-15T14:03:54Z [INFO][SMF][PFCP] PFCP Session Modification Success[1] 2022-02-15T14:03:54Z [INFO][SMF][GIN] | 200 | 127.0.0.1 | POST | /nsmf-pdusession/v1/sm-contexts/urn:uuid:5d686404-1943-47f8-b83e-d6e66b0cff6a/modify |
— Reply to this email directly, view it on GitHubhttps://github.com/fasferraz/NWu-Non3GPP-5GC/issues/3#issuecomment-1040317249, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AV3TEBPM63TB6USUSY53C2TU3JNAHANCNFSM5OOOR2GQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>
Hi,
Your first errors are these lines:
2022-02-15T14:12:03Z [ERRO][N3IWF][GTP] Dial to UPF failed: read udp 192.168.57.103:2152: i/o timeout 2022-02-15T14:12:03Z [ERRO][N3IWF][NGAP] Setup GTP connection with UPF failed: Dial failed
Are you able to test your setup with UERANSIM successfully? It seems there is a timeout when trying to reach 192.168.57.102 in gtp-u port (2152) What is the address you are using for GTP-U in n3uwf and in ufp? They should be different since they need to open the same port. can you ping one address from the other? can you print your n3iwfcfg.yaml and upfcfg.yaml?
I can test it with UERANSIM successfully. The addresses in the N3IWF and UPF are different. After reading your questions, i think i might have gone wrong in creating the interface for the N3IWF GTP. In your setup example i can see that you have an interface named vmnet0. i created a bridged adapter and gave the IP of 192.168.57.103. This might be wrong ?
I am printing my n3iwfcfg.yaml and upfcfg.yaml down below. And thanks for replies. n3iwfcfg.yaml : info: version: 1.0.0 description: N3IWF initial local configuration
configuration:
N3IWFInformation:
GlobalN3IWFID: # ID used to globally identify an N3IWF
PLMNID: # Public Land Mobile Network ID,
192.168.56.103
IKEBindAddress: # IP address of Nwu interface (IKE) on this N3IWF 192.168.56.103
IPSecInterfaceAddress: # IP address of IPSec virtual interface (IPsec tunnel enpoint on this N3IWF) 10.0.0.1
IPSecInterfaceMark: # IPSec virtual interface mark (Any value except to 0, default value is 7 if not defined) 5
GTPBindAddress: # IP address of N3 interface (GTP) on this N3IWF 192.168.57.103
NASTCPPort: # TCP port which the NAS listens on 20000
FQDN: # FQDN of this N3IWF n3iwf.free5gc.org
PrivateKey: # Private key file path
CertificateAuthority: # Certificate Authority (CA) file path
Certificate: # Certificate file path
UEIPAddressRange: # IP address allocated to UE in IPSec tunnel 10.0.0.0/24
logger: N3IWF: # The default log level is DEBUG to print SA keys. Please change it to INFO when deployed. debugLevel: debug ReportCaller: false NGAP: debugLevel: info ReportCaller: false Aper: debugLevel: info ReportCaller: false PathUtil: debugLevel: info ReportCaller: false
upfcfg.yaml:
info: version: 1.0.0 description: UPF configuration
configuration:
# debugLevel: how detailed to output, value: trace, debug, info, warn, error, fatal, panic
# ReportCaller: enable the caller report or not, value: true or false
debugLevel: info ReportCaller: false
packetBufferHoldTime: 30
pfcp:
addr: 127.0.0.8
gtpu:
addr: 127.0.0.8
dnn_list:
Hi, Can you change the bridge interface to host-only (for example), and try again?
If it doesn't work, can you do a tcpdump of all interfaces in the freee5gc VM, and send it to me? my email is in my profile.
Hi,
i tried changing the adapter, UE is not crossing stage 5.
Signaling SA CHILD created. Establishing TCP session towards NAS...
Cannot create namespace file "/run/netns/tcp_socket_signalling": File exists cmd: ip netns exec tcp_socket_signalling ip link set dev tun2 up cmd: ip netns exec tcp_socket_signalling ip addr add 10.0.0.132/32 dev tun2 cmd: ip netns exec tcp_socket_signalling route add -net 0.0.0.0/0 gw 10.0.0.132 Tcp connection to NAS timeouted. Ending TCP Process. Exiting TCP process. Process terminated.
in the core,
2022-02-16T09:35:50Z [INFO][N3IWF][IKE] [Authentication] unmarshal(): Start unmarshalling received bytes2022-02-16T09:35:50Z [INFO][N3IWF][IKE] [Configuration] unmarshal(): Start unmarshalling received bytes 2022-02-16T09:35:50Z [WARN][N3IWF][IKE] Receive other type of configuration request: 3 2022-02-16T09:35:50Z [WARN][N3IWF][IKE] Receive other type of configuration request: 8 2022-02-16T09:35:50Z [WARN][N3IWF][IKE] Receive other type of configuration request: 10 2022-02-16T09:35:50Z [WARN][N3IWF][IKE] Receive other type of configuration request: 20 2022-02-16T09:35:50Z [WARN][N3IWF][IKE] Receive other type of configuration request: 21 2022-02-16T09:35:50Z [DEBU][N3IWF][IKE] ====== IPSec/Child SA: Initiator To Responder ===== 2022-02-16T09:35:50Z [DEBU][N3IWF][IKE] IPSec SPI: 00000000e77450a5 2022-02-16T09:35:50Z [DEBU][N3IWF][IKE] IPSec Encryption Algorithm: 12 2022-02-16T09:35:50Z [DEBU][N3IWF][IKE] IPSec Encryption Key: 5bc5260298e8fc99340bd0f6d007f6fad91edec76d8d4d3a98d827678e38930e 2022-02-16T09:35:50Z [DEBU][N3IWF][IKE] IPSec Integrity Algorithm: 0 2022-02-16T09:35:50Z [DEBU][N3IWF][IKE] IPSec Integrity Key: 2022-02-16T09:35:50Z [DEBU][N3IWF][IKE] ====== IPSec/Child SA: Responder To Initiator ===== 2022-02-16T09:35:50Z [DEBU][N3IWF][IKE] IPSec SPI: 00000000e77450a5 2022-02-16T09:35:50Z [DEBU][N3IWF][IKE] IPSec Encryption Algorithm: 12 2022-02-16T09:35:50Z [DEBU][N3IWF][IKE] IPSec Encryption Key: 8bbbeafee97f842cf65139ecca8bfecb6cc270e0f7bda2cb15dd8da706e96f17 2022-02-16T09:35:50Z [DEBU][N3IWF][IKE] IPSec Integrity Algorithm: 0 2022-02-16T09:35:50Z [DEBU][N3IWF][IKE] IPSec Integrity Key: 2022-02-16T09:35:50Z [INFO][N3IWF][IKE] Encoding IKE payloads 2022-02-16T09:35:50Z [INFO][N3IWF][IKE] [Authentication] marshal(): Start marshalling 2022-02-16T09:35:50Z [INFO][N3IWF][IKE] [Configuration] marshal(): Start marshalling 2022-02-16T09:35:50Z [INFO][N3IWF][IKE] [SecurityAssociation] marshal(): Start marshalling 2022-02-16T09:35:50Z [INFO][N3IWF][IKE] [TrafficSelector] marshal(): Start marshalling 2022-02-16T09:35:50Z [INFO][N3IWF][IKE] [TrafficSelector] marshal(): Start marshalling 2022-02-16T09:35:50Z [INFO][N3IWF][IKE] [Notification] marshal(): Start marshalling 2022-02-16T09:35:50Z [INFO][N3IWF][IKE] [Notification] marshal(): Start marshalling 2022-02-16T09:35:50Z [INFO][N3IWF][IKE] Encoding IKE message 2022-02-16T09:35:50Z [INFO][N3IWF][IKE] Encoding IKE payloads 2022-02-16T09:35:50Z [INFO][N3IWF][IKE] [Encrypted] marshal(): Start marshalling 2022-02-16T09:35:50Z [INFO][N3IWF][IKE] Encoding IKE message 2022-02-16T09:35:50Z [INFO][N3IWF][IKE] Encoding IKE payloads 2022-02-16T09:35:50Z [INFO][N3IWF][IKE] [Encrypted] marshal(): Start marshalling 2022-02-16T09:35:50Z [INFO][N3IWF][NGAP] [N3IWF] Send Initial Context Setup Response 2022-02-16T09:35:50Z [INFO][AMF][NGAP][192.168.56.103/10.0.2.15/192.168.57.103/10.0.0.1:43491] Handle Initial Context Setup Response 2022-02-16T09:35:50Z [INFO][AMF][NGAP][192.168.56.103/10.0.2.15/192.168.57.103/10.0.0.1:43491][AMF_UE_NGAP_ID:1] Send Downlink Nas Transport 2022-02-16T09:35:50Z [INFO][N3IWF][NGAP] [N3IWF] Handle Downlink NAS Transport 2022-02-16T09:35:50Z [WARN][N3IWF][NGAP] No NAS signalling session found, retry... 2022-02-16T09:35:51Z [WARN][N3IWF][NGAP] No NAS signalling session found, retry... 2022-02-16T09:35:51Z [WARN][N3IWF][NGAP] No connection found for UE to send NAS message. This message will be cached in N3IWF
It seems you had a previous process running in the emulator VM (the namespace already existed?). Can you check? Or reload the emulator VM, and try again.
restarting the VM cleared the issue, but the UE state remains at 6.
the core:
2022-02-16T10:01:10Z [INFO][N3IWF][NGAP] [N3IWF] Handle Downlink NAS Transport 2022-02-16T10:01:10Z [WARN][N3IWF][NGAP] No NAS signalling session found, retry... 2022-02-16T10:01:11Z [WARN][N3IWF][NGAP] No NAS signalling session found, retry... 2022-02-16T10:01:11Z [WARN][N3IWF][NGAP] No connection found for UE to send NAS message. This message will be cached in N3IWF
i tried it with host only adapter
You only changed interface 192.168.57.103 to host-only, right? Can you change it to NAT and try? If you revert it back to bridge you stop at stage 7?
That interface is the N3 interface of N3IWF used to communicate with UPF, which has Ip 127.0.0.8.
I'm not an expert in free5gc... the only difference i see between your setup and mine is that you use the same IP for ike and for AMF - 192.168.56.103, but that could be possible since ike and ngap use different ports and protocols...
If i revert back to bridge adapter, i cannot go stage 7. the UE stops at stage 6.
I tried with the third network interface off, and still my UE stops at stage 6. so i think, network interface must be the problem.
What kind of interface is vmnet0 in your setup ?
Thanks
It's in the drawing, in wiki. It's custom: vmnet0
Why don't you try to add a third interface as custom (vmnet0), and configure another network there (192.168.58.103 for example) and use this IP as the GTPIP in the n3iwfcfg.yaml?
Hi, I tried with various combinations, nothing seems to cross UE in stage 6. but in the free5gc log below you can see the created third interface was successfully added to the core below. The ip of the new interface for gtp ip in n3iwfcfg is 192.168.57.103. and ng response was successful. yet UE remains at state 6 saying "Tcp connection to NAS timeouted. Ending TCP Process. Exiting TCP process. Process terminated."
Free5gc log focused on 192.168.57.103 (Newly created interface): 2022-02-16T15:18:47Z [INFO][N3IWF][Context] Parse using PKCS1... 2022-02-16T15:18:47Z [WARN][N3IWF][Context] No certificate authority file path specified, load default CA certificate... 2022-02-16T15:18:47Z [WARN][N3IWF][Context] No certificate file path specified, load default certificate... 2022-02-16T15:18:47Z [INFO][AMF][NGAP] [AMF] SCTP Accept from: 192.168.56.103/10.0.2.15/192.168.57.103/10.0.0.1:44876 2022-02-16T15:18:47Z [INFO][N3IWF][Init] NGAP service running. 2022-02-16T15:18:47Z [INFO][N3IWF][Init] NAS TCP server successfully started. 2022-02-16T15:18:47Z [INFO][N3IWF][NGAP] [N3IWF] Send NG Setup Request 2022-02-16T15:18:47Z [INFO][AMF][NGAP] Create a new NG connection for: 192.168.56.103/10.0.2.15/192.168.57.103/10.0.0.1:44876 2022-02-16T15:18:47Z [INFO][N3IWF][Init] Listening NWu user plane traffic 2022-02-16T15:18:47Z [INFO][N3IWF][Init] IKE service running. 2022-02-16T15:18:47Z [INFO][N3IWF][Init] N3IWF running...
I'm printing the routing table if it helps, of both the machines.
free5gc: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.0.2.2 0.0.0.0 UG 100 0 0 enp0s3 10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 ipsec0 10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 enp0s3 10.0.2.2 0.0.0.0 255.255.255.255 UH 100 0 0 enp0s3 192.168.56.0 0.0.0.0 255.255.255.0 U 0 0 0 enp0s8 192.168.57.0 0.0.0.0 255.255.255.0 U 0 0 0 enp0s10
UE Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.0.2.2 0.0.0.0 UG 100 0 0 enp0s3 10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 enp0s3 10.0.2.2 0.0.0.0 255.255.255.255 UH 100 0 0 enp0s3 192.168.56.0 0.0.0.0 255.255.255.0 U 0 0 0 enp0s8
At the same time in the UE, i can see this, that it is trying to create a tun2 but it is not creating tun2. might this be the error log from the core ? correct me if am wrong
UE: Signaling SA CHILD created. Establishing TCP session towards NAS... cmd: ip netns exec tcp_socket_signalling ip link set dev tun2 up cmd: ip netns exec tcp_socket_signalling ip addr add 10.0.0.243/32 dev tun2 cmd: ip netns exec tcp_socket_signalling route add -net 0.0.0.0/0 gw 10.0.0.243 Tcp connection to NAS timeouted. Ending TCP Process. Exiting TCP process. Process terminated.
Free5gc:
itial Context Setup Response 2022-02-16T15:48:51Z [INFO][AMF][NGAP][192.168.56.103/10.0.2.15/192.168.57.103/10.0.0.1:49821][AMF_UE_NGAP_ID:3] Send Downlink Nas Transport 2022-02-16T15:48:51Z [INFO][N3IWF][NGAP] [N3IWF] Handle Downlink NAS Transport 2022-02-16T15:48:51Z [WARN][N3IWF][NGAP] No NAS signalling session found, retry... 2022-02-16T15:48:51Z [WARN][N3IWF][NGAP] No NAS signalling session found, retry... 2022-02-16T15:48:52Z [WARN][N3IWF][NGAP] No connection found for UE to send NAS message. This message will be cached in N3IWF
The signaling tunnel is created inside the namespace tcp_socket_signalling:
root@ubuntu:~# ip netns exec tcp_socket_signalling bash root@ubuntu:~# ifconfig tun2: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500 inet 10.0.0.251 netmask 255.255.255.255 destination 10.0.0.251 inet6 fe80::6470:e2e9:37f4:18b7 prefixlen 64 scopeid 0x20 unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 500 (UNSPEC) RX packets 11 bytes 719 (719.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 18 bytes 977 (977.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@ubuntu:~#
The same happens with tun3 if you create the user plane in a namespace (option -n (in the example -n TESTE)):
root@ubuntu:~# ip netns exec TESTE bash root@ubuntu:~# ifconfig tun3: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500 inet 60.60.0.1 netmask 255.255.255.255 destination 60.60.0.1 inet6 fe80::f362:b2dc:a7b7:54da prefixlen 64 scopeid 0x20 unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 500 (UNSPEC) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 7 bytes 336 (336.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@ubuntu:~#
Can you do a tcpdump -i any -w trace.pcap in the free5gc VM? and also send me the application log output because i need the keys, so that i'm able to decode ike and ipsec in wireshark. Can you send it to my email please?
In the stage 7,
Preparing REGISTRATION COMPLETE to send... Preparing UL NAS TRANSPORT message with container PDU SESSION ESTABLISHMENT REQUEST to send...
there was no tun3 created. tun2 was created. but i can see the UE in the dashboard of the webconsole of free5gc.
the free5gc logs:
2022-02-15T12:57:10Z [INFO][N3IWF][NGAP] [N3IWF] Handle PDU Session Resource Setup Request 2022-02-15T12:57:15Z [ERRO][N3IWF][GTP] Dial to UPF failed: read udp 192.168.57.103:2152: i/o timeout 2022-02-15T12:57:15Z [ERRO][N3IWF][NGAP] Setup GTP connection with UPF failed: Dial failed 2022-02-15T12:57:15Z [INFO][N3IWF][NGAP] [N3IWF] Send PDU Session Resource Setup Response 2022-02-15T12:57:15Z [INFO][AMF][NGAP][192.168.56.103/10.0.2.15/192.168.57.103/10.0.0.1:58100] Handle PDU Session Resource Setup Response 2022-02-15T12:57:15Z [INFO][SMF][PduSess] Receive Update SM Context Request 2022-02-15T12:57:15Z [INFO][SMF][PduSess] In HandlePDUSessionSMContextUpdate 2022-02-15T12:57:15Z [ERRO][SMF][PduSess] Handle PDUSessionResourceSetupResponseTransfer failed: sequence truncated 2022-02-15T12:57:15Z [WARN][SMF][PduSess] SM Context State [Active] shouldn't be here 2022-02-15T12:57:15Z [INFO][SMF][GIN] | 200 | 127.0.0.1 | POST | /nsmf-pdusession/v1/sm-contexts/urn:uuid:ba409af8-11e8-4eaa-b406-5c42034415cb/modify |
I am using two VM in the same host machine.