omec-project / Nucleus

Apache License 2.0
15 stars 30 forks source link

5G NSA DCNR - Security mode command malformed #121

Closed lulloaX closed 5 months ago

lulloaX commented 2 years ago

Issue Description Currently we already deployed OMEC Core using the follow images for Control plane (omec-control-plane-0.7.2) :

  tags:
    init: docker.io/omecproject/pod-init:1.0.0
    hssdb: registry.aetherproject.org/proxy/omecproject/c3po-hssdb:master-9a5f565
    hss: registry.aetherproject.org/proxy/omecproject/c3po-hss:master-9a5f565
    mme: registry.aetherproject.org/proxy/omecproject/nucleus:master-86d2678
    spgwc: registry.aetherproject.org/omecproject/spgw:master-6aad2f2
    pcrf: registry.aetherproject.org/proxy/omecproject/c3po-pcrf:pcrf-b29af70
    pcrfdb: registry.aetherproject.org/proxy/omecproject/c3po-pcrfdb:pcrf-b29af70
    config4g: registry.aetherproject.org/omecproject/5gc-webui:onf-release3.0.5-bf0b54f
    depCheck: quay.io/stackanetes/kubernetes-entrypoint:v0.3.1

During 3x Dual connectivity Attach procedure we obtained a Malformed package from MME instead of Security mode command as bellow image show.

image

On Attach Request message UE sends the mandatory IEs according to standard to support 5G NSA 3x attach:

image image

For this Attach procedure, we tried it using differents types: EPS Only and Combined attach, but for all obtained the same malformed package as result. After check the s1ap container logs we found that it reports an error, we think is related to the size of message, and checking the repository code we think the issue happens on some hardcoded lines in secreq_processing function that finally sends the malformed message by sctp.

image

So, please your support to check:

  1. Why this malformed package is sent by MME? Is this OMEC control plane version supporting 5G NSA?
  2. Do we need perform some additional configurations on OMEC Core?

I attached the .pcap file and logs for s1ap, s6a and mme services.

Expected Behavior MME should send the Security mode command message to eNodeB and it should include Replayed additional security capabilities IE.

Additional context

thakurajayL commented 2 years ago

We shall look at it. Thanks for reporting it.

angelahr450 commented 2 years ago

Please let us know, if there is any additional information required. Thank you!