CN114760366A - Communication system, communication method, and storage medium - Google Patents

Communication system, communication method, and storage medium Download PDF

Info

Publication number
CN114760366A
CN114760366A CN202011564759.4A CN202011564759A CN114760366A CN 114760366 A CN114760366 A CN 114760366A CN 202011564759 A CN202011564759 A CN 202011564759A CN 114760366 A CN114760366 A CN 114760366A
Authority
CN
China
Prior art keywords
message
protocol
data field
communication
layer
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
CN202011564759.4A
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.)
Guangzhou Haige Communication Group Inc Co
Original Assignee
Guangzhou Haige Communication Group Inc Co
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 Guangzhou Haige Communication Group Inc Co filed Critical Guangzhou Haige Communication Group Inc Co
Priority to CN202011564759.4A priority Critical patent/CN114760366A/en
Publication of CN114760366A publication Critical patent/CN114760366A/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/08Protocols for interworking; Protocol conversion
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Abstract

The present application relates to a communication system, a communication method, and a storage medium. The system comprises: the interactive configuration layer is used for dynamically configuring protocol conversion rules; the communication access layer is used for receiving messages sent by the communication equipment; the data processing layer is used for analyzing the message and extracting a data field from the message; converting and packaging the data field according to a protocol conversion rule to obtain a target protocol message and returning the target protocol message to the communication access layer; and the communication access layer is also used for sending the target protocol message to an upper application system for communication processing. The system can enable the upper application system to support the access to the equipment with various protocols, thereby improving the communication efficiency and simultaneously improving the reusability and the expansibility of the communication system.

Description

Communication system, communication method, and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a communication system, a communication method, and a storage medium.
Background
With the development of computer networking technology, various devices are capable of communicating over a network. The existing devices have different access interface modes and application protocols due to different types, manufacturers, fields and the like of the devices, and further, the communication protocols of the devices are not uniform. However, the non-uniformity of the communication protocol is not favorable for uniform access and management of the upper layer application system, which often results in that the upper layer application system cannot adapt to the increasing device access requirement and reduces the communication efficiency.
Disclosure of Invention
In view of the above, it is necessary to provide a communication system, a communication method and a storage medium capable of improving communication efficiency.
A communication system, the system comprising:
the interactive configuration layer is used for dynamically configuring protocol conversion rules;
the communication access layer is used for receiving messages sent by the communication equipment;
the data processing layer is used for analyzing the message and extracting a data field from the message; converting and packaging the data field according to a protocol conversion rule to obtain a target protocol message and returning the target protocol message to the communication access layer;
and the communication access layer is also used for sending the target protocol message to an upper application system for communication processing.
In one embodiment, the data processing layer is further configured to,
judging whether the message is correct or not according to a protocol rule of a transmission communication protocol of the message;
and when the message is determined to be correct, analyzing the message and extracting a data field from the message.
In one embodiment, the data processing layer is further configured to,
when the message is determined to be correct, identifying a data field in the message;
determining and extracting a data field including the interested identification through the identification recognition.
In one embodiment, the data processing layer is further configured to,
judging whether the information of the data field is abnormal or not based on preset field information;
when the data field is determined to have no abnormal information, converting the data field into a target data field corresponding to the target protocol according to a protocol conversion rule of the target protocol;
and performing header and trailer encapsulation on the target data field to obtain a target protocol message.
In one embodiment, the system further comprises a system management layer and a traffic control layer;
the system management layer is used for acquiring the protocol conversion rule dynamically configured by the interactive configuration layer and distributing the protocol conversion rule to the data processing layer;
and the service control layer is used for providing data processing basis for the data processing layer.
A method of communication, the method comprising:
receiving a message sent by communication equipment;
analyzing the message and extracting a data field from the message;
converting and packaging the data field according to a protocol conversion rule to obtain a target protocol message; the protocol conversion rule is obtained through dynamic configuration;
and sending the target protocol message to an upper application system for communication processing.
In one embodiment, the parsing the packet and extracting the data field from the packet includes:
judging whether the message is correct according to a protocol rule of a transmission communication protocol of the message;
and when the message is determined to be correct, analyzing the message and extracting a data field from the message.
In one embodiment, the parsing the packet to extract the data field from the packet when the packet is determined to be correct includes:
when the message is determined to be correct, identifying a data field in the message;
determining and extracting a data field including the interested identification through the identification recognition.
In one embodiment, the converting and encapsulating the data field according to the protocol conversion rule to obtain the target protocol packet includes:
judging whether the information of the data field is abnormal or not based on preset field information;
when the data field is determined to have no abnormal information, converting the data field into a target data field corresponding to the target protocol according to a protocol conversion rule of the target protocol;
and performing header and trailer encapsulation on the target data field to obtain a target protocol message.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
receiving a message sent by communication equipment;
analyzing the message and extracting a data field from the message;
converting and packaging the data field according to a protocol conversion rule to obtain a target protocol message; the protocol conversion rule is obtained through dynamic configuration;
and sending the target protocol message to an upper application system for communication processing.
In one embodiment, the computer program when executed by the processor further performs the steps of:
judging whether the message is correct according to a protocol rule of a transmission communication protocol of the message;
and when the message is determined to be correct, analyzing the message and extracting a data field from the message.
In one embodiment, the computer program when executed by the processor further performs the steps of:
when the message is determined to be correct, identifying a data field in the message;
determining and extracting a data field including the interested identification through the identification recognition.
In one embodiment, the computer program when executed by the processor further performs the steps of:
judging whether the information of the data field is abnormal or not based on preset field information;
when the information of the data field is determined to be abnormal, converting the data field into a target data field corresponding to the target protocol according to a protocol conversion rule of the target protocol;
and performing header and trailer encapsulation on the target data field to obtain a target protocol message.
The communication system, the communication method and the storage medium comprise an interactive configuration layer, a communication access layer and a data processing layer. When the communication access layer receives the message of the communication equipment, the data processing layer analyzes and extracts the data field from the message, then the data field is converted and packaged based on the protocol conversion rule dynamically configured by the interactive configuration layer, the target protocol message is obtained and returned to the communication access layer, and then the communication access layer sends the target protocol message to the upper application system for communication processing. The system realizes the communication between the upper application system and each protocol device through the conversion of the protocol, so that the upper application system can support the access with the devices of various protocols, thereby improving the communication efficiency. Moreover, the system can flexibly configure protocol conversion rules of different protocols through the interactive configuration layer, thereby improving the reusability and the expansibility of the system.
Drawings
FIG. 1 is a block diagram of a communication system in accordance with an embodiment;
FIG. 2 is a block diagram of another embodiment of a communication system;
fig. 3 is a flow chart illustrating a communication method according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
As shown in fig. 1, a schematic diagram of a communication system is provided. Referring to fig. 1, the communication system includes an interworking configuration layer, a communication access layer, and a data processing layer. The interactive configuration layer is in communication connection with the data processing layer, and the data processing layer is in communication connection with the communication access layer. The communication access layer is in communication connection with the upper application system, and the communication access layer is in communication connection with external protocol communication equipment. The protocol communication devices include, but are not limited to, a Modbus protocol device, an SNMP (simple network management protocol) device, a custom protocol device, a robbit Message Queue (Message Queue) protocol device, and the like shown in fig. 1.
Specifically, the interactive configuration layer is used for dynamically configuring the protocol conversion rule, and the configured protocol conversion rule is used for performing protocol conversion, which can be understood as the rule and standard that are required to be followed for performing protocol conversion. The interaction configuration layer can be understood as a software configuration interface, responsible for all interfaces facing the interaction with the user. Besides the protocol conversion rule can be dynamically configured by interacting with the user, various operation control instructions of the user can be processed. And after receiving an operation control instruction of a user, sending the operation control instruction to a corresponding layer to process a control event, and presenting a processed result.
And the communication access layer is used for receiving messages sent by communication equipment, and the communication equipment refers to each protocol communication equipment in communication connection with the communication access layer. A message is a unit of data exchanged and transmitted in the network, containing the complete data information to be sent. That is, the communication access layer is understood to be responsible for implementing unified access management of communication with each protocol communication device and service data transceiving. The communication access layer sends the message data of different protocols collected from different communication devices to the data processing layer, and the message data is transmitted to the upper application system for communication processing after being uniformly subjected to protocol conversion by the data processing layer.
And the data processing layer is used for acquiring the messages received by the communication access layer from each communication device, analyzing the messages and extracting the data fields included in the messages from the messages through analysis. And after the data field is obtained by analysis, the data field is converted and encapsulated based on a protocol conversion rule configured in an interactive configuration layer to obtain a target protocol message. And then, feeding back the converted and packaged target protocol message to a communication access layer. And the communication access layer sends the target protocol message to an upper application system for communication processing. The target protocol message is a message conforming to a target protocol, and the target protocol is a protocol specified by the communication system and used for communicating with an upper-layer application system. In this embodiment, the target protocol may be a custom protocol or any one or more existing communication transmission protocols, and is configured according to actual service requirements, which is not limited herein. That is, when a target protocol needs to be added, a user dynamically configures a protocol conversion rule corresponding to the target protocol through the interaction configuration layer, and then protocol conversion can be performed based on the protocol conversion rule, and the configured protocol conversion rule provides a basis for protocol conversion. And when the existing target protocol needs to be replaced or deleted, the existing target protocol can be deleted by sending a deletion instruction through the interactive configuration layer.
The communication system comprises an interactive configuration layer, a communication access layer and a data processing layer. When the communication access layer receives the message of the communication equipment, the data processing layer analyzes and extracts the data field from the message, then the data field is converted and packaged based on the protocol conversion rule dynamically configured by the interactive configuration layer, the target protocol message is obtained and returned to the communication access layer, and then the communication access layer sends the target protocol message to the upper application system for communication processing. The system realizes the communication between the upper application system and each protocol device through the conversion of the protocol, so that the upper application system can support the access with the devices of various protocols, thereby improving the communication efficiency. Moreover, the system can flexibly configure protocol conversion rules of different protocols through the interactive configuration layer, thereby improving the reusability and the expansibility of the system.
In one embodiment, the data processing layer is further configured to determine whether the message is correct according to a protocol rule of a transmission communication protocol of the message; and when the message is determined to be correct, analyzing the message and extracting the data field from the message.
The transmission communication protocol refers to a transmission protocol followed by message transmission. For example, when the message is transmitted by the SNMP protocol device according to the SNMP protocol, the transmission communication protocol of the message is the SNMP protocol.
Specifically, when the data processing layer receives a message, in order to confirm that the message is not abnormal, the data processing layer first needs to determine whether the message is correct. That is, whether the message conforms to the transmission communication protocol is determined by determining whether the message conforms to the protocol rule corresponding to the transmission communication protocol. For example, when a message is transmitted by an SNMP protocol device in the SNMP protocol, the transmitted message should be a message conforming to the SNMP protocol. The judgment mode is different according to different transmission protocols, taking SNMP as an example, because the first byte of the SNMP message at the head of the message data segment is 30, whether the SNMP message is the SNMP message can be determined by judging whether the first byte of the SNMP message is 30. When the first byte of a message transmitted in the SNMP protocol is 30, it is determined that the message is correct. Otherwise, the message is determined to be incorrect. When the data processing layer determines that the message is incorrect through judgment, namely when the message is determined not to conform to the transmission communication protocol, the message is indicated to be abnormal, and the data processing layer directly reports a fault to finish the processing. When the data processing layer determines that the message is correct, namely when the message is determined to be in accordance with the transmission communication protocol, the message is indicated to be abnormal, and the data processing layer can analyze the message and extract the data fields included in the message. In the embodiment, the data field is extracted by analyzing the message after the message is confirmed to be correct, so that the communication is prevented from being influenced by the abnormal message, and the accuracy of the communication is improved.
In one embodiment, the data processing layer is further configured to, when the message is determined to be correct, perform identification recognition on a data field in the message; data fields including an identifier of interest are determined and extracted by identifier recognition.
The identification refers to a process of distinguishing the identification of the data field in the message, and the type of the identification corresponding to the data field is judged. The interested identification is preset for the data field in the message and is used for identifying that the data field is the interested data field identification.
Specifically, when the data processing layer parses the packet to extract the data fields, not all the data fields in the packet are required for communication. Therefore, the communication equipment of each protocol is appointed in advance, and the corresponding interested identification is added to the interested data field in each protocol message. And when the data processing layer analyzes the message, identifying the identification of each data field in the message. When the identification exists in a certain field and is identified as the interested identification, the field is determined as the interested field. Then, all the fields determined to be of interest are extracted from the message to obtain the required data fields. When determining whether the identifier existing in the data field is the identifier of interest, the method may be performed by means of matching and comparing.
In the embodiment, the data fields of interest are extracted through the interest identifiers, and compared with the method of directly extracting all the data fields, useless data can be reduced.
In one embodiment, the data processing layer is further configured to determine whether the information of the data field is abnormal based on preset field information; when the data field is determined to have no abnormal information, converting the data field into a target data field corresponding to a target protocol according to a protocol conversion rule of the target protocol; and encapsulating the header and the trailer of the target data field to obtain a target protocol message.
The preset field information refers to field information of each data field configured in advance. The target protocol refers to a protocol specified by the communication system in this embodiment for communicating with the upper layer application system. The target protocol may be a custom protocol or any existing transport protocol.
Specifically, after the data processing layer extracts the data fields, the data fields are compared with the corresponding preset field information to determine whether the data fields are abnormal. For example, assuming that the data field is a voltage, since a voltage without abnormality should be in a range of 13V to 15V, the preset field information of the voltage should be 13V to 15V. And when the extracted voltage is 12V, comparing the 12V with the corresponding preset field information 13V-15V. The extracted voltage can be determined to be abnormal through comparison. When the data processing layer determines that the data field is abnormal, the data processing layer directly reports a fault to finish the processing in order to avoid communication abnormality. And when the data processing layer determines that the data field is not abnormal, the data processing layer enters a protocol conversion process. And converting the extracted data field into a data field corresponding to the target protocol according to a protocol conversion rule of the specified target protocol to obtain the target data field. And then, taking the protocol rule corresponding to the target protocol as a reference, and performing message encapsulation on the target data field, wherein the message encapsulation comprises an encapsulation header and a tail, so as to obtain a complete target protocol message.
In this embodiment, after determining that the data field extracted from the original message is not abnormal, the data field is converted into a message corresponding to the target protocol, so as to ensure the accuracy of the target protocol message and avoid the communication abnormality with the upper application system.
In one embodiment, as shown in fig. 2, an architectural diagram of another communication system is provided, the communication system further comprising a system management layer and a service control layer. The system management layer is in communication connection with the interactive configuration layer, the data processing layer, the service control layer and the communication access layer. The service management layer is in communication connection with the data processing layer.
Specifically, the system management layer is used for distributing the protocol conversion rule dynamically configured by the interaction configuration layer to the data processing layer. It can be understood that the system management layer is mainly used for implementing control scheduling between layers, and plays a role in overall management. That is, the system management layer not only allocates the protocol conversion rule of the dynamic configuration of the interaction configuration layer to the data processing layer, but also performs scheduling according to each operation control instruction obtained by interaction between the interaction configuration layer and the user. And scheduling corresponding layers according to the operation control instruction, such as a scheduling data processing layer, a service control layer, a communication access layer and the like, to perform corresponding event processing. Then, the system management layer acquires the event processing results of the data processing layer, the service control layer, the communication access layer and the like, and the event processing results are uploaded to the interactive configuration layer and presented by the interactive configuration layer. In addition, the system management layer can distribute and store the service parameters, communication protocols and the like obtained by interaction between the interaction configuration layer and the user into the corresponding database.
And the service control layer is used for providing data processing basis for the data processing layer. It can be understood that the service control layer forms a service session processing flow with corresponding information such as message parsing, preset field information comparison, protocol encapsulation and the like according to the logic processing matching rule, and provides the processing flow to the data processing layer to provide a basis for the data processing layer to process, that is, the data processing layer performs corresponding processing according to the processing flow.
In one embodiment, a communication method is provided, including: receiving a message sent by communication equipment; analyzing the message and extracting data fields from the message; converting and packaging the data field according to the protocol conversion rule to obtain a target protocol message; the protocol conversion rule is obtained through dynamic configuration; and sending the target protocol message to an upper application system for communication processing.
The communication equipment refers to protocol communication equipment in communication connection with a communication access layer. A message is a unit of data exchanged and transmitted in the network, containing the complete data information to be sent.
Specifically, when each protocol communication device needs to communicate with an upper application system corresponding to the communication system, a message is sent to the communication access layer through the protocol of the application. And after the communication access layer receives the message sent by the communication equipment, the message is distributed to the data processing layer. When the data processing layer receives the message sent by the communication access layer, the message is analyzed, and the data field is extracted from the message. And then, converting and packaging the data field according to the protocol conversion rule of the dynamically configured target protocol to obtain a message corresponding to the target protocol, namely the target protocol message. And finally, sending the target protocol message to an upper application system for communication processing. Therefore, the communication between the upper application system and each protocol device is realized through the conversion of the protocol, so that the upper application system can support the access with the devices of various protocols, and the communication efficiency is improved. Moreover, the system can flexibly configure protocol conversion rules of different protocols through the interactive configuration layer, thereby improving the reusability and the expansibility of the system.
In one embodiment, parsing the message and extracting the data field from the message includes: judging whether the message is correct or not according to a protocol rule of a transmission communication protocol of the message; when the message is determined to be correct, the message is analyzed to extract the data field from the message.
Specifically, when the data processing layer receives a message sent by the communication access layer, in order to confirm that the message is not abnormal, the data processing layer first needs to determine whether the message is correct. Namely, whether the message conforms to the protocol rule corresponding to the transmission communication protocol is judged. When the data processing layer determines that the message is incorrect, namely when the message is determined not to conform to the transmission communication protocol, the message is indicated to be abnormal, and the data processing layer directly reports a fault to finish the processing. And when the data processing layer determines that the message is correct, namely when the message is determined to accord with the transmission communication protocol, the message is represented to have no abnormity, namely, the data field is analyzed and extracted. In the embodiment, the data field is extracted by analyzing the message after the message is confirmed to be correct, so that the communication is prevented from being influenced by the abnormal message, and the accuracy of the communication is improved.
In one embodiment, when the message is determined to be correct, parsing the message extracts data fields from the message, including: when the message is determined to be correct, identifying the data field in the message; data fields including an identifier of interest are determined and extracted by identifier recognition.
Specifically, when the data processing layer determines that the message is correct, the flow of parsing the message is entered, and the data field is extracted through parsing. The data processing layer firstly identifies the identification of each data field in the message and determines the data field identified as the interested identification. Then, the data field marked as the interested mark is extracted from the message to obtain the required data field. When determining whether the identifier of the data field is the identifier of interest, the data field identifier may be compared by matching. In the embodiment, the data fields of interest are extracted through the interest identifiers, and compared with the method of directly extracting all the data fields, useless data can be reduced.
In one embodiment, converting and encapsulating the data field according to the protocol conversion rule to obtain the target protocol packet includes: judging whether the information of the data field is abnormal or not based on the preset field information; when the information of the data field is determined to be abnormal, converting the data field into a target data field corresponding to a target protocol according to a protocol conversion rule of the target protocol; and encapsulating the header and the trailer of the target data field to obtain a target protocol message.
Specifically, after the data processing layer extracts the data fields, the data fields are compared with the corresponding preset field information to determine whether the data fields are abnormal. When the data field is determined to be abnormal, the data processing layer directly reports the fault to finish the processing. And when the data field is not abnormal, the data processing layer converts the extracted data field into the data field corresponding to the target protocol according to the protocol conversion rule of the specified target protocol to obtain the target data field. And then, performing message encapsulation on the target data field by taking the protocol rule corresponding to the target protocol as a reference, wherein the message encapsulation comprises an encapsulation header and a tail, and obtaining a target protocol message. The protocol conversion rule of the target protocol is flexibly configured by a user through an interactive configuration layer. And when the data processing layer obtains a target protocol message through protocol conversion, the target protocol message is fed back to the communication access layer. And the access layer sends the target protocol to an upper application system, and the upper application system carries out communication processing based on the target protocol message.
In this embodiment, after it is determined that the data field extracted from the original message is not abnormal, the data field is converted into a message corresponding to the target protocol, so that the accuracy of the target protocol message is ensured, and the abnormal communication with the upper application system is avoided.
In one embodiment, as shown in fig. 3, a communication method is provided, comprising the steps of:
step S301, receiving a message sent by the communication equipment.
Step S302, judging whether the message is correct according to the protocol rule of the transmission communication protocol of the message. When correct, the process proceeds to step S303, and when incorrect, the process ends directly.
Step S303, analyzing the message and extracting data fields from the message.
Step S304, judging whether the information of the data field is abnormal or not based on the preset field information. If there is no abnormality, the process proceeds to step S305, and if there is an abnormality, the process is terminated.
Step S305, according to the protocol conversion rule of the target protocol, the data field is converted into the target data field corresponding to the target protocol.
Step S306, the header and the trailer of the target data field are packaged to obtain a target protocol message.
Step S307, the target protocol message is sent to an upper application system for communication processing.
It should be understood that, although the steps in the flowchart of fig. 3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 3 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving a message sent by communication equipment;
analyzing the message and extracting data fields from the message;
converting and packaging data fields according to a protocol conversion rule to obtain a target protocol message; the protocol conversion rule is obtained through dynamic configuration;
and sending the target protocol message to an upper application system for communication processing.
In one embodiment, the computer program when executed by the processor further performs the steps of: judging whether the message is correct or not according to a protocol rule of a transmission communication protocol of the message; and when the message is determined to be correct, analyzing the message and extracting the data field from the message.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the message is determined to be correct, identifying the data field in the message; data fields including an identifier of interest are determined and extracted by identifier recognition.
In one embodiment, the computer program when executed by the processor further performs the steps of: judging whether the information of the data field is abnormal or not based on the preset field information; when the data field is determined to have no abnormal information, converting the data field into a target data field corresponding to a target protocol according to a protocol conversion rule of the target protocol; and encapsulating the header and the trailer of the target data field to obtain a target protocol message.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is specific and detailed, but not to be understood as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A communication system, the system comprising:
the interactive configuration layer is used for dynamically configuring protocol conversion rules;
the communication access layer is used for receiving messages sent by the communication equipment;
the data processing layer is used for analyzing the message and extracting a data field from the message; converting and packaging the data field according to a protocol conversion rule to obtain a target protocol message and returning the target protocol message to the communication access layer;
and the communication access layer is also used for sending the target protocol message to an upper application system for communication processing.
2. The system of claim 1, wherein the data processing layer is further configured to,
judging whether the message is correct or not according to a protocol rule of a transmission communication protocol of the message;
and when the message is determined to be correct, analyzing the message and extracting a data field from the message.
3. The system of claim 2, wherein the data processing layer is further configured to,
when the message is determined to be correct, identifying a data field in the message;
determining and extracting a data field comprising the interested identification through the identification recognition.
4. The system of claim 2, wherein the data processing layer is further configured to,
judging whether the information of the data field is abnormal or not based on preset field information;
when the information of the data field is determined to be abnormal, converting the data field into a target data field corresponding to the target protocol according to a protocol conversion rule of the target protocol;
and performing header and trailer encapsulation on the target data field to obtain a target protocol message.
5. The system of claim 1, further comprising a system management layer and a traffic control layer;
the system management layer is used for acquiring the protocol conversion rule dynamically configured by the interactive configuration layer and distributing the protocol conversion rule to the data processing layer;
and the service control layer is used for providing data processing basis for the data processing layer.
6. A method of communication, the method comprising:
receiving a message sent by communication equipment;
analyzing the message and extracting a data field from the message;
converting and packaging the data field according to a protocol conversion rule to obtain a target protocol message; the protocol conversion rule is obtained through dynamic configuration;
and sending the target protocol message to an upper application system for communication processing.
7. The method of claim 6, wherein parsing the message and extracting data fields from the message comprises:
judging whether the message is correct or not according to a protocol rule of a transmission communication protocol of the message;
and when the message is determined to be correct, analyzing the message and extracting a data field from the message.
8. The method of claim 7, wherein parsing the message to extract data fields from the message when the message is determined to be correct comprises:
when the message is determined to be correct, identifying a data field in the message;
determining and extracting a data field including the interested identification through the identification recognition.
9. The method of claim 6, wherein converting and encapsulating the data field according to a protocol conversion rule to obtain a target protocol packet comprises:
judging whether the information of the data field is abnormal or not based on preset field information;
when the information of the data field is determined to be abnormal, converting the data field into a target data field corresponding to the target protocol according to a protocol conversion rule of the target protocol;
and performing header and trailer encapsulation on the target data field to obtain a target protocol message.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 6 to 9.
CN202011564759.4A 2020-12-25 2020-12-25 Communication system, communication method, and storage medium Pending CN114760366A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011564759.4A CN114760366A (en) 2020-12-25 2020-12-25 Communication system, communication method, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011564759.4A CN114760366A (en) 2020-12-25 2020-12-25 Communication system, communication method, and storage medium

Publications (1)

Publication Number Publication Date
CN114760366A true CN114760366A (en) 2022-07-15

Family

ID=82324357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011564759.4A Pending CN114760366A (en) 2020-12-25 2020-12-25 Communication system, communication method, and storage medium

Country Status (1)

Country Link
CN (1) CN114760366A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102480462A (en) * 2010-11-23 2012-05-30 中国电信股份有限公司 Universal protocol adapting method and device
CN108833394A (en) * 2018-06-07 2018-11-16 中国人民解放军63889部队 The protocol conversion algorithm of data collection system
CN111835793A (en) * 2020-08-05 2020-10-27 天津美腾科技股份有限公司 Communication method and device for Internet of things access, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102480462A (en) * 2010-11-23 2012-05-30 中国电信股份有限公司 Universal protocol adapting method and device
CN108833394A (en) * 2018-06-07 2018-11-16 中国人民解放军63889部队 The protocol conversion algorithm of data collection system
CN111835793A (en) * 2020-08-05 2020-10-27 天津美腾科技股份有限公司 Communication method and device for Internet of things access, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110022289B (en) Data transmission method, device and system
CN111294235B (en) Data processing method, device, gateway and readable storage medium
CN109167762B (en) IEC104 message checking method and device
CN111930598B (en) Information processing method based on block chain and big data analysis and big data platform
CN111695884B (en) Internet of things big data visualization method and system based on smart construction site
CN113360301B (en) Message transmission system and method
CN112688952B (en) Message processing method, device, radio remote unit and medium
CN108833565A (en) A kind of method, apparatus of monitoring server, server and storage medium
CN113867732A (en) Message information processing method, system and storage medium
CN114584582A (en) In-vehicle message processing method and device, vehicle-mounted terminal and storage medium
CN113630418A (en) Network service identification method, device, equipment and medium
CN111200519B (en) Data processing method and device, BBU, access network equipment and storage medium
CN108924653B (en) Bullet screen message distribution method, device, equipment and storage medium
CN114760366A (en) Communication system, communication method, and storage medium
CN110099011B (en) Method and system for accessing entity gateway to virtual home gateway
CN109634908B (en) Data association method, data processing device and storage medium
CN111371736B (en) iOAM information processing method, iOAM information processing device and computer readable storage medium
CN114785874B (en) Method for providing high-availability transmission channel based on multi-network protocol
CN114070624B (en) Message monitoring method, device, electronic equipment and medium
CN111901126B (en) Method for avoiding time consumption of decryption and signature verification module based on V2X protocol stack network layer
CN113132383B (en) Network data acquisition method and system
CN114143385A (en) Network traffic data identification method, device, equipment and medium
EP3562194B1 (en) Method for identifying at least one network slice configuration of a mobile network, communication system, and automation system
CN107508739B (en) Authentication method for transmitting data through VPN tunnel
CN112261056B (en) Communication control method and device for power system, control equipment 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