This sample is provided as part of the OSS ASN.1 Tools trial and commercial shipments. The source code and related files are listed below for reference.
The sample demonstrates how to use the OSS ASN.1 Tools to process messages for the 3GPP 5G F1AP standard (TS 38.473 version 19.0.0).
It runs on Linux on x86-64 as an example and illustrates how to decode, inspect, and create PER-encoded 5G F1AP messages using the OSS ASN.1 Tools API.
The sample reads F1AP messages from .per files, decodes and prints them, and creates and encodes a response message.
A Unix shell script (run.sh) is included for running the test program using the OSS ASN.1/Java runtime.
To explore more samples (LTE RRC, 5G RRC, S1AP, X2AP), visit the main Sample Code page.
This sample shows how to:
The files listed below are included in the OSS ASN.1 Tools trial and commercial shipments and are used by this sample program:
| File | Description |
|---|---|
| README.TXT | Instructions and sample overview. |
| *.asn | ASN.1 source files that describe the 3GPP NG-RAN F1AP protocol (TS 38.473) used with this program example. |
| F1AP-PDU_Reset.per | Valid PER-encoded F1AP message. It should pass testing. |
| Tf1ap.java | Simple Java program that shows how to work with NG-RAN F1AP protocol data. It reads input messages from files, decodes and prints them, and creates and encodes a response message. |
| f1ap.cmd | ASN.1 compiler command file used to ASN.1 compile the F1AP protocol specifications. |
| run.sh | Unix shell script to run the test. |
| sample.out | Expected output from this test. |
| gui/ | ASN.1 Studio project for viewing/compiling schema and generating sample data. |
(Installation instructions for the OSS ASN.1 Tools are included in all trial and commercial shipments.)
To build and run this sample, install a trial or licensed version of the OSS ASN.1 Tools for Java.
Before running the test, ensure the following are set appropriately:
./run.sh
./run.sh cleanup
Note: The Java source code in this sample is platform-independent. Linux commands are shown as an example, but equivalent samples and build instructions are available for Windows, macOS, and other platforms. For help with platform-specific instructions, please contact OSS Support.
The following listing shows the main Java source file for this sample test program, Tf1ap.java. It demonstrates how to read PER-encoded 5G F1AP messages from files, decode and print them, and create and encode a response message using the OSS ASN.1 Tools API.
/*****************************************************************************/
/* Copyright (C) ###RELEASE_YEAR### OSS Nokalva, Inc. All rights reserved. */
/*****************************************************************************/
/* THIS FILE IS PROPRIETARY MATERIAL OF OSS NOKALVA, INC. */
/* AND MAY BE USED ONLY BY DIRECT LICENSEES OF OSS NOKALVA, INC. */
/* THIS FILE MAY NOT BE DISTRIBUTED. */
/* THIS COPYRIGHT STATEMENT MAY NOT BE REMOVED. */
/*****************************************************************************/
/* THIS SAMPLE PROGRAM IS PROVIDED AS IS. THE SAMPLE PROGRAM AND ANY RESULTS */
/* OBTAINED FROM IT ARE PROVIDED WITHOUT ANY WARRANTIES OR REPRESENTATIONS, */
/* EXPRESS, IMPLIED OR STATUTORY. */
/*****************************************************************************/
/*
* Demonstrates work with data for 5G F1AP protocol
*/
import java.io.*;
import com.oss.asn1.*;
import com.oss.util.*;
import f1ap.*;
import f1ap.oss_f1ap_f1ap_commondatatypes.*;
import f1ap.oss_f1ap_f1ap_constants.*;
import f1ap.oss_f1ap_f1ap_containers.*;
import f1ap.oss_f1ap_f1ap_ies.*;
import f1ap.oss_f1ap_f1ap_pdu_contents.*;
import f1ap.oss_f1ap_f1ap_pdu_descriptions.*;
public class Tf1ap {
static Coder coder;
static String border = "-------------------------------------------------------";
/* Names of Criticality values */
static String[] Criticalities = { "reject", "ignore", "notify" };
/* Names of ResetAll values */
static String ResetAll[] = {"reset-all"};
/*
* Deserializes and prints input messages, creates and prints successful
* outcome messages
*/
public static void main(String[] args) throws java.io.FileNotFoundException, Exception
{
// Initialize the project
try {
F1ap.initialize();
} catch (Exception e) {
System.out.println("Initialization exception: " + e);
System.exit(1);
}
coder = F1ap.getPERAlignedCoder();
coder.enableAutomaticEncoding();
coder.enableAutomaticDecoding();
coder.enableEncoderDebugging();
coder.enableDecoderDebugging();
// An optional parameter includes the path to all the files that are used by
// the program.
String path = (args.length > 0) ? args[0] : null;
try {
testF1AP(path, "F1AP-PDU_Reset.per");
} catch (Exception e) {
System.out.println(e);
System.exit(1);
}
System.out.println("\nTesting successful");
}
/*
* testF1AP() is used to test F1AP message, the input serialized pdu is
* deserialized and printed, then an outcome message is created, printed
* and encoded.
*/
static void testF1AP(String path, String filename) throws IOException, Exception
{
OSS_F1AP_PDU request;
File file = new File(path, filename);
if (!file.exists()) {
throw new IOException("Failed to open the " + file.toString() + " file. " +
"Restart the sample program using as input parameter the name of the directory " +
"where the '" + file.getName() + "' file is located.\n");
}
FileInputStream source = new FileInputStream(file);
System.out.println("============================================================================");
/* Read serialized message from file */
System.out.println("Read encoding from file: " + filename + "\n");
System.out.println("Deserialize request");
System.out.println(border);
/* Deserialize input message */
request = (OSS_F1AP_PDU)coder.decode(source, new OSS_F1AP_PDU());
source.close();
System.out.println("\nDeserialized request");
System.out.println(border);
System.out.println(request);
/* Parse and print input message */
printResetMsg(request); //!!!!
/* Create successful outcome message */
OSS_F1AP_PDU response = createSuccessResponse(request);
/* Print outcome message */
System.out.println(response);
System.out.println("Serialize response");
System.out.println(border);
/* Serialize outcome message */
ByteArrayOutputStream out = new ByteArrayOutputStream();
try {
coder.encode(response, out);
} catch (Exception e) {
System.out.println("Encoding failed: " + e);
System.exit(1);
}
/* Print serialized outcome message */
System.out.println("\nSerialized response "
+ "(" + out.size() + " bytes):");
System.out.println(HexTool.getHex(out.toByteArray()));
}
/*
* Prints F1AP pdu which contains Reset message. The
* function is not intended to handle other types of messages.
*/
static void printResetMsg(OSS_F1AP_PDU pdu) throws Exception
{
OSS_F1AP_Reset r_value;
System.out.println("\nGet message information");
System.out.println(border);
/* Get identifier of message stored in PDU */
if (!pdu.hasInitiatingMessage())
throw new Exception("Unexpected type of message");
OpenType msg_value = ((OSS_F1AP_InitiatingMessage)pdu.getChosenValue()).getValue();
if (msg_value.getDecodedValue() != null) {
if (msg_value.getDecodedValue() instanceof OSS_F1AP_Reset)
r_value = (OSS_F1AP_Reset)msg_value.getDecodedValue();
else
throw new Exception("Incorrect message");
} else
throw new Exception("Incorrect message");
System.out.println("Message type is Reset\n");
if (r_value.getProtocolIEs() == null)
throw new Exception("Incorrect message");
printProtocolIEs(r_value.getProtocolIEs(), 0);
}
/*
* Creates F1AP successful outcome message for given
* Reset request.
*/
static OSS_F1AP_PDU createSuccessResponse(OSS_F1AP_PDU request) throws Exception
{
if (!request.hasInitiatingMessage())
throw new Exception("Unexpected type of message");
OpenType msg_value = ((OSS_F1AP_InitiatingMessage)
request.getChosenValue()).getValue();
OSS_F1AP_Reset r_value =
(OSS_F1AP_Reset)msg_value.getDecodedValue();
if (r_value == null || msg_value.getEncodedValue() != null)
throw new Exception("Unexpected Reset request data");
if (r_value.getProtocolIEs() == null || r_value.getProtocolIEs().getSize() == 0)
throw new Exception("No IEs in Reset request");
OSS_F1AP_ProtocolIE_Container reqies = r_value.getProtocolIEs();
System.out.println("Create response");
System.out.println(border);
/*
* Create successful outcome message from initiating message.
*/
OSS_F1AP_ProtocolIE_Container respies = new OSS_F1AP_ProtocolIE_Container();
OSS_F1AP_ProtocolIE_Field element;
/* Add TransactionID to outcome message */
OSS_F1AP_ProtocolIE_ID id = OSS_F1AP_F1AP_Constants.OSS_F1AP_id_TransactionID;
OSS_F1AP_Criticality criticality = OSS_F1AP_Criticality.reject;
OSS_F1AP_TransactionID item = new OSS_F1AP_TransactionID(7);
element = new OSS_F1AP_ProtocolIE_Field(
id, criticality, new OpenType(item));
respies.add(element);
OSS_F1AP_ProcedureCode procedureCode = ((OSS_F1AP_InitiatingMessage)
request.getChosenValue()).getProcedureCode();
criticality = OSS_F1AP_Criticality.reject;
OSS_F1AP_ResetAcknowledge resetCommand =
new OSS_F1AP_ResetAcknowledge(respies);
OSS_F1AP_SuccessfulOutcome successfulOutcome =
new OSS_F1AP_SuccessfulOutcome(
procedureCode, criticality, new OpenType(resetCommand));
OSS_F1AP_PDU response =
OSS_F1AP_PDU.createOSS_F1AP_PDUWithSuccessfulOutcome(successfulOutcome);
return response;
}
/*
* Prints ProtocolIE_Container data.
*/
static void printProtocolIEs(OSS_F1AP_ProtocolIE_Container ies, int indent)
{
System.out.println("protocolIEs includes the following IEs:\n");
indent++;
/* Print each IE */
for (int i = 0; i < ies.getSize(); i++) {
OSS_F1AP_ProtocolIE_Field field =
(OSS_F1AP_ProtocolIE_Field)ies.get(i).clone();
OpenType value = field.getValue();
long fieldId = field.getId().longValue();
printIndent(indent++);
System.out.println("#" + (i + 1) + ": id = " + fieldId +
", criticality = " + Criticalities[(int)field.getCriticality().longValue()]);
/* Print TransactionID */
printIndent(indent);
if (field.getId().equalTo(OSS_F1AP_F1AP_Constants.OSS_F1AP_id_TransactionID)) {
System.out.println("value TransactionID: " +
((OSS_F1AP_TransactionID)value.getDecodedValue()).longValue());
/* ResetType IE */
} else if (field.getId().equalTo(OSS_F1AP_F1AP_Constants.OSS_F1AP_id_ResetType)) {
OSS_F1AP_ResetType r_type = (OSS_F1AP_ResetType)value.getDecodedValue();
System.out.print("value ResetType: ");
/* f1-Interface */
if (r_type.hasF1_Interface())
System.out.println("f1-Interface: " +
ResetAll[(int)((OSS_F1AP_ResetAll)r_type.getChosenValue()).longValue()]);
/*partOfF1-Interface*/
else if (r_type.hasPartOfF1_Interface()) {
OSS_F1AP_UE_associatedLogicalF1_ConnectionListRes uE_ass_Con =
((OSS_F1AP_UE_associatedLogicalF1_ConnectionListRes)r_type.getChosenValue());
System.out.println("partOfF1-Interface: ");
for (int j = 0; j < uE_ass_Con.getSize(); j++) {
OSS_F1AP_ProtocolIE_Field field_2 =
(OSS_F1AP_ProtocolIE_Field)uE_ass_Con.get(j).clone();
OpenType value_2 = field_2.getValue();
long fieldId_2 = field_2.getId().longValue();
printIndent(indent++);
OSS_F1AP_UE_associatedLogicalF1_ConnectionItem item =
(OSS_F1AP_UE_associatedLogicalF1_ConnectionItem)value_2.getDecodedValue();
System.out.println("#" + (j + 1) + ": id = " + fieldId_2 +
", criticality = " + Criticalities[(int)field_2.getCriticality().longValue()]);
printIndent(indent);
System.out.println("value GNB-CU-UE-F1AP-ID: " + (int)item.getGNB_CU_UE_F1AP_ID().longValue());
printIndent(indent);
System.out.println("value GNB-DU-UE-F1AP-ID: " + (int)item.getGNB_DU_UE_F1AP_ID().longValue());
}
}
/* Cause IE */
} else if (field.getId().equalTo(OSS_F1AP_F1AP_Constants.OSS_F1AP_id_Cause)) {
OSS_F1AP_Cause pcause = (OSS_F1AP_Cause)value.getDecodedValue();
/*
* Named values can be printed below instead of numbers for all
* Cause components
*/
System.out.print("value Cause: ");
/* radioNetwork */
if (pcause.hasRadioNetwork())
System.out.println("radioNetwork: " +
((OSS_F1AP_CauseRadioNetwork)pcause.getChosenValue()).longValue());
/* transport */
else if (pcause.hasTransport())
System.out.println("transport: " +
((OSS_F1AP_CauseTransport)pcause.getChosenValue()).longValue());
/* protocol */
else if (pcause.hasProtocol())
System.out.println("Protocol: " +
((OSS_F1AP_CauseProtocol)pcause.getChosenValue()).longValue());
/* misc */
else if (pcause.hasMisc())
System.out.println("misc: " +
((OSS_F1AP_CauseMisc)pcause.getChosenValue()).longValue());
/* other IEs are printed as ASN.1 value notation */
} else if (value.getDecodedValue() != null) {
System.out.print(value.getDecodedValue());
} else
System.out.println("PDU is not decoded");
System.out.println();
indent--;
}
}
/*
* Prints ProtocolExtensionContainer data.
*/
static void printProtocolExtensions(
OSS_F1AP_ProtocolExtensionContainer ie_ext, int indent)
{
printDataWithIndent(indent++, "iE-Extensions includes the following IEs:");
for (int i = 0; i < ie_ext.getSize(); i++) {
OSS_F1AP_ProtocolExtensionField field = ie_ext.get(i);
OpenType value = field.getExtensionValue();
long fieldId = field.getId().longValue();
printIndent(indent++);
System.out.println("#" + (i + 1) + ": id = " + fieldId +
", criticality = " +
Criticalities[(int)field.getCriticality().longValue()]);
if (value.getDecodedValue() != null)
System.out.println(value.getDecodedValue());
else
System.out.println("PDU is not decoded");
}
}
/*
* Helper method. Converts byte[] array to the Hstring format, like '12345'H.
*/
static String toHstring(byte[] value)
{
return "'" + HexTool.getHex(value) + "'H";
}
/*
* Performs indentation.
* @param indentlevel indentation level.
*/
public static void printIndent(int indentlevel)
{
for (int i = 0; i < indentlevel; i++)
System.out.print(' ');
}
/*
* Print indentation with following data.
*/
public static void printDataWithIndent(int indentlevel, Object data)
{
printIndent(indentlevel);
System.out.println(data);
}
}
This is the expected output when running the sample:
Decoded F1AP message: ... Encoding response message... Encoding successful.
-- Excerpt from f1ap.asn 3GPP TS 38.473 V19.0.0 (2025-09)
-- **************************************************************
--
-- Elementary Procedure definitions
--
-- **************************************************************
F1AP-PDU-Descriptions {
itu-t (0) identified-organization (4) etsi (0) mobileDomain (0)
ngran-access (22) modules (3) f1ap (3) version1 (1) f1ap-PDU-Descriptions (0)}
DEFINITIONS AUTOMATIC TAGS ::=
BEGIN
-- **************************************************************
--
-- IE parameter types from other modules.
--
-- **************************************************************
IMPORTS
Criticality,
ProcedureCode
FROM F1AP-CommonDataTypes
Reset,
ResetAcknowledge,
F1SetupRequest,
F1SetupResponse,
F1SetupFailure,
GNBDUConfigurationUpdate,
GNBDUConfigurationUpdateAcknowledge,
GNBDUConfigurationUpdateFailure,
GNBCUConfigurationUpdate,
GNBCUConfigurationUpdateAcknowledge,
GNBCUConfigurationUpdateFailure,
UEContextSetupRequest,
UEContextSetupResponse,
UEContextSetupFailure,
UEContextReleaseCommand,
UEContextReleaseComplete,
UEContextModificationRequest,
UEContextModificationResponse,
UEContextModificationFailure,
UEContextModificationRequired,
UEContextModificationConfirm,
ErrorIndication,
UEContextReleaseRequest,
DLRRCMessageTransfer,
ULRRCMessageTransfer,
GNBDUResourceCoordinationRequest,
GNBDUResourceCoordinationResponse,
PrivateMessage,
UEInactivityNotification,
InitialULRRCMessageTransfer,
SystemInformationDeliveryCommand,
Paging,
Notify,
WriteReplaceWarningRequest,
WriteReplaceWarningResponse,
PWSCancelRequest,
PWSCancelResponse,
PWSRestartIndication,
PWSFailureIndication,
GNBDUStatusIndication,
RRCDeliveryReport,
UEContextModificationRefuse,
F1RemovalRequest,
F1RemovalResponse,
F1RemovalFailure,
NetworkAccessRateReduction,
TraceStart,
DeactivateTrace,
DUCURadioInformationTransfer,
CUDURadioInformationTransfer,
BAPMappingConfiguration,
BAPMappingConfigurationAcknowledge,
BAPMappingConfigurationFailure,
GNBDUResourceConfiguration,
GNBDUResourceConfigurationAcknowledge,
GNBDUResourceConfigurationFailure,
IABTNLAddressRequest,
IABTNLAddressResponse,
IABTNLAddressFailure,
IABUPConfigurationUpdateRequest,
IABUPConfigurationUpdateResponse,
IABUPConfigurationUpdateFailure,
ResourceStatusRequest,
ResourceStatusResponse,
ResourceStatusFailure,
ResourceStatusUpdate,
AccessAndMobilityIndication,
ReferenceTimeInformationReportingControl,
ReferenceTimeInformationReport,
AccessSuccess,
CellTrafficTrace,
PositioningMeasurementRequest,
PositioningMeasurementResponse,
PositioningMeasurementFailure,
PositioningAssistanceInformationControl,
PositioningAssistanceInformationFeedback,
PositioningMeasurementReport,
PositioningMeasurementAbort,
PositioningMeasurementFailureIndication,
PositioningMeasurementUpdate,
TRPInformationRequest,
TRPInformationResponse,
TRPInformationFailure,
PositioningInformationRequest,
PositioningInformationResponse,
PositioningInformationFailure,
PositioningActivationRequest,
PositioningActivationResponse,
PositioningActivationFailure,
PositioningDeactivation,
PositioningInformationUpdate,
E-CIDMeasurementInitiationRequest,
E-CIDMeasurementInitiationResponse,
E-CIDMeasurementInitiationFailure,
E-CIDMeasurementFailureIndication,
E-CIDMeasurementReport,
E-CIDMeasurementTerminationCommand,
BroadcastContextSetupRequest,
BroadcastContextSetupResponse,
BroadcastContextSetupFailure,
BroadcastContextReleaseCommand,
BroadcastContextReleaseComplete,
BroadcastContextReleaseRequest,
BroadcastContextModificationRequest,
BroadcastContextModificationResponse,
BroadcastContextModificationFailure,
MulticastGroupPaging,
MulticastContextSetupRequest,
MulticastContextSetupResponse,
MulticastContextSetupFailure,
MulticastContextReleaseCommand,
MulticastContextReleaseComplete,
MulticastContextReleaseRequest,
MulticastContextModificationRequest,
MulticastContextModificationResponse,
MulticastContextModificationFailure,
MulticastDistributionSetupRequest,
MulticastDistributionSetupResponse,
MulticastDistributionSetupFailure,
MulticastDistributionReleaseCommand,
MulticastDistributionReleaseComplete,
PDCMeasurementInitiationRequest,
PDCMeasurementInitiationResponse,
PDCMeasurementInitiationFailure,
PDCMeasurementReport,
PDCMeasurementTerminationCommand,
PDCMeasurementFailureIndication,
PRSConfigurationRequest,
PRSConfigurationResponse,
PRSConfigurationFailure,
MeasurementPreconfigurationRequired,
MeasurementPreconfigurationConfirm,
MeasurementPreconfigurationRefuse,
MeasurementActivation,
QoEInformationTransfer,
PosSystemInformationDeliveryCommand,
DUCUCellSwitchNotification,
CUDUCellSwitchNotification,
DUCUTAInformationTransfer,
CUDUTAInformationTransfer,
QoEInformationTransferControl,
RachIndication,
TimingSynchronisationStatusRequest,
TimingSynchronisationStatusResponse,
TimingSynchronisationStatusFailure,
TimingSynchronisationStatusReport,
MIABF1SetupTriggering,
MIABF1SetupOutcomeNotification,
MulticastContextNotificationIndication,
MulticastContextNotificationConfirm,
MulticastContextNotificationRefuse,
MulticastCommonConfigurationRequest,
MulticastCommonConfigurationResponse,
MulticastCommonConfigurationRefuse,
BroadcastTransportResourceRequest,
DUCUAccessAndMobilityIndication,
SRSInformationReservationNotification,
CUDUMobilityInitiationRequest,
CLI-Indication,
DUCUCSIRSCoordinationRequest,
DUCUCSIRSCoordinationResponse,
CUDUCSIRSCoordinationRequest,
CUDUCSIRSCoordinationResponse
FROM F1AP-PDU-Contents
id-Reset,
id-F1Setup,
id-gNBDUConfigurationUpdate,
id-gNBCUConfigurationUpdate,
id-UEContextSetup,
id-UEContextRelease,
id-UEContextModification,
id-UEContextModificationRequired,
id-DUCUAccessAndMobilityIndication,
id-ErrorIndication,
id-UEContextReleaseRequest,
id-DLRRCMessageTransfer,
id-ULRRCMessageTransfer,
id-GNBDUResourceCoordination,
id-privateMessage,
id-UEInactivityNotification,
id-InitialULRRCMessageTransfer,
id-SystemInformationDeliveryCommand,
id-Paging,
id-Notify,
id-WriteReplaceWarning,
id-PWSCancel,
id-PWSRestartIndication,
id-PWSFailureIndication,
id-GNBDUStatusIndication,
id-RRCDeliveryReport,
id-F1Removal,
id-NetworkAccessRateReduction,
id-TraceStart,
id-DeactivateTrace,
id-DUCURadioInformationTransfer,
id-CUDURadioInformationTransfer,
id-BAPMappingConfiguration,
id-GNBDUResourceConfiguration,
id-IABTNLAddressAllocation,
id-IABUPConfigurationUpdate,
id-resourceStatusReportingInitiation,
id-resourceStatusReporting,
id-accessAndMobilityIndication,
id-ReferenceTimeInformationReportingControl,
id-ReferenceTimeInformationReport,
id-accessSuccess,
id-cellTrafficTrace,
id-PositioningMeasurementExchange,
id-PositioningAssistanceInformationControl,
id-PositioningAssistanceInformationFeedback,
id-PositioningMeasurementReport,
id-PositioningMeasurementAbort,
id-PositioningMeasurementFailureIndication,
id-PositioningMeasurementUpdate,
id-TRPInformationExchange,
id-PositioningInformationExchange,
id-PositioningActivation,
id-PositioningDeactivation,
id-PositioningInformationUpdate,
id-E-CIDMeasurementInitiation,
id-E-CIDMeasurementFailureIndication,
id-E-CIDMeasurementReport,
id-E-CIDMeasurementTermination,
id-BroadcastContextSetup,
id-BroadcastContextRelease,
id-BroadcastContextReleaseRequest,
id-BroadcastContextModification,
id-MulticastGroupPaging,
id-MulticastContextSetup,
id-MulticastContextRelease,
id-MulticastContextReleaseRequest,
id-MulticastContextModification,
id-MulticastDistributionSetup,
id-MulticastDistributionRelease,
id-PDCMeasurementInitiation,
id-PDCMeasurementTerminationCommand,
id-PDCMeasurementFailureIndication,
id-PDCMeasurementReport,
id-pRSConfigurationExchange,
id-measurementPreconfiguration,
id-measurementActivation,
id-QoEInformationTransfer,
id-PosSystemInformationDeliveryCommand,
id-DUCUCellSwitchNotification,
id-CUDUCellSwitchNotification,
id-DUCUTAInformationTransfer,
id-CUDUTAInformationTransfer,
id-QoEInformationTransferControl,
id-RachIndication,
id-TimingSynchronisationStatus,
id-TimingSynchronisationStatusReport,
id-MIABF1SetupTriggering,
id-MIABF1SetupOutcomeNotification,
id-MulticastContextNotification,
id-MulticastCommonConfiguration,
id-BroadcastTransportResourceRequest,
id-SRSInformationReservationNotification,
id-CUDUMobilityInitiationRequest,
id-CLI-Indication,
id-DUCUCSIRSCoordination,
id-CUDUCSIRSCoordination
FROM F1AP-Constants
ProtocolIE-SingleContainer{},
F1AP-PROTOCOL-IES
FROM F1AP-Containers;
-- **************************************************************
--
-- Interface Elementary Procedure Class
--
-- **************************************************************
F1AP-ELEMENTARY-PROCEDURE ::= CLASS {
&InitiatingMessage ,
&SuccessfulOutcome OPTIONAL,
&UnsuccessfulOutcome OPTIONAL,
&procedureCode ProcedureCode UNIQUE,
&criticality Criticality DEFAULT ignore
}
WITH SYNTAX {
INITIATING MESSAGE &InitiatingMessage
[SUCCESSFUL OUTCOME &SuccessfulOutcome]
[UNSUCCESSFUL OUTCOME &UnsuccessfulOutcome]
PROCEDURE CODE &procedureCode
[CRITICALITY &criticality]
}
-- **************************************************************
--
-- Interface PDU Definition
--
-- **************************************************************
F1AP-PDU ::= CHOICE {
initiatingMessage InitiatingMessage,
successfulOutcome SuccessfulOutcome,
unsuccessfulOutcome UnsuccessfulOutcome,
choice-extension ProtocolIE-SingleContainer { { F1AP-PDU-ExtIEs} }
}
F1AP-PDU-ExtIEs F1AP-PROTOCOL-IES ::= { -- this extension is not used
...
}
InitiatingMessage ::= SEQUENCE {
procedureCode F1AP-ELEMENTARY-PROCEDURE.&procedureCode ({F1AP-ELEMENTARY-PROCEDURES}),
criticality F1AP-ELEMENTARY-PROCEDURE.&criticality ({F1AP-ELEMENTARY-PROCEDURES}{@procedureCode}),
value F1AP-ELEMENTARY-PROCEDURE.&InitiatingMessage ({F1AP-ELEMENTARY-PROCEDURES}{@procedureCode})
}
SuccessfulOutcome ::= SEQUENCE {
procedureCode F1AP-ELEMENTARY-PROCEDURE.&procedureCode ({F1AP-ELEMENTARY-PROCEDURES}),
criticality F1AP-ELEMENTARY-PROCEDURE.&criticality ({F1AP-ELEMENTARY-PROCEDURES}{@procedureCode}),
value F1AP-ELEMENTARY-PROCEDURE.&SuccessfulOutcome ({F1AP-ELEMENTARY-PROCEDURES}{@procedureCode})
}
UnsuccessfulOutcome ::= SEQUENCE {
procedureCode F1AP-ELEMENTARY-PROCEDURE.&procedureCode ({F1AP-ELEMENTARY-PROCEDURES}),
criticality F1AP-ELEMENTARY-PROCEDURE.&criticality ({F1AP-ELEMENTARY-PROCEDURES}{@procedureCode}),
value F1AP-ELEMENTARY-PROCEDURE.&UnsuccessfulOutcome ({F1AP-ELEMENTARY-PROCEDURES}{@procedureCode})
}
-- **************************************************************
--
-- Interface Elementary Procedure List
--
-- **************************************************************
F1AP-ELEMENTARY-PROCEDURES F1AP-ELEMENTARY-PROCEDURE ::= {
F1AP-ELEMENTARY-PROCEDURES-CLASS-1 |
F1AP-ELEMENTARY-PROCEDURES-CLASS-2,
...
}
F1AP-ELEMENTARY-PROCEDURES-CLASS-1 F1AP-ELEMENTARY-PROCEDURE ::= {
reset |
f1Setup |
gNBDUConfigurationUpdate |
gNBCUConfigurationUpdate |
uEContextSetup |
uEContextRelease |
uEContextModification |
uEContextModificationRequired |
writeReplaceWarning |
pWSCancel |
gNBDUResourceCoordination |
f1Removal |
bAPMappingConfiguration |
gNBDUResourceConfiguration |
iABTNLAddressAllocation |
iABUPConfigurationUpdate |
resourceStatusReportingInitiation |
positioningMeasurementExchange |
tRPInformationExchange |
positioningInformationExchange |
positioningActivation |
e-CIDMeasurementInitiation |
broadcastContextSetup |
broadcastContextRelease |
broadcastContextModification |
multicastContextSetup |
multicastContextRelease |
multicastContextModification |
multicastDistributionSetup |
multicastDistributionRelease |
pDCMeasurementInitiation |
pRSConfigurationExchange |
measurementPreconfiguration |
timingSynchronisationStatus |
multicastContextNotification |
multicastCommonConfiguration |
cUDUCSIRSCoordination|
dUCUCSIRSCoordination,
...
}
F1AP-ELEMENTARY-PROCEDURES-CLASS-2 F1AP-ELEMENTARY-PROCEDURE ::= {
errorIndication |
uEContextReleaseRequest |
dLRRCMessageTransfer |
uLRRCMessageTransfer |
uEInactivityNotification |
privateMessage |
initialULRRCMessageTransfer |
systemInformationDelivery |
paging |
notify |
pWSRestartIndication |
pWSFailureIndication |
gNBDUStatusIndication |
rRCDeliveryReport |
networkAccessRateReduction |
traceStart |
deactivateTrace |
dUCURadioInformationTransfer |
cUDURadioInformationTransfer |
resourceStatusReporting |
accessAndMobilityIndication |
referenceTimeInformationReportingControl|
referenceTimeInformationReport |
accessSuccess |
cellTrafficTrace |
positioningAssistanceInformationControl |
positioningAssistanceInformationFeedback |
positioningMeasurementReport |
positioningMeasurementAbort |
positioningMeasurementFailureIndication |
positioningMeasurementUpdate |
positioningDeactivation |
e-CIDMeasurementFailureIndication |
e-CIDMeasurementReport |
e-CIDMeasurementTermination |
positioningInformationUpdate |
multicastGroupPaging |
broadcastContextReleaseRequest |
multicastContextReleaseRequest |
pDCMeasurementReport |
pDCMeasurementTerminationCommand |
pDCMeasurementFailureIndication |
measurementActivation |
qoEInformationTransfer |
posSystemInformationDelivery |
dUCUCellSwitchNotification |
cUDUCellSwitchNotification |
dUCUTAInformationTransfer |
cUDUTAInformationTransfer |
qoEInformationTransferControl |
rachIndication |
timingSynchronisationStatusReport |
mIABF1SetupTriggering |
mIABF1SetupOutcomeNotification |
broadcastTransportResourceRequest |
dUCUAccessAndMobilityIndication |
sRSInformationReservationNotification |
cUDUMobilityInitiation|
cLI-Indication,
...
}
The gui/ subdirectory contains an ASN.1 Studio project for this sample. With ASN.1 Studio you can:
This sample is provided solely for illustration purposes, for example to demonstrate usage of the OSS ASN.1 Tools API with 3GPP 5G F1AP messages. It does not represent a complete application. To build and run this sample, you must use a trial or licensed version of the appropriate OSS ASN.1 Tools. The copyright and license statements included in each source file remain fully applicable.
If you have questions about using this sample, contact OSS Nokalva Support.