forked from omec-project/upf
-
Notifications
You must be signed in to change notification settings - Fork 2
/
upf.jsonc
178 lines (154 loc) · 5.73 KB
/
upf.jsonc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
// SPDX-FileCopyrightText: 2019-present Intel Corporation
// SPDX-FileCopyrightText: 2020-present Open Networking Foundation
// SPDX-License-Identifier: Apache-2.0
{
// UPF support various configuration modes:
// "af_packet"` to enable AF_PACKET mode,
// "af_xdp" to enable AF_XDP mode,
// "cndp" to enable CNDP mode,
// "dpdk" to enable DPDK mode,
// "sim" to generate synthetic traffic from BESS's Source module,
// "" when running with UP4
"mode": "dpdk",
"table_sizes": {
// Example sizes based on sim mode and 50K sessions. Customize as per your control plane
// 50K per unique tuple, we send 4 unique PDR patterns
"pdrLookup": 50000,
// 4 PDRs per session
"flowMeasure": 200000,
// there are 2 QERs and 2 entries per QER
"appQERLookup": 200000,
// there is 1 session QER and 2 entries per session QER
"sessionQERLookup": 100000,
// there are 3 FARs
"farLookup": 150000
},
// [Optional] Set the log level to one of "panic", "fatal", "error", "warn", "info", "debug"
"log_level": "info",
// Use the sim block to enable simulation using either Source module or via il_trafficgen
"sim": {
// At this point we can simulate either N3/N6 or N3/N9 traffic, so choose n6 or n9 below
"core": "n6",
"max_sessions": 50000,
"start_ue_ip": "16.0.0.1",
"start_enb_ip": "11.1.1.129",
"start_aupf_ip": "13.1.1.199",
"n6_app_ip": "6.6.6.6",
"n9_app_ip": "9.9.9.9",
"start_n3_teid": "0x30000000",
"start_n9_teid": "0x90000000",
"uplink_mbr": 500000,
// Make sure uplink_gbr is configured less than uplink_mbr if 'qfi' in pfcpiface/grpcsim.go is for GBR flows. Current default 'qfi' value is for Non-GBR flows
"uplink_gbr": 50000,
"downlink_mbr": 1000000,
// Make sure downlink_gbr is configured less than downlink_mbr if 'qfi' in pfcpiface/grpcsim.go is for GBR flows. Current default 'qfi' value is for Non-GBR flows
"downlink_gbr": 100000,
"pkt_size": 128,
"total_flows": 5000
},
// Max IP frag table entries (for IPv4 reassembly). Uncomment line below to enable
// "max_ip_defrag_flows": "1000",
// Uncomment line below to enable
// "ip_frag_with_eth_mtu": "1518",
// Enable hardware offload of checksum. Might disable vector PMD
"hwcksum": false,
// Enable PDU Session Container extension
"gtppsc": false,
// Enable Intel Dynamic Device Personalization (DDP)
"ddp": false,
// [Optional] Telemetry-See this link for details: https://github.com/omec-project/bess/blob/master/bessctl/module_tests/timestamp.py
"measure_upf": true,
// [Optional] Whether to enable flow-level measurements
"measure_flow": false,
// N3 interface
"access": {
// "cndp_jsonc_file": "conf/cndp_upf_1worker.jsonc",
"ifname": "ens803f2"
},
// N6 or N9 interface (depending on the UPF's deployment [PSA-UPF or I-UPF])
"core": {
// "cndp_jsonc_file": "conf/cndp_upf_1worker.jsonc",
// Uncomment line below to enable UE IP natting. It could be a single IP or multiple IPs
// "ip_masquerade": "18.0.0.1 or 18.0.0.2 or 18.0.0.3",
"ifname": "ens803f3"
},
// Number of worker threads. Default: 1
"workers": 1,
// Parameters for handling outgoing requests
"max_req_retries": 5,
"resp_timeout": "2s",
// Whether to enable Network Token Functions
"enable_ntf": false,
// [Optional] Whether to enable End Marker Support
// "enable_end_marker": false,
// [Optional] Whether to enable Notify BESS feature
// "enable_notify_bess": false,
// Whether to enable P4Runtime feature
"enable_p4rt": false,
// "conn_timeout": "1000",
// "read_timeout": "25",
// "notify_sockaddr": "/tmp/notifycp",
// "endmarker_sockaddr": "/tmp/pfcpport",
// Whether to enable UPF HeartBeatTimer feature
"enable_hbTimer": false,
// "heart_beat_interval": "5s",
// Whether to enable GTPu Path Monitoring
"enable_gtpu_path_monitoring": false,
"qci_qos_config": [
{
// Default values for QERs with QCI/QFI not listed below
"qci": 0,
"cbs": 50000,
"ebs": 50000,
"pbs": 50000,
"burst_duration_ms": 10,
"priority": 7
},
{
"qci": 9,
"cbs": 2048,
"ebs": 2048,
"pbs": 2048,
"priority": 6
},
{
"qci": 8,
"cbs": 2048,
"ebs": 2048,
"pbs": 2048,
"priority": 5
}
],
// [Optional] Slice-wide meter rate limits
"slice_rate_limit_config": {
// Uplink policer
"n6_bps": 500000000,
"n6_burst_bytes": 625000,
// Downlink policer
"n3_bps": 500000000,
"n3_burst_bytes": 625000
},
// Control plane controller settings
"cpiface": {
"peers": ["148.162.12.214"],
// [Optional] Below parameters
"dnn": "internet",
"http_port": "8080",
"enable_ue_ip_alloc": false,
// "use_fqdn": "true",
// "hostname": "upf-0",
"ue_ip_pool": "10.250.0.0/16"
},
// p4rtc interface settings,
"p4rtciface": {
"access_ip": "172.17.0.1/32",
"p4rtc_server": "onos",
"p4rtc_port": "51001",
// [Optional] Set the UP4 slice identifier that this PFCP Agent instance belongs to. Default: 0
"slice_id": 0,
// [Optional] Default TC is ELASTIC
"default_tc": 3,
// [Optional] Whether to wipe out PFCP state from UP4 datapath on UP4 restart. Default: false
"clear_state_on_restart": false
}
}