Closed s5uishida closed 1 year ago
For free5GC, UE was able to connect to free5GC 5GC using the ue_zmq.conf
with the slicing
section enabled.
This issue has been clear a little.
When added the slicing
section to ue_zmq.yaml
, srsue
created an InitialUEMessage
appended NSSAI
to the Plain NAS 5GS Message
, and sent it to AMF.
On the other hand, according to the specification below, NSSAI
is not specified to be included in cleartext IE.
3GPP TS 24.501 - 4.4.6 Protection of initial NAS signalling messages
When the initial NAS message is a REGISTRATION REQUEST message, the cleartext IEs are:
- Extended protocol discriminator;
- Security header type;
- Spare half octet;
- Registration request message identity;
- 5GS registration type;
- ngKSI;
- 5GS mobile identity;
- UE security capability;
- Additional GUTI;
- UE status; and
- EPS NAS message container.
Open5GS checked this and returned an error.
So I think that srsue
needs to follow the above specification.
I'm sorry if I misunderstood.
Best regards,
--Shigeru
Hey @s5uishida - thanks for digging into this issue yourself. Your conclusion seems correct - NSSAI IE is not allowed to go over the air in cleartext. Please feel free to open a ticket in srsRAN_4G for it. Closing this one here. Thanks
Issue Description
Adding a slice section to
ue_zmq.conf
causesInitialUEMessage, Registration request
to Open5GS to fail.Setup Details
I added a slice section to
ue_zmq.conf
as below.Also I added a slice section to
gnb_zmq.yaml
.Open5GS log is as follows.
The pcap log at this time is as follows. slice_section_exist.zip
The logs of
gnb
andsrsue
were as follows.If make
slicing.enable = false
inue_zmq.conf
, it works fine.Expected Behavior
I want to specify slice and attach UE with ZMQ to Open5GS.
Actual Behaviour
Steps to reproduce the problem
Additional Information
The environment of gNodeB with ZMQ (srsRAN_Project) and UE with ZMQ (srsRAN_4G) are as follows.
Virtualbox VM
Ubuntu 22.04 (Linux 5.15.0-78)
gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)
gnb_zmq.yaml
gnb_id: 0x19B
slicing:
- sst: 1
sd: 2
amf: addr: 192.168.0.111 # The address or hostname of the AMF. bind_addr: 192.168.0.121 # A local IP that the gNB binds to for traffic from the AMF.
ru_sdr: device_driver: zmq # The RF driver name. device_args: tx_port=tcp://192.168.0.121:2000,rx_port=tcp://192.168.0.122:2001,base_srate=11.52e6 # Optionally pass arguments to the selected RF driver. srate: 11.52 # RF sample rate might need to be adjusted according to selected bandwidth. tx_gain: 75 # Transmit gain of the RF might need to adjusted to the given situation. rx_gain: 75 # Receive gain of the RF might need to adjusted to the given situation.
cell_cfg: dl_arfcn: 368500 # ARFCN of the downlink carrier (center frequency). band: 3 # The NR band. channel_bandwidth_MHz: 10 # Bandwith in MHz. Number of PRBs will be automatically derived. common_scs: 15 # Subcarrier spacing in kHz used for data. plmn: "00101" # PLMN broadcasted by the gNB. tac: 1 # Tracking area code (needs to match the core configuration). pdcch: dedicated: ss2_type: common # Search Space type, has to be set to common dci_format_0_1_and_1_1: false # Set correct DCI format (fallback)
log: filename: /tmp/gnb.log # Path of the log file. all_level: info # Logging level applied to all layers. hex_max_size: 0
pcap: mac_enable: false # Set to true to enable MAC-layer PCAPs. mac_filename: /tmp/gnb_mac.pcap # Path where the MAC PCAP is stored. ngap_enable: false # Set to true to enable NGAP PCAPs. ngap_filename: /tmp/gnb_ngap.pcap # Path where the NGAP PCAP is stored.
[rf] freq_offset = 0 tx_gain = 50 rx_gain = 40 srate = 11.52e6 nof_antennas = 1
device_name = zmq device_args = tx_port=tcp://192.168.0.122:2001,rx_port=tcp://192.168.0.121:2000,base_srate=11.52e6
[rat.eutra] dl_earfcn = 2850 nof_carriers = 0
[rat.nr] bands = 3 nof_carriers = 1
[pcap] enable = none mac_filename = /tmp/ue_mac.pcap mac_nr_filename = /tmp/ue_mac_nr.pcap nas_filename = /tmp/ue_nas.pcap
[log] all_level = info phy_lib_level = none all_hex_limit = 32 filename = /tmp/ue.log file_max_size = -1
[usim] mode = soft algo = milenage opc = E8ED289DEBA952E4283B54E88E6183CA k = 465B5CE8B199B49FAA5F0A2EE238A6BC imsi = 001010000000000 imei = 353490069873319
[rrc] release = 15 ue_category = 4
[nas] apn = internet apn_protocol = ipv4
[slicing] enable = true nssai-sst = 1 nssai-sd = 1
[gw]
netns = ue1
ip_devname = tun_srsue ip_netmask = 255.255.255.0
[gui] enable = false