CN111092868A - ATS protocol forwarding processing system and method based on protocol library - Google Patents

ATS protocol forwarding processing system and method based on protocol library Download PDF

Info

Publication number
CN111092868A
CN111092868A CN201911251297.8A CN201911251297A CN111092868A CN 111092868 A CN111092868 A CN 111092868A CN 201911251297 A CN201911251297 A CN 201911251297A CN 111092868 A CN111092868 A CN 111092868A
Authority
CN
China
Prior art keywords
protocol
library
message
data packet
dictionary
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911251297.8A
Other languages
Chinese (zh)
Inventor
李海金
陆启进
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Traffic Control Technology TCT Co Ltd
Original Assignee
Traffic Control Technology TCT Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Traffic Control Technology TCT Co Ltd filed Critical Traffic Control Technology TCT Co Ltd
Priority to CN201911251297.8A priority Critical patent/CN111092868A/en
Publication of CN111092868A publication Critical patent/CN111092868A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a protocol library-based ATS protocol forwarding processing system and a method thereof, wherein the system comprises: the message production party produces a data packet according to a protocol format specified by the message receiving party and sends the produced data packet to the message server, the message server forwards the data packet to the message receiving party, and the message receiving party analyzes a library identifier from the data packet after receiving the data packet and queries a first dictionary according to the library identifier to obtain a protocol header type and a protocol number; and the message receiver inquires the second dictionary according to the protocol number, acquires the protocol type corresponding to the protocol number and analyzes the protocol body from the data packet. The embodiment of the invention takes the ATS system protocol forwarding service based on the protocol library mode as a core, realizes the unified management, subscription and distribution service of the ATS system protocol, effectively makes up the defects of difficult maintenance and difficult expansion of the system caused by the diversity and complexity of the protocol, and reduces the pressure of different subsystems on the interface protocol forwarding service.

Description

ATS protocol forwarding processing system and method based on protocol library
Technical Field
The invention relates to the technical field of train control, in particular to a protocol library-based ATS protocol forwarding processing system and method.
Background
An ATS system (train automatic monitoring system) is one of core systems of a CBTC system (train automatic control system based on wireless communication), and has important tasks such as route control, schedule adjustment control, train monitoring, and information transfer. The ATS system comprises a plurality of subsystems, information is exchanged among the subsystems through bidirectional communication, and the subsystems work cooperatively to realize an important function of train monitoring. However, the communication in the system needs to use a plurality of different protocols simultaneously, and the protocol forwarding mechanism is complex.
In the development process of the ATS system, in order to adapt to different engineering projects and requirements, a plurality of versions of the communication protocol between subsystems are often generated, which brings huge workload and higher difficulty to protocol maintenance and forwarding services.
Generally, an ATS system will make different forwarding service architectures according to different protocols, and each forwarding method is only suitable for some projects or some lines, and has a large difference. Although the requirements of each engineering project under the method are temporarily realized, the portability of the protocol is poor, once the content of the protocol needs to be changed along with the change of the actual requirements, the original protocol forwarding service architecture is not applicable any more, and deep modification and even reconstruction are needed.
Therefore, the communication mode of the ATS system under the traditional CBTC system architecture has the following defects:
1. the connection links between each subsystem and the sub-subsystems are more, so that the communication efficiency is low;
2. communication protocols can be independently defined between each subsystem and each sub-subsystem, and as a result, the types of the protocols are multiple, the software development and debugging difficulty is higher, and the product development and maintenance cost is increased;
3. the system has poor expansibility and is difficult to meet the changeable demand.
Disclosure of Invention
Because the existing method has the above problems, embodiments of the present invention provide a system and a method for processing ATS protocol forwarding based on a protocol library, so as to solve at least one of the above technical problems.
Specifically, an embodiment of the present invention provides an ATS protocol forwarding processing system based on a protocol library, including: the system comprises a message receiver, a message producer, a message server and a protocol library manager; the protocol library manager comprises a first dictionary and a second dictionary, wherein the first dictionary stores the corresponding relation between the library identification of the protocol library and the protocol header type, and the second dictionary stores the corresponding relation between the protocol number and the protocol type;
the message receiver is used for appointing equipment for receiving the data packet, an IP address for receiving the data packet and a protocol format of the data packet; the protocol format comprises a library identifier, a protocol header and a protocol body;
the message producer produces the data packet according to the protocol format appointed by the message receiver and sends the produced data packet to the message server;
the message server sends the data packet produced by the message producer to the message receiver according to the receiving device and the IP address specified by the message receiver;
after receiving the data packet, the message receiver analyzes the library identifier from the data packet, queries a first dictionary according to the library identifier and acquires a protocol header type corresponding to the library identifier;
the message receiver calls a corresponding analysis method according to the type of the protocol header to analyze the protocol header from the data packet, and obtains a protocol number according to the analyzed protocol header;
the message receiver inquires the second dictionary according to the protocol number to obtain a protocol type corresponding to the protocol number;
and the message receiver calls a corresponding protocol analysis method according to the protocol type to analyze the protocol body from the data packet.
Further, the protocol library-based ATS protocol forwarding processing system further includes: a protocol update processor;
the protocol updating processor is used for adding a corresponding relation between a library identifier of a new protocol library and a protocol header type to the first dictionary, and adding a corresponding relation between a new protocol number and a protocol type to the second dictionary;
the protocol updating processor is also used for deleting the corresponding relation between the library identification of the existing protocol library in the first dictionary and the protocol header type and deleting the corresponding relation between the existing protocol number in the second dictionary and the protocol type.
Further, the protocol library includes: one or more of a PA protocol library, a PIS protocol library, a TCC protocol library, and an ISCS protocol library.
Further, the data packet is a UDP data packet or a TCP data packet.
Further, the message server sends the same frame of message to the message receiver at a preset time interval and sends the same frame of message at most N times after sending the data packet to the message receiver and before not receiving the response message sent by the message receiver, when the message receiver receives the data packet sent by the message server, the message server sends the response message to the message server, and after receiving the response message sent by the message receiver, the message server stops sending the data packet to the message receiver, wherein N is more than 3 and less than 8.
In a second aspect, an embodiment of the present invention further provides a method for processing ATS protocol forwarding based on a protocol library, including:
a protocol library manager is pre-established, wherein the protocol library manager comprises a first dictionary and a second dictionary, the first dictionary stores the corresponding relation between the library identification of the protocol library and the protocol header type, and the second dictionary stores the corresponding relation between the protocol number and the protocol type;
the message receiver is used for appointing equipment for receiving the data packet, an IP address for receiving the data packet and a protocol format of the data packet; the protocol format comprises a library identifier, a protocol header and a protocol body;
the message producer produces the data packet according to the protocol format appointed by the message receiver and sends the produced data packet to the message server;
the message server sends the data packet produced by the message producer to the message receiver according to the receiving device and the IP address specified by the message receiver;
after receiving the data packet, the message receiver analyzes the library identifier from the data packet, queries a first dictionary according to the library identifier and acquires a protocol header type corresponding to the library identifier;
the message receiver calls a corresponding analysis method according to the type of the protocol header to analyze the protocol header from the data packet, and obtains a protocol number according to the analyzed protocol header;
the message receiver inquires the second dictionary according to the protocol number to obtain a protocol type corresponding to the protocol number;
and the message receiver calls a corresponding protocol analysis method according to the protocol type to analyze the protocol body from the data packet.
Further, the method for processing the ATS protocol forwarding based on the protocol library further includes: updating the first dictionary and the second dictionary;
wherein updating the first dictionary and the second dictionary specifically includes:
adding a corresponding relation between a library identifier of a new protocol library and a protocol header type to the first dictionary, and adding a corresponding relation between a new protocol number and a protocol type to the second dictionary;
and deleting the corresponding relation between the library identification of the existing protocol library in the first dictionary and the protocol header type, and deleting the corresponding relation between the existing protocol number in the second dictionary and the protocol type.
Further, the protocol library includes: one or more of a PA protocol library, a PIS protocol library, a TCC protocol library, and an ISCS protocol library.
Further, the data packet is a UDP data packet or a TCP data packet.
Further, the message server sends the data packet generated by the message producer to the message receiver according to the receiving device and the IP address specified by the message receiver, and specifically includes:
the message server sends the same frame of message to the message receiver at a preset time interval and sends the same frame of message for at most N times after sending the data packet produced by the message producer to the message receiver and before not receiving the response message sent by the message receiver according to the receiving equipment and the IP address appointed by the message receiver, the message server sends the response message to the message server after receiving the data packet sent by the message server, the message server stops sending the data packet to the message receiver after receiving the response message sent by the message receiver, and 3 < N < 8.
It can be known from the above technical solutions that, in the ATS protocol forwarding processing system and method based on a protocol library provided in the embodiments of the present invention, a message producer produces a data packet according to a protocol format specified by a message recipient and sends the produced data packet to a message server, which forwards the data packet to the message recipient in a unified manner, the message recipient, after receiving the data packet, parses a library identifier from the data packet, and queries a first dictionary according to the library identifier to obtain a protocol header type corresponding to the library identifier, then invokes a corresponding parsing method according to the protocol header type to parse a protocol header from the data packet, and obtains a protocol number according to the parsed protocol header, and further, the message recipient, after obtaining the protocol number, queries a second dictionary according to the protocol number to obtain a protocol type corresponding to the protocol number, and invokes a corresponding protocol parsing method according to the protocol type, and resolving the protocol body from the data packet. Therefore, the embodiment of the invention takes the ATS system protocol forwarding service based on the protocol library mode as a core, realizes the unified management, subscription and distribution service of the ATS system protocol, effectively makes up the defects of difficult maintenance and difficult expansion of the system caused by the diversity and complexity of the protocol, reduces the pressure of different subsystems on the interface protocol forwarding service, obviously reduces the requirement on the professional knowledge of workers, greatly improves the efficiency of the subscription and distribution of the protocol in the system and the uniformity of the protocol management, and provides an effective problem analysis means for the development and development of the ATS system.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an ATS protocol forwarding processing system based on a protocol library according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an ATS system protocol library architecture according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an operating process of the ATS protocol forwarding processing system based on the protocol library according to an embodiment of the present invention;
fig. 4 is a flowchart of the protocol library-based ATS protocol forwarding service provided by an embodiment of the present invention;
fig. 5 is a schematic diagram illustrating an operating principle of the ATS protocol forwarding processing system based on the protocol library according to an embodiment of the present invention;
fig. 6 is a flowchart of a method for processing the ATS protocol forwarding based on the protocol library according to an embodiment of the present invention.
Detailed Description
The following further describes embodiments of the present invention with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
As described in the background section, the communication mode of the ATS subsystem in the conventional CBTC system architecture has the following disadvantages: A. the connection links between each subsystem and the sub-subsystems are more, so that the communication efficiency is low; B. communication protocols can be independently defined between each subsystem and each sub-subsystem, and as a result, the types of the protocols are multiple, the software development and debugging difficulty is higher, and the product development and maintenance cost is increased; for example, the system comprises an interlocking system, a site-station extension system, an application server and a communication front-end processor, wherein the systems individually define communication protocols, and the final result is that the types of the protocols are excessive, so that the software development and debugging difficulty is high, and the product development and maintenance cost is high. C. The system has poor expansibility and is difficult to meet the changeable demand. For example, information of an application server, a scheduling server, and a communication front-end processor are also needed, and then the program of the application server is changed: application server-communication front-end processor. In order to solve the problem, the embodiment of the invention provides an architecture scheme of an ATS protocol forwarding service based on a protocol library mode, establishes a general framework of the ATS system protocol data, and realizes unified management and maintenance of the ATS protocol. The solution of the embodiment of the invention provides protocol library management so as to adapt to the diversity and the expansibility of the ATS system protocol, and as long as the data mutually transmitted by the ATS system conforms to the design specification of the protocol library in the solution, the solution supports the management of the protocol in the form of the protocol library and the ATS system performs forwarding service. The solution of the embodiment of the invention can release the coupling among all subsystems in the ATS system and improve the communication efficiency in the ATS system, for example, the data flow direction from a gateway server, a station server, an application server and a scheduling server, and after the solution provided by the embodiment is adopted, the data flow direction can be changed into the data flow direction from the gateway server, a message server and the scheduling server. The solution of the embodiment of the invention can improve the expansibility of the ATS system, reduce the maintenance cost, improve the development efficiency and shorten the release period. The following will describe in detail the ATS protocol forwarding processing system and method based on the protocol library according to the specific embodiment.
Fig. 1 is a schematic structural diagram illustrating an ATS protocol forwarding processing system based on a protocol library according to an embodiment of the present invention, and as shown in fig. 1, the ATS protocol forwarding processing system based on a protocol library according to the embodiment of the present invention specifically includes: a message producer 11, a message server 12, a message recipient 13, and a protocol library manager 14; the protocol library manager 14 comprises a first dictionary and a second dictionary, wherein the first dictionary stores the corresponding relationship between the library identifier of the protocol library and the protocol header type, and the second dictionary stores the corresponding relationship between the protocol number and the protocol type;
the message receiver 13 is used for specifying the device for receiving the data packet and the IP address of the received data packet, and specifying the protocol format of the data packet; the protocol format comprises a library identifier, a protocol header and a protocol body;
the message producer 11 produces the data packet according to the protocol format appointed by the message receiver and sends the produced data packet to the message server;
the message server 12 sends the data packet generated by the message producer to the message receiver according to the receiving device and the IP address specified by the message receiver;
after receiving the data packet, the message receiver 13 parses the library identifier from the data packet, and queries the first dictionary according to the library identifier to obtain a protocol header type corresponding to the library identifier;
the message receiver 13 calls a corresponding analysis method according to the type of the protocol header to analyze the protocol header from the data packet, and obtains a protocol number according to the analyzed protocol header;
the message receiver 13 queries the second dictionary according to the protocol number to obtain a protocol type corresponding to the protocol number;
the message receiver 13 calls a corresponding protocol parsing method according to the protocol type to parse the protocol body from the data packet.
In this embodiment, an ATS protocol management center needs to be established first. In this embodiment, a hierarchical management principle is adopted for an ATS protocol management center to build an overall protocol library framework, a schematic diagram of protocol library establishment is shown in fig. 2, a working process of an ATS protocol forwarding processing system based on the protocol library is shown in fig. 3, a flow of ATS system protocol subscription and forwarding processing is shown in fig. 4, and the following is specifically introduced:
① specification for protocol
The protocol in this embodiment refers to a protocol of an application layer of the ATS system, and the specification definition of the protocol in the protocol library includes three parts: library identification, protocol header, protocol body. The library identifier is used for identifying a specific protocol library, such as a PA protocol library, a PIS protocol library, a TCC protocol library, an ISCS protocol library and the like used in the ATS system; the protocol header is protocol header information defined by each protocol library according to respective service needs, for example, the ATS protocol header includes a protocol type, a protocol version number, a frame type, a subtype, a reserved byte, a source machine ID, a target machine ID, a data field length, and the like; a protocol body is traffic data in a protocol.
② data structure
The base class protocol definition comprises a protocol head base class and a protocol base class, the protocol head base class comprises a protocol head attribute of a protocol head base class type, and a method for packaging, analyzing and calculating a protocol number;
③ multichannel type
The branch protocol library comprises a protocol head branch base class, a protocol branch base class and a protocol subclass, wherein the protocol head branch base class inherits from the protocol head base class, the protocol branch base class inherits from the protocol base class, the protocol head attribute in the protocol branch base class is an example of the protocol head branch base class, and the protocol subclass inherits from the protocol branch base class. The branch protocol library is a service protocol library, such as a PA protocol library, a PIS protocol library, a TCC protocol library, and an ISCS protocol library, and the contents of the branch protocol library are defined according to respective service requirements.
④ Forwarding Performance
Forwarding performance of protocol libraries
⑤ protocol library manager
The purpose of the protocol library manager is to establish two dictionaries, wherein the first dictionary is a dictionary with corresponding relation between library identification and protocol header type, the second dictionary is a dictionary with corresponding relation between protocol number and protocol type, and a set of method is provided for adding, deleting and searching protocol header type according to library identification and adding, deleting and searching protocol type according to protocol number.
In this embodiment, it should be noted that the basic principle of the ATS protocol forwarding processing system based on the protocol library provided in this embodiment is as follows: and (3) establishing a protocol management center by using a protocol library mode, and registering the protocols in the protocol library so that each set of protocol contains a unique identifier. In the communication process of the subsystem, a consumer, namely a message receiver, performs subscription operation aiming at a required protocol; the producer, i.e. the producer of the protocol, sends the message according to the subscribed protocol. The messages are processed and distributed uniformly by the message server, and the consumer receives the messages sent by the message server and then analyzes and processes the messages.
The following describes in detail the implementation process of the ATS protocol forwarding processing system based on the protocol library provided in this embodiment with reference to the schematic diagram of the operating principle of the ATS protocol forwarding processing system based on the protocol library shown in fig. 5.
As shown in fig. 5, S1, a protocol library (introduced by way of example to the ATS subsystem) is established. The corresponding relation of library identifications and protocol header types of libraries such as a PA protocol library, a PIS protocol library, a TCC protocol library, an ISCS protocol library and the like is added into a first dictionary, and the corresponding relation of protocol numbers and protocol types is added into a second dictionary. And S2, subscribing the consumer. Before starting the protocol forwarding service, a customer of the protocol is required to specify which IP (Internet protocol) receives the UDP protocol packet, corresponding Socket connection is established according to the conditions, and network data can be received from the Socket after the establishment is completed. And S3, sending by the producer. The message generator sends the message to the message server in terms of pieces according to the format of the subscribed protocol for uniform processing. The information includes the time of receipt, source IP port, destination IP port, network packet content, etc. And S4, distributing by the message server. The message server collects and processes all kinds of messages sent by the producer uniformly, and distributes the obtained protocol of the application layer to a subscriber corresponding to the protocol, namely a consumer. The contents of the protocol message include: receive time, source IP port, destination IP port, protocol type, data length, etc. After sending the message and before receiving no response reply of the consumer, the message server sends the same frame of message at a certain time interval, and the sending is carried out for 5 times at most; after receiving the message, the consumer replies response information to the message server, and the message server stops sending the message. And S5, consumer receiving processing. After receiving the specific message distributed by the message server, the consumer replies response information to the message server. And analyzing the acquired protocol into a specific service data entity according to the protocol in the protocol library, and processing the analyzed specific data. The protocol analysis comprises the following specific steps: A. analyzing UDP data from the message; B. parsing the library identification from the received data; the first byte in the data is the library identification, for example: 1 is PA protocol, 2 is PIS protocol, 3 is TCC protocol base, 4 is ISCS protocol. C. The protocol header type is queried based on the library identification. And searching a value from the first dictionary by taking the library identification as Key, wherein the found value is the type of the corresponding protocol header. D. And resolving the protocol header. And calling an analysis method in the protocol header to analyze the protocol header information in the received data. E. A protocol number is generated. After the protocol header is analyzed, the method for generating the protocol number therein may be called to generate the protocol number, for example, the protocol number of a certain protocol in the PA protocol is "010103 a 2", the first 01 is a protocol type, the second 01 is a protocol version number, 03 is a frame type, and a2 is a subtype. F. And inquiring the protocol type according to the protocol number. And looking up a value from the second dictionary by taking the protocol number as Key, wherein the found value is the corresponding protocol type. G. And resolving the protocol body. And calling an analysis method in the protocol to analyze the protocol body information in the received data. H. The information is processed. And processing the analyzed protocol message in the consumer software to complete corresponding operation.
As can be seen from the above description, the present embodiment establishes a complete set of architecture schemes for the ATS protocol forwarding service based on the protocol library. The embodiment establishes a protocol management center, dynamically establishes a corresponding relation between a library identifier and a protocol header, a protocol number and a protocol type, realizes easy maintainability, easy expandability, multi-level, diversified and visual display of detailed information in an internal protocol of protocol subscription and distribution, provides a complete solution for protocol forwarding service and protocol library management and maintenance of an ATS (automatic train control system) in a CBTC (communication based train control) system, provides an effective means for analyzing problems for CBTC system research personnel, and provides a fault removal scheme for subway operation personnel and maintenance personnel.
As can be seen from the above technical solutions, in the ATS protocol forwarding processing system based on a protocol library provided in the embodiments of the present invention, a message producer produces a data packet according to a protocol format specified by a message receiver and sends the produced data packet to a message server, the message server forwards the data packet to the message receiver in a unified manner, after the message receiver receives the data packet, resolving the library identifier from the data packet, querying the first dictionary according to the library identifier, obtaining the protocol header type corresponding to the library identifier, then calling corresponding analysis method according to the type of protocol head to analyze out protocol head from data packet and obtaining protocol number according to analyzed protocol head, besides, the message receiver can query second dictionary according to protocol number after obtaining protocol number to obtain protocol type corresponding to protocol number, and calling a corresponding protocol analysis method according to the protocol type to analyze the protocol body from the data packet. Therefore, the embodiment of the invention takes the ATS system protocol forwarding service based on the protocol library mode as a core, realizes the unified management, subscription and distribution service of the ATS system protocol, effectively makes up the defects of difficult maintenance and difficult expansion of the system caused by the diversity and complexity of the protocol, reduces the pressure of different subsystems on the interface protocol forwarding service, obviously reduces the requirement on the professional knowledge of workers, greatly improves the efficiency of the subscription and distribution of the protocol in the system and the uniformity of the protocol management, and provides an effective problem analysis means for the development and development of the ATS system.
Further, based on the content of the foregoing embodiment, in this embodiment, the system for processing an ATS protocol forwarding based on a protocol library further includes: a protocol update processor;
the protocol updating processor is used for adding a corresponding relation between a library identifier of a new protocol library and a protocol header type to the first dictionary, and adding a corresponding relation between a new protocol number and a protocol type to the second dictionary;
the protocol updating processor is also used for deleting the corresponding relation between the library identification of the existing protocol library in the first dictionary and the protocol header type and deleting the corresponding relation between the existing protocol number in the second dictionary and the protocol type.
In this embodiment, the protocol update processor may add a new correspondence between the library identifier of the protocol library and the protocol header type to the first dictionary, add a new correspondence between the protocol number and the protocol type to the second dictionary, and delete a correspondence between the library identifier of the protocol library and the protocol header type existing in the first dictionary, and delete a correspondence between the protocol number and the protocol type existing in the second dictionary.
Further, based on the content of the foregoing embodiment, in this embodiment, the protocol library includes: one or more of a PA protocol library, a PIS protocol library, a TCC protocol library, and an ISCS protocol library.
In this embodiment, the protocol library includes one or more of a PA protocol library, a PIS protocol library, a TCC protocol library and an ISCS protocol library commonly used in the ATS system, so as to meet daily service processing requirements of the ATS system.
Further, based on the content of the foregoing embodiment, in this embodiment, the data packet is a UDP data packet or a TCP data packet.
In this embodiment, data transmission is performed by using UDP packets or TCP packets, which is helpful for improving security during data transmission.
Further, based on the content of the foregoing embodiment, in this embodiment, the message server sends the same frame of message to the message receiver at a preset time interval and sends the frame of message at most N times after sending the data packet to the message receiver and before not receiving the response message sent by the message receiver, the message server sends the response message to the message server after receiving the data packet sent by the message server, and the message server stops sending the data packet to the message receiver after receiving the response message sent by the message receiver, where 3 < N < 8.
In this embodiment, in order to ensure that a data receiver can receive a data packet, after sending the data packet to the message receiver and before not receiving a response message sent by the message receiver, the message server sends the same frame of message to the message receiver at a preset time interval, and meanwhile, in order to avoid blocking of a data transmission channel, the message server sends the message at most N times, where the value of N is generally between 3 and 8, and experimental verification proves that such a value can better ensure that the data receiver can receive the data packet and can also avoid blocking of the data transmission channel.
In this embodiment, in order to avoid multiple times of invalid data transmission due to the ignorance of the message server, in this embodiment, the message receiver sends a response message to the message server after receiving the data packet sent by the message server, and the message server stops sending the data packet to the message receiver after receiving the response message sent by the message receiver, so that the number of times of invalid data transmission is reduced, and the network performance can be improved.
The embodiment takes ATS system protocol forwarding service based on a protocol library mode as a core, realizes the unified management, subscription and distribution service of the ATS system protocol, effectively makes up the defects of difficult maintenance and difficult expansion of the system caused by the diversity and complexity of the protocol, reduces the pressure of different subsystems on the interface protocol forwarding service, obviously reduces the requirement on professional knowledge of workers, greatly improves the efficiency of the subscription and distribution of the protocol in the system and the uniformity of the protocol management, and provides an effective problem analysis means for the development of the ATS system.
Fig. 6 is a flowchart illustrating an ATS protocol forwarding processing method based on a protocol library according to an embodiment of the present invention, and as shown in fig. 6, the ATS protocol forwarding processing method based on the protocol library according to the embodiment of the present invention specifically includes the following steps:
step 101: a protocol library manager is pre-established, wherein the protocol library manager comprises a first dictionary and a second dictionary, the first dictionary stores the corresponding relation between the library identification of the protocol library and the protocol header type, and the second dictionary stores the corresponding relation between the protocol number and the protocol type;
step 102: the message receiver is used for appointing equipment for receiving the data packet, an IP address for receiving the data packet and a protocol format of the data packet; the protocol format comprises a library identifier, a protocol header and a protocol body;
step 103: the message producer produces the data packet according to the protocol format appointed by the message receiver and sends the produced data packet to the message server;
step 104: the message server sends the data packet produced by the message producer to the message receiver according to the receiving device and the IP address specified by the message receiver;
step 105: after receiving the data packet, the message receiver analyzes the library identifier from the data packet, queries a first dictionary according to the library identifier and acquires a protocol header type corresponding to the library identifier;
step 106: the message receiver calls a corresponding analysis method according to the type of the protocol header to analyze the protocol header from the data packet, and obtains a protocol number according to the analyzed protocol header;
step 107: the message receiver inquires the second dictionary according to the protocol number to obtain a protocol type corresponding to the protocol number;
step 108: and the message receiver calls a corresponding protocol analysis method according to the protocol type to analyze the protocol body from the data packet.
Further, based on the content of the foregoing embodiment, in this embodiment, the method for processing an ATS protocol forwarding based on a protocol library further includes: updating the first dictionary and the second dictionary;
wherein updating the first dictionary and the second dictionary specifically includes:
adding a corresponding relation between a library identifier of a new protocol library and a protocol header type to the first dictionary, and adding a corresponding relation between a new protocol number and a protocol type to the second dictionary;
and deleting the corresponding relation between the library identification of the existing protocol library in the first dictionary and the protocol header type, and deleting the corresponding relation between the existing protocol number in the second dictionary and the protocol type.
Further, based on the content of the foregoing embodiment, in this embodiment, the protocol library includes: one or more of a PA protocol library, a PIS protocol library, a TCC protocol library, and an ISCS protocol library.
Further, based on the content of the foregoing embodiment, in this embodiment, the data packet is a UDP data packet or a TCP data packet.
Further, based on the content of the foregoing embodiment, in this embodiment, the sending, by the message server, the data packet generated by the message producer to the message recipient according to the receiving device and the IP address specified by the message recipient specifically includes:
the message server sends the same frame of message to the message receiver at a preset time interval and sends the same frame of message for at most N times after sending the data packet produced by the message producer to the message receiver and before not receiving the response message sent by the message receiver according to the receiving equipment and the IP address appointed by the message receiver, the message server sends the response message to the message server after receiving the data packet sent by the message server, the message server stops sending the data packet to the message receiver after receiving the response message sent by the message receiver, and 3 < N < 8.
Because the ATS protocol forwarding processing method based on the protocol library provided in this embodiment can be implemented by using the ATS protocol forwarding processing system based on the protocol library described in the above embodiment, the working principle and the beneficial effect are similar, and specific contents can be referred to the description of the above embodiment, and are not described in detail here.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. An ATS protocol forwarding processing system based on a protocol library, comprising: the system comprises a message receiver, a message producer, a message server and a protocol library manager; the protocol library manager comprises a first dictionary and a second dictionary, wherein the first dictionary stores the corresponding relation between the library identification of the protocol library and the protocol header type, and the second dictionary stores the corresponding relation between the protocol number and the protocol type;
the message receiver is used for appointing equipment for receiving the data packet, an IP address for receiving the data packet and a protocol format of the data packet; the protocol format comprises a library identifier, a protocol header and a protocol body;
the message producer produces the data packet according to the protocol format appointed by the message receiver and sends the produced data packet to the message server;
the message server sends the data packet produced by the message producer to the message receiver according to the receiving device and the IP address specified by the message receiver;
after receiving the data packet, the message receiver analyzes the library identifier from the data packet, queries a first dictionary according to the library identifier and acquires a protocol header type corresponding to the library identifier;
the message receiver calls a corresponding analysis method according to the type of the protocol header to analyze the protocol header from the data packet, and obtains a protocol number according to the analyzed protocol header;
the message receiver inquires the second dictionary according to the protocol number to obtain a protocol type corresponding to the protocol number;
and the message receiver calls a corresponding protocol analysis method according to the protocol type to analyze the protocol body from the data packet.
2. The protocol library-based ATS protocol forwarding processing system of claim 1, further comprising: a protocol update processor;
the protocol updating processor is used for adding a corresponding relation between a library identifier of a new protocol library and a protocol header type to the first dictionary, and adding a corresponding relation between a new protocol number and a protocol type to the second dictionary;
the protocol updating processor is also used for deleting the corresponding relation between the library identification of the existing protocol library in the first dictionary and the protocol header type and deleting the corresponding relation between the existing protocol number in the second dictionary and the protocol type.
3. The protocol repository-based ATS protocol forwarding processing system according to claim 1, wherein the protocol repository includes: one or more of a PA protocol library, a PIS protocol library, a TCC protocol library, and an ISCS protocol library.
4. The ATS protocol forwarding processing system based on protocol library of claim 1, wherein the data packet is a UDP data packet or a TCP data packet.
5. The ATS protocol forwarding processing system based on the protocol library of claim 1, wherein the message server sends the same frame of message to the message receiver at a preset time interval and at most N times after sending the data packet to the message receiver and before not receiving the response message sent by the message receiver, the message receiver sends the response message to the message server after receiving the data packet sent by the message server, the message server stops sending the data packet to the message receiver after receiving the response message sent by the message receiver, and 3 < N < 8.
6. An ATS protocol forwarding processing method based on a protocol library is characterized by comprising the following steps:
a protocol library manager is pre-established, wherein the protocol library manager comprises a first dictionary and a second dictionary, the first dictionary stores the corresponding relation between the library identification of the protocol library and the protocol header type, and the second dictionary stores the corresponding relation between the protocol number and the protocol type;
the message receiver is used for appointing equipment for receiving the data packet, an IP address for receiving the data packet and a protocol format of the data packet; the protocol format comprises a library identifier, a protocol header and a protocol body;
the message producer produces the data packet according to the protocol format appointed by the message receiver and sends the produced data packet to the message server;
the message server sends the data packet produced by the message producer to the message receiver according to the receiving device and the IP address specified by the message receiver;
after receiving the data packet, the message receiver analyzes the library identifier from the data packet, queries a first dictionary according to the library identifier and acquires a protocol header type corresponding to the library identifier;
the message receiver calls a corresponding analysis method according to the type of the protocol header to analyze the protocol header from the data packet, and obtains a protocol number according to the analyzed protocol header;
the message receiver inquires the second dictionary according to the protocol number to obtain a protocol type corresponding to the protocol number;
and the message receiver calls a corresponding protocol analysis method according to the protocol type to analyze the protocol body from the data packet.
7. The ATS protocol forwarding processing method based on the protocol library according to claim 6, further comprising: updating the first dictionary and the second dictionary;
wherein updating the first dictionary and the second dictionary specifically includes:
adding a corresponding relation between a library identifier of a new protocol library and a protocol header type to the first dictionary, and adding a corresponding relation between a new protocol number and a protocol type to the second dictionary;
and deleting the corresponding relation between the library identification of the existing protocol library in the first dictionary and the protocol header type, and deleting the corresponding relation between the existing protocol number in the second dictionary and the protocol type.
8. The ATS protocol forwarding processing method based on protocol library of claim 6, wherein the protocol library comprises: one or more of a PA protocol library, a PIS protocol library, a TCC protocol library, and an ISCS protocol library.
9. The ATS protocol forwarding processing method based on the protocol library of claim 6, wherein the data packet is a UDP data packet or a TCP data packet.
10. The method for processing ATS protocol forwarding based on protocol library as claimed in claim 6, wherein the message server sends the data packet generated by the message producer to the message recipient according to the receiving device and the IP address specified by the message recipient, specifically comprising:
the message server sends the same frame of message to the message receiver at a preset time interval and sends the same frame of message for at most N times after sending the data packet produced by the message producer to the message receiver and before not receiving the response message sent by the message receiver according to the receiving equipment and the IP address appointed by the message receiver, the message server sends the response message to the message server after receiving the data packet sent by the message server, the message server stops sending the data packet to the message receiver after receiving the response message sent by the message receiver, and 3 < N < 8.
CN201911251297.8A 2019-12-09 2019-12-09 ATS protocol forwarding processing system and method based on protocol library Pending CN111092868A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911251297.8A CN111092868A (en) 2019-12-09 2019-12-09 ATS protocol forwarding processing system and method based on protocol library

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911251297.8A CN111092868A (en) 2019-12-09 2019-12-09 ATS protocol forwarding processing system and method based on protocol library

Publications (1)

Publication Number Publication Date
CN111092868A true CN111092868A (en) 2020-05-01

Family

ID=70395392

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911251297.8A Pending CN111092868A (en) 2019-12-09 2019-12-09 ATS protocol forwarding processing system and method based on protocol library

Country Status (1)

Country Link
CN (1) CN111092868A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330418A (en) * 2008-07-21 2008-12-24 中国民航大学 Apparatus for real time tracking aerodrome flight information and processing method thereof
CN101645799A (en) * 2009-08-12 2010-02-10 保定市三川电气有限责任公司 Sending method, receiving method and equipment of digital communication
CN103312472A (en) * 2012-03-15 2013-09-18 中兴通讯股份有限公司 Method and system for automatically retransmitting internetwork voice data packets, user equipment and eNB (enhanced Node B)
CN108134779A (en) * 2017-12-06 2018-06-08 交控科技股份有限公司 CBTC communication system protocols analytic method, protocol library management method and protocol library
CN108667572A (en) * 2017-03-31 2018-10-16 维沃移动通信有限公司 A kind of service data transmission method, base station and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330418A (en) * 2008-07-21 2008-12-24 中国民航大学 Apparatus for real time tracking aerodrome flight information and processing method thereof
CN101645799A (en) * 2009-08-12 2010-02-10 保定市三川电气有限责任公司 Sending method, receiving method and equipment of digital communication
CN103312472A (en) * 2012-03-15 2013-09-18 中兴通讯股份有限公司 Method and system for automatically retransmitting internetwork voice data packets, user equipment and eNB (enhanced Node B)
CN108667572A (en) * 2017-03-31 2018-10-16 维沃移动通信有限公司 A kind of service data transmission method, base station and terminal
CN108134779A (en) * 2017-12-06 2018-06-08 交控科技股份有限公司 CBTC communication system protocols analytic method, protocol library management method and protocol library

Similar Documents

Publication Publication Date Title
CN109391500B (en) Configuration management method, device and equipment
US7359393B1 (en) Method and apparatus for border gateway protocol convergence using update groups
CN111917727A (en) Electric power Internet of things safety intelligent image transmission system and method based on 5G and WiFi
CN101964749A (en) Message retransmission method and system based on multi-core architecture
US12101710B2 (en) Data processing method and apparatus, network element device, storage medium, and program product
CN103248512A (en) Method and system for generating topological structure of application layer in communication network
CN109743595A (en) Terminal data synchronous method and device
CN113556359B (en) Communication protocol conversion method, device, system and gateway device
CN113347195B (en) Dynamic mounting system and method for communication protocol packet of Internet of things equipment
CN109714408A (en) A kind of semantization industrial network service interface system based on Handle mark
CN109379254A (en) A kind of detection method and system of the network connection based on video conference
CN101719850A (en) Device and method for carrying out statistics on Ethernet packet loss rate as well as message switching device
CN113381974A (en) Protocol conversion method between field bus and Modbus-TCP applied to special communication
CN109788369A (en) Terminal control method and device
CN101355585A (en) System and method for protecting information of distributed architecture data communication equipment
CN105791023B (en) The method, apparatus and system of optical network unit ONU management
CN111092868A (en) ATS protocol forwarding processing system and method based on protocol library
CN102281191B (en) Multicast label switching method for uncompressed video
CN101938383A (en) On-line monitoring method and system of user account with multiple services as well as monitoring service system
CN103997796A (en) Method for processing service data
CN116668988A (en) C-V2X unified access gateway and access method based on multi-source sensing equipment
CN101170734B (en) Method and device for service intercommunication between different networks
CN110336710A (en) A kind of test method of terminal, system and device and storage medium
CN110389771A (en) A kind of upgrade method and system regarding networked clients
CN111614612B (en) Communication protocol implementation method, device, network management server and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200501

RJ01 Rejection of invention patent application after publication