ASN.1 protocol processor and method for ASN.1 protocol processing

Information

  • Patent Application
  • 20070204054
  • Publication Number
    20070204054
  • Date Filed
    October 06, 2006
    18 years ago
  • Date Published
    August 30, 2007
    17 years ago
Abstract
The present invention discloses an ASN.1 protocol processor for protocol interacting between the server and client and transformation between protocol data and byte stream data, comprising: a protocol data description module in which ASN.1 protocol is integrated and a protocol procedure module in which protocol procedure codes are integrated; wherein the protocol data description module stores ASN.1 protocol description information which is described by the eXtensible Markup Language (XML) and ASN.1 protocol data which are required by the protocol procedure and set according to the description information; and the protocol procedure module performs protocol interaction and protocol transformation based on the protocol procedure according to the information in the protocol data description module. An ASN.1 protocol processing method is also disclosed. With the present invention, it is possible to greatly reduce the difficulty and working load of application software development as well as the working load of system maintenance.
Description

BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 shows a schematic diagram of the ASN.1 protocol processor in the prior art.



FIG. 2 shows a schematic diagram of the ASN.1 protocol processor according to a preferred embodiment of the present invention.



FIG. 3 shows a schematic diagram of the structure of the protocol data description module according to the embodiment shown in FIG. 2.


Claims
  • 1. An ASN.1 protocol processor for protocol interacting between the server and client and transformation between protocol data and byte stream data, comprising: a protocol data description module in which an ASN.1 protocol is integrated and a protocol procedure module in which protocol procedure codes are integrated; wherein the protocol data description module stores ASN.1 protocol description information which is described by the eXtensible Markup Language (XML), and stores the ASN.1 protocol data which are required by the protocol procedure and set according to the description information before the protocol interacting; andthe protocol procedure module obtains the corresponding ASN.1 protocol description information from the protocol data description module according to an ASN.1 request from the client; encodes the ASN.1 request from the client into the byte stream data that can be accepted by the server based on the description information and sends the data to the server; or the protocol procedure module decodes the byte stream data received from the server into the ASN.1 protocol data and returns the data to the client.
  • 2. The ASN.1 protocol processor according to claim 1, wherein the protocol procedure module includes a protocol procedure layer in which the protocol interacting process is integrated, an encoder/decoder layer in which the encoding and decoding processes are integrated, and a connection layer; the protocol procedure layer receives the ASN.1 request initiated by the client, obtains the corresponding ASN.1 protocol description information from the protocol data description module and sends the information to the encoder/decoder layer; the encoder/decoder layer encodes the ASN.1 request from the client to the byte stream data that can be accepted by the server based on the description information, and returns the byte stream data to the protocol procedure layer; and the protocol procedure layer sends the byte stream data to the server through the connection layer;alternatively, the protocol procedure layer receives byte stream data from the connection layer and sends the data to the encoder/decoder layer; the encoder/decoder layer decodes the byte stream data into ASN.1 protocol data and returns the data to the protocol procedure layer; and the protocol procedure layer returns the ASN.1 protocol data to the client;the connection layer is controlled by the protocol procedure layer to establish connection between the client and the server, the established connection is maintained after one protocol interaction is performed so that the same connection could be used for next interactions.
  • 3. The ASN.1 protocol processor according to claim 2, wherein the protocol procedure layer includes a simple query procedure unit in which a data query procedure is integrated, and a data subscription procedure unit in which a data subscription procedure is integrated; the protocol data description module further includes information of the server and the description information for determining which of the above the procedure units is to be entered; the simple query procedure unit is used to control the client to send one query request to the server and to receive the inquired data from the server once when the client makes query of the data in the server;the data subscription procedure unit is used to control the client to send one subscription request to the server and to receive for a plurality of times all the subscribed data returned from the server when the client has subscribed to the data in the server.
  • 4. The ASN.1 protocol processor according to claim 2, wherein the connection layer includes a connection pool unit and a connection pool manager; the connection pool manager controls the connection pool unit to establish connection between the client and the server.
  • 5. The ASN.1 protocol processor according to claim 1, wherein the protocol data description module includes the description information of the name, command code, message type, request data type and response data type of each ASN.1 protocol item.
  • 6. The ASN.1 protocol processor according to claim 3, wherein the protocol data description module includes the description information of the name, command code, message type, request data type and response data type of each ASN.1 protocol item.
  • 7. An ASN.1 protocol processing method, comprising: receiving an ASN.1 request from a client;obtaining ASN.1 protocol description information corresponding to the ASN.1 request from a protocol data description module;encoding the ASN.1 request into byte stream data according to the description information; andsending the byte stream data to a server.
  • 8. The ASN.1 protocol processing method according to claim 7, further comprising: receiving byte stream data from the server;decoding the byte stream data into ASN.1 protocol data; andsending the ASN.1 protocol data to the client.
  • 9. The ASN.1 protocol processing method according to claim 7, further comprising: controlling the client to send one query request to the server and to receive the inquired data from the server once when the client makes query of the data in the server; andcontrolling the client to send one subscription request to the server and to receive for a plurality of times all the subscribed data returned from the server when the client has subscribed to the data in the server.
  • 10. The ASN.1 protocol processing method according to claim 7, wherein ASN.1 protocol description information comprises: description information of the name, command code, message type, request data type and response data type of each ASN.1 protocol item.
Continuations (1)
Number Date Country
Parent PCT/CN04/00333 Apr 2004 US
Child 11544282 US