issue_owner_repo
listlengths
2
2
issue_body
stringlengths
0
261k
issue_title
stringlengths
1
925
issue_comments_url
stringlengths
56
81
issue_comments_count
int64
0
2.5k
issue_created_at
stringlengths
20
20
issue_updated_at
stringlengths
20
20
issue_html_url
stringlengths
37
62
issue_github_id
int64
387k
2.46B
issue_number
int64
1
127k
[ "free5gc", "free5gc" ]
## Describe the bug I am using `helm` to install `free5gc-nrf` chart. The MongoDB dependency could be instantiated but nrf is waiting for MongoDB forever. But I verified that mongodb is up. So not sure how does this happen. ```sh kubectl get pods NAME READY STATUS RESTARTS AGE mongodb-0 1/1 Running 0 9m14s nrf-free5gc-nrf-nrf-79d7d9b788-cmghx 0/1 Init:0/1 0 9m14s ``` If I checked the log of `wait-mongo` container of `nrf-free5gc-nrf-nrf-79d7d9b788-cmghx` ``` kubectl logs nrf-free5gc-nrf-nrf-79d7d9b788-cmghx -c wait-mongo nc: bad address 'mongodb:27017' waiting for the MongoDB nc: bad address 'mongodb:27017' waiting for the MongoDB .... ``` Meanwhile I checked the log of MongoDB-0 pod ``` kubectl logs mongodb-0 mongodb 04:34:33.79 mongodb 04:34:33.80 Welcome to the Bitnami mongodb container mongodb 04:34:33.80 Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-mongodb mongodb 04:34:33.80 Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-mongodb/issues mongodb 04:34:33.80 mongodb 04:34:33.80 INFO ==> ** Starting MongoDB setup ** mongodb 04:34:33.82 INFO ==> Validating settings in MONGODB_* env vars... mongodb 04:34:33.82 WARN ==> You set the environment variable ALLOW_EMPTY_PASSWORD=yes. For safety reasons, do not use this flag in a production environment. mongodb 04:34:33.84 INFO ==> Initializing MongoDB... mongodb 04:34:33.86 INFO ==> Deploying MongoDB with persisted data... mongodb 04:34:33.87 INFO ==> ** MongoDB setup finished! ** mongodb 04:34:33.89 INFO ==> ** Starting MongoDB ** {"t":{"$date":"2023-03-18T04:34:33.934+00:00"},"s":"I", "c":"CONTROL", "id":20698, "ctx":"main","msg":"***** SERVER RESTARTED *****"} {"t":{"$date":"2023-03-18T04:34:33.939+00:00"},"s":"I", "c":"CONTROL", "id":23285, "ctx":"main","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"} {"t":{"$date":"2023-03-18T04:34:33.944+00:00"},"s":"W", "c":"ASIO", "id":22601, "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"} {"t":{"$date":"2023-03-18T04:34:33.946+00:00"},"s":"I", "c":"NETWORK", "id":4648601, "ctx":"main","msg":"Implicit TCP FastOpen unavailable. If TCP FastOpen is required, set tcpFastOpenServer, tcpFastOpenClient, and tcpFastOpenQueueSize."} {"t":{"$date":"2023-03-18T04:34:33.947+00:00"},"s":"I", "c":"STORAGE", "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":1,"port":27017,"dbPath":"/bitnami/mongodb/data/db","architecture":"64-bit","host":"mongodb-0"}} {"t":{"$date":"2023-03-18T04:34:33.947+00:00"},"s":"I", "c":"CONTROL", "id":23403, "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"4.4.4","gitVersion":"8db30a63db1a9d84bdcad0c83369623f708e0397","openSSLVersion":"OpenSSL 1.1.1d 10 Sep 2019","modules":[],"allocator":"tcmalloc","environment":{"distmod":"debian10","distarch":"x86_64","target_arch":"x86_64"}}}} {"t":{"$date":"2023-03-18T04:34:33.947+00:00"},"s":"I", "c":"CONTROL", "id":51765, "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"PRETTY_NAME=\"Debian GNU/Linux 10 (buster)\"","version":"Kernel 5.4.226-129.415.amzn2.x86_64"}}} {"t":{"$date":"2023-03-18T04:34:33.947+00:00"},"s":"I", "c":"CONTROL", "id":21951, "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{"config":"/opt/bitnami/mongodb/conf/mongodb.conf","net":{"bindIp":"*","ipv6":false,"port":27017,"unixDomainSocket":{"enabled":true,"pathPrefix":"/opt/bitnami/mongodb/tmp"}},"processManagement":{"fork":false,"pidFilePath":"/opt/bitnami/mongodb/tmp/mongodb.pid"},"security":{"authorization":"disabled"},"setParameter":{"enableLocalhostAuthBypass":"true"},"storage":{"dbPath":"/bitnami/mongodb/data/db","directoryPerDB":false,"journal":{"enabled":true}},"systemLog":{"destination":"file","logAppend":true,"logRotate":"reopen","path":"/opt/bitnami/mongodb/logs/mongodb.log","quiet":false,"verbosity":0}}}} {"t":{"$date":"2023-03-18T04:34:33.951+00:00"},"s":"I", "c":"STORAGE", "id":22270, "ctx":"initandlisten","msg":"Storage engine to use detected by data files","attr":{"dbpath":"/bitnami/mongodb/data/db","storageEngine":"wiredTiger"}} {"t":{"$date":"2023-03-18T04:34:33.951+00:00"},"s":"I", "c":"STORAGE", "id":22297, "ctx":"initandlisten","msg":"Using the XFS filesystem is strongly recommended with the WiredTiger storage engine. See http://dochub.mongodb.org/core/prodnotes-filesystem","tags":["startupWarnings"]} {"t":{"$date":"2023-03-18T04:34:33.951+00:00"},"s":"I", "c":"STORAGE", "id":22315, "ctx":"initandlisten","msg":"Opening WiredTiger","attr":{"config":"create,cache_size=7399M,session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000,close_scan_interval=10,close_handle_minimum=250),statistics_log=(wait=0),verbose=[recovery_progress,checkpoint_progress,compact_progress],"}} {"t":{"$date":"2023-03-18T04:34:34.563+00:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1679114074:563496][1:0x7f24214f2140], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 1 through 2"}} {"t":{"$date":"2023-03-18T04:34:34.646+00:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1679114074:645988][1:0x7f24214f2140], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 2 through 2"}} {"t":{"$date":"2023-03-18T04:34:34.722+00:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1679114074:722877][1:0x7f24214f2140], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Main recovery loop: starting at 1/26624 to 2/256"}} {"t":{"$date":"2023-03-18T04:34:34.816+00:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1679114074:816017][1:0x7f24214f2140], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 1 through 2"}} {"t":{"$date":"2023-03-18T04:34:34.871+00:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1679114074:871564][1:0x7f24214f2140], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 2 through 2"}} {"t":{"$date":"2023-03-18T04:34:34.918+00:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1679114074:918108][1:0x7f24214f2140], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Set global recovery timestamp: (0, 0)"}} {"t":{"$date":"2023-03-18T04:34:34.918+00:00"},"s":"I", "c":"STORAGE", "id":22430, "ctx":"initandlisten","msg":"WiredTiger message","attr":{"message":"[1679114074:918183][1:0x7f24214f2140], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Set global oldest timestamp: (0, 0)"}} {"t":{"$date":"2023-03-18T04:34:34.942+00:00"},"s":"I", "c":"STORAGE", "id":4795906, "ctx":"initandlisten","msg":"WiredTiger opened","attr":{"durationMillis":991}} {"t":{"$date":"2023-03-18T04:34:34.942+00:00"},"s":"I", "c":"RECOVERY", "id":23987, "ctx":"initandlisten","msg":"WiredTiger recoveryTimestamp","attr":{"recoveryTimestamp":{"$timestamp":{"t":0,"i":0}}}} {"t":{"$date":"2023-03-18T04:34:34.943+00:00"},"s":"I", "c":"STORAGE", "id":4366408, "ctx":"initandlisten","msg":"No table logging settings modifications are required for existing WiredTiger tables","attr":{"loggingEnabled":true}} {"t":{"$date":"2023-03-18T04:34:34.943+00:00"},"s":"I", "c":"STORAGE", "id":22262, "ctx":"initandlisten","msg":"Timestamp monitor starting"} {"t":{"$date":"2023-03-18T04:34:34.947+00:00"},"s":"I", "c":"STORAGE", "id":20536, "ctx":"initandlisten","msg":"Flow Control is enabled on this deployment"} {"t":{"$date":"2023-03-18T04:34:34.947+00:00"},"s":"I", "c":"FTDC", "id":20625, "ctx":"initandlisten","msg":"Initializing full-time diagnostic data capture","attr":{"dataDirectory":"/bitnami/mongodb/data/db/diagnostic.data"}} {"t":{"$date":"2023-03-18T04:34:34.949+00:00"},"s":"I", "c":"NETWORK", "id":23015, "ctx":"listener","msg":"Listening on","attr":{"address":"/opt/bitnami/mongodb/tmp/mongodb-27017.sock"}} {"t":{"$date":"2023-03-18T04:34:34.949+00:00"},"s":"I", "c":"NETWORK", "id":23015, "ctx":"listener","msg":"Listening on","attr":{"address":"0.0.0.0"}} {"t":{"$date":"2023-03-18T04:34:34.949+00:00"},"s":"I", "c":"NETWORK", "id":23016, "ctx":"listener","msg":"Waiting for connections","attr":{"port":27017,"ssl":"off"}} {"t":{"$date":"2023-03-18T04:34:42.980+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:38498","connectionId":1,"connectionCount":1}} {"t":{"$date":"2023-03-18T04:34:42.980+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn1","msg":"client metadata","attr":{"remote":"127.0.0.1:38498","client":"conn1","doc":{"application":{"name":"MongoDB Shell"},"driver":{"name":"MongoDB Internal Client","version":"4.4.4"},"os":{"type":"Linux","name":"PRETTY_NAME=\"Debian GNU/Linux 10 (buster)\"","architecture":"x86_64","version":"Kernel 5.4.226-129.415.amzn2.x86_64"}}}} {"t":{"$date":"2023-03-18T04:34:42.984+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn1","msg":"Connection ended","attr":{"remote":"127.0.0.1:38498","connectionId":1,"connectionCount":0}} {"t":{"$date":"2023-03-18T04:34:52.979+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:37554","connectionId":2,"connectionCount":1}} {"t":{"$date":"2023-03-18T04:34:52.980+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn2","msg":"client metadata","attr":{"remote":"127.0.0.1:37554","client":"conn2","doc":{"application":{"name":"MongoDB Shell"},"driver":{"name":"MongoDB Internal Client","version":"4.4.4"},"os":{"type":"Linux","name":"PRETTY_NAME=\"Debian GNU/Linux 10 (buster)\"","architecture":"x86_64","version":"Kernel 5.4.226-129.415.amzn2.x86_64"}}}} {"t":{"$date":"2023-03-18T04:34:52.984+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn2","msg":"Connection ended","attr":{"remote":"127.0.0.1:37554","connectionId":2,"connectionCount":0}} {"t":{"$date":"2023-03-18T04:35:03.010+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:36944","connectionId":3,"connectionCount":1}} {"t":{"$date":"2023-03-18T04:35:03.011+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn3","msg":"client metadata","attr":{"remote":"127.0.0.1:36944","client":"conn3","doc":{"application":{"name":"MongoDB Shell"},"driver":{"name":"MongoDB Internal Client","version":"4.4.4"},"os":{"type":"Linux","name":"PRETTY_NAME=\"Debian GNU/Linux 10 (buster)\"","architecture":"x86_64","version":"Kernel 5.4.226-129.415.amzn2.x86_64"}}}} {"t":{"$date":"2023-03-18T04:35:03.014+00:00"},"s":"I", "c":"NETWORK", "id":22944, "ctx":"conn3","msg":"Connection ended","attr":{"remote":"127.0.0.1:36944","connectionId":3,"connectionCount":0}} {"t":{"$date":"2023-03-18T04:35:13.023+00:00"},"s":"I", "c":"NETWORK", "id":22943, "ctx":"listener","msg":"Connection accepted","attr":{"remote":"127.0.0.1:59666","connectionId":4,"connectionCount":1}} {"t":{"$date":"2023-03-18T04:35:13.023+00:00"},"s":"I", "c":"NETWORK", "id":51800, "ctx":"conn4","msg":"client metadata","attr":{"remote":"127.0.0.1:59666","client":"conn4","doc":{"application":{"name":"MongoDB Shell"},"driver":{"name":"MongoDB Internal Client","version":"4.4.4"},"os":{"type":"Linux","name":"PRETTY_NAME=\"Debian GNU/Linux 10 (buster)\"","architecture":"x86_64","version":"Kernel 5.4.226-129.415.amzn2.x86_64"}}}} ``` ## To Reproduce N/A ## Expected behavior Expect that Free5gc NRF and its dependency of mongodb is running properly ## Environment (please complete the following information): - free5GC Version: `v3.0.5` - OS: `Amazon Linux 2` - Kernel version: - go version: - c compiler version (Option): ## Trace File ### Configuration File Provide the configuration file here. If not clear of what to do, the `config` folder can be zip and upload it here. ### PCAP File Dump the packet and provide the pcap file here. If not clear of what to do, this command can be used `sudo tcpdump -i any -w free5gc.pcap` prior to running bug reproduce. Then upload the pcap file `free5gc.pcap`. ### Log File Provide the program log file here. If not clear of what to do, copy the printed log on the screen and upload it here. ## System architecture (Option) Please provide the draft architecture, including the scenario, use cases, installation environment(bare metal, vm, container, or k8s), etc. ## Walkthrough (Option) free5GC will be interested on the research or finding in brief. ## Additional context It will be appreciated if other context can be added here.
[Bugs] Free5gc NRF is waiting for MongoDB indefinitely
https://api.github.com/repos/free5gc/free5gc/issues/436/comments
4
2023-03-18T04:48:14Z
2023-03-21T17:17:30Z
https://github.com/free5gc/free5gc/issues/436
1,630,160,169
436
[ "free5gc", "free5gc" ]
## Describe the bug Use SD in S-NSSAI containing alphabetic characters in hexadecimal representation. In the 5GC’s YAML configuration file, SD is written in capital letters. SD in Subscirber registration on webconsole is written in lowercase. In this case PDU session cannot be created correctly. ## To Reproduce * Apply attached patch * Run `make upf && ./test.sh -o TestRegistration` ## Expected behavior Test passed ## Screenshots If applicable, add screenshots to help explain the problem. ## Environment (please complete the following information): - free5GC Version: 662c0191c140da976d403d98190658e3ebc70ee0 - OS: Ubuntu 20.04 - Kernel version: 5.15.0-67-generic - go version: 1.20.2 ### Log File ``` nishi@GTP-U:~/free5gc-deb/free5gc$ make upf && ./test.sh -o TestRegistration make: Nothing to be done for 'upf'. 2023-03-16T13:46:48+09:00 [INFO][UPF][Main] UPF version: free5GC version: v3.2.1-14-g662c019 build time: 2023-03-16T04:30:36Z commit hash: e05c3433 commit time: 2022-09-02T01:58:48Z go version: go1.20.2 linux/amd64 2023-03-16T13:46:48+09:00 [INFO][UPF][Cfg] Read config from [./config/upfcfg.test.yaml] 2023-03-16T13:46:48+09:00 [INFO][UPF][Cfg] ================================================== 2023-03-16T13:46:48+09:00 [INFO][UPF][Cfg] (*factory.Config)(0xc0004066e0)({ Version: (string) (len=5) "1.0.3", Description: (string) (len=31) "UPF initial local configuration", Pfcp: (*factory.Pfcp)(0xc000420e10)({ Addr: (string) (len=14) "10.200.200.101", NodeID: (string) (len=14) "10.200.200.101", RetransTimeout: (time.Duration) 1s, MaxRetrans: (uint8) 3 }), Gtpu: (*factory.Gtpu)(0xc000420fc0)({ Forwarder: (string) (len=5) "gtp5g", IfList: ([]factory.IfInfo) (len=1 cap=1) { (factory.IfInfo) { Addr: (string) (len=14) "10.200.200.102", Type: (string) (len=2) "N3", Name: (string) "", IfName: (string) "", MTU: (uint32) 0 } } }), DnnList: ([]factory.DnnList) (len=1 cap=1) { (factory.DnnList) { Dnn: (string) (len=8) "internet", Cidr: (string) (len=12) "10.60.0.0/16", NatIfName: (string) "" } }, Logger: (*factory.Logger)(0xc0003eadc0)({ Enable: (bool) true, Level: (string) (len=4) "info", ReportCaller: (bool) false }) }) 2023-03-16T13:46:48+09:00 [INFO][UPF][Cfg] ================================================== 2023-03-16T13:46:48+09:00 [INFO][UPF][Main] Log level is set to [info] level 2023-03-16T13:46:48+09:00 [INFO][UPF][Main] starting Gtpu Forwarder [gtp5g] 2023-03-16T13:46:48+09:00 [INFO][UPF][Main] GTP Address: "10.200.200.102:2152" tcpdump: listening on any, link-type LINUX_SLL (Linux cooked v1), capture size 262144 bytes 2023-03-16T13:46:48+09:00 [INFO][UPF][Buff] buff server started 2023-03-16T13:46:48+09:00 [INFO][UPF][Pfcp][10.200.200.101:8805] starting pfcp server 2023-03-16T13:46:48+09:00 [INFO][UPF][Pfcp][10.200.200.101:8805] pfcp server started 2023-03-16T13:46:48+09:00 [INFO][UPF][Main] UPF started tcpdump: listening on lo, link-type EN10MB (Ethernet), capture size 262144 bytes Run TestRegistration 2023-03-16T13:46:52+09:00 [INFO][NRF][CFG] config version [1.0.1] 2023-03-16T13:46:52+09:00 [INFO][AMF][CFG] config version [1.0.3] 2023-03-16T13:46:52+09:00 [INFO][SMF][CFG] SMF config version [1.0.2] 2023-03-16T13:46:52+09:00 [INFO][SMF][CFG] UE-Routing config version [1.0.1] 2023-03-16T13:46:52+09:00 [INFO][UDR][CFG] config version [1.0.1] 2023-03-16T13:46:52+09:00 [INFO][PCF][CFG] config version [1.0.1] 2023-03-16T13:46:52+09:00 [INFO][UDM][CFG] config version [1.0.2] 2023-03-16T13:46:52+09:00 [INFO][NSSF][CFG] config version [1.0.1] 2023-03-16T13:46:52+09:00 [INFO][AUSF][CFG] config version [1.0.2] 2023-03-16T13:46:52+09:00 [INFO][NRF][Init] NRF Log level is set to [info] level 2023-03-16T13:46:52+09:00 [INFO][NRF][Init] Server started 2023-03-16T13:46:52+09:00 [INFO][NRF][Init] nrfconfig Info: Version[1.0.1] Description[NRF initial test configuration] 2023-03-16T13:46:52+09:00 [INFO][NRF][Init] Binding addr: [127.0.0.10:8000] 2023-03-16T13:46:52+09:00 [INFO][AMF][Init] AMF Log level is set to [info] level 2023-03-16T13:46:52+09:00 [INFO][LIB][NAS] set log level : info 2023-03-16T13:46:52+09:00 [INFO][LIB][NAS] set report call : false 2023-03-16T13:46:52+09:00 [INFO][LIB][NGAP] set log level : info 2023-03-16T13:46:52+09:00 [INFO][LIB][NGAP] set report call : false 2023-03-16T13:46:52+09:00 [INFO][LIB][FSM] set log level : info 2023-03-16T13:46:52+09:00 [INFO][LIB][FSM] set report call : false 2023-03-16T13:46:52+09:00 [INFO][LIB][Aper] set log level : info 2023-03-16T13:46:52+09:00 [INFO][LIB][Aper] set report call : false 2023-03-16T13:46:52+09:00 [INFO][AMF][Init] Server started 2023-03-16T13:46:52+09:00 [INFO][AMF][Util] amfconfig Info: Version[1.0.3] Description[AMF initial test configuration] 2023-03-16T13:46:52+09:00 [INFO][AMF][NGAP] Listen on 127.0.0.1:38412 2023-03-16T13:46:52+09:00 [INFO][NRF][MGMT] Handle NFRegisterRequest 2023-03-16T13:46:52+09:00 [INFO][NRF][MGMT] urilist update 2023-03-16T13:46:52+09:00 [INFO][NRF][MGMT] Create NF Profile 2023-03-16T13:46:52+09:00 [INFO][NRF][MGMT] Location header: http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/776938bb-c354-4c68-921e-0871ac0ef5d9 2023-03-16T13:46:52+09:00 [INFO][NRF][GIN] | 201 | 127.0.0.1 | PUT | /nnrf-nfm/v1/nf-instances/776938bb-c354-4c68-921e-0871ac0ef5d9 | 2023-03-16T13:46:53+09:00 [INFO][SMF][Init] SMF Log level is set to [info] level 2023-03-16T13:46:53+09:00 [INFO][LIB][NAS] set log level : info 2023-03-16T13:46:53+09:00 [INFO][LIB][NAS] set report call : false 2023-03-16T13:46:53+09:00 [INFO][LIB][NGAP] set log level : info 2023-03-16T13:46:53+09:00 [INFO][LIB][NGAP] set report call : false 2023-03-16T13:46:53+09:00 [INFO][LIB][Aper] set log level : info 2023-03-16T13:46:53+09:00 [INFO][LIB][Aper] set report call : false 2023-03-16T13:46:53+09:00 [INFO][LIB][PFCP] set log level : info 2023-03-16T13:46:53+09:00 [INFO][LIB][PFCP] set report call : false 2023-03-16T13:46:53+09:00 [INFO][SMF][CTX] smfconfig Info: Version[1.0.2] Description[SMF initial single test configuration] 2023-03-16T13:46:53+09:00 [INFO][SMF][CTX] Endpoints: [10.200.200.102] 2023-03-16T13:46:53+09:00 [INFO][SMF][Init] Server started 2023-03-16T13:46:53+09:00 [INFO][NRF][MGMT] Handle NFRegisterRequest 2023-03-16T13:46:53+09:00 [INFO][NRF][MGMT] urilist update 2023-03-16T13:46:53+09:00 [INFO][NRF][MGMT] Create NF Profile 2023-03-16T13:46:53+09:00 [INFO][NRF][MGMT] Location header: http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/ad66edc4-12b1-479d-b38e-93c65e136d93 2023-03-16T13:46:53+09:00 [INFO][NRF][GIN] | 201 | 127.0.0.1 | PUT | /nnrf-nfm/v1/nf-instances/ad66edc4-12b1-479d-b38e-93c65e136d93 | 2023-03-16T13:46:53+09:00 [INFO][SMF][Init] SMF Registration to NRF {ad66edc4-12b1-479d-b38e-93c65e136d93 SMF REGISTERED 0 0xc0005ef380 0xc0005ef3b0 [] [] [127.0.0.2] [] <nil> [] [] <nil> 0 0 0 <nil> <nil> <nil> <nil> 0xc000302dc0 <nil> <nil> <nil> <nil> <nil> map[] <nil> false 0xc0005ef278 false false []} 2023-03-16T13:46:53+09:00 [INFO][SMF][PFCP] Listen on 10.200.200.1:8805 2023-03-16T13:46:53+09:00 [INFO][SMF][App] Sending PFCP Association Request to UPF[10.200.200.101] 2023-03-16T13:46:53+09:00 [INFO][UPF][Pfcp][10.200.200.101:8805] handleAssociationSetupRequest 2023-03-16T13:46:53+09:00 [INFO][UPF][Pfcp][10.200.200.101:8805][rNodeID:10.200.200.1] New node 2023-03-16T13:46:53+09:00 [INFO][LIB][PFCP] Remove Request Transaction [1] 2023-03-16T13:46:53+09:00 [INFO][SMF][App] Received PFCP Association Setup Accepted Response from UPF[10.200.200.101] 2023-03-16T13:46:53+09:00 [INFO][UDR][Init] UDR Log level is set to [info] level 2023-03-16T13:46:53+09:00 [INFO][UDR][Init] UDR Config Info: Version[1.0.1] Description[UDR initial test configuration] 2023-03-16T13:46:53+09:00 [INFO][UDR][Init] Server started 2023-03-16T13:46:53+09:00 [INFO][UDR][Util] udrconfig Info: Version[1.0.1] Description[UDR initial test configuration] 2023-03-16T13:46:53+09:00 [INFO][NRF][MGMT] Handle NFRegisterRequest 2023-03-16T13:46:53+09:00 [INFO][NRF][MGMT] urilist update 2023-03-16T13:46:53+09:00 [INFO][NRF][MGMT] Create NF Profile 2023-03-16T13:46:53+09:00 [INFO][NRF][MGMT] Location header: http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/1d2635f4-a5eb-4e60-ad5e-fb58d0e6ba23 2023-03-16T13:46:53+09:00 [INFO][NRF][GIN] | 201 | 127.0.0.1 | PUT | /nnrf-nfm/v1/nf-instances/1d2635f4-a5eb-4e60-ad5e-fb58d0e6ba23 | 2023-03-16T13:46:53+09:00 [INFO][PCF][Init] PCF Log level is set to [info] level 2023-03-16T13:46:53+09:00 [INFO][PCF][Init] Server started 2023-03-16T13:46:53+09:00 [INFO][PCF][Util] pcfconfig Info: Version[1.0.1] Description[PCF initial test configuration] 2023-03-16T13:46:53+09:00 [INFO][NRF][MGMT] Handle NFRegisterRequest 2023-03-16T13:46:53+09:00 [INFO][NRF][MGMT] urilist update 2023-03-16T13:46:53+09:00 [INFO][NRF][MGMT] Create NF Profile 2023-03-16T13:46:53+09:00 [INFO][NRF][MGMT] Location header: http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/469f9951-c983-40c7-9908-40656921fd90 2023-03-16T13:46:53+09:00 [INFO][NRF][GIN] | 201 | 127.0.0.1 | PUT | /nnrf-nfm/v1/nf-instances/469f9951-c983-40c7-9908-40656921fd90 | 2023-03-16T13:46:53+09:00 [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2023-03-16T13:46:53+09:00 [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=PCF&service-names=nudr-dr&target-nf-type=UDR | 2023-03-16T13:46:53+09:00 [INFO][UDM][Init] UDM Log level is set to [info] level 2023-03-16T13:46:53+09:00 [INFO][UDM][Init] UDM Config Info: Version[1.0.2] Description[UDM initial test configuration] 2023-03-16T13:46:53+09:00 [INFO][UDM][Init] Server started 2023-03-16T13:46:53+09:00 [INFO][UDM][Util] udmconfig Info: Version[1.0.2] Description[UDM initial test configuration] 2023-03-16T13:46:53+09:00 [INFO][NRF][MGMT] Handle NFRegisterRequest 2023-03-16T13:46:53+09:00 [INFO][NRF][MGMT] urilist update 2023-03-16T13:46:53+09:00 [INFO][NRF][MGMT] Create NF Profile 2023-03-16T13:46:53+09:00 [INFO][NRF][MGMT] Location header: http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/f44adc11-850a-4c45-9516-74e8094b278a 2023-03-16T13:46:53+09:00 [INFO][NRF][GIN] | 201 | 127.0.0.1 | PUT | /nnrf-nfm/v1/nf-instances/f44adc11-850a-4c45-9516-74e8094b278a | 2023-03-16T13:46:53+09:00 [INFO][NSSF][Init] NSSF Log level is set to [info] level 2023-03-16T13:46:53+09:00 [INFO][NSSF][Init] Server started 2023-03-16T13:46:53+09:00 [INFO][NRF][MGMT] Handle NFRegisterRequest 2023-03-16T13:46:53+09:00 [INFO][NRF][MGMT] urilist update 2023-03-16T13:46:53+09:00 [INFO][NRF][MGMT] Create NF Profile 2023-03-16T13:46:53+09:00 [INFO][NRF][MGMT] Location header: http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/9b8592ad-8323-4a8e-a423-0b30d5b1e0c1 2023-03-16T13:46:53+09:00 [INFO][NRF][GIN] | 201 | 127.0.0.1 | PUT | /nnrf-nfm/v1/nf-instances/9b8592ad-8323-4a8e-a423-0b30d5b1e0c1 | 2023-03-16T13:46:54+09:00 [INFO][AUSF][Init] AUSF Log level is set to [info] level 2023-03-16T13:46:54+09:00 [INFO][AUSF][Init] Server started 2023-03-16T13:46:54+09:00 [INFO][AUSF][Init] ausfconfig Info: Version[1.0.2] Description[AUSF initial test configuration] ausf context = &{{{0 0} {[] {} <nil>} map[] 0} {{0 0} {[] {} <nil>} map[] 0} 7c65f526-285d-4898-bc2b-073eb7857ac4 ausfGroup001 8000 127.0.0.9 127.0.0.9 http://127.0.0.9:8000 http http://127.0.0.10:8000 map[nausf-auth:{7c65f526-285d-4898-bc2b-073eb7857ac4 nausf-auth 0xc000127e30 http REGISTERED 0xc000127e18 [] <nil> [] [] <nil> 0 0 0 <nil> <nil> }] [{208 93} {123 45}] 0xc0001f9ea0 false} 2023-03-16T13:46:54+09:00 [INFO][NRF][MGMT] Handle NFRegisterRequest 2023-03-16T13:46:54+09:00 [INFO][NRF][MGMT] urilist update 2023-03-16T13:46:54+09:00 [INFO][NRF][MGMT] Create NF Profile 2023-03-16T13:46:54+09:00 [INFO][NRF][MGMT] Location header: http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/7c65f526-285d-4898-bc2b-073eb7857ac4 2023-03-16T13:46:54+09:00 [INFO][NRF][GIN] | 201 | 127.0.0.1 | PUT | /nnrf-nfm/v1/nf-instances/7c65f526-285d-4898-bc2b-073eb7857ac4 | === RUN TestRegistration 2023-03-16T13:46:54+09:00 [INFO][AMF][NGAP] [AMF] SCTP Accept from: 127.0.0.1:9487 2023-03-16T13:46:54+09:00 [INFO][AMF][NGAP] Create a new NG connection for: 127.0.0.1:9487 2023-03-16T13:46:54+09:00 [INFO][AMF][NGAP][127.0.0.1:9487] Handle NG Setup request 2023-03-16T13:46:54+09:00 [INFO][AMF][NGAP][127.0.0.1:9487] Send NG-Setup response 2023-03-16T13:46:54+09:00 [INFO][AMF][NGAP][127.0.0.1:9487] Handle Initial UE Message 2023-03-16T13:46:54+09:00 [INFO][LIB][FSM] Handle event[Gmm Message], transition from [Deregistered] to [Deregistered] 2023-03-16T13:46:54+09:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:1] Handle Registration Request 2023-03-16T13:46:54+09:00 [INFO][LIB][FSM] Handle event[Start Authentication], transition from [Deregistered] to [Authentication] 2023-03-16T13:46:54+09:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:1] Authentication procedure 2023-03-16T13:46:54+09:00 [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2023-03-16T13:46:54+09:00 [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=AMF&target-nf-type=AUSF | 2023-03-16T13:46:54+09:00 [INFO][AUSF][UeAuthPost] HandleUeAuthPostRequest 2023-03-16T13:46:54+09:00 [INFO][AUSF][UeAuthPost] Serving network authorized 2023-03-16T13:46:54+09:00 [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2023-03-16T13:46:54+09:00 [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=AUSF&service-names=nudm-ueau&target-nf-type=UDM | 2023-03-16T13:46:54+09:00 [INFO][UDM][UEAU] Handle GenerateAuthDataRequest 2023-03-16T13:46:54+09:00 [INFO][UDM][Suci] suciPart: [suci 0 208 93 0 0 0 00007487] 2023-03-16T13:46:54+09:00 [INFO][UDM][Suci] scheme 0 2023-03-16T13:46:54+09:00 [INFO][UDM][Suci] SUPI type is IMSI http://127.0.0.10:8000 2023-03-16T13:46:54+09:00 [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2023-03-16T13:46:54+09:00 [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=UDM&target-nf-type=UDR | 2023-03-16T13:46:54+09:00 [INFO][UDR][DRepo] Handle QueryAuthSubsData 2023-03-16T13:46:54+09:00 [INFO][UDR][GIN] | 200 | 127.0.0.1 | GET | /nudr-dr/v1/subscription-data/imsi-2089300007487/authentication-data/authentication-subscription | 2023-03-16T13:46:54+09:00 [INFO][UDR][DRepo] Handle ModifyAuthentication 2023-03-16T13:46:54+09:00 [INFO][UDR][GIN] | 204 | 127.0.0.1 | PATCH | /nudr-dr/v1/subscription-data/imsi-2089300007487/authentication-data/authentication-subscription | 2023-03-16T13:46:54+09:00 [INFO][UDM][GIN] | 200 | 127.0.0.1 | POST | /nudm-ueau/v1/suci-0-208-93-0-0-0-00007487/security-information/generate-auth-data | 2023-03-16T13:46:54+09:00 [INFO][AUSF][UeAuthPost] Add SuciSupiPair (suci-0-208-93-0-0-0-00007487, imsi-2089300007487) to map. 2023-03-16T13:46:54+09:00 [INFO][AUSF][UeAuthPost] Use 5G AKA auth method 2023-03-16T13:46:54+09:00 [INFO][AUSF][5gAkaAuth] XresStar = 3535363736633238363364373233363239306161313664656134313836353364 2023-03-16T13:46:54+09:00 [INFO][AUSF][GIN] | 201 | 127.0.0.1 | POST | /nausf-auth/v1/ue-authentications | 2023-03-16T13:46:54+09:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:1] Send Authentication Request 2023-03-16T13:46:54+09:00 [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Send Downlink Nas Transport 2023-03-16T13:46:54+09:00 [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Uplink NAS Transport (RAN UE NGAP ID: 1) 2023-03-16T13:46:54+09:00 [INFO][LIB][FSM] Handle event[Gmm Message], transition from [Authentication] to [Authentication] 2023-03-16T13:46:54+09:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:1] Handle Authentication Response 2023-03-16T13:46:54+09:00 [INFO][AUSF][5gAkaAuth] Auth5gAkaComfirmRequest 2023-03-16T13:46:54+09:00 [INFO][AUSF][5gAkaAuth] res*: 3535363736633238363364373233363239306161313664656134313836353364 Xres*: 3535363736633238363364373233363239306161313664656134313836353364 2023-03-16T13:46:54+09:00 [INFO][AUSF][5gAkaAuth] 5G AKA confirmation succeeded 2023-03-16T13:46:54+09:00 [INFO][UDM][UEAU] Handle ConfirmAuthDataRequest 2023-03-16T13:46:54+09:00 [INFO][UDR][DRepo] Handle CreateAuthenticationStatus 2023-03-16T13:46:54+09:00 [INFO][UDR][GIN] | 204 | 127.0.0.1 | PUT | /nudr-dr/v1/subscription-data/imsi-2089300007487/authentication-data/authentication-status | 2023-03-16T13:46:54+09:00 [INFO][UDM][GIN] | 201 | 127.0.0.1 | POST | /nudm-ueau/v1/imsi-2089300007487/auth-events | 2023-03-16T13:46:54+09:00 [INFO][AUSF][GIN] | 200 | 127.0.0.1 | PUT | /nausf-auth/v1/ue-authentications/suci-0-208-93-0-0-0-00007487/5g-aka-confirmation | 2023-03-16T13:46:54+09:00 [INFO][LIB][FSM] Handle event[Authentication Success], transition from [Authentication] to [SecurityMode] 2023-03-16T13:46:54+09:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Send Security Mode Command 2023-03-16T13:46:54+09:00 [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Send Downlink Nas Transport Security Header Type Integrity Protected With New 5g Nas Security Context cmac value: 0x61ee5924 err <nil> 2023-03-16T13:46:54+09:00 [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Uplink NAS Transport (RAN UE NGAP ID: 1) 2023-03-16T13:46:54+09:00 [INFO][LIB][FSM] Handle event[Gmm Message], transition from [SecurityMode] to [SecurityMode] 2023-03-16T13:46:54+09:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Handle Security Mode Complete 2023-03-16T13:46:54+09:00 [INFO][LIB][FSM] Handle event[SecurityMode Success], transition from [SecurityMode] to [ContextSetup] 2023-03-16T13:46:54+09:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Handle InitialRegistration 2023-03-16T13:46:54+09:00 [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2023-03-16T13:46:54+09:00 [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=AMF&supi=imsi-2089300007487&target-nf-type=UDM | 2023-03-16T13:46:54+09:00 [INFO][UDM][SDM] Handle GetNssai 2023-03-16T13:46:54+09:00 [INFO][UDR][DRepo] Handle QueryAmData 2023-03-16T13:46:54+09:00 [INFO][UDR][GIN] | 200 | 127.0.0.1 | GET | /nudr-dr/v1/subscription-data/imsi-2089300007487/20893/provisioned-data/am-data | 2023-03-16T13:46:54+09:00 [INFO][UDM][GIN] | 200 | 127.0.0.1 | GET | /nudm-sdm/v1/imsi-2089300007487/nssai?plmn-id=%7B%22mcc%22%3A%22208%22%2C%22mnc%22%3A%2293%22%7D | 2023-03-16T13:46:54+09:00 [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2023-03-16T13:46:54+09:00 [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=AMF&supi=imsi-2089300007487&target-nf-type=UDM | 2023-03-16T13:46:54+09:00 [INFO][UDM][UECM] Handle RegistrationAmf3gppAccess 2023-03-16T13:46:54+09:00 [INFO][UDM][UECM] UEID: imsi-2089300007487 2023-03-16T13:46:54+09:00 [INFO][UDR][DRepo] Handle CreateAmfContext3gpp 2023-03-16T13:46:54+09:00 [INFO][UDR][GIN] | 204 | 127.0.0.1 | PUT | /nudr-dr/v1/subscription-data/imsi-2089300007487/context-data/amf-3gpp-access | 2023-03-16T13:46:54+09:00 [INFO][UDM][GIN] | 201 | 127.0.0.1 | PUT | /nudm-uecm/v1/imsi-2089300007487/registrations/amf-3gpp-access | 2023-03-16T13:46:54+09:00 [INFO][UDM][SDM] Handle GetAmData 2023-03-16T13:46:54+09:00 [INFO][UDR][DRepo] Handle QueryAmData 2023-03-16T13:46:54+09:00 [INFO][UDR][GIN] | 200 | 127.0.0.1 | GET | /nudr-dr/v1/subscription-data/imsi-2089300007487/20893/provisioned-data/am-data?supported-features=%7B%22mcc%22%3A%22208%22%2C%22mnc%22%3A%2293%22%7D | 2023-03-16T13:46:54+09:00 [INFO][UDM][GIN] | 200 | 127.0.0.1 | GET | /nudm-sdm/v1/imsi-2089300007487/am-data?plmn-id=%7B%22mcc%22%3A%22208%22%2C%22mnc%22%3A%2293%22%7D | 2023-03-16T13:46:54+09:00 [INFO][UDM][SDM] Handle GetSmfSelectData 2023/03/16 13:46:54 http2: server connection error from 127.0.0.1:49810: connection error: PROTOCOL_ERROR 2023-03-16T13:46:54+09:00 [INFO][UDR][DRepo] Handle QuerySmfSelectData 2023-03-16T13:46:54+09:00 [INFO][UDR][GIN] | 200 | 127.0.0.1 | GET | /nudr-dr/v1/subscription-data/imsi-2089300007487/20893/provisioned-data/smf-selection-subscription-data | 2023-03-16T13:46:54+09:00 [INFO][UDM][GIN] | 200 | 127.0.0.1 | GET | /nudm-sdm/v1/imsi-2089300007487/smf-select-data?plmn-id=%7B%22mcc%22%3A%22208%22%2C%22mnc%22%3A%2293%22%7D | 2023-03-16T13:46:54+09:00 [INFO][UDM][SDM] Handle GetUeContextInSmfData 2023-03-16T13:46:54+09:00 [INFO][UDR][DRepo] Handle QuerySmfRegList 2023-03-16T13:46:54+09:00 [INFO][UDR][GIN] | 200 | 127.0.0.1 | GET | /nudr-dr/v1/subscription-data/imsi-2089300007487/context-data/smf-registrations | 2023-03-16T13:46:54+09:00 [INFO][UDM][GIN] | 200 | 127.0.0.1 | GET | /nudm-sdm/v1/imsi-2089300007487/ue-context-in-smf-data | 2023/03/16 13:46:54 http2: server connection error from 127.0.0.1:50268: connection error: PROTOCOL_ERROR 2023-03-16T13:46:54+09:00 [INFO][UDM][SDM] Handle Subscribe 2023-03-16T13:46:54+09:00 [INFO][UDR][DRepo] Handle CreateSdmSubscriptions 2023-03-16T13:46:54+09:00 [INFO][UDR][GIN] | 201 | 127.0.0.1 | POST | /nudr-dr/v1/subscription-data/imsi-2089300007487/context-data/sdm-subscriptions | 2023-03-16T13:46:54+09:00 [INFO][UDM][GIN] | 201 | 127.0.0.1 | POST | /nudm-sdm/v1/imsi-2089300007487/sdm-subscriptions | 2023-03-16T13:46:54+09:00 [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2023-03-16T13:46:54+09:00 [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=AMF&supi=imsi-2089300007487&target-nf-type=PCF | 2023-03-16T13:46:54+09:00 [INFO][PCF][Ampolicy] Handle AM Policy Create Request 2023-03-16T13:46:54+09:00 [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2023-03-16T13:46:54+09:00 [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=PCF&target-nf-type=UDR | 2023-03-16T13:46:54+09:00 [INFO][UDR][DRepo] Handle PolicyDataUesUeIdAmDataGet 2023-03-16T13:46:54+09:00 [INFO][UDR][GIN] | 200 | 127.0.0.1 | GET | /nudr-dr/v1/policy-data/ues/imsi-2089300007487/am-data | 2023-03-16T13:46:54+09:00 [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2023-03-16T13:46:54+09:00 [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?guami=%7B%22plmnId%22%3A%7B%22mcc%22%3A%22208%22%2C%22mnc%22%3A%2293%22%7D%2C%22amfId%22%3A%22cafe00%22%7D&requester-nf-type=PCF&target-nf-type=AMF | 2023-03-16T13:46:54+09:00 [INFO][AMF][Comm] Handle AMF Status Change Subscribe Request 2023-03-16T13:46:54+09:00 [INFO][AMF][Comm] new AMF Status Subscription[1] 2023-03-16T13:46:54+09:00 [INFO][AMF][GIN] | 201 | 127.0.0.1 | POST | /namf-comm/v1/subscriptions | 2023-03-16T13:46:54+09:00 [INFO][PCF][GIN] | 201 | 127.0.0.1 | POST | /npcf-am-policy-control/v1/policies | 2023-03-16T13:46:54+09:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Send Registration Accept 2023-03-16T13:46:54+09:00 [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Send Initial Context Setup Request 2023-03-16T13:46:54+09:00 [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Handle Initial Context Setup Response 2023-03-16T13:46:54+09:00 [INFO][NAS][Message] Encode ExtendedProtocolConfigurationOptions in EncodePDUSessionEstablishmentRequest 2023-03-16T13:46:54+09:00 [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Uplink NAS Transport (RAN UE NGAP ID: 1) 2023-03-16T13:46:54+09:00 [INFO][LIB][FSM] Handle event[Gmm Message], transition from [ContextSetup] to [ContextSetup] 2023-03-16T13:46:54+09:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Handle Registration Complete 2023-03-16T13:46:54+09:00 [INFO][LIB][FSM] Handle event[ContextSetup Success], transition from [ContextSetup] to [Registered] 2023-03-16T13:46:54+09:00 [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Uplink NAS Transport (RAN UE NGAP ID: 1) 2023-03-16T13:46:54+09:00 [INFO][LIB][FSM] Handle event[Gmm Message], transition from [Registered] to [Registered] 2023-03-16T13:46:54+09:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Handle UL NAS Transport 2023-03-16T13:46:54+09:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Transport 5GSM Message to SMF 2023-03-16T13:46:54+09:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Select SMF [snssai: {Sst:1 Sd:fedcba}, dnn: internet] 2023-03-16T13:46:54+09:00 [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2023-03-16T13:46:54+09:00 [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=AMF&target-nf-type=NSSF | 2023-03-16T13:46:54+09:00 [INFO][NSSF][NsSelect] Handle NSSelectionGet 2023-03-16T13:46:54+09:00 [INFO][NSSF][GIN] | 200 | 127.0.0.1 | GET | /nnssf-nsselection/v1/network-slice-information?nf-id=776938bb-c354-4c68-921e-0871ac0ef5d9&nf-type=AMF&slice-info-request-for-pdu-session=%7B%22sNssai%22%3A%7B%22sst%22%3A1%2C%22sd%22%3A%22fedcba%22%7D%2C%22roamingIndication%22%3A%22NON_ROAMING%22%7D | 2023-03-16T13:46:54+09:00 [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2023-03-16T13:46:54+09:00 [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?dnn=internet&requester-nf-type=AMF&service-names=nsmf-pdusession&snssais=%7B%22sst%22%3A1%2C%22sd%22%3A%22fedcba%22%7D&target-nf-type=SMF&target-plmn-list=%7B%22mcc%22%3A%22208%22%2C%22mnc%22%3A%2293%22%7D | 2023-03-16T13:46:54+09:00 [INFO][SMF][PduSess] Receive Create SM Context Request 2023-03-16T13:46:54+09:00 [INFO][SMF][PduSess] In HandlePDUSessionSMContextCreate 2023-03-16T13:46:54+09:00 [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2023-03-16T13:46:54+09:00 [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=SMF&target-nf-type=UDM | 2023-03-16T13:46:54+09:00 [INFO][SMF][PduSess] Send NF Discovery Serving UDM Successfully 2023-03-16T13:46:54+09:00 [INFO][SMF][CTX] Allocated UE IP address: 10.60.0.1 2023-03-16T13:46:54+09:00 [INFO][SMF][CTX] Selected UPF: UPF 2023-03-16T13:46:54+09:00 [INFO][SMF][PduSess] UE[imsi-2089300007487] PDUSessionID[10] IP[10.60.0.1] 2023-03-16T13:46:54+09:00 [INFO][UDM][SDM] Handle GetSmData 2023-03-16T13:46:54+09:00 [INFO][UDM][SDM] getSmDataProcedure: SUPI[imsi-2089300007487] PLMNID[20893] DNN[internet] SNssai[{"sst":1,"sd":"fedcba"}] 2023-03-16T13:46:54+09:00 [INFO][UDR][DRepo] Handle QuerySmData 2023-03-16T13:46:54+09:00 [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%22fedcba%22%7D | 2023-03-16T13:46:54+09:00 [INFO][UDM][GIN] | 200 | 127.0.0.1 | GET | /nudm-sdm/v1/imsi-2089300007487/sm-data?dnn=internet&plmn-id=%7B%22mcc%22%3A%22208%22%2C%22mnc%22%3A%2293%22%7D&single-nssai=%7B%22sst%22%3A1%2C%22sd%22%3A%22fedcba%22%7D | 2023-03-16T13:46:54+09:00 [INFO][SMF][GSM] In HandlePDUSessionEstablishmentRequest 2023-03-16T13:46:54+09:00 [INFO][NAS][Convert] ProtocolOrContainerList: [0xc000b699c0 0xc000b699e0 0xc000b69a00] 2023-03-16T13:46:54+09:00 [INFO][SMF][GSM] Protocol Configuration Options 2023-03-16T13:46:54+09:00 [INFO][SMF][GSM] &{[0xc000b699c0 0xc000b699e0 0xc000b69a00]} 2023-03-16T13:46:54+09:00 [INFO][SMF][GSM] Didn't Implement container type IPAddressAllocationViaNASSignallingUL 2023-03-16T13:46:54+09:00 [INFO][SMF][PduSess] PCF Selection for SMContext SUPI[imsi-2089300007487] PDUSessionID[10] 2023-03-16T13:46:54+09:00 [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2023-03-16T13:46:54+09:00 [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=SMF&target-nf-type=PCF | 2023-03-16T13:46:54+09:00 [INFO][PCF][SMpolicy] Handle CreateSmPolicy 2023-03-16T13:46:54+09:00 [INFO][UDR][DRepo] Handle PolicyDataUesUeIdSmDataGet 2023-03-16T13:46:54+09:00 [INFO][UDR][GIN] | 404 | 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%22fedcba%22%7D | 2023-03-16T13:46:54+09:00 [WARN][PCF][SMpolicy] Can't find UE[imsi-2089300007487] SM Policy Data in UDR 2023-03-16T13:46:54+09:00 [INFO][PCF][GIN] | 400 | 127.0.0.1 | POST | /npcf-smpolicycontrol/v1/sm-policies | 2023-03-16T13:46:54+09:00 [ERRO][SMF][PduSess] setup sm policy association failed: 400 Bad Request { 400 Can't find UE SM Policy Data in UDR USER_UNKNOWN []} 2023-03-16T13:46:54+09:00 [INFO][SMF][GIN] | 403 | 127.0.0.1 | POST | /nsmf-pdusession/v1/sm-contexts | 2023-03-16T13:46:54+09:00 [WARN][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] PDU Session Establishment Request is rejected by SMF[pduSessionId:10] 2023-03-16T13:46:54+09:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Send DL NAS Transport 2023-03-16T13:46:54+09:00 [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Send Downlink Nas Transport registration_test.go:218: Error Trace: registration_test.go:218 Error: Should be true Test: TestRegistration Messages: No PDUSessionResourceSetup received. 2023-03-16T13:46:54+09:00 [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Handle PDU Session Resource Setup Response 2023-03-16T13:46:54+09:00 [ERRO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] SmContext[PDU Session ID:10] not found 2023-03-16T13:46:56+09:00 [INFO][AMF][NGAP] Handle SCTP Notification[addr: <nil>] 2023-03-16T13:46:56+09:00 [INFO][AUSF][Init] Terminating AUSF... 2023-03-16T13:46:56+09:00 [INFO][AUSF][App] Send Deregister NFInstance 2023-03-16T13:46:56+09:00 [INFO][AMF][NGAP][127.0.0.1:9487] SCTP_SHUTDOWN_EVENT notification, close the connection 2023-03-16T13:46:56+09:00 [INFO][AMF][NGAP][127.0.0.1:9487] Remove RAN Context[ID: <PlmnID: {Mcc:208 Mnc:93}, GNbID: 000102>] 2023-03-16T13:46:56+09:00 [INFO][AMF][NGAP] Handle SCTP Notification[addr: <nil>] 2023-03-16T13:46:56+09:00 [WARN][AMF][NGAP] RAN context has been removed[addr: <nil>] 2023-03-16T13:46:56+09:00 [INFO][NRF][MGMT] Handle NFDeregisterRequest 2023-03-16T13:46:57+09:00 [INFO][NRF][GIN] | 204 | 127.0.0.1 | DELETE | /nnrf-nfm/v1/nf-instances/7c65f526-285d-4898-bc2b-073eb7857ac4 | 2023-03-16T13:46:57+09:00 [INFO][AUSF][Init] Deregister from NRF successfully 2023-03-16T13:46:57+09:00 [INFO][AUSF][Init] AUSF terminated 2023-03-16T13:46:57+09:00 [INFO][NSSF][Init] Terminating NSSF... 2023-03-16T13:46:57+09:00 [INFO][NSSF][App] Send Deregister NFInstance 2023-03-16T13:46:57+09:00 [INFO][NRF][MGMT] Handle NFDeregisterRequest 2023-03-16T13:46:58+09:00 [INFO][NRF][GIN] | 204 | 127.0.0.1 | DELETE | /nnrf-nfm/v1/nf-instances/9b8592ad-8323-4a8e-a423-0b30d5b1e0c1 | 2023-03-16T13:46:58+09:00 [INFO][NSSF][Init] Deregister from NRF successfully 2023-03-16T13:46:58+09:00 [INFO][NSSF][Init] NSSF terminated 2023-03-16T13:46:58+09:00 [INFO][UDM][Init] Terminating UDM... 2023-03-16T13:46:58+09:00 [INFO][UDM][Consumer] Send Deregister NFInstance 2023/03/16 13:46:58 http2: server connection error from 127.0.0.1:57732: connection error: PROTOCOL_ERROR 2023-03-16T13:46:58+09:00 [INFO][NRF][MGMT] Handle NFDeregisterRequest 2023-03-16T13:46:59+09:00 [INFO][NRF][GIN] | 204 | 127.0.0.1 | DELETE | /nnrf-nfm/v1/nf-instances/f44adc11-850a-4c45-9516-74e8094b278a | 2023-03-16T13:46:59+09:00 [INFO][UDM][Init] Deregister from NRF successfully 2023-03-16T13:46:59+09:00 [INFO][UDM][Init] UDM terminated 2023-03-16T13:46:59+09:00 [INFO][PCF][Init] Terminating PCF... 2023-03-16T13:46:59+09:00 [INFO][PCF][Consumer] Send Deregister NFInstance 2023-03-16T13:46:59+09:00 [INFO][NRF][MGMT] Handle NFDeregisterRequest 2023-03-16T13:47:00+09:00 [INFO][NRF][GIN] | 204 | 127.0.0.1 | DELETE | /nnrf-nfm/v1/nf-instances/469f9951-c983-40c7-9908-40656921fd90 | 2023-03-16T13:47:00+09:00 [INFO][PCF][Init] Deregister from NRF successfully 2023-03-16T13:47:00+09:00 [INFO][PCF][Init] PCF terminated 2023-03-16T13:47:00+09:00 [INFO][UDR][Init] Terminating UDR... 2023-03-16T13:47:00+09:00 [INFO][UDR][Consumer] Send Deregister NFInstance 2023-03-16T13:47:00+09:00 [INFO][NRF][MGMT] Handle NFDeregisterRequest 2023-03-16T13:47:01+09:00 [INFO][NRF][GIN] | 204 | 127.0.0.1 | DELETE | /nnrf-nfm/v1/nf-instances/1d2635f4-a5eb-4e60-ad5e-fb58d0e6ba23 | 2023-03-16T13:47:01+09:00 [INFO][UDR][Init] Deregister from NRF successfully 2023-03-16T13:47:01+09:00 [INFO][UDR][Init] UDR terminated 2023-03-16T13:47:01+09:00 [INFO][SMF][Init] Terminating SMF... 2023-03-16T13:47:01+09:00 [INFO][SMF][Consumer] Send Deregister NFInstance 2023-03-16T13:47:01+09:00 [INFO][NRF][MGMT] Handle NFDeregisterRequest 2023-03-16T13:47:02+09:00 [INFO][NRF][GIN] | 204 | 127.0.0.1 | DELETE | /nnrf-nfm/v1/nf-instances/ad66edc4-12b1-479d-b38e-93c65e136d93 | 2023-03-16T13:47:02+09:00 [INFO][SMF][Init] Deregister from NRF successfully 2023-03-16T13:47:02+09:00 [INFO][AMF][Init] Terminating AMF... 2023-03-16T13:47:02+09:00 [INFO][AMF][Consumer] [AMF] Send Deregister NFInstance 2023-03-16T13:47:02+09:00 [INFO][NRF][MGMT] Handle NFDeregisterRequest 2023-03-16T13:47:03+09:00 [INFO][NRF][GIN] | 204 | 127.0.0.1 | DELETE | /nnrf-nfm/v1/nf-instances/776938bb-c354-4c68-921e-0871ac0ef5d9 | 2023-03-16T13:47:03+09:00 [INFO][AMF][Init] [AMF] Deregister from NRF successfully 2023-03-16T13:47:03+09:00 [INFO][AMF][Init] Send AMF Status Indication to Notify RANs due to AMF terminating 2023-03-16T13:47:03+09:00 [INFO][AMF][NGAP] Close SCTP server... 2023-03-16T13:47:03+09:00 [INFO][AMF][NGAP] SCTP server closed 2023-03-16T13:47:03+09:00 [INFO][AMF][Producer] [AMF] Send Amf Status Change Notify to http://127.0.0.7:8000/npcf-callback/v1/amfstatus 2023-03-16T13:47:03+09:00 [WARN][PCF][Callback] [PCF] Handle Amf Status Change Notify is not implemented. 2023-03-16T13:47:03+09:00 [INFO][PCF][GIN] | 204 | 127.0.0.1 | POST | /npcf-callback/v1/amfstatus | 2023-03-16T13:47:03+09:00 [INFO][AMF][Init] AMF terminated 2023-03-16T13:47:03+09:00 [INFO][NRF][Init] Terminating NRF... 2023-03-16T13:47:03+09:00 [INFO][NRF][Init] Remove NF Profile... 2023-03-16T13:47:03+09:00 [INFO][NRF][Init] NRF terminated --- FAIL: TestRegistration (9.41s) FAIL exit status 1 FAIL test 11.069s 2023-03-16T13:47:06+09:00 [INFO][UPF][Main] Shutdown UPF ... 2023-03-16T13:47:06+09:00 [INFO][UPF][Pfcp][10.200.200.101:8805] Stopping pfcp server 2023-03-16T13:47:06+09:00 [ERRO][UPF][Pfcp][10.200.200.101:8805] read udp4 10.200.200.101:8805: use of closed network connection 2023-03-16T13:47:06+09:00 [INFO][UPF][Pfcp][10.200.200.101:8805] pfcp reciver stopped 2023-03-16T13:47:06+09:00 [INFO][UPF][Pfcp][10.200.200.101:8805] pfcp server stopped 18 packets captured 18 packets received by filter 0 packets dropped by kernel 1436 packets captured 2872 packets received by filter 0 packets dropped by kernel 2023-03-16T13:47:06+09:00 [INFO][UPF][Buff] buff server stopped 2023-03-16T13:47:06+09:00 [INFO][UPF][Main] Terminating UPF... 2023-03-16T13:47:06+09:00 [INFO][UPF][Main] UPF terminated 2023-03-16T13:47:06+09:00 [INFO][UPF][Main] UPF exited nishi@GTP-U:~/free5gc-deb/free5gc$ ```
[Bugs] SD case mismatch
https://api.github.com/repos/free5gc/free5gc/issues/435/comments
4
2023-03-16T04:48:29Z
2023-07-24T04:32:19Z
https://github.com/free5gc/free5gc/issues/435
1,626,706,073
435
[ "free5gc", "free5gc" ]
## Describe the bug When I call the `/oauth2/token` endpoint of the NRF with an invalid/unknown `targetNfType`, it returns a 500 Internal Server Error and logs a nil pointer dereference panic ## To Reproduce Steps to reproduce the behavior: 1. Start the NRF 2. register with the NRF as a network function via `PUT /nnrf-nfm/v1/nf-instances/<ID>` 3. send a POST request to the NRF endpoint `/oauth2/token` with the following payload: ``` { "nfInstanceId": "<the UUID you registered in step 2>", "grant_type": "client_credentials", "nfType": "<whatever you used in step 2>", "targetNfType: "NOPE", "scope": "nudr-dr" } ``` => a 500 Internal Server Error will be returned ## Expected behavior I expect a 400 Bad Request, where the body contains JSON in the form of `{"error": "<error-string>"}` The exact value `<error-string>` is left a bit unclear in the specification as far as I can tell, but it should be one of `invalid_scope`, `invalid_client`, `unauthorized_client` or `invalid_request`. Consistent with other behaviour of the Free5gc implementation would be `invalid_client`. ## Environment (please complete the following information): - free5GC Version: NRF git-commit `0cc35b002c2cf1e80b05a19923d2d684daa78456`, free5gc git-commit `e6f787dcd3bee221f44a5c807b605d380256a404` - OS: Debian GNU/Linux Bullseye - Kernel version: 6.1.12 - go version: 1.18.10 linux/amd64 ## Trace File ### Configuration File ``` info: version: 1.0.2 description: NRF initial local configuration configuration: MongoDBName: free5gc # database name in MongoDB MongoDBUrl: mongodb://172.44.0.2:27017 # a valid URL of the mongodb sbi: # Service-based interface information scheme: https # the protocol for sbi (http or https) registerIPv4: 172.44.0.12 # IP used to serve NFs or register to another NRF bindingIPv4: 172.44.0.12 # IP used to bind the service port: 8000 # port used to bind the service cert: # the local path of TLS key pem: ./config/TLS/nrf.pem # NRF TLS Certificate key: ./config/TLS/nrf.key # NRF TLS Private key rootcert: pem: ./config/TLS/nrf.pem # NRF TLS Certificate key: ./config/TLS/nrf.key # NRF TLS Private key oauth: true DefaultPlmnId: mcc: 001 # Mobile Country Code (3 digits string, digit: 0~9) mnc: 01 # Mobile Network Code (2 or 3 digits string, digit: 0~9) serviceNameList: # the SBI services provided by this NRF, refer to TS 29.510 - nnrf-nfm # Nnrf_NFManagement service - nnrf-disc # Nnrf_NFDiscovery service # the kind of log output # debugLevel: how detailed to output, value: trace, debug, info, warn, error, fatal, panic # ReportCaller: enable the caller report or not, value: true or false logger: NRF: debugLevel: info ReportCaller: false ``` ### Log File Github does not allow me to attach the logfile to I have to paste the relevant part here: ``` nrf | 2023-03-10T09:06:36.510663071Z [INFO][NRF][Token] In HTTPAccessTokenRequest nrf | 2023-03-10T09:06:36.511746724Z [INFO][NRF][Token] Handle AccessTokenRequest nrf | 2023-03-10T09:06:36.511869714Z [INFO][NRF][Token] In AccessTokenProcedure nrf | 2023-03-10T09:06:36.514064258Z [ERRO][NRF][GIN] panic: runtime error: invalid memory address or nil pointer dereference nrf | goroutine 31733 [running]: nrf | runtime/debug.Stack() nrf | /usr/local/go/src/runtime/debug/stack.go:24 +0x65 nrf | github.com/free5gc/util/logger.ginRecover.func1.1() nrf | /go/pkg/mod/github.com/free5gc/[email protected]/logger/logger.go:212 +0x1a5 nrf | panic({0xc25a00, 0x1382e70}) nrf | /usr/local/go/src/runtime/panic.go:838 +0x207 nrf | github.com/free5gc/nrf/internal/sbi/producer.AccessTokenScopeCheck({{0xc00084a03d, 0x12}, {0xc00084a00d, 0x24}, {0xc00084a057, 0x3}, {0xc00084a068, 0x4}, {0xc00084a073, 0x7}, ...}) nrf | /go/src/free5gc/NFs/nrf/internal/sbi/producer/access_token.go:181 +0x754 nrf | github.com/free5gc/nrf/internal/sbi/producer.AccessTokenProcedure({{0xc00084a03d, 0x12}, {0xc00084a00d, 0x24}, {0xc00084a057, 0x3}, {0xc00084a068, 0x4}, {0xc00084a073, 0x7}, ...}) nrf | /go/src/free5gc/NFs/nrf/internal/sbi/producer/access_token.go:53 +0xf8 nrf | github.com/free5gc/nrf/internal/sbi/producer.HandleAccessTokenRequest(0xc000630030) nrf | /go/src/free5gc/NFs/nrf/internal/sbi/producer/access_token.go:28 +0x11c nrf | github.com/free5gc/nrf/internal/sbi/accesstoken.HTTPAccessTokenRequest(0xc00056a400) nrf | /go/src/free5gc/NFs/nrf/internal/sbi/accesstoken/api_access_token_request.go:86 +0x932 nrf | github.com/gin-gonic/gin.(*Context).Next(...) nrf | /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165 nrf | github.com/free5gc/util/logger.ginRecover.func1(0xc00056a400) nrf | /go/pkg/mod/github.com/free5gc/[email protected]/logger/logger.go:244 +0x7b nrf | github.com/gin-gonic/gin.(*Context).Next(...) nrf | /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165 nrf | github.com/free5gc/util/logger.ginToLogrus.func1(0xc00056a400) nrf | /go/pkg/mod/github.com/free5gc/[email protected]/logger/logger.go:179 +0x87 nrf | github.com/gin-gonic/gin.(*Context).Next(...) nrf | /go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:165 nrf | github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc00052f040, 0xc00056a400) nrf | /go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:489 +0x63e nrf | github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc00052f040, {0xeda368?, 0xc000612270}, 0xc0005b7400) nrf | /go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:445 +0x1c5 nrf | golang.org/x/net/http2.(*serverConn).runHandler(0xed9aa0?, 0x13d6d68?, 0x0?, 0x0?) nrf | /go/pkg/mod/golang.org/x/[email protected]/http2/server.go:2158 +0x78 nrf | created by golang.org/x/net/http2.(*serverConn).processHeaders nrf | /go/pkg/mod/golang.org/x/[email protected]/http2/server.go:1888 +0x52b ``` ## System architecture (Option) A Docker setup using docker-compose ## Walkthrough (Option) I was doing some security checks on the NRF. Other than this bug, I found that despite pretending to do some client certificate checks (it loads the certificate for whatever NF the client claims to be from the local disk and verifies that against a root CA), the client's actual certificate in the request is never verified. Any client can get an access token without any restrictions. ## Additional context I have prepared [a fix](https://github.com/free5gc/nrf/commit/de080a5cb5a26e2fb1789aaa3436d634b0e9a331) and I can make a pull request if you want me to.
[Bugs] NRF panics for unknown targetNfType in /oauth2/token
https://api.github.com/repos/free5gc/free5gc/issues/434/comments
2
2023-03-10T09:38:20Z
2023-07-04T14:35:05Z
https://github.com/free5gc/free5gc/issues/434
1,618,653,449
434
[ "free5gc", "free5gc" ]
# panic: assignment to entry in nil map We (@FuzzingLabs) found a 'panic: assignment to entry in nil map' panic in Free5GC v3.2.1 ## Expected Behavior It should not crash. ## Your Environment c584d7b golang:1.14.4-stretch (docker) Ubuntu 20.04 ## Steps to reproduce Launch Testing program: ``` import socket import os UDP_IP = "10.100.200.8" UDP_PORT = 8805 MESSAGES = [] dir_path = "crash" MESSAGES.append(b'\x20\x05\x00\x15\x00\x00\x01\x00\x00\x3c\x00\x05\x00\x00\x00\x00\x00\x00\x60\x00\x04\xce\x0b\xd6\x5d') MESSAGES.append(b'\x21\x32\x01\xc9\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x7a\x00\x00\x01\x00\x56\x00\x02\x00\x1f\x00\x14\x00\x01\x00\x00\x15\x00\x09\x01\x00\x00\x00\x01\xc0\xa8\x0c\xb8\x00\x16\x00\x04\x03\x65\x70\x63\x00\x7c\x00\x01\x09\x00\x1d\x00\x04\x00\x00\x00\xff\x00\x38\x00\x02\x00\x01\x00\x51\x00\x04\x00\x00\x00\x09\x00\x5f\x00\x01\x00\x00\x6c\x00\x04\x00\x00\x00\x02\x00\x6d\x00\x04\x00\x00\x00\x01\x00\x6d\x00\x04\x00\x00\x00\x02\x00\x01\x00\x48\x00\x02\x00\x16\x00\x14\x00\x01\x01\x00\x16\x00\x04\x03\x65\x70\x63\x00\x5d\x00\x05\x06\xac\x14\xe7\x01\x00\x1d\x00\x04\x00\x00\x00\xff\x00\x38\x00\x02\x00\x02\x00\x51\x00\x04\x00\x00\x00\x09\x00\x6c\x00\x04\x00\x00\x00\x03\x00\x6d\x00\x04\x00\x00\x00\x01\x00\x6d\x00\x04\x00\x00\x00\x02\x00\x01\x00\x39\x00\x02\x00\x1a\x00\x14\x00\x01\x03\x00\x15\x00\x09\x01\x00\x00\x00\x01\x00\x00\x00\x00\x00\x16\x00\x04\x03\x65\x70\x63\x00\x1d\x00\x04\x00\x00\x00\xff\x00\x38\x00\x02\x00\x03\x00\x5f\x00\x01\x00\x00\x6c\x00\x04\x00\x00\x00\x01\x00\x03\x00\x32\x00\x04\x00\x21\x00\x16\x00\x04\x03\x65\x70\x63\x00\x1e\x00\x02\x26\xff\x00\x2a\x00\x01\x00\x00\x54\x00\x0a\x01\x00\x00\x00\x00\x01\xc0\xa8\x0c\xb8\x00\x2c\x00\x01\x02\x00\x6c\x00\x04\x00\x00\x00\x01\x00\x03\x00\x1c\x00\x04\x00\x0b\x00\x1e\x00\x02\x26\xff\x00\x2a\x00\x01\x01\x00\x2c\x00\x01\x02\x00\x6c\x00\x04\x00\x00\x00\x02\x00\x03\x00\x0d\x00\x2c\x00\x01\x04\x00\x6c\x00\x04\x00\x00\x00\x03\x00\x06\x00\x1b\x00\x25\x00\x02\x01\x00\x00\x3e\x00\x01\x02\x00\x40\x00\x04\x00\x00\x00\x00\x00\x51\x00\x04\x00\x00\x00\x09\x00\x07\x00\x1b\x00\x19\x00\x01\x00\x00\x1a\x00\x0a\x00\x00\x98\x96\x80\x00\x00\x98\x96\x80\x00\x6d\x00\x04\x00\x00\x00\x01\x00\x07\x00\x12\x00\x19\x00\x01\x00\x00\x6d\x00\x04\x00\x00\x00\x02\x00\x7c\x00\x01\x09\x00\x39\x00\x0d\x02\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x3c\x00\x05\x00\x00\x00\x00\x00\x00\x71\x00\x01\x01') MESSAGES.append(b'\x20\x05\x00\x15\x00\x00\x01\x00\x00\x3c\x00\x05\x00\x00\x00\x00\x00\x00\x60\x00\x04\xce\x0b\xd6\x5d') sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) for message in MESSAGES: sock.sendto(message, (UDP_IP,UDP_PORT)) ``` ## Detailed behavior ``` goroutine 28 [running]: runtime/debug.Stack(0xc000693838, 0x9fbe80, 0xb7dbd0) /usr/local/go/src/runtime/debug/stack.go:24 +0x9d github.com/free5gc/go-upf/internal/pfcp.(\*PfcpServer).main.func1(0xc0006180d0, 0xc000373790) /go/src/free5gc/NFs/upf/internal/pfcp/pfcp.go:85 +0x124 panic(0x9fbe80, 0xb7dbd0) /usr/local/go/src/runtime/panic.go:969 +0x166 github.com/free5gc/go-upf/internal/pfcp.(\*Sess).CreateURR(0xc00061a240, 0xc000372fc0, 0x0, 0x0) /go/src/free5gc/NFs/upf/internal/pfcp/node.go:180 +0xb4 github.com/free5gc/go-upf/internal/pfcp.(\*PfcpServer).handleSessionEstablishmentRequest(0xc0006180d0, 0xc000246000, 0xb8dd20, 0xc000342030) /go/src/free5gc/NFs/upf/internal/pfcp/session.go:64 +0x536 github.com/free5gc/go-upf/internal/pfcp.(\*PfcpServer).reqDispacher(0xc0006180d0, 0xb98d40, 0xc000246000, 0xb8dd20, 0xc000342030, 0x0, 0x16) /go/src/free5gc/NFs/upf/internal/pfcp/dispacher.go:21 +0x1f1 github.com/free5gc/go-upf/internal/pfcp.(\*PfcpServer).main(0xc0006180d0, 0xc000373790) /go/src/free5gc/NFs/upf/internal/pfcp/pfcp.go:144 +0x759 created by github.com/free5gc/go-upf/internal/pfcp.(\*PfcpServer).Start /go/src/free5gc/NFs/upf/internal/pfcp/pfcp.go:211 +0xbd ```
[Bugs] PFCP crashed due to `panic: assignment to entry in nil map`
https://api.github.com/repos/free5gc/free5gc/issues/432/comments
4
2023-03-03T10:36:01Z
2023-06-09T01:41:11Z
https://github.com/free5gc/free5gc/issues/432
1,608,387,869
432
[ "free5gc", "free5gc" ]
## Describe the bug hi, i've installed free5gc in centos8, i've update its kernel to 5.4.232-1.el8.elrepo.x86_64, and i've install extra-kernel to insist protocol sctp, then i ran "make all" for free5gc, it shows nothing wrong. but when i run the test "./test.sh TestRegistration" ,it was failed. ### Log File **### here is the log of after run the "make all"** `Start building amf.... cd NFs/amf/cmd && \ CGO_ENABLED=0 go build -gcflags "" -ldflags "-X github.com/free5gc/util/version.VERSION=v3.2.0 -X github.com/free5gc/util/version.BUILD_TIME=2023-03-02T13:55:42Z -X github.com/free5gc/util/version.COMMIT_HASH=a3bd5358 -X github.com/free5gc/util/version.COMMIT_TIME=2022-05-01T14:58:26Z" -o /home/zzy/free5gc/bin/amf main.go Start building ausf.... cd NFs/ausf/cmd && \ CGO_ENABLED=0 go build -gcflags "" -ldflags "-X github.com/free5gc/util/version.VERSION=v3.2.0 -X github.com/free5gc/util/version.BUILD_TIME=2023-03-02T13:55:51Z -X github.com/free5gc/util/version.COMMIT_HASH=ee6a571a -X github.com/free5gc/util/version.COMMIT_TIME=2022-05-02T15:25:07Z" -o /home/zzy/free5gc/bin/ausf main.go Start building nrf.... cd NFs/nrf/cmd && \ CGO_ENABLED=0 go build -gcflags "" -ldflags "-X github.com/free5gc/util/version.VERSION=v3.2.0 -X github.com/free5gc/util/version.BUILD_TIME=2023-03-02T13:55:53Z -X github.com/free5gc/util/version.COMMIT_HASH=+f159dc9 -X github.com/free5gc/util/version.COMMIT_TIME=2021-10-19T09:56:40Z" -o /home/zzy/free5gc/bin/nrf main.go Start building nssf.... cd NFs/nssf/cmd && \ CGO_ENABLED=0 go build -gcflags "" -ldflags "-X github.com/free5gc/util/version.VERSION=v3.2.0 -X github.com/free5gc/util/version.BUILD_TIME=2023-03-02T13:55:58Z -X github.com/free5gc/util/version.COMMIT_HASH=04037a7a -X github.com/free5gc/util/version.COMMIT_TIME=2022-05-02T15:27:24Z" -o /home/zzy/free5gc/bin/nssf main.go Start building pcf.... cd NFs/pcf/cmd && \ CGO_ENABLED=0 go build -gcflags "" -ldflags "-X github.com/free5gc/util/version.VERSION=v3.2.0 -X github.com/free5gc/util/version.BUILD_TIME=2023-03-02T13:56:00Z -X github.com/free5gc/util/version.COMMIT_HASH=+9fc9f68 -X github.com/free5gc/util/version.COMMIT_TIME=2022-02-03T16:02:01Z" -o /home/zzy/free5gc/bin/pcf main.go Start building smf.... cd NFs/smf/cmd && \ CGO_ENABLED=0 go build -gcflags "" -ldflags "-X github.com/free5gc/util/version.VERSION=v3.2.0 -X github.com/free5gc/util/version.BUILD_TIME=2023-03-02T13:56:03Z -X github.com/free5gc/util/version.COMMIT_HASH=de70bf6c -X github.com/free5gc/util/version.COMMIT_TIME=2022-06-28T04:52:40Z" -o /home/zzy/free5gc/bin/smf main.go Start building udm.... cd NFs/udm/cmd && \ CGO_ENABLED=0 go build -gcflags "" -ldflags "-X github.com/free5gc/util/version.VERSION=v3.2.0 -X github.com/free5gc/util/version.BUILD_TIME=2023-03-02T13:56:06Z -X github.com/free5gc/util/version.COMMIT_HASH=dd730c19 -X github.com/free5gc/util/version.COMMIT_TIME=2022-05-02T15:30:19Z" -o /home/zzy/free5gc/bin/udm main.go Start building udr.... cd NFs/udr/cmd && \ CGO_ENABLED=0 go build -gcflags "" -ldflags "-X github.com/free5gc/util/version.VERSION=v3.2.0 -X github.com/free5gc/util/version.BUILD_TIME=2023-03-02T13:56:08Z -X github.com/free5gc/util/version.COMMIT_HASH=+7ae84cd -X github.com/free5gc/util/version.COMMIT_TIME=2021-11-11T02:42:59Z" -o /home/zzy/free5gc/bin/udr main.go Start building n3iwf.... cd NFs/n3iwf/cmd && \ CGO_ENABLED=0 go build -gcflags "" -ldflags "-X github.com/free5gc/util/version.VERSION=v3.2.0 -X github.com/free5gc/util/version.BUILD_TIME=2023-03-02T13:56:10Z -X github.com/free5gc/util/version.COMMIT_HASH=ef87ca50 -X github.com/free5gc/util/version.COMMIT_TIME=2022-05-02T15:25:52Z" -o /home/zzy/free5gc/bin/n3iwf main.go Start building upf.... cd NFs/upf/cmd && \ CGO_ENABLED=0 go build -gcflags "" -ldflags "-X github.com/free5gc/util/version.VERSION=v3.2.0 -X github.com/free5gc/util/version.BUILD_TIME=2023-03-02T13:56:17Z -X github.com/free5gc/util/version.COMMIT_HASH=4972fffb -X github.com/free5gc/util/version.COMMIT_TIME=2022-06-29T05:46:33Z" -o /home/zzy/free5gc/bin/upf main.go Start building webconsole.... cd webconsole/frontend && \ yarn install && \ yarn build && \ rm -rf ../public && \ cp -R build ../public yarn install v1.22.19 warning ../../../package.json: No license field warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json. [1/4] Resolving packages... success Already up-to-date. Done in 0.54s. yarn run v1.22.19 warning ../../../package.json: No license field $ NODE_PATH=./src node scripts/build.js Creating an optimized production build... Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0. Recommendation: math.div(15, 16) or calc(15 / 16) More info and automated migrator: https://sass-lang.com/d/slash-div ╷ 2 │ $ct-scales: ((1), (15/16), (8/9), (5/6), (4/5), (3/4), (2/3), (5/8), (1/1.618), (3/5), (9/16), (8/15), (1/2), (2/5), (3/8), (1/3), (1/4)) !default; │ ^^^^^ ╵ src/assets/styles/base/mixins/_chartist.scss 2:20 @import src/assets/styles/base/_mixins.scss 22:9 @import stdin 4:9 root stylesheet Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0. Recommendation: math.div(8, 9) or calc(8 / 9) More info and automated migrator: https://sass-lang.com/d/slash-div ╷ 2 │ $ct-scales: ((1), (15/16), (8/9), (5/6), (4/5), (3/4), (2/3), (5/8), (1/1.618), (3/5), (9/16), (8/15), (1/2), (2/5), (3/8), (1/3), (1/4)) !default; │ ^^^ ╵ src/assets/styles/base/mixins/_chartist.scss 2:29 @import src/assets/styles/base/_mixins.scss 22:9 @import stdin 4:9 root stylesheet Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0. Recommendation: math.div(5, 6) or calc(5 / 6) More info and automated migrator: https://sass-lang.com/d/slash-div ╷ 2 │ $ct-scales: ((1), (15/16), (8/9), (5/6), (4/5), (3/4), (2/3), (5/8), (1/1.618), (3/5), (9/16), (8/15), (1/2), (2/5), (3/8), (1/3), (1/4)) !default; │ ^^^ ╵ src/assets/styles/base/mixins/_chartist.scss 2:36 @import src/assets/styles/base/_mixins.scss 22:9 @import stdin 4:9 root stylesheet Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0. Recommendation: math.div(4, 5) or calc(4 / 5) More info and automated migrator: https://sass-lang.com/d/slash-div ╷ 2 │ $ct-scales: ((1), (15/16), (8/9), (5/6), (4/5), (3/4), (2/3), (5/8), (1/1.618), (3/5), (9/16), (8/15), (1/2), (2/5), (3/8), (1/3), (1/4)) !default; │ ^^^ ╵ src/assets/styles/base/mixins/_chartist.scss 2:43 @import src/assets/styles/base/_mixins.scss 22:9 @import stdin 4:9 root stylesheet Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0. Recommendation: math.div(3, 4) or calc(3 / 4) More info and automated migrator: https://sass-lang.com/d/slash-div ╷ 2 │ $ct-scales: ((1), (15/16), (8/9), (5/6), (4/5), (3/4), (2/3), (5/8), (1/1.618), (3/5), (9/16), (8/15), (1/2), (2/5), (3/8), (1/3), (1/4)) !default; │ ^^^ ╵ src/assets/styles/base/mixins/_chartist.scss 2:50 @import src/assets/styles/base/_mixins.scss 22:9 @import stdin 4:9 root stylesheet Warning: 12 repetitive deprecation warnings omitted. Compiled successfully. File sizes after gzip: 312.78 KB build/static/js/main.31297141.js The project was built assuming it is hosted at the server root. To override this, specify the homepage in your package.json. For example, add this to build it for GitHub Pages: "homepage" : "http://myname.github.io/myapp", The build folder is ready to be deployed. You may serve it with a static server: yarn global add serve serve -s build Done in 23.82s. ` **### and here is the log of after run the "./test.sh TestRegistration"** 2023-03-02T22:07:06+08:00 [INFO][UPF][Main] UPF version: free5GC version: v3.2.0 build time: 2023-03-02T13:56:17Z commit hash: 4972fffb commit time: 2022-06-29T05:46:33Z go version: go1.17 linux/amd64 2023-03-02T22:07:06+08:00 [INFO][UPF][Cfg] Read config from [./config/upfcfg.test.yaml] 2023-03-02T22:07:06+08:00 [INFO][UPF][Cfg] ================================================== 2023-03-02T22:07:06+08:00 [INFO][UPF][Cfg] (*factory.Config)(0xc00009b540)({ Version: (string) (len=5) "1.0.3", Description: (string) (len=31) "UPF initial local configuration", Pfcp: (*factory.Pfcp)(0xc000469140)({ Addr: (string) (len=14) "10.200.200.101", NodeID: (string) (len=14) "10.200.200.101", RetransTimeout: (time.Duration) 1s, MaxRetrans: (uint8) 3 }), Gtpu: (*factory.Gtpu)(0xc0004692f0)({ Forwarder: (string) (len=5) "gtp5g", IfList: ([]factory.IfInfo) (len=1 cap=1) { (factory.IfInfo) { Addr: (string) (len=14) "10.200.200.102", Type: (string) (len=2) "N3", Name: (string) "", IfName: (string) "" } } }), DnnList: ([]factory.DnnList) (len=1 cap=1) { (factory.DnnList) { Dnn: (string) (len=8) "internet", Cidr: (string) (len=12) "10.60.0.0/16", NatIfName: (string) "" } }, Logger: (*factory.Logger)(0xc0004705c0)({ Enable: (bool) true, Level: (string) (len=4) "info", ReportCaller: (bool) false }) }) 2023-03-02T22:07:06+08:00 [INFO][UPF][Cfg] ================================================== 2023-03-02T22:07:06+08:00 [INFO][UPF][Main] Log level is set to [info] level 2023-03-02T22:07:06+08:00 [INFO][UPF][Main] starting Gtpu Forwarder [gtp5g] 2023-03-02T22:07:06+08:00 [INFO][UPF][Main] GTP Address: "10.200.200.102:2152" 2023-03-02T22:07:06+08:00 [INFO][UPF][Buff] buff server started 2023-03-02T22:07:06+08:00 [INFO][UPF][Pfcp][10.200.200.101:8805] starting pfcp server 2023-03-02T22:07:06+08:00 [INFO][UPF][Pfcp][10.200.200.101:8805] pfcp server started 2023-03-02T22:07:06+08:00 [INFO][UPF][Main] UPF started # test_test [test.test] ./ngsetup_test.go:43:2: cannot use &"github.com/free5gc/nrf/pkg/service".NRF{} (type *"github.com/free5gc/nrf/pkg/service".NRF) as type app.NetworkFunction in slice literal: *"github.com/free5gc/nrf/pkg/service".NRF does not implement app.NetworkFunction (missing SetLogLevel method) have "github.com/free5gc/nrf/pkg/service".setLogLevel() want SetLogLevel() ./ngsetup_test.go:46:2: cannot use &"github.com/free5gc/udr/pkg/service".UDR{} (type *"github.com/free5gc/udr/pkg/service".UDR) as type app.NetworkFunction in slice literal: *"github.com/free5gc/udr/pkg/service".UDR does not implement app.NetworkFunction (missing SetLogLevel method) have "github.com/free5gc/udr/pkg/service".setLogLevel() want SetLogLevel() ./ngsetup_test.go:47:2: cannot use &"github.com/free5gc/pcf/pkg/service".PCF{} (type *"github.com/free5gc/pcf/pkg/service".PCF) as type app.NetworkFunction in slice literal: *"github.com/free5gc/pcf/pkg/service".PCF does not implement app.NetworkFunction (missing SetLogLevel method) have "github.com/free5gc/pcf/pkg/service".setLogLevel() want SetLogLevel() FAIL test [build failed] 2023-03-02T22:07:11+08:00 [INFO][UPF][Main] Shutdown UPF ... 2023-03-02T22:07:11+08:00 [INFO][UPF][Pfcp][10.200.200.101:8805] Stopping pfcp server 2023-03-02T22:07:11+08:00 [ERRO][UPF][Pfcp][10.200.200.101:8805] read udp 10.200.200.101:8805: use of closed network connection 2023-03-02T22:07:11+08:00 [INFO][UPF][Pfcp][10.200.200.101:8805] pfcp reciver stopped 2023-03-02T22:07:11+08:00 [INFO][UPF][Pfcp][10.200.200.101:8805] pfcp server stopped 2023-03-02T22:07:11+08:00 [INFO][UPF][Buff] buff server stopped 2023-03-02T22:07:11+08:00 [INFO][UPF][Main] Terminating UPF... 2023-03-02T22:07:11+08:00 [INFO][UPF][Main] UPF terminated 2023-03-02T22:07:11+08:00 [INFO][UPF][Main] UPF exited` ## Environment (please complete the following information): - free5GC Version: 3.2.0 - OS: centos8 - Kernel version: 5.4.232-1.el8.elrepo.x86_64 - go version: 1.14.4 - c compiler version (Option): 8.5.0 20210514 (Red Hat 8.5.0-4) (GCC) i dont know how to solve this problem, is there any suggestion that i can follow? please.
[Bugs]i've installed free5gc in centos8, it was already compiled completely, but when i start test, it reports error
https://api.github.com/repos/free5gc/free5gc/issues/431/comments
4
2023-03-02T14:10:55Z
2023-12-05T16:43:33Z
https://github.com/free5gc/free5gc/issues/431
1,606,877,832
431
[ "free5gc", "free5gc" ]
## Issue Description While examining the Free5GC source code I have noticed the usage of a asn1c-s1ap module (https://github.com/free5gc/ngap/blob/main/ngapType/Makefile), but could not find it in any public repository. As I currently require compiling newer ASN1 releases of NGAP for Go, I would like to ask if there is any possibility to gain access. ### What's the version are you using v3.2.1 ### Is your feature request related to a problem? Please describe. - ### Describe the solution you'd like - ### Describe alternatives/workarounds you've considered - ### Additional context - ## Issue Template Checklist <!-- Please answer the questions below. If not the issue might be disregarded. --> ### If willing to resolve an issue by submitting Pull request, please consider the points below. <!-- free5GC will be happy to welcome first contributor’s, in order to broaden the community. --> - [ ] Yes, I have the time and I know how to start. - [ ] Yes, I have the time but I don't know how to start, I would need guidance. - [ ] No, I don't have the time, although I believe I could do it if I had the time... - [ ] No, I don't have the time and I wouldn't even know how to start.
[Question] asn1c-s1ap compiler source
https://api.github.com/repos/free5gc/free5gc/issues/428/comments
0
2023-02-20T15:16:56Z
2023-05-03T13:49:44Z
https://github.com/free5gc/free5gc/issues/428
1,592,049,810
428
[ "free5gc", "free5gc" ]
**We will advise people to follow the issue template set, otherwise the issue might be disregarded.** **free5GC mainly uses GitHub for issue tracking. Information regarding to general questions or technical support. It will be highly considered if forward to the [forum](https://forum.free5gc.org).** **free5GC will appreciate it, if people can refer to [TS](https://github.com/free5gc/free5gc/wiki/Trouble_Shooting) and [forum](https://forum.free5gc.org) prior to bug reporting** <!-- Remove warning (above 3 lines) while reporting the issue --> ## Describe the bug Not able to run test mentioned in --> https://github.com/free5gc/free5gc/wiki/Test ## To Reproduce Steps to reproduce the behavior: 1. Change config 'I havent change any configurations. Using the template one's present in the code' 2. Code patch 'https://github.com/free5gc/free5gc.git' 3. Run command './test.sh TestRegistration' 4. Dump packet 'No pcap capture as the test is not generating traffic' ## Expected behavior I wanted to generate pcap file for traffic generated by the test .sh scripts mentioned in https://github.com/free5gc/free5gc/wiki/Test. ## Screenshots student@free5gc:~/free5gc$ ./test.sh TestRegistrationTestRegistration 2023-01-23T09:42:54.553393341Z [INFO][UPF][Main] UPF version: free5GC version: v3.2.1-17-ge6f787d build time: 2023-01-23T07:17:05Z commit hash: +d6fa6cb commit time: 2023-01-13T06:25:03Z go version: go1.17.8 linux/amd64 2023-01-23T09:42:54.553604812Z [INFO][UPF][CFG] Read config from [./config/upfcfg.test.yaml] 2023-01-23T09:42:54.553855046Z [INFO][UPF][CFG] ================================================== 2023-01-23T09:42:54.553872636Z [INFO][UPF][CFG] (*factory.Config)(0xc00037c870)({ Version: (string) (len=5) "1.0.3", Description: (string) (len=31) "UPF initial local configuration", Pfcp: (*factory.Pfcp)(0xc000384f90)({ Addr: (string) (len=14) "10.200.200.101", NodeID: (string) (len=14) "10.200.200.101", RetransTimeout: (time.Duration) 1s, MaxRetrans: (uint8) 3 }), Gtpu: (*factory.Gtpu)(0xc000385140)({ Forwarder: (string) (len=5) "gtp5g", IfList: ([]factory.IfInfo) (len=1 cap=1) { (factory.IfInfo) { Addr: (string) (len=14) "10.200.200.102", Type: (string) (len=2) "N3", Name: (string) "", IfName: (string) "", MTU: (uint32) 0 } } }), DnnList: ([]factory.DnnList) (len=1 cap=1) { (factory.DnnList) { Dnn: (string) (len=8) "internet", Cidr: (string) (len=12) "10.60.0.0/16", NatIfName: (string) "" } }, Logger: (*factory.Logger)(0xc000374c40)({ Enable: (bool) true, Level: (string) (len=4) "info", ReportCaller: (bool) false }) }) 2023-01-23T09:42:54.554056710Z [INFO][UPF][CFG] ================================================== 2023-01-23T09:42:54.554064137Z [INFO][UPF][Main] Log level is set to [info] 2023-01-23T09:42:54.554070803Z [INFO][UPF][Main] Report Caller is set to [false] 2023-01-23T09:42:54.554167646Z [INFO][UPF][Main] starting Gtpu Forwarder [gtp5g] 2023-01-23T09:42:54.554184305Z [INFO][UPF][Main] GTP Address: "10.200.200.102:2152" 2023-01-23T09:42:54.564590101Z [INFO][UPF][BUFF] buff server started 2023-01-23T09:42:54.565235915Z [INFO][UPF][Perio] perio server started 2023-01-23T09:42:54.565263093Z [INFO][UPF][Gtp5g] Forwarder started 2023-01-23T09:42:54.580373273Z [INFO][UPF][PFCP][LAddr:10.200.200.101:8805] starting pfcp server 2023-01-23T09:42:54.580707899Z [INFO][UPF][PFCP][LAddr:10.200.200.101:8805] pfcp server started 2023-01-23T09:42:54.580730780Z [INFO][UPF][Main] UPF started go: github.com/free5gc/[email protected] requires github.com/free5gc/[email protected]: missing go.sum entry; to add it: go mod download github.com/free5gc/openapi go: github.com/free5gc/[email protected] requires github.com/free5gc/[email protected]: missing go.sum entry; to add it: go mod download github.com/free5gc/openapi 2023-01-23T09:43:00.761240262Z [INFO][UPF][Main] Shutdown UPF ... 2023-01-23T09:43:00.761487566Z [INFO][UPF][PFCP][LAddr:10.200.200.101:8805] Stopping pfcp server 2023-01-23T09:43:00.761737996Z [ERRO][UPF][PFCP][LAddr:10.200.200.101:8805] read udp4 10.200.200.101:8805: use of closed network connection 2023-01-23T09:43:00.761958347Z [INFO][UPF][PFCP][LAddr:10.200.200.101:8805] pfcp reciver stopped 2023-01-23T09:43:00.761971487Z [INFO][UPF][PFCP][LAddr:10.200.200.101:8805] pfcp server stopped 2023-01-23T09:43:00.807924240Z [INFO][UPF][BUFF] buff server stopped 2023-01-23T09:43:00.808067040Z [INFO][UPF][Perio] recv event[TYPE_SERVER_CLOSE][{eType:4 lSeid:0 urrid:0 period:0}] 2023-01-23T09:43:00.808077875Z [INFO][UPF][Perio] perio server stopped 2023-01-23T09:43:00.808101284Z [INFO][UPF][Main] Terminating UPF... 2023-01-23T09:43:00.808105964Z [INFO][UPF][Main] UPF terminated 2023-01-23T09:43:00.808213753Z [INFO][UPF][Main] UPF exited ## Environment (please complete the following information): - free5GC Version: v3.2.1-17-ge6f787d - OS: Ubuntu 18.04 Server - Kernel version: 5.0.0-23-generic - go version: go1.17.8 linux/amd64 - c compiler version (Option): gcc version 7.5.0 ## Trace File -- Not available as test cases are failing ### Configuration File Provide the configuration file here. [config.tar.gz](https://github.com/free5gc/free5gc/files/10478481/config.tar.gz) ### PCAP File -- Not available as test cases are failing ### Log File student@free5gc:~/free5gc$ ./test.sh TestRegistrationTestRegistration 2023-01-23T09:42:54.553393341Z [INFO][UPF][Main] UPF version: free5GC version: v3.2.1-17-ge6f787d build time: 2023-01-23T07:17:05Z commit hash: +d6fa6cb commit time: 2023-01-13T06:25:03Z go version: go1.17.8 linux/amd64 2023-01-23T09:42:54.553604812Z [INFO][UPF][CFG] Read config from [./config/upfcfg.test.yaml] 2023-01-23T09:42:54.553855046Z [INFO][UPF][CFG] ================================================== 2023-01-23T09:42:54.553872636Z [INFO][UPF][CFG] (*factory.Config)(0xc00037c870)({ Version: (string) (len=5) "1.0.3", Description: (string) (len=31) "UPF initial local configuration", Pfcp: (*factory.Pfcp)(0xc000384f90)({ Addr: (string) (len=14) "10.200.200.101", NodeID: (string) (len=14) "10.200.200.101", RetransTimeout: (time.Duration) 1s, MaxRetrans: (uint8) 3 }), Gtpu: (*factory.Gtpu)(0xc000385140)({ Forwarder: (string) (len=5) "gtp5g", IfList: ([]factory.IfInfo) (len=1 cap=1) { (factory.IfInfo) { Addr: (string) (len=14) "10.200.200.102", Type: (string) (len=2) "N3", Name: (string) "", IfName: (string) "", MTU: (uint32) 0 } } }), DnnList: ([]factory.DnnList) (len=1 cap=1) { (factory.DnnList) { Dnn: (string) (len=8) "internet", Cidr: (string) (len=12) "10.60.0.0/16", NatIfName: (string) "" } }, Logger: (*factory.Logger)(0xc000374c40)({ Enable: (bool) true, Level: (string) (len=4) "info", ReportCaller: (bool) false }) }) 2023-01-23T09:42:54.554056710Z [INFO][UPF][CFG] ================================================== 2023-01-23T09:42:54.554064137Z [INFO][UPF][Main] Log level is set to [info] 2023-01-23T09:42:54.554070803Z [INFO][UPF][Main] Report Caller is set to [false] 2023-01-23T09:42:54.554167646Z [INFO][UPF][Main] starting Gtpu Forwarder [gtp5g] 2023-01-23T09:42:54.554184305Z [INFO][UPF][Main] GTP Address: "10.200.200.102:2152" 2023-01-23T09:42:54.564590101Z [INFO][UPF][BUFF] buff server started 2023-01-23T09:42:54.565235915Z [INFO][UPF][Perio] perio server started 2023-01-23T09:42:54.565263093Z [INFO][UPF][Gtp5g] Forwarder started 2023-01-23T09:42:54.580373273Z [INFO][UPF][PFCP][LAddr:10.200.200.101:8805] starting pfcp server 2023-01-23T09:42:54.580707899Z [INFO][UPF][PFCP][LAddr:10.200.200.101:8805] pfcp server started 2023-01-23T09:42:54.580730780Z [INFO][UPF][Main] UPF started go: github.com/free5gc/[email protected] requires github.com/free5gc/[email protected]: missing go.sum entry; to add it: go mod download github.com/free5gc/openapi go: github.com/free5gc/[email protected] requires github.com/free5gc/[email protected]: missing go.sum entry; to add it: go mod download github.com/free5gc/openapi 2023-01-23T09:43:00.761240262Z [INFO][UPF][Main] Shutdown UPF ... 2023-01-23T09:43:00.761487566Z [INFO][UPF][PFCP][LAddr:10.200.200.101:8805] Stopping pfcp server **2023-01-23T09:43:00.761737996Z [ERRO][UPF][PFCP][LAddr:10.200.200.101:8805] read udp4 10.200.200.101:8805: use of closed network connection** 2023-01-23T09:43:00.761958347Z [INFO][UPF][PFCP][LAddr:10.200.200.101:8805] pfcp reciver stopped 2023-01-23T09:43:00.761971487Z [INFO][UPF][PFCP][LAddr:10.200.200.101:8805] pfcp server stopped 2023-01-23T09:43:00.807924240Z [INFO][UPF][BUFF] buff server stopped 2023-01-23T09:43:00.808067040Z [INFO][UPF][Perio] recv event[TYPE_SERVER_CLOSE][{eType:4 lSeid:0 urrid:0 period:0}] 2023-01-23T09:43:00.808077875Z [INFO][UPF][Perio] perio server stopped **2023-01-23T09:43:00.808101284Z [INFO][UPF][Main] Terminating UPF... 2023-01-23T09:43:00.808105964Z [INFO][UPF][Main] UPF terminated 2023-01-23T09:43:00.808213753Z [INFO][UPF][Main] UPF exited** ## System architecture (Option) Installation - VM (Ubuntu LTS 18.04) Rest details in the snapshot attached ![image](https://user-images.githubusercontent.com/67621435/214010231-4b0e8e7d-141d-447f-b048-61cd88965a16.png) ## Additional context I am new to the free5C installation. Please let me know in detail if I am missing a trivial thing to make the test run
[Bugs]
https://api.github.com/repos/free5gc/free5gc/issues/427/comments
23
2023-01-23T09:52:37Z
2023-05-16T12:16:53Z
https://github.com/free5gc/free5gc/issues/427
1,552,799,982
427
[ "free5gc", "free5gc" ]
According to TS23.502 4.9.1.3, there are two types of data forwading of N2 handover: direct data forwarding and indirect data forwarding, but the current free5gc does not seem to support indirect data forwarding. When will it be supported?
N2 Handover (Indirect data forwarding)
https://api.github.com/repos/free5gc/free5gc/issues/426/comments
1
2023-01-13T10:57:01Z
2024-01-09T10:55:30Z
https://github.com/free5gc/free5gc/issues/426
1,532,113,318
426
[ "free5gc", "free5gc" ]
## Describe the bug If the AMF receives the registration request without UE Security Capability info, the AMF returns error. According to 3GPP TS 24.501 8.2.6.4, it seems that the specification does not set the UE Security Capability in periodic registration. ## To Reproduce ## Expected behavior AMF returns registration accept. ## Screenshots ## Environment (please complete the following information): - free5GC Version: [v3.2.1] - OS: [Ubuntu 18.04 Server] - Kernel version: [5.4.0-105-generic] - go version: [1.14.4 linux/amd64] ## Trace File ### PCAP File [MissingUeSecurityCapablity.zip](https://github.com/free5gc/free5gc/files/10410549/MissingUeSecurityCapablity.zip) ### Log File [amf.log](https://github.com/free5gc/free5gc/files/10410552/amf.log)
AMF rejecting the registration(periodic) if UE Security Capability info missing
https://api.github.com/repos/free5gc/free5gc/issues/425/comments
1
2023-01-13T10:24:31Z
2023-07-17T04:15:58Z
https://github.com/free5gc/free5gc/issues/425
1,532,069,783
425
[ "free5gc", "free5gc" ]
In the current free5gc, if the AMF receives the service request whose service type is signalling, it does not process the PDU session status in this service request and immediately sends the service accept without the PDU session status. Is this behavior correct? https://github.com/free5gc/amf/blob/e839de03774f7c5b06dbaaa368ea6f0813a4d0d9/internal/gmm/handler.go#L1643 ``` if serviceType == nasMessage.ServiceTypeSignalling { err := sendServiceAccept(ue, anType, ctxList, suList, nil, nil, nil, nil) return err } ```
PDU session status in signalling Service request is not processed
https://api.github.com/repos/free5gc/free5gc/issues/424/comments
1
2023-01-06T02:12:27Z
2023-07-17T04:15:35Z
https://github.com/free5gc/free5gc/issues/424
1,521,761,133
424
[ "free5gc", "free5gc" ]
## Describe the bug I am using below setup - srsenb in band 3 + Free5GC Core + Industrial Router (Quectel Module - RM500Q-GL) PDU session is okay and able to perform traffic test also. But, connection is unstable. I see that there is periodic registration request sent by UE (RAN), after every 2 min. Do you think it is because of radio connection or some configuration is missing here. There are two reasons so far for unstability. 1. There is UE context release by AMF, but still service request/pdu session request is successful and data traffic is fine. 2. There is periodic registration sent by RAN. I have increased RRC inactivity timer in Gnb but still there is registration request triggered by RAN in interval of 2 minutes. <br/> Do you think it is because of radio connection or some configuration is missing at Core Network. ## To Reproduce ## Expected behavior Stable PDU session ## Environment (please complete the following information): - free5GC Version: [v3.0.100] - OS: [Ubuntu 200.04 Server] - Kernel version: [5.4.0-132-generic] - go version: [using docker images as [illustrated here](https://github.com/free5gc/free5gc-compose)] - c compiler version (Option): [gcc version 9.4.0 ] ### PCAP File [pdu_session__okay_free5gc.zip](https://github.com/free5gc/free5gc/files/10354421/pdu_session__okay_free5gc.zip) ### Log File [Free5GC_AMF_log.txt](https://github.com/free5gc/free5gc/files/10354417/Free5GC_AMF_log.txt)
Unstable PDU session
https://api.github.com/repos/free5gc/free5gc/issues/423/comments
1
2023-01-05T17:48:10Z
2023-07-17T04:14:49Z
https://github.com/free5gc/free5gc/issues/423
1,521,134,612
423
[ "free5gc", "free5gc" ]
## Describe the bug In the NRF endpoint `GET nf-instances`, the optional parameters `nf-type` and `limit` are de-facto treated as mandatory. If the `limit`-Parameter is missing, a `400 Bad Request` is returned. If the `limit parameter is present, but the `nf-type` parameter is missing, an empty result list is returned. ## To Reproduce Steps to reproduce the behavior: 1. start a simple setup of free5gc 2. request `GET http://<address>:port/nnrf-nfm/v1/nf-instances` 3. request `http://10.100.200.4:8000/nnrf-nfm/v1/nf-instances?limit=10` ## Expected behavior When called without `limit`, the request should return all NF-instances or at least use a non-zero default limit. When called without `nf-type`, the request should not filter for NF type and return NFs of all types ## curl output As example, here is what a curl request returns for my setup. First the missing `limit` parameter: ``` $ curl 'http://10.100.200.4:8000/nnrf-nfm/v1/nf-instances' -H 'accept: application/json' {"title":"Invalid Parameter","status":400,"detail":"strconv.Atoi: parsing \"\": invalid syntax"} ``` Second: the missing `nf-type`-parameter: ``` $ curl 'http://10.100.200.4:8000/nnrf-nfm/v1/nf-instances?limit=10' -H 'accept: application/json' {"nfType":"","_link":{"item":null}} ``` In contrast to that, a working example: ``` $ curl 'http://10.100.200.4:8000/nnrf-nfm/v1/nf-instances?limit=10&nf-type=AMF' -H 'accept: application/json' {"nfType":"AMF","_link":{"item":[{"href":"http://nrf.free5gc.org:8000/nnrf-nfm/v1/nf-instances/5cce9dfa-6dbc-489f-8c19-a76d5a07ac2a"}]}} ``` ## Environment (please complete the following information): - free5GC Version: 3.1.1 - OS: Arch Linux - Kernel version: 6.1.2-arch1-1 - go version: go-1.14.4 - c compiler version (Option): gcc version 12.2.0 ## System architecture (Option) The setup is a relatively basic docker setup using docker compose. The purpose of this setup is playing around with free5gc and doing research. ## Additional context I took a look at the code (`internal/context/management_data.go` and `internal/sbi/producer/nf_management.go`) and it looks like the issue would be relatively easy to fix. If someone here agrees that this report is an issue, I would 1. check if the limit is present before trying to parse it 2. set no limit to the mongodb-request if it is not set 3. set no filter for the mongodb-request if `nf-type` is absent or empty and make a pull-request.
[Bugs] NRF GET nf-instances handles optional parameters as mandatory
https://api.github.com/repos/free5gc/free5gc/issues/421/comments
1
2023-01-03T09:50:05Z
2023-07-18T01:35:57Z
https://github.com/free5gc/free5gc/issues/421
1,517,151,119
421
[ "free5gc", "free5gc" ]
**We will advise people to follow the issue template set, otherwise the issue might be disregarded.** **free5GC mainly uses GitHub for issue tracking. Information regarding to general questions or technical support. It will be highly considered if forward to the [forum](https://forum.free5gc.org).** **free5GC will appreciate it, if people can refer to [TS](https://github.com/free5gc/free5gc/wiki/Trouble_Shooting) and [forum](https://forum.free5gc.org) prior to bug reporting** <!-- Remove warning (above 3 lines) while reporting the issue --> ## Describe the bug I use UERANSIM to open multiple UE threads to interact with the 5G core. The python script for opening such UE threads is like the following: os.system("nohup " + UERANSIM_build_dir + "nr-ue -c ./config/%s &" % file) Then I use UERANSIM's nr-cli to make the UE thread to interact with the 5g core: os.system(UERANSIM_build_dir +"nr-cli -e '%s' %s" % (command, ueId)) However, when the number of UE thread is up to 50, the UPF pod crashes, throwing the following error. 2023-01-03T00:36:39Z [ERRO][UPF][Main] UPF Cli Run Error: open Gtp5g: open link: create: file exists Less UE threads will not lead to this error. ## To Reproduce Steps to reproduce the behavior: 1. Use this helm repo to deploy the 5g core and 5g RAN on a K8s cluster: https://github.com/Orange-OpenSource/towards5gs-helm 2. kubectl exec -it into the ue pod, and use this repository (https://github.com/tywofxd/5GLogGenerator) to generate multiple UE threads to interact with the 5g core. 3. run command: python3 run.py --ue 50 --sec 36000 4. UPF crashes after several minutes. ## Expected behavior I want the 5g core to operate normally with many UE threads interacting with it. ## Screenshots ![image](https://user-images.githubusercontent.com/39151745/210288781-d53cb9f3-15eb-446d-8a92-bea927230237.png) ## Environment (please complete the following information): - free5GC Version: v3.2.0 - OS: Ubuntu 18.04 Server - Kernel version: 5.4.0-131-generic - helm chart: https://github.com/Orange-OpenSource/towards5gs-helm - k8s version: v1.23.4 - go version: [e.g. 1.10.0 linux/amd64] - c compiler version (Option): [e.g. gcc version 1.1.0] ## Trace File ### Configuration File [free5gc-charts.zip](https://github.com/free5gc/free5gc/files/10334033/free5gc-charts.zip) ### PCAP File Dump the packet and provide the pcap file here. If not clear of what to do, this command can be used `sudo tcpdump -i any -w free5gc.pcap` prior to running bug reproduce. Then upload the pcap file `free5gc.pcap`. ### Log File ![image](https://user-images.githubusercontent.com/39151745/210292174-19e6c89b-8a7a-467a-990b-2e14ffa7ae10.png) ## System architecture (Option) Please provide the draft architecture, including the scenario, use cases, installation environment(bare metal, vm, container, or k8s), etc. ## Walkthrough (Option) free5GC will be interested on the research or finding in brief. ## Additional context My repository for generating UE threads is here: https://github.com/tywofxd/5GLogGenerator
[Bugs] UPF Cli Run Error: open Gtp5g: open link: create: file exists
https://api.github.com/repos/free5gc/free5gc/issues/420/comments
2
2023-01-03T02:14:48Z
2023-06-29T03:30:07Z
https://github.com/free5gc/free5gc/issues/420
1,516,856,901
420
[ "free5gc", "free5gc" ]
Hi All, I want know how to deploy N3IWF code in docker to connect amf and upf. what are the configuration need to change ?
How to deploy N3IWF in docker
https://api.github.com/repos/free5gc/free5gc/issues/419/comments
6
2022-12-28T09:50:14Z
2023-11-07T06:23:33Z
https://github.com/free5gc/free5gc/issues/419
1,512,615,443
419
[ "free5gc", "free5gc" ]
## Description I am implementing LADN support in free5GC, but after a N2 Handover, when I try instantiate a new PDU Session for a new available LADN, it takes some extra time due to the AMF sending an Initial Context Setup Request. The request is sent from the N1N2Transfer Procedure because the flag "SentInitialContextSetupRequest" is set to false inside the UE AMF Context. Would it be sufficient to set this parameter to true after that the HO Procedure is completed? Or am I missing something? I guess the InitialContextSetupReq is not necessary after a N2 HO Procedure, since the t-gNB is already aware of the new UE Context... ## To Reproduce Steps to reproduce the behavior: 1. Execute a N2 Handover 2. Request a new PDU Session from the UE
[Bugs] After N2 Handover, if new PDU Session Req AMF sends Initial Context Set Req
https://api.github.com/repos/free5gc/free5gc/issues/418/comments
2
2022-12-27T10:33:54Z
2023-07-03T09:40:56Z
https://github.com/free5gc/free5gc/issues/418
1,511,671,246
418
[ "free5gc", "free5gc" ]
Hello free5GC Team, we have found a security vulnerability in free5GC and would like to report it to you. Which communication channel do you prefer to be informed about it? Best regards Tobias Funke, Radix Security
Question to your Security Policy
https://api.github.com/repos/free5gc/free5gc/issues/417/comments
4
2022-12-21T18:28:27Z
2023-08-23T19:39:51Z
https://github.com/free5gc/free5gc/issues/417
1,506,741,622
417
[ "free5gc", "free5gc" ]
## Describe the bug Error "opStr length is 0" occurs in `TestRegistration` using a subscriber whose opcValue is valid and opValue is empty. If Operator Code Type in the subscriber data added via webconsole is OPc, opValue becomes empty. So "opStr length is 0" should not be treated as error. ## To Reproduce 1. Change `TestRegistration()` ``` ue.AuthenticationSubs = test.GetAuthSubscription(TestGenAuthData.MilenageTestSet19.K, TestGenAuthData.MilenageTestSet19.OPC, // TestGenAuthData.MilenageTestSet19.OP) // comment out "") // add ``` 2. Run `TestRegistration` ## Expected behavior No error occurs. ## Environment - free5GC Version: v3.2.1+latest main - OS: Ubuntu 18.04 - Kernel version: 5.0.0-23-generic - go version go1.19.3 linux/amd64 ## Trace File ### Log File ``` [INFO][UDM][UEAU] Handle GenerateAuthDataRequest [INFO][UDM][Suci] suciPart: [suci 0 208 93 0 0 0 00007487] [INFO][UDM][Suci] scheme 0 [INFO][UDM][Suci] SUPI type is IMSI [INFO][NRF][DSCV] Handle NFDiscoveryRequest [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=UDM&target-nf-type=UDR | [INFO][UDR][DRepo] Handle QueryAuthSubsData [INFO][UDR][GIN] | 200 | 127.0.0.1 | GET | /nudr-dr/v1/subscription-data/imsi-2089300007487/authentication-data/authentication-subscription | [ERRO][UDM][UEAU] opStr length is 0 [INFO][UDR][DRepo] Handle ModifyAuthentication [INFO][UDR][GIN] | 204 | 127.0.0.1 | PATCH | /nudr-dr/v1/subscription-data/imsi-2089300007487/authentication-data/authentication-subscription | [INFO][UDM][GIN] | 200 | 127.0.0.1 | POST | /nudm-ueau/v1/suci-0-208-93-0-0-0-00007487/security-information/generate-auth-data | ``` ## Additional context [Pull Request](https://github.com/free5gc/udm/pull/17) for the fix.
[Bugs] Error "opStr length is 0" occurs when OP is empty
https://api.github.com/repos/free5gc/free5gc/issues/416/comments
1
2022-12-15T04:11:08Z
2022-12-16T01:57:45Z
https://github.com/free5gc/free5gc/issues/416
1,497,753,421
416
[ "free5gc", "free5gc" ]
## Issue Description Even if a UPF fails and cannnot communicate with SMF, SMF sends a new PFCP session related request to the failed UPF. And SMF has no way to know when the UPF recovers. ### What's the version are you using v3.2.1 + latest main ### Is your feature request related to a problem? Please describe. SMF monitors UPFs by PFCP Heartbeat Procedure (TS 29.244 6.2). If SMF detects a UPF failure in the procedure, SMF doesn't send new PFCP session related request to the UPF until it is recovered. ### Describe the solution you'd like After PFCP association has been established, SMF sends PFCP Heartbeat Request to the UPFs at regular intervals. The interval is new item in SMF configuration. ``` pfcp: heartbeat: # the heartbeat related (optional) interval: 10s # default is 0s (if interval is 0s, heartbeat procedure is disabled) ``` If SMF receives PFCP Heartbeat Response from a UPF, SMF saves Recovery Time Stamp (T1) in the response when the first response is received. For the second or subsequent response, SMF compares the received Recovery Time Stamp (T2) with T1. If T1 < T2, it means the UPF has restarted. SMF deletes PFCP Association and releases all PDU sessions associated with the UPF and trys to re-establish PFCP Association. If SMF did not receive PFCP Heartbeat Response from a UPF, SMF takes the same action when T1 < T2. Pull Requests for the feature. * [smf](https://github.com/free5gc/smf/pull/63) * [pfcp](https://github.com/free5gc/pfcp/pull/10) ### Describe alternatives/workarounds you've considered None ### Additional context None
[Feat] PFCP Heartbeat Procedure
https://api.github.com/repos/free5gc/free5gc/issues/415/comments
1
2022-12-07T01:59:46Z
2022-12-30T13:52:43Z
https://github.com/free5gc/free5gc/issues/415
1,480,695,978
415
[ "free5gc", "free5gc" ]
## Describe the bug After the Mobile Update Request from the UE, the UE TMSI can be refreshed by the AMF. Consequently the GUTI will change. The SMF uses the following uri to send smContext Status related notifications from the AMF: /namf-callbacks/v1/smContextStatus/<UE-GUTI>/<PDU_SESSION_ID>. After the GUTI changes, the SMF is not informed about so it will keep sending notifications to the old GUTI triggering a 404 error in the AMF. This will result in several procedure failings. Is there something from the Specification side that I am not getting? Or is it a bug? ## To Reproduce Steps to reproduce the behavior: 1. Mobility Update Request Initiated by the UE 2. Initiate a PDUSessionRelease procedure from the UE.
[Bugs] wrong smContextNotifyUri in SMF after Mobility Update Request
https://api.github.com/repos/free5gc/free5gc/issues/414/comments
2
2022-12-01T12:42:07Z
2022-12-16T08:12:39Z
https://github.com/free5gc/free5gc/issues/414
1,471,251,235
414
[ "free5gc", "free5gc" ]
the amf doesnt reroute the registration to another amf when it cant handle the NSSAI , and the amf doesn't check the NSSAi parameter rather it accept everything and authenticate the UE, the normal behavior is : During Registration, the initial AMF using the information, e.g. Requested NSAAI and subscribed NSSAI received from the device and UDM respectively and as well as inquiry from NSSF (Network Slice Selection Function) is able to check whether it can handle the registration process or it should re-route the registration request to another AMF (target AMF) for the further action. The target AMF then prepares the allowed and configured NSAAI and delivers it to the device via NAS-5GMM Registration Accept message.
[Bugs] AMF doesnt reroute the registration to another amf when it cant handle the NSSAI
https://api.github.com/repos/free5gc/free5gc/issues/413/comments
3
2022-11-29T08:55:10Z
2024-01-09T10:56:49Z
https://github.com/free5gc/free5gc/issues/413
1,467,684,717
413
[ "free5gc", "free5gc" ]
Can free5gc support multiple AMF, and can the the selection based on NSSAI ?
[Question] Can free5gc support multiple AMF
https://api.github.com/repos/free5gc/free5gc/issues/412/comments
1
2022-11-28T20:55:09Z
2023-07-17T10:41:26Z
https://github.com/free5gc/free5gc/issues/412
1,467,078,275
412
[ "free5gc", "free5gc" ]
## Describe the bug The PCF depends go module "github.com/tim-ywliu/event" (https://github.com/tim-ywliu/event). But this module has no license info.
PCF uses unknown license module
https://api.github.com/repos/free5gc/free5gc/issues/411/comments
0
2022-11-24T08:52:40Z
2023-06-07T09:30:09Z
https://github.com/free5gc/free5gc/issues/411
1,462,980,865
411
[ "free5gc", "free5gc" ]
i am trying to do a multiple slices scenario with different upf and smf, the ue can connect to the first slice, but the second ue when trying to connect to the second slice , it end up connecting to the first one , and when I checked the messages it turn out that the nrf is actually responding to the amf in the nssi selection with the smf of the first slice can someone help, ue config: ============================================================== IMSI number of the UE. IMSI = [MCC|MNC|MSISDN] (In total 15 or 16 digits) supi: 'imsi-208930000000004' # Mobile Country Code value mcc: '208' # Mobile Network Code value (2 or 3 digits) mnc: '93' # Permanent subscription key key: '8baf473f2f8fd09487cccbd7097c6862' # Operator code (OP or OPC) of the UE op: '8e27b6af0e692e750f32667a3b14605d' # This value specifies the OP type and it can be either 'OP' or 'OPC' opType: 'OPC' # Authentication Management Field (AMF) value amf: '8000' # IMEI number of the device. It is used if no SUPI is provided imei: '356938035643803' # IMEISV number of the device. It is used if no SUPI and IMEI is provided imeiSv: '4370816125816151' # List of gNB IP addresses for Radio Link Simulation gnbSearchList: - 192.168.2.18 # Initial PDU sessions to be established sessions: - type: 'IPv4' apn: 'internet' slice: sst: 0x01 sd: 0x010204 # List of requested S-NSSAIs by this UE slices: - sst: 0x01 sd: 0x010204 # Supported encryption and integrity algorithms by this UE integrity: IA1: true IA2: true IA3: true ciphering: EA1: true EA2: true EA3: true ============================================================== nssf config: info: version: 1.0.0 description: NSSF initial local configuration configuration: nssfName: NSSF sbi: scheme: http registerIPv4: 192.168.2.166 # IP used to register to NRF bindingIPv4: 192.168.2.166 # IP used to bind the service port: 29531 serviceNameList: - nnssf-nsselection - nnssf-nssaiavailability nrfUri: http://192.168.2.165:29510 supportedPlmnList: - mcc: 208 mnc: 93 supportedNssaiInPlmnList: - plmnId: mcc: 208 mnc: 93 supportedSnssaiList: - sst: 1 sd: 010203 - sst: 1 sd: 010204 - sst: 1 sd: 3 - sst: 2 sd: 1 - sst: 2 sd: 2 nsiList: - snssai: sst: 1 nsiInformationList: - nrfId: http://192.168.2.165:29510 nsiId: 10 - snssai: sst: 1 sd: 010204 nsiInformationList: - nrfId: http://192.168.2.165:29510/nnrf-disc/v1/nf-instances nsiId: 11 - snssai: sst: 1 sd: 2 nsiInformationList: - nrfId: http://localhost:29510/nnrf-nfm/v1/nf-instances nsiId: 12 - nrfId: http://localhost:29510/nnrf-nfm/v1/nf-instances nsiId: 12 - snssai: sst: 1 sd: 3 nsiInformationList: - nrfId: http://localhost:29510/nnrf-nfm/v1/nf-instances nsiId: 13 - snssai: sst: 2 nsiInformationList: - nrfId: http://localhost:29510/nnrf-nfm/v1/nf-instances nsiId: 20 - snssai: sst: 2 sd: 1 nsiInformationList: - nrfId: http://localhost:29510/nnrf-nfm/v1/nf-instances nsiId: 21 - snssai: sst: 1 sd: 010203 nsiInformationList: - nrfId: http://192.168.2.165:29510/nnrf-nfm/v1/nf-instances nsiId: 22 amfSetList: - amfSetId: 1 amfList: - ffa2e8d7-3275-49c7-8631-6af1df1d9d26 - 0e8831c3-6286-4689-ab27-1e2161e15cb1 - a1fba9ba-2e39-4e22-9c74-f749da571d0d nrfAmfSet: http://localhost:8081/nnrf-nfm/v1/nf-instances supportedNssaiAvailabilityData: - tai: plmnId: mcc: 466 mnc: 92 tac: 33456 supportedSnssaiList: - sst: 1 sd: 1 - sst: 1 sd: 2 - sst: 2 sd: 1 - tai: plmnId: mcc: 466 mnc: 92 tac: 33457 supportedSnssaiList: - sst: 1 - sst: 1 sd: 1 - sst: 1 sd: 2 - amfSetId: 2 nrfAmfSet: http://localhost:8084/nnrf-nfm/v1/nf-instances supportedNssaiAvailabilityData: - tai: plmnId: mcc: 466 mnc: 92 tac: 33456 supportedSnssaiList: - sst: 1 - sst: 1 sd: 1 - sst: 1 sd: 3 - sst: 2 sd: 1 - tai: plmnId: mcc: 466 mnc: 92 tac: 33458 supportedSnssaiList: - sst: 1 - sst: 1 sd: 1 - sst: 2 amfList: - nfId: 469de254-2fe5-4ca0-8381-af3f500af77c supportedNssaiAvailabilityData: - tai: plmnId: mcc: 466 mnc: 92 tac: 33456 supportedSnssaiList: - sst: 1 - sst: 1 sd: 2 - sst: 2 - tai: plmnId: mcc: 466 mnc: 92 tac: 33457 supportedSnssaiList: - sst: 1 sd: 1 - sst: 1 sd: 2 - nfId: fbe604a8-27b2-417e-bd7c-8a7be2691f8d supportedNssaiAvailabilityData: - tai: plmnId: mcc: 466 mnc: 92 tac: 33458 supportedSnssaiList: - sst: 1 - sst: 1 sd: 1 - sst: 1 sd: 3 - sst: 2 - tai: plmnId: mcc: 466 mnc: 92 tac: 33459 supportedSnssaiList: - sst: 1 - sst: 1 sd: 1 - sst: 2 - sst: 2 sd: 1 - nfId: b9e6e2cb-5ce8-4cb6-9173-a266dd9a2f0c supportedNssaiAvailabilityData: - tai: plmnId: mcc: 466 mnc: 92 tac: 33456 supportedSnssaiList: - sst: 1 - sst: 1 sd: 1 - sst: 1 sd: 2 - sst: 2 - tai: plmnId: mcc: 466 mnc: 92 tac: 33458 supportedSnssaiList: - sst: 1 - sst: 1 sd: 1 - sst: 2 - sst: 2 sd: 1 taList: - tai: plmnId: mcc: 466 mnc: 92 tac: 33456 accessType: 3GPP_ACCESS supportedSnssaiList: - sst: 1 - sst: 1 sd: 1 - sst: 1 sd: 2 - sst: 2 - tai: plmnId: mcc: 466 mnc: 92 tac: 33457 accessType: 3GPP_ACCESS supportedSnssaiList: - sst: 1 - sst: 1 sd: 1 - sst: 1 sd: 2 - sst: 2 - tai: plmnId: mcc: 466 mnc: 92 tac: 33458 accessType: 3GPP_ACCESS supportedSnssaiList: - sst: 1 - sst: 1 sd: 1 - sst: 1 sd: 3 - sst: 2 restrictedSnssaiList: - homePlmnId: mcc: 310 mnc: 560 sNssaiList: - sst: 1 sd: 3 - tai: plmnId: mcc: 466 mnc: 92 tac: 33459 accessType: 3GPP_ACCESS supportedSnssaiList: - sst: 1 - sst: 1 sd: 1 - sst: 2 - sst: 2 sd: 1 restrictedSnssaiList: - homePlmnId: mcc: 310 mnc: 560 sNssaiList: - sst: 2 sd: 1 mappingListFromPlmn: - operatorName: NTT Docomo homePlmnId: mcc: 440 mnc: 10 mappingOfSnssai: - servingSnssai: sst: 1 sd: 1 homeSnssai: sst: 1 sd: 1 - servingSnssai: sst: 1 sd: 2 homeSnssai: sst: 1 sd: 3 - servingSnssai: sst: 1 sd: 3 homeSnssai: sst: 1 sd: 4 - servingSnssai: sst: 2 sd: 1 homeSnssai: sst: 2 sd: 2 - operatorName: AT&T Mobility homePlmnId: mcc: 310 mnc: 560 mappingOfSnssai: - servingSnssai: sst: 1 sd: 1 homeSnssai: sst: 1 sd: 2 - servingSnssai: sst: 1 sd: 2 homeSnssai: sst: 1 sd: 3 ============================================================ first smf: info: version: 1.0.0 description: initial local configuration configuration: smfName: SMF sbi: scheme: http registerIPv4: 192.168.2.163 # IP used to register to NRF bindingIPv4: 192.168.2.163 # IP used to bind the service port: 29502 tls: key: free5gc/support/TLS/smf.key pem: free5gc/support/TLS/smf.pem serviceNameList: - nsmf-pdusession - nsmf-event-exposure - nsmf-oam snssai_info: - sNssai: sst: 1 sd: 010203 dnnSmfInfoList: - dnn: internet - sNssai: sst: 1 sd: 112233 dnnSmfInfoList: - dnn: internet pfcp: addr: 192.168.2.163 userplane_information: up_nodes: gNB1: type: AN an_ip: 192.168.2.210 UPF: type: UPF node_id: 192.168.2.160 links: - A: gNB1 B: UPF ue_subnet: 60.60.0.0/16 dnn: internet: dns: ipv4: 8.8.8.8 ipv6: 2001:4860:4860::8888 internet2: dns: ipv4: 8.8.4.4 ipv6: 2001:4860:4860::8844 nrfUri: http://192.168.2.165:29510 ============================= second smf info: version: 1.0.0 description: initial local configuration configuration: smfName: SMF sbi: scheme: http registerIPv4: 192.168.2.183 # IP used to register to NRF bindingIPv4: 192.168.2.183 # IP used to bind the service port: 29502 tls: key: free5gc/support/TLS/smf.key pem: free5gc/support/TLS/smf.pem serviceNameList: - nsmf-pdusession - nsmf-event-exposure - nsmf-oam snssai_info: - sNssai: sst: 1 sd: 010204 dnnSmfInfoList: - dnn: internet - sNssai: sst: 1 sd: 122233 dnnSmfInfoList: - dnn: internet pfcp: addr: 192.168.2.183 userplane_information: up_nodes: gNB1: type: AN an_ip: 192.168.2.210 UPF: type: UPF node_id: 192.168.2.180 links: - A: gNB1 B: UPF ue_subnet: 70.70.0.0/16 dnn: internet: dns: ipv4: 8.8.8.8 ipv6: 2001:4860:4860::8888 internet2: dns: ipv4: 8.8.4.4 ipv6: 2001:4860:4860::8844 nrfUri: http://192.168.2.165:29510
issue [ ue connect to the first smf that register to the nrf in multiple slice (multiple smf config)
https://api.github.com/repos/free5gc/free5gc/issues/410/comments
1
2022-11-22T17:52:23Z
2023-07-17T04:13:01Z
https://github.com/free5gc/free5gc/issues/410
1,460,311,781
410
[ "free5gc", "free5gc" ]
## Documentation request I could not find any information about changing the webconsole-password. Hardcoding user and password information is obviously a bad idea and completely defeats the use of passwords. Maybe I have missed something, but if not, this is a serious problem. ## Suggestion Include documentation on changing the webconsole-password in the wiki. ## Additional context Since this is an open-source project, one can obviously change the password somehow. An easier option would still be very much appreciated.
[Docs] Document changing the webconsole-password
https://api.github.com/repos/free5gc/free5gc/issues/409/comments
3
2022-11-10T08:48:49Z
2022-11-19T13:46:40Z
https://github.com/free5gc/free5gc/issues/409
1,443,492,008
409
[ "free5gc", "free5gc" ]
## Describe the bug I'm trying to translate the free5gc build script into a reproducible [Arch PKGBUILD](https://wiki.archlinux.org/title/PKGBUILD). My build was working until libgtp5gnl was [replaced by](https://github.com/free5gc/free5gc/blob/main/make_gtp5gtunnel.sh) go-gtp5gnl. I'm struggling to integrate the go-gtp5gnl build. The GOROOT set by `export GOROOT="$srcdir"` seems not to be respected: ``` attr_ver.go:4:2: package bytes is not in GOROOT (./free5gc/src/src/bytes) endian.go:4:2: package encoding/binary is not in GOROOT (./free5gc/src/src/encoding/binary) ../pkg/mod/github.com/khirono/[email protected]/family.go:4:2: package errors is not in GOROOT (./free5gc/src/src/errors) bar.go:4:2: package fmt is not in GOROOT (./free5gc/src/src/fmt) ../pkg/mod/github.com/khirono/[email protected]/attr.go:5:2: package io is not in GOROOT (./free5gc/src/src/io) attr_pdr.go:4:2: package log is not in GOROOT (./free5gc/src/src/log) attr_far.go:4:2: package net is not in GOROOT (./free5gc/src/src/net) ../pkg/mod/github.com/khirono/[email protected]/mux.go:4:2: package sync is not in GOROOT (./free5gc/src/src/sync) ../pkg/mod/github.com/khirono/[email protected]/attr.go:6:2: package syscall is not in GOROOT (./free5gc/src/src/syscall) attr_report.go:4:2: package time is not in GOROOT (./free5gc/src/src/time) ../pkg/mod/github.com/khirono/[email protected]/conn.go:6:2: package unsafe is not in GOROOT (./free5gc/src/src/unsafe) ``` This is the directory tree: ``` ├── free5gc │   ├── bin │   ├── go.mod │   ├── ... ├── go-gtp5gnl │   ├── ... └── pkg └── mod └── github.com └── khirono ``` How do you keep the GOROOT from changing?
[Bugs] GOROOT not respected / changing
https://api.github.com/repos/free5gc/free5gc/issues/408/comments
1
2022-11-09T17:49:47Z
2024-04-02T18:18:05Z
https://github.com/free5gc/free5gc/issues/408
1,442,506,762
408
[ "free5gc", "free5gc" ]
Just wondering if anyone can help with any suggestions. I am trying to send different PFCP messages to the UPF to simulate attacks where a session modification or deletion request is generated from the SMF. I have had a look at modifying some of the test scenarios but I am a bit confused as these are implemented via the AMF but I want to generate directly from the SMF to simulate a malicious SMF. I also considered sending the PFCP message via the CLI as would be done with the http CURL command but I am lost in how to achieve it this way. Any ideas are appreciated!
Sending PFCP messages from SMF
https://api.github.com/repos/free5gc/free5gc/issues/407/comments
1
2022-11-08T13:13:38Z
2023-05-28T13:21:31Z
https://github.com/free5gc/free5gc/issues/407
1,440,178,984
407
[ "free5gc", "free5gc" ]
Hello All, I followed the video below to try to set it up, but I got error when run UPFs. [Environment setup of multiple SMF, DNN, and UPF](https://www.youtube.com/watch?v=AEMrjKRWarw&ab_channel=free5GC) ![image](https://user-images.githubusercontent.com/111422226/198243730-dfdd3e4d-a6b2-46d8-80ec-ee0a73b3e410.png) I got the error when run the I-UPF, PSA-UPF1 and PSA-UPF2. I don't understand why there is this problem? I even gave the absolute path to the file and still have this error. Linux version: ubuntu-20.04.5-live-server-amd64 free5GC version: v3.2.1 Any suggestions and help are appreciated~:) Best Regrad Hsin
Question about multiple UPF
https://api.github.com/repos/free5gc/free5gc/issues/406/comments
4
2022-10-27T09:23:23Z
2022-11-01T07:06:21Z
https://github.com/free5gc/free5gc/issues/406
1,425,314,924
406
[ "free5gc", "free5gc" ]
I’d like to control Flow Rules by Webconsole, are there any examples for that? I’ve tried following https://forum.free5gc.org/uploads/default/original/1X/177986a36431070a2a9e7d438fd535c79fa12a20.png I was expecting that bandwidth would be limited to 5 Mbps, but nothing changed, tested with iperf3 (tcp). I have also tried following rules: permit in 6 from any to any permit out 6 from any to any permit in 6 from any to 10.100.201.11 permit out 6 from 10.100.201.11 to any permit out 6 from any to any Am I using invalid syntax or is this not implemented yet?
[Question] How to set Flow rules (IP filtering) in webconsole?
https://api.github.com/repos/free5gc/free5gc/issues/405/comments
1
2022-10-25T19:49:00Z
2022-11-08T06:08:03Z
https://github.com/free5gc/free5gc/issues/405
1,422,987,008
405
[ "free5gc", "free5gc" ]
Hi folks! How can I disable NAS message encryption?
Disable NAS message encryption
https://api.github.com/repos/free5gc/free5gc/issues/403/comments
1
2022-10-14T14:25:16Z
2023-07-17T04:12:37Z
https://github.com/free5gc/free5gc/issues/403
1,409,437,497
403
[ "free5gc", "free5gc" ]
## Describe the bug A crafted malformed NGAP message can crash AMF and NGAP decoder ## To Reproduce run the program test.go can reproduce NGAP decoder crash: fisher@ubuntu:~/free5gc/NFs/amf/internal/ngap$ cat test.go ``` package main import ( ngap "github.com/free5gc/ngap" "fmt" ) func main() { data := []byte{0x00, 0x28, 0x00, 0x30, 0x00, 0x30, 0x30, 0x00, 0x12, 0x00, 0x20, 0x37, 0x37, 0x00, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30} _, err := ngap.Decoder(data) fmt.Println(err) } ``` fisher@ubuntu:~/free5gc/NFs/amf/internal/ngap$ go run test.go ``` panic: runtime error: index out of range [18446744073709551615] with length 29 goroutine 1 [running]: github.com/free5gc/aper.GetBitString(0xc0000181e3, 0x1d, 0x1d, 0x0, 0x0, 0x4f3420, 0x6390c0, 0xc00007e6e0, 0x4b, 0x0) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:54 +0x2b2 github.com/free5gc/aper.GetBitsValue(0xc0000181e3, 0x1d, 0x1d, 0x0, 0x0, 0x0, 0x0, 0x0) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:83 +0x5a github.com/free5gc/aper.(*perBitData).getBitsValue(0xc00009d140, 0x0, 0xc00009ba2f, 0x0, 0x0) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:117 +0x7a github.com/free5gc/aper.(*perBitData).parseSemiConstrainedWholeNumber(0xc00009d140, 0x0, 0x1, 0x0, 0x0) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:191 +0x111 github.com/free5gc/aper.(*perBitData).parseNormallySmallNonNegativeWholeNumber(0xc00009d140, 0xc00001c140, 0x36, 0x1) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:204 +0x71 github.com/free5gc/aper.(*perBitData).parseEnumerated(0xc00009d140, 0x4f2b01, 0xc000015098, 0xc0000150a0, 0x1, 0xc0000164e0, 0x22) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:530 +0x168 github.com/free5gc/aper.parseField(0x4f2b60, 0xc000015080, 0x18b, 0xc00009d140, 0x10000, 0x0, 0x0, 0xc000015098, 0xc0000150a0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:727 +0x1a3e github.com/free5gc/aper.parseField(0x507ca0, 0xc000015080, 0x199, 0xc00009d140, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:853 +0x14ae github.com/free5gc/aper.parseField(0x4da0c0, 0xc000078200, 0x196, 0xc00009d140, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:686 +0x228f github.com/free5gc/aper.parseField(0x538760, 0xc0000781c0, 0x199, 0xc00009d140, 0x10000, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:853 +0x14ae github.com/free5gc/aper.parseField(0x4d70c0, 0xc000100050, 0x196, 0xc000089140, 0x10000, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:686 +0x228f github.com/free5gc/aper.(*perBitData).parseOpenType(0xc00008acd0, 0x4d70c0, 0xc000100050, 0x196, 0x10000, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:668 +0x367 github.com/free5gc/aper.parseField(0x53db00, 0xc000100010, 0x199, 0xc00008acd0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:805 +0xa99 github.com/free5gc/aper.parseField(0x52abe0, 0xc000100000, 0x199, 0xc00009ecd0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:853 +0x14ae github.com/free5gc/aper.(*perBitData).parseSequenceOf(0xc00009ecd0, 0x4ed800, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:591 +0x347 github.com/free5gc/aper.parseField(0x4ed860, 0xc00000c7e0, 0x197, 0xc00008acd0, 0x0, 0xc0000149b0, 0xc0000149b8, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:860 +0x190d github.com/free5gc/aper.parseField(0x5119a0, 0xc00000c7e0, 0x199, 0xc00009ecd0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:853 +0x14ae github.com/free5gc/aper.parseField(0x514e20, 0xc00000c7e0, 0x199, 0xc00009ecd0, 0x10000, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:853 +0x14ae github.com/free5gc/aper.parseField(0x4e4480, 0xc000012408, 0x196, 0xc00008acd0, 0x10000, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:686 +0x228f github.com/free5gc/aper.(*perBitData).parseOpenType(0xc00008be90, 0x4e4480, 0xc000012408, 0x196, 0x10000, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:668 +0x367 github.com/free5gc/aper.parseField(0x546a00, 0xc000012390, 0x199, 0xc00008be90, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:805 +0xa99 github.com/free5gc/aper.parseField(0x5236e0, 0xc000012380, 0x199, 0xc00009fe90, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:853 +0x14ae github.com/free5gc/aper.parseField(0x4d9c80, 0xc00000c0e8, 0x196, 0xc000064e90, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:686 +0x228f github.com/free5gc/aper.parseField(0x530d60, 0xc00000c0e0, 0x199, 0xc000064e90, 0x10000, 0x0, 0x0, 0xc0000140c0, 0xc0000140c8, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:819 +0xd9e github.com/free5gc/aper.UnmarshalWithParams(0xc00001c0c0, 0x34, 0x34, 0x4da3c0, 0xc00000c0e0, 0x54bdd9, 0x1c, 0x0, 0x0) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:935 +0x1ce github.com/free5gc/ngap.Decoder(...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/ngap.go:19 main.main() /home/fisher/free5gc/NFs/amf/internal/ngap/test.go:10 +0xd7 exit status 2 ``` When AMF receive this NGAP message will also crash ``` fisher@ubuntu:~/free5gc$ sudo ./bin/amf -c ./config/amfcfg.yaml -l ./log/20221014_091505/amf.log -lc ./log/20221014_091505/free5gc.log 2022-10-14T09:28:34Z [INFO][AMF][CFG] config version [1.0.3] 2022-10-14T09:28:34Z [INFO][AMF][Init] AMF Log level is set to [info] level 2022-10-14T09:28:34Z [INFO][LIB][NAS] set log level : info 2022-10-14T09:28:34Z [INFO][LIB][NAS] set report call : false 2022-10-14T09:28:34Z [INFO][LIB][NGAP] set log level : info 2022-10-14T09:28:34Z [INFO][LIB][NGAP] set report call : false 2022-10-14T09:28:34Z [INFO][LIB][FSM] set log level : info 2022-10-14T09:28:34Z [INFO][LIB][FSM] set report call : false 2022-10-14T09:28:34Z [INFO][LIB][Aper] set log level : info 2022-10-14T09:28:34Z [INFO][LIB][Aper] set report call : false 2022-10-14T09:28:34Z [INFO][AMF][App] amf 2022-10-14T09:28:34Z [INFO][AMF][App] AMF version: free5GC version: v3.2.1-13-ge104d46 build time: 2022-10-14T02:12:30Z commit hash: e839de03 commit time: 2022-08-25T12:35:10Z go version: go1.14.4 linux/amd64 2022-10-14T09:28:34Z [INFO][AMF][Init] Server started [GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production. - using env: export GIN_MODE=release - using code: gin.SetMode(gin.ReleaseMode) [GIN-debug] GET /namf-callback/v1/ --> github.com/free5gc/amf/internal/sbi/httpcallback.Index (4 handlers) [GIN-debug] POST /namf-callback/v1/smContextStatus/:guti/:pduSessionId --> github.com/free5gc/amf/internal/sbi/httpcallback.HTTPSmContextStatusNotify (4 handlers) [GIN-debug] POST /namf-callback/v1/am-policy/:polAssoId/update --> github.com/free5gc/amf/internal/sbi/httpcallback.HTTPAmPolicyControlUpdateNotifyUpdate (4 handlers) [GIN-debug] POST /namf-callback/v1/am-policy/:polAssoId/terminate --> github.com/free5gc/amf/internal/sbi/httpcallback.HTTPAmPolicyControlUpdateNotifyTerminate (4 handlers) [GIN-debug] POST /namf-callback/v1/n1-message-notify --> github.com/free5gc/amf/internal/sbi/httpcallback.HTTPN1MessageNotify (4 handlers) [GIN-debug] GET /namf-oam/v1/ --> github.com/free5gc/amf/internal/sbi/oam.Index (4 handlers) [GIN-debug] GET /namf-oam/v1/registered-ue-context --> github.com/free5gc/amf/internal/sbi/oam.HTTPRegisteredUEContext (4 handlers) [GIN-debug] GET /namf-oam/v1/registered-ue-context/:supi --> github.com/free5gc/amf/internal/sbi/oam.HTTPRegisteredUEContext (4 handlers) [GIN-debug] GET /namf-comm/v1/ --> github.com/free5gc/amf/internal/sbi/communication.Index (4 handlers) [GIN-debug] PUT /namf-comm/v1/subscriptions/:subscriptionId --> github.com/free5gc/amf/internal/sbi/communication.HTTPAMFStatusChangeSubscribeModify (4 handlers) [GIN-debug] DELETE /namf-comm/v1/subscriptions/:subscriptionId --> github.com/free5gc/amf/internal/sbi/communication.HTTPAMFStatusChangeUnSubscribe (4 handlers) [GIN-debug] PUT /namf-comm/v1/ue-contexts/:ueContextId --> github.com/free5gc/amf/internal/sbi/communication.HTTPCreateUEContext (4 handlers) [GIN-debug] POST /namf-comm/v1/ue-contexts/:ueContextId/assign-ebi --> github.com/free5gc/amf/internal/sbi/communication.HTTPEBIAssignment (4 handlers) [GIN-debug] POST /namf-comm/v1/ue-contexts/:ueContextId/transfer-update --> github.com/free5gc/amf/internal/sbi/communication.HTTPRegistrationStatusUpdate (4 handlers) [GIN-debug] POST /namf-comm/v1/ue-contexts/:ueContextId/release --> github.com/free5gc/amf/internal/sbi/communication.HTTPReleaseUEContext (4 handlers) [GIN-debug] POST /namf-comm/v1/ue-contexts/:ueContextId/transfer --> github.com/free5gc/amf/internal/sbi/communication.HTTPUEContextTransfer (4 handlers) [GIN-debug] DELETE /namf-comm/v1/ue-contexts/:ueContextId/n1-n2-messages/subscriptions/:subscriptionId --> github.com/free5gc/amf/internal/sbi/communication.HTTPN1N2MessageUnSubscribe (4 handlers) [GIN-debug] POST /namf-comm/v1/ue-contexts/:ueContextId/n1-n2-messages --> github.com/free5gc/amf/internal/sbi/communication.HTTPN1N2MessageTransfer (4 handlers) [GIN-debug] GET /namf-comm/v1/ue-contexts/:ueContextId/n1-n2-messages/:n1N2MessageId --> github.com/free5gc/amf/internal/sbi/communication.HTTPN1N2MessageTransferStatus (4 handlers) [GIN-debug] POST /namf-comm/v1/ue-contexts/:ueContextId/n1-n2-messages/subscriptions --> github.com/free5gc/amf/internal/sbi/communication.HTTPN1N2MessageSubscribe (4 handlers) [GIN-debug] DELETE /namf-comm/v1/non-ue-n2-messages/subscriptions/:n2NotifySubscriptionId --> github.com/free5gc/amf/internal/sbi/communication.HTTPNonUeN2InfoUnSubscribe (4 handlers) [GIN-debug] POST /namf-comm/v1/non-ue-n2-messages/transfer --> github.com/free5gc/amf/internal/sbi/communication.HTTPNonUeN2MessageTransfer (4 handlers) [GIN-debug] POST /namf-comm/v1/non-ue-n2-messages/subscriptions --> github.com/free5gc/amf/internal/sbi/communication.HTTPNonUeN2InfoSubscribe (4 handlers) [GIN-debug] POST /namf-comm/v1/subscriptions --> github.com/free5gc/amf/internal/sbi/communication.HTTPAMFStatusChangeSubscribe (4 handlers) [GIN-debug] GET /namf-evts/v1/ --> github.com/free5gc/amf/internal/sbi/eventexposure.Index (4 handlers) [GIN-debug] DELETE /namf-evts/v1/subscriptions/:subscriptionId --> github.com/free5gc/amf/internal/sbi/eventexposure.HTTPDeleteSubscription (4 handlers) [GIN-debug] PATCH /namf-evts/v1/subscriptions/:subscriptionId --> github.com/free5gc/amf/internal/sbi/eventexposure.HTTPModifySubscription (4 handlers) [GIN-debug] POST /namf-evts/v1/subscriptions --> github.com/free5gc/amf/internal/sbi/eventexposure.HTTPCreateSubscription (4 handlers) [GIN-debug] GET /namf-mt/v1/ --> github.com/free5gc/amf/internal/sbi/mt.Index (4 handlers) [GIN-debug] GET /namf-mt/v1/ue-contexts/:ueContextId --> github.com/free5gc/amf/internal/sbi/mt.HTTPProvideDomainSelectionInfo (4 handlers) [GIN-debug] POST /namf-mt/v1/ue-contexts/:ueContextId/ue-reachind --> github.com/free5gc/amf/internal/sbi/mt.HTTPEnableUeReachability (4 handlers) [GIN-debug] GET /namf-loc/v1/ --> github.com/free5gc/amf/internal/sbi/location.Index (4 handlers) [GIN-debug] POST /namf-loc/v1/:ueContextId/provide-loc-info --> github.com/free5gc/amf/internal/sbi/location.HTTPProvideLocationInfo (4 handlers) [GIN-debug] POST /namf-loc/v1/:ueContextId/provide-pos-info --> github.com/free5gc/amf/internal/sbi/location.HTTPProvidePositioningInfo (4 handlers) 2022-10-14T09:28:34Z [INFO][AMF][Util] amfconfig Info: Version[1.0.3] Description[AMF initial local configuration] 2022-10-14T09:28:34Z [INFO][AMF][NGAP] Listen on 192.168.56.102:38412 2022-10-14T09:28:39Z [INFO][AMF][NGAP] [AMF] SCTP Accept from: 192.168.56.104/10.0.2.15/10.60.0.1/172.17.0.1:60710 2022-10-14T09:28:39Z [INFO][AMF][NGAP] Create a new NG connection for: 192.168.56.104/10.0.2.15/10.60.0.1/172.17.0.1:60710 panic: runtime error: index out of range [18446744073709551615] with length 29 goroutine 15 [running]: github.com/free5gc/aper.GetBitString(0xc0003d7e23, 0x1d, 0x1d, 0x0, 0x0, 0xcef9e0, 0x16a0560, 0xc000029b80, 0x4b, 0x0) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:54 +0x2b2 github.com/free5gc/aper.GetBitsValue(0xc0003d7e23, 0x1d, 0x1d, 0x0, 0x0, 0x0, 0x0, 0x0) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:83 +0x5a github.com/free5gc/aper.(*perBitData).getBitsValue(0xc000474f48, 0x0, 0xc000473837, 0x0, 0x0) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:117 +0x7a github.com/free5gc/aper.(*perBitData).parseSemiConstrainedWholeNumber(0xc000474f48, 0x0, 0x1, 0x0, 0x0) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:191 +0x111 github.com/free5gc/aper.(*perBitData).parseNormallySmallNonNegativeWholeNumber(0xc000474f48, 0xc000452300, 0x36, 0x1) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:204 +0x71 github.com/free5gc/aper.(*perBitData).parseEnumerated(0xc000474f48, 0xcecf01, 0xc0004271e8, 0xc0004271f0, 0x1, 0xc00047a030, 0x22) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:530 +0x168 github.com/free5gc/aper.parseField(0xcecf20, 0xc0004271d0, 0x18b, 0xc000474f48, 0x10000, 0x0, 0x0, 0xc0004271e8, 0xc0004271f0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:727 +0x1a3e github.com/free5gc/aper.parseField(0xd5b980, 0xc0004271d0, 0x199, 0xc000474f48, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:853 +0x14ae github.com/free5gc/aper.parseField(0xcadd80, 0xc0003dda80, 0x196, 0xc000474f48, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:686 +0x228f github.com/free5gc/aper.parseField(0xe00ec0, 0xc0003dda40, 0x199, 0xc000474f48, 0x10000, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:853 +0x14ae github.com/free5gc/aper.parseField(0xcaad80, 0xc000480050, 0x196, 0xc0000a8f48, 0x10000, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:686 +0x228f github.com/free5gc/aper.(*perBitData).parseOpenType(0xc0000aaad8, 0xcaad80, 0xc000480050, 0x196, 0x10000, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:668 +0x367 github.com/free5gc/aper.parseField(0xe25140, 0xc000480010, 0x199, 0xc0000aaad8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:805 +0xa99 github.com/free5gc/aper.parseField(0xdb7600, 0xc000480000, 0x199, 0xc000476ad8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:853 +0x14ae github.com/free5gc/aper.(*perBitData).parseSequenceOf(0xc000476ad8, 0xcd9a00, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:591 +0x347 github.com/free5gc/aper.parseField(0xcd9a60, 0xc0003f9020, 0x197, 0xc0000aaad8, 0x0, 0xc000426af0, 0xc000426af8, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:860 +0x190d github.com/free5gc/aper.parseField(0xd65680, 0xc0003f9020, 0x199, 0xc000476ad8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:853 +0x14ae github.com/free5gc/aper.parseField(0xd68b00, 0xc0003f9020, 0x199, 0xc000476ad8, 0x10000, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:853 +0x14ae github.com/free5gc/aper.parseField(0xcb8140, 0xc0000e5208, 0x196, 0xc0000aaad8, 0x10000, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:686 +0x228f github.com/free5gc/aper.(*perBitData).parseOpenType(0xc0000abc98, 0xcb8140, 0xc0000e5208, 0x196, 0x10000, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:668 +0x367 github.com/free5gc/aper.parseField(0xe60ce0, 0xc0000e5190, 0x199, 0xc0000abc98, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:805 +0xa99 github.com/free5gc/aper.parseField(0xdb0100, 0xc0000e5180, 0x199, 0xc000477c98, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:853 +0x14ae github.com/free5gc/aper.parseField(0xcad940, 0xc0003f8928, 0x196, 0xc00040bc98, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:686 +0x228f github.com/free5gc/aper.parseField(0xddb1c0, 0xc0003f8920, 0x199, 0xc00040bc98, 0x10000, 0x0, 0x0, 0xc000426210, 0xc000426218, 0x0, ...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:819 +0xd9e github.com/free5gc/aper.UnmarshalWithParams(0xc000454000, 0x34, 0x2000, 0xcae080, 0xc0003f8920, 0xe882ed, 0x1c, 0xc0002f8ce0, 0x6) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/aper.go:935 +0x1ce github.com/free5gc/ngap.Decoder(...) /home/fisher/go/pkg/mod/github.com/free5gc/[email protected]/ngap.go:19 github.com/free5gc/amf/internal/ngap.Dispatch(0x1000660, 0xc0004231f0, 0xc000454000, 0x34, 0x2000) /home/fisher/free5gc/NFs/amf/internal/ngap/dispatcher.go:30 +0x11a github.com/free5gc/amf/internal/ngap/service.handleConnection(0xc0004231f0, 0x2000, 0xeaf6d8, 0xeaf6e0) /home/fisher/free5gc/NFs/amf/internal/ngap/service/service.go:204 +0x700 created by github.com/free5gc/amf/internal/ngap/service.listenAndServe /home/fisher/free5gc/NFs/amf/internal/ngap/service/service.go:136 +0xc43 ``` ## Expected behavior No crash of AMF and NGAP decoder ## Environment (please complete the following information): - free5GC Version: v3.2.1-13-ge104d46 - OS: Ubuntu 20.04 Server - Kernel version: 5.4.0-91-generic - go version: go1.14.4 linux/amd64 - c compiler version (Option): gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 ### PCAP File https://raw.githubusercontent.com/fisherwky/shared/main/crafted_malformed_ngap_message_make_amf_crash.pcap
[Bugs] A crafted malformed NGAP message can crash AMF and NGAP decoder
https://api.github.com/repos/free5gc/free5gc/issues/402/comments
8
2022-10-14T10:06:34Z
2023-06-14T11:10:02Z
https://github.com/free5gc/free5gc/issues/402
1,409,103,155
402
[ "free5gc", "free5gc" ]
**If the design issue template is not followed, the issue might be closed.** <!-- Remove above warning line while reporting the issue --> ## Documentation request Hi all, I am started to work with free5gc in the last two weeks. I am trying to implement a simple new NF (NEF - TS29591_Nnef_EventExposure) based on the 3GPP function using OpenAPI generated from the yaml file, using go as the programming language. Is there a step-by-step way to deploy a new NF using OpenAPI? If there aren't a step-by-step, where is the starting point to make it? ## Additional context Someone can help me? Thank ou so much, Best regards
[Docs] Implementing a new NF from OpenAPI generated code
https://api.github.com/repos/free5gc/free5gc/issues/401/comments
1
2022-10-13T02:01:35Z
2023-07-05T06:58:11Z
https://github.com/free5gc/free5gc/issues/401
1,407,021,620
401
[ "free5gc", "free5gc" ]
## Describe the bug Traffic Influence is not working in 5G with multiUPF ## To Reproduce 1. Create 7 Ubuntu VMs as below. VM1 -> Free5gc control plane VM2 -> Free5gc User plane (I-UPF or Branching UPF) VM3 -> Free5gc User plane (PSA-UPF1) VM4 -> Free5gc User plane (PSA-UPF2) VM5 -> UERANSIM VM6 -> Application Server 1 VM7 -> Application Server 2 To achieve below scenario ![image](https://user-images.githubusercontent.com/89249271/195185135-a3b2bfbb-c4ef-4440-a9d6-1361dcd6b45b.png) 2. Install latest version of free5gc and UERANSIM and NGINX installed on each Application server. 3. Run UPF on VM2, VM3 and VM4. 4. Run Free5gc on VM1 with smf-ulcl and uerouting 5. run gnb and ue on VM5 6. smf configuration is as below ![image](https://user-images.githubusercontent.com/89249271/195185495-ce5789fc-d4cf-4d41-815b-7b99fc777d83.png) ![image](https://user-images.githubusercontent.com/89249271/195185511-d866335e-d512-431d-ae31-0cd0b583ab20.png) ![image](https://user-images.githubusercontent.com/89249271/195185532-235da8f9-17df-4547-a948-22211b4bf366.png) 7. UEROUTING configuration is as below. ![image](https://user-images.githubusercontent.com/89249271/195185623-bd2b5274-46d0-4413-af8a-8617f95389e8.png) ## Expected behavior on UERANSIM server, tunnel created uesimtun0 and able to ping destination IP to default path (I-UPF -> PSA-UPF1). when I execute curl command in PCF (Npcf_PolicyAuthorization_create) for traffic influence and route the UE traffic from PSA-UPF1 to PSA-UPF2 and connect another application server. ## Environment (please complete the following information): - free5GC Version: latest main version. - OS: [e.g. Ubuntu 20.04] - go version: [e.g. 1.19.0] ##Issue - on UERANSIM server, UE is not able to ping cloud application server and once i route the traffic using curl command in PCF, traffic is not diverted from UPF-1 to UPF-2. ##Questions: 1. is free5gc support multiupf with traffic influence. 2. once traffic influence curl command executed, is traffic divert from UPF1 to UPF2 in latest version of free5gc ? 3. if yes, what isthe issue in my configuration file or any reference link to solve this issue ?
[Bugs] Traffic Influence is not working in free5gc multiUPF
https://api.github.com/repos/free5gc/free5gc/issues/400/comments
4
2022-10-11T20:00:31Z
2023-06-21T06:19:28Z
https://github.com/free5gc/free5gc/issues/400
1,405,159,287
400
[ "free5gc", "free5gc" ]
## Describe the bug "Guami" field is added to subscriptionData.contextData.amf3gppAccess by UE deregistration. ## To Reproduce 1. Run TestRegistration 2. Dump subscriptionData.contextData.amf3gppAccess ``` { "_id" : ObjectId("631ad12430bd5dd58d2999b9"), "amfInstanceId" : "eaddf73d-d2ef-41d8-98f2-46959fec65b0", "imsVoPs" : "HOMOGENEOUS_NON_SUPPORT", "deregCallbackUri" : "", "initialRegistrationInd" : true, "guami" : { "plmnId" : { "mcc" : "208", "mnc" : "93" }, "amfId" : "cafe00" }, "ratType" : "", "ueId" : "imsi-2089300007487" } ``` 3. Run TestDeregistration 4. Dump subscriptionData.contextData.amf3gppAccess ``` { "_id" : ObjectId("631ad54aad7a0ffc9f09c736"), "amfInstanceId" : "3e187a21-a49c-4b50-b3cf-1c3c9806a029", "imsVoPs" : "HOMOGENEOUS_NON_SUPPORT", "deregCallbackUri" : "", "initialRegistrationInd" : true, "guami" : { "amfId" : "cafe00", "plmnId" : { "mcc" : "208", "mnc" : "93" } }, "ratType" : "", "ueId" : "imsi-2089300007487", "Guami" : { // added "amfId" : "cafe00", "plmnId" : { "mcc" : "208", "mnc" : "93" } }, "PurgeFlag" : true // added } ``` 5. Compare the results of 2 and 4 (Except value of _id and amfInstanceId). ## Expected behavior Only "purgeFlag" is added by UE deregistration. ## Environment (please complete the following information): - free5GC Version: v3.2.1 - OS: Ubuntu 18.04 - Kernel version: 5.0.0-23-generic - go version go1.14.4 linux/amd64 ## Additional context [Pull Request](https://github.com/free5gc/udm/pull/15) for the fix.
[Bugs] amf3gppAccess: Unnecessary fields are added by deregistration
https://api.github.com/repos/free5gc/free5gc/issues/398/comments
1
2022-09-09T06:30:29Z
2022-10-27T03:48:37Z
https://github.com/free5gc/free5gc/issues/398
1,367,350,613
398
[ "free5gc", "free5gc" ]
## Describe the bug The length of DNN should be checked according to TS 23.003 not RFC 1035. ### Label In RFC 1035 "2.3.1. Preferred name syntax", > Labels must be 63 characters or less. NAS and PFCP libraries check DNN according to this definition of domain name, but in TS 23.003 "9.1.1 Format of APN Network Identifier", maximum length of label is defined : > The APN Network Identifier shall contain at least one label and shall have, after encoding as defined in clause 9.1 above, a maximum length of 63 octets. and in "9.1 Structure of APN", encoding of label is defined : > Each label is coded as a one octet length field followed by that number of octets coded as 8 bit ASCII characters. Therefore, up to 62 octets for characters are allowed, so labels in DNN must be **62** characters or less. ### Total length In RFC 1035 "3.1. Name space definitions", > To simplify implementations, the total length of a domain name (i.e., label octets and label length octets) is restricted to 255 octets or less. NAS and PFCP libraries check DNN according to this definition, but in TS 23.003 "9.1 Structure of APN", total length is defined as follows : > An APN consisting of both the Network Identifier and Operator Identifier corresponds to a DNS name of a GGSN/PGW; the APN has, after encoding as defined in the paragraph below, a maximum length of 100 octets. Therefore, encoded DNN must be **100** octets or less. ## Expected behavior The length of DNN should be checked according to TS 23.003. ## Environment - free5GC Version: v3.2.1 - OS: Ubuntu 18.04 - Kernel version: 5.0.0-23-generic - go version go1.14.4 linux/amd64 ## Trace File None ## Additional context I have sent PRs * [nas](https://github.com/free5gc/nas/pull/16) * [pfcp](https://github.com/free5gc/pfcp/pull/9)
[Bugs] DNN length check is wrong
https://api.github.com/repos/free5gc/free5gc/issues/397/comments
0
2022-09-08T08:48:15Z
2022-11-09T07:24:34Z
https://github.com/free5gc/free5gc/issues/397
1,365,816,758
397
[ "free5gc", "free5gc" ]
Hey, does UDM EE is supported? also, while I do get-response for AMF EE (just a response, not a constant subscription notification), will the notification to the uri is expected to be supported? Thanks
[Question]: UDM Event Exposure
https://api.github.com/repos/free5gc/free5gc/issues/396/comments
2
2022-09-05T09:30:20Z
2023-07-03T10:04:27Z
https://github.com/free5gc/free5gc/issues/396
1,361,658,532
396
[ "free5gc", "free5gc" ]
There's a little bug in free5gc 3.2.1 which denies packet going out of upfgtp interface for any additional DNN on the UPF. It is fixed in this UPF's patch https://github.com/free5gc/go-upf/commit/235f16c8e9a2250df22d03beb0bea4274288401f The patch is not yet included in free5gc, but it you can manually apply it - just recompile free5gc. Just leaving this for anyone having the same problem, I believe it will be soon included in free5gc.
[Bugs] Multiple PDU session on single UPF - ip route
https://api.github.com/repos/free5gc/free5gc/issues/395/comments
1
2022-09-03T14:38:41Z
2022-09-21T00:15:10Z
https://github.com/free5gc/free5gc/issues/395
1,360,873,991
395
[ "free5gc", "free5gc" ]
## Describe the bug If the RanUE-NGAP-ID indicated by the InitialUEmessage is managed in the AMF and the UE indicated by the ID is in the CM-CONNECTED state, an error occurs in the NAS message analysis process. ## To Reproduce 1. Registration request before provisioning the subscriber(it shall be failed) 2. Provisioning the subscriber 3. Registration request -> UE state mismatch occurs. AMF can not analysis NAS message(Registration request). ## Expected behavior Accept Registraton request. ## Environment (please complete the following information): - free5GC Version: v3.2.1 - OS: Ubuntu 18.04 - Kernel version: 5.0.0-23-generic - go version go1.14.4 linux/amd64 ## Trace File ### PCAP File ### Log File ``` 2022-09-01T05:42:27Z [INFO][AMF][NGAP][127.0.1.1:9784] Handle Initial UE Message (/home/fujitsu/Origin-go-upf/free5gc/NFs/amf/internal/ngap/handler.go:854 github.com/free5gc/amf/internal/ngap.HandleInitialUEMessage) 2022-09-01T05:42:27Z [INFO][LIB][FSM] Handle event[Gmm Message], transition from [Deregistered] to [Deregistered] (/home/fujitsu/go/pkg/mod/github.com/free5gc/[email protected]/fsm/fsm.go:95 github.com/free5gc/util/fsm.(*FSM).SendEvent) 2022-09-01T05:42:27Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1] Handle Registration Request (/home/fujitsu/Origin-go-upf/free5gc/NFs/amf/internal/gmm/handler.go:370 github.com/free5gc/amf/internal/gmm.HandleRegistrationRequest) 2022-09-01T05:42:27Z [INFO][LIB][FSM] Handle event[Start Authentication], transition from [Deregistered] to [Authentication] (/home/fujitsu/go/pkg/mod/github.com/free5gc/[email protected]/fsm/fsm.go:95 github.com/free5gc/util/fsm.(*FSM).SendEvent) 2022-09-01T05:42:27Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1] Authentication procedure (/home/fujitsu/Origin-go-upf/free5gc/NFs/amf/internal/gmm/handler.go:1505 github.com/free5gc/amf/internal/gmm.AuthenticationProcedure) 2022-09-01T05:42:27Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest (/home/fujitsu/Origin-go-upf/free5gc/NFs/nrf/internal/sbi/producer/nf_discovery.go:23 github.com/free5gc/nrf/internal/sbi/producer.HandleNFDiscoveryRequest) 2022-09-01T05:42:27Z [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=AMF&target-nf-type=AUSF | (/home/fujitsu/go/pkg/mod/github.com/free5gc/[email protected]/logger/logger.go:190 github.com/free5gc/util/logger.ginToLogrus.func1) 2022-09-01T05:42:27Z [INFO][AUSF][UeAuthPost] HandleUeAuthPostRequest (/home/fujitsu/Origin-go-upf/free5gc/NFs/ausf/internal/sbi/producer/ue_authentication.go:64 github.com/free5gc/ausf/internal/sbi/producer.HandleUeAuthPostRequest) 2022-09-01T05:42:27Z [INFO][AUSF][UeAuthPost] Serving network authorized (/home/fujitsu/Origin-go-upf/free5gc/NFs/ausf/internal/sbi/producer/ue_authentication.go:102 github.com/free5gc/ausf/internal/sbi/producer.UeAuthPostRequestProcedure) 2022-09-01T05:42:27Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest (/home/fujitsu/Origin-go-upf/free5gc/NFs/nrf/internal/sbi/producer/nf_discovery.go:23 github.com/free5gc/nrf/internal/sbi/producer.HandleNFDiscoveryRequest) 2022-09-01T05:42:27Z [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=AUSF&service-names=nudm-ueau&target-nf-type=UDM | (/home/fujitsu/go/pkg/mod/github.com/free5gc/[email protected]/logger/logger.go:190 github.com/free5gc/util/logger.ginToLogrus.func1) 2022-09-01T05:42:27Z [INFO][UDM][UEAU] Handle GenerateAuthDataRequest (/home/fujitsu/Origin-go-upf/free5gc/NFs/udm/internal/sbi/producer/generate_auth_data.go:84 github.com/free5gc/udm/internal/sbi/producer.HandleGenerateAuthDataRequest) 2022-09-01T05:42:27Z [INFO][UDM][Suci] suciPart: [suci 0 208 93 0 0 0 00007487] (/home/fujitsu/Origin-go-upf/free5gc/NFs/udm/pkg/suci/suci.go:324 github.com/free5gc/udm/pkg/suci.ToSupi) 2022-09-01T05:42:27Z [INFO][UDM][Suci] scheme 0 (/home/fujitsu/Origin-go-upf/free5gc/NFs/udm/pkg/suci/suci.go:338 github.com/free5gc/udm/pkg/suci.ToSupi) 2022-09-01T05:42:27Z [INFO][UDM][Suci] SUPI type is IMSI (/home/fujitsu/Origin-go-upf/free5gc/NFs/udm/pkg/suci/suci.go:345 github.com/free5gc/udm/pkg/suci.ToSupi) http://127.0.0.10:8000 2022-09-01T05:42:27Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest (/home/fujitsu/Origin-go-upf/free5gc/NFs/nrf/internal/sbi/producer/nf_discovery.go:23 github.com/free5gc/nrf/internal/sbi/producer.HandleNFDiscoveryRequest) 2022-09-01T05:42:27Z [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=UDM&target-nf-type=UDR | (/home/fujitsu/go/pkg/mod/github.com/free5gc/[email protected]/logger/logger.go:190 github.com/free5gc/util/logger.ginToLogrus.func1) 2022-09-01T05:42:27Z [INFO][UDR][DRepo] Handle QueryAuthSubsData (/home/fujitsu/Origin-go-upf/free5gc/NFs/udr/internal/sbi/producer/data_repository.go:288 github.com/free5gc/udr/internal/sbi/producer.HandleQueryAuthSubsData) 2022-09-01T05:42:27Z [ERRO][UDR][DRepo] QueryAuthSubsDataProcedure err: (/home/fujitsu/Origin-go-upf/free5gc/NFs/udr/internal/sbi/producer/data_repository.go:309 github.com/free5gc/udr/internal/sbi/producer.QueryAuthSubsDataProcedure) 2022-09-01T05:42:27Z [INFO][UDR][GIN] | 404 | 127.0.0.1 | GET | /nudr-dr/v1/subscription-data/imsi-2089300007487/authentication-data/authentication-subscription | (/home/fujitsu/go/pkg/mod/github.com/free5gc/[email protected]/logger/logger.go:190 github.com/free5gc/util/logger.ginToLogrus.func1) 2022-09-01T05:42:27Z [ERRO][UDM][UEAU] Return from UDR QueryAuthSubsData error (/home/fujitsu/Origin-go-upf/free5gc/NFs/udm/internal/sbi/producer/generate_auth_data.go:185 github.com/free5gc/udm/internal/sbi/producer.GenerateAuthDataProcedure) 2022-09-01T05:42:27Z [INFO][UDM][GIN] | 403 | 127.0.0.1 | POST | /nudm-ueau/v1/suci-0-208-93-0-0-0-00007487/security-information/generate-auth-data | (/home/fujitsu/go/pkg/mod/github.com/free5gc/[email protected]/logger/logger.go:190 github.com/free5gc/util/logger.ginToLogrus.func1) 2022-09-01T05:42:27Z [INFO][AUSF][UeAuthPost] 403 Forbidden (/home/fujitsu/Origin-go-upf/free5gc/NFs/ausf/internal/sbi/producer/ue_authentication.go:128 github.com/free5gc/ausf/internal/sbi/producer.UeAuthPostRequestProcedure) 2022-09-01T05:42:27Z [INFO][AUSF][GIN] | 500 | 127.0.0.1 | POST | /nausf-auth/v1/ue-authentications | (/home/fujitsu/go/pkg/mod/github.com/free5gc/[email protected]/logger/logger.go:190 github.com/free5gc/util/logger.ginToLogrus.func1) 2022-09-01T05:42:27Z [ERRO][AMF][GMM][AMF_UE_NGAP_ID:1] Nausf_UEAU Authenticate Request Failed: &{Type: Title: Status:500 Detail: Instance: Cause:AV_GENERATION_PROBLEM InvalidParams:[]} (/home/fujitsu/Origin-go-upf/free5gc/NFs/amf/internal/gmm/handler.go:1552 github.com/free5gc/amf/internal/gmm.AuthenticationProcedure) 2022-09-01T05:42:28Z [INFO][AMF][NGAP][127.0.1.1:9784] Handle Initial UE Message (/home/fujitsu/Origin-go-upf/free5gc/NFs/amf/internal/ngap/handler.go:854 github.com/free5gc/amf/internal/ngap.HandleInitialUEMessage) 2022-09-01T05:42:28Z [INFO][AMF][NGAP][127.0.1.1:9784][AMF_UE_NGAP_ID:1] Implicit Deregistration - RanUeNgapID[1] (/home/fujitsu/Origin-go-upf/free5gc/NFs/amf/internal/context/amf_ue.go:300 github.com/free5gc/amf/internal/context.(*AmfUe).AttachRanUe) 2022-09-01T05:42:28Z [INFO][LIB][FSM] Handle event[Gmm Message], transition from [Authentication] to [Authentication] (/home/fujitsu/go/pkg/mod/github.com/free5gc/[email protected]/fsm/fsm.go:95 github.com/free5gc/util/fsm.(*FSM).SendEvent) 2022-09-01T05:42:28Z [ERRO][AMF][GMM] UE state mismatch: receieve gmm message[message type 0x41] at Authentication state (/home/fujitsu/Origin-go-upf/free5gc/NFs/amf/internal/gmm/sm.go:192 github.com/free5gc/amf/internal/gmm.Authentication) ``` ## Additional context I have sent a [PR](https://github.com/free5gc/amf/pull/79).
[Bugs] AMF can not analysis NAS message when RanUE-NGAP-ID indicated by the InitialUEmessage is managed in the AMF.
https://api.github.com/repos/free5gc/free5gc/issues/394/comments
3
2022-09-02T05:42:06Z
2022-12-19T15:20:18Z
https://github.com/free5gc/free5gc/issues/394
1,359,728,960
394
[ "free5gc", "free5gc" ]
Hello everyone. I'm trying to connect free5gc with gNB and UE. While connecting i get the following errors: ![image](https://user-images.githubusercontent.com/71176172/187458635-62906bd9-7351-4549-81c0-90d1f6f1f2d1.png) What could be the problem? I checked all the parameters of the subscriber, the correctness of the NF configs too.
[Question] Integrity NIA0 is emergency
https://api.github.com/repos/free5gc/free5gc/issues/390/comments
5
2022-08-30T14:08:15Z
2023-06-15T00:52:24Z
https://github.com/free5gc/free5gc/issues/390
1,355,831,374
390
[ "free5gc", "free5gc" ]
I'm trying to add a second DN to free5gc's default configuration so UE can have 2 PDU sessions and it doesn't seem to work properly. Both UESIMTUN interfaces are correctly created on UE but on the second one (corresponding to internet2) I can't ping UPF's N3 interface <details> <summary>SMF config</summary> ```javascript info: version: 1.0.2 description: SMF initial local configuration configuration: smfName: SMF # the name of this SMF sbi: # Service-based interface information scheme: http # the protocol for sbi (http or https) registerIPv4: 10.0.123.9 # IP used to register to NRF bindingIPv4: 10.0.123.9 # IP used to bind the service port: 8000 # Port used to bind the service tls: # the local path of TLS key key: config/TLS/smf.key # SMF TLS Certificate pem: config/TLS/smf.pem # SMF TLS Private key serviceNameList: # the SBI services provided by this SMF, refer to TS 29.502 - nsmf-pdusession # Nsmf_PDUSession service - nsmf-event-exposure # Nsmf_EventExposure service - nsmf-oam # OAM service snssaiInfos: # the S-NSSAI (Single Network Slice Selection Assistance Information) list supported by this AMF - sNssai: # S-NSSAI (Single Network Slice Selection Assistance Information) sst: 1 # Slice/Service Type (uinteger, range: 0~255) sd: 010203 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF) dnnInfos: # DNN information list - dnn: internet # Data Network Name dns: # the IP address of DNS ipv4: 8.8.8.8 - dnn: internet2 # Data Network Name dns: # the IP address of DNS ipv4: 8.8.8.8 - sNssai: # S-NSSAI (Single Network Slice Selection Assistance Information) sst: 1 # Slice/Service Type (uinteger, range: 0~255) sd: 112233 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF) dnnInfos: # DNN information list - dnn: internet # Data Network Name dns: # the IP address of DNS ipv4: 8.8.8.8 plmnList: # the list of PLMN IDs that this SMF belongs to (optional, remove this key when unnecessary) - mcc: "208" # Mobile Country Code (3 digits string, digit: 0~9) mnc: "93" # Mobile Network Code (2 or 3 digits string, digit: 0~9) locality: area1 # Name of the location where a set of AMF, SMF and UPFs are located pfcp: # the IP address of N4 interface on this SMF (PFCP) addr: 10.0.140.2 userplaneInformation: # list of userplane information upNodes: # information of userplane node (AN or UPF) gNB1: # the name of the node type: AN # the type of the node (AN or UPF) UPF: # the name of the node type: UPF # the type of the node (AN or UPF) nodeID: 10.0.140.1 # the IP/FQDN of N4 interface on this UPF (PFCP) sNssaiUpfInfos: # S-NSSAI information list for this UPF - sNssai: # S-NSSAI (Single Network Slice Selection Assistance Information) sst: 1 # Slice/Service Type (uinteger, range: 0~255) sd: 010203 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF) dnnUpfInfoList: # DNN information list for this S-NSSAI - dnn: internet pools: - cidr: 10.60.0.0/16 - dnn: internet2 pools: - cidr: 10.61.0.0/16 - sNssai: # S-NSSAI (Single Network Slice Selection Assistance Information) sst: 1 # Slice/Service Type (uinteger, range: 0~255) sd: 112233 # Slice Differentiator (3 bytes hex string, range: 000000~FFFFFF) dnnUpfInfoList: # DNN information list for this S-NSSAI - dnn: internet pools: - cidr: 10.62.0.0/16 interfaces: # Interface list for this UPF - interfaceType: N3 # the type of the interface (N3 or N9) endpoints: # the IP address of this N3/N9 interface on this UPF - 10.0.130.1 networkInstance: internet # Data Network Name (DNN) - interfaceType: N3 # the type of the interface (N3 or N9) endpoints: # the IP address of this N3/N9 interface on this UPF - 10.0.130.1 networkInstance: internet2 # Data Network Name (DNN) links: # the topology graph of userplane, A and B represent the two nodes of each link - A: gNB1 B: UPF nrfUri: http://10.0.123.1:8000 # a valid URI of NRF # the kind of log output # debugLevel: how detailed to output, value: trace, debug, info, warn, error, fatal, panic # ReportCaller: enable the caller report or not, value: true or false logger: SMF: debugLevel: info ReportCaller: false NAS: debugLevel: info ReportCaller: false NGAP: debugLevel: info ReportCaller: false Aper: debugLevel: info ReportCaller: false PFCP: debugLevel: info ReportCaller: false ``` </details> <details> <summary>UPF config</summary> ```javascript version: 1.0.3 description: UPF initial local configuration # The listen IP and nodeID of the N4 interface on this UPF (Can't set to 0.0.0.0) pfcp: addr: 10.0.140.1 # IP addr for listening nodeID: 10.0.140.1 # External IP or FQDN can be reached retransTimeout: 1s # retransmission timeout maxRetrans: 3 # the max number of retransmission gtpu: forwarder: gtp5g # The IP list of the N3/N9 interfaces on this UPF # If there are multiple connection, set addr to 0.0.0.0 or list all the addresses ifList: - addr: 10.0.130.1 type: N3 # name: upf.5gc.nctu.me # ifname: gtpif # The DNN list supported by UPF dnnList: - dnn: internet # Data Network Name cidr: 10.60.0.0/24 # Classless Inter-Domain Routing for assigned IPv4 pool of UE # natifname: eth0 - dnn: internet2 # Data Network Name cidr: 10.61.0.0/24 # Classless Inter-Domain Routing for assigned IPv4 pool of UE # natifname: eth0 logger: # log output setting enable: true # true or false level: info # how detailed to output, value: trace, debug, info, warn, error, fatal, panic reportCaller: false # enable the caller report or not, value: true or false ``` </details> <details> <summary>UE</summary> ```javascript # IMSI number of the UE. IMSI = [MCC|MNC|MSISDN] (In total 15 digits) supi: 'imsi-208930000000003' # Mobile Country Code value of HPLMN mcc: '208' # Mobile Network Code value of HPLMN (2 or 3 digits) mnc: '93' # Permanent subscription key key: '8baf473f2f8fd09487cccbd7097c6862' # Operator code (OP or OPC) of the UE op: '8e27b6af0e692e750f32667a3b14605d' # This value specifies the OP type and it can be either 'OP' or 'OPC' opType: 'OPC' # Authentication Management Field (AMF) value amf: '8000' # IMEI number of the device. It is used if no SUPI is provided imei: '356938035643803' # IMEISV number of the device. It is used if no SUPI and IMEI is provided imeiSv: '4370816125816151' # List of gNB IP addresses for Radio Link Simulation gnbSearchList: - 10.0.200.1 # UAC Access Identities Configuration uacAic: mps: false mcs: false # UAC Access Control Class uacAcc: normalClass: 0 class11: false class12: false class13: false class14: false class15: false # Initial PDU sessions to be established sessions: - type: 'IPv4' apn: 'internet' slice: sst: 0x01 sd: 0x010203 - type: 'IPv4' apn: 'internet2' slice: sst: 0x01 sd: 0x010203 # Configured NSSAI for this UE by HPLMN configured-nssai: - sst: 0x01 sd: 0x010203 # Default Configured NSSAI for this UE default-nssai: - sst: 1 sd: 1 # Supported integrity algorithms by this UE integrity: IA1: true IA2: true IA3: true # Supported encryption algorithms by this UE ciphering: EA1: true EA2: true EA3: true # Integrity protection maximum data rate for user plane integrityMaxRate: uplink: 'full' downlink: 'full' ``` </details> Do you have any reference showing how it should be done?
[Bug] More than one PDU session on single UPF
https://api.github.com/repos/free5gc/free5gc/issues/388/comments
2
2022-08-27T13:29:26Z
2022-09-03T11:03:02Z
https://github.com/free5gc/free5gc/issues/388
1,353,046,240
388
[ "free5gc", "free5gc" ]
## Bug Description Free5gc webconsole come with a default username Admin and by using this username as a token header and without any password or authentication ,it's possible to leak all the information below : - Registered UEs (plmnID,ueId) - Subscriber information (AccessType,CmState,Guti,Mcc,Mnc,Dnn,PduSessionId,Sd,SmContextRef,Sst,Supi,Tac) - Tenant and User ## Steps To Reproduce - Leaking the subscriber list: ``` $ curl 'http://172.27.65.183:30500/api/subscriber' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:103.0) Gecko/20100101 Firefox/103.0' -H 'Accept: application/json' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate' -H 'Referer: http://172.27.65.183:30500/' -H 'Connection: keep-alive' -H 'X-Requested-With: XMLHttpRequest' -H 'Token: admin' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' [{"plmnID":"20893","ueId":"imsi-208930000000003"}] ``` - Using the gathered IMSI to get the Registred UE info: ``` $ curl 'http://172.27.65.183:30500/api/registered-ue-context/imsi-208930000000003' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:103.0) Gecko/20100101 Firefox/103.0' -H 'Accept: application/json' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate' -H 'X-Requested-With: XMLHttpRequest' -H 'Token: admin' -H 'Connection: keep-alive' -H 'Referer: http://172.27.65.183:30500/' [{"AccessType":"3GPP_ACCESS","CmState":"IDLE","Guti":"20893cafe0000000014","Mcc":"208","Mnc":"93","PduSessions":[{"Dnn":"internet","PduSessionId":"1","Sd":"010203","SmContextRef":"urn:uuid:d303dc78-b85a-4071-9e47-1e86e94b1773","Sst":"1"}],"Supi":"imsi-208930000000003","Tac":"000001"}] ``` - Leaking tenant information ``` $ curl 'http://172.27.65.183:30500/api/tenant' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:103.0) Gecko/20100101 Firefox/103.0' -H 'Accept: application/json' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate' -H 'X-Requested-With: XMLHttpRequest' -H 'Token: admin' -H 'Connection: keep-alive' -H 'Referer: http://172.27.65.183:30500/' [{"tenantId":"95e76759-cf0b-4c4f-8e93-393db0fbe503","tenantName":"test"} ``` - Using the gathered tenant id to get users inforamtions on a specific tenant: ``` $ curl 'http://172.27.65.183:30500/api/tenant/95e76759-cf0b-4c4f-8e93-393db0fbe503/user' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:103.0) Gecko/20100101 Firefox/103.0' -H 'Accept: application/json' -H 'Accept-Language: en-US,en;q=0.5' -H 'Accept-Encoding: gzip, deflate' -H 'X-Requested-With: XMLHttpRequest' -H 'Token: admin' -H 'Connection: keep-alive' -H 'Referer: http://172.27.65.183:30500/' [{"userId":"715d2157-66c9-4885-b57c-48211010e237","tenantId":"95e76759-cf0b-4c4f-8e93-393db0fbe503","email":"[email protected]","encryptedPassword":""}] ``` ## Environment : - free5GC Version: v3.2.1 - OS: Ubuntu 22.04 ## Risk and Impact Risk : RISK_INFRASTRUCTURE_INFO_LEAK Impact: TECH_IMPACT_INFO_DISCLOSURE ``` * Financial impact: None or not known. * Confidentiality impact: High: It is possible to an attacker to leak Registered UEs (plmnID,ueId),Subscriber information (AccessType,CmState,Guti,Mcc,Mnc,Dnn,PduSessionId,Sd,SmContextRef,Sst,Supi,Tac) , Tenant and User * Integrity impact: None or not known. * Availability impact: None or not known. CVSS Base Score: 7.5 Impact Subscore: 3.6 Exploitability Subscore: 3.9 CVSS Temporal Score: 7.5 CVSS Environmental Score: 7.5 CVSS v3 Vector: (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:X/RL:X/RC:X) https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:X/RL:X/RC:X ``` ## Proposed Fix: Consider generating a complex random token and give it an expiration date.
[Bugs] Leaking Registered UEs,Subscriber information,Tenants and User via the Free5gc webconsole without authentication
https://api.github.com/repos/free5gc/free5gc/issues/387/comments
4
2022-08-24T10:47:13Z
2023-07-20T02:13:31Z
https://github.com/free5gc/free5gc/issues/387
1,349,239,716
387
[ "free5gc", "free5gc" ]
## Describe the bug During installation of free5gc core (following: https://github.com/free5gc/free5gc/wiki/Installation), error is reported during compile of NF's: ``` verifying github.com/gin-gonic/[email protected]: checksum mismatch downloaded: h1:3U500Wp728rATEiFJtk1L7dhAbWobNDQC0Cbd4yhhdc= go.sum: h1:aMBzLJ/GMEYmv1UWs2FFTcPISLrQH2mRgL9Glz8xows= ``` Problem is reported for NF's, which are using gin library: directly specified in go.mod or indirectly via another library which is using gin package (e.g. github.com/free5gc/util). According to gin library issues, there was a checksum mismatch produced by them and later resolved: https://github.com/gin-gonic/gin/releases/tag/v1.7.4 Therefore, I would suggest usage of new version 1.7.4 (at least or higher), which is not causing those problems anymore. In case of 1.7.4 or higher gin version, compilation is successful also with higher go versions. ## To Reproduce Steps to reproduce the behavior: 1. Use Go with higher version as recommended in installation guides (e.g. 1.18.1) 2. Follow steps defined in installation guides (except go version): https://github.com/free5gc/free5gc/wiki/Installation 3. During compilation of all NF's (use 'make' without specified NF name), error shall be displayed. ## Expected behavior Compilation shall be successful for all NF's, also on higher go versions. ## Environment (please complete the following information): - free5GC Version: v3.2.1 - OS: Ubuntu 20.04.4 LTS - Kernel version: Linux 5.4.0-109-generic - go version: 1.18.1 linux/amd64
[Bugs] checksum mismatch for Gin library
https://api.github.com/repos/free5gc/free5gc/issues/386/comments
2
2022-08-22T12:25:49Z
2023-07-17T04:12:16Z
https://github.com/free5gc/free5gc/issues/386
1,346,323,969
386
[ "free5gc", "free5gc" ]
Hi all, I wrote two very simple configurations using free5GC v.3.2.1 and UERANSIM v3.2.6. - [Select UPF based on S-NSSAI](https://github.com/s5uishida/free5gc_ueransim_snssai_upf_sample_config) - [ULCL](https://github.com/s5uishida/free5gc_ueransim_ulcl_sample_config) I think that these are the basic and minimal configurations to confirm these features. For your reference.
FYI: Sample configurations - Select UPF based on S-NSSAI & ULCL
https://api.github.com/repos/free5gc/free5gc/issues/383/comments
3
2022-08-18T04:06:52Z
2022-08-18T11:02:45Z
https://github.com/free5gc/free5gc/issues/383
1,342,535,868
383
[ "free5gc", "free5gc" ]
Hello, I would have one question/suggestion regarding usage of http wrapper in internal/sbi modules. Please, could you comment suggestions (described below) and explain what is the purpose of this intermediate wrapper. Additionally, could you please let me know, if such optimization would be accepted, if we provide pull request for it. # Problem description Wrapper is used on all NF's during processing of incoming request (also for transferring relevant data from one function to another). On receipt of incoming request, following execution steps are performed: - incoming request is matched in router.go. Appropriate function is called (function with HTTP prefix, e.g HTTPAmfContext3gpp on UDR), - called HTTP function basic execution steps: - gets required values from parameters, headers or body (from gin.Context) and saves it in local variables (or directly to new HTTP request in some cases). - creates new HTTP request with http wrapper (e.g. req := httpwrapper.NewRequest...) - inserts previously retrieved values from local variables into this new request as parameters, headers or body (if not yet included in new HTTP request during creation). - calls handle function from producer module (e.g. HandleAmfContext3gpp). Function is called with new HTTP request in input. - called Handle function basic execution steps: - gets required values from input HTTP request (created with http wrapper in previous function) and saves them to local variables. - calls function, which executes business logic, so called 'final' procedure (e.g. AmfContext3gppProcedure). Function is called only with local variables in input (HTTP request is not relevant anymore in this part!) - called 'final' procedure function provides business logic based on input variables. According to defined execution steps, there are two things, which seems redundant from my point of view: - usage of wrapper: all values are already retrieved, before calling Handle function. Instead of just passing required values to Handle function, wrapper is introduced to create new HTTP request, just for the sake of transferring required variable values to Handle function. In this step I would suggest to call Handle functions with all needed variable values only (not with HTTP request). - Handle function is used for retrieving values from input HTTP request. If we would not use HTTP request as input, we don't need this part of code or special handle function. In this case we could make all processing in single function (Handle and Procedure function can be one single function). This suggestion is issued mainly because of: - Usage of http wrapper introduces additional performance cost, which is not necessary in this case. - Code is more compact without intermediate functions (Handle functions). Code is also more readable in this case. # Example To be more exact, there is example of old and new suggested code optimization. Old code (check comments for more info): ``` // Router.go calls HTTP function. Function location: internal/sbi/datarepository/api_smf_registrations_collection.go func HTTPQuerySmfRegList(c *gin.Context) { req := httpwrapper.NewRequest(c.Request, nil) // Parameter is retrieved from received Gin context and inserted to newly created HTTP request req.Params["ueId"] = c.Params.ByName("ueId") rsp := producer.HandleQuerySmfRegList(req) responseBody, err := openapi.Serialize(rsp.Body, "application/json") if err != nil { logger.DataRepoLog.Errorln(err) problemDetails := models.ProblemDetails{ Status: http.StatusInternalServerError, Cause: "SYSTEM_FAILURE", Detail: err.Error(), } c.JSON(http.StatusInternalServerError, problemDetails) } else { c.Data(rsp.Status, "application/json", responseBody) } } // HTTPQuerySmfRegList calls this function. Function location: internal/sbi/producer/data_repository.go func HandleQuerySmfRegList(request *httpwrapper.Request) *httpwrapper.Response { logger.DataRepoLog.Infof("Handle QuerySmfRegList") collName := "subscriptionData.contextData.smfRegistrations" // We are again retrieving ueId from HTTP request. This value was already defined in HTTPQuerySmfRegList function! ueId := request.Params["ueId"] // 'final' procedure function is called, but not with HTTP request! response := QuerySmfRegListProcedure(collName, ueId) if response == nil { return httpwrapper.NewResponse(http.StatusOK, nil, []map[string]interface{}{}) } else { return httpwrapper.NewResponse(http.StatusOK, nil, response) } } // 'final' function procedure - called from HandleQuerySmfRegList. Function location: internal/sbi/producer/data_repository.go func QuerySmfRegListProcedure(collName string, ueId string) *[]map[string]interface{} { // Using only input variables. Http request in not needed in this part! filter := bson.M{"ueId": ueId} smfRegList, err := mongoapi.RestfulAPIGetMany(collName, filter) if err != nil { logger.DataRepoLog.Errorf("QuerySmfRegListProcedure err: %+v", err) return nil } if smfRegList != nil { return &smfRegList } return nil } ``` New code with suggested optimization (check comments for more info): ``` // Router.go calls HTTP function. Function location: internal/sbi/datarepository/api_smf_registrations_collection.go func HTTPQuerySmfRegList(c *gin.Context) { // Retrive ueID. Additionally there is also performed validity of UeId value structure. ueID := models.VarUeId(c.Params.ByName("ueId")) if err := ueID.Valid(); err != nil { pd := models.NewProblemDetails(models.ProblemDetailsCause_MANDATORY_QUERY_PARAM_INCORRECT) pd.AppendInvalidParams(err) c.JSON(int(err.Status), pd) } // Calling httpwrapper is removed!! // Call procedure directly with UeID. Handle function is not required! response := producer.QuerySmfRegListProcedure(collName, string(ueID)) if response == nil { c.Status(http.StatusOK) return } else { c.JSON(http.StatusOK, response) return } } // HTTPQuerySmfRegList calls this function. Function location: internal/sbi/producer/data_repository.go func QuerySmfRegListProcedure(ueId string) *[]map[string]interface{} { // Define collection name, set filter... collName := "subscriptionData.contextData.smfRegistrations" filter := bson.M{"ueId": ueId} smfRegList, err := mongoapi.RestfulAPIGetMany(collName, filter) if err != nil { logger.DataRepoLog.Errorf("QuerySmfRegListProcedure err: %+v", err) return nil } if smfRegList != nil { return &smfRegList } return nil } ```
Http wrapper - usage optimization
https://api.github.com/repos/free5gc/free5gc/issues/382/comments
1
2022-08-16T12:23:30Z
2023-07-12T13:53:02Z
https://github.com/free5gc/free5gc/issues/382
1,340,273,577
382
[ "free5gc", "free5gc" ]
Unable to ping the ue after becoming idle, after the uernaism ue become idle , when trying to ping the ue to trigger paging it doesn't work , but the service request by ping using the ue IP work normally , after debugging the kernel message started showing this message ![image](https://user-images.githubusercontent.com/68382823/183452553-9b301e5d-0065-4ba6-bc89-cbcf460d7148.png)
[Bugs]Failed to send skb to unix domain socket PDR(4) (unable to ping ue after becoming idle)
https://api.github.com/repos/free5gc/free5gc/issues/381/comments
2
2022-08-08T15:18:08Z
2023-07-03T09:40:26Z
https://github.com/free5gc/free5gc/issues/381
1,332,026,319
381
[ "free5gc", "free5gc" ]
Hello, I am getting an error when trying to connect UE (uernaism ) to 5g core (free5gc) when I first installed uernasim with free5gc it worked normally, after some time this error started happening [2021-04-10 14:35:16.586] [nas] [debug] Sending PDU Session Establishment Request [2021-04-10 14:35:33.572] [nas] [warning] Retransmitting PDU Session Establishment Request due to T3580 expiry [2021-04-10 14:35:49.588] [nas] [warning] Retransmitting PDU Session Establishment Request due to T3580 expiry [2021-04-10 14:36:05.604] [nas] [warning] Retransmitting PDU Session Establishment Request due to T3580 expiry [2021-04-10 14:36:21.620] [nas] [warning] Retransmitting PDU Session Establishment Request due to T3580 expiry image ![image](https://user-images.githubusercontent.com/68382823/183451407-77a99d57-d64a-4459-95bb-6ef65c72d65d.png) after some debugging, I discovered that the upf is showing this error when starting ![image](https://user-images.githubusercontent.com/68382823/183451698-ff669a53-c4e1-417c-adce-9e7005de614a.png) can someone help?
[Bugs] Retransmitting PDU Session Establishment Request due to T3580 expiry #553
https://api.github.com/repos/free5gc/free5gc/issues/380/comments
2
2022-08-08T15:13:50Z
2022-11-28T21:28:18Z
https://github.com/free5gc/free5gc/issues/380
1,332,019,671
380
[ "free5gc", "free5gc" ]
## Describe the bug According to TS33.501 6.2.3.2 Key identification. >The next hop chaining count, NCC, represents the 3 least significant bits of this counter. With the current implementation, if the NCC value exceeds 7 after repeated XnHandover, the value will be set to more than 3 bits. ## To Reproduce I have not tested the operation, but from reading the source, it is clear that it is not in accordance with the specifications. I assume that repeating Xnhandover will cause the problem. ## Expected behavior Behave according to the specifications written below. >The next hop chaining count, NCC, represents the 3 least significant bits of this counter. ## Environment (please complete the following information): - free5GC Version: v3.2.1 - OS: Ubuntu 18.04 - Kernel version: 5.0.0-23-generic - go version go1.14.4 linux/amd64 ## Additional context I have sent a [PR](https://github.com/free5gc/amf/pull/77)
[Bugs]If XnHandover is repeated, the NCC value will overflow.
https://api.github.com/repos/free5gc/free5gc/issues/379/comments
1
2022-08-02T09:20:18Z
2022-11-01T05:08:55Z
https://github.com/free5gc/free5gc/issues/379
1,325,558,360
379
[ "free5gc", "free5gc" ]
## Issue Description `free5gc/libgtp5gnl` is used in `test_multiUPF.sh`, but go-upf uses `free5gc/go-gtp5gnl`. I think it is better to replace `free5gc/libgtp5gnl` with `free5gc/go-gtp5gnl` in this script. ### What's the version are you using v3.2.1 ### Is your feature request related to a problem? Please describe. No ### Describe the solution you'd like [Pull Request](https://github.com/free5gc/free5gc/pull/377) for the feature. ### Describe alternatives/workarounds you've considered None ### Additional context None
[Feat] Change gtp5gnl library in test_multiUPF.sh
https://api.github.com/repos/free5gc/free5gc/issues/378/comments
1
2022-08-02T04:56:43Z
2022-09-20T04:01:27Z
https://github.com/free5gc/free5gc/issues/378
1,325,286,631
378
[ "free5gc", "free5gc" ]
I've created easy way of deploying free5gc and UERANSIM - inspired by your ./test.sh script https://github.com/konradkar2/netns5g This kind of deployment is really convenient if ones only wants to inspect free5gc or UERANSIM. The big advantage over running it on localhost interface is that egress traffic gets proper IP address, so it's easy to recognize which service is sending a request. If you have any ideas to improve the project then let me know. Feel free to mention the project in your documentation if you want to. ps. Not sure whether I should place it here or somewhere else.
[Feat] Deployment using pure Linux network namespaces
https://api.github.com/repos/free5gc/free5gc/issues/376/comments
1
2022-07-30T15:40:40Z
2022-08-28T14:57:33Z
https://github.com/free5gc/free5gc/issues/376
1,323,177,465
376
[ "free5gc", "free5gc" ]
## Describe the bug AMF panics when it receives SecurityModeComplete with ServiceRequest set to the NAS message container. ## To Reproduce SecurityModeComplete is sent with SeriveRequest during the registration procedure. ## Expected behavior - If ServiceRequest is received while -Registaration is not completed, return ServiceReject. - If the ServiceRequest is received while -Registaration is completed, it is accepted. ## Environment (please complete the following information): - free5GC Version: v3.2.1 - OS: Ubuntu 18.04 - Kernel version: 5.0.0-23-generic - go version go1.14.4 linux/amd64 ## Trace File ### Log File console log ``` 2022-07-28T05:52:42Z [INFO][AMF][NGAP][127.0.1.1:9784][AMF_UE_NGAP_ID:1] Uplink NAS Transport (RAN UE NGAP ID: 1) (/home/fujitsu/Origin-go-upf/free5gc/NFs/amf/internal/ngap/handler.go:227 github.com/free5gc/amf/internal/ngap.HandleUplinkNasTransport) 2022-07-28T05:52:42Z [INFO][LIB][FSM] Handle event[Gmm Message], transition from [SecurityMode] to [SecurityMode] (/home/fujitsu/go/pkg/mod/github.com/free5gc/[email protected]/fsm/fsm.go:95 github.com/free5gc/util/fsm.(*FSM).SendEvent) 2022-07-28T05:52:42Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Handle Security Mode Complete (/home/fujitsu/Origin-go-upf/free5gc/NFs/amf/internal/gmm/handler.go:2173 github.com/free5gc/amf/internal/gmm.HandleSecurityModeComplete) 2022-07-28T05:52:42Z [INFO][LIB][FSM] Handle event[SecurityMode Success], transition from [SecurityMode] to [ContextSetup] (/home/fujitsu/go/pkg/mod/github.com/free5gc/[email protected]/fsm/fsm.go:95 github.com/free5gc/util/fsm.(*FSM).SendEvent) 2022-07-28T05:52:42Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Handle InitialRegistration (/home/fujitsu/Origin-go-upf/free5gc/NFs/amf/internal/gmm/handler.go:573 github.com/free5gc/amf/internal/gmm.HandleInitialRegistration) 2022-07-28T05:52:42Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest (/home/fujitsu/Origin-go-upf/free5gc/NFs/nrf/internal/sbi/producer/nf_discovery.go:23 github.com/free5gc/nrf/internal/sbi/producer.HandleNFDiscoveryRequest) 2022-07-28T05:52:42Z [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=AMF&supi=imsi-2089300007487&target-nf-type=UDM | (/home/fujitsu/go/pkg/mod/github.com/free5gc/[email protected]/logger/logger.go:190 github.com/free5gc/util/logger.ginToLogrus.func1) 2022-07-28T05:52:42Z [INFO][UDM][SDM] Handle GetNssai (/home/fujitsu/Origin-go-upf/free5gc/NFs/udm/internal/sbi/producer/subscriber_data_management.go:686 github.com/free5gc/udm/internal/sbi/producer.HandleGetNssaiRequest) 2022-07-28T05:52:42Z [INFO][UDR][DRepo] Handle QueryAmData (/home/fujitsu/Origin-go-upf/free5gc/NFs/udr/internal/sbi/producer/data_repository.go:62 github.com/free5gc/udr/internal/sbi/producer.HandleQueryAmData) 2022-07-28T05:52:42Z [INFO][UDR][GIN] | 200 | 127.0.0.1 | GET | /nudr-dr/v1/subscription-data/imsi-2089300007487/20893/provisioned-data/am-data?supported-features= | (/home/fujitsu/go/pkg/mod/github.com/free5gc/[email protected]/logger/logger.go:190 github.com/free5gc/util/logger.ginToLogrus.func1) 2022-07-28T05:52:42Z [INFO][UDM][GIN] | 200 | 127.0.0.1 | GET | /nudm-sdm/v1/imsi-2089300007487/nssai?plmn-id=%7B%22mcc%22%3A%22208%22%2C%22mnc%22%3A%2293%22%7D | (/home/fujitsu/go/pkg/mod/github.com/free5gc/[email protected]/logger/logger.go:190 github.com/free5gc/util/logger.ginToLogrus.func1) 2022/07/28 05:52:42 SCTP Connection for 127.0.0.1:38412 is closed panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0xbe599e] goroutine 49 [running]: github.com/free5gc/amf/internal/gmm.handleRequestedNssai(0xc0004bc000, 0xe793be, 0xb, 0x1, 0x1) /home/fujitsu/Origin-go-upf/free5gc/NFs/amf/internal/gmm/handler.go:1194 +0x3e github.com/free5gc/amf/internal/gmm.HandleInitialRegistration(0xc0004bc000, 0xe793be, 0xb, 0x1, 0x1) /home/fujitsu/Origin-go-upf/free5gc/NFs/amf/internal/gmm/handler.go:585 +0xfe github.com/free5gc/amf/internal/gmm.ContextSetup(0xc00052edb0, 0xe794e7, 0xb, 0xc0005e7140) /home/fujitsu/Origin-go-upf/free5gc/NFs/amf/internal/gmm/sm.go:302 +0x1049 github.com/free5gc/util/fsm.(*FSM).SendEvent(0xc000068860, 0xc00052edb0, 0xe8053b, 0x14, 0xc0005e7140, 0x0, 0x0) /home/fujitsu/go/pkg/mod/github.com/free5gc/[email protected]/fsm/fsm.go:108 +0x429 github.com/free5gc/amf/internal/gmm.HandleSecurityModeComplete(0xc0004bc000, 0xe793be, 0xb, 0x2e, 0xc0005f7740, 0xf0, 0x20b) /home/fujitsu/Origin-go-upf/free5gc/NFs/amf/internal/gmm/handler.go:2207 +0x423 github.com/free5gc/amf/internal/gmm.SecurityMode(0xc00052edb0, 0xe7956b, 0xb, 0xc0005e6f60) /home/fujitsu/Origin-go-upf/free5gc/NFs/amf/internal/gmm/sm.go:255 +0x809 github.com/free5gc/util/fsm.(*FSM).SendEvent(0xc000068860, 0xc00052edb0, 0xe7956b, 0xb, 0xc0005e6f60, 0xfd3000, 0xcdf160) /home/fujitsu/go/pkg/mod/github.com/free5gc/[email protected]/fsm/fsm.go:98 +0x2c6 github.com/free5gc/amf/internal/nas.Dispatch(0xc0004bc000, 0xe793be, 0xb, 0x2e, 0xc0005f76a0, 0x29, 0xc0005f76a0) /home/fujitsu/Origin-go-upf/free5gc/NFs/amf/internal/nas/dispatch.go:27 +0x29e github.com/free5gc/amf/internal/nas.HandleNAS(0xc0006ac6c0, 0x2e, 0xc00025c090, 0x2a, 0x30) /home/fujitsu/Origin-go-upf/free5gc/NFs/amf/internal/nas/handler.go:33 +0x169 github.com/free5gc/amf/internal/ngap.HandleUplinkNasTransport(0xc000690080, 0xc0005f65e0) /home/fujitsu/Origin-go-upf/free5gc/NFs/amf/internal/ngap/handler.go:233 +0x698 github.com/free5gc/amf/internal/ngap.Dispatch(0x1000620, 0xc000068350, 0xc0005fa000, 0x55, 0x2000) /home/fujitsu/Origin-go-upf/free5gc/NFs/amf/internal/ngap/dispatcher.go:49 +0x527 github.com/free5gc/amf/internal/ngap/service.handleConnection(0xc000068350, 0x2000, 0xeaf6d8, 0xeaf6e0) /home/fujitsu/Origin-go-upf/free5gc/NFs/amf/internal/ngap/service/service.go:204 +0x700 ``` ## Additional context I have sennt a [PR](https://github.com/free5gc/amf/pull/76).
[Bugs]AMF panics when it receives SecurityModeComplete with ServiceRequest set to the NAS message container.
https://api.github.com/repos/free5gc/free5gc/issues/375/comments
4
2022-07-29T05:42:23Z
2022-10-31T15:45:54Z
https://github.com/free5gc/free5gc/issues/375
1,321,786,234
375
[ "free5gc", "free5gc" ]
## Describe the bug `free5gc/pfcp` is not thread-safe. In `transaction.go`: ```go func (pfcpServer *PfcpServer) PutTransaction(tx *pfcp.Transaction) (err error) { logger.PFCPLog.Traceln("In PutTransaction") consumerAddr := tx.ConsumerAddr if _, exist := pfcpServer.ConsumerTable.Load(consumerAddr); !exist { // [1] pfcpServer.ConsumerTable.Store(consumerAddr, &pfcp.TxTable{}) // [2] } txTable, _ := pfcpServer.ConsumerTable.Load(consumerAddr) if _, exist := txTable.Load(tx.SequenceNumber); !exist { txTable.Store(tx.SequenceNumber, tx) // [3] } else { ``` Consider two threads in SMF sending requests almost at the same time, if two threads run as shown in the table below, `tx` stored in `txTable` by Thread#1 at Time=4 is removed by Thread#2 at Time=5. | Time | 1 | 2 | 3 | 4 | 5 | | ----------- | --- | --- | --- | --- | --- | | Thread#1 | [1] | | [2] | [3] | | | Thread#2 | | [1] | | | [2] | As a result, an error occurs in `FindTransaction` when the response to Thread#1's request is received. ## To Reproduce Use multiple UPFs, generate many PFCP transactions at same time. ## Expected behavior PFCP transaction management is thread-safe. ## Environment - free5GC Version: v3.2.1 - OS: Ubuntu 18.04 - Kernel version: 5.0.0-23-generic - go version go1.14.4 linux/amd64 ## Additional context [Pull Request](https://github.com/free5gc/pfcp/pull/8) for the fix.
[Bugs] PFCP transaction management is not thread-safe
https://api.github.com/repos/free5gc/free5gc/issues/374/comments
0
2022-07-28T00:37:19Z
2022-11-19T14:05:06Z
https://github.com/free5gc/free5gc/issues/374
1,320,255,188
374
[ "free5gc", "free5gc" ]
## Describe the bug If non-subscribed UEs send RegistrationRequest, AMF does not return RegistrationReject and the resource(amfUe/ranUe) will remain. ## To Reproduce Registration request before provisioning the subscriber ## Expected behavior AMF returns RegistrationReject and removes resources. ## Environment (please complete the following information): - free5GC Version: v3.2.1 - OS: Ubuntu 18.04 - Kernel version: 5.0.0-23-generic - go version go1.14.4 linux/amd64 ## Trace File ### Log File console log ``` 2022-07-27T09:47:19Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1] Handle Registration Request (/home/fujitsu/Origin-go-upf/free5gc/NFs/amf/internal/gmm/handler.go:370 github.com/free5gc/amf/internal/gmm.HandleRegistrationRequest) 2022-07-27T09:47:19Z [INFO][LIB][FSM] Handle event[Start Authentication], transition from [Deregistered] to [Authentication] (/home/fujitsu/go/pkg/mod/github.com/free5gc/[email protected]/fsm/fsm.go:95 github.com/free5gc/util/fsm.(*FSM).SendEvent) 2022-07-27T09:47:19Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1] Authentication procedure (/home/fujitsu/Origin-go-upf/free5gc/NFs/amf/internal/gmm/handler.go:1505 github.com/free5gc/amf/internal/gmm.AuthenticationProcedure) 2022-07-27T09:47:19Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest (/home/fujitsu/Origin-go-upf/free5gc/NFs/nrf/internal/sbi/producer/nf_discovery.go:23 github.com/free5gc/nrf/internal/sbi/producer.HandleNFDiscoveryRequest) 2022-07-27T09:47:19Z [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=AMF&target-nf-type=AUSF | (/home/fujitsu/go/pkg/mod/github.com/free5gc/[email protected]/logger/logger.go:190 github.com/free5gc/util/logger.ginToLogrus.func1) 2022-07-27T09:47:19Z [INFO][AUSF][UeAuthPost] HandleUeAuthPostRequest (/home/fujitsu/Origin-go-upf/free5gc/NFs/ausf/internal/sbi/producer/ue_authentication.go:64 github.com/free5gc/ausf/internal/sbi/producer.HandleUeAuthPostRequest) 2022-07-27T09:47:19Z [INFO][AUSF][UeAuthPost] Serving network authorized (/home/fujitsu/Origin-go-upf/free5gc/NFs/ausf/internal/sbi/producer/ue_authentication.go:102 github.com/free5gc/ausf/internal/sbi/producer.UeAuthPostRequestProcedure) 2022-07-27T09:47:19Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest (/home/fujitsu/Origin-go-upf/free5gc/NFs/nrf/internal/sbi/producer/nf_discovery.go:23 github.com/free5gc/nrf/internal/sbi/producer.HandleNFDiscoveryRequest) 2022-07-27T09:47:19Z [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=AUSF&service-names=nudm-ueau&target-nf-type=UDM | (/home/fujitsu/go/pkg/mod/github.com/free5gc/[email protected]/logger/logger.go:190 github.com/free5gc/util/logger.ginToLogrus.func1) 2022-07-27T09:47:19Z [INFO][UDM][UEAU] Handle GenerateAuthDataRequest (/home/fujitsu/Origin-go-upf/free5gc/NFs/udm/internal/sbi/producer/generate_auth_data.go:84 github.com/free5gc/udm/internal/sbi/producer.HandleGenerateAuthDataRequest) 2022-07-27T09:47:19Z [INFO][UDM][Suci] suciPart: [suci 0 208 93 0 0 0 00007487] (/home/fujitsu/Origin-go-upf/free5gc/NFs/udm/pkg/suci/suci.go:324 github.com/free5gc/udm/pkg/suci.ToSupi) 2022-07-27T09:47:19Z [INFO][UDM][Suci] scheme 0 (/home/fujitsu/Origin-go-upf/free5gc/NFs/udm/pkg/suci/suci.go:338 github.com/free5gc/udm/pkg/suci.ToSupi) 2022-07-27T09:47:19Z [INFO][UDM][Suci] SUPI type is IMSI (/home/fujitsu/Origin-go-upf/free5gc/NFs/udm/pkg/suci/suci.go:345 github.com/free5gc/udm/pkg/suci.ToSupi) http://127.0.0.10:8000 2022-07-27T09:47:19Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest (/home/fujitsu/Origin-go-upf/free5gc/NFs/nrf/internal/sbi/producer/nf_discovery.go:23 github.com/free5gc/nrf/internal/sbi/producer.HandleNFDiscoveryRequest) 2022-07-27T09:47:19Z [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=UDM&target-nf-type=UDR | (/home/fujitsu/go/pkg/mod/github.com/free5gc/[email protected]/logger/logger.go:190 github.com/free5gc/util/logger.ginToLogrus.func1) 2022-07-27T09:47:19Z [INFO][UDR][DRepo] Handle QueryAuthSubsData (/home/fujitsu/Origin-go-upf/free5gc/NFs/udr/internal/sbi/producer/data_repository.go:288 github.com/free5gc/udr/internal/sbi/producer.HandleQueryAuthSubsData) 2022-07-27T09:47:19Z [ERRO][UDR][DRepo] QueryAuthSubsDataProcedure err: (/home/fujitsu/Origin-go-upf/free5gc/NFs/udr/internal/sbi/producer/data_repository.go:309 github.com/free5gc/udr/internal/sbi/producer.QueryAuthSubsDataProcedure) 2022-07-27T09:47:19Z [INFO][UDR][GIN] | 404 | 127.0.0.1 | GET | /nudr-dr/v1/subscription-data/imsi-2089300007487/authentication-data/authentication-subscription | (/home/fujitsu/go/pkg/mod/github.com/free5gc/[email protected]/logger/logger.go:190 github.com/free5gc/util/logger.ginToLogrus.func1) 2022-07-27T09:47:19Z [ERRO][UDM][UEAU] Return from UDR QueryAuthSubsData error (/home/fujitsu/Origin-go-upf/free5gc/NFs/udm/internal/sbi/producer/generate_auth_data.go:185 github.com/free5gc/udm/internal/sbi/producer.GenerateAuthDataProcedure) 2022-07-27T09:47:19Z [INFO][UDM][GIN] | 403 | 127.0.0.1 | POST | /nudm-ueau/v1/suci-0-208-93-0-0-0-00007487/security-information/generate-auth-data | (/home/fujitsu/go/pkg/mod/github.com/free5gc/[email protected]/logger/logger.go:190 github.com/free5gc/util/logger.ginToLogrus.func1) 2022-07-27T09:47:19Z [INFO][AUSF][UeAuthPost] 403 Forbidden (/home/fujitsu/Origin-go-upf/free5gc/NFs/ausf/internal/sbi/producer/ue_authentication.go:128 github.com/free5gc/ausf/internal/sbi/producer.UeAuthPostRequestProcedure) 2022-07-27T09:47:19Z [INFO][AUSF][GIN] | 500 | 127.0.0.1 | POST | /nausf-auth/v1/ue-authentications | (/home/fujitsu/go/pkg/mod/github.com/free5gc/[email protected]/logger/logger.go:190 github.com/free5gc/util/logger.ginToLogrus.func1) 2022-07-27T09:47:19Z [ERRO][AMF][GMM][AMF_UE_NGAP_ID:1] Nausf_UEAU Authenticate Request Failed: &{Type: Title: Status:500 Detail: Instance: Cause:AV_GENERATION_PROBLEM InvalidParams:[]} (/home/fujitsu/Origin-go-upf/free5gc/NFs/amf/internal/gmm/handler.go:1552 github.com/free5gc/amf/internal/gmm.AuthenticationProcedure) ``` AMF did not return RegistrationReject. ## Additional context I have sent PRs - [amf](https://github.com/free5gc/amf/pull/75) - [ausf](https://github.com/free5gc/ausf/pull/7) - [udm](https://github.com/free5gc/udm/pull/14) - [udr](https://github.com/free5gc/udr/pull/6)
[Bugs]If non-subscribed UEs send RegistrationRequest, AMF does not return RegistrationReject and the resource will remain.
https://api.github.com/repos/free5gc/free5gc/issues/373/comments
1
2022-07-27T09:54:50Z
2023-08-09T03:25:43Z
https://github.com/free5gc/free5gc/issues/373
1,319,310,496
373
[ "free5gc", "free5gc" ]
## Issue Description If UPF is started after SMF, PFCP Association Setup fails. We can't aware of this failure until a PDU session establishment fails. ### What's the version are you using v3.2.1 ### Is your feature request related to a problem? Please describe. SMF sends PFCP Association Setup Request to UPF only once during its own startup. ### Describe the solution you'd like SMF retransmits PFCP Association Setup Request until it receives response. If the number of retransmissions of this request reaches maximum limit (`NumOfResend = 3` in `pfcp/transaction.go`), SMF logs it in error level and remembers the timestamp(T1). After the second time of retry-out to retransmit, if the current time is later than (T1+"Preset time interval"), SMF logs it in error level and updates the timestamp(T1). "Preset time interval" is a new item in SMF configuration. (Option, default 5m) ``` pfcp: addr: 10.200.200.1 # the IP address of N4 interface on this SMF (PFCP) associationSetupFailedAlertInterval: 5m # Interval of logging PFCP Association Setup failure ``` [Pull Request](https://github.com/free5gc/smf/pull/60) for the feature. ### Describe alternatives/workarounds you've considered None ### Additional context None
[Feat] Retry PFCP Association Setup
https://api.github.com/repos/free5gc/free5gc/issues/372/comments
0
2022-07-27T02:12:07Z
2023-06-09T01:39:14Z
https://github.com/free5gc/free5gc/issues/372
1,318,932,608
372
[ "free5gc", "free5gc" ]
## Describe the bug In PDU session establishment procedure, SMF sends PDU Session Establishment Reject to the UE when it fails to release the old PDU session with duplicated PSI by [#349](https://github.com/free5gc/free5gc/issues/349). As the issue comments say, according to "TS 24.501 5.4.5.2.5 case 12)" this release is "local release". And "local release" means "Release of a PDU session without peer-to-peer signalling between the network and the UE"(from TS 24.501 3.1 Definitions) . Therefore, in this case, I think that it is incorrect to send PDU Session Establishment Reject. I will rollback [PR#69](https://github.com/free5gc/amf/pull/69) in AMF, and modify SMF. ## To Reproduce 1. Establish PDU Session 2. Set smContext.SMContextState=4(ModificationPending) with debugger 3. Establish PDU Session with same PDU session ID in step 1 ## Expected behavior AMF sends back PDU Session Establishment Request with cause="Payload was not forwarded" to the UE. ## Environment - free5GC Version: v3.2.1 - OS: Ubuntu 18.04 - Kernel version: 5.0.0-23-generic - go version go1.14.4 linux/amd64 ## Trace File ### PCAP File [EstablishmentReject_DuplicatedPSI.zip](https://github.com/free5gc/free5gc/files/9187051/EstablishmentReject_DuplicatedPSI.zip) ## Additional context I have sent PRs * [amf](https://github.com/free5gc/amf/pull/74) * [smf](https://github.com/free5gc/smf/pull/59)
[Bugs] SMF sends PDU Session Establishment Reject to UE when it fails to release the old PDU session with duplicated PSI
https://api.github.com/repos/free5gc/free5gc/issues/371/comments
2
2022-07-26T06:21:56Z
2022-11-01T05:30:10Z
https://github.com/free5gc/free5gc/issues/371
1,317,755,000
371
[ "free5gc", "free5gc" ]
## Documentation request Last two tests from this section https://github.com/free5gc/free5gc/wiki/Test have incorrect snippets, which results in errors. ## Additional context Tested on 3.2.0 ./test_ulcl.sh -om 3 TestRegistration Usage: ./test_ulcl.sh [ TestRequestTwoPDUSessions ] /test.sh TestReSynchronisation Usage: ./test.sh [ TestRegistration | TestGUTIRegistration | TestServiceRequest | TestXnHandover | TestN2Handover | TestDeregistration | TestPDUSessionReleaseRequest | TestPaging | TestNon3GPP | TestReSynchronization | TestDuplicateRegistration | TestEAPAKAPrimeAuthentication ]
[Docs] Misaligned test snippets
https://api.github.com/repos/free5gc/free5gc/issues/370/comments
1
2022-07-24T13:26:32Z
2022-07-24T14:31:42Z
https://github.com/free5gc/free5gc/issues/370
1,315,907,646
370
[ "free5gc", "free5gc" ]
Hi, I am trying to measure the throughput of UPF alone with iperf any one help me. Thanks.
Correct way of measuring free5gc UPF throughput with iperf ?
https://api.github.com/repos/free5gc/free5gc/issues/369/comments
1
2022-07-20T18:42:10Z
2023-07-05T06:57:32Z
https://github.com/free5gc/free5gc/issues/369
1,311,685,152
369
[ "free5gc", "free5gc" ]
Hi, Want to confirm that free5gc does not support for Qos enforcement? Thanks.
Does free5gc support Qos functionality?
https://api.github.com/repos/free5gc/free5gc/issues/368/comments
1
2022-07-20T18:37:10Z
2022-07-24T14:48:24Z
https://github.com/free5gc/free5gc/issues/368
1,311,677,280
368
[ "free5gc", "free5gc" ]
I have deployed free5gc in k8s, and in my LAN, the terminal is successfully connected to the core network and can connect to the Internet. Then, the terminal can access the HTML web page on the nginx server in the local LAN, but cannot access the video on the nginx server in the local LAN. How to solve this problem. PS:The docker where UPF is located can download videos from nginx servers in the local LAN. The free5GC version I use is latest。
[Bugs]The terminal joins freee5gc and cannot download the video on the server in the LAN
https://api.github.com/repos/free5gc/free5gc/issues/367/comments
1
2022-07-20T11:04:50Z
2023-07-17T09:23:30Z
https://github.com/free5gc/free5gc/issues/367
1,310,862,206
367
[ "free5gc", "free5gc" ]
## Documentation request I want to learn if UE to UE connectivity is possible in free5gc. ## Suggestion I would really appreciate if there's some documentation on how we can enable one UE to ping another. ## Additional context None
[Docs]
https://api.github.com/repos/free5gc/free5gc/issues/366/comments
2
2022-07-19T17:22:03Z
2023-07-07T01:11:02Z
https://github.com/free5gc/free5gc/issues/366
1,309,829,498
366
[ "free5gc", "free5gc" ]
I'm trying to build free5gc _git master_ under ArchLinux (kernel module there) and GCC 12.1: ``` [ 21%] Building C object lib/utlt/CMakeFiles/free5GC_utlt.dir/src/utlt_mq.c.o ./free5gc/src/upf/lib/utlt/src/utlt_test.c: In function 'TestTerminate': ./free5gc/src/upf/lib/utlt/src/utlt_test.c:23:67: error: pointer 'it' used after 'free' [-Werror=use-after-free] 23 | for (TestNode *it = ListFirst(&testSelf.node); it != NULL; it = ListNext(it)) { /home/papa/aur/funk_sdr_gps/free5gc/src/free5gc/src/upf/lib/utlt/src/utlt_test.c:25:9: note: call to 'free' here 25 | free(it); | ^~~~~~~~ ```
[Bugs] Use-after-free in utlt_mq.c test
https://api.github.com/repos/free5gc/free5gc/issues/365/comments
1
2022-07-14T14:19:23Z
2022-11-08T06:09:50Z
https://github.com/free5gc/free5gc/issues/365
1,304,856,912
365
[ "free5gc", "free5gc" ]
For examples, there are some differences in pfcp/handler.go between new and old code.
[Bugs] why some SMF procedures are not integrated into V3.2.1?
https://api.github.com/repos/free5gc/free5gc/issues/364/comments
1
2022-07-13T00:15:41Z
2022-07-13T12:12:01Z
https://github.com/free5gc/free5gc/issues/364
1,302,743,414
364
[ "free5gc", "free5gc" ]
Hello, I tried to replace the AUSF of OAI with the AUSF of Free5GC, but the terminal could not access it, so the problem occurred The free5GC version I use is 3.0.6。 2022-07-06T13:53:47Z [ERRO][AMF][GMM][AMF_UE_NGAP_ID:3] Nausf_UEAU Authenticate Request Error: 404 is not a valid status code in UeAuthenticationsPost
[Bugs]Nausf_UEAU Authenticate Request Error: 404 is not a valid status code in UeAuthenticationsPost
https://api.github.com/repos/free5gc/free5gc/issues/363/comments
1
2022-07-07T15:57:32Z
2023-07-28T05:26:06Z
https://github.com/free5gc/free5gc/issues/363
1,297,689,352
363
[ "free5gc", "free5gc" ]
I have tried to realize multiple UPF. Can free5gc support multiple SMF or AMF。
[Bugs]Can free5gc support multiple SMF or AMF
https://api.github.com/repos/free5gc/free5gc/issues/362/comments
2
2022-07-07T15:57:22Z
2022-11-28T20:40:15Z
https://github.com/free5gc/free5gc/issues/362
1,297,689,118
362
[ "free5gc", "free5gc" ]
## Describe the bug The aggregate maximum bit rate (AMBR) configurations on UE registration info (web console) may have wrong unit. I set UL/DL AMBR of UE to 2 **Mbps** through web console, then test the bandwidth with iper3. The average bandwidth of iperf3 is about 16 Mbits/sec (2 **MBytes/sec**). I think the unit of AMBR configuration may be fixed to MB/sec ? ## To Reproduce Steps to reproduce the behavior: 1. Config UE UL/DL AMBR to 2 Mbps through web console (See the first screenshot on ##Screenshots) 2. Use iperf3 connect to iper3 server (client and server at same local network), select uesimtun0 as client interface ``` # iperf3 Server iperf3 -s # UE iperf3 -c <iperf3-server ip> -B <uesimtun0 ip> -t 15 ``` ## Expected behavior The bitrate should be limited to less than 2 Mbits/sec. ## Screenshots * Web console config ![image](https://user-images.githubusercontent.com/90389266/177339687-46c71708-5d94-421a-9c9f-3772e7546c88.png) * Iperf3 result ![image](https://user-images.githubusercontent.com/90389266/177340397-e8518778-0b93-4ffc-a6e5-d18a95a99b37.png) ## Environment (please complete the following information): - free5GC Version: v3.1.1 - OS: Ubuntu 20.04.4-server - Kernel version: 5.4.0-121-generic - go version: 1.15.8 linux/amd64 - c compiler version (Option): 9.4.0 ## System architecture (Option) OpenStack initiates two VMs, one as free5GC core network and another as UERANSIM. ## Additional context The free5GC environment setup follows the [installation guideline](https://www.free5gc.org/installations/stage-3-sim-install-tw/) on free5GC website.
[Bugs] Wrong unit of AMBR on UE registration info (web console)
https://api.github.com/repos/free5gc/free5gc/issues/360/comments
4
2022-07-05T13:57:04Z
2022-11-19T14:08:34Z
https://github.com/free5gc/free5gc/issues/360
1,294,340,966
360
[ "free5gc", "free5gc" ]
I would like you to introduce Dependabot and update the version of the go module and yarn package. https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-supply-chain-security#what-is-dependabot
[Feat] Introducing Dependabot
https://api.github.com/repos/free5gc/free5gc/issues/359/comments
1
2022-07-05T01:13:49Z
2023-07-10T08:30:50Z
https://github.com/free5gc/free5gc/issues/359
1,293,673,099
359
[ "free5gc", "free5gc" ]
## Describe the bug 2022-06-27T12:28:20Z [INFO][UPF][Util] Config: /free5gc/config/upfcfg.yaml 2022-06-27T12:28:20Z [INFO][UPF][Util] UPF config version [1.0.0] 2022-06-27T12:28:20Z [INFO][UPF][Util] Set log level: info 2022-06-27T12:28:20Z [INFO][UPF][Util] DNN routes added, main routing table: 2022-06-27T12:28:20Z [INFO][UPF][Util] DstIp Gateway Iface Priority RtProto Type 2022-06-27T12:28:20Z [INFO][UPF][Util] 169.254.1.1 /32 0.0.0.0 eth0 0 boot unicast 2022-06-27T12:28:20Z [INFO][UPF][Util] 60.62.0.0 /16 0.0.0.0 upfgtp 0 static unicast 2022-06-27T12:28:20Z [INFO][UPF][Util] 60.61.0.0 /16 0.0.0.0 upfgtp 0 static unicast 2022-06-27T12:28:20Z [INFO][UPF][Util] 60.60.0.0 /16 0.0.0.0 upfgtp 0 static unicast 2022-06-27T12:28:20Z [INFO][UPF][Util] 0.0.0.0 /0 169.254.1.1 eth0 0 boot unicast 2022-06-27T12:28:35Z [INFO][UPF][Util] [PFCP] Handle PFCP association setup request 2022-06-27T12:28:35Z [INFO][UPF][Util] [PFCP] Association Setup Response 2022-06-27T12:29:18Z [ERRO][UPF][Util] Epoll Wait Error : Interrupted system call 2022-06-27T12:29:18Z [ERRO][UPF][Util] Epoll Wait error : Interrupted system call 2022-06-27T12:29:18Z [ERRO][UPF][Util] Epoll Wait Error : Interrupted system call 2022-06-27T12:29:18Z [ERRO][UPF][Util] Epoll Wait error : Interrupted system call 2022-06-27T12:29:18Z [ERRO][UPF][Util] Epoll Wait Error : Interrupted system call 2022-06-27T12:29:18Z [ERRO][UPF][Util] Epoll Wait error : Interrupted system call ubuntu18.04 core : 5.0.0-23-generic free5GC version : v3.0.6
UPF error Epoll Wait error : Interrupted system call
https://api.github.com/repos/free5gc/free5gc/issues/358/comments
3
2022-06-27T08:38:04Z
2022-07-01T16:05:44Z
https://github.com/free5gc/free5gc/issues/358
1,285,449,546
358
[ "free5gc", "free5gc" ]
## Describe the bug SMF panics when dnn in SmContextCreateData doesn't match any of DNs connected with UPFs. ## To Reproduce 1. Change SMF config according to the below "Trace File" section 2. Send PDU Session Establishmen Request with dnn="internet" ## Expected behavior SMF sends back PDU Session Establishment Reject. ## Environment - free5GC Version: v3.1.1 - OS: Ubuntu 18.04 - Kernel version: 5.0.0-23-generic - go version go1.14.4 linux/amd64 ## Trace File ### Configuration File * smfcfg.yaml ``` snssaiInfos: - sNssai: sst: 1 sd: 010203 dnnInfos: - dnn: internet ... - dnn: intranet # Add ... userplaneInformation: upNodes: ... UPF: type: UPF nodeID: 10.200.200.101 sNssaiUpfInfos: - sNssai: sst: 1 sd: 010203 dnnUpfInfoList: - dnn: intranet # Change from "internet" ... interfaces: - interfaceType: N3 ... networkInstance: intranet # Change from "internet" ``` ### Log File ``` 2022-06-27T06:35:45Z [INFO][SMF][PduSess] Receive Create SM Context Request (/home/fujitsu/github/free5gc/NFs/smf/internal/sbi/pdusession/api_sm_contexts_collection.go:27 github.com/free5gc/smf/internal/sbi/pdusession.HTTPPostSmContexts) 2022-06-27T06:35:45Z [INFO][SMF][PduSess] In HandlePDUSessionSMContextCreate (/home/fujitsu/github/free5gc/NFs/smf/internal/sbi/producer/pdu_session.go:29 github.com/free5gc/smf/internal/sbi/producer.HandlePDUSessionSMContextCreate) 2022-06-27T06:35:45Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest (/home/fujitsu/github/free5gc/NFs/nrf/internal/sbi/producer/nf_discovery.go:23 github.com/free5gc/nrf/internal/sbi/producer.HandleNFDiscoveryRequest) 2022-06-27T06:35:45Z [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=SMF&target-nf-type=UDM | (/home/fujitsu/go/pkg/mod/github.com/free5gc/[email protected]/logger/logger.go:190 github.com/free5gc/util/logger.ginToLogrus.func1) 2022-06-27T06:35:45Z [INFO][SMF][PduSess] Send NF Discovery Serving UDM Successfully (/home/fujitsu/github/free5gc/NFs/smf/internal/sbi/producer/pdu_session.go:76 github.com/free5gc/smf/internal/sbi/producer.HandlePDUSessionSMContextCreate) 2022-06-27T06:35:45Z [ERRO][SMF][GIN] panic: invalid argument to Intn goroutine 58 [running]: runtime/debug.Stack(0xc0001d6cd8, 0xc38d20, 0xedbaf0) /usr/local/go/src/runtime/debug/stack.go:24 +0x9d github.com/free5gc/util/logger.ginRecover.func1.1(0xc000111e30, 0xc00021c500) /home/fujitsu/go/pkg/mod/github.com/free5gc/[email protected]/logger/logger.go:212 +0x27a panic(0xc38d20, 0xedbaf0) /usr/local/go/src/runtime/panic.go:969 +0x166 math/rand.(*Rand).Intn(0xc00019a000, 0x0, 0x1) /usr/local/go/src/math/rand/rand.go:169 +0x9c math/rand.Intn(...) /usr/local/go/src/math/rand/rand.go:337 github.com/free5gc/smf/internal/context.createUPFListForSelection(...) /home/fujitsu/github/free5gc/NFs/smf/internal/context/user_plane_information.go:579 github.com/free5gc/smf/internal/context.(*UserPlaneInformation).SelectUPFAndAllocUEIP(0xc000190380, 0xc0001d74b8, 0xc0001d72d8, 0x1, 0x1, 0x0) /home/fujitsu/github/free5gc/NFs/smf/internal/context/user_plane_information.go:549 +0xdd github.com/free5gc/smf/internal/sbi/producer.HandlePDUSessionSMContextCreate(0xc00055e240, 0xc000332c00, 0x14, 0x3e8, 0x0) /home/fujitsu/github/free5gc/NFs/smf/internal/sbi/producer/pdu_session.go:99 +0x23f1 ``` ## Additional context [Pull Request](https://github.com/free5gc/smf/pull/56) for the fix.
[Bugs] SMF panics when no anchor UPF selected
https://api.github.com/repos/free5gc/free5gc/issues/357/comments
1
2022-06-27T07:23:33Z
2022-06-28T04:47:26Z
https://github.com/free5gc/free5gc/issues/357
1,285,366,615
357
[ "free5gc", "free5gc" ]
## Describe the bug This bug appeared in 3.0.4, it was fixed in 3.0.5, and now the bug reappears. I set the domain mane of UPF in the endpoints of smfcfg.yaml, SMF will not be able to connect to UPF, if I change it to an IP address, I can connect successfully. ## Environment (please complete the following information): - free5GC Version: 3.1.0 - OS: ubuntu 20.04 on kubenetes 1.18.5 ### Log File ``` 2022-06-23T08:22:38Z [INFO][SMF][CFG] SMF config version [1.0.2] 2022-06-23T08:22:38Z [INFO][SMF][CFG] UE-Routing config version [1.0.1] 2022-06-23T08:22:38Z [ERRO][SMF][CFG] Invalid endpoint:free5gc-upf-svc, should be IPv4. 2022-06-23T08:22:38Z [ERRO][SMF][CFG] [-- PLEASE REFER TO SAMPLE CONFIG FILE COMMENTS --] 2022-06-23T08:22:38Z [ERRO][SMF][App] SMF Run error: Failed to initialize !! ```
[Bugs]SMF cannot connect to upf with Domain name
https://api.github.com/repos/free5gc/free5gc/issues/355/comments
1
2022-06-23T08:41:46Z
2022-07-04T10:45:11Z
https://github.com/free5gc/free5gc/issues/355
1,282,034,810
355
[ "free5gc", "free5gc" ]
## Describe the bug AMF panics when smContext doesn't exist". ## To Reproduce 1. Establish PDU Session with **PSI=10** 2. UE Context Release 3. Send Service Request 4. Receive Service Accept/Initial Context Setup Request 5. Send Initial Context Setup Response PDU Session Resource Setup Response List in the message includes **PSI=11** ## Expected behavior AMF doesn't panic and ignores unknown PSI. ## Environment - free5GC Version: v3.1.1 - OS: Ubuntu 18.04 - Kernel version: 5.0.0-23-generic - go version go1.14.4 linux/amd64 ## Trace File ### Log File ``` 2022-06-23T00:10:56Z [INFO][AMF][NGAP][127.0.1.1:9784][AMF_UE_NGAP_ID:2] Handle Initial Context Setup Response (/home/fujitsu/github/free5gc/NFs/amf/internal/ngap/handler.go:1660 github.com/free5gc/amf/internal/ngap.HandleInitialContextSetupResponse) 2022-06-23T00:10:56Z [ERRO][AMF][NGAP][127.0.1.1:9784][AMF_UE_NGAP_ID:2] SmContext[PDU Session ID:11] not found (/home/fujitsu/github/free5gc/NFs/amf/internal/ngap/handler.go:1670 github.com/free5gc/amf/internal/ngap.HandleInitialContextSetupResponse) 2022/06/23 00:10:56 SCTP Connection for 127.0.0.1:38412 is closed panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xa6fe3b] goroutine 4 [running]: github.com/free5gc/amf/internal/context.(*SmContext).SmfUri(0x0, 0x0, 0x0) /home/fujitsu/github/free5gc/NFs/amf/internal/context/sm_context.go:148 +0x3b github.com/free5gc/amf/internal/sbi/consumer.SendUpdateSmContextRequest(0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /home/fujitsu/github/free5gc/NFs/amf/internal/sbi/consumer/sm_context.go:405 +0x108 github.com/free5gc/amf/internal/sbi/consumer.SendUpdateSmContextN2Info(0xc0001ec000, 0x0, 0xe7de4d, 0x11, 0xc00020d800, 0xd, 0x10, 0xc0001ec000, 0x52, 0x60, ...) /home/fujitsu/github/free5gc/NFs/amf/internal/sbi/consumer/sm_context.go:259 +0x140 github.com/free5gc/amf/internal/ngap.HandleInitialContextSetupResponse(0xc0002d6080, 0xc0003093c0) /home/fujitsu/github/free5gc/NFs/amf/internal/ngap/handler.go:1673 +0x919 ``` ## Additional context [Pull Request](https://github.com/free5gc/amf/pull/72) for the fix.
[Bugs] AMF panics when smContext doesn't exist
https://api.github.com/repos/free5gc/free5gc/issues/354/comments
2
2022-06-23T05:25:15Z
2022-07-07T08:12:10Z
https://github.com/free5gc/free5gc/issues/354
1,281,788,953
354
[ "free5gc", "free5gc" ]
### Describe the bug Unable to connect to n3iwf using a UE by non-3gpp ### Environment: free5GC Version: v3.1.1 OS: ubuntu18.04 UE: Iused the following UE "[https://github.com/my5G/my5G-non3GPP-access]to connect to free5gc n3iwf; ### report an error trying to trigger_initial_registration.sh,but n3iwf show Unmarshalling EAP-5G packet failed: Unmatched GUAMI length ; Note: The connection between n3iwf and free5gc is normal; ![2022-05-12 16-15-29 的屏幕截图](https://user-images.githubusercontent.com/74893464/174822324-c1d5a884-6804-4bd0-b371-5f9ebc9e2ad9.png) who can give me some advice, I would be very grateful!
Unable to connect to n3iwf using a UE by non-3gpp
https://api.github.com/repos/free5gc/free5gc/issues/353/comments
6
2022-06-21T14:20:00Z
2024-01-26T09:44:05Z
https://github.com/free5gc/free5gc/issues/353
1,278,525,233
353
[ "free5gc", "free5gc" ]
## Describe the bug In case of not received supported-features query parameter from AMF or SMF, UDM includes empty query parameter in request URI path. Problem was detected in several API calls: - /nudr-dr/v1/subscription-data/ueId/plmnId/provisioned-data/am-data - /nudr-dr/v1/subscription-data/ueId/plmnId/provisioned-data/smf-selection-subscription-data - /nudr-dr/v1/subscription-data/ueId/context-data/smf-registrations Problematic case: - /nudr-dr/v1/subscription-data/ueId/plmnId/provisioned-data/am-data?supported-features= - /nudr-dr/v1/subscription-data/ueId/plmnId/provisioned-data/smf-selection-subscription-data?supported-features= - /nudr-dr/v1/subscription-data/ueId/context-data/smf-registrations?supported-features= This could also occur on other API calls and query parameters. ## To Reproduce Needed AMF/SMF that is sending following requests to UDM without supported-features query parameter (at least for detected problems): - /nudm-sdm/v1/ueId/am-data - /nudm-sdm/v1/ueId/smf-select-data - /nudm-sdm/v1/ueId/ue-context-in-smf-data ## Expected behavior Optional query parameters shall not be included in API request path, if are empty. This is not strictly specified by any standard, but it is good pattern to avoid possible errors on server side, if it is not expecting key:value pairs without value. It is suggested to add additional check, if value exists, to openapi library, for all query parameters with type optional.String. Current isSet will not cover the case with empty string. Example without check: ``` if localVarOptionals != nil && localVarOptionals.SupportedFeatures.IsSet() { localVarQueryParams.Add("supported-features", openapi.ParameterToString(localVarOptionals.SupportedFeatures.Value(), "")) } ``` Example with additional value check: ``` if localVarOptionals != nil && localVarOptionals.SupportedFeatures.IsSet() && localVarOptionals.SupportedFeatures.Value() != "" { localVarQueryParams.Add("supported-features", openapi.ParameterToString(localVarOptionals.SupportedFeatures.Value(), "")) } ``` ## Environment (please complete the following information): - openapi Version: v1.0.4 - OS: Ubuntu 20.04.4 LTS - Kernel version: Linux 5.4.0-109-generic - go version: 1.18.1 linux/amd64 ## Trace File ### PCAP File Part of trace file with problematic flow (plaint text): [supp_feature_bug.txt](https://github.com/free5gc/free5gc/files/8900768/supp_feature_bug.txt) ## Additional context [PR](https://github.com/free5gc/openapi/pull/6)
[Bugs] Optional Query parameters with empty values are included in API path (supported-features)
https://api.github.com/repos/free5gc/free5gc/issues/352/comments
1
2022-06-14T14:57:45Z
2022-06-22T01:15:11Z
https://github.com/free5gc/free5gc/issues/352
1,270,940,211
352
[ "free5gc", "free5gc" ]
## Describe the bug Fail TestPaging in newer kernel ## To Reproduce Steps to reproduce the behavior: 1. run `./test.sh -o TestPaging` ## Environment (please complete the following information): - free5GC Version: 081a1f95ebb085518d3dbeea30ee121da8a3c83a - gtp5g Version: https://github.com/free5gc/gtp5g/commit/14db878dc9b5aa9b9360ee69ab807fdcbb63a701 - OS: Ubuntu 20.04.4 LTS - Kernel version: 5.13.0-48-generic - go version: 1.18 - c compiler version (Option): 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1) ### Log File ``` nishi@GTP-U:~/free5gc-deb/free5gc$ ./test.sh -o TestPaging 2022-06-14T09:35:43+09:00 [INFO][UPF][Util] UPF log: /home/nishi/free5gc-deb/free5gc/NFs/upf/build/log/upf.log 2022-06-14T09:35:43+09:00 [INFO][UPF][Util] Config: /home/nishi/free5gc-deb/free5gc/NFs/upf/build/config/upfcfg.test.yaml tcpdump: listening on any, link-type LINUX_SLL (Linux cooked v1), capture size 262144 bytes tcpdump: listening on lo, link-type EN10MB (Ethernet), capture size 262144 bytes 2022-06-14T09:35:43+09:00 [INFO][UPF][Util] UPF config version [1.0.0] 2022-06-14T09:35:43+09:00 [INFO][UPF][Util] Set log level: info 2022-06-14T09:35:43+09:00 [INFO][UPF][Util] DNN routes added, main routing table: 2022-06-14T09:35:43+09:00 [INFO][UPF][Util] DstIp Gateway Iface Priority RtProto Type 2022-06-14T09:35:43+09:00 [INFO][UPF][Util] 10.200.200.0 /24 0.0.0.0 veth1 0 kernel unicast 2022-06-14T09:35:43+09:00 [INFO][UPF][Util] 10.60.0.0 /16 0.0.0.0 upfgtp 0 static unicast Run TestPaging 2022-06-14T09:36:08+09:00 [INFO][NRF][CFG] config version [1.0.1] 2022-06-14T09:36:08+09:00 [INFO][AMF][CFG] config version [1.0.3] 2022-06-14T09:36:08+09:00 [INFO][SMF][CFG] SMF config version [1.0.2] 2022-06-14T09:36:08+09:00 [INFO][SMF][CFG] UE-Routing config version [1.0.1] 2022-06-14T09:36:08+09:00 [INFO][UDR][CFG] config version [1.0.1] 2022-06-14T09:36:08+09:00 [INFO][PCF][CFG] config version [1.0.1] 2022-06-14T09:36:08+09:00 [INFO][UDM][CFG] config version [1.0.2] 2022-06-14T09:36:08+09:00 [INFO][NSSF][CFG] config version [1.0.1] 2022-06-14T09:36:08+09:00 [INFO][AUSF][CFG] config version [1.0.2] 2022-06-14T09:36:08+09:00 [INFO][NRF][Init] NRF Log level is set to [info] level 2022-06-14T09:36:08+09:00 [INFO][NRF][Init] Server started 2022-06-14T09:36:08+09:00 [INFO][NRF][Init] nrfconfig Info: Version[1.0.1] Description[NRF initial test configuration] 2022-06-14T09:36:08+09:00 [INFO][NRF][Init] Binding addr: [127.0.0.10:8000] 2022-06-14T09:36:08+09:00 [INFO][AMF][Init] AMF Log level is set to [info] level 2022-06-14T09:36:08+09:00 [INFO][LIB][NAS] set log level : info 2022-06-14T09:36:08+09:00 [INFO][LIB][NAS] set report call : false 2022-06-14T09:36:08+09:00 [INFO][LIB][NGAP] set log level : info 2022-06-14T09:36:08+09:00 [INFO][LIB][NGAP] set report call : false 2022-06-14T09:36:08+09:00 [INFO][LIB][FSM] set log level : info 2022-06-14T09:36:08+09:00 [INFO][LIB][FSM] set report call : false 2022-06-14T09:36:08+09:00 [INFO][LIB][Aper] set log level : info 2022-06-14T09:36:08+09:00 [INFO][LIB][Aper] set report call : false 2022-06-14T09:36:08+09:00 [INFO][AMF][Init] Server started 2022-06-14T09:36:08+09:00 [INFO][AMF][Util] amfconfig Info: Version[1.0.3] Description[AMF initial test configuration] 2022-06-14T09:36:08+09:00 [INFO][AMF][NGAP] Listen on 127.0.0.1:38412 2022-06-14T09:36:08+09:00 [INFO][NRF][MGMT] Handle NFRegisterRequest 2022-06-14T09:36:08+09:00 [INFO][NRF][MGMT] urilist create 2022-06-14T09:36:08+09:00 [INFO][NRF][MGMT] Create NF Profile 2022-06-14T09:36:08+09:00 [INFO][NRF][MGMT] Location header: http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/8bf8f918-fbc2-4b04-ab6f-1531e63d557c 2022-06-14T09:36:08+09:00 [INFO][NRF][GIN] | 201 | 127.0.0.1 | PUT | /nnrf-nfm/v1/nf-instances/8bf8f918-fbc2-4b04-ab6f-1531e63d557c | 2022-06-14T09:36:08+09:00 [INFO][SMF][Init] SMF Log level is set to [info] level 2022-06-14T09:36:08+09:00 [INFO][LIB][NAS] set log level : info 2022-06-14T09:36:08+09:00 [INFO][LIB][NAS] set report call : false 2022-06-14T09:36:08+09:00 [INFO][LIB][NGAP] set log level : info 2022-06-14T09:36:08+09:00 [INFO][LIB][NGAP] set report call : false 2022-06-14T09:36:08+09:00 [INFO][LIB][Aper] set log level : info 2022-06-14T09:36:08+09:00 [INFO][LIB][Aper] set report call : false 2022-06-14T09:36:08+09:00 [INFO][LIB][PFCP] set log level : info 2022-06-14T09:36:08+09:00 [INFO][LIB][PFCP] set report call : false 2022-06-14T09:36:08+09:00 [INFO][SMF][CTX] smfconfig Info: Version[1.0.2] Description[SMF initial single test configuration] 2022-06-14T09:36:08+09:00 [INFO][SMF][CTX] Endpoints: [10.200.200.102] 2022-06-14T09:36:08+09:00 [INFO][SMF][Init] Server started 2022-06-14T09:36:08+09:00 [INFO][NRF][MGMT] Handle NFRegisterRequest 2022-06-14T09:36:08+09:00 [INFO][NRF][MGMT] urilist create 2022-06-14T09:36:08+09:00 [INFO][NRF][MGMT] Create NF Profile 2022-06-14T09:36:08+09:00 [INFO][NRF][MGMT] Location header: http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/108f90ab-49aa-47af-9ae2-bca04e1dd3ce 2022-06-14T09:36:08+09:00 [INFO][NRF][GIN] | 201 | 127.0.0.1 | PUT | /nnrf-nfm/v1/nf-instances/108f90ab-49aa-47af-9ae2-bca04e1dd3ce | 2022-06-14T09:36:08+09:00 [INFO][SMF][Init] SMF Registration to NRF {108f90ab-49aa-47af-9ae2-bca04e1dd3ce SMF REGISTERED 0 0xc000360fc0 0xc000360ff0 [] [] [127.0.0.2] [] <nil> [] [] <nil> 0 0 0 <nil> <nil> <nil> <nil> 0xc0003b8c00 <nil> <nil> <nil> <nil> <nil> map[] <nil> false 0xc000360eb8 false false []} 2022-06-14T09:36:08+09:00 [INFO][SMF][PFCP] Listen on 10.200.200.1:8805 2022-06-14T09:36:08+09:00 [INFO][SMF][App] Sending PFCP Association Request to UPF[10.200.200.101] 2022-06-14T09:36:08+09:00 [INFO][UPF][Util] [PFCP] Handle PFCP association setup request 2022-06-14T09:36:08+09:00 [INFO][UPF][Util] [PFCP] Association Setup Response 2022-06-14T09:36:08+09:00 [INFO][LIB][PFCP] Remove Request Transaction [1] 2022-06-14T09:36:08+09:00 [INFO][SMF][App] Received PFCP Association Setup Accepted Response from UPF[10.200.200.101] 2022-06-14T09:36:08+09:00 [INFO][SMF][App] UPF(10.200.200.101)[{internet}] setup association 2022-06-14T09:36:08+09:00 [INFO][UDR][Init] UDR Log level is set to [info] level 2022-06-14T09:36:08+09:00 [INFO][UDR][Init] UDR Config Info: Version[1.0.1] Description[UDR initial test configuration] 2022-06-14T09:36:08+09:00 [INFO][UDR][Init] Server started 2022-06-14T09:36:08+09:00 [INFO][UDR][Util] udrconfig Info: Version[1.0.1] Description[UDR initial test configuration] 2022-06-14T09:36:08+09:00 [INFO][NRF][MGMT] Handle NFRegisterRequest 2022-06-14T09:36:08+09:00 [INFO][NRF][MGMT] urilist create 2022-06-14T09:36:08+09:00 [INFO][NRF][MGMT] Create NF Profile 2022-06-14T09:36:08+09:00 [INFO][NRF][MGMT] Location header: http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/56b204c2-f1fa-4e46-9a23-f39189db9202 2022-06-14T09:36:08+09:00 [INFO][NRF][GIN] | 201 | 127.0.0.1 | PUT | /nnrf-nfm/v1/nf-instances/56b204c2-f1fa-4e46-9a23-f39189db9202 | 2022-06-14T09:36:09+09:00 [INFO][PCF][Init] PCF Log level is set to [info] level 2022-06-14T09:36:09+09:00 [INFO][PCF][Init] Server started 2022-06-14T09:36:09+09:00 [INFO][PCF][Util] pcfconfig Info: Version[1.0.1] Description[PCF initial test configuration] 2022-06-14T09:36:09+09:00 [INFO][NRF][MGMT] Handle NFRegisterRequest 2022-06-14T09:36:09+09:00 [INFO][NRF][MGMT] urilist create 2022-06-14T09:36:09+09:00 [INFO][NRF][MGMT] Create NF Profile 2022-06-14T09:36:09+09:00 [INFO][NRF][MGMT] Location header: http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/60998329-eec2-4dcf-813d-b6c8f52e3dbc 2022-06-14T09:36:09+09:00 [INFO][NRF][GIN] | 201 | 127.0.0.1 | PUT | /nnrf-nfm/v1/nf-instances/60998329-eec2-4dcf-813d-b6c8f52e3dbc | 2022-06-14T09:36:09+09:00 [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2022-06-14T09:36:09+09:00 [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=PCF&service-names=nudr-dr&target-nf-type=UDR | 2022-06-14T09:36:09+09:00 [INFO][UDM][Init] UDM Log level is set to [info] level 2022-06-14T09:36:09+09:00 [INFO][UDM][Init] UDM Config Info: Version[1.0.2] Description[UDM initial test configuration] 2022-06-14T09:36:09+09:00 [INFO][UDM][Init] Server started 2022-06-14T09:36:09+09:00 [INFO][UDM][Util] udmconfig Info: Version[1.0.2] Description[UDM initial test configuration] 2022-06-14T09:36:09+09:00 [INFO][NRF][MGMT] Handle NFRegisterRequest 2022-06-14T09:36:09+09:00 [INFO][NRF][MGMT] urilist create 2022-06-14T09:36:09+09:00 [INFO][NRF][MGMT] Create NF Profile 2022-06-14T09:36:09+09:00 [INFO][NRF][MGMT] Location header: http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/eaea95cb-efa4-4ff5-b9a3-e72109caaad1 2022-06-14T09:36:09+09:00 [INFO][NRF][GIN] | 201 | 127.0.0.1 | PUT | /nnrf-nfm/v1/nf-instances/eaea95cb-efa4-4ff5-b9a3-e72109caaad1 | 2022-06-14T09:36:09+09:00 [INFO][NSSF][Init] NSSF Log level is set to [info] level 2022-06-14T09:36:09+09:00 [INFO][NSSF][Init] Server started 2022-06-14T09:36:09+09:00 [INFO][NRF][MGMT] Handle NFRegisterRequest 2022-06-14T09:36:09+09:00 [INFO][NRF][MGMT] urilist create 2022-06-14T09:36:09+09:00 [INFO][NRF][MGMT] Create NF Profile 2022-06-14T09:36:09+09:00 [INFO][NRF][MGMT] Location header: http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/0d590599-bccd-48eb-a24c-eadd81cbcad3 2022-06-14T09:36:09+09:00 [INFO][NRF][GIN] | 201 | 127.0.0.1 | PUT | /nnrf-nfm/v1/nf-instances/0d590599-bccd-48eb-a24c-eadd81cbcad3 | 2022-06-14T09:36:09+09:00 [INFO][AUSF][Init] AUSF Log level is set to [info] level 2022-06-14T09:36:09+09:00 [INFO][AUSF][Init] Server started 2022-06-14T09:36:09+09:00 [INFO][AUSF][Init] ausfconfig Info: Version[1.0.2] Description[AUSF initial test configuration] ausf context = &{{{0 0} {<nil>} map[] 0} {{0 0} {<nil>} map[] 0} 24cf1709-22c7-4d2b-970f-4961c391a2f1 ausfGroup001 8000 127.0.0.9 127.0.0.9 http://127.0.0.9:8000 http http://127.0.0.10:8000 map[nausf-auth:{24cf1709-22c7-4d2b-970f-4961c391a2f1 nausf-auth 0xc00059bd58 http REGISTERED 0xc00059bd40 [] <nil> [] [] <nil> 0 0 0 <nil> <nil> }] [{208 93} {123 45}] 0xc0008ac460 false} 2022-06-14T09:36:09+09:00 [INFO][NRF][MGMT] Handle NFRegisterRequest 2022-06-14T09:36:09+09:00 [INFO][NRF][MGMT] urilist create 2022-06-14T09:36:09+09:00 [INFO][NRF][MGMT] Create NF Profile 2022-06-14T09:36:09+09:00 [INFO][NRF][MGMT] Location header: http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/24cf1709-22c7-4d2b-970f-4961c391a2f1 2022-06-14T09:36:09+09:00 [INFO][NRF][GIN] | 201 | 127.0.0.1 | PUT | /nnrf-nfm/v1/nf-instances/24cf1709-22c7-4d2b-970f-4961c391a2f1 | === RUN TestPaging 2022-06-14T09:36:09+09:00 [INFO][AMF][NGAP] [AMF] SCTP Accept from: 127.0.0.1:9487 2022-06-14T09:36:09+09:00 [INFO][AMF][NGAP] Create a new NG connection for: 127.0.0.1:9487 2022-06-14T09:36:09+09:00 [INFO][AMF][NGAP][127.0.0.1:9487] Handle NG Setup request 2022-06-14T09:36:09+09:00 [INFO][AMF][NGAP][127.0.0.1:9487] Send NG-Setup response 2022-06-14T09:36:09+09:00 [INFO][AMF][NGAP][127.0.0.1:9487] Handle Initial UE Message 2022-06-14T09:36:09+09:00 [INFO][LIB][FSM] Handle event[Gmm Message], transition from [Deregistered] to [Deregistered] 2022-06-14T09:36:09+09:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:1] Handle Registration Request 2022-06-14T09:36:09+09:00 [INFO][LIB][FSM] Handle event[Start Authentication], transition from [Deregistered] to [Authentication] 2022-06-14T09:36:09+09:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:1] Authentication procedure 2022-06-14T09:36:09+09:00 [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2022-06-14T09:36:09+09:00 [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=AMF&target-nf-type=AUSF | 2022-06-14T09:36:09+09:00 [INFO][AUSF][UeAuthPost] HandleUeAuthPostRequest 2022-06-14T09:36:09+09:00 [INFO][AUSF][UeAuthPost] Serving network authorized 2022-06-14T09:36:09+09:00 [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2022-06-14T09:36:09+09:00 [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=AUSF&service-names=nudm-ueau&target-nf-type=UDM | 2022-06-14T09:36:09+09:00 [INFO][UDM][UEAU] Handle GenerateAuthDataRequest 2022-06-14T09:36:09+09:00 [INFO][UDM][Suci] suciPart: [suci 0 208 93 0 0 0 00007487] 2022-06-14T09:36:09+09:00 [INFO][UDM][Suci] scheme 0 2022-06-14T09:36:09+09:00 [INFO][UDM][Suci] SUPI type is IMSI http://127.0.0.10:8000 2022-06-14T09:36:09+09:00 [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2022-06-14T09:36:09+09:00 [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=UDM&target-nf-type=UDR | 2022-06-14T09:36:09+09:00 [INFO][UDR][DRepo] Handle QueryAuthSubsData 2022-06-14T09:36:09+09:00 [INFO][UDR][GIN] | 200 | 127.0.0.1 | GET | /nudr-dr/v1/subscription-data/imsi-2089300007487/authentication-data/authentication-subscription | 2022-06-14T09:36:09+09:00 [INFO][UDR][DRepo] Handle ModifyAuthentication 2022-06-14T09:36:09+09:00 [INFO][UDR][GIN] | 204 | 127.0.0.1 | PATCH | /nudr-dr/v1/subscription-data/imsi-2089300007487/authentication-data/authentication-subscription | 2022-06-14T09:36:09+09:00 [INFO][UDM][GIN] | 200 | 127.0.0.1 | POST | /nudm-ueau/v1/suci-0-208-93-0-0-0-00007487/security-information/generate-auth-data | 2022-06-14T09:36:09+09:00 [INFO][AUSF][UeAuthPost] Add SuciSupiPair (suci-0-208-93-0-0-0-00007487, imsi-2089300007487) to map. 2022-06-14T09:36:09+09:00 [INFO][AUSF][UeAuthPost] Use 5G AKA auth method 2022-06-14T09:36:09+09:00 [INFO][AUSF][5gAkaAuth] XresStar = 6361663432616264383133313431386335663535383135343734336530663735 2022-06-14T09:36:09+09:00 [INFO][AUSF][GIN] | 201 | 127.0.0.1 | POST | /nausf-auth/v1/ue-authentications | 2022-06-14T09:36:09+09:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:1] Send Authentication Request 2022-06-14T09:36:09+09:00 [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Send Downlink Nas Transport 2022-06-14T09:36:09+09:00 [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Uplink NAS Transport (RAN UE NGAP ID: 1) 2022-06-14T09:36:09+09:00 [INFO][LIB][FSM] Handle event[Gmm Message], transition from [Authentication] to [Authentication] 2022-06-14T09:36:09+09:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:1] Handle Authentication Response 2022-06-14T09:36:09+09:00 [INFO][AUSF][5gAkaAuth] Auth5gAkaComfirmRequest 2022-06-14T09:36:09+09:00 [INFO][AUSF][5gAkaAuth] res*: 6361663432616264383133313431386335663535383135343734336530663735 Xres*: 6361663432616264383133313431386335663535383135343734336530663735 2022-06-14T09:36:09+09:00 [INFO][AUSF][5gAkaAuth] 5G AKA confirmation succeeded 2022-06-14T09:36:09+09:00 [INFO][UDM][UEAU] Handle ConfirmAuthDataRequest 2022-06-14T09:36:09+09:00 [INFO][UDR][DRepo] Handle CreateAuthenticationStatus 2022-06-14T09:36:09+09:00 [INFO][UDR][GIN] | 204 | 127.0.0.1 | PUT | /nudr-dr/v1/subscription-data/imsi-2089300007487/authentication-data/authentication-status | 2022-06-14T09:36:09+09:00 [INFO][UDM][GIN] | 201 | 127.0.0.1 | POST | /nudm-ueau/v1/imsi-2089300007487/auth-events | 2022-06-14T09:36:09+09:00 [INFO][AUSF][GIN] | 200 | 127.0.0.1 | PUT | /nausf-auth/v1/ue-authentications/suci-0-208-93-0-0-0-00007487/5g-aka-confirmation | 2022-06-14T09:36:09+09:00 [INFO][LIB][FSM] Handle event[Authentication Success], transition from [Authentication] to [SecurityMode] 2022-06-14T09:36:09+09:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Send Security Mode Command 2022-06-14T09:36:09+09:00 [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Send Downlink Nas Transport Security Header Type Integrity Protected With New 5g Nas Security Context cmac value: 0x4139cb0f err <nil> 2022-06-14T09:36:09+09:00 [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Uplink NAS Transport (RAN UE NGAP ID: 1) 2022-06-14T09:36:09+09:00 [INFO][LIB][FSM] Handle event[Gmm Message], transition from [SecurityMode] to [SecurityMode] 2022-06-14T09:36:09+09:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Handle Security Mode Complete 2022-06-14T09:36:09+09:00 [INFO][LIB][FSM] Handle event[SecurityMode Success], transition from [SecurityMode] to [ContextSetup] 2022-06-14T09:36:09+09:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Handle InitialRegistration 2022-06-14T09:36:09+09:00 [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2022-06-14T09:36:09+09:00 [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=AMF&supi=imsi-2089300007487&target-nf-type=UDM | 2022-06-14T09:36:09+09:00 [INFO][UDM][SDM] Handle GetNssai 2022-06-14T09:36:09+09:00 [INFO][UDR][DRepo] Handle QueryAmData 2022-06-14T09:36:09+09:00 [INFO][UDR][GIN] | 200 | 127.0.0.1 | GET | /nudr-dr/v1/subscription-data/imsi-2089300007487/20893/provisioned-data/am-data?supported-features= | 2022-06-14T09:36:09+09:00 [INFO][UDM][GIN] | 200 | 127.0.0.1 | GET | /nudm-sdm/v1/imsi-2089300007487/nssai?plmn-id=%7B%22mcc%22%3A%22208%22%2C%22mnc%22%3A%2293%22%7D | 2022-06-14T09:36:09+09:00 [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2022-06-14T09:36:09+09:00 [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=AMF&supi=imsi-2089300007487&target-nf-type=UDM | 2022-06-14T09:36:09+09:00 [INFO][UDM][UECM] Handle RegistrationAmf3gppAccess 2022-06-14T09:36:09+09:00 [INFO][UDM][UECM] UEID: imsi-2089300007487 2022-06-14T09:36:09+09:00 [INFO][UDR][DRepo] Handle CreateAmfContext3gpp 2022-06-14T09:36:09+09:00 [INFO][UDR][GIN] | 204 | 127.0.0.1 | PUT | /nudr-dr/v1/subscription-data/imsi-2089300007487/context-data/amf-3gpp-access | 2022-06-14T09:36:09+09:00 [INFO][UDM][GIN] | 201 | 127.0.0.1 | PUT | /nudm-uecm/v1/imsi-2089300007487/registrations/amf-3gpp-access | 2022-06-14T09:36:09+09:00 [INFO][UDM][SDM] Handle GetAmData 2022-06-14T09:36:09+09:00 [INFO][UDR][DRepo] Handle QueryAmData 2022-06-14T09:36:09+09:00 [INFO][UDR][GIN] | 200 | 127.0.0.1 | GET | /nudr-dr/v1/subscription-data/imsi-2089300007487/20893/provisioned-data/am-data?supported-features=%7B%22mcc%22%3A%22208%22%2C%22mnc%22%3A%2293%22%7D | 2022-06-14T09:36:09+09:00 [INFO][UDM][GIN] | 200 | 127.0.0.1 | GET | /nudm-sdm/v1/imsi-2089300007487/am-data?plmn-id=%7B%22mcc%22%3A%22208%22%2C%22mnc%22%3A%2293%22%7D | 2022-06-14T09:36:09+09:00 [INFO][UDM][SDM] Handle GetSmfSelectData 2022-06-14T09:36:09+09:00 [INFO][UDR][DRepo] Handle QuerySmfSelectData 2022-06-14T09:36:09+09:00 [INFO][UDR][GIN] | 200 | 127.0.0.1 | GET | /nudr-dr/v1/subscription-data/imsi-2089300007487/20893/provisioned-data/smf-selection-subscription-data?supported-features= | 2022-06-14T09:36:09+09:00 [INFO][UDM][GIN] | 200 | 127.0.0.1 | GET | /nudm-sdm/v1/imsi-2089300007487/smf-select-data?plmn-id=%7B%22mcc%22%3A%22208%22%2C%22mnc%22%3A%2293%22%7D | 2022-06-14T09:36:09+09:00 [INFO][UDM][SDM] Handle GetUeContextInSmfData 2022-06-14T09:36:09+09:00 [INFO][UDR][DRepo] Handle QuerySmfRegList 2022-06-14T09:36:09+09:00 [INFO][UDR][GIN] | 200 | 127.0.0.1 | GET | /nudr-dr/v1/subscription-data/imsi-2089300007487/context-data/smf-registrations?supported-features= | 2022-06-14T09:36:09+09:00 [INFO][UDM][GIN] | 200 | 127.0.0.1 | GET | /nudm-sdm/v1/imsi-2089300007487/ue-context-in-smf-data | 2022-06-14T09:36:09+09:00 [INFO][UDM][SDM] Handle Subscribe 2022-06-14T09:36:09+09:00 [INFO][UDR][DRepo] Handle CreateSdmSubscriptions 2022-06-14T09:36:09+09:00 [INFO][UDR][GIN] | 201 | 127.0.0.1 | POST | /nudr-dr/v1/subscription-data/imsi-2089300007487/context-data/sdm-subscriptions | 2022-06-14T09:36:09+09:00 [INFO][UDM][GIN] | 201 | 127.0.0.1 | POST | /nudm-sdm/v1/imsi-2089300007487/sdm-subscriptions | 2022-06-14T09:36:09+09:00 [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2022-06-14T09:36:09+09:00 [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=AMF&supi=imsi-2089300007487&target-nf-type=PCF | 2022-06-14T09:36:09+09:00 [INFO][PCF][Ampolicy] Handle AM Policy Create Request 2022-06-14T09:36:09+09:00 [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2022-06-14T09:36:09+09:00 [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=PCF&target-nf-type=UDR | 2022-06-14T09:36:09+09:00 [INFO][UDR][DRepo] Handle PolicyDataUesUeIdAmDataGet 2022-06-14T09:36:09+09:00 [INFO][UDR][GIN] | 200 | 127.0.0.1 | GET | /nudr-dr/v1/policy-data/ues/imsi-2089300007487/am-data | 2022-06-14T09:36:09+09:00 [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2022-06-14T09:36:09+09:00 [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?guami=%7B%22plmnId%22%3A%7B%22mcc%22%3A%22208%22%2C%22mnc%22%3A%2293%22%7D%2C%22amfId%22%3A%22cafe00%22%7D&requester-nf-type=PCF&target-nf-type=AMF | 2022-06-14T09:36:09+09:00 [INFO][AMF][Comm] Handle AMF Status Change Subscribe Request 2022-06-14T09:36:09+09:00 [INFO][AMF][Comm] new AMF Status Subscription[1] 2022-06-14T09:36:09+09:00 [INFO][AMF][GIN] | 201 | 127.0.0.1 | POST | /namf-comm/v1/subscriptions | 2022-06-14T09:36:09+09:00 [INFO][PCF][GIN] | 201 | 127.0.0.1 | POST | /npcf-am-policy-control/v1/policies | 2022-06-14T09:36:09+09:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Send Registration Accept 2022-06-14T09:36:09+09:00 [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Send Initial Context Setup Request 2022-06-14T09:36:09+09:00 [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Handle Initial Context Setup Response 2022-06-14T09:36:09+09:00 [INFO][NAS][Message] Encode ExtendedProtocolConfigurationOptions in EncodePDUSessionEstablishmentRequest 2022-06-14T09:36:10+09:00 [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Uplink NAS Transport (RAN UE NGAP ID: 1) 2022-06-14T09:36:10+09:00 [INFO][LIB][FSM] Handle event[Gmm Message], transition from [ContextSetup] to [ContextSetup] 2022-06-14T09:36:10+09:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Handle Registration Complete 2022-06-14T09:36:10+09:00 [INFO][LIB][FSM] Handle event[ContextSetup Success], transition from [ContextSetup] to [Registered] 2022-06-14T09:36:10+09:00 [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Uplink NAS Transport (RAN UE NGAP ID: 1) 2022-06-14T09:36:10+09:00 [INFO][LIB][FSM] Handle event[Gmm Message], transition from [Registered] to [Registered] 2022-06-14T09:36:10+09:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Handle UL NAS Transport 2022-06-14T09:36:10+09:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Transport 5GSM Message to SMF 2022-06-14T09:36:10+09:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Select SMF [snssai: {Sst:1 Sd:010203}, dnn: internet] 2022-06-14T09:36:10+09:00 [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2022-06-14T09:36:10+09:00 [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=AMF&target-nf-type=NSSF | 2022-06-14T09:36:10+09:00 [INFO][NSSF][NsSelect] Handle NSSelectionGet 2022-06-14T09:36:10+09:00 [INFO][NSSF][GIN] | 200 | 127.0.0.1 | GET | /nnssf-nsselection/v1/network-slice-information?nf-id=8bf8f918-fbc2-4b04-ab6f-1531e63d557c&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-06-14T09:36:10+09:00 [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2022-06-14T09:36:10+09:00 [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?dnn=internet&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-06-14T09:36:10+09:00 [INFO][SMF][PduSess] Receive Create SM Context Request 2022-06-14T09:36:10+09:00 [INFO][SMF][PduSess] In HandlePDUSessionSMContextCreate 2022-06-14T09:36:10+09:00 [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2022-06-14T09:36:10+09:00 [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=SMF&target-nf-type=UDM | 2022-06-14T09:36:10+09:00 [INFO][SMF][PduSess] Send NF Discovery Serving UDM Successfully 2022-06-14T09:36:10+09:00 [INFO][SMF][CTX] Allocated UE IP address: 10.60.0.1 2022-06-14T09:36:10+09:00 [INFO][SMF][CTX] Selected UPF: UPF 2022-06-14T09:36:10+09:00 [INFO][SMF][PduSess] UE[imsi-2089300007487] PDUSessionID[10] IP[10.60.0.1] 2022-06-14T09:36:10+09:00 [INFO][UDM][SDM] Handle GetSmData 2022-06-14T09:36:10+09:00 [INFO][UDM][SDM] getSmDataProcedure: SUPI[imsi-2089300007487] PLMNID[20893] DNN[internet] SNssai[{"sst":1,"sd":"010203"}] 2022-06-14T09:36:10+09:00 [INFO][UDR][DRepo] Handle QuerySmData 2022-06-14T09:36:10+09:00 [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-06-14T09:36:10+09:00 [INFO][UDM][GIN] | 200 | 127.0.0.1 | GET | /nudm-sdm/v1/imsi-2089300007487/sm-data?dnn=internet&plmn-id=%7B%22mcc%22%3A%22208%22%2C%22mnc%22%3A%2293%22%7D&single-nssai=%7B%22sst%22%3A1%2C%22sd%22%3A%22010203%22%7D | 2022-06-14T09:36:10+09:00 [INFO][SMF][GSM] In HandlePDUSessionEstablishmentRequest 2022-06-14T09:36:10+09:00 [INFO][NAS][Convert] ProtocolOrContainerList: [0xc000a06160 0xc000a061a0 0xc000a061e0] 2022-06-14T09:36:10+09:00 [INFO][SMF][GSM] Protocol Configuration Options 2022-06-14T09:36:10+09:00 [INFO][SMF][GSM] &{[0xc000a06160 0xc000a061a0 0xc000a061e0]} 2022-06-14T09:36:10+09:00 [INFO][SMF][GSM] Didn't Implement container type IPAddressAllocationViaNASSignallingUL 2022-06-14T09:36:10+09:00 [INFO][SMF][PduSess] PCF Selection for SMContext SUPI[imsi-2089300007487] PDUSessionID[10] 2022-06-14T09:36:10+09:00 [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2022-06-14T09:36:10+09:00 [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=SMF&target-nf-type=PCF | 2022-06-14T09:36:10+09:00 [INFO][PCF][SMpolicy] Handle CreateSmPolicy 2022-06-14T09:36:10+09:00 [INFO][UDR][DRepo] Handle PolicyDataUesUeIdSmDataGet 2022-06-14T09:36:10+09:00 [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-06-14T09:36:10+09:00 [INFO][PCF][GIN] | 201 | 127.0.0.1 | POST | /npcf-smpolicycontrol/v1/sm-policies | 2022-06-14T09:36:10+09:00 [INFO][SMF][PduSess] SUPI[imsi-2089300007487] has no pre-config route 2022-06-14T09:36:10+09:00 [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2022-06-14T09:36:10+09:00 [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=SMF&target-nf-instance-id=8bf8f918-fbc2-4b04-ab6f-1531e63d557c&target-nf-type=AMF | 2022-06-14T09:36:10+09:00 [INFO][SMF][Consumer] SendNFDiscoveryServingAMF ok 2022-06-14T09:36:10+09:00 [INFO][SMF][GIN] | 201 | 127.0.0.1 | POST | /nsmf-pdusession/v1/sm-contexts | 2022-06-14T09:36:10+09:00 [INFO][SMF][PduSess] Sending PFCP Session Establishment Request 2022-06-14T09:36:10+09:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] create smContext[pduSessionID: 10] Success 2022-06-14T09:36:10+09:00 [INFO][UPF][Util] [PFCP] Handle PFCP session establishment request 2022-06-14T09:36:10+09:00 [INFO][UPF][Util] [PFCP] Session Establishment Response 2022-06-14T09:36:10+09:00 [INFO][LIB][PFCP] Remove Request Transaction [2] 2022-06-14T09:36:10+09:00 [INFO][SMF][PduSess] Received PFCP Session Establishment Accepted Response 2022-06-14T09:36:10+09:00 [INFO][AMF][Producer] Handle N1N2 Message Transfer Request 2022-06-14T09:36:10+09:00 [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Send PDU Session Resource Setup Request 2022-06-14T09:36:10+09:00 [INFO][AMF][GIN] | 200 | 127.0.0.1 | POST | /namf-comm/v1/ue-contexts/imsi-2089300007487/n1-n2-messages | 2022-06-14T09:36:10+09:00 [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Handle PDU Session Resource Setup Response 2022-06-14T09:36:10+09:00 [INFO][SMF][PduSess] Receive Update SM Context Request 2022-06-14T09:36:10+09:00 [INFO][SMF][PduSess] In HandlePDUSessionSMContextUpdate 2022-06-14T09:36:10+09:00 [INFO][SMF][PduSess] Sending PFCP Session Modification Request to AN UPF 2022-06-14T09:36:10+09:00 [INFO][UPF][Util] [PFCP] Handle PFCP session modification request 2022-06-14T09:36:10+09:00 [INFO][UPF][Util] [PFCP] Session Modification Response 2022-06-14T09:36:10+09:00 [INFO][LIB][PFCP] Remove Request Transaction [3] 2022-06-14T09:36:10+09:00 [INFO][SMF][PduSess] Received PFCP Session Modification Accepted Response from AN UPF 2022-06-14T09:36:10+09:00 [INFO][SMF][GIN] | 200 | 127.0.0.1 | POST | /nsmf-pdusession/v1/sm-contexts/urn:uuid:3528859b-308e-45c3-ab0c-92a5d116c366/modify | 2022-06-14T09:36:10+09:00 [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Handle UE Context Release Request 2022-06-14T09:36:10+09:00 [WARN][AMF][NGAP][127.0.0.1:9487] Cause RadioNetwork[1] 2022-06-14T09:36:10+09:00 [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Ue Context in GMM-Registered 2022-06-14T09:36:10+09:00 [INFO][SMF][PduSess] Receive Update SM Context Request 2022-06-14T09:36:10+09:00 [INFO][SMF][PduSess] In HandlePDUSessionSMContextUpdate 2022-06-14T09:36:10+09:00 [INFO][SMF][PduSess] Sending PFCP Session Modification Request to AN UPF 2022-06-14T09:36:10+09:00 [INFO][UPF][Util] [PFCP] Handle PFCP session modification request 2022-06-14T09:36:10+09:00 [INFO][UPF][Util] [PFCP] Session Modification Response 2022-06-14T09:36:10+09:00 [INFO][LIB][PFCP] Remove Request Transaction [4] 2022-06-14T09:36:10+09:00 [INFO][SMF][PduSess] Received PFCP Session Modification Accepted Response from AN UPF 2022-06-14T09:36:10+09:00 [INFO][SMF][GIN] | 200 | 127.0.0.1 | POST | /nsmf-pdusession/v1/sm-contexts/urn:uuid:3528859b-308e-45c3-ab0c-92a5d116c366/modify | 2022-06-14T09:36:10+09:00 [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Send UE Context Release Command 2022-06-14T09:36:10+09:00 [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Handle UE Context Release Complete 2022-06-14T09:36:10+09:00 [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Rel Ue Context in GMM-Registered 2022-06-14T09:36:10+09:00 [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Release UE[imsi-2089300007487] Context : N2 Connection Release panic: test timed out after 10m0s goroutine 1410 [running]: testing.(*M).startAlarm.func1() /usr/local/go/src/testing/testing.go:2029 +0x8e created by time.goFunc /usr/local/go/src/time/sleep.go:176 +0x32 goroutine 1 [chan receive, 10 minutes]: testing.(*T).Run(0xc0008b1860, {0x134b3cf?, 0x518265?}, 0x13cf518) /usr/local/go/src/testing/testing.go:1487 +0x37a testing.runTests.func1(0xc0008b3d70?) /usr/local/go/src/testing/testing.go:1839 +0x6e testing.tRunner(0xc0008b1860, 0xc0007bfcd8) /usr/local/go/src/testing/testing.go:1439 +0x102 testing.runTests(0xc0008ac960?, {0x1e55b40, 0x11, 0x11}, {0x7f89ccabb5b8?, 0x40?, 0x1e6de40?}) /usr/local/go/src/testing/testing.go:1837 +0x457 testing.(*M).Run(0xc0008ac960) /usr/local/go/src/testing/testing.go:1719 +0x5d9 main.main() _testmain.go:81 +0x1aa goroutine 5 [IO wait, 9 minutes]: internal/poll.runtime_pollWait(0x7f89a54b7ed8, 0x72) /usr/local/go/src/runtime/netpoll.go:302 +0x89 internal/poll.(*pollDesc).wait(0xc00040a900?, 0xc00004ef00?, 0x0) /usr/local/go/src/internal/poll/fd_poll_runtime.go:83 +0x32 internal/poll.(*pollDesc).waitRead(...) /usr/local/go/src/internal/poll/fd_poll_runtime.go:88 internal/poll.(*FD).Accept(0xc00040a900) /usr/local/go/src/internal/poll/fd_unix.go:614 +0x22c net.(*netFD).accept(0xc00040a900) /usr/local/go/src/net/fd_unix.go:172 +0x35 net.(*TCPListener).accept(0xc00000e5d0) /usr/local/go/src/net/tcpsock_posix.go:139 +0x28 net.(*TCPListener).Accept(0xc00000e5d0) /usr/local/go/src/net/tcpsock.go:288 +0x3d net/http.(*Server).Serve(0xc0001ba000, {0x1612248, 0xc00000e5d0}) /usr/local/go/src/net/http/server.go:3039 +0x385 net/http.(*Server).ListenAndServe(0xc0001ba000) /usr/local/go/src/net/http/server.go:2968 +0x7d github.com/free5gc/nrf/pkg/service.(*NRF).Start(0x1e6bcb0) /home/nishi/free5gc-deb/free5gc/NFs/nrf/pkg/service/init.go:175 +0x35a created by test_test.init.0 /home/nishi/free5gc-deb/free5gc/test/ngsetup_test.go:112 +0x572 goroutine 36 [select]: go.mongodb.org/mongo-driver/x/mongo/driver/topology.(*rttMonitor).start(0xc0004d0000) /home/nishi/go/pkg/mod/go.mongodb.org/[email protected]/x/mongo/driver/topology/rtt_monitor.go:95 +0x16f created by go.mongodb.org/mongo-driver/x/mongo/driver/topology.(*rttMonitor).connect /home/nishi/go/pkg/mod/go.mongodb.org/[email protected]/x/mongo/driver/topology/rtt_monitor.go:66 +0x6a goroutine 37 [select]: go.mongodb.org/mongo-driver/x/mongo/driver/topology.(*Server).update.func3() /home/nishi/go/pkg/mod/go.mongodb.org/[email protected]/x/mongo/driver/topology/server.go:493 +0x8e go.mongodb.org/mongo-driver/x/mongo/driver/topology.(*Server).update(0xc00064c000) /home/nishi/go/pkg/mod/go.mongodb.org/[email protected]/x/mongo/driver/topology/server.go:556 +0x6a3 created by go.mongodb.org/mongo-driver/x/mongo/driver/topology.(*Server).Connect /home/nishi/go/pkg/mod/go.mongodb.org/[email protected]/x/mongo/driver/topology/server.go:215 +0x1b6 goroutine 38 [sync.Cond.Wait, 10 minutes]: sync.runtime_notifyListWait(0xc000264190, 0x2) /usr/local/go/src/runtime/sema.go:513 +0x13d sync.(*Cond).Wait(0x408130?) /usr/local/go/src/sync/cond.go:56 +0x8c go.mongodb.org/mongo-driver/x/mongo/driver/topology.(*pool).createConnections.func2() /home/nishi/go/pkg/mod/go.mongodb.org/[email protected]/x/mongo/driver/topology/pool.go:616 +0xeb go.mongodb.org/mongo-driver/x/mongo/driver/topology.(*pool).createConnections(0xc0000d0000, {0x1612d28, 0xc0002641c0}, 0x0?) /home/nishi/go/pkg/mod/go.mongodb.org/[email protected]/x/mongo/driver/topology/pool.go:643 +0x12a created by go.mongodb.org/mongo-driver/x/mongo/driver/topology.(*pool).connect /home/nishi/go/pkg/mod/go.mongodb.org/[email protected]/x/mongo/driver/topology/pool.go:164 +0xe9 goroutine 39 [sync.Cond.Wait, 10 minutes]: sync.runtime_notifyListWait(0xc000264190, 0x1) /usr/local/go/src/runtime/sema.go:513 +0x13d sync.(*Cond).Wait(0x0?) /usr/local/go/src/sync/cond.go:56 +0x8c go.mongodb.org/mongo-driver/x/mongo/driver/topology.(*pool).createConnections.func2() /home/nishi/go/pkg/mod/go.mongodb.org/[email protected]/x/mongo/driver/topology/pool.go:616 +0xeb go.mongodb.org/mongo-driver/x/mongo/driver/topology.(*pool).createConnections(0xc0000d0000, {0x1612d28, 0xc0002641c0}, 0x0?) /home/nishi/go/pkg/mod/go.mongodb.org/[email protected]/x/mongo/driver/topology/pool.go:643 +0x12a created by go.mongodb.org/mongo-driver/x/mongo/driver/topology.(*pool).connect /home/nishi/go/pkg/mod/go.mongodb.org/[email protected]/x/mongo/driver/topology/pool.go:164 +0xe9 goroutine 40 [select]: go.mongodb.org/mongo-driver/x/mongo/driver/topology.(*pool).maintain(0xc0000d0000, {0x1612d28, 0xc0002641c0}, 0x0?) /home/nishi/go/pkg/mod/go.mongodb.org/[email protected]/x/mongo/driver/topology/pool.go:750 +0x285 created by go.mongodb.org/mongo-driver/x/mongo/driver/topology.(*pool).connect /home/nishi/go/pkg/mod/go.mongodb.org/[email protected]/x/mongo/driver/topology/pool.go:167 +0x25c goroutine 50 [syscall, 10 minutes]: os/signal.signal_recv() /usr/local/go/src/runtime/sigqueue.go:151 +0x2f os/signal.loop() /usr/local/go/src/os/signal/signal_unix.go:23 +0x19 created by os/signal.Notify.func1.1 /usr/local/go/src/os/signal/signal.go:151 +0x2a goroutine 51 [syscall, 10 minutes]: syscall.Syscall6(0xe8, 0xa, 0xc00041bdd4, 0x1, 0xffffffffffffffff, 0x0, 0x0) /usr/local/go/src/syscall/asm_linux_amd64.s:43 +0x5 syscall.EpollWait(0x20?, {0xc00041bdd4?, 0xc000395920?, 0x468f4e?}, 0x4429f1?) /usr/local/go/src/syscall/zsyscall_linux_amd64.go:1604 +0x58 git.cs.nctu.edu.tw/calee/sctp.(*SCTPListener).AcceptSCTP(0xc00003f968) /home/nishi/go/pkg/mod/git.cs.nctu.edu.tw/calee/[email protected]/sctp_linux.go:345 +0x4e github.com/free5gc/amf/internal/ngap/service.listenAndServe(0x1612d28?, {0x13cbe68?, 0x13cbe70?}) /home/nishi/free5gc-deb/free5gc/NFs/amf/internal/ngap/service/service.go:68 +0x190 created by github.com/free5gc/amf/internal/ngap/service.Run /home/nishi/free5gc-deb/free5gc/NFs/amf/internal/ngap/service/service.go:54 +0x170 goroutine 7 [chan receive, 10 minutes]: github.com/free5gc/nrf/pkg/service.(*NRF).Start.func1() /home/nishi/free5gc-deb/free5gc/NFs/nrf/pkg/service/init.go:153 +0x4e created by github.com/free5gc/nrf/pkg/service.(*NRF).Start /home/nishi/free5gc-deb/free5gc/NFs/nrf/pkg/service/init.go:145 +0x1ff goroutine 60 [chan receive, 10 minutes]: github.com/free5gc/amf/pkg/service.(*AMF).Start.func1() /home/nishi/free5gc-deb/free5gc/NFs/amf/pkg/service/init.go:277 +0x4a created by github.com/free5gc/amf/pkg/service.(*AMF).Start /home/nishi/free5gc-deb/free5gc/NFs/amf/pkg/service/init.go:269 +0x75b goroutine 8 [IO wait, 9 minutes]: internal/poll.runtime_pollWait(0x7f89a54b7a28, 0x72) /usr/local/go/src/runtime/netpoll.go:302 +0x89 internal/poll.(*pollDesc).wait(0xc0003e0780?, 0xc00004a500?, 0x0) /usr/local/go/src/internal/poll/fd_poll_runtime.go:83 +0x32 internal/poll.(*pollDesc).waitRead(...) /usr/local/go/src/internal/poll/fd_poll_runtime.go:88 internal/poll.(*FD).Accept(0xc0003e0780) /usr/local/go/src/internal/poll/fd_unix.go:614 +0x22c net.(*netFD).accept(0xc0003e0780) /usr/local/go/src/net/fd_unix.go:172 +0x35 net.(*TCPListener).accept(0xc0003fbcb0) /usr/local/go/src/net/tcpsock_posix.go:139 +0x28 net.(*TCPListener).Accept(0xc0003fbcb0) /usr/local/go/src/net/tcpsock.go:288 +0x3d net/http.(*Server).Serve(0xc0002269a0, {0x1612248, 0xc0003fbcb0}) /usr/local/go/src/net/http/server.go:3039 +0x385 net/http.(*Server).ListenAndServe(0xc0002269a0) /usr/local/go/src/net/http/server.go:2968 +0x7d github.com/free5gc/amf/pkg/service.(*AMF).Start(0x1e6bcc0) /home/nishi/free5gc-deb/free5gc/NFs/amf/pkg/service/init.go:295 +0x854 created by test_test.init.0 /home/nishi/free5gc-deb/free5gc/test/ngsetup_test.go:112 +0x572 goroutine 282 [IO wait, 10 minutes]: internal/poll.runtime_pollWait(0x7f89a54b7848, 0x72) /usr/local/go/src/runtime/netpoll.go:302 +0x89 internal/poll.(*pollDesc).wait(0xc000353e00?, 0x7f89a5fe2e00?, 0x0) /usr/local/go/src/internal/poll/fd_poll_runtime.go:83 +0x32 internal/poll.(*pollDesc).waitRead(...) /usr/local/go/src/internal/poll/fd_poll_runtime.go:88 internal/poll.(*FD).Accept(0xc000353e00) /usr/local/go/src/internal/poll/fd_unix.go:614 +0x22c net.(*netFD).accept(0xc000353e00) /usr/local/go/src/net/fd_unix.go:172 +0x35 net.(*TCPListener).accept(0xc0008ce7b0) /usr/local/go/src/net/tcpsock_posix.go:139 +0x28 net.(*TCPListener).Accept(0xc0008ce7b0) /usr/local/go/src/net/tcpsock.go:288 +0x3d net/http.(*Server).Serve(0xc0008a4fc0, {0x1612248, 0xc0008ce7b0}) /usr/local/go/src/net/http/server.go:3039 +0x385 net/http.(*Server).ListenAndServe(0xc0008a4fc0) /usr/local/go/src/net/http/server.go:2968 +0x7d github.com/free5gc/ausf/pkg/service.(*AUSF).Start(0x1e6bd20) /home/nishi/free5gc-deb/free5gc/NFs/ausf/pkg/service/init.go:178 +0x7c5 created by test_test.init.0 /home/nishi/free5gc-deb/free5gc/test/ngsetup_test.go:112 +0x572 goroutine 131 [IO wait, 9 minutes]: internal/poll.runtime_pollWait(0x7f89a54b7758, 0x72) /usr/local/go/src/runtime/netpoll.go:302 +0x89 internal/poll.(*pollDesc).wait(0xc000352780?, 0xc000fb2000?, 0x0) /usr/local/go/src/internal/poll/fd_poll_runtime.go:83 +0x32 internal/poll.(*pollDesc).waitRead(...) /usr/local/go/src/internal/poll/fd_poll_runtime.go:88 internal/poll.(*FD).ReadFromInet4(0xc000352780, {0xc000fb2000, 0x800, 0x800}, 0x2000?) /usr/local/go/src/internal/poll/fd_unix.go:250 +0x1e5 net.(*netFD).readFromInet4(0xc000352780, {0xc000fb2000?, 0x0?, 0xc00013bdc0?}, 0x1?) /usr/local/go/src/net/fd_posix.go:66 +0x29 net.(*UDPConn).readFrom(0xc000396400?, {0xc000fb2000?, 0x0?, 0xc00013bea8?}, 0xc00060bc20) /usr/local/go/src/net/udpsock_posix.go:52 +0x1b8 net.(*UDPConn).readFromUDP(0xc000390200, {0xc000fb2000?, 0x15?, 0x800?}, 0x2?) /usr/local/go/src/net/udpsock.go:149 +0x31 net.(*UDPConn).ReadFromUDP(...) /usr/local/go/src/net/udpsock.go:141 github.com/free5gc/pfcp/pfcpUdp.(*PfcpServer).ReadFrom(0xc0003b8e00) /home/nishi/go/pkg/mod/github.com/free5gc/[email protected]/pfcpUdp/udp.go:73 +0x70 github.com/free5gc/smf/internal/pfcp/udp.Run.func1(0xc000548000?) /home/nishi/free5gc-deb/free5gc/NFs/smf/internal/pfcp/udp/udp.go:31 +0x45 created by github.com/free5gc/smf/internal/pfcp/udp.Run /home/nishi/free5gc-deb/free5gc/NFs/smf/internal/pfcp/udp/udp.go:29 +0x26d goroutine 130 [chan receive, 10 minutes]: github.com/free5gc/smf/pkg/service.(*SMF).Start.func1() /home/nishi/free5gc-deb/free5gc/NFs/smf/pkg/service/init.go:252 +0x4a created by github.com/free5gc/smf/pkg/service.(*SMF).Start /home/nishi/free5gc-deb/free5gc/NFs/smf/pkg/service/init.go:244 +0x20a goroutine 121 [IO wait, 9 minutes]: internal/poll.runtime_pollWait(0x7f89a54b7488, 0x72) /usr/local/go/src/runtime/netpoll.go:302 +0x89 internal/poll.(*pollDesc).wait(0xc000352b00?, 0xc00004ef00?, 0x0) /usr/local/go/src/internal/poll/fd_poll_runtime.go:83 +0x32 internal/poll.(*pollDesc).waitRead(...) /usr/local/go/src/internal/poll/fd_poll_runtime.go:88 internal/poll.(*FD).Accept(0xc000352b00) /usr/local/go/src/internal/poll/fd_unix.go:614 +0x22c net.(*netFD).accept(0xc000352b00) /usr/local/go/src/net/fd_unix.go:172 +0x35 net.(*TCPListener).accept(0xc00059a558) /usr/local/go/src/net/tcpsock_posix.go:139 +0x28 net.(*TCPListener).Accept(0xc00059a558) /usr/local/go/src/net/tcpsock.go:288 +0x3d net/http.(*Server).Serve(0xc0003acee0, {0x1612248, 0xc00059a558}) /usr/local/go/src/net/http/server.go:3039 +0x385 net/http.(*Server).ListenAndServe(0xc0003acee0) /usr/local/go/src/net/http/server.go:2968 +0x7d github.com/free5gc/udr/pkg/service.(*UDR).Start(0x1e6bce0) /home/nishi/free5gc-deb/free5gc/NFs/udr/pkg/service/init.go:193 +0x614 created by test_test.init.0 /home/nishi/free5gc-deb/free5gc/test/ngsetup_test.go:112 +0x572 goroutine 152 [chan receive, 10 minutes]: github.com/tim-ywliu/event.(*Dispatcher).consume(0xc0006daaa0) /home/nishi/go/pkg/mod/github.com/tim-ywliu/[email protected]/dispatcher.go:46 +0x9b created by github.com/tim-ywliu/event.NewDispatcher /home/nishi/go/pkg/mod/github.com/tim-ywliu/[email protected]/dispatcher.go:18 +0xc5 goroutine 312 [syscall]: syscall.Syscall(0x2f, 0x12, 0xc0002dbce0, 0x0) /usr/local/go/src/syscall/asm_linux_amd64.s:20 +0x5 syscall.recvmsg(0x41972b?, 0x7f89a5fa5300?, 0x0?) /usr/local/go/src/syscall/zsyscall_linux_amd64.go:1565 +0x39 syscall.recvmsgRaw(0x7f89a4278168?, {0xc000366000?, 0xc0002dbd70?, 0x418c05?}, {0xc00037bd00?, 0x0?, 0x1?}, 0x40f265?, 0x67?) /usr/local/go/src/syscall/syscall_linux.go:671 +0x11e syscall.Recvmsg(0x2000?, {0xc000366000?, 0xc000366000?, 0x0?}, {0xc00037bd00?, 0xc0002dbe58?, 0x44f552?}, 0x2000?) /usr/local/go/src/syscall/syscall_unix.go:356 +0x65 git.cs.nctu.edu.tw/calee/sctp.(*SCTPConn).SCTPRead(0xc000071b70, {0xc000366000, 0x2000, 0x2000}) /home/nishi/go/pkg/mod/git.cs.nctu.edu.tw/calee/[email protected]/sctp_linux.go:140 +0x7a github.com/free5gc/amf/internal/ngap/service.handleConnection(0xc000071b70, 0x2000, {0x13cbe68?, 0x13cbe70?}) /home/nishi/free5gc-deb/free5gc/NFs/amf/internal/ngap/service/service.go:170 +0xe5 created by github.com/free5gc/amf/internal/ngap/service.listenAndServe /home/nishi/free5gc-deb/free5gc/NFs/amf/internal/ngap/service/service.go:136 +0x98a goroutine 61 [IO wait, 9 minutes]: internal/poll.runtime_pollWait(0x7f89a54b7938, 0x72) /usr/local/go/src/runtime/netpoll.go:302 +0x89 internal/poll.(*pollDesc).wait(0xc000353700?, 0xc00004ef00?, 0x0) /usr/local/go/src/internal/poll/fd_poll_runtime.go:83 +0x32 internal/poll.(*pollDesc).waitRead(...) /usr/local/go/src/internal/poll/fd_poll_runtime.go:88 internal/poll.(*FD).Accept(0xc000353700) /usr/local/go/src/internal/poll/fd_unix.go:614 +0x22c net.(*netFD).accept(0xc000353700) /usr/local/go/src/net/fd_unix.go:172 +0x35 net.(*TCPListener).accept(0xc0008ce330) /usr/local/go/src/net/tcpsock_posix.go:139 +0x28 net.(*TCPListener).Accept(0xc0008ce330) /usr/local/go/src/net/tcpsock.go:288 +0x3d net/http.(*Server).Serve(0xc0008a4b60, {0x1612248, 0xc0008ce330}) /usr/local/go/src/net/http/server.go:3039 +0x385 net/http.(*Server).ListenAndServe(0xc0008a4b60) /usr/local/go/src/net/http/server.go:2968 +0x7d github.com/free5gc/smf/pkg/service.(*SMF).Start(0x1e6bcd0) /home/nishi/free5gc-deb/free5gc/NFs/smf/pkg/service/init.go:297 +0x694 created by test_test.init.0 /home/nishi/free5gc-deb/free5gc/test/ngsetup_test.go:112 +0x572 goroutine 140 [chan receive, 10 minutes]: github.com/free5gc/udr/pkg/service.(*UDR).Start.func1() /home/nishi/free5gc-deb/free5gc/NFs/udr/pkg/service/init.go:176 +0x4a created by github.com/free5gc/udr/pkg/service.(*UDR).Start /home/nishi/free5gc-deb/free5gc/NFs/udr/pkg/service/init.go:168 +0x51b goroutine 165 [IO wait, 9 minutes]: internal/poll.runtime_pollWait(0x7f89a54b71b8, 0x72) /usr/local/go/src/runtime/netpoll.go:302 +0x89 internal/poll.(*pollDesc).wait(0xc000352f00?, 0xc00004a500?, 0x0) /usr/local/go/src/internal/poll/fd_poll_runtime.go:83 +0x32 internal/poll.(*pollDesc).waitRead(...) /usr/local/go/src/internal/poll/fd_poll_runtime.go:88 internal/poll.(*FD).Accept(0xc000352f00) /usr/local/go/src/internal/poll/fd_unix.go:614 +0x22c net.(*netFD).accept(0xc000352f00) /usr/local/go/src/net/fd_unix.go:172 +0x35 net.(*TCPListener).accept(0xc00059af30) /usr/local/go/src/net/tcpsock_posix.go:139 +0x28 net.(*TCPListener).Accept(0xc00059af30) /usr/local/go/src/net/tcpsock.go:288 +0x3d net/http.(*Server).Serve(0xc0003adb20, {0x1612248, 0xc00059af30}) /usr/local/go/src/net/http/server.go:3039 +0x385 net/http.(*Server).ListenAndServe(0xc0003adb20) /usr/local/go/src/net/http/server.go:2968 +0x7d github.com/free5gc/pcf/pkg/service.(*PCF).Start(0x1e6bcf0) /home/nishi/free5gc-deb/free5gc/NFs/pcf/pkg/service/init.go:226 +0xc65 created by test_test.init.0 /home/nishi/free5gc-deb/free5gc/test/ngsetup_test.go:112 +0x572 goroutine 190 [chan receive, 10 minutes]: github.com/free5gc/pcf/pkg/service.(*PCF).Start.func1() /home/nishi/free5gc-deb/free5gc/NFs/pcf/pkg/service/init.go:209 +0x4a created by github.com/free5gc/pcf/pkg/service.(*PCF).Start /home/nishi/free5gc-deb/free5gc/NFs/pcf/pkg/service/init.go:201 +0xb6a goroutine 1154 [IO wait, 9 minutes]: internal/poll.runtime_pollWait(0x7f89a425e938, 0x72) /usr/local/go/src/runtime/netpoll.go:302 +0x89 internal/poll.(*pollDesc).wait(0xc00071ee00?, 0xc000805000?, 0x0) /usr/local/go/src/internal/poll/fd_poll_runtime.go:83 +0x32 internal/poll.(*pollDesc).waitRead(...) /usr/local/go/src/internal/poll/fd_poll_runtime.go:88 internal/poll.(*FD).Read(0xc00071ee00, {0xc000805000, 0x800, 0x800}) /usr/local/go/src/internal/poll/fd_unix.go:167 +0x25a net.(*netFD).Read(0xc00071ee00, {0xc000805000?, 0xc000404ea0?, 0x111d880?}) /usr/local/go/src/net/fd_posix.go:55 +0x29 net.(*conn).Read(0xc0004080c0, {0xc000805000?, 0x0?, 0x0?}) /usr/local/go/src/net/net.go:183 +0x45 test_test.TestPaging.func1() /home/nishi/free5gc-deb/free5gc/test/registration_test.go:1663 +0xad created by test_test.TestPaging /home/nishi/free5gc-deb/free5gc/test/registration_test.go:1659 +0x1a45 goroutine 330 [syscall, 9 minutes]: syscall.Syscall(0x2f, 0x1e, 0xc0008df8a8, 0x0) /usr/local/go/src/syscall/asm_linux_amd64.s:20 +0x5 syscall.recvmsg(0x30?, 0x7f89ccabb5b8?, 0x1169220?) /usr/local/go/src/syscall/zsyscall_linux_amd64.go:1565 +0x39 syscall.recvmsgRaw(0x0?, {0xc000805000?, 0x160a2e0?, 0xc000b2c4b0?}, {0xc0007ea700?, 0x4081d8?, 0xc0008df938?}, 0x40f265?, 0xc0008091a0?) /usr/local/go/src/syscall/syscall_linux.go:671 +0x11e syscall.Recvmsg(0x0?, {0xc000805000?, 0xc0008dfa20?, 0x467f0e?}, {0xc0007ea700?, 0xc0008dfa00?, 0x0?}, 0x8?) /usr/local/go/src/syscall/syscall_unix.go:356 +0x65 git.cs.nctu.edu.tw/calee/sctp.(*SCTPConn).SCTPRead(0xc0008d2140, {0xc000805000, 0x800, 0x800}) /home/nishi/go/pkg/mod/git.cs.nctu.edu.tw/calee/[email protected]/sctp_linux.go:140 +0x7a git.cs.nctu.edu.tw/calee/sctp.(*SCTPConn).Read(...) /home/nishi/go/pkg/mod/git.cs.nctu.edu.tw/calee/[email protected]/sctp.go:446 test_test.TestPaging(0xc0008b1a00) /home/nishi/free5gc-deb/free5gc/test/registration_test.go:1677 +0x1c1c testing.tRunner(0xc0008b1a00, 0x13cf518) /usr/local/go/src/testing/testing.go:1439 +0x102 created by testing.(*T).Run /usr/local/go/src/testing/testing.go:1486 +0x35f goroutine 232 [chan receive, 10 minutes]: github.com/free5gc/nssf/pkg/service.(*NSSF).Start.func1() /home/nishi/free5gc-deb/free5gc/NFs/nssf/pkg/service/init.go:164 +0x4a created by github.com/free5gc/nssf/pkg/service.(*NSSF).Start /home/nishi/free5gc-deb/free5gc/NFs/nssf/pkg/service/init.go:156 +0x632 goroutine 195 [IO wait, 9 minutes]: internal/poll.runtime_pollWait(0x7f89a43806f8, 0x72) /usr/local/go/src/runtime/netpoll.go:302 +0x89 internal/poll.(*pollDesc).wait(0xc000353180?, 0xc00004ef00?, 0x0) /usr/local/go/src/internal/poll/fd_poll_runtime.go:83 +0x32 internal/poll.(*pollDesc).waitRead(...) /usr/local/go/src/internal/poll/fd_poll_runtime.go:88 internal/poll.(*FD).Accept(0xc000353180) /usr/local/go/src/internal/poll/fd_unix.go:614 +0x22c net.(*netFD).accept(0xc000353180) /usr/local/go/src/net/fd_unix.go:172 +0x35 net.(*TCPListener).accept(0xc00059ba10) /usr/local/go/src/net/tcpsock_posix.go:139 +0x28 net.(*TCPListener).Accept(0xc00059ba10) /usr/local/go/src/net/tcpsock.go:288 +0x3d net/http.(*Server).Serve(0xc0008a42a0, {0x1612248, 0xc00059ba10}) /usr/local/go/src/net/http/server.go:3039 +0x385 net/http.(*Server).ListenAndServe(0xc0008a42a0) /usr/local/go/src/net/http/server.go:2968 +0x7d github.com/free5gc/udm/pkg/service.(*UDM).Start(0x1e6bd00) /home/nishi/free5gc-deb/free5gc/NFs/udm/pkg/service/init.go:201 +0x6e5 created by test_test.init.0 /home/nishi/free5gc-deb/free5gc/test/ngsetup_test.go:112 +0x572 goroutine 227 [chan receive, 10 minutes]: github.com/free5gc/udm/pkg/service.(*UDM).Start.func1() /home/nishi/free5gc-deb/free5gc/NFs/udm/pkg/service/init.go:184 +0x4a created by github.com/free5gc/udm/pkg/service.(*UDM).Start /home/nishi/free5gc-deb/free5gc/NFs/udm/pkg/service/init.go:176 +0x5f0 goroutine 220 [IO wait, 9 minutes]: internal/poll.runtime_pollWait(0x7f89a4380428, 0x72) /usr/local/go/src/runtime/netpoll.go:302 +0x89 internal/poll.(*pollDesc).wait(0xc000353300?, 0xc00004a500?, 0x0) /usr/local/go/src/internal/poll/fd_poll_runtime.go:83 +0x32 internal/poll.(*pollDesc).waitRead(...) /usr/local/go/src/internal/poll/fd_poll_runtime.go:88 internal/poll.(*FD).Accept(0xc000353300) /usr/local/go/src/internal/poll/fd_unix.go:614 +0x22c net.(*netFD).accept(0xc000353300) /usr/local/go/src/net/fd_unix.go:172 +0x35 net.(*TCPListener).accept(0xc00059bcc8) /usr/local/go/src/net/tcpsock_posix.go:139 +0x28 net.(*TCPListener).Accept(0xc00059bcc8) /usr/local/go/src/net/tcpsock.go:288 +0x3d net/http.(*Server).Serve(0xc0008a4700, {0x1612248, 0xc00059bcc8}) /usr/local/go/src/net/http/server.go:3039 +0x385 net/http.(*Server).ListenAndServe(0xc0008a4700) /usr/local/go/src/net/http/server.go:2968 +0x7d github.com/free5gc/nssf/pkg/service.(*NSSF).Start(0x1e6bd10) /home/nishi/free5gc-deb/free5gc/NFs/nssf/pkg/service/init.go:182 +0x727 created by test_test.init.0 /home/nishi/free5gc-deb/free5gc/test/ngsetup_test.go:112 +0x572 goroutine 329 [chan receive, 10 minutes]: github.com/free5gc/ausf/pkg/service.(*AUSF).Start.func1() /home/nishi/free5gc-deb/free5gc/NFs/ausf/pkg/service/init.go:161 +0x4a created by github.com/free5gc/ausf/pkg/service.(*AUSF).Start /home/nishi/free5gc-deb/free5gc/NFs/ausf/pkg/service/init.go:153 +0x6ca exit status 2 FAIL test 601.667s 2022-06-14T09:46:13+09:00 [INFO][UPF][Util] Removing DNN routes 33 packets captured 33 packets received by filter 0 packets dropped by kernel 6038 packets captured 12088 packets received by filter 0 packets dropped by kernel nishi@GTP-U:~/free5gc-deb/free5gc$ ```
[Bugs] Fail TestPaging in newer kernel
https://api.github.com/repos/free5gc/free5gc/issues/351/comments
1
2022-06-14T01:01:58Z
2022-06-21T09:00:11Z
https://github.com/free5gc/free5gc/issues/351
1,270,124,072
351
[ "free5gc", "free5gc" ]
## Describe the bug State mismatch happens if AMF receives InitialUEMessage(with 5gs-tmsi) while waiting for RegistrationComplete. ## To Reproduce Happens in a quasi-normal sequence as follows. 1. RegistrationRequest ~ RegistrationAccept 2. UE dose not return RegistrationComplete and sending Initial ServiceRequest without ANRelease. 3. State mismatch happens at AMF. ## Expected behavior - If T3550 timer is run, stop it and set the state to Registered. - Stop the related NAS timer. - Perform ANRelease for old RanUE. ## Environment (please complete the following information): - free5GC Version: v3.1.1 - OS: Ubuntu 18.04 - Kernel version: 5.0.0-23-generic - go version go1.14.4 linux/amd64 ## Trace File ### PCAP File [Statemismatch.zip](https://github.com/free5gc/free5gc/files/8804105/Statemismatch.zip) ### Log File The following is a console log of when UE sends InitialServiceRequest without ANRelease. ``` 2022-05-31T09:46:30Z [INFO][AMF][NGAP][127.0.1.1:9784] Handle Initial UE Message (/home/fujitsu/Origin/free5gc/NFs/amf/internal/ngap/handler.go:854 github.com/free5gc/amf/internal/ngap.HandleInitialUEMessage) 2022-05-31T09:46:30Z [INFO][AMF][NGAP][127.0.1.1:9784][AMF_UE_NGAP_ID:1] Implicit Deregistration - RanUeNgapID[1] (/home/fujitsu/Origin/free5gc/NFs/amf/internal/context/amf_ue.go:300 github.com/free5gc/amf/internal/context.(*AmfUe).AttachRanUe) 2022-05-31T09:46:30Z [INFO][LIB][FSM] Handle event[Gmm Message], transition from [ContextSetup] to [ContextSetup] (/home/fujitsu/go/pkg/mod/github.com/free5gc/[email protected]/fsm/fsm.go:95 github.com/free5gc/util/fsm.(*FSM).SendEvent) 2022-05-31T09:46:30Z [ERRO][AMF][GMM][AMF_UE_NGAP_ID:2][SUPI:imsi-2089300007487] state mismatch: receieve gmm message[message type 0x4c] at ContextSetup state (/home/fujitsu/Origin/free5gc/NFs/amf/internal/gmm/sm.go:379 github.com/free5gc/amf/internal/gmm.ContextSetup) ``` ## Additional context I have sent a [PR](https://github.com/free5gc/amf/pull/70)
[Bugs] State mismatch happens if AMF receives InitialUEMessage while waiting for RegistrationComplete.
https://api.github.com/repos/free5gc/free5gc/issues/350/comments
5
2022-05-31T09:59:10Z
2022-08-25T12:36:10Z
https://github.com/free5gc/free5gc/issues/350
1,253,628,213
350
[ "free5gc", "free5gc" ]
## Issue Description SMF decides whether to continue or reject the request for a SM context according to its state. ### What's the version are you using v3.1.1 ### Is your feature request related to a problem? Please describe. If PDU Session Release Request from same UE and PSI is received consecutively, at the second reception SMF knows PFCP session has already deleted but SMF sends PFCP Session Deletion Request to UPF again. ``` # # 1st PDU Session Release Request from UE # [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Handle UL NAS Transport [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Transport 5GSM Message to SMF [INFO][SMF][PduSess] Receive Update SM Context Request [INFO][SMF][PduSess] In HandlePDUSessionSMContextUpdate [INFO][SMF][GSM] Handle Pdu Session Release Request [INFO][SMF][PduSess] UE[imsi-2089300007487] PDUSessionID[10] Release IP[10.60.0.1] [INFO][PCF][SMpolicy] Handle DeleteSmPolicyContext [INFO][PCF][GIN] | 204 | 127.0.0.1 | POST | /npcf-smpolicycontrol/v1/sm-policies/imsi-2089300007487-10/delete | [INFO][SMF][PduSess] Sending PFCP Session Deletion Request [INFO][UPF][Util] [PFCP] Handle PFCP session deletion request [INFO][UPF][Util] [PFCP] Session Deletion Response [INFO][LIB][PFCP] Remove Request Transaction [4] [INFO][SMF][PduSess] Received PFCP Session Deletion Accepted Response [INFO][SMF][GIN] | 200 | 127.0.0.1 | POST | /nsmf-pdusession/v1/sm-contexts/urn:uuid:63608ff7-a02d-40bc-903f-72c62e3b234b/modify | [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Send PDU Session Resource Release Command [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Uplink NAS Transport (RAN UE NGAP ID: 1) [INFO][LIB][FSM] Handle event[Gmm Message], transition from [Registered] to [Registered] # # 2nd PDU Session Release Request from UE # [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Handle UL NAS Transport [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Transport 5GSM Message to SMF [INFO][SMF][PduSess] Receive Update SM Context Request [INFO][SMF][PduSess] In HandlePDUSessionSMContextUpdate [INFO][SMF][PduSess] The SMContext State should be Active State [INFO][SMF][PduSess] SMContext state: InActivePending [INFO][SMF][GSM] Handle Pdu Session Release Request [INFO][SMF][PduSess] UE[imsi-2089300007487] PDUSessionID[10] Release IP[10.60.0.1] [WARN][SMF][CTX] failed to release UE Address: 10.60.0.1 [INFO][SMF][PduSess] Sending PFCP Session Deletion Request [WARN][UPF][Util] do not find / establish session [INFO][UPF][Util] [PFCP] Handle PFCP session deletion request [INFO][LIB][PFCP] Remove Request Transaction [5] [WARN][SMF][PduSess] Sending PFCP Session Deletion Request error: received unexpected SEID response message: {Version:1 MP:0 S:1 MessageType:55 MessageLength:17 SEID:0 SequenceNumber:5 MessagePriority:0}, exptcted: 1 [INFO][SMF][GIN] | 500 | 127.0.0.1 | POST | /nsmf-pdusession/v1/sm-contexts/urn:uuid:63608ff7-a02d-40bc-903f-72c62e3b234b/modify | ``` ### Describe the solution you'd like In upper case, SMF should not proceed PFCP Deletion procedure when SM Context state is InActivePending. Pull Requests for the feature. - [openapi](https://github.com/free5gc/openapi/pull/4) - [smf](https://github.com/free5gc/smf/pull/51) - [amf](https://github.com/free5gc/amf/pull/69) ### Describe alternatives/workarounds you've considered None ### Additional context None
[Feat] Add strict check for SM context status
https://api.github.com/repos/free5gc/free5gc/issues/349/comments
3
2022-05-31T02:19:11Z
2022-07-13T08:33:44Z
https://github.com/free5gc/free5gc/issues/349
1,253,254,934
349
[ "free5gc", "free5gc" ]
My scenario: I'm using free5gc with k8s on 3 node cluster. (1 node for Core Network, 1 node for UPF, 1 node for UE + gnB) Question: Do I have to install gtp5g module only on UPF node or also on UE + gnB node ? Question 2: Why is gtp5g supported on old OS only for old kernels 5.0/5.4 ? Right now we have Ubuntu 22 and kernel 5.18. Maybe it's good idea to update.
[Question] How gtp5g module works between nodes ?
https://api.github.com/repos/free5gc/free5gc/issues/348/comments
1
2022-05-30T07:31:53Z
2023-06-09T01:39:57Z
https://github.com/free5gc/free5gc/issues/348
1,252,316,963
348
[ "free5gc", "free5gc" ]
## Describe the bug Free5GC currently uses some go modules which have vulnerability ## To Reproduce 1. Install trivy security scanner (https://aquasecurity.github.io/trivy/). 2. Make all modules of Free5GC. 3. Execute trivy with this options in top of source tree. ``` trivy fs --security-checks vuln NFs/upf trivy rootfs --security-checks vuln bin trivy rootfs --security-checks vuln webconsole/bin ``` ## Screenshots ``` nishi@GTP-U:~/free5gc-deb/free5gc$ trivy fs --security-checks vuln NFs/upf 2022-05-18T11:55:05.329+0900 INFO Number of language-specific files: 1 2022-05-18T11:55:05.329+0900 INFO Detecting gomod vulnerabilities... go.mod (gomod) Total: 2 (UNKNOWN: 1, LOW: 0, MEDIUM: 0, HIGH: 1, CRITICAL: 0) ┌─────────────────────┬────────────────┬──────────┬───────────────────────────────────┬───────────────────────────────────┬─────────────────────────────────────────────────────────────┐ │ Library │ Vulnerability │ Severity │ Installed Version │ Fixed Version │ Title │ ├─────────────────────┼────────────────┼──────────┼───────────────────────────────────┼───────────────────────────────────┼─────────────────────────────────────────────────────────────┤ │ golang.org/x/crypto │ CVE-2022-27191 │ HIGH │ 0.0.0-20201216223049-8b5274cf687f │ 0.0.0-20220315160706-3147a52a75dd │ golang: crash in a golang.org/x/crypto/ssh server │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2022-27191 │ ├─────────────────────┼────────────────┼──────────┼───────────────────────────────────┼───────────────────────────────────┼─────────────────────────────────────────────────────────────┤ │ golang.org/x/text │ CVE-2021-38561 │ UNKNOWN │ 0.3.5 │ 0.3.7 │ Due to improper index calculation, an incorrectly formatted │ │ │ │ │ │ │ language tag can cause... │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2021-38561 │ └─────────────────────┴────────────────┴──────────┴───────────────────────────────────┴───────────────────────────────────┴─────────────────────────────────────────────────────────────┘ nishi@GTP-U:~/free5gc-deb/free5gc$ trivy rootfs --security-checks vuln bin 2022-05-18T11:55:10.675+0900 INFO Number of language-specific files: 9 2022-05-18T11:55:10.675+0900 INFO Detecting gobinary vulnerabilities... amf (gobinary) Total: 2 (UNKNOWN: 1, LOW: 0, MEDIUM: 0, HIGH: 1, CRITICAL: 0) ┌─────────────────────┬────────────────┬──────────┬────────────────────────────────────┬───────────────────────────────────┬─────────────────────────────────────────────────────────────┐ │ Library │ Vulnerability │ Severity │ Installed Version │ Fixed Version │ Title │ ├─────────────────────┼────────────────┼──────────┼────────────────────────────────────┼───────────────────────────────────┼─────────────────────────────────────────────────────────────┤ │ golang.org/x/crypto │ CVE-2022-27191 │ HIGH │ v0.0.0-20201216223049-8b5274cf687f │ 0.0.0-20220315160706-3147a52a75dd │ golang: crash in a golang.org/x/crypto/ssh server │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2022-27191 │ ├─────────────────────┼────────────────┼──────────┼────────────────────────────────────┼───────────────────────────────────┼─────────────────────────────────────────────────────────────┤ │ golang.org/x/text │ CVE-2021-38561 │ UNKNOWN │ v0.3.6 │ 0.3.7 │ Due to improper index calculation, an incorrectly formatted │ │ │ │ │ │ │ language tag can cause... │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2021-38561 │ └─────────────────────┴────────────────┴──────────┴────────────────────────────────────┴───────────────────────────────────┴─────────────────────────────────────────────────────────────┘ ausf (gobinary) Total: 2 (UNKNOWN: 1, LOW: 0, MEDIUM: 0, HIGH: 1, CRITICAL: 0) ┌─────────────────────┬────────────────┬──────────┬────────────────────────────────────┬───────────────────────────────────┬─────────────────────────────────────────────────────────────┐ │ Library │ Vulnerability │ Severity │ Installed Version │ Fixed Version │ Title │ ├─────────────────────┼────────────────┼──────────┼────────────────────────────────────┼───────────────────────────────────┼─────────────────────────────────────────────────────────────┤ │ golang.org/x/crypto │ CVE-2022-27191 │ HIGH │ v0.0.0-20201216223049-8b5274cf687f │ 0.0.0-20220315160706-3147a52a75dd │ golang: crash in a golang.org/x/crypto/ssh server │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2022-27191 │ ├─────────────────────┼────────────────┼──────────┼────────────────────────────────────┼───────────────────────────────────┼─────────────────────────────────────────────────────────────┤ │ golang.org/x/text │ CVE-2021-38561 │ UNKNOWN │ v0.3.6 │ 0.3.7 │ Due to improper index calculation, an incorrectly formatted │ │ │ │ │ │ │ language tag can cause... │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2021-38561 │ └─────────────────────┴────────────────┴──────────┴────────────────────────────────────┴───────────────────────────────────┴─────────────────────────────────────────────────────────────┘ n3iwf (gobinary) Total: 1 (UNKNOWN: 0, LOW: 0, MEDIUM: 0, HIGH: 1, CRITICAL: 0) ┌─────────────────────┬────────────────┬──────────┬────────────────────────────────────┬───────────────────────────────────┬───────────────────────────────────────────────────┐ │ Library │ Vulnerability │ Severity │ Installed Version │ Fixed Version │ Title │ ├─────────────────────┼────────────────┼──────────┼────────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────────────────────┤ │ golang.org/x/crypto │ CVE-2022-27191 │ HIGH │ v0.0.0-20201216223049-8b5274cf687f │ 0.0.0-20220315160706-3147a52a75dd │ golang: crash in a golang.org/x/crypto/ssh server │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2022-27191 │ └─────────────────────┴────────────────┴──────────┴────────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────────────────────┘ nrf (gobinary) Total: 2 (UNKNOWN: 1, LOW: 0, MEDIUM: 0, HIGH: 1, CRITICAL: 0) ┌─────────────────────┬────────────────┬──────────┬────────────────────────────────────┬───────────────────────────────────┬─────────────────────────────────────────────────────────────┐ │ Library │ Vulnerability │ Severity │ Installed Version │ Fixed Version │ Title │ ├─────────────────────┼────────────────┼──────────┼────────────────────────────────────┼───────────────────────────────────┼─────────────────────────────────────────────────────────────┤ │ golang.org/x/crypto │ CVE-2022-27191 │ HIGH │ v0.0.0-20201216223049-8b5274cf687f │ 0.0.0-20220315160706-3147a52a75dd │ golang: crash in a golang.org/x/crypto/ssh server │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2022-27191 │ ├─────────────────────┼────────────────┼──────────┼────────────────────────────────────┼───────────────────────────────────┼─────────────────────────────────────────────────────────────┤ │ golang.org/x/text │ CVE-2021-38561 │ UNKNOWN │ v0.3.6 │ 0.3.7 │ Due to improper index calculation, an incorrectly formatted │ │ │ │ │ │ │ language tag can cause... │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2021-38561 │ └─────────────────────┴────────────────┴──────────┴────────────────────────────────────┴───────────────────────────────────┴─────────────────────────────────────────────────────────────┘ nssf (gobinary) Total: 2 (UNKNOWN: 1, LOW: 0, MEDIUM: 0, HIGH: 1, CRITICAL: 0) ┌─────────────────────┬────────────────┬──────────┬────────────────────────────────────┬───────────────────────────────────┬─────────────────────────────────────────────────────────────┐ │ Library │ Vulnerability │ Severity │ Installed Version │ Fixed Version │ Title │ ├─────────────────────┼────────────────┼──────────┼────────────────────────────────────┼───────────────────────────────────┼─────────────────────────────────────────────────────────────┤ │ golang.org/x/crypto │ CVE-2022-27191 │ HIGH │ v0.0.0-20201216223049-8b5274cf687f │ 0.0.0-20220315160706-3147a52a75dd │ golang: crash in a golang.org/x/crypto/ssh server │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2022-27191 │ ├─────────────────────┼────────────────┼──────────┼────────────────────────────────────┼───────────────────────────────────┼─────────────────────────────────────────────────────────────┤ │ golang.org/x/text │ CVE-2021-38561 │ UNKNOWN │ v0.3.6 │ 0.3.7 │ Due to improper index calculation, an incorrectly formatted │ │ │ │ │ │ │ language tag can cause... │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2021-38561 │ └─────────────────────┴────────────────┴──────────┴────────────────────────────────────┴───────────────────────────────────┴─────────────────────────────────────────────────────────────┘ pcf (gobinary) Total: 2 (UNKNOWN: 1, LOW: 0, MEDIUM: 0, HIGH: 1, CRITICAL: 0) ┌─────────────────────┬────────────────┬──────────┬────────────────────────────────────┬───────────────────────────────────┬─────────────────────────────────────────────────────────────┐ │ Library │ Vulnerability │ Severity │ Installed Version │ Fixed Version │ Title │ ├─────────────────────┼────────────────┼──────────┼────────────────────────────────────┼───────────────────────────────────┼─────────────────────────────────────────────────────────────┤ │ golang.org/x/crypto │ CVE-2022-27191 │ HIGH │ v0.0.0-20201216223049-8b5274cf687f │ 0.0.0-20220315160706-3147a52a75dd │ golang: crash in a golang.org/x/crypto/ssh server │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2022-27191 │ ├─────────────────────┼────────────────┼──────────┼────────────────────────────────────┼───────────────────────────────────┼─────────────────────────────────────────────────────────────┤ │ golang.org/x/text │ CVE-2021-38561 │ UNKNOWN │ v0.3.6 │ 0.3.7 │ Due to improper index calculation, an incorrectly formatted │ │ │ │ │ │ │ language tag can cause... │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2021-38561 │ └─────────────────────┴────────────────┴──────────┴────────────────────────────────────┴───────────────────────────────────┴─────────────────────────────────────────────────────────────┘ smf (gobinary) Total: 2 (UNKNOWN: 1, LOW: 0, MEDIUM: 0, HIGH: 1, CRITICAL: 0) ┌─────────────────────┬────────────────┬──────────┬────────────────────────────────────┬───────────────────────────────────┬─────────────────────────────────────────────────────────────┐ │ Library │ Vulnerability │ Severity │ Installed Version │ Fixed Version │ Title │ ├─────────────────────┼────────────────┼──────────┼────────────────────────────────────┼───────────────────────────────────┼─────────────────────────────────────────────────────────────┤ │ golang.org/x/crypto │ CVE-2022-27191 │ HIGH │ v0.0.0-20201216223049-8b5274cf687f │ 0.0.0-20220315160706-3147a52a75dd │ golang: crash in a golang.org/x/crypto/ssh server │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2022-27191 │ ├─────────────────────┼────────────────┼──────────┼────────────────────────────────────┼───────────────────────────────────┼─────────────────────────────────────────────────────────────┤ │ golang.org/x/text │ CVE-2021-38561 │ UNKNOWN │ v0.3.6 │ 0.3.7 │ Due to improper index calculation, an incorrectly formatted │ │ │ │ │ │ │ language tag can cause... │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2021-38561 │ └─────────────────────┴────────────────┴──────────┴────────────────────────────────────┴───────────────────────────────────┴─────────────────────────────────────────────────────────────┘ udm (gobinary) Total: 2 (UNKNOWN: 1, LOW: 0, MEDIUM: 0, HIGH: 1, CRITICAL: 0) ┌─────────────────────┬────────────────┬──────────┬────────────────────────────────────┬───────────────────────────────────┬─────────────────────────────────────────────────────────────┐ │ Library │ Vulnerability │ Severity │ Installed Version │ Fixed Version │ Title │ ├─────────────────────┼────────────────┼──────────┼────────────────────────────────────┼───────────────────────────────────┼─────────────────────────────────────────────────────────────┤ │ golang.org/x/crypto │ CVE-2022-27191 │ HIGH │ v0.0.0-20201216223049-8b5274cf687f │ 0.0.0-20220315160706-3147a52a75dd │ golang: crash in a golang.org/x/crypto/ssh server │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2022-27191 │ ├─────────────────────┼────────────────┼──────────┼────────────────────────────────────┼───────────────────────────────────┼─────────────────────────────────────────────────────────────┤ │ golang.org/x/text │ CVE-2021-38561 │ UNKNOWN │ v0.3.6 │ 0.3.7 │ Due to improper index calculation, an incorrectly formatted │ │ │ │ │ │ │ language tag can cause... │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2021-38561 │ └─────────────────────┴────────────────┴──────────┴────────────────────────────────────┴───────────────────────────────────┴─────────────────────────────────────────────────────────────┘ udr (gobinary) Total: 2 (UNKNOWN: 1, LOW: 0, MEDIUM: 0, HIGH: 1, CRITICAL: 0) ┌─────────────────────┬────────────────┬──────────┬────────────────────────────────────┬───────────────────────────────────┬─────────────────────────────────────────────────────────────┐ │ Library │ Vulnerability │ Severity │ Installed Version │ Fixed Version │ Title │ ├─────────────────────┼────────────────┼──────────┼────────────────────────────────────┼───────────────────────────────────┼─────────────────────────────────────────────────────────────┤ │ golang.org/x/crypto │ CVE-2022-27191 │ HIGH │ v0.0.0-20201216223049-8b5274cf687f │ 0.0.0-20220315160706-3147a52a75dd │ golang: crash in a golang.org/x/crypto/ssh server │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2022-27191 │ ├─────────────────────┼────────────────┼──────────┼────────────────────────────────────┼───────────────────────────────────┼─────────────────────────────────────────────────────────────┤ │ golang.org/x/text │ CVE-2021-38561 │ UNKNOWN │ v0.3.6 │ 0.3.7 │ Due to improper index calculation, an incorrectly formatted │ │ │ │ │ │ │ language tag can cause... │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2021-38561 │ └─────────────────────┴────────────────┴──────────┴────────────────────────────────────┴───────────────────────────────────┴─────────────────────────────────────────────────────────────┘ nishi@GTP-U:~/free5gc-deb/free5gc$ trivy rootfs --security-checks vuln webconsole/bin 2022-05-18T11:55:15.556+0900 INFO Number of language-specific files: 1 2022-05-18T11:55:15.556+0900 INFO Detecting gobinary vulnerabilities... webconsole (gobinary) Total: 2 (UNKNOWN: 1, LOW: 0, MEDIUM: 0, HIGH: 1, CRITICAL: 0) ┌─────────────────────┬────────────────┬──────────┬────────────────────────────────────┬───────────────────────────────────┬─────────────────────────────────────────────────────────────┐ │ Library │ Vulnerability │ Severity │ Installed Version │ Fixed Version │ Title │ ├─────────────────────┼────────────────┼──────────┼────────────────────────────────────┼───────────────────────────────────┼─────────────────────────────────────────────────────────────┤ │ golang.org/x/crypto │ CVE-2022-27191 │ HIGH │ v0.0.0-20201216223049-8b5274cf687f │ 0.0.0-20220315160706-3147a52a75dd │ golang: crash in a golang.org/x/crypto/ssh server │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2022-27191 │ ├─────────────────────┼────────────────┼──────────┼────────────────────────────────────┼───────────────────────────────────┼─────────────────────────────────────────────────────────────┤ │ golang.org/x/text │ CVE-2021-38561 │ UNKNOWN │ v0.3.6 │ 0.3.7 │ Due to improper index calculation, an incorrectly formatted │ │ │ │ │ │ │ language tag can cause... │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2021-38561 │ └─────────────────────┴────────────────┴──────────┴────────────────────────────────────┴───────────────────────────────────┴─────────────────────────────────────────────────────────────┘ nishi@GTP-U:~/free5gc-deb/free5gc$ ``` ## Environment (please complete the following information): - free5GC Version: 081a1f95e - OS: Ubuntu 20.04.4 LTS - Kernel version: 5.4.0-110-generic - go version: 1.18
Vulnerable go modules
https://api.github.com/repos/free5gc/free5gc/issues/347/comments
0
2022-05-18T02:57:36Z
2023-07-10T08:31:09Z
https://github.com/free5gc/free5gc/issues/347
1,239,366,210
347
[ "free5gc", "free5gc" ]
<!-- Remove above warning line while reporting the issue --> ## Documentation request Hello, Does free5GC support QoS, 5QI and UPF selection based on NSSAI? Thanks in advanced.
[Docs] QoS, 5QI and UPF selection based on NSSAI
https://api.github.com/repos/free5gc/free5gc/issues/346/comments
1
2022-05-17T11:27:42Z
2022-06-06T15:52:46Z
https://github.com/free5gc/free5gc/issues/346
1,238,496,100
346
[ "free5gc", "free5gc" ]
## Documentation request What was unclear/insufficient/not covered in the documentation. -- how to configure multiple DNN in amfcfg.yaml,smfcfg.yaml and upfcfg.yaml is not mentioned. please provide information how to add multiple DNN configuration ## Additional context when i try to add multiple DNN i could see UE ip is allocating the latest DNN. attached my config [config.zip](https://github.com/free5gc/free5gc/files/8705289/config.zip)
[Docs] Please provide information how to configure multiple DNNs
https://api.github.com/repos/free5gc/free5gc/issues/345/comments
2
2022-05-17T04:59:53Z
2022-07-25T07:00:07Z
https://github.com/free5gc/free5gc/issues/345
1,238,068,806
345
[ "free5gc", "free5gc" ]
## Describe the bug UPF is throwing errors when more that 10 UE's (tunnel interfaces) are created ## To Reproduce Steps to reproduce the behavior: 1. Setup Free5gc and UERANSIM (I'm using towards5gs Helm charts) 2. Register more than 10 UE's in webUI 3. Watch UPF logs 4. Enter UE pod and execute _./nr-ue -c ../config/ue-config.yaml -i imsi-2089300000000XX_ 10 or more times each time with different registered imsi 5. At 11th UE UPF will throw error ## Expected behavior Successfully register N number of UE's e.g. 20, 100, 1000 without issues ## Screenshots <img width="391" alt="upf_new_error" src="https://user-images.githubusercontent.com/51170703/167392368-4ead5824-05b2-47ab-ac98-0be9d25a2524.PNG"> ## Environment: - free5GC Version: v3.1.1 - OS: Ubuntu 20.04 Server - Kernel version: 5.4.0-109-generic - go version: go1.17.8 linux/amd64
[Bugs] UPF throw errors when more than 10 UE's are connected
https://api.github.com/repos/free5gc/free5gc/issues/344/comments
3
2022-05-09T10:42:23Z
2022-05-25T10:19:38Z
https://github.com/free5gc/free5gc/issues/344
1,229,516,470
344
[ "free5gc", "free5gc" ]
Hello everyone! ## Describe the bug I have a not working uesimtun0 interface when running the command "ping -I uesimtun0 google.com" to check free5gc. I followed all commands from ( https://www.free5gc.org/installations/stage-3-sim-install/ ) from github documentation -- https://github.com/free5gc/free5gc/wiki. I didn't receive any replies from ping command and find out that "Segmentation fault (core dumped)" error occurred on the terminal where I run -- build/nr-gnb -c config/free5gc-gnb.yaml command. ## To Reproduce Steps to reproduce the behavior: 1. I followed commands and followed instructions from -- https://www.free5gc.org/installations/stage-3-sim-install/. Previous steps were also taken with instructions from there-- https://www.free5gc.org/installations/stage-3/ 2. Run command - ping -I uesimtun0 google.com ## Expected behavior Getting replies from "ping -I uesimtun0 google.com" command to check that my free5gc running properly. ## Screenshots ![image](https://user-images.githubusercontent.com/47266010/167291314-07673066-6b2d-49ac-8104-1023c495d837.png) ## Environment (please complete the following information): - free5GC Version: v3.1.0 - OS: Ubuntu 20.04.4 LTS - Kernel version: 5.4.0-104-generic - go version: 1.15.8 linux/amd64 - c compiler version (Option): gcc version 9.4.0 ## Trace File ### Configuration File I guess there is no config. file because the problem is not in the file. ### Log File Not surely understood if the log file needed for my problem ## System architecture (Option) The architecture from the website -- https://www.free5gc.org/installations/stage-3/. Just3 VM in VirtualBox: 1) Ubuntu 20.04.4 LTS 2) free5gc - linked clone from (1)Ubuntu VM 3) ueransim - linked clone from (1)Ubuntu VM I hope I provide the full information you need and that you will help me find out what is wrong. I've never written bug reports before. If something also should be included(files, screenshots and etc.) just write here how to get this file and I will operatively provide it.
UE interface (uesimtun0) don't ping properly
https://api.github.com/repos/free5gc/free5gc/issues/343/comments
2
2022-05-08T10:21:18Z
2022-05-08T12:21:19Z
https://github.com/free5gc/free5gc/issues/343
1,228,849,627
343
[ "free5gc", "free5gc" ]
The driver gtp doesn't compile on recent kernels, including latest update of ubuntu 20.04 The patch to apply: diff --git a/gtp5g.c b/gtp5g.c index 7302be2..3b7b6ab 100644 --- a/gtp5g.c +++ b/gtp5g.c @@ -1496,7 +1496,11 @@ static const struct net_device_ops gtp5g_netdev_ops = { .ndo_init = gtp5g_dev_init, .ndo_uninit = gtp5g_dev_uninit, .ndo_start_xmit = gtp5g_dev_xmit, - .ndo_get_stats64 = ip_tunnel_get_stats64, +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,13,0) + .ndo_get_stats64 = dev_get_tstats64, +#else + .ndo_get_stats64 = ip_tunnel_get_stats64, +#endif };
[Bugs]
https://api.github.com/repos/free5gc/free5gc/issues/342/comments
0
2022-05-04T15:54:22Z
2022-05-04T15:59:15Z
https://github.com/free5gc/free5gc/issues/342
1,225,570,827
342
[ "free5gc", "free5gc" ]
## Describe the bug free5GC uses retracted version of mongo-driver ## To Reproduce Steps to reproduce the behavior: 1. Move to webconsole source directory 2. Run `go list -m -u all | grep mongo-driver` ## Screenshots ``` nishi@GTP-U:~/free5gc-deb/free5gc/webconsole$ go list -m -u all | grep mongo-driver go.mongodb.org/mongo-driver v1.7.1 (retracted) [v1.9.0] nishi@GTP-U:~/free5gc-deb/free5gc/webconsole$ go get go.mongodb.org/[email protected] go: warning: go.mongodb.org/[email protected]: retracted by module author: Contains data race bug in background connection establishment. go: to switch to the latest unretracted version, run: go get go.mongodb.org/mongo-driver@latest nishi@GTP-U:~/free5gc-deb/free5gc/webconsole$ ``` ## Environment (please complete the following information): - free5GC Version: v3.1.0 - OS: Ubuntu 20.04.4 LTS - Kernel version: 5.13.0-39-generic - go version: go1.18 linux/amd64
[Bugs] retracted version of mongo-driver
https://api.github.com/repos/free5gc/free5gc/issues/341/comments
1
2022-04-18T07:30:15Z
2022-05-09T02:05:13Z
https://github.com/free5gc/free5gc/issues/341
1,206,769,718
341
[ "free5gc", "free5gc" ]
## Describe the bug SMF waits for PFCP Session Modification / Deletion response forever, and doesn't respond to AMF. ## To Reproduce Steps to reproduce the behavior: 1. Establish PDU Session 2. Terminate UPF 3. Send PDU Session Release Request Use TestPDUSessionReleaseRequest with slight modificaion to sleep before step2 and after step3. ## Expected behavior IF a PFCP transaction is removed by timeout, SMF should respond to AMF. ## Environment (please complete the following information): - free5GC Version: v3.1.0 - OS: Ubuntu 18.04 - Kernel version: 5.0.0-23-generic - go version go1.14.4 linux/amd64 ## Trace File ### Log File ``` 2022-04-13T00:37:07Z [INFO][UPF][Util] Removing DNN routes ##### (Terminate UPF) 2022-04-13T00:37:26Z [INFO][AMF][NGAP][127.0.0.1:9487][AMF_UE_NGAP_ID:1] Uplink NAS Transport (RAN UE NGAP ID: 1) 2022-04-13T00:37:26Z [INFO][LIB][FSM] Handle event[Gmm Message], transition from [Registered] to [Registered] 2022-04-13T00:37:26Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Handle UL NAS Transport 2022-04-13T00:37:26Z [INFO][AMF][GMM][AMF_UE_NGAP_ID:1][SUPI:imsi-2089300007487] Transport 5GSM Message to SMF 2022-04-13T00:37:26Z [INFO][SMF][PduSess] Receive Update SM Context Request 2022-04-13T00:37:26Z [INFO][SMF][PduSess] In HandlePDUSessionSMContextUpdate 2022-04-13T00:37:26Z [INFO][SMF][GSM] Handle Pdu Session Release Request 2022-04-13T00:37:26Z [INFO][SMF][PduSess] UE[imsi-2089300007487] PDUSessionID[10] Release IP[10.60.0.1] 2022-04-13T00:37:26Z [INFO][PCF][SMpolicy] Handle DeleteSmPolicyContext 2022-04-13T00:37:26Z [INFO][PCF][GIN] | 204 | 127.0.0.1 | POST | /npcf-smpolicycontrol/v1/sm-policies/imsi-2089300007487-10/delete | 2022-04-13T00:37:26Z [INFO][SMF][PduSess] Send PFCP Deletion from HandlePDUSessionSMContextUpdate 2022-04-13T00:37:35Z [INFO][LIB][PFCP] Remove Request Transaction [4] 2022-04-13T00:37:49Z [INFO][AUSF][Init] Terminating AUSF... // AMF didn't send PDU Session Resource Release Command ``` ## Additional context I have sent PRs * [pfcp](https://github.com/free5gc/pfcp/pull/6) * [smf](https://github.com/free5gc/smf/pull/50)
[Bugs] SMF waits PFCP response from UPF forever
https://api.github.com/repos/free5gc/free5gc/issues/339/comments
1
2022-04-13T00:46:56Z
2022-04-27T16:49:00Z
https://github.com/free5gc/free5gc/issues/339
1,202,615,449
339
[ "free5gc", "free5gc" ]
## Describe the bug In TestRequestTwoPDUSessions, 2nd ICMP Echo Request was not forwarded by UPF2. ``` [WARN][UPF][Util] GTP-U payload length mismatch: expected:60, gotten:88 ``` ## To Reproduce Run TestRequestTwoPDUSessions. ``` ./test_ulcl.sh TestRequestTwoPDUSessions ``` ## Expected behavior All ICMP Echo Requests and Replies are forwarded by UPFs. ## Environment (please complete the following information): - free5GC Version: v3.1.0 - OS: Ubuntu 18.04 - Kernel version: 5.0.0-23-generic - go version go1.14.4 linux/amd64 ## Trace File ### PCAP File [TestRequestTwoPDUSessions_UPF01.zip](https://github.com/free5gc/free5gc/files/8470005/TestRequestTwoPDUSessions_UPF01.zip) [TestRequestTwoPDUSessions_UPF02.zip](https://github.com/free5gc/free5gc/files/8470004/TestRequestTwoPDUSessions_UPF02.zip) ## Additional context [Pull Request](https://github.com/free5gc/free5gc/pull/337) for the fix.
[Bugs] TestRequestTwoPDUSessions: ICMP Echo Request was not forwarded
https://api.github.com/repos/free5gc/free5gc/issues/338/comments
1
2022-04-12T06:10:28Z
2022-04-28T10:54:04Z
https://github.com/free5gc/free5gc/issues/338
1,201,157,368
338
[ "free5gc", "free5gc" ]
## Issue Description webconsole does not work on arm64 architecture ### What's the version are you using * free5GC Version: v3.1.0 * OS: Ubuntu 20.04.4 LTS * Kernel version: 5.4.0-108 * go version: go1.18 linux/arm64 ### Is your feature request related to a problem? Please describe. Almost of modules of v3.1.0 works fine on arm64 architecture except webconsole. ### Describe the solution you'd like Make webconsole to work on arm64 architecture. Currently webconsole frontend uses `node-sass` library which does not support arm64. Instead, we can use `sass` library which support arm. ### If willing to resolve an issue by submitting Pull request, please consider the points below. here is link to [PR](https://github.com/free5gc/webconsole/pull/23)
[Feat] webconsole to support arm64 architecture
https://api.github.com/repos/free5gc/free5gc/issues/335/comments
3
2022-04-07T17:26:56Z
2022-04-09T11:44:00Z
https://github.com/free5gc/free5gc/issues/335
1,196,353,692
335
[ "free5gc", "free5gc" ]
### Describe the bug Hi, I have followed the [installation document](https://github.com/free5gc/free5gc/wiki/Installation#installation) and cannot pass test `TestRegistration`. I also commented in closed issue #318, but I have just realized the problem may be slightly different. ### Environment - free5GC Version: v3.1.0 - OS: Ubuntu 20.04.4 LTS - Kernel version: 5.4.0-1059-kvm - go version: go1.14.4 linux/amd64 - gcc version: gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 ### To Reproduce 1. Perform "all-in-one" installation as in [installation document](https://github.com/free5gc/free5gc/wiki/Installation#installation) 2. Installation is correct (including 5G GTP-U kernel) 3. Run command `./test.sh TestRegistration` ### Expected behavior The TestRegistration should be passed. ### Outcome The test fails. It seems something related to NGAP "protocol not supported". ``` (...) 2022-04-04T08:11:33Z [ERRO][AMF][NGAP] Failed to listen: protocol not supported (...) === RUN TestRegistration TestRegistration: registration_test.go:50: Error Trace: registration_test.go:50 Error: Expected nil, but got: 0x5d Test: TestRegistration --- FAIL: TestRegistration (0.01s) panic: runtime error: invalid memory address or nil pointer dereference [recovered] panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xa41f8e] ``` Thanks!
[Bugs] TestRegistration NGAP error
https://api.github.com/repos/free5gc/free5gc/issues/334/comments
4
2022-04-07T07:37:02Z
2022-05-09T14:20:33Z
https://github.com/free5gc/free5gc/issues/334
1,195,639,600
334
[ "free5gc", "free5gc" ]
## Describe the bug LogLevel and ReportCaller are not applied when the test is run. ## To Reproduce 1. Change LogLevel and ReportCaller setting at `free5gc/test/ngsetup_test.go`. 2. Run the test.(ex. TestRegistration) ## Expected behavior LogLevel and ReportCaller are applied when the test is run. ## Environment (please complete the following information): - free5GC Version: v3.1.0 - OS: Ubuntu 18.04 - Kernel version: 5.0.0-23-generic - go version go1.14.4 linux/amd64 ## Additional context I have sent PRs - [free5gc](https://github.com/free5gc/free5gc/pull/332) - [amf](https://github.com/free5gc/amf/pull/67) - [ausf](https://github.com/free5gc/ausf/pull/5) - [nrf](https://github.com/free5gc/nrf/pull/5) - [nssf](https://github.com/free5gc/nssf/pull/4) - [pcf](https://github.com/free5gc/pcf/pull/6) - [smf](https://github.com/free5gc/smf/pull/48) - [udm](https://github.com/free5gc/udm/pull/11) - [udr](https://github.com/free5gc/udr/pull/5)
[Bugs] LogLevel is not applied when the test is run.
https://api.github.com/repos/free5gc/free5gc/issues/333/comments
1
2022-04-05T10:09:49Z
2022-04-08T16:04:39Z
https://github.com/free5gc/free5gc/issues/333
1,192,920,584
333
[ "free5gc", "free5gc" ]
## Describe the bug A clear and concise description of what the bug is. TestNon3GPP fails on a fresh installation on ubuntu 20.04 It always stuck at: time="2022-04-04T10:01:42Z" level=error msg="Set XFRM rules failed: invalid argument" category=IKE component=N3IWF time="2022-04-04T10:01:42Z" level=error msg="Applying XFRM rules failed: Set XFRM state rule failed" category=IKE component=N3IWF claiming for an invalid argument ,and need to be killed the XFRM rule that fails should be, but i can be wrong... time="2022-04-04T10:01:42Z" level=info msg="Dst: 192.168.127.1, Src: 192.168.127.2, Proto: esp, Mode: tunnel, SPI: 0xab581b91, ReqID: 0x0, ReplayWindow: 0, Mark: (0x5,0x0), OutputMark: 0, Ifid: 0, Auth: {Name: hmac(sha1), Key: 0x8ca113cdca4313050a8b5fd6e24324fd29cfb35f}, Crypt: {Name: cbc(aes), Key: 0xb99369e69c0116a6fc35124db975a619f10c54870b7db52130766d18ebc3592e}, Aead: <nil>, Encap: <nil>, ESN: false\n" category=IKE component=N3IWF what i'm missing ? ## To Reproduce Steps to reproduce the behavior: 1. Change config '...' no changes to default cfg files 2. Code patch '...' (You can fork the project and give us the patch diff you have modified) I just added a print in n3iwf.log of xfrmState to the code in file NFs/n3iwf/pkg/ike/handler/xfrm.go, just to see what is passed to FrmStateAdd when the code stuck 4. Run command '...' ./test.sh TestNon3GPP 5. Dump packet '...' ## Expected behavior A clear and concise description of what you expected to happen. TestNon3GPP completes correctly ## Environment (please complete the following information): - free5GC Version: [e.g. v3.1.0] - OS: e.g. Ubuntu 20.04 Server (running in an lxd container, but same behaviour on the host) - Kernel version: 5.4.0-107-generic - go version: go version go1.14.4 linux/amd64 - c compiler version (Option): gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1) ### Log File Provide the program log file here. n3iwf.log attached [n3iwf.log](https://github.com/free5gc/free5gc/files/8408694/n3iwf.log)
test Non3GPP fails
https://api.github.com/repos/free5gc/free5gc/issues/331/comments
8
2022-04-04T10:19:33Z
2023-07-17T04:10:34Z
https://github.com/free5gc/free5gc/issues/331
1,191,566,182
331
[ "free5gc", "free5gc" ]
Hi @free5gc-org WebConsole cannot correctly register the IMSI with a leading `0`. For example, `PLMN=00101`. According to the following code, `SUPI (IMSI)` specified on the `New Subscriber` screen is treated as a numerical value once, so if it is treated as a character string again, the leading `0` number will be deleted. `free5gc/webconsole/frontend/src/pages/Subscribers/SubscriberOverview.js` ``` async addSubscriber(subscriberData) { this.setState({ subscriberModalOpen: false }); let userNumber = subscriberData["userNumber"]; delete subscriberData["userNumber"]; let imsi = subscriberData["ueId"].substr(5, subscriberData["ueId"].length - 5); for(let i = 0; i < userNumber; i++){ --> let newImsi = Number(imsi) + i; subscriberData["ueId"] = `imsi-${newImsi}`; if (!await ApiHelper.createSubscriber(subscriberData)) { alert("Error creating new subscriber when create user"); } ApiHelper.fetchSubscribers().then(); } } ``` As a result, `imsi-001010000000001` when try to register the above, in fact `imsi-1010000000001` above another value will be registered. The IMSI as part of the subscriber information is registered correctly, but the incorrect `ueId` of the subscriber information is registered, and the DB cannot be searched correctly. Also, if `PLMN=20893`, such a problem does not occur. Therefore, WebConsole must add up to 6 digits of `0` (for MCC and MNC) once to the beginning of the `newImsi`, and then extract the last 15 digits of the IMSI, as shown below. This will prevent the `0` from being removed from the IMSI that contains a leading `0`. ``` --- SubscriberOverview.js.orig 2022-04-01 20:26:06.867594518 +0900 +++ SubscriberOverview.js 2022-04-02 17:32:57.504229887 +0900 @@ -43,6 +43,7 @@ let imsi = subscriberData["ueId"].substr(5, subscriberData["ueId"].length - 5); for(let i = 0; i < userNumber; i++){ let newImsi = Number(imsi) + i; + newImsi = ("000000" + newImsi).slice(-15); subscriberData["ueId"] = `imsi-${newImsi}`; if (!await ApiHelper.createSubscriber(subscriberData)) { alert("Error creating new subscriber when create user"); ``` In my environment, this change handles the IMSI with a leading `0` correctly. FYI.
[Bugs] WebConsole cannot correctly register the IMSI with a leading 0
https://api.github.com/repos/free5gc/free5gc/issues/330/comments
1
2022-04-02T11:19:57Z
2022-04-09T08:37:39Z
https://github.com/free5gc/free5gc/issues/330
1,190,602,901
330
[ "free5gc", "free5gc" ]
## Suggestion The default UPF config file is no more `free5gc/NFs/upf/build/config/upfcfg.yaml`, as reported here https://github.com/free5gc/free5gc/wiki/Installation#c-install-user-plane-function-upf looking at UPF logs, it seems to be `free5gc/config/upfcfg.yaml`
[Docs] Fix default UPF config file
https://api.github.com/repos/free5gc/free5gc/issues/329/comments
1
2022-04-01T16:46:44Z
2022-04-08T17:04:04Z
https://github.com/free5gc/free5gc/issues/329
1,190,046,073
329
[ "free5gc", "free5gc" ]
## Issue Description - AMF drops the packet if the padding bit is not 0 and disconnects SCTP. - Indeed, ITU-T X. 691 specifies that the padding bit is 0. - However, a RAN test kit may send NGAP packets with padding bits other than 0. - Even if the padding bit is not 0, there is no problem in the processing, so instead of making an error, I want to print a log and proceed. ### What's the version are you using free5GC v3.0.6 ### Is your feature request related to a problem? Please describe. No. ### Describe the solution you'd like I have sent a PR. [lib/aper](https://github.com/free5gc/aper/pull/2) ### Describe alternatives/workarounds you've considered Nothing. ### Additional context Nothing. ## Issue Template Checklist ### If willing to resolve an issue by submitting Pull request, please consider the points below. - [x] Yes, I have the time and I know how to start. - [ ] Yes, I have the time but I don't know how to start, I would need guidance. - [ ] No, I don't have the time, although I believe I could do it if I had the time... - [ ] No, I don't have the time and I wouldn't even know how to start.
[Feat] Enables AMF to accept not-perfect NGAP packets which have not 0 ASN.1 PER padding bit.
https://api.github.com/repos/free5gc/free5gc/issues/328/comments
1
2022-03-31T04:47:39Z
2022-04-01T11:59:34Z
https://github.com/free5gc/free5gc/issues/328
1,187,492,376
328
[ "free5gc", "free5gc" ]
Hello, I am using the latest nightly build of Free5GC, and I need to test non-3GPP based communication (ie. mock a UE connecting to the N3IWF). I started by trying to run TestNon3GPP using test.sh, but the test is stuck on marshaling bytes. I would appreciate any help that can be provided, thank you. My log is as follows: ``` 2022-03-24T17:24:30Z [INFO][UPF][Util] UPF log: /home/matanbroner/free5gc_/NFs/upf/build/log/upf.log 2022-03-24T17:24:30Z [INFO][UPF][Util] Config: /home/matanbroner/free5gc_/NFs/upf/build/config/upfcfg.test.yaml 2022-03-24T17:24:30Z [INFO][UPF][Util] UPF config version [1.0.0] 2022-03-24T17:24:30Z [INFO][UPF][Util] Set log level: info 2022-03-24T17:24:30Z [INFO][UPF][Util] DNN routes added, main routing table: 2022-03-24T17:24:30Z [INFO][UPF][Util] DstIp Gateway Iface Priority RtProto Type 2022-03-24T17:24:30Z [INFO][UPF][Util] 60.60.0.0 /24 0.0.0.0 upfgtp 0 static unicast 2022-03-24T17:24:30Z [INFO][UPF][Util] 10.200.200.0 /24 0.0.0.0 veth1 0 kernel unicast unable to write file on filehook open ../../free5gc/log/lib/nas.log: permission deniedunable to write file on filehook open ../../free5gc/log/lib/ngap.log: permission deniedunable to write file on filehook open ../../free5gc/log/nf/n3iwf.log: permission deniedunable to write file on filehook open ../../free5gc/log/nf/amf.log: permission deniedunable to write file on filehook open ../../free5gc/log/lib/fsm.log: permission deniedunable to write file on filehook open ../../free5gc/log/nf/ausf.log: permission deniedunable to write file on filehook open ../../free5gc/log/nf/nrf.log: permission deniedunable to write file on filehook open ../../free5gc/log/nf/nssf.log: permission deniedunable to write file on filehook open ../../free5gc/log/nf/pcf.log: permission deniedunable to write file on filehook open ../../free5gc/log/lib/pfcp.log: permission deniedunable to write file on filehook open ../../free5gc/log/nf/smf.log: permission deniedunable to write file on filehook open ../../free5gc/log/lib/util_3gpp.log: permission deniedunable to write file on filehook open ../../free5gc/log/nf/udm.log: permission deniedunable to write file on filehook open ../../free5gc/log/nf/udr.log: permission denied2022-03-24T17:24:35Z [INFO][NRF][Init] NRF Log level is set to [info] level 2022-03-24T17:24:35Z [INFO][LIB][Path] set log level : info 2022-03-24T17:24:35Z [INFO][LIB][Path] set report call : false 2022-03-24T17:24:35Z [INFO][LIB][OAPI] set log level : info 2022-03-24T17:24:35Z [INFO][LIB][OAPI] set report call : false 2022-03-24T17:24:35Z [INFO][LIB][MonDB] set log level : info 2022-03-24T17:24:35Z [INFO][LIB][MonDB] set report call : false 2022-03-24T17:24:35Z [INFO][NRF][CFG] config version [1.0.0] 2022-03-24T17:24:35Z [INFO][NRF][Init] Server started 2022-03-24T17:24:35Z [INFO][NRF][Init] nrfconfig Info: Version[1.0.0] Description[NRF initial local configuration] 2022-03-24T17:24:35Z [INFO][NRF][Init] Binding addr: [127.0.0.10:8000] 2022-03-24T17:24:35Z [INFO][AMF][Init] AMF Log level is set to [info] level 2022-03-24T17:24:35Z [INFO][LIB][NAS] set log level : info 2022-03-24T17:24:35Z [INFO][LIB][NAS] set report call : false 2022-03-24T17:24:35Z [INFO][LIB][NGAP] set log level : info 2022-03-24T17:24:35Z [INFO][LIB][NGAP] set report call : false 2022-03-24T17:24:35Z [INFO][LIB][FSM] set log level : info 2022-03-24T17:24:35Z [INFO][LIB][FSM] set report call : false 2022-03-24T17:24:35Z [INFO][LIB][Aper] set log level : info 2022-03-24T17:24:35Z [INFO][LIB][Aper] set report call : false 2022-03-24T17:24:35Z [INFO][LIB][Path] set log level : info 2022-03-24T17:24:35Z [INFO][LIB][Path] set report call : false 2022-03-24T17:24:35Z [INFO][LIB][OAPI] set log level : info 2022-03-24T17:24:35Z [INFO][LIB][OAPI] set report call : false 2022-03-24T17:24:35Z [INFO][AMF][CFG] config version [1.0.2] 2022-03-24T17:24:35Z [INFO][AMF][Init] Server started 2022-03-24T17:24:35Z [INFO][AMF][Util] amfconfig Info: Version[1.0.2] Description[AMF initial local configuration] 2022-03-24T17:24:35Z [INFO][AMF][NGAP] Listen on 192.168.56.101:38412 2022-03-24T17:24:35Z [INFO][NRF][MGMT] Handle NFRegisterRequest 2022-03-24T17:24:35Z [INFO][NRF][MGMT] urilist update 2022-03-24T17:24:35Z [INFO][NRF][MGMT] Create NF Profile 2022-03-24T17:24:35Z [INFO][NRF][MGMT] Location header: http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/5e68d51b-326b-4021-8e1d-30ed56b40879 2022-03-24T17:24:35Z [INFO][NRF][GIN] | 201 | 127.0.0.1 | PUT | /nnrf-nfm/v1/nf-instances/5e68d51b-326b-4021-8e1d-30ed56b40879 | 2022-03-24T17:24:35Z [INFO][SMF][Init] SMF Log level is set to [info] level 2022-03-24T17:24:35Z [INFO][LIB][NAS] set log level : info 2022-03-24T17:24:35Z [INFO][LIB][NAS] set report call : false 2022-03-24T17:24:35Z [INFO][LIB][NGAP] set log level : info 2022-03-24T17:24:35Z [INFO][LIB][NGAP] set report call : false 2022-03-24T17:24:35Z [INFO][LIB][Aper] set log level : info 2022-03-24T17:24:35Z [INFO][LIB][Aper] set report call : false 2022-03-24T17:24:35Z [INFO][LIB][Path] set log level : info 2022-03-24T17:24:35Z [INFO][LIB][Path] set report call : false 2022-03-24T17:24:35Z [INFO][LIB][OAPI] set log level : info 2022-03-24T17:24:35Z [INFO][LIB][OAPI] set report call : false 2022-03-24T17:24:35Z [INFO][LIB][PFCP] set log level : info 2022-03-24T17:24:35Z [INFO][LIB][PFCP] set report call : false 2022-03-24T17:24:35Z [INFO][SMF][CFG] SMF config version [1.0.2] 2022-03-24T17:24:35Z [INFO][SMF][CFG] UE-Routing config version [1.0.1] 2022-03-24T17:24:35Z [INFO][SMF][CTX] smfconfig Info: Version[1.0.2] Description[SMF initial local configuration] 2022-03-24T17:24:35Z [INFO][SMF][CTX] Endpoints: [10.200.200.102] 2022-03-24T17:24:35Z [INFO][SMF][Init] Server started 2022-03-24T17:24:35Z [INFO][NRF][MGMT] Handle NFRegisterRequest 2022-03-24T17:24:35Z [INFO][NRF][MGMT] urilist update 2022-03-24T17:24:35Z [INFO][NRF][MGMT] Create NF Profile 2022-03-24T17:24:35Z [INFO][NRF][MGMT] Location header: http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/a51e42e5-6d85-4aae-9105-a9e16fcfedb0 2022-03-24T17:24:35Z [INFO][NRF][GIN] | 201 | 127.0.0.1 | PUT | /nnrf-nfm/v1/nf-instances/a51e42e5-6d85-4aae-9105-a9e16fcfedb0 | 2022-03-24T17:24:35Z [INFO][SMF][Init] SMF Registration to NRF {a51e42e5-6d85-4aae-9105-a9e16fcfedb0 SMF REGISTERED 0 0xc000548540 0xc000548570 [] [] [127.0.0.2] [] <nil> [] [] <nil> 0 0 0 area1 <nil> <nil> <nil> <nil> 0xc000285580 <nil> <nil> <nil> <nil> <nil> map[] <nil> false 0xc000548438 false false []} 2022-03-24T17:24:35Z [INFO][SMF][PFCP] Listen on 10.200.200.1:8805 2022-03-24T17:24:35Z [INFO][SMF][App] Send PFCP Association Request to UPF[10.200.200.101] 2022-03-24T17:24:35Z [INFO][UPF][Util] [PFCP] Handle PFCP association setup request 2022-03-24T17:24:35Z [INFO][UPF][Util] [PFCP] Association Setup Response 2022-03-24T17:24:35Z [INFO][LIB][PFCP] Remove Request Transaction [1] 2022-03-24T17:24:35Z [INFO][SMF][PFCP] In HandlePfcpAssociationSetupResponse 2022-03-24T17:24:35Z [INFO][SMF][PFCP] Handle PFCP Association Setup Response with NodeID[10.200.200.101] 2022-03-24T17:24:35Z [INFO][SMF][PFCP] UPF(10.200.200.101)[internet] setup association 2022-03-24T17:24:36Z [INFO][UDR][Init] UDR Log level is set to [info] level 2022-03-24T17:24:36Z [INFO][LIB][Path] set log level : info 2022-03-24T17:24:36Z [INFO][LIB][Path] set report call : false 2022-03-24T17:24:36Z [INFO][LIB][OAPI] set log level : info 2022-03-24T17:24:36Z [INFO][LIB][OAPI] set report call : false 2022-03-24T17:24:36Z [INFO][LIB][MonDB] set log level : info 2022-03-24T17:24:36Z [INFO][LIB][MonDB] set report call : false 2022-03-24T17:24:36Z [INFO][UDR][CFG] config version [1.0.0] 2022-03-24T17:24:36Z [INFO][UDR][Init] UDR Config Info: Version[1.0.0] Description[UDR initial local configuration] 2022-03-24T17:24:36Z [INFO][UDR][Init] Server started 2022-03-24T17:24:36Z [INFO][UDR][Util] udrconfig Info: Version[1.0.0] Description[UDR initial local configuration] 2022-03-24T17:24:36Z [INFO][NRF][MGMT] Handle NFRegisterRequest 2022-03-24T17:24:36Z [INFO][NRF][MGMT] urilist update 2022-03-24T17:24:36Z [INFO][NRF][MGMT] Create NF Profile 2022-03-24T17:24:36Z [INFO][NRF][MGMT] Location header: http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/29a50bae-7542-4b04-9b34-7aafe1424491 2022-03-24T17:24:36Z [INFO][NRF][GIN] | 201 | 127.0.0.1 | PUT | /nnrf-nfm/v1/nf-instances/29a50bae-7542-4b04-9b34-7aafe1424491 | 2022-03-24T17:24:36Z [INFO][PCF][Init] PCF Log level is set to [info] level 2022-03-24T17:24:36Z [INFO][LIB][Path] set log level : info 2022-03-24T17:24:36Z [INFO][LIB][Path] set report call : false 2022-03-24T17:24:36Z [INFO][LIB][OAPI] set log level : info 2022-03-24T17:24:36Z [INFO][LIB][OAPI] set report call : false 2022-03-24T17:24:36Z [INFO][PCF][CFG] config version [1.0.0] 2022-03-24T17:24:36Z [INFO][PCF][Init] Server started 2022-03-24T17:24:36Z [INFO][PCF][Util] pcfconfig Info: Version[1.0.0] Description[PCF initial local configuration] 2022-03-24T17:24:36Z [INFO][NRF][MGMT] Handle NFRegisterRequest 2022-03-24T17:24:36Z [INFO][NRF][MGMT] urilist update 2022-03-24T17:24:36Z [INFO][NRF][MGMT] Create NF Profile 2022-03-24T17:24:36Z [INFO][NRF][MGMT] Location header: http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/3f7eb5e1-34d1-48e8-98d0-355929abe98f 2022-03-24T17:24:36Z [INFO][NRF][GIN] | 201 | 127.0.0.1 | PUT | /nnrf-nfm/v1/nf-instances/3f7eb5e1-34d1-48e8-98d0-355929abe98f | 2022-03-24T17:24:36Z [INFO][NRF][DSCV] Handle NFDiscoveryRequest 2022-03-24T17:24:36Z [INFO][NRF][GIN] | 200 | 127.0.0.1 | GET | /nnrf-disc/v1/nf-instances?requester-nf-type=PCF&service-names=nudr-dr&target-nf-type=UDR | 2022-03-24T17:24:36Z [INFO][UDM][Init] UDM Log level is set to [info] level 2022-03-24T17:24:36Z [INFO][LIB][Path] set log level : info 2022-03-24T17:24:36Z [INFO][LIB][Path] set report call : false 2022-03-24T17:24:36Z [INFO][LIB][OAPI] set log level : info 2022-03-24T17:24:36Z [INFO][LIB][OAPI] set report call : false 2022-03-24T17:24:36Z [INFO][UDM][CFG] config version [1.0.1] 2022-03-24T17:24:36Z [INFO][UDM][Init] UDM Config Info: Version[1.0.1] Description[UDM initial local configuration] 2022-03-24T17:24:36Z [INFO][UDM][Init] Server started 2022-03-24T17:24:36Z [INFO][UDM][Util] udmconfig Info: Version[1.0.1] Description[UDM initial local configuration] 2022-03-24T17:24:36Z [INFO][NRF][MGMT] Handle NFRegisterRequest 2022-03-24T17:24:36Z [INFO][NRF][MGMT] urilist update 2022-03-24T17:24:36Z [INFO][NRF][MGMT] Create NF Profile 2022-03-24T17:24:36Z [INFO][NRF][MGMT] Location header: http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/8b59b1e3-e91b-4ab4-8e0b-45f631eb4322 2022-03-24T17:24:36Z [INFO][NRF][GIN] | 201 | 127.0.0.1 | PUT | /nnrf-nfm/v1/nf-instances/8b59b1e3-e91b-4ab4-8e0b-45f631eb4322 | 2022-03-24T17:24:36Z [INFO][NSSF][Init] NSSF Log level is set to [info] level 2022-03-24T17:24:36Z [INFO][LIB][Path] set log level : info 2022-03-24T17:24:36Z [INFO][LIB][Path] set report call : false 2022-03-24T17:24:36Z [INFO][LIB][OAPI] set log level : info 2022-03-24T17:24:36Z [INFO][LIB][OAPI] set report call : false 2022-03-24T17:24:36Z [INFO][NSSF][CFG] config version [1.0.0] 2022-03-24T17:24:36Z [INFO][NSSF][Init] Server started 2022-03-24T17:24:36Z [INFO][NRF][MGMT] Handle NFRegisterRequest 2022-03-24T17:24:36Z [INFO][NRF][MGMT] urilist update 2022-03-24T17:24:36Z [INFO][NRF][MGMT] Create NF Profile 2022-03-24T17:24:36Z [INFO][NRF][MGMT] Location header: http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/e22995c1-217d-4f30-9cad-f8f6fe8ae793 2022-03-24T17:24:36Z [INFO][NRF][GIN] | 201 | 127.0.0.1 | PUT | /nnrf-nfm/v1/nf-instances/e22995c1-217d-4f30-9cad-f8f6fe8ae793 | 2022-03-24T17:24:36Z [INFO][AUSF][Init] AUSF Log level is set to [info] level 2022-03-24T17:24:36Z [INFO][LIB][Path] set log level : info 2022-03-24T17:24:36Z [INFO][LIB][Path] set report call : false 2022-03-24T17:24:36Z [INFO][LIB][OAPI] set log level : info 2022-03-24T17:24:36Z [INFO][LIB][OAPI] set report call : false 2022-03-24T17:24:36Z [INFO][AUSF][CFG] config version [1.0.0] 2022-03-24T17:24:36Z [INFO][AUSF][Init] Server started 2022-03-24T17:24:36Z [INFO][AUSF][Init] ausfconfig Info: Version[1.0.0] Description[AUSF initial local configuration] ausf context = &{{{0 0} {<nil>} map[] 0} {{0 0} {<nil>} map[] 0} b8cf01a9-2a0d-4d26-ac53-e8c51710568a ausfGroup001 8000 127.0.0.9 127.0.0.9 http://127.0.0.9:8000 http http://127.0.0.10:8000 map[nausf-auth:{b8cf01a9-2a0d-4d26-ac53-e8c51710568a nausf-auth 0xc0000fbd70 http REGISTERED 0xc0000fbd58 [] <nil> [] [] <nil> 0 0 0 <nil> <nil> }] [{208 93} {123 45}] 0xc0000bb5e0 false} 2022-03-24T17:24:36Z [INFO][NRF][MGMT] Handle NFRegisterRequest 2022-03-24T17:24:36Z [INFO][NRF][MGMT] urilist update 2022-03-24T17:24:36Z [INFO][NRF][MGMT] Create NF Profile 2022-03-24T17:24:36Z [INFO][NRF][MGMT] Location header: http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/b8cf01a9-2a0d-4d26-ac53-e8c51710568a 2022-03-24T17:24:36Z [INFO][NRF][GIN] | 201 | 127.0.0.1 | PUT | /nnrf-nfm/v1/nf-instances/b8cf01a9-2a0d-4d26-ac53-e8c51710568a | === RUN TestCN 2022-03-24T17:24:43Z [INFO][N3IWF][App] n3iwf 2022-03-24T17:24:43Z [INFO][N3IWF][App] N3IWF version: Not specify ldflags (which link version) during go build go version: go1.16.7 linux/amd64 2022-03-24T17:24:43Z [INFO][N3IWF][Init] N3IWF Log level is set to [debug] level 2022-03-24T17:24:43Z [INFO][LIB][NGAP] set log level : info 2022-03-24T17:24:43Z [INFO][LIB][NGAP] set report call : false 2022-03-24T17:24:43Z [INFO][LIB][Aper] set log level : info 2022-03-24T17:24:43Z [INFO][LIB][Aper] set report call : false 2022-03-24T17:24:43Z [INFO][LIB][Path] set log level : info 2022-03-24T17:24:43Z [INFO][LIB][Path] set report call : false 2022-03-24T17:24:43Z [INFO][N3IWF][CFG] config version [1.0.0] 2022-03-24T17:24:43Z [INFO][N3IWF][Init] Server started 2022-03-24T17:24:43Z [WARN][N3IWF][Context] No private key file path specified, load default key file... 2022-03-24T17:24:43Z [WARN][N3IWF][Context] Parse PKCS8 private key failed: x509: failed to parse private key (use ParsePKCS1PrivateKey instead for this key format) 2022-03-24T17:24:43Z [INFO][N3IWF][Context] Parse using PKCS1... 2022-03-24T17:24:43Z [WARN][N3IWF][Context] No certificate authority file path specified, load default CA certificate... 2022-03-24T17:24:43Z [WARN][N3IWF][Context] No certificate file path specified, load default certificate... 2022-03-24T17:24:43Z [INFO][AMF][NGAP] [AMF] SCTP Accept from: 192.168.56.101/10.0.2.15/192.168.58.101/60.60.0.1/10.200.200.1/10.200.200.2/192.168.127.1/10.0.0.1:50425 2022-03-24T17:24:43Z [INFO][N3IWF][Init] NGAP service running. 2022-03-24T17:24:43Z [INFO][N3IWF][Init] NAS TCP server successfully started. 2022-03-24T17:24:43Z [INFO][N3IWF][Init] Listening NWu user plane traffic 2022-03-24T17:24:43Z [INFO][N3IWF][Init] IKE service running. 2022-03-24T17:24:43Z [INFO][N3IWF][Init] N3IWF running... 2022-03-24T17:24:43Z [INFO][N3IWF][NGAP] [N3IWF] Send NG Setup Request 2022-03-24T17:24:43Z [INFO][AMF][NGAP] Create a new NG connection for: 192.168.56.101/10.0.2.15/192.168.58.101/60.60.0.1/10.200.200.1/10.200.200.2/192.168.127.1/10.0.0.1:50425 2022-03-24T17:24:43Z [INFO][AMF][NGAP][192.168.56.101/10.0.2.15/192.168.58.101/60.60.0.1/10.200.200.1/10.200.200.2/192.168.127.1/10.0.0.1:50425] Handle NG Setup request 2022-03-24T17:24:43Z [INFO][AMF][NGAP][192.168.56.101/10.0.2.15/192.168.58.101/60.60.0.1/10.200.200.1/10.200.200.2/192.168.127.1/10.0.0.1:50425] Send NG-Setup response 2022-03-24T17:24:43Z [INFO][N3IWF][NGAP] [N3IWF] Handle NG Setup Response MongoDB Set === RUN TestNon3GPPUE 2022-03-24T17:24:49Z [INFO][N3IWF][IKE] Encoding IKE message 2022-03-24T17:24:49Z [INFO][N3IWF][IKE] Encoding IKE payloads 2022-03-24T17:24:49Z [INFO][N3IWF][IKE] [SecurityAssociation] marshal(): Start marshalling 2022-03-24T17:24:49Z [INFO][N3IWF][IKE] [KeyExchange] marshal(): Start marshalling 2022-03-24T17:24:49Z [INFO][N3IWF][IKE] [Nonce] marshal(): Start marshalling ```
Testing TestNon3GPP stuck?
https://api.github.com/repos/free5gc/free5gc/issues/327/comments
2
2022-03-24T17:37:26Z
2022-03-31T16:25:23Z
https://github.com/free5gc/free5gc/issues/327
1,179,826,820
327
[ "free5gc", "free5gc" ]
## Describe the bug The profiles of all NFs are deregistered at the NF termination, but the "href" element remains in the "urilist" collection in mongodb. Therefore, "href" increases every time it starts. ## To Reproduce 1. Clear the contents of MongoDB. ``` $ mongo free5gc > db.dropDatabase() { "dropped" : "free5gc", "ok" : 1 } > ``` 2. Run ./test.sh TestRegistration 3. See "urilist" in MongoDB. ``` $ mongo free5gc > db.urilist.find() { "_id" : ObjectId("62392f65ce950983572692c5"), "nfType" : "AMF", "_link" : { "item" : [ { "href" : "http://127.0.0.10:8000/nnrf-nfm/v1/nf-instances/100b1ecb-2f72-4e0f-a46e-969f0bcdb453" } ] } }   : ``` 4. By repeating 2-3, you can see that "href" is not deleted, but is increasing. ## Expected behavior When NF terminated, "href" of "urilist" is deleted. ## Environment (please complete the following information): - free5GC Version: v3.0.6 - OS: Ubuntu 18.04 - Kernel version: 5.0.0-23-generic - go version go1.14.4 linux/amd64 ## Pull Request Pull Requests for the fix. [lib/MongoDBLibrary](https://github.com/free5gc/MongoDBLibrary/pull/1) [nrf](https://github.com/free5gc/nrf/pull/4) Note: If you don't include the Pull Request from MongoDBLilibrary, you won't be able to compile NRF.
[Bugs] When NF is terminated, the "href" element remains in the "urilist" collection in mongodb.
https://api.github.com/repos/free5gc/free5gc/issues/326/comments
1
2022-03-23T07:22:08Z
2022-04-01T03:54:24Z
https://github.com/free5gc/free5gc/issues/326
1,177,715,476
326
[ "free5gc", "free5gc" ]
## Describe the bug When receiving an Initial Registration Request from the UE using 5G-GUTI, the AMF returned a Registration Accept using the 5G-GUTI configured in the Initial Registration Request and did not update the 5G-GUTI. According to the following description, 5G-GUTI must be updated. cf. TS 33.501 6.12.3 Subscription temporary identifier > Upon receiving Registration Request message of type "initial registration" or "mobility registration update" from a UE, the AMF shall send a new 5G-GUTI to the UE in the registration procedure. ## To Reproduce 1. Run test.sh -o TestGUTIRegistration 2. Check the pcap after the test is finished. When an Initial Registration Request (Second Registration) was received, a Registration Accept was returned in the same 5G-GUTI IE. ## Expected behavior The updated 5G-GUTI is set to Registration Accept. ## Environment (please complete the following information): - free5GC Version: v3.0.6 - OS: Ubuntu 18.04 - Kernel version: 5.0.0-23-generic - go version go1.14.4 linux/amd64 ## Pull Request Pull Requests for the fix. [amf](https://github.com/free5gc/amf/pull/66) [lib/idgenerator](https://github.com/free5gc/idgenerator/pull/1)
[Bugs] The 5G-GUTI on the Registration Accept for the Initial Registration Request has not been updated.
https://api.github.com/repos/free5gc/free5gc/issues/325/comments
1
2022-03-23T06:40:10Z
2022-03-31T08:20:39Z
https://github.com/free5gc/free5gc/issues/325
1,177,666,640
325
[ "free5gc", "free5gc" ]
How do we trigger new PDU Session Resource Setup Request from AMF for different 5QIs. please let us know if any documentation available to refer 3GPP TS 38.413 V15.13.0 Section 8.2.1.2
[Question] How to trigger network (from AMF) initiated PDU SESSION RESOURCE SETUP REQUEST
https://api.github.com/repos/free5gc/free5gc/issues/324/comments
2
2022-03-21T09:39:05Z
2023-07-05T06:57:11Z
https://github.com/free5gc/free5gc/issues/324
1,175,121,859
324
[ "free5gc", "free5gc" ]
![image](https://user-images.githubusercontent.com/94370670/159103368-2bb53ee0-f346-47c3-bb9d-89f8b95677bd.png) I followed the step and cloned the gtp5g ,but it throwed this error. How to work it out?
problem with gtp5g
https://api.github.com/repos/free5gc/free5gc/issues/323/comments
0
2022-03-19T02:31:45Z
2022-03-19T02:45:52Z
https://github.com/free5gc/free5gc/issues/323
1,174,149,523
323
[ "free5gc", "free5gc" ]
## Describe the bug * Multiple UEs are registered to 5GC via same gNB. * This gNB is down. * Some UEs become idle, but some UEs are not idle. ## Expected behavior All UEs are idle. ## Environment (please complete the following information): - free5GC Version: 3.0.5 - OS: Ubuntu 20.04 - go version: 1.14
[Bugs] Some UEs are not idled when gNB down
https://api.github.com/repos/free5gc/free5gc/issues/322/comments
0
2022-03-17T04:55:42Z
2022-03-22T07:30:06Z
https://github.com/free5gc/free5gc/issues/322
1,171,932,528
322
[ "free5gc", "free5gc" ]
Hello, I am trying install the 5G core on AWS and i get this error with build ![Screenshot 2022-03-16 at 4 54 01 pm](https://user-images.githubusercontent.com/34620715/158645054-e40b2d78-051a-4363-b3d7-150abd1a8c63.png) )
Install free5gc on AWS VM
https://api.github.com/repos/free5gc/free5gc/issues/321/comments
1
2022-03-16T16:55:46Z
2022-05-25T10:20:08Z
https://github.com/free5gc/free5gc/issues/321
1,171,291,602
321
[ "free5gc", "free5gc" ]
## Describe the bug COMMIT_TIME of the Makefile is incorrect when the local time zone is not UTC. ## To Reproduce 1. Compile network function services in free5gc ``` $ cd ~/free5gc # make Start building amf.... cd NFs/amf && \ CGO_ENABLED=0 go build -gcflags "" -ldflags "-X github.com/free5gc/version.VERSION=v3.0.6-10-gfa56062 -X github.com/free5gc/version.BUILD_TIME=2022-03-08T08:54:07Z -X github.com/free5gc/version.COMMIT_HASH=+5e6d957 -X github.com/free5gc/version.COMMIT_TIME=2022-03-01T16:25:59Z" -o /home/l5gc/free5gc/bin/amf amf.go : ``` The option "-X github.com/free5gc/version.COMMIT_TIME=2022-03-01T16:25:59Z" is incorrect, "2022-03-01T07:25:59Z" is correct. ## Expected behavior The value converted to UTC is set to COMMIT_TIME. ## Environment (please complete the following information): - free5GC Version: v3.0.6 - OS: Ubuntu 18.04 - Kernel version: 5.0.0-23-generic - go version go1.14.4 linux/amd64 ## Pull Request [Pull Request](https://github.com/free5gc/free5gc/pull/319) for the fix.
[Bugs] COMMIT_TIME of the Makefile is incorrect when the local time zone is not UTC.
https://api.github.com/repos/free5gc/free5gc/issues/320/comments
3
2022-03-09T02:12:13Z
2022-03-22T06:57:00Z
https://github.com/free5gc/free5gc/issues/320
1,163,408,208
320
[ "free5gc", "free5gc" ]
I was following the process https://www.free5gc.org/installations/stage-3-free5gc-install/ But get fail state in ./test.sh TestRegistration Environment (please complete the following information): free5GC Version: v3.0.6 OS: Ubuntu 20.0.04 Kernel version: 5.4.0-100-generic go version: go version go1.15.8 linux/amd64 Error logs: === RUN TestRegistration registration_test.go:50: Error Trace: registration_test.go:50 Error: Expected nil, but got: 0x6f Test: TestRegistration --- FAIL: TestRegistration (0.00s) panic: runtime error: invalid memory address or nil pointer dereference [recovered] panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xda2397] goroutine 169 [running]: testing.tRunner.func1.1(0x1545a00, 0x22d3250) /usr/local/go/src/testing/testing.go:1072 +0x30d testing.tRunner.func1(0xc000552780) /usr/local/go/src/testing/testing.go:1075 +0x41a panic(0x1545a00, 0x22d3250) /usr/local/go/src/runtime/panic.go:969 +0x1b9 git.cs.nctu.edu.tw/calee/sctp.(*SCTPConn).fd(...) /home/noah/go/pkg/mod/git.cs.nctu.edu.tw/calee/[email protected]/sctp.go:430 git.cs.nctu.edu.tw/calee/sctp.(*SCTPConn).SCTPWrite(0x0, 0xc0004ff200, 0x39, 0x40, 0x0, 0x0, 0x0, 0x1) /home/noah/go/pkg/mod/git.cs.nctu.edu.tw/calee/[email protected]/sctp_linux.go:88 +0x57 git.cs.nctu.edu.tw/calee/sctp.(*SCTPConn).Write(...) /home/noah/go/pkg/mod/git.cs.nctu.edu.tw/calee/[email protected]/sctp.go:442 test_test.TestRegistration(0xc000552780) /home/noah/free5gc/test/registration_test.go:59 +0x299 testing.tRunner(0xc000552780, 0x17b3c98) /usr/local/go/src/testing/testing.go:1123 +0xef created by testing.(*T).Run /usr/local/go/src/testing/testing.go:1168 +0x2b3 exit status 2 FAIL test 1.687s
Can't pass any test, TestRegistration
https://api.github.com/repos/free5gc/free5gc/issues/318/comments
11
2022-03-04T15:12:42Z
2022-04-05T07:22:15Z
https://github.com/free5gc/free5gc/issues/318
1,159,751,135
318
[ "free5gc", "free5gc" ]
Using free5gc v3.0.6 and UERANSIM. Here how can we trigger network-initiated UE release...
How can we trigger network initiated UE release..
https://api.github.com/repos/free5gc/free5gc/issues/317/comments
1
2022-03-03T13:59:18Z
2023-07-05T06:57:06Z
https://github.com/free5gc/free5gc/issues/317
1,158,443,378
317