Skip to content

[amf] ERROR: Cannot decode NGAP message [amf] INFO: gNB-N2[127.0.0.1] connection refused!!! (../src/amf/amf-sm.c:793) #46

@ecipecipec

Description

@ecipecipec

Hi,

I'm trying to use your tool 5greplay with open5gs. I have exact configuration like you have on your git page. AMF ip is 127.0.0.5.
But I cannot get 5greplay to connect with NGAP protocol. After initical SCTP setup, I get SCTP shutdown from 5greplay.

When I replay included sa.pcap:
~/5greplay$ sudo ./5greplay replay -t pcap/sa.pcap -Xforward.default=FORWARD
mmt-5greplay: 5Greplay v0.0.8-86f2074 using DPI v1.7.10 (35f0ad71) is running on pid 48876
mmt-5greplay: Overridden value of configuration parameter 'forward.default' by '0'
mmt-5greplay: Binded successfully socket to 127.0.0.1:0 using SCTP.
mmt-5greplay: MMT-5Greplay 0.0.8 (86f2074 - Mar 29 2024 14:06:03) is verifying 1 rules having 2 proto.atts using the main thread
mmt-5greplay: Registered attribute to extract: 904.2
mmt-5greplay: Registered attribute to extract: 904.3
mmt-5greplay: Analyzing pcap file pcap/sa.pcap
mmt-5greplay: Statistics of forwarded packets 30971.00 pps (total: 30971 packets), 38898376.00 bps
Statistics of forwarded packets 30971.00 pps (total: 30971 packets), 38898376.00 bps

  • rule 4 generated 1 verdicts
    43441 packets received
    43441 messages received
    1 alerts generated
    mmt-5greplay: Number of packets being successfully forwarded: 43441, dropped: 0
    Number of packets being successfully forwarded: 43441, dropped: 0

And from amf:
04/03 14:03:27.244: [core] WARNING: Failed to decode ASN-PDU [code:2,consumed:0] (../lib/asn1c/util/message.c:69)
04/03 14:03:27.244: [ngap] WARNING: Failed to decode NGAP-PDU (../lib/ngap/message.c:53)
04/03 14:03:27.244: [amf] ERROR: Cannot decode NGAP message (../src/amf/amf-sm.c:824)
04/03 14:03:27.288: [amf] INFO: gNB-N2[127.0.0.1] connection refused!!! (../src/amf/amf-sm.c:793)
04/03 14:03:27.288: [amf] INFO: [Removed] Number of gNBs is now 0 (../src/amf/context.c:1258

I attached 2 pcap. One is when I send mesage
damir_replay.zip
damir.zip
damir_replay.zip
damir.zip
s from simulator to open5gs: damir.pcap
And other is when I run damir.pcap with 5greplay: damir-replay.pcap

my5G-RANTester, 5greplay and open5gs are all installed in the same VM
Thank you in advance for any help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions