Commit ca1b91c0 authored by liuyu's avatar liuyu

concourrence is ok

parent c4c3269b
[2023-12-19 09:25:48.889] [smf_app] [start] Options parsed
[2023-12-19 09:25:48.891] [smf_app] [info] SettingNotFoundException : SMF.ITTI_TASKS, using defaults
[2023-12-19 09:25:48.892] [smf_app] [info] SettingNotFoundException : SMF.INTERFACES.N4.SCHED_PARAMS, using defaults
[2023-12-19 09:25:48.892] [smf_app] [info] SettingNotFoundException : SMF.INTERFACES.SBI.SCHED_PARAMS, using defaults
[2023-12-19 09:25:48.893] [smf_app] [warning] Local PCC rules feature is not yet supported, the default values from the config file are used.
[2023-12-19 09:25:48.893] [smf_app] [debug] NWI config found for UP node:- Nwi access: access.oai.org , Nwi core: core.oai.org
[2023-12-19 09:25:48.893] [smf_app] [info] ==== OAI-CN5G SMF vBranch: liuyu_state Abrev. Hash: c4c3269b Date: Wed Dec 13 15:17:31 2023 +0800 ====
[2023-12-19 09:25:48.894] [smf_app] [info] Configuration SMF:
[2023-12-19 09:25:48.894] [smf_app] [info] - Instance ..............: 1
[2023-12-19 09:25:48.894] [smf_app] [info] - PID dir ...............: /var/run
[2023-12-19 09:25:48.894] [smf_app] [info] - N4 Networking:
[2023-12-19 09:25:48.894] [smf_app] [info] Interface name ......: ens18
[2023-12-19 09:25:48.894] [smf_app] [info] IPv4 Addr ...........: 10.103.239.31
[2023-12-19 09:25:48.894] [smf_app] [info] Port ................: 8805
[2023-12-19 09:25:48.894] [smf_app] [info] - SBI Networking:
[2023-12-19 09:25:48.894] [smf_app] [info] Interface name ......: ens18
[2023-12-19 09:25:48.894] [smf_app] [info] IPv4 Addr ...........: 10.103.239.31
[2023-12-19 09:25:48.894] [smf_app] [info] Port ................: 90
[2023-12-19 09:25:48.894] [smf_app] [info] HTTP2 port ..........: 9090
[2023-12-19 09:25:48.894] [smf_app] [info] API version..........: v1
[2023-12-19 09:25:48.894] [smf_app] [info] - AMF:
[2023-12-19 09:25:48.894] [smf_app] [info] IPv4 Addr ...........: 127.0.0.99
[2023-12-19 09:25:48.894] [smf_app] [info] Port ................: 8004
[2023-12-19 09:25:48.894] [smf_app] [info] API version .........: v1
[2023-12-19 09:25:48.894] [smf_app] [info] - UPF:
[2023-12-19 09:25:48.894] [smf_app] [info] IPv4 Addr ...........: 10.103.238.93
[2023-12-19 09:25:48.894] [smf_app] [info] - DEFAULT DNS:
[2023-12-19 09:25:48.894] [smf_app] [info] Primary DNS .........: 114.114.114.114
[2023-12-19 09:25:48.894] [smf_app] [info] Secondary DNS .......: 8.8.8.8
[2023-12-19 09:25:48.894] [smf_app] [info] Primary DNS v6 ......: 2001:4860:4860::8888
[2023-12-19 09:25:48.894] [smf_app] [info] Secondary DNS v6 ....: 2001:4860:4860::8844
[2023-12-19 09:25:48.894] [smf_app] [info] - CSCF:
[2023-12-19 09:25:48.894] [smf_app] [info] CSCF IPv4 ...........: 127.0.0.1
[2023-12-19 09:25:48.894] [smf_app] [info] CSCF IPv6 ...........: fe80::7915:f408:1787:db8b
[2023-12-19 09:25:48.894] [smf_app] [info] - Default UE MTU: 1500
[2023-12-19 09:25:48.894] [smf_app] [info] - Supported Features:
[2023-12-19 09:25:48.894] [smf_app] [info] Register to NRF.....................: No
[2023-12-19 09:25:48.894] [smf_app] [info] Discover UPF........................: No
[2023-12-19 09:25:48.894] [smf_app] [info] Discover PCF........................: No
[2023-12-19 09:25:48.896] [smf_app] [info] Use Local Subscription Configuration: Yes
[2023-12-19 09:25:48.896] [smf_app] [info] Use Local PCC Rules: ...............: Yes
[2023-12-19 09:25:48.896] [smf_app] [info] Push PCO (DNS+MTU)..................: No
[2023-12-19 09:25:48.897] [smf_app] [info] Use FQDN ...........................: No
[2023-12-19 09:25:48.897] [smf_app] [info] ENABLE USAGE REPORTING..............: No
[2023-12-19 09:25:48.897] [smf_app] [info] ENABLE DL PDR IN PFCP SESSION ESTAB.: No
[2023-12-19 09:25:48.897] [smf_app] [info] UPF N3 LOCAL ADDRESS ...............:
[2023-12-19 09:25:48.897] [smf_app] [info] - DNN configurations:
[2023-12-19 09:25:48.897] [smf_app] [info] DNN..........: ctnet (IPV4V6)
[2023-12-19 09:25:48.897] [smf_app] [info] IPv4 pool: 192.169.0.3 - 192.169.199.253
[2023-12-19 09:25:48.897] [smf_app] [info] IPv6 pool: 4001:1:2::/64
[2023-12-19 09:25:48.897] [smf_app] [info] DNN..........: default (IPV4)
[2023-12-19 09:25:48.897] [smf_app] [info] IPv4 pool: 192.169.0.3 - 192.169.199.253
[2023-12-19 09:25:48.897] [smf_app] [info] DNN..........: ims (IPV4V6)
[2023-12-19 09:25:48.897] [smf_app] [info] IPv4 pool: 192.169.200.2 - 192.169.255.253
[2023-12-19 09:25:48.897] [smf_app] [info] IPv6 pool: 3001:1:2::/64
[2023-12-19 09:25:48.897] [smf_app] [info] DNN..........: internet (IPV4)
[2023-12-19 09:25:48.897] [smf_app] [info] IPv4 pool: 192.169.0.3 - 192.169.199.253
[2023-12-19 09:25:48.897] [smf_app] [info] - Local Subscription Configuration:
[2023-12-19 09:25:48.897] [smf_app] [info] Session Management Subscription Data 0:
[2023-12-19 09:25:48.897] [smf_app] [info] SST: 1
[2023-12-19 09:25:48.897] [smf_app] [info] DNN: default
[2023-12-19 09:25:48.897] [smf_app] [info] DEFAULT_SESSION_TYPE: IPv4
[2023-12-19 09:25:48.897] [smf_app] [info] DEFAULT_SSC_MODE: 1
[2023-12-19 09:25:48.897] [smf_app] [info] QOS_PROFILE_5QI: 9
[2023-12-19 09:25:48.897] [smf_app] [info] QOS_PROFILE_PRIORITY_LEVEL: 1
[2023-12-19 09:25:48.897] [smf_app] [info] QOS_PROFILE_ARP_PRIORITY_LEVEL: 1
[2023-12-19 09:25:48.897] [smf_app] [info] QOS_PROFILE_ARP_PREEMPTCAP: NOT_PREEMPT
[2023-12-19 09:25:48.897] [smf_app] [info] QOS_PROFILE_ARP_PREEMPTVULN: NOT_PREEMPTABLE
[2023-12-19 09:25:48.897] [smf_app] [info] SESSION_AMBR_UL: 1000Mbps
[2023-12-19 09:25:48.897] [smf_app] [info] SESSION_AMBR_DL: 1000Mbps
[2023-12-19 09:25:48.897] [smf_app] [info] Session Management Subscription Data 1:
[2023-12-19 09:25:48.897] [smf_app] [info] SST: 1
[2023-12-19 09:25:48.897] [smf_app] [info] DNN: ims
[2023-12-19 09:25:48.897] [smf_app] [info] DEFAULT_SESSION_TYPE: IPv4v6
[2023-12-19 09:25:48.897] [smf_app] [info] DEFAULT_SSC_MODE: 1
[2023-12-19 09:25:48.897] [smf_app] [info] QOS_PROFILE_5QI: 5
[2023-12-19 09:25:48.897] [smf_app] [info] QOS_PROFILE_PRIORITY_LEVEL: 1
[2023-12-19 09:25:48.897] [smf_app] [info] QOS_PROFILE_ARP_PRIORITY_LEVEL: 1
[2023-12-19 09:25:48.897] [smf_app] [info] QOS_PROFILE_ARP_PREEMPTCAP: NOT_PREEMPT
[2023-12-19 09:25:48.897] [smf_app] [info] QOS_PROFILE_ARP_PREEMPTVULN: NOT_PREEMPTABLE
[2023-12-19 09:25:48.897] [smf_app] [info] SESSION_AMBR_UL: 100Mbps
[2023-12-19 09:25:48.897] [smf_app] [info] SESSION_AMBR_DL: 100Mbps
[2023-12-19 09:25:48.897] [smf_app] [info] Session Management Subscription Data 2:
[2023-12-19 09:25:48.897] [smf_app] [info] SST: 1
[2023-12-19 09:25:48.897] [smf_app] [info] DNN: ctnet
[2023-12-19 09:25:48.897] [smf_app] [info] DEFAULT_SESSION_TYPE: IPv4v6
[2023-12-19 09:25:48.897] [smf_app] [info] DEFAULT_SSC_MODE: 1
[2023-12-19 09:25:48.897] [smf_app] [info] QOS_PROFILE_5QI: 9
[2023-12-19 09:25:48.897] [smf_app] [info] QOS_PROFILE_PRIORITY_LEVEL: 1
[2023-12-19 09:25:48.898] [smf_app] [info] QOS_PROFILE_ARP_PRIORITY_LEVEL: 1
[2023-12-19 09:25:48.898] [smf_app] [info] QOS_PROFILE_ARP_PREEMPTCAP: NOT_PREEMPT
[2023-12-19 09:25:48.898] [smf_app] [info] QOS_PROFILE_ARP_PREEMPTVULN: NOT_PREEMPTABLE
[2023-12-19 09:25:48.898] [smf_app] [info] SESSION_AMBR_UL: 1000Mbps
[2023-12-19 09:25:48.898] [smf_app] [info] SESSION_AMBR_DL: 1000Mbps
[2023-12-19 09:25:48.898] [smf_app] [info] Session Management Subscription Data 3:
[2023-12-19 09:25:48.898] [smf_app] [info] SST: 1
[2023-12-19 09:25:48.898] [smf_app] [info] DNN: internet
[2023-12-19 09:25:48.898] [smf_app] [info] DEFAULT_SESSION_TYPE: IPv4
[2023-12-19 09:25:48.898] [smf_app] [info] DEFAULT_SSC_MODE: 1
[2023-12-19 09:25:48.898] [smf_app] [info] QOS_PROFILE_5QI: 9
[2023-12-19 09:25:48.898] [smf_app] [info] QOS_PROFILE_PRIORITY_LEVEL: 1
[2023-12-19 09:25:48.898] [smf_app] [info] QOS_PROFILE_ARP_PRIORITY_LEVEL: 1
[2023-12-19 09:25:48.898] [smf_app] [info] QOS_PROFILE_ARP_PREEMPTCAP: NOT_PREEMPT
[2023-12-19 09:25:48.898] [smf_app] [info] QOS_PROFILE_ARP_PREEMPTVULN: NOT_PREEMPTABLE
[2023-12-19 09:25:48.898] [smf_app] [info] SESSION_AMBR_UL: 1000Mbps
[2023-12-19 09:25:48.898] [smf_app] [info] SESSION_AMBR_DL: 1000Mbps
[2023-12-19 09:25:48.898] [smf_app] [info] - Log Level will be .......: debug
[2023-12-19 09:25:48.898] [itti ] [start] Starting...
[2023-12-19 09:25:48.899] [itti ] [start] Started
[2023-12-19 09:25:48.899] [itti ] [info] Starting timer_manager_task
[2023-12-19 09:25:48.899] [async ] [start] Starting...
[2023-12-19 09:25:48.901] [async ] [start] Started
[2023-12-19 09:25:48.902] [smf_app] [start] Starting...
[2023-12-19 09:25:48.902] [smf_app] [info] Apply config...
[2023-12-19 09:25:48.908] [smf_app] [info] Applied config ctnet
[2023-12-19 09:25:48.908] [smf_app] [info] PAA Ipv4: 192.169.0.3
[2023-12-19 09:25:48.908] [smf_app] [info] Applied config for IPv6 ctnet
[2023-12-19 09:25:48.912] [smf_app] [info] Applied config default
[2023-12-19 09:25:48.912] [smf_app] [info] PAA Ipv4: 192.169.0.3
[2023-12-19 09:25:48.914] [smf_app] [info] Applied config ims
[2023-12-19 09:25:48.914] [smf_app] [info] PAA Ipv4: 192.169.200.2
[2023-12-19 09:25:48.914] [smf_app] [info] Applied config for IPv6 ims
[2023-12-19 09:25:48.917] [smf_app] [info] Applied config internet
[2023-12-19 09:25:48.918] [smf_app] [info] PAA Ipv4: 192.169.0.3
[2023-12-19 09:25:48.918] [smf_app] [info] Applied config
[2023-12-19 09:25:48.920] [udp ] [debug] Creating new listen socket on address 10.103.239.31 and port 8805
[2023-12-19 09:25:48.920] [udp ] [debug] udp_server::udp_server(10.103.239.31:8805)
[2023-12-19 09:25:48.920] [udp ] [debug] Creating new listen socket on address 10.103.239.31 and port 0
[2023-12-19 09:25:48.921] [udp ] [debug] udp_server::udp_server(10.103.239.31:0)
[2023-12-19 09:25:48.921] [pfcp ] [info] pfcp_l4_stack created listening to 10.103.239.31:8805
[2023-12-19 09:25:48.922] [smf_n4 ] [start] Starting...
[2023-12-19 09:25:48.923] [smf_n4 ] [start] Started
[2023-12-19 09:25:48.924] [smf_sbi] [start] Starting...
[2023-12-19 09:25:48.926] [smf_sbi] [start] Started
[2023-12-19 09:25:48.926] [smf_app] [start] Started
start create socket
start
创建socket成功!
绑定成功!
start receive
绑定成功!5555 20001
start create socket
start
start receive udp_read_from_socket_to_center
创建socket成功!
绑定成功!
start receive
绑定成功!5555 20004
start create socket
start
start receive udp_read_from_socket_from_center
创建socket成功!
绑定成功!
start receive
绑定成功!5555 20023
start receive udp_read_from_peer_smf
[2023-12-19 09:25:48.931] [smf_api] [info] HTTP1 server started
[2023-12-19 09:25:49.031] [smf_app] [debug] Start a PFCP Association procedure with an UPF
[2023-12-19 09:25:49.031] [smf_app] [debug] Resolving an FQDN/IP Addr for an UPF node
[2023-12-19 09:25:49.031] [smf_app] [debug] Resolving an IP address (name 10.103.238.93)
[2023-12-19 09:25:49.031] [smf_app] [debug] Reverse Resolving Try #0
[2023-12-19 09:25:49.031] [smf_api] [info] HTTP2 server started
[2023-12-19 09:25:49.052] [smf_app] [debug] Resolve IP Addr 10.103.238.93, FQDN 10.103.238.93
[2023-12-19 09:25:49.068] [smf_n4 ] [info] handle_receive(36 bytes)
[2023-12-19 09:25:49.068] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 6 length 32
[2023-12-19 09:25:49.068] [smf_n4 ] [info] Received N4 ASSOCIATION SETUP RESPONSE from an UPF
[2023-12-19 09:25:49.068] [smf_n4 ] [info] Received N4 ASSOCIATION SETUP RESPONSE
[2023-12-19 09:25:49.068] [smf_app] [debug] Resolving an FQDN/IP Addr for an UPF node
[2023-12-19 09:25:49.068] [smf_app] [debug] Resolving an IP address (name 10.103.238.93)
[2023-12-19 09:25:49.068] [smf_app] [debug] Reverse Resolving Try #0
[2023-12-19 09:25:49.089] [smf_app] [debug] Resolve IP Addr 10.103.238.93, FQDN 10.103.238.93
[2023-12-19 09:25:49.089] [smf_app] [info] Cannot connect UPF to other nodes in the graph as it has no profile, just add the node
[2023-12-19 09:25:49.089] [smf_app] [info] Assume that the UPF has a N3 and a N6 interface.
[2023-12-19 09:25:49.090] [smf_app] [debug] Successfully added UPF node: , (1575905034)
[2023-12-19 09:25:49.090] [smf_app] [debug] Successfully added UPF graph edge for : N3(access.oai.org)
[2023-12-19 09:25:49.090] [smf_app] [debug] Successfully added UPF graph edge for : N6(core.oai.org)
[2023-12-19 09:25:49.090] [smf_app] [debug] UPF graph
[2023-12-19 09:25:49.090] [smf_app] [debug] * 1575905034 --> N3(access.oai.org), N6(core.oai.org),
[2023-12-19 09:25:49.090] [smf_app] [debug] NF instance info
[2023-12-19 09:25:49.090] [smf_app] [debug] Instance ID:
[2023-12-19 09:25:49.090] [smf_app] [debug] Instance name:
[2023-12-19 09:25:49.090] [smf_app] [debug] Instance type: UPF
[2023-12-19 09:25:49.090] [smf_app] [debug] Status:
[2023-12-19 09:25:49.090] [smf_app] [debug] HeartBeat timer: 0
[2023-12-19 09:25:49.090] [smf_app] [debug] Priority: 0
[2023-12-19 09:25:49.090] [smf_app] [debug] Capacity: 0
[2023-12-19 09:25:51.052] [smf_app] [debug] Resolving an FQDN/IP Addr for an UPF node
[2023-12-19 09:25:51.053] [smf_app] [debug] Resolving an IP address (name 10.103.238.93)
[2023-12-19 09:25:51.053] [smf_app] [debug] Reverse Resolving Try #0
[2023-12-19 09:25:51.057] [smf_app] [debug] Resolve IP Addr 10.103.238.93, FQDN 10.103.238.93
[2023-12-19 09:25:54.061] [smf_n4 ] [info] TIME-OUT event timer id 2
[2023-12-19 09:25:59.091] [smf_n4 ] [info] TIME-OUT event timer id 3
[2023-12-19 09:25:59.091] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:25:59.097] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:25:59.097] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:26:04.092] [smf_n4 ] [info] TIME-OUT event timer id 6
[2023-12-19 09:26:09.097] [smf_n4 ] [info] TIME-OUT event timer id 7
[2023-12-19 09:26:09.100] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:26:09.108] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:26:09.108] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:26:14.101] [smf_n4 ] [info] TIME-OUT event timer id 10
[2023-12-19 09:26:19.108] [smf_n4 ] [info] TIME-OUT event timer id 11
[2023-12-19 09:26:19.109] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:26:19.113] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:26:19.113] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:26:24.109] [smf_n4 ] [info] TIME-OUT event timer id 14
[2023-12-19 09:26:29.117] [smf_n4 ] [info] TIME-OUT event timer id 15
[2023-12-19 09:26:29.117] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:26:29.122] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:26:29.122] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:26:34.118] [smf_n4 ] [info] TIME-OUT event timer id 18
[2023-12-19 09:26:39.123] [smf_n4 ] [info] TIME-OUT event timer id 19
[2023-12-19 09:26:39.123] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:26:39.126] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:26:39.126] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:26:44.124] [smf_n4 ] [info] TIME-OUT event timer id 22
[2023-12-19 09:26:49.127] [smf_n4 ] [info] TIME-OUT event timer id 23
[2023-12-19 09:26:49.127] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:26:49.131] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:26:49.131] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:26:54.128] [smf_n4 ] [info] TIME-OUT event timer id 26
[2023-12-19 09:26:59.132] [smf_n4 ] [info] TIME-OUT event timer id 27
[2023-12-19 09:26:59.132] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:26:59.134] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:26:59.135] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:27:04.133] [smf_n4 ] [info] TIME-OUT event timer id 30
[2023-12-19 09:27:09.135] [smf_n4 ] [info] TIME-OUT event timer id 31
[2023-12-19 09:27:09.135] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:27:09.138] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:27:09.138] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:27:14.136] [smf_n4 ] [info] TIME-OUT event timer id 34
[2023-12-19 09:27:19.138] [smf_n4 ] [info] TIME-OUT event timer id 35
[2023-12-19 09:27:19.139] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:27:19.141] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:27:19.141] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:27:24.139] [smf_n4 ] [info] TIME-OUT event timer id 38
[2023-12-19 09:27:29.142] [smf_n4 ] [info] TIME-OUT event timer id 39
[2023-12-19 09:27:29.142] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:27:29.144] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:27:29.144] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:27:34.147] [smf_n4 ] [info] TIME-OUT event timer id 42
[2023-12-19 09:27:39.144] [smf_n4 ] [info] TIME-OUT event timer id 43
[2023-12-19 09:27:39.145] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:27:39.147] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:27:39.147] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:27:44.146] [smf_n4 ] [info] TIME-OUT event timer id 46
[2023-12-19 09:27:49.148] [smf_n4 ] [info] TIME-OUT event timer id 47
[2023-12-19 09:27:49.148] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:27:49.150] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:27:49.150] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:27:54.149] [smf_n4 ] [info] TIME-OUT event timer id 50
[2023-12-19 09:27:59.151] [smf_n4 ] [info] TIME-OUT event timer id 51
[2023-12-19 09:27:59.151] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:27:59.155] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:27:59.155] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:28:04.152] [smf_n4 ] [info] TIME-OUT event timer id 54
[2023-12-19 09:28:09.156] [smf_n4 ] [info] TIME-OUT event timer id 55
[2023-12-19 09:28:09.156] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:28:09.159] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:28:09.159] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:28:14.157] [smf_n4 ] [info] TIME-OUT event timer id 58
[2023-12-19 09:28:19.159] [smf_n4 ] [info] TIME-OUT event timer id 59
[2023-12-19 09:28:19.160] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:28:19.162] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:28:19.162] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:28:24.163] [smf_n4 ] [info] TIME-OUT event timer id 62
[2023-12-19 09:28:29.163] [smf_n4 ] [info] TIME-OUT event timer id 63
[2023-12-19 09:28:29.164] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:28:29.169] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:28:29.170] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:28:34.165] [smf_n4 ] [info] TIME-OUT event timer id 66
[2023-12-19 09:28:39.170] [smf_n4 ] [info] TIME-OUT event timer id 67
[2023-12-19 09:28:39.171] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:28:39.176] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:28:39.176] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:28:44.171] [smf_n4 ] [info] TIME-OUT event timer id 70
[2023-12-19 09:28:49.177] [smf_n4 ] [info] TIME-OUT event timer id 71
[2023-12-19 09:28:49.177] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:28:49.186] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:28:49.197] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:28:54.178] [smf_n4 ] [info] TIME-OUT event timer id 74
[2023-12-19 09:28:59.197] [smf_n4 ] [info] TIME-OUT event timer id 75
[2023-12-19 09:28:59.198] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:28:59.238] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:28:59.238] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:29:04.199] [smf_n4 ] [info] TIME-OUT event timer id 78
[2023-12-19 09:29:09.239] [smf_n4 ] [info] TIME-OUT event timer id 79
[2023-12-19 09:29:09.239] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:29:09.242] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:29:09.242] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:29:14.240] [smf_n4 ] [info] TIME-OUT event timer id 82
[2023-12-19 09:29:19.242] [smf_n4 ] [info] TIME-OUT event timer id 83
[2023-12-19 09:29:19.243] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:29:19.248] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:29:19.249] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:29:24.244] [smf_n4 ] [info] TIME-OUT event timer id 86
[2023-12-19 09:29:29.251] [smf_n4 ] [info] TIME-OUT event timer id 87
[2023-12-19 09:29:29.251] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:29:29.254] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:29:29.254] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:29:34.253] [smf_n4 ] [info] TIME-OUT event timer id 90
[2023-12-19 09:29:39.255] [smf_n4 ] [info] TIME-OUT event timer id 91
[2023-12-19 09:29:39.255] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:29:39.260] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:29:39.261] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:29:44.256] [smf_n4 ] [info] TIME-OUT event timer id 94
[2023-12-19 09:29:49.261] [smf_n4 ] [info] TIME-OUT event timer id 95
[2023-12-19 09:29:49.262] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:29:49.271] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:29:49.271] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:29:54.262] [smf_n4 ] [info] TIME-OUT event timer id 98
[2023-12-19 09:29:59.275] [smf_n4 ] [info] TIME-OUT event timer id 99
[2023-12-19 09:29:59.275] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:29:59.277] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:29:59.277] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:30:04.276] [smf_n4 ] [info] TIME-OUT event timer id 102
[2023-12-19 09:30:09.278] [smf_n4 ] [info] TIME-OUT event timer id 103
[2023-12-19 09:30:09.278] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:30:09.281] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:30:09.281] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:30:14.279] [smf_n4 ] [info] TIME-OUT event timer id 106
[2023-12-19 09:30:19.282] [smf_n4 ] [info] TIME-OUT event timer id 107
[2023-12-19 09:30:19.282] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:30:19.286] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:30:19.287] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:30:24.283] [smf_n4 ] [info] TIME-OUT event timer id 110
[2023-12-19 09:30:29.287] [smf_n4 ] [info] TIME-OUT event timer id 111
[2023-12-19 09:30:29.288] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:30:29.294] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:30:29.294] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:30:34.290] [smf_n4 ] [info] TIME-OUT event timer id 114
[2023-12-19 09:30:39.295] [smf_n4 ] [info] TIME-OUT event timer id 115
[2023-12-19 09:30:39.295] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:30:39.301] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:30:39.301] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:30:44.297] [smf_n4 ] [info] TIME-OUT event timer id 118
[2023-12-19 09:30:49.302] [smf_n4 ] [info] TIME-OUT event timer id 119
[2023-12-19 09:30:49.302] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:30:49.308] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:30:49.308] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:30:54.304] [smf_n4 ] [info] TIME-OUT event timer id 122
[2023-12-19 09:30:59.309] [smf_n4 ] [info] TIME-OUT event timer id 123
[2023-12-19 09:30:59.309] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:30:59.311] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:30:59.312] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:31:04.310] [smf_n4 ] [info] TIME-OUT event timer id 126
[2023-12-19 09:31:09.312] [smf_n4 ] [info] TIME-OUT event timer id 127
[2023-12-19 09:31:09.312] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:31:09.322] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:31:09.323] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:31:14.318] [smf_n4 ] [info] TIME-OUT event timer id 130
[2023-12-19 09:31:19.324] [smf_n4 ] [info] TIME-OUT event timer id 131
[2023-12-19 09:31:19.325] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:31:19.327] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:31:19.328] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:31:24.325] [smf_n4 ] [info] TIME-OUT event timer id 134
[2023-12-19 09:31:29.328] [smf_n4 ] [info] TIME-OUT event timer id 135
[2023-12-19 09:31:29.328] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:31:29.332] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:31:29.332] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:31:34.330] [smf_n4 ] [info] TIME-OUT event timer id 138
[2023-12-19 09:31:39.333] [smf_n4 ] [info] TIME-OUT event timer id 139
[2023-12-19 09:31:39.333] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:31:39.335] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:31:39.335] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:31:44.334] [smf_n4 ] [info] TIME-OUT event timer id 142
[2023-12-19 09:31:49.335] [smf_n4 ] [info] TIME-OUT event timer id 143
[2023-12-19 09:31:49.336] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:31:49.340] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:31:49.340] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:31:54.336] [smf_n4 ] [info] TIME-OUT event timer id 146
[2023-12-19 09:31:59.345] [smf_n4 ] [info] TIME-OUT event timer id 147
[2023-12-19 09:31:59.345] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:31:59.349] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:31:59.349] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:32:04.346] [smf_n4 ] [info] TIME-OUT event timer id 150
[2023-12-19 09:32:09.350] [smf_n4 ] [info] TIME-OUT event timer id 151
[2023-12-19 09:32:09.350] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:32:09.358] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:32:09.358] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:32:14.351] [smf_n4 ] [info] TIME-OUT event timer id 154
[2023-12-19 09:32:19.359] [smf_n4 ] [info] TIME-OUT event timer id 155
[2023-12-19 09:32:19.359] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:32:19.361] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:32:19.361] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
[2023-12-19 09:32:24.360] [smf_n4 ] [info] TIME-OUT event timer id 158
[2023-12-19 09:32:29.361] [smf_n4 ] [info] TIME-OUT event timer id 159
[2023-12-19 09:32:29.362] [smf_n4 ] [info] PFCP HEARTBEAT PROCEDURE hash 1575905034 starting
[2023-12-19 09:32:29.363] [smf_n4 ] [info] handle_receive(16 bytes)
[2023-12-19 09:32:29.364] [smf_n4 ] [debug] handle_receive_pfcp_msg msg type 2 length 12
......@@ -288,7 +288,7 @@ typedef struct qos_profile_s {
#define NNRF_NF_STATUS_NOTIFY_BASE "/nsmf-nfstatus-notify/"
// for CURL
#define NF_CURL_TIMEOUT_MS 100L
#define NF_CURL_TIMEOUT_MS 1000L
#define MAX_WAIT_MSECS 10000 // 1 second
#define AMF_NUMBER_RETRIES 3
#define UDM_NUMBER_RETRIES 3
......@@ -298,7 +298,7 @@ constexpr auto CURL_MIME_BOUNDARY = "----Boundary";
#define BUF_LEN 512
// FOR FUTURE PROMISE
#define FUTURE_STATUS_TIMEOUT_MS 100
#define FUTURE_STATUS_TIMEOUT_MS 1000
// for PFCP
constexpr uint64_t SECONDS_SINCE_FIRST_EPOCH = 2208988800;
......
......@@ -3850,13 +3850,13 @@ bool smf_context::find_pdu_session(
const pdu_session_id_t& psi, std::shared_ptr<smf_pdu_session>& sp) const {
Logger::smf_app().info("Find PDU Session with ID %d", psi);
std::shared_lock lock(m_pdu_sessions_mutex);
Logger::smf_app().warn("---liuyu----pdu_sessions.count %d------------",pdu_sessions.count(psi));
if (pdu_sessions.count(psi) > 0) {
sp = pdu_sessions.at(psi);
if (sp) return true;
}
return false;
}
//-----------------------------------------------------------------------------
bool smf_context::find_pdu_session(
const pfcp::pdr_id_t& pdr_id, pfcp::qfi_t& qfi,
......@@ -3893,6 +3893,7 @@ bool smf_context::add_pdu_session(
pdu_sessions.insert(
std::pair<pdu_session_id_t, std::shared_ptr<smf_pdu_session>>(
psi, sp));
Logger::smf_app().debug(
"PDU Session Id (%d) has been added successfully", psi);
return true;
......@@ -5009,7 +5010,6 @@ void smf_context::send_pdu_session_create_response(
udpsmfcontext["seid"] = sp.get()->seid;
udpsmfcontext["ipv4_address"] = inet_ntoa(sp.get()->ipv4_address);
UdpSend_smf(udpsmfcontext,"10.103.239.31", 20023);
// json_data["smfcontext"] = udpsmfcontext.dump();
resp->res.set_json_data(json_data);
......
......@@ -59,7 +59,6 @@ extern "C" {
}
using namespace boost::placeholders;
namespace smf {
class smf_pdu_session : public std::enable_shared_from_this<smf_pdu_session> {
......
......@@ -166,8 +166,13 @@ int udp_server_coop::udp_read_from_peer_smf() {
scf.get()->pdu_session_id = smfcontext["pdu_session_id"];
smf_app_inst->set_scid_2_smf_context(scid, scf);
}
else
{
scf = smf_app_inst->scid_2_smf_context(scid);
}
supi64_t supi64 = smf_supi_to_u64(supi);
uint64_t seid = smfcontext["seid"];
std::shared_ptr<smf_context> sc = {};
if (!smf_app_inst->is_supi_2_smf_context(supi64)) {
Logger::smf_app().debug("Create a new SMF context with SUPI " SUPI_64_FMT "", supi64);
......@@ -176,9 +181,13 @@ int udp_server_coop::udp_read_from_peer_smf() {
// sc.get()->set_supi_prefix(supi_prefix);
smf_app_inst->set_supi_2_smf_context(supi64, sc);
// sc.get()->set_plmn(smreq->req.get_plmn()); // PLMN
}
uint64_t seid = smfcontext["seid"];
smf_app_inst->set_seid_2_smf_context(seid, sc);
}
else
{
sc = smf_app_inst->supi_2_smf_context(supi64);
}
std::shared_ptr<smf_pdu_session> sp = {};
......@@ -187,7 +196,7 @@ int udp_server_coop::udp_read_from_peer_smf() {
sp = std::shared_ptr<smf_pdu_session>(new smf_pdu_session(scf.get()->pdu_session_id));
sp.get()->pdu_session_type.pdu_session_type = smfcontext["pdu_session_type"];
sc.get()->add_pdu_session(scf.get()->pdu_session_id, sp);
}
std::string dnn = smfcontext["dnn"];
snssai_t snssai = {};
......@@ -260,7 +269,10 @@ int udp_server_coop::udp_read_from_peer_smf() {
// Get next UPF for the first N4 session establishment
Logger::smf_app().warn("----------liuyu-------dfs_next_upf");
graph->dfs_next_upf(dl_edges, ul_edges, upf);
}
else{
Logger::smf_app().warn("Could not retrieve the corresponding SMF PDU Session context!");
}
}
}
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment