A transcoding implementation method and device

By transcoding ASN.1 data into a universal object structure and then converting it back to the ASN.1 data structure, the problem of ASN.1 encoding and decoding complexity in 5G network development is solved, the development cost and cycle are reduced, and the efficiency is improved.

CN112188211BActive Publication Date: 2024-09-17BEIJING FEINNO COMM TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010850263.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-21
Publication Date
2024-09-17
Estimated Expiration
2040-08-21

AI Technical Summary

Technical Problem

In the process of developing 5G networks using existing technologies, the complexity of ASN.1 encoding and decoding results in high development costs and long development cycles, making it difficult to improve production efficiency.

Method used

By receiving the data of the ASN.1 data structure, transcoding it into the intermediate data of the general object structure for operation and processing, and finally transcoding it back to the ASN.1 data structure, it shields the underlying complexity of NGAP encoding and decoding and reduces the difficulty and cost of development. .

Benefits of technology

It simplifies the development process, reduces development costs and cycles, improves production efficiency, and promotes the development and application of 5G networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112188211B
    Figure CN112188211B
Patent Text Reader

Abstract

The present application discloses a transcoding implementation method and device, the method comprising: receiving data with an ASN.1 data structure; performing transcoding processing on the data, and transcoding the data into intermediate data with a general object structure; after completing the operation processing on the intermediate data, transcoding the data with a general object structure obtained after the operation processing into data with an ASN.1 data structure. The technical solution of the present application transcodes the received data with an ASN.1 data structure into intermediate data with a general object structure. Since the intermediate data with a general object structure is easier to read and write, the intermediate data can be directly operated during the development process, thereby shielding the complexity of the underlying NGAP codec, reducing development costs, shortening the development cycle, and improving production efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a transcoding implementation method and device. Background Art

[0002] NGAP (NG Application Protocol) provides signaling services between NG-RAN (NG wireless access network) nodes and AMF (Access and Mobility Management Function) nodes. NGAP uses ASN.1 (Abstract Syntax Notation one) protocol as the codec protocol, which can exchange small-scale information, easily create codecs that occupy low memory, and can perform high-speed encoding / decoding of messages.

[0003] The goal of the fifth generation mobile communication technology (5G) is higher data rate, reduced latency, improved energy efficiency, lower cost, increased system capacity and large-scale device connection. Since ASN.1 can meet all these requirements, 3GPP chose to continue using ASN.1 for 5G.

[0004] In the field of computer networks, ASN.1 is a set of standards, which is a flexible notation for describing the representation, encoding, transmission, and decoding of data. It provides a set of formal, unambiguous, and precise rules to describe object structures that are independent of specific computer hardware.

[0005] ASN.1 includes multiple standardized encoding rules, such as Basic Encoding Rule (BER), Canonical Encoding Rules (CER), Distinguished Encoding Rules (DER), Packet Encoding Rule (PER) and XML Encoding Rules (XER). These encoding rules describe how to encode the values ​​defined in ASN.1 for transmission, regardless of factors such as the computer, programming language, or how it is represented in the application.

[0006] ASN.1's encoding method is more advanced than many competing tag systems. It supports fast and reliable transmission of scalable information, which is an advantage, especially in wireless broadband, but it also brings a huge workload for encoding and decoding. Summary of the invention

[0007] The present application provides a transcoding implementation method and device to shield the complexity of the underlying NGAP codec, reduce development costs, shorten development cycles, and improve production efficiency.

[0008] According to one aspect of the present application, a transcoding implementation method is provided, the method comprising:

[0009] Receive data having an ASN.1 data structure;

[0010] Transcoding the data into intermediate data having a general object structure;

[0011] After the operation processing of the intermediate data is completed, the data with the general object structure obtained after the operation processing is transcoded into data with the ASN.1 data structure.

[0012] According to one aspect of the present application, a transcoding implementation device is provided, the device comprising:

[0013] A receiving unit, used for receiving data having an ASN.1 data structure;

[0014] A first transcoding unit, configured to perform transcoding processing on the data, and transcode the data into intermediate data having a general object structure;

[0015] The second transcoding unit is used to transcode the data with the general object structure obtained after the operation processing into data with the ASN.1 data structure after completing the operation processing on the intermediate data.

[0016] According to one aspect of the present application, a transcoding implementation system is provided, comprising a memory and a processor; the memory stores computer executable instructions; the processor, when the computer executable instructions are executed, causes the processor to execute a transcoding implementation method.

[0017] According to one aspect of the present application, a computer-readable storage medium is provided, on which one or more computer programs are stored, and the transcoding implementation method is implemented when the one or more computer programs are executed.

[0018] The beneficial effect of the present application is: the received data with an ASN.1 data structure is transcoded into intermediate data with a general object structure. Since the intermediate data with a general object structure is easier to read and write, the intermediate data can be directly operated during the development process, and finally the data is transcoded into data with an ASN.1 data structure to achieve data transcoding, thereby shielding the complexity of the underlying NGAP encoding and decoding, reducing development costs, shortening development cycles, improving production efficiency, and promoting the development and application of 5G networks. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a flowchart of a transcoding implementation method according to an embodiment of the present application;

[0020] Figure 2 This is a schematic diagram of the transcoding implementation process of an embodiment of the present application;

[0021] Figure 3 This is a schematic diagram of an ASN.1 standard encoder / decoder according to an embodiment of the present application;

[0022] Figure 4 This is a schematic diagram of a process of calling a decoder to decode data according to an embodiment of the present application;

[0023] Figure 5 is a hardware structure diagram of a transcoding implementation system according to an embodiment of the present application;

[0024] Figure 6 yes Figure 5 Functional block diagram of the transcoding implementation device shown in . DETAILED DESCRIPTION

[0025] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0026] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0027] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0028] In order to shield the complexity of the underlying NGAP codec and improve the development efficiency of system interaction, the present disclosure provides a transcoding implementation method, see Figure 1 , the method comprises the following steps:

[0029] Step S110, receiving data having an ASN.1 data structure.

[0030] In this step, data having an ASN.1 data structure is received from the ASN.1 framework layer.

[0031] Step S120, transcoding the data into intermediate data having a general object structure.

[0032] In this step, the data is specifically transcoded into intermediate data having a common object structure such as a JSON object structure, an XML object structure or a Java object structure.

[0033] Step S130, after completing the operation processing on the intermediate data, transcode the data with the general object structure obtained after the operation processing into data with the ASN.1 data structure.

[0034] In this step, the processed data obtained after the intermediate data is processed by the operation has the same or different general object structure as the intermediate data. For example, if the intermediate data is data with a JSON object structure, then the processed data may be data with an XML object structure, or the processed data may be data with a JSON object structure.

[0035] In this step, the data with the general object structure obtained after the operation processing is transcoded into data with the ASN.1 data structure, so as to perform transmission processing on the transcoded data based on the ASN.1 protocol.

[0036] Depend on Figure 1As shown, this embodiment transcodes the received data with an ASN.1 data structure into intermediate data with a general object structure. Since the intermediate data with a general object structure is easier to read and write, the intermediate data can be directly operated during the development process, and finally the data is transcoded into data with an ASN.1 data structure to achieve data transcoding, thereby shielding the complexity of the underlying NGAP codec, reducing development costs, shortening development cycles, improving production efficiency, and promoting the development and application of 5G networks.

[0037] Combine the following Figure 2-Figure 4 The transcoding implementation method of the present disclosure is described in detail.

[0038] In combination with the requirements of 5G core network development, the coding architecture is as follows Figure 2 As shown, through an encoder / decoder applicable to ASN.1 rules, data under the ASN.1 protocol can be converted into an object structure of a general development language, such as JSON, XML or Java object structure.

[0039] The data value under the ASN.1 basic encoding rule consists of four parts, namely, identifier, length, content and content terminator. There are two encoding structures as shown in Table 1 and Table 2 below.

[0040] Table 1

[0041] Identifier length content

[0042] Table 2

[0043] Identifier length content Content end character

[0044] More specifically, when encoded with Boolean type, the encoding form of TRUE is shown in Table 3, and when encoded with String type, the encoding form of “Jones” is shown in Table 4.

[0045] Table 3

[0046] Boolean length content <![CDATA[01 16 ]]> <![CDATA[01 16 ]]> <![CDATA[FF 16 ]]>

[0047] Table 4

[0048] VisibleString length content <![CDATA[1A 16 ]]> <![CDATA[05 16 ]]> <![CDATA[4A6F6E6573 16 ]]>

[0049] The process of converting an ASN.1 data structure to a generic object structure includes:

[0050] After receiving data with an ASN.1 data structure, the data with the ASN.1 data structure is parsed and processed to obtain an ASN.1 structure corresponding to the data; the corresponding data type and data content are obtained through the ASN.1 structure; a decoder corresponding to the data type is selected according to the data type to decode the data content to obtain the original data content; and the original data content is transcoded into intermediate data with a general object structure.

[0051] In some embodiments of the present disclosure, before transcoding the data, the structure defined by ASN.1 can be initialized and loaded and parsed, and a standard decoder applicable to ASN.1 rules and a custom decoder applicable to ASN.1 rules can be loaded at the same time, where the standard decoder is the decoding of the standard type defined by ASN.1, and the custom decoder is the decoding of the corresponding extended type.

[0052] In some embodiments, a standard decoder applicable to ASN.1 rules and a custom decoder applicable to ASN.1 rules can be obtained through an ASN.1 codec interface, and each decoder has a corresponding relationship with the data type included in the ASN.1 structure. In this way, a decoder corresponding to the data type can be selected according to the corresponding relationship to decode the data content.

[0053] In an application scenario of the present embodiment, a byte can be first read from a byte stream of data having an ASN.1 data structure to obtain the data type, and then a corresponding type decoder can be obtained based on the data type based on the above correspondence, and then the next byte can be read from the byte array to obtain the length of the data content, and data of this length can be read from the byte array, and the original data content can be decoded by the obtained decoder, and the decoded original data content can be stored in the corresponding general object structure in the structure defined by ASN.1, for example, directly stored as a JSON structure.

[0054] The process of converting a generic object structure into an ASN.1 data structure includes:

[0055] After completing the operation and processing of the intermediate data, the standard encoder applicable to the ASN.1 rules and the custom encoder applicable to the ASN.1 rules are obtained through the ASN.1 encoding and decoding interface, and each encoder has a corresponding relationship with the data type included in the general object structure; according to the corresponding relationship, the encoder corresponding to the data obtained after the operation and processing is selected for encoding, and the data obtained after the operation and processing is transcoded into data with an ASN.1 data structure.

[0056] In the transcoding process of this embodiment, it is necessary to use a standard codec applicable to the ASN.1 rules and a custom codec applicable to the ASN.1 rules.

[0057] See also Figure 3 The standard decoders of the ASN.1 rules shown generally include a Boolean type decoder (BooleanDecoder), a string type decoder (String Decoder), a sequence type decoder (Sequence Decoder), a set type decoder (Set Decoder), and a table type decoder (Implement Decoder).

[0058] The custom decoder of the ASN.1 rule registers a decoder based on a custom data type and establishes a corresponding relationship between the custom data type and the custom decoder. During the transcoding process, when data with a common object structure needs to be decoded, the custom decoder can be obtained through the custom data type included in the common object structure, and then the custom decoder can be called to decode the data.

[0059] See also Figure 4 The process of calling the decoder to decode the data is shown. The decoder (including custom decoders and standard decoders) is pre-registered in the register method, the type of the decoder is used as the key value of this method, and the decoder itself is used as the value. When decoding is required, the corresponding key value is read through the handle method, and the corresponding value is obtained from the Register based on the key-value correspondence, so as to obtain the corresponding type of decoder to decode the data.

[0060] Based on the above transcoding implementation method, the data 300D1605536D6974680101FF020108 displayed in ASN.1 format is transcoded as an example. After parsing, the data is shown in Table 5 below:

[0061] Table 5

[0062]

[0063] The data is converted to JSON format and displayed as: {name:"Smith",ok:TRUE,age:8}. The corresponding data object format is:

[0064] SEQUENCE{

[0065] name IA5String,

[0066] ok BOOLEAN,

[0067] age Integer}

[0068] The values ​​are:

[0069] {name:"Smith",ok:TRUE,age:8}

[0070] By comparison, transcoding data with an ASN.1 data structure into intermediate data with a general object structure has at least the following advantages:

[0071] 1) Easy to read and write

[0072] The advantages of ASN.1 data structure are low memory usage, high-speed transmission, and strong format versatility. However, ASN.1 data structure is in TLV (Type-Length-Value) format and is stored in BIT format, which is not easy to read and write.

[0073] The general object structure such as JSON is a lightweight data exchange format that is easy to read and write, and also easy to machine parse and generate.

[0074] 2) Low development difficulty

[0075] The ASN.1 data structure includes more than 30 standard data types, each of which is identified by an integer, which is not easy to remember. However, the data types included in the general object structure such as JSON include String, Number (numeric type), Boolean, Object (object reference type), and Array (array reference type). The types are simple, with few types, easy to remember and use. The household data of the general object structure has a simple data format, which is convenient for subsequent development and use.

[0076] 3) Shield the complexity of the underlying layer and improve the development efficiency of internal system interactions

[0077] ASN.1 encoding rules include BER, CER, DER, PER, XER and other encoding rules. Using only the ASN.1 protocol makes development difficult, and each operation on ASN.1 data requires specifying the corresponding encoding and decoding rules.

[0078] The disclosed embodiment first parses all ASN.1 decoding modules into general object types, then directly operates the objects during the development process, and finally uses the ASN.1 encoder to compile into ASN.1 data format. This can shield the complexity, diversity and variability of the underlying NGAP codec, greatly reduce the learning and development costs of developers, improve production efficiency, shorten the system development cycle, and promote the development and application of 5G networks.

[0079] Corresponding to the aforementioned method, the present application also provides a transcoding implementation device, which can be applied to a system server of SAN.1.

[0080] The transcoding implementation device provided in the present application can be implemented by software, or by hardware, or by a combination of software and hardware.

[0081] Taking software implementation as an example, the processor 10 may read the machine executable instructions corresponding to the transcoding implementation device 60 in the non-volatile memory 50 into the volatile memory 40 for execution.

[0082] From the hardware level, Figure 5 As shown, it is a hardware structure diagram of the transcoding implementation system of this application, except Figure 5 In addition to the processor 10, internal bus 20, network interface 30, volatile memory 40, and non-volatile memory 50 shown, other hardware may also be included according to the actual functions of the system, which will not be described in detail.

[0083] In different embodiments, the non-volatile memory 50 may be a storage drive (such as a hard disk drive), a solid state drive, any type of storage disk (such as an optical disk, a DVD, etc.), or a similar storage medium, or a combination thereof. The volatile memory 40 may be a RAM (Random Access Memory) or the like.

[0084] Furthermore, the non-volatile memory 50 and the volatile memory 40 serve as machine-readable storage media, on which machine-executable instructions corresponding to the transcoding implementation device 60 executed by the processor 10 can be stored.

[0085] From the functional point of view, the transcoding implementation device 60 includes:

[0086] The receiving unit 610 is used to receive data having an ASN.1 data structure;

[0087] A first transcoding unit 620, configured to perform transcoding processing on the data, and transcode the data into intermediate data having a general object structure;

[0088] The second transcoding unit 630 is used to transcode the data with the general object structure obtained after the operation processing into data with the ASN.1 data structure after completing the operation processing on the intermediate data.

[0089] In one embodiment, a first transcoding unit is used to parse the data having the ASN.1 data structure to obtain an ASN.1 structure corresponding to the data; obtain the corresponding data type and data content through the ASN.1 structure; select a decoder corresponding to the data type according to the data type to decode the data content to obtain the original data content; and transcode the original data content into intermediate data having a general object structure.

[0090] In one embodiment, the first transcoding unit is specifically used to obtain a standard decoder applicable to ASN.1 rules and a custom decoder applicable to ASN.1 rules through an ASN.1 encoding and decoding interface, and each decoder has a corresponding relationship with the data type included in the ASN.1 structure; according to the corresponding relationship, a decoder corresponding to the data type is selected to decode the data content.

[0091] In one embodiment, the second transcoding unit is used to obtain a standard encoder applicable to ASN.1 rules and a custom encoder applicable to ASN.1 rules through an ASN.1 encoding and decoding interface, each encoder having a corresponding relationship with a data type included in a general object structure; according to the corresponding relationship, an encoder corresponding to the data obtained after the operation processing is selected for encoding, and the data obtained after the operation processing is transcoded into data having an ASN.1 data structure.

[0092] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.

[0093] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprises a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

Claims

1. A transcoding implementation method, characterized in that: include: Receive data with ASN.1 data structure from the ASN.1 frame layer; Transcoding the data into intermediate data having a general object structure; After completing the operation processing of the intermediate data, transcoding the data with the general object structure obtained after the operation processing into data with the ASN.1 data structure, so as to perform transmission processing on the transcoded data based on the ASN.1 protocol; Transcoding the data into intermediate data having a general object structure includes: Parsing the data having the ASN.1 data structure to obtain an ASN.1 structure corresponding to the data; Obtaining corresponding data types and data contents through the ASN.1 structure, wherein the data types included in the ASN.1 structure have a corresponding relationship with the decoder; According to the corresponding relationship, a decoder corresponding to the data type is selected to decode the data content to obtain the original data content; specifically, the decoder is pre-registered in the register Register method, the data type corresponding to the decoder is used as the key value of the Register method, and the decoder itself is used as the value. When decoding is required, the corresponding key value is read by the handle method, and the corresponding value is obtained from the Register based on the key-value corresponding relationship, and the decoder corresponding to the corresponding data type is obtained to decode the data; The original data content is transcoded into intermediate data having a general object structure.

2. The method according to claim 1, characterized in that Before transcoding the data, the method further includes: Obtain standard decoders and custom decoders applicable to ASN.1 rules through the ASN.1 codec interface.

3. The method according to claim 1, characterized in that After the operation processing of the intermediate data is completed, the data with the general object structure obtained after the operation processing is transcoded into data with the ASN.1 data structure, including: Obtain standard encoders and custom encoders applicable to ASN.1 rules through the ASN.1 encoding and decoding interface. Each encoder has a corresponding relationship with the data type included in the general object structure. According to the corresponding relationship, an encoder corresponding to the data obtained after the operation processing is selected for encoding, and the data obtained after the operation processing is transcoded into data with an ASN.1 data structure.

4. The method according to claim 1, characterized in that: The general object structure includes a JSON object structure, an XML object structure or a Java object structure.

5. A transcoding implementation device, characterized in that: include: A receiving unit, used for receiving data having an ASN.1 data structure from an ASN.1 framework layer; A first transcoding unit, configured to perform transcoding processing on the data, and transcode the data into intermediate data having a general object structure; A second transcoding unit is used for, after completing the operation processing on the intermediate data, transcoding the data with the general object structure obtained after the operation processing into data with the ASN.1 data structure, so as to perform transmission processing on the transcoded data based on the ASN.1 protocol; The first transcoding unit is further used to parse and process the data with the ASN.1 data structure to obtain the ASN.1 structure corresponding to the data; obtain the corresponding data type and data content through the ASN.1 structure, and the data type included in the ASN.1 structure has a corresponding relationship with the decoder; select the decoder corresponding to the data type according to the data type to decode the data content to obtain the original data content, specifically, pre-register the decoder in the register Register method, use the data type corresponding to the decoder as the key value of the Register method, and use the decoder itself as the value. When decoding is required, read the corresponding key value by processing the handle method, obtain the corresponding value from the Register based on the key-value correspondence, and obtain the decoder corresponding to the corresponding data type to decode the data; transcode the original data content into intermediate data with a general object structure.

6. The device according to claim 5, characterized in that The first transcoding unit is further used to obtain a standard decoder applicable to the ASN.1 rules and a custom decoder applicable to the ASN.1 rules through an ASN.1 encoding and decoding interface.

7. The device according to claim 5, characterized in that The second transcoding unit is used to obtain a standard encoder applicable to ASN.1 rules and a custom encoder applicable to ASN.1 rules through an ASN.1 encoding and decoding interface, each encoder having a corresponding relationship with a data type included in a general object structure; according to the corresponding relationship, an encoder corresponding to the data obtained after the operation processing is selected for encoding, and the data obtained after the operation processing is transcoded into data having an ASN.1 data structure.

8. A transcoding implementation system, characterized in that: including memory and processor; The memory stores computer executable instructions; The processor, when the computer executable instructions are executed, causes the processor to perform the transcoding implementation method as described in any one of claims 1-4.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more computer programs, and when the one or more computer programs are executed, the transcoding implementation method according to any one of claims 1 to 4 is implemented.