Network Function

,

I modify the ip address and replace them with my private range
AMF WORD:
10.200.200.1 --> 10.0.200.1

SMF WORD:

pfcp : 10.200.200.1 --> 10.0.200.1
BranchingUPF:
type: UPF
node_id: 10.200.200.102 --> 10.0.200.102
AnchorUPF1:
type: UPF
node_id: 10.200.200.101 --> 10.0.200.101
AnchorUPF2:
type: UPF
node_id: 10.200.200.103 --> 10.0.200.103

n3iwfcf WORD:

AMFAddress:
- IP: 10.200.200.1 --> 10.0.200.1
GTPBindAddress:
10.200.200.2 --> 10.0.200.2

UPF WORD :

pfcp:
- addr: 10.200.200.101 --> 10.0.200.101
gtpu:
- addr: 10.200.200.102 --> 10.0.200.102

when I try to run AMF and other function :
INFO[2020-06-03T14:34:34Z]/src/amf/amf.go:25 main.main() amf AMF=app
INFO[2020-06-03T14:34:34Z]/src/amf/amf.go:26 main.main() AMF version: 2020-03-31-01 AMF=app
CommonConfig file: config/free5GC.conf
INFO[2020-06-03T14:34:34Z]/lib/nas/logger/logger.go:45 free5gc/lib/nas/logger.SetLogLevel() set log level : info NAS=message
INFO[2020-06-03T14:34:34Z]/lib/nas/logger/logger.go:50 free5gc/lib/nas/logger.SetReportCaller() set report call : true NAS=message
INFO[2020-06-03T14:34:34Z]/lib/fsm/logger/logger.go:43 free5gc/lib/fsm/logger.SetLogLevel() set log level : info fsm=fsm
INFO[2020-06-03T14:34:34Z]/lib/fsm/logger/logger.go:48 free5gc/lib/fsm/logger.SetReportCaller() set report call : true fsm=fsm
INFO[2020-06-03T14:34:34Z]/lib/ngap/logger/logger.go:43 free5gc/lib/ngap/logger.SetLogLevel() set log level : info NGAP=NGAP
INFO[2020-06-03T14:34:34Z]/lib/ngap/logger/logger.go:48 free5gc/lib/ngap/logger.SetReportCaller() set report call : true NGAP=NGAP
INFO[2020-06-03T14:34:34Z]/lib/Namf_Communication/logger/logger.go:43 free5gc/lib/Namf_Communication/logger.SetLogLevel() set log level : info Namf=Comm
INFO[2020-06-03T14:34:34Z]/lib/Namf_Communication/logger/logger.go:48 free5gc/lib/Namf_Communication/logger.SetReportCaller() set report call : true Namf=Comm
INFO[2020-06-03T14:34:34Z]/lib/Namf_EventExposure/logger/logger.go:43 free5gc/lib/Namf_EventExposure/logger.SetLogLevel() set log level : info Namf=Event
INFO[2020-06-03T14:34:34Z]/lib/Namf_EventExposure/logger/logger.go:48 free5gc/lib/Namf_EventExposure/logger.SetReportCaller() set report call : true Namf=Event
.
.
AMF register to NRF Error[Put https://localhost:29510/nnrf-nfm/v1/nf-instances/c96a8d7f-9d37-458a-8577-ee4ec0be757b: dial tcp 127.0.0.1:29510: connect: connection refused]
AMF register to NRF Error[Put https://localhost:29510/nnrf-nfm/v1/nf-instances/c96a8d7f-9d37-458a-8577-ee4ec0be757b: dial tcp 127.0.0.1:29510: connect: connection refused]

When I try to test TestRegistration it show me this :
INFO[2020-06-03T14:32:51Z] c/upf/src/upf_init.c:35 UpfInit() Config: /root/go/src/free5gc/src/upf/build/config/upfcfg.test.yaml UPF=Util
INFO[2020-06-03T14:32:51Z] Set log level: info UPF=Util
ERRO[2020-06-03T14:32:51Z] c/upf/lib/utlt/src/utlt_socket.c:142 SockBind() Socket bind fail : Cannot assign requested address UPF=Util
ERRO[2020-06-03T14:32:51Z] c/upf/lib/utlt/src/utlt_epoll.c:30 EpollRegisterEvent() Socket -1 register event in epoll error : Bad file descriptor UPF=Util
ERRO[2020-06-03T14:32:51Z] c/upf/lib/gtpv1/src/gtp_path.c:148 GtpDevListCreate() GTPv1 tunnel register to epoll fail : IP[10.0.200.102] UPF=Util
ERRO[2020-06-03T14:32:51Z] c/upf/src/up/up_path.c:74 GTPv1ServerInit() GtpLinkListCreate Fail UPF=Util
ERRO[2020-06-03T14:32:51Z] c/upf/src/upf.c:32 main() UPF failed to initialize UPF=Util
INFO[2020-06-03T14:32:51Z] c/upf/src/upf_init.c:85 UpfTerminate() Terminating UPF… UPF=Util
ERRO[2020-06-03T14:32:51Z] c/upf/src/up/up_path.c:233 BufferServerTerminate() epoll deregister error UPF=Util
ERRO[2020-06-03T14:32:51Z] c/upf/src/upf_init.c:88 UpfTerminate() Buffer Sock resource free failed UPF=Util
INFO[2020-06-03T14:32:51Z] c/upf/src/up/up_path.c:52 UpRouteTerminate() Removing APN routes UPF=Util
ERRO[2020-06-03T14:32:51Z] c/upf/lib/knet/src/route.c:188 AddKnetDelRoute() mnl_cb_run, run as root? UPF=Util
ERRO[2020-06-03T14:32:51Z] c/upf/src/upf_init.c:91 UpfTerminate() GTP routes removal failed UPF=Util
ERRO[2020-06-03T14:32:51Z] c/upf/lib/pfcp/src/pfcp_xact.c:53 PfcpXactTerminate() PFCP Xact already finalized UPF=Util
ERRO[2020-06-03T14:32:51Z] c/upf/src/upf_init.c:94 UpfTerminate() PFCP Transaction terminate failed UPF=Util
ERRO[2020-06-03T14:32:51Z] c/upf/lib/utlt/src/utlt_epoll.c:58 EpollDeregisterEvent() Socket -1 delete event in epoll error : Bad file descriptor UPF=Util
ERRO[2020-06-03T14:32:51Z] c/upf/lib/gtpv1/src/gtp_path.c:162 GtpDevListFree() GTPv1 tunnel deregister to epoll fail : IP[10.0.200.102] UPF=Util
ERRO[2020-06-03T14:32:51Z] c/upf/lib/utlt/src/utlt_socket.c:65 SockFree() Pool is full, it may not belong to this pool UPF=Util
INFO[2020-06-03T14:32:51Z] c/upf/src/upf_init.c:225 PacketReceiverThread() Packet receiver thread terminated UPF=Util
INFO[2020-06-03T14:32:51Z] c/upf/src/upf_init.c:119 UpfTerminate() UPF failed to terminate UPF=Util
ERRO[2020-06-03T14:32:51Z] c/upf/src/upf.c:40 main() UPF terminate error UPF=Util
Cannot find device “upfgtp0”
.
.
.
ERRO[2020-06-03T19:17:42Z]/root/go/src/free5gc/src/smf/smf_pfcp/pfcp_udp/smf_pfcp_udp.go:34 free5gc/src/smf/smf_pfcp/pfcp_udp.Run() Failed to listen: listen udp 10.0.200.1:8805: bind: cannot assign requested address SMF=pfcp
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x10eee3e]

goroutine 39 [running]:
net.(*conn).ok(…)
/usr/local/go/src/net/net.go:168
net.(*conn).LocalAddr(…)
/usr/local/go/src/net/net.go:212
free5gc/src/smf/smf_pfcp/pfcp_udp.Run()
/root/go/src/free5gc/src/smf/smf_pfcp/pfcp_udp/smf_pfcp_udp.go:36 +0xfe
free5gc/src/smf/smf_service.(*SMF).Start(0x282e620)
/root/go/src/free5gc/src/smf/smf_service/smf_init.go:143 +0x163
created by free5gc/src/test_test.init.0
/root/go/src/free5gc/src/test/ngsetup_test.go:66 +0x22b
exit status 2
FAIL free5gc/src/test 13.673s
free5gc-upfd: no process found

root@free5g:~/go/src/free5gc# ping 10.0.0.1
PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
From 10.0.172.103 icmp_seq=1 Destination Host Unreachable
From 10.0.172.103 icmp_seq=2 Destination Host Unreachable
From 10.0.172.103 icmp_seq=3 Destination Host Unreachable
From 10.0.172.103 icmp_seq=4 Destination Host Unreachable
the ping to network function IP address also show Destination Host Unreachable

ANY SOLUTION FOR THIS PROBLEM PLEASE ?
THANK YOU FOR YOUR SUPPORT

Hi,
For your first question: when I try to run AMF and other function, it shows “register to NRF error”

This is because every NF should register itself to NRF when it start. So if you want to run each NF individually, you should ensure that there is one NRF is running in your system.

The other issue is that each NF preconfigures its own NRF URI for registration. For example,
in amfcfg.conf line 40:

nrfUri: http://localhost:29510

This means that if you changes the IP address (or port number) for NRF, you should modify nrfUri to match your configuration.

For your second question that TestRegistration failed, this is because test.sh and src/test/registration_test.go set some IP addresses. It means that if you want to run test with your own subne, you need to not only modify NF config but also test.sh and src/test/registration_test.go

Thank you I resolve the problem of registration
but the running of AMF

./bin/amf

give me the same error
NOTE : i dosen’t change any local address or port

You need to run NRF first then run the other NFs, you can not just run AMF (also SMF, AUSF, NSSF, etc.)

Thank you sir, the test work
But i have a problem of connection
i modify the NF address in my range 10.0.0.0/16
ens3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 51.75.168.227 netmask 255.255.255.255 broadcast 0.0.0.0
inet6 fe80::f816:3eff:fe06:cee5 prefixlen 64 scopeid 0x20
ether fa:16:3e:06:ce:e5 txqueuelen 1000 (Ethernet)
RX packets 544963 bytes 285126750 (285.1 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 369897 bytes 79670883 (79.6 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

ens4: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.172.103 netmask 255.255.0.0 broadcast 10.0.255.255
inet6 fe80::f816:3eff:fecb:7375 prefixlen 64 scopeid 0x20
ether fa:16:3e:cb:73:75 txqueuelen 1000 (Ethernet)
RX packets 6719 bytes 2164090 (2.1 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 47589 bytes 2005018 (2.0 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 121146 bytes 15684151 (15.6 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 121146 bytes 15684151 (15.6 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

when I ping each NFs ; it show me Destination Host Unreachable
what can I do or modify in this Case ?
Thank You so much for your best solution

Dear @lahbak,

If you are not running test script, free5GC program will not auto set the ip address for you.
You may need to set the ip address yourself or our program cannot success binding on the address and will stop running.

1 Like

it work
for webconsole for dashboard part i find this message :

Real Time Status

Fetch Registered UE Request fail

What should i do to make this test sucessful ?
Thank you a lot for your support