WO2021027047A1 - 异构链路数据转译和分发方法、系统、设备和存储介质 - Google Patents

异构链路数据转译和分发方法、系统、设备和存储介质 Download PDF

Info

Publication number
WO2021027047A1
WO2021027047A1 PCT/CN2019/110891 CN2019110891W WO2021027047A1 WO 2021027047 A1 WO2021027047 A1 WO 2021027047A1 CN 2019110891 W CN2019110891 W CN 2019110891W WO 2021027047 A1 WO2021027047 A1 WO 2021027047A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
link
heterogeneous
heterogeneous link
translation
Prior art date
Application number
PCT/CN2019/110891
Other languages
English (en)
French (fr)
Inventor
吴彦龙
李亮
Original Assignee
睿魔智能科技(深圳)有限公司
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 睿魔智能科技(深圳)有限公司 filed Critical 睿魔智能科技(深圳)有限公司
Priority to US17/606,086 priority Critical patent/US11784929B2/en
Publication of WO2021027047A1 publication Critical patent/WO2021027047A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/741Routing in networks with a plurality of addressing schemes, e.g. with both IPv4 and IPv6
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/121Shortest path evaluation by minimising delays
    • 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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/123Evaluation of link metrics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/124Shortest path evaluation using a combination of metrics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/125Shortest path evaluation based on throughput or bandwidth
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/29Flow control; Congestion control using a combination of thresholds

Definitions

  • the embodiments of the present invention relate to network technology, for example, to a method, system, device, and storage medium for translating and distributing heterogeneous link data.
  • a data network composed of devices that comply with different standards and standards is called a heterogeneous network, and the data transmission link in a heterogeneous network is called a heterogeneous link.
  • a heterogeneous link When data is transmitted between devices in a heterogeneous link, data of different standards needs to be converted.
  • data access methods for heterogeneous links generally use data concentrators, and various heterogeneous link devices are connected to the data concentrator, and the data concentrator converts the data and transmits the data to other devices.
  • This article provides a heterogeneous link data translation and distribution method, system, equipment and storage medium, which improves the expansion capability of heterogeneous link data translation and distribution.
  • an embodiment of the present invention provides a heterogeneous link data translation and distribution method, including:
  • the embodiments of the present invention also provide a heterogeneous link data translation and distribution system, including:
  • the receiving module is configured to receive the original data sent by the first device in the heterogeneous link
  • the query module is configured to query the heterogeneous link routing table according to the original data to obtain routing information and data protocol information of the second device to be connected by the first device;
  • the translation module is configured to translate the original data into data to be distributed that conforms to the data protocol information of the second device;
  • the distribution module is configured to send the data to be distributed to the second device according to the routing information of the second device.
  • embodiments of the present invention also provide a heterogeneous link data translation and distribution device, including:
  • One or more processors are One or more processors;
  • Storage device for storing one or more programs
  • the one or more processors implement the heterogeneous link data translation and distribution method as described in any possible implementation manner of the first aspect.
  • an embodiment of the present invention also provides a computer-readable storage medium, including:
  • the heterogeneous link data translation and distribution method as described in any possible implementation manner of the first aspect is implemented.
  • Figure 1 is a flowchart of a heterogeneous link data translation and distribution method provided by an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for translating and distributing heterogeneous link data according to another embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a heterogeneous link data translation and distribution system provided by an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a heterogeneous link data translation and distribution system provided by another embodiment of the present invention.
  • Figure 5 is a schematic structural diagram of a heterogeneous link data translation and distribution device provided by an embodiment of the present invention.
  • FIG. 1 is a flowchart of a heterogeneous link data translation and distribution method provided by an embodiment of the present invention. As shown in FIG. 1, the heterogeneous link data translation and distribution method provided in this embodiment includes:
  • Step S101 Receive original data sent by a first device in a heterogeneous link.
  • the data concentrator first needs to cache and download the received data sent by devices of different standards and standards, and then complete the data forwarding after the data is converted through the data conversion method between the pre-stored different data protocols. On the one hand, it cannot cope with concurrency. The conversion requirements of multiple data, on the other hand, is not convenient for equipment expansion.
  • a heterogeneous link data translation and distribution method is proposed.
  • the original data sent by the first device in the heterogeneous link is received.
  • the original data is sent by the first device and conforms to the corresponding data of the first device.
  • the destination address of the original data is the second device connected in the heterogeneous link, and the data protocol of the second device is different from the first data, so the original data cannot be directly sent to the second device, and the original data needs to be processed.
  • a heterogeneous link is a data transmission system composed of devices that comply with multiple data protocols connected to each other.
  • Multiple data protocols include, for example, common on-board communication buses, such as serial peripheral interface (Serial Peripheral Interface, SPI), Integrated Circuit Bus (Inter-Integrated Circuit, IIC), etc.; Inter-board communication bus, such as Secure Digital Input and Output (SDIO), Universal Serial Bus (Universal Serial Bus, USB), etc.; Industrial communication bus, For example, Universal Asynchronous Receiver/Transmitter (UART), Controller Area Network (CAN), etc.; and wireless communication methods, such as WiFi, Bluetooth, zigbee, etc.
  • a data transmission link composed of at least two device connections that conform to different data protocols is called a heterogeneous link.
  • the heterogeneous link data translation and distribution method provided in this embodiment implements data translation and distribution by a heterogeneous link data translation and distribution system.
  • Step S102 Query the heterogeneous link routing table according to the original data to obtain routing information and data protocol information of the second device to be connected by the first device.
  • this embodiment proposes to establish a heterogeneous link routing table in the heterogeneous link data translation and distribution system, and the heterogeneous link routing table stores all the heterogeneous links.
  • the routing information and data protocol information of the connected devices, and the heterogeneous link routing table are separately stored in the heterogeneous link data translation and distribution system and can be updated at any time.
  • Each device in a heterogeneous link has corresponding routing information and data protocol information in the routing table.
  • the heterogeneous link routing table needs to be updated. Add routing information and data protocol information corresponding to the newly connected device to the link routing table.
  • the routing information and data protocol information corresponding to each device in the heterogeneous link routing table may be in the form shown in Table 1, for example.
  • the device description can be the proprietary attributes of the device such as the device name and device number.
  • the major device number is used to distinguish different types of devices. For example, the major classification number of the PTZ is the same, and the minor device number is used to distinguish the same. Multiple PTZs of one type, for example, different PTZs have different minor device numbers.
  • Device attributes are the proprietary attributes used to characterize different types of devices.
  • the media access control (Media Access Control Address, MAC) address, (Internet Protocol, IP) address, and port are all routing information of the device. One or more routing information can determine the location of the device in the data network for data processing. Forward.
  • the data protocol type is used to indicate the data protocol type corresponding to the device.
  • the original data sent by the first device in the heterogeneous link is received, the original data is parsed, and the destination address of the original data can be obtained.
  • the routing information in the routing table of the heterogeneous link the second The information corresponding to the device in the heterogeneous link routing table, and the source address can also be obtained from the original data.
  • the routing information in the heterogeneous link routing table it can be determined that the first device is in the heterogeneous link routing table Corresponding information.
  • the data protocol types corresponding to the first device and the second device can be learned by querying the heterogeneous link routing table.
  • Step S103 Translating the original data into data to be distributed that conforms to the data protocol information of the second device.
  • the heterogeneous link data translation and distribution system also saves the protocol parsing code between the data protocols. After determining the data protocol type corresponding to the first device and the second device, the data protocol between the first device and the second device is queried. The device performs the protocol analysis code corresponding to the data conversion, and then the original data can be translated into the data to be distributed corresponding to the data protocol type of the second device through the protocol analysis code.
  • Step S104 Send the data to be distributed to the second device according to the routing information of the second device.
  • the data to be distributed can be distributed to the second device according to the routing information of the second device obtained by querying the routing table of the heterogeneous link, thereby realizing the data in the heterogeneous link Translation and distribution.
  • the data translation and distribution method of the original data sent by the first device in the heterogeneous link to the second device is shown.
  • the method can also be performed according to the method provided in this embodiment.
  • the data translation and distribution in heterogeneous links can be performed concurrently, that is, there can be simultaneous data translation and distribution processes between multiple devices.
  • data in a heterogeneous link can be sent one-to-one, one-to-many, or many-to-many.
  • the original data to be sent is parsed, the heterogeneous link routing table is inquired, and then the corresponding protocol analysis code is matched to realize the protocol conversion of the data, and then according to the heterogeneous chain
  • the routing table realizes the distribution of data.
  • the heterogeneous link table Since in the heterogeneous link data translation and distribution system, the heterogeneous link table is stored independently, when a new device is connected to the heterogeneous link data translation and distribution system, only the heterogeneous link table needs to be updated. It can realize the expansion of heterogeneous link data translation and distribution system. In addition, due to the existence of the heterogeneous link routing table, data transfer and distribution can be carried out in parallel, and the increase of equipment will not add too much load to the heterogeneous link data translation and distribution system. Of course, in the heterogeneous link data translation and distribution system, in addition to the heterogeneous link routing table, it is also necessary to store the protocol analysis codes between the protocols.
  • the heterogeneous link data translation and distribution method In the heterogeneous link data translation and distribution method provided in this embodiment, after receiving the original data sent by the first device in the heterogeneous link, query the heterogeneous link routing table according to the original data to obtain the first device to be connected After the routing information and data protocol information of the second device are translated into data to be distributed that conforms to the data protocol information of the second device, the data to be distributed is sent to the second device according to the routing information of the second device, realizing a heterogeneous chain Data translation and distribution in the road, due to the use of heterogeneous link routing tables to realize data translation and distribution, so that the data translation and distribution functions in heterogeneous links can be easily expanded, which is suitable for increasing system integration. The higher the data transmission system.
  • a concentrator usually sends data to all devices connected to the concentrator in a heterogeneous network in a frequency division/time division manner, but cannot only send data to a specific one or more The device sends data, therefore, it is not possible to implement concurrent data conversion of multiple converted data.
  • the concentrator when the device is expanded in a heterogeneous network, the concentrator usually needs to be reset in a stopped state. Therefore, it is inconvenient to perform the device Extension.
  • the heterogeneous link routing table not only the data protocol information of the second device can be obtained, but also the routing information of the second device can be obtained. Using the routing information, the data to be distributed can be realized to the specific device.
  • FIG. 2 is a flowchart of a heterogeneous link data translation and distribution method according to another embodiment of the present invention.
  • the heterogeneous link data translation and distribution method provided in this embodiment includes:
  • Step S201 Receive original data sent by a first device in a heterogeneous link.
  • Step S202 Query the heterogeneous link routing table according to the original data to obtain routing information and data protocol information of the second device to be connected by the first device.
  • Step S203 Translating the original data into data to be distributed that conforms to the data protocol information of the second device.
  • step S201 to step S203 please refer to step S101 to step S103 in the foregoing embodiment, which will not be repeated here.
  • Step S204 Calculate the sending waiting time corresponding to the second device according to the heterogeneous link weight table.
  • the sending waiting time corresponding to the second device represents the tolerable sending waiting time between the original data sent by the first device and the second device receiving the data to be distributed.
  • the transmission waiting time required for on-board communication buses such as SPI and IIC is relatively short, while the transmission waiting time required for industrial communication buses such as UART and CAN can be relatively long.
  • the transmission waiting time corresponding to the second device is calculated according to the weight table, and the transmission is performed when the transmission waiting time is reached . This avoids the problem that the link bandwidth cannot complete data distribution in a timely manner when a large amount of concurrent data appears at the same time in a heterogeneous link.
  • a data protocol that requires a higher data transmission time may have a higher weight, while a data protocol that requires a lower data transmission time may have a higher weight.
  • the waiting time can be set separately for individual transmission links that need to be improved to the highest response speed of the current system.
  • calculating the transmission waiting time corresponding to the second device according to the heterogeneous link weight table includes: obtaining the weight parameter of the data link corresponding to the second device from the heterogeneous link weight table; wherein the data link
  • the weight parameters include: the waiting time required for the idle time of the data link channel and the weight of the data link. Can be based on the formula Calculate the sending waiting time corresponding to the second device.
  • T w is the sending waiting time corresponding to the second device, in ms.
  • is the system communication constant
  • T B is the waiting time required for the idle time of the data link channel corresponding to the second device, in ms
  • W is the weight of the data link corresponding to the second device.
  • the weight of each link in the heterogeneous link can be calculated based on the waiting time of different links and combined with the ratio of services.
  • P is the number of communication packets corresponding to the link of the second device in a unit time. The more the number of communication packets, the shorter the waiting time.
  • the waiting time scheduling algorithm provided by the above formula mainly realizes the data acquisition and translation of each communication link while taking into account the time limit of distribution. For different application scenarios and situations, dynamic communication adjustments are given to reduce the CPU occupancy rate while realizing the timeliness of distribution.
  • the heterogeneous link data translation and distribution system in order to calculate the transmission waiting time, can also determine the number of data bytes, the number of data packets, and the number of data packets received and sent on each link in the heterogeneous link. Statistics such as the data's latest receiving and sending time and the number of data sent per unit time are counted.
  • the data statistics function is the data source realized by the scheduling algorithm, and it is also the performance test of the translation and distribution system.
  • sending the data to be distributed to the second device can realize the optimization of data distribution. Processing, so as to avoid bottlenecks in the process of data distribution and affect data forwarding.
  • Step S205 Send the data to be distributed to the second device according to the routing information of the second device and the corresponding sending waiting time.
  • the data to be distributed can be sent to the second device in a planned manner according to the waiting time. This can alleviate the data transmission pressure on the system when a large amount of concurrent data appears in the heterogeneous link, and can improve the data translation and distribution capabilities of the heterogeneous link data translation and distribution system.
  • the data forwarding time in the heterogeneous link is less than 1ms, which is five times faster than the 5ms required by the dbus protocol for inter-process communication.
  • the embodiment of the invention also provides a data transmission protocol in a heterogeneous link.
  • a data transmission protocol in a heterogeneous link.
  • Using a fixed byte as the header can ensure rapid identification of valid messages, and at the same time, through the data bit change of the header byte itself, to ensure that the data link layer is quickly eliminated by electromagnetic interference information. At a certain level, the information stability guarantee of the circuit in the strong electromagnetic interference environment is given.
  • Cyclic Redundancy Check (CRC) 16 can be used to avoid bit errors in specific links.
  • TCP Transmission Control Protocol
  • QoS Quality of Service
  • MQTT Message Queuing Telemetry Transport
  • Step S206 Perform traffic statistics on each data link in the heterogeneous link, and control each data link according to the result of the traffic statistics.
  • Traffic statistics include: the number of data bytes and data packets received and sent on each data link in a heterogeneous link, and the latest data receiving and sending time.
  • each data link after performing traffic statistics on each data link in the heterogeneous link, each data link may also be controlled according to the result of the traffic statistics.
  • the control of each data link according to the result of traffic statistics includes: for the data link whose flow is less than or equal to the flow threshold, combined with the routing table configuration information, the flow control of each data link with different thresholds is implemented; Data links that exceed the flow threshold send out warning messages, and cut off or wait for recovery operations. In this way, operations such as statistics and monitoring of various data links in heterogeneous links can be realized.
  • the traffic statistics are different from the traffic statistics performed by the distribution strategy during data distribution.
  • the traffic statistics are based on the traffic data of each data link and serve the flow control of each data link. Including: the total net input flow/total net output flow of each link, specific data packets, total output failure packets/input failure packets, total timeouts and other link information statistics .
  • the traffic control with different thresholds is implemented for each data link.
  • the threshold link is automatically cut off, no longer transmitting the corresponding message information, or waiting for the resume operation, that is, the data transmission is first suspended, and after a certain period of time, the corresponding data link communication is resumed; in this embodiment, the traffic The data link that exceeds the flow threshold is cut off or waits for recovery to ensure the stability of the system.
  • the way of sending out early warning information can be notification through specific messages or log storage.
  • fault isolation method is to cut off directly or wait for recovery (that is, wait for a period of time before resuming data transmission)); for systems with man-machine interface, you can also view and modify the corresponding Configure information to achieve hot loading of the system.
  • the hot loading of the system refers to real-time backup of the current system information, by loading the real-time configuration into the memory, replacing the original old version of the configuration information, so that the system does not need to be powered off or shut down to achieve "zero time-consuming" "Switch.
  • the heterogeneous link data translation and distribution method provided in the embodiments of the present invention further includes: loading the routing information and data protocol information of the newly added device in the heterogeneous link routing table through the dynamic library; or through the process The communication method adds the routing information and data protocol information of the newly added equipment in the routing table of the heterogeneous link in real time.
  • the method for translating and distributing heterogeneous link data provided in the embodiment of the present invention adopts the unique netlink communication mode of Linux, and separates the forwarding system and different protocol analysis modules into independent program modules. It can realize the hot loading of the newly added protocol, so as to realize the hot loading of the system when a new protocol module is added. There are two ways to implement this module, namely:
  • the dynamic library is used to load the routing information and data protocol information of the newly added device in the heterogeneous link routing table, that is, the hot update of the heterogeneous link routing table is realized by the simple entity of the pre-implemented function in the dynamic library. Or add the routing information and data protocol information of the new equipment in the heterogeneous link routing table in real time through process communication, that is, the process of adding protocol analysis module in real time; updating the heterogeneous link routing table in these two ways can achieve The effect of updating without restarting the system.
  • the heterogeneous link data translation and distribution method calculates the transmission waiting time corresponding to the second device according to the heterogeneous link weight table, and sends the second device to the second device according to the routing information of the second device and the corresponding transmission waiting time.
  • the device sends the data to be distributed, while achieving the acquisition and translation of each data link, it also takes into account the time limit of data distribution, and dynamically adjusts the communication for different application scenarios and situations, so as to reduce the CPU occupancy rate.
  • each data link is controlled according to the traffic statistics, including the data link whose flow is less than or equal to the flow threshold, combined with the routing table configuration information, to implement different threshold flow control for each data link ; For the data link whose flow exceeds the flow threshold, an early warning message is sent, and the operation is cut or waited for recovery to ensure the stability of the system.
  • Fig. 3 is a schematic structural diagram of a heterogeneous link data translation and distribution system provided by an embodiment of the present invention. As shown in Fig. 3, the heterogeneous link data translation and distribution system provided in this embodiment includes:
  • the receiving module 31 is configured to receive the original data sent by the first device in the heterogeneous link.
  • the query module 32 is configured to query the heterogeneous link routing table according to the original data to obtain routing information and data protocol information of the second device to be connected by the first device.
  • the translation module 33 is configured to translate the original data into data to be distributed that conforms to the data protocol information of the second device.
  • the distribution module 34 is configured to send the data to be distributed to the second device according to the routing information of the second device.
  • the heterogeneous link data translation and distribution system provided in this embodiment is used to implement the heterogeneous link data translation and distribution method shown in FIG. 1, and its implementation principles and technical effects are similar, and will not be repeated here.
  • the query module 32 is further configured to calculate the sending waiting time corresponding to the second device according to the heterogeneous link weight table; the distribution module 33 is configured to calculate the routing information of the second device And the corresponding sending waiting time, sending the data to be distributed to the second device.
  • the query module 32 is further configured to obtain the weight parameter of the data link corresponding to the second device from the heterogeneous link weight table; wherein the weight parameter of the data link includes: data The waiting time required for the idle time of the link channel and the weight of the data link; according to the formula Calculate the sending waiting time corresponding to the second device, where T w is the sending waiting time corresponding to the second device, T B is the waiting time required for the idle time of the data link channel corresponding to the second device, and W is the data corresponding to the second device The weight of the link, P is the number of data packets of the data link corresponding to the second device in a unit time, and ⁇ is the system communication constant.
  • the heterogeneous link data translation and distribution system includes a receiving module configured to receive the original data sent by the first device in the heterogeneous link, and configured to query the heterogeneous link routing table based on the original data.
  • the query module 32 for obtaining routing information and data protocol information of the second device to be connected by the first device, a translation module configured to translate original data into data to be distributed that conforms to the data protocol information of the second device, and configured to The routing information of the second device sends the distribution module of the data to be distributed to the second device, which realizes the data translation and distribution in the heterogeneous link. Because the data is translated and distributed in the form of the heterogeneous link routing table, the heterogeneous The data translation and distribution functions in the link can be easily expanded, which is suitable for data transmission systems with increasingly higher system integration.
  • FIG. 4 is a schematic structural diagram of a heterogeneous link data translation and distribution system provided by another embodiment of the present invention. As shown in FIG. 4, the heterogeneous link data translation and distribution system provided in this embodiment is based on FIG. 3 It also includes: a statistical control module 41, configured to perform traffic statistics on each data link in the heterogeneous link, and control each data link according to the result of the traffic statistics.
  • a statistical control module 41 configured to perform traffic statistics on each data link in the heterogeneous link, and control each data link according to the result of the traffic statistics.
  • the statistical control module 41 is configured to implement flow control with different thresholds for each data link in combination with the routing table configuration information for data links whose flow is less than or equal to the flow threshold;
  • the data link whose flow exceeds the flow threshold sends an early warning message and cuts off or waits for recovery.
  • it also includes an update module configured to load the routing information and data protocol information of the newly added device in the heterogeneous link routing table through a dynamic library; or through process communication In the heterogeneous link routing table, the routing information and data protocol information of the newly added device are added in real time.
  • the heterogeneous link data translation and distribution system calculates the transmission waiting time corresponding to the second device according to the heterogeneous link weight table, and sends the second device to the second device according to the routing information of the second device and the corresponding transmission waiting time.
  • the device sends the data to be distributed, while achieving the acquisition and translation of each data link, it also takes into account the time limit of data distribution, and dynamically adjusts the communication for different application scenarios and situations, so as to reduce the CPU occupancy rate.
  • each data link is controlled according to the traffic statistics, including the data link whose flow is less than or equal to the flow threshold, combined with the routing table configuration information, to implement different threshold flow control for each data link ; For the data link whose flow exceeds the flow threshold, an early warning message is sent, and the operation is cut or waited for recovery to ensure the stability of the system.
  • FIG. 5 is a schematic structural diagram of a heterogeneous link data translation and distribution device provided by an embodiment of the present invention.
  • the heterogeneous link data translation and distribution device includes a processor 51, a memory 52, and a receiver. 53 and transmitter 54; the number of processors 51 in the heterogeneous link data translation and distribution device can be one or more.
  • one processor 51 is taken as an example;
  • the processor 51, the memory 52, the receiver 53, and the transmitter 54 may be connected by a bus or in other ways.
  • the connection by a bus is taken as an example in FIG.
  • the memory 52 can be used to store software programs, computer-executable programs, and modules, such as the program instructions/modules corresponding to the heterogeneous link data translation and distribution method in the embodiment shown in FIG.
  • the receiving module 31, the query module 32, the translation module 33, and the distribution module 34 in the heterogeneous link data translation and distribution equipment The processor 51 applies the various functions and data processing of the heterogeneous link data translation and distribution equipment by running the software programs, instructions and modules stored in the memory 52, that is, realizes the aforementioned heterogeneous link data translation and distribution method .
  • the memory 52 may mainly include a storage program area and a storage data area.
  • the storage program area may store an operating system and an application program required by at least one function; the storage data area may store data translation and distribution equipment based on heterogeneous link data. Data created, etc.
  • the memory 52 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
  • the receiver 53 is a combination of any one or more devices or modules with data receiving capabilities
  • the transmitter 54 is a combination of any one or more devices or modules with data sending capabilities.
  • the embodiment of the present invention also provides a storage medium containing computer-executable instructions, which are used to execute a heterogeneous link data translation and distribution method when the computer-executable instructions are executed by a computer processor.
  • the method includes:
  • a storage medium containing computer-executable instructions provided by an embodiment of the present invention can also perform related operations in the heterogeneous link data translation and distribution method provided by any embodiment of the present invention.
  • this article can be implemented with the help of software and necessary general-purpose hardware, of course, it can also be implemented with hardware, but in many cases the former is a better implementation.
  • the technical solution in this article can be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a computer floppy disk, Read-Only Memory (ROM), Random Access Memory (RAM), Flash memory (FLASH), hard disk or optical disk, etc., including several instructions to make a computer device (may be a personal computer, server , Or a network device, etc.) execute the methods described in the various embodiments herein.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本文公开了一种异构链路数据转译和分发方法、系统、设备和存储介质,该异构链路数据转译和分发方法包括:接收异构链路中第一设备发送的原始数据;根据原始数据查询异构链路路由表,以获取第一设备所要连接的第二设备的路由信息和数据协议信息;将原始数据转译为符合第二设备的数据协议信息的待分发数据;根据第二设备的路由信息向第二设备发送待分发数据。

Description

异构链路数据转译和分发方法、系统、设备和存储介质
本公开要求在2019年08月09日提交中国专利局、申请号为201910734387.6的中国专利申请的优先权,以上申请的全部内容通过引用结合在本公开中。
技术领域
本发明实施例涉及网络技术,例如涉及一种异构链路数据转译和分发方法、系统、设备和存储介质。
背景技术
各种符合不同标准和制式的设备组成的数据网络称为异构网络,异构网络中的数据传输链路称为异构链路。在异构链路中的各设备之间进行数据传输时,需要对不同制式的数据进行转换。目前异构链路的数据接入方式一般采用数据集中器,各种异构链路的设备均接入数据集中器,由数据集中器对数据进行转换后将数据传输到其他设备。
但是异构链路中的所有数据都输入数据集中器进行转换,会增加数据传输的时延,数据集中器的数据负荷也会随着接入设备的数量而大大增加,不便于设备的扩充和数据的扩容。
发明内容
本文提供一种异构链路数据转译和分发方法、系统、设备和存储介质,提高了异构链路数据转译和分发的扩展能力。
第一方面,本发明实施例提供一种异构链路数据转译和分发方法,包括:
接收异构链路中第一设备发送的原始数据;
根据原始数据查询异构链路路由表,以获取第一设备所要连接的第二设备 的路由信息和数据协议信息;
将原始数据转译为符合第二设备的数据协议信息的待分发数据;
根据第二设备的路由信息向第二设备发送待分发数据。
第二方面,本发明实施例还提供了一种异构链路数据转译和分发系统,包括:
接收模块,被配置为接收异构链路中第一设备发送的原始数据;
查询模块,被配置为根据原始数据查询异构链路路由表,以获取第一设备所要连接的第二设备的路由信息和数据协议信息;
转译模块,被配置为将原始数据转译为符合第二设备的数据协议信息的待分发数据;
分发模块,被配置为根据第二设备的路由信息向第二设备发送待分发数据。
第三方面,本发明实施例还提供了一种异构链路数据转译和分发设备,包括:
一个或多个处理器;
存储装置,用于存储一个或多个程序,
当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现如第一方面任一种可能的实现方式所述的异构链路数据转译和分发方法。
第四方面,本发明实施例还提供了一种计算机可读存储介质,包括:
该程序被处理器执行时实现如第一方面任一种可能的实现方式所述的种异构链路数据转译和分发方法。
附图说明
图1为本发明实施例提供的异构链路数据转译和分发方法的流程图;
图2为本发明另一实施例提供的异构链路数据转译和分发方法的流程图;
图3为本发明实施例提供的异构链路数据转译和分发系统的结构示意图;
图4为本发明另一实施例提供的异构链路数据转译和分发系统的结构示意图;
图5为本发明实施例提供的一种异构链路数据转译和分发设备的结构示意图。
具体实施方式
下面结合附图和实施例对本文作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本文,而非对本文的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本文相关的部分而非全部结构。
图1为本发明实施例提供的异构链路数据转译和分发方法的流程图,如图1所示,本实施例提供的异构链路数据转译和分发方法包括:
步骤S101,接收异构链路中第一设备发送的原始数据。
随着系统集成化程度的提高,各种不同标准和制式的设备都具有互联互通的需求,但不同标准和制式的设备所传输的数据均是符合不同标准和制式的数据,由于数据结构不同,无法将不同标准和制式的设备直接连接在一起,而是需要通过中间的协议转换设备进行连接后,将数据进行协议转换才能实现设备之间的互联互通。但为每对不同标准和制式的设备分别开发对应的协议转换设备成本很高,且不适用于目前集成了多种标准和制式的集成化设备中。因此,相关技术中,主要采用数据集中器作为各种标准和制式的设备之间的数据转换设备。但数据集中器首先需要将接收到的不同标准和制式的设备发送的数据缓存下载,再通过预存的不同数据协议之间的数据转换方法对数据进行转换后完 成数据的转发,一方面无法应对并发的多个数据的转换需求,另一方面也不便于设备的扩充。
因此在本实施例中提出一种异构链路数据转译和分发方法,首先接收异构链路中第一设备发送的原始数据,原始数据是由第一设备发出的,符合第一设备对应的第一数据协议。原始数据的目的地址为异构链路中连接的第二设备,第二设备的数据协议与第一数据不同,那么将无法直接把原始数据发送至第二设备,需要对原始数据进行处理。其中异构链路是由符合多种数据协议的设备相互连接所组成的数据传输系统,多种数据协议例如包括常见的板内通信总线,例如串行外设接口(Serial Peripheral Interface,SPI)、集成电路总线(Inter-Integrated Circuit,IIC)等;板间通信总线,例如安全数字输入输出(Secure Digital Input and Output,SDIO)、通用串行总线(Universal Serial Bus,USB)等;工业通信总线,例如通用异步收发传输器(Universal Asynchronous Receiver/Transmitter,UART)、控制器局域网络(Controller Area Network,CAN)等;以及无线通信方式,例如WiFi、蓝牙、zigbee等。至少两种符合不同的数据协议的设备连接所组成的数据传输链路就称为异构链路。
本实施例提供的异构链路数据转译和分发方法由异构链路数据转译和分发系统实现数据的转译和分发。
步骤S102,根据原始数据查询异构链路路由表,以获取第一设备所要连接的第二设备的路由信息和数据协议信息。
为了实现异构链路中的数据转发,本实施例中提出在异构链路数据转译和分发系统中建立异构链路路由表,异构链路路由表中保存有异构链路中所连接设备的路由信息和数据协议信息,异构链路路由表是单独保存于异构链路数据转译和分发系统中的,可以随时进行更新。异构链路中的每个设备在路由表中 都有对应的路由信息和数据协议信息,在异构链路中接入新的设备时,都需要更新异构链路路由表,在异构链路路由表中添加与新接入的设备对应的路由信息和数据协议信息。
异构链路路由表中每个设备对应的路由信息和数据协议信息例如可以为表1所示的形式。
表1
Figure PCTCN2019110891-appb-000001
在表1中,设备描述可以为设备名称、设备编号等设备的专有属性,主设备号用来区分不同种类的设备,例如云台的主分类号就是相同的,次设备号用来区分同一个类型的多个云台,例如不同云台的次设备号不同。设备属性是用来表征不同类型的设备的专有属性。介质访问控制(Media Access Control Address,MAC)地址、(Internet Protocol,IP)地址和端口都是设备的路由信息,通过一个或多个路由信息可以确定设备在数据网络中的位置,用于进行数据转发。数据协议类型用来表示该设备对应的数据协议类型。
那么当接收到异构链路中第一设备发送的原始数据后,对原始数据进行解析后,可以得到原始数据的目的地址,通过查询异构链路路由表中的路由信息,可以确定第二设备在异构链路路由表中对应的信息,同时从原始数据中还可以获取源地址,通过查询异构链路路由表中的路由信息,可以确定第一设备在异构链路路由表中对应的信息。那么就可以通过查询异构链路路由表获知第一设备和第二设备所分别对应的数据协议类型。
步骤S103,将原始数据转译为符合第二设备的数据协议信息的待分发数据。
在异构链路数据转译和分发系统中还保存有各数据协议之间的协议解析代码,在确定第一设备和第二设备所对应的数据协议类型后,查询到与第一设备到第二设备进行数据转换对应的协议解析代码,然后即可将原始数据通过该协议解析代码转译为符合第二设备的数据协议类型对应的待分发数据。
步骤S104,根据第二设备的路由信息向第二设备发送待分发数据。
在将原始数据转译为待分发数据后,根据异构链路路由表查询得到的第二额设备的路由信息,可以将待分发数据分发给第二设备,从而实现了异构链路中数据的转译和分发。
在本实施例中,仅示出了异构链路中第一设备发送的原始数据到第二设备的数据转译和分发方法,在异构链路中,各设备之间的其他数据转译和分发方法同样可以根据本实施例提供的方法进行。并且在异构链路中的数据转译和分发可以是并发进行的,也就是可以同时有多个设备之间的数据转译和分发流程同时进行。并且异构链路中的数据可以是一对一发送的,也可以是一对多发送的,也可以是多对多发送的。但无论哪种数据转译和分发需求,都是通过对待发送的原始数据进行解析后,查询异构链路路由表,然后匹配对应的协议解析代码,实现数据的协议转换后,再根据异构链路路由表实现数据的分发。
由于在异构链路数据转译和分发系统中,异构链路表是独立存储的,因此当异构链路数据转译和分发系统中接入新的设备,只需要更新异构链路表,即可实现异构链路数据转译和分发系统的扩展。另外,由于异构链路路由表的存在,数据的转移和分发可以是并行进行的,设备的增加不会为异构链路数据转译和分发系统增加太多的负荷。当然,在异构链路数据转译和分发系统中除了异构链路路由表以外,还需要存储各协议之间的协议解析代码。
本实施例提供的异构链路数据转译和分发方法,在接收异构链路中第一设备发送的原始数据后,根据原始数据查询异构链路路由表,获取第一设备所要连接的第二设备的路由信息和数据协议信息,将原始数据转译为符合第二设备的数据协议信息的待分发数据后,根据第二设备的路由信息向第二设备发送待分发数据,实现了异构链路中的数据转译和分发,由于采用异构链路路由表的形式实现数据转译和分发,使得异构链路中的数据转译和分发功能可以被很容易的扩展,适用于系统集成度越来越高的数据传输系统中。
需要说明的是,在相关技术中,集中器通常为通过分频/分时的方式向异构网络中,与该集中器连接的所有设备发送数据,而不能实现只向特定的一个或多个设备发送数据,因而,不能实现对多个转换后数据进行并发,并且,当在异构网络中扩充设备后,集中器通常需要在停止工作的状态下重新设置,因而,也不便于进行设备的扩展。而本发明实施例中,通过查询异构链路路由表,不仅能够获取第二设备的数据协议信息,还能够获取第二设备的路由信息,利用路由信息,能够实现将待分发数据向特定设备的定向发送,因而,本发明实施例可以实现待转换数据的并发,并且,由于在需要扩充设备的情况下,在异构链路路由表中,非新增设备的路由信息不需要改动,因而,本发明实施例能够方便扩充设备。图2为本发明另一实施例提供的异构链路数据转译和分发方法的流程图,如图2所示,本实施例提供的异构链路数据转译和分发方法包括:
步骤S201,接收异构链路中第一设备发送的原始数据。
步骤S202,根据原始数据查询异构链路路由表,以获取第一设备所要连接的第二设备的路由信息和数据协议信息。
步骤S203,将所述原始数据转译为符合所述第二设备的数据协议信息的待分发数据。
步骤S201~步骤S203中的内容可对应参考前述实施例中的步骤S101~步骤S103,这里不再赘述。
步骤S204,根据异构链路权重表格计算第二设备对应的发送等待时间。
由于链路传输带宽的限制,在异构链路中,随着设备数量的增加,并发的数据转译和分发需求很多时,可能导致数据分发出现瓶颈,影响数据转发。因此需要采用一定的机制对数据的分发进行优化处理。在对异构链路中各种数据协议进行分析后,可以看出各种数据协议所需的传输环境是不同的,对带宽和时延等传输参数的需求也是不同的。因此在本实施例中,可以针对异构链路中各种不同链路的特点,建立与各链路的通信速度所对应的权重表格。那么在接收到第一设备发送的原始数据后,需要根据权重表格计算第二设备对应的发送等待时间。第二设备对应的发送等待时间表示第一设备发送的原始数据到第二设备接收待分发数据之间可以容忍的发送等待时间。例如SPI、IIC等板内通信总线所需的发送等待时间就较短,而UART、CAN等工业通信总线所需的发送等待时间就可以较长。这样就可以在完成从原始数据到待分发数据的转译后,并不立即分发待分发数据,而是根据权重表格计算出第二设备对应的发送等待时间后,在到达发送等待时间时再进行发送。这样就避免了异构链路中大量并发数据同时出现时,链路带宽无法及时完成数据分发的问题。对数据传输时间要求较高的数据协议设置的权重可以较高,而对数据传输时间要求较低的数据协议设置的权重可以较高。另外,可以对个别需要提高为当前系统最高响应速度的传输链路,可以单独设置等待时间。
在一些实施例中,根据异构链路权重表格计算第二设备对应的发送等待时间,包括:从异构链路权重表格中获取第二设备对应的数据链路的权重参数;其中数据链路的权重参数包括:数据链路通道空闲时间需要的等待时间和数据 链路的权重。可以根据公式
Figure PCTCN2019110891-appb-000002
计算第二设备对应的发送等待时间。其中T w为第二设备对应的发送等待时间,单位为ms。δ为系统通信常数,T B为第二设备对应的数据链路通道空闲时间需要的等待时间,单位为ms,W为第二设备对应的数据链路的权重。异构链路中各链路的权重可以根据不同链路的可等待时间为基础,结合业务的比例换算得到。P为单位时间内第二设备对应链路的通信包数,通信的包数越多,需要等待的时间越短。上述公式提供的等待时间的调度算法,主要在实现了每个通讯链路数据获取、转译的同时,兼顾分发的时间限制。对不同的运用场景和情况,给予动态的通讯调节,在降低CPU占有率的同时,实现分发的时效性。
在一些实施例中,为了实现发送等待时间的计算,异构链路数据转译和分发系统还可以在异构链路中对每个链路上接收和发送的数据字节数、数据包数、数据的最近接收发送时间、数据的单位时间发送数量等信息进行统计。数据统计功能是调度算法实现的数据来源,也是对转译和分发系统的性能检测。
需要说明的是,由本实施例的步骤S201~S204,本实施例中,根据第二设备对应的发送等待时间,向所述第二设备发送所述待分发数据,能够实现对数据的分发进行优化处理,从而能够避免数据分发的过程中出现瓶颈,而影响数据转发。
步骤S205,根据第二设备的路由信息和对应的发送等待时间,向第二设备发送待分发数据。
在计算出第二设备对应的发送等待时间后,可以根据该等待时间,有计划地向第二设备发送待分发数据。这样可以缓解异构链路中大量并发数据出现时对于系统的数据传输压力,可以提高异构链路数据转译和分发系统的数据转译和分发能力。
在对本文提供的异构链路数据转译和分发方法进行实际测试后,得出异构链路中数据转发耗时小于1ms,比进程间通信的dbus协议所需的5ms要快五倍。
由于异构链路中多种设备的存在,在数据转译和分发需求越来越高时,仍然可能出现传输瓶颈,因此为了解决异构链路中的数据转译和分发中所存在的问题,本发明实施例还提供一种异构链路中的数据传输协议。在异构链路中的各设备都应用该数据传输协议时,可以无需在设备之间进行数据协议的转换,可以提高异构链路中的数据传输速度。本发明实施例提供的数据传输协议的数据跨度如表2所示。
表2
Figure PCTCN2019110891-appb-000003
在表2所示的数据传输协议设计中,考虑到以下几个要素:
1、采用固定一个字节作为报头,可以在保证快速的甄别有效报文的同时, 还可以通过报头字节本身的数据bit位变化,来保证数据链路层受电磁干扰的信息的快速剔除。在一定层面上,给予了强电磁干扰环境电路的信息稳定保证。
2、采用循环冗余校验(Cyclic Redundancy Check,CRC)16的报头检验,可以避免特定链路的误码。
3、借鉴IP协议的ping包,用于协议转发测速。
4、借鉴传输控制协议(Transmission Control Protocol,TCP)的收发序号,用于保证数据的正确性和时效性。
5、借鉴国际电工委员会(International ElectrotechnicalCommissio,IEC)61850协议的建模,构建设备模型。
6、借鉴电网协议IEC104协议的K/W机制,制定超时机制和数据窗口。
7、借鉴消息队列遥测传输(Message Queuing Telemetry Transport,MQTT)协议的服务质量(Quality of Service,QoS)机制,制定重发机制。
8、借鉴用户数据报协议(User Datagram Protocol,UDP)的广播机制,制定广播功能。
9、借鉴IP的分包功能,制定分包要求。
10、借鉴TCP的收发应答,制定应答机制。
本发明实施例提供的异构链路数据转译和分发方法还包括:
步骤S206,对异构链路中的每个数据链路进行流量统计,并根据流量统计结果对每个数据链路进行控制。流量统计包括:异构链路中每个数据链路上接收和发送的数据字节数和数据包数、数据的最新接收发送时间等。
在一些实施例中,对异构链路中每个数据链路进行流量统计之后,还可以根据流量统计结果对每个数据链路进行控制。其中,所述根据流量统计结果对每个数据链路进行控制包括:对于流量小于等于流量阈值的数据链路,结合路 由表配置信息,对每个数据链路实行不同阈值的流量管控;对于流量超过流量阈值的数据链路发出预警信息,并进行切断或等待恢复操作。从而可以实现异构链路中对各种数据链路的统计、监控等操作。
需要说明的是,流量统计区别于在进行数据分发时的分发策略进行的流量统计,这里的流量统计,基于每个数据链路的流量数据,服务于对每个数据链路的流量控制,可以包括:对每个链路总净输入流量/总净输出流量、特定的数据报文、总的输出失败报文条数/输入失败报文条数、总的超时条数等链路信息进行统计。
根据流量统计信息,结合路由表配置信息,对每个数据链路实行不同阈值的流量管控。对超过流量阈值的数据链路发出预警信息,并进行切断或等待恢复操作;发现即将超过流量阈值的链路,通过流量统计信息的上报和预警通知的方式告知对应的设备;对于已经发生超过流量阈值的链路,进行自动切断,不再传输对应的报文信息,或者是等待恢复操作,即先暂停数据传输,间隔一定时间后,再恢复对应的数据链路通讯;本实施例通过对流量超过流量阈值的数据链路进行切断或等待恢复操作可以保证系统的稳定性。发出预警信息的方式可以是通过特定的报文进行通知或日志存储。
用户可以对流量阈值和故障隔离方式(故障隔离方式即是直接切断还是等待恢复(即等待一段时间后再恢复数据传送))的设置;对于有人机界面的系统,也可以实时查阅和修改对应的配置信息,做到系统的热加载。系统的热加载在这里是指通过实时备份当前系统的信息,通过加载实时配置到内存中,替换原本旧版配置信息的方式,来实现系统不用断电或者是关机的方式,来实现“零耗时”的切换。
在一些实施例中,本发明实施例提供的异构链路数据转译和分发方法还包 括:通过动态库在异构链路路由表中加载新增设备的路由信息和数据协议信息;或者通过进程通信方式在异构链路路由表中实时添加新增设备的路由信息和数据协议信息。
由于网络中的各种协议可能随时进行更新,因此异构链路路由表页需要采用一定的方式进行更新处理。本发明实施例中提供的异构链路数据转译和分发方法,是采用linux特有的netlink通讯方式的基础上,通过将转发系统和不同协议解析模块独立为独立的程序模块。可以实现新增协议的热加载,从而实现新增新协议模块时,系统的热加载。该模块的实现方式有两种,分别为:
通过动态库在异构链路路由表中加载新增设备的路由信息和数据协议信息,也就是通过在动态库中根据预先实现函数简单实体实现异构链路路由表的热更新。或者通过进程通信方式在异构链路路由表中实时添加新增设备的路由信息和数据协议信息,也就是实时添加协议解析模块的进程;通过这两种方式更新异构链路路由表能达到更新无需重启系统的效果。
本发明实施例提供的异构链路数据转译和分发方法通过根据异构链路权重表格计算第二设备对应的发送等待时间,并根据第二设备的路由信息和对应的发送等待时间向第二设备发送待分发数据,在实现了每个数据链路数据获取、转译的同时,兼顾了数据分发的时间限制,对不同的运用场景和情况给予动态的通讯调节,在降低CPU占有率的同时实现了分发的时效性;而且根据流量统计结果对每个数据链路进行控制,包括对于流量小于等于流量阈值的数据链路,结合路由表配置信息,对每个数据链路实行不同阈值的流量管控;对于流量超过流量阈值的数据链路发出预警信息,并进行切断或等待恢复操作,保证了系统的稳定性。
图3为本发明实施例提供的异构链路数据转译和分发系统的结构示意图, 如图3所示,本实施例提供的异构链路数据转译和分发系统包括:
接收模块31,被配置为接收异构链路中第一设备发送的原始数据。
查询模块32,被配置为根据原始数据查询异构链路路由表,以获取第一设备所要连接的第二设备的路由信息和数据协议信息。
转译模块33,被配置为将原始数据转译为符合第二设备的数据协议信息的待分发数据。
分发模块34,被配置为根据第二设备的路由信息向第二设备发送待分发数据。
本实施例提供的异构链路数据转译和分发系统用于实现图1所示的异构链路数据转译和分发方法,其实现原理和技术效果类似,此处不再赘述。
在图3所示实施例的基础上,查询模块32,还被配置为根据异构链路权重表格计算第二设备对应的发送等待时间;分发模块33,被配置为根据第二设备的路由信息和对应的发送等待时间,向第二设备发送待分发数据。
在图3所示实施例的基础上,查询模块32,还被配置为从异构链路权重表格中获取第二设备对应的数据链路的权重参数;其中数据链路的权重参数包括:数据链路通道空闲时间需要的等待时间和数据链路的权重;根据公式
Figure PCTCN2019110891-appb-000004
计算第二设备对应的发送等待时间,其中T w为第二设备对应的发送等待时间,T B为第二设备对应的数据链路通道空闲时间需要的等待时间,W为第二设备对应的数据链路的权重,P为单位时间内第二设备对应的数据链路的数据包数,δ为系统通信常数。
本实施例提供的异构链路数据转译和分发系统,包括被配置为接收异构链路中第一设备发送的原始数据的接收模块、被配置为根据原始数据查询异构链路路由表以获取第一设备所要连接的第二设备的路由信息和数据协议信息的查 询模块32、被配置为将原始数据转译为符合第二设备的数据协议信息的待分发数据的转译模块、被配置为根据第二设备的路由信息向第二设备发送待分发数据的分发模块,实现了异构链路中的数据转译和分发,由于采用异构链路路由表的形式实现数据转译和分发,使得异构链路中的数据转译和分发功能可以被很容易的扩展,适用于系统集成度越来越高的数据传输系统中。
图4为本发明另一实施例提供的异构链路数据转译和分发系统的结构示意图,如图4所示,本实施例提供的异构链路数据转译和分发系统在图3的基础上还包括:统计控制模块41,被配置为对异构链路中的每个数据链路进行流量统计,并根据流量统计结果对每个数据链路进行控制。
在图4所示实施例的基础上,统计控制模块41,被配置为对于流量小于等于流量阈值的数据链路,结合路由表配置信息,对每个数据链路实行不同阈值的流量管控;对于流量超过流量阈值的数据链路发出预警信息,并进行切断或等待恢复操作。
在图3或图4所示实施例的基础上,还包括更新模块,被配置为通过动态库在异构链路路由表中加载新增设备的路由信息和数据协议信息;或者通过进程通信方式在异构链路路由表中实时添加新增设备的路由信息和数据协议信息。
本发明实施例提供的异构链路数据转译和分发系统通过根据异构链路权重表格计算第二设备对应的发送等待时间,并根据第二设备的路由信息和对应的发送等待时间向第二设备发送待分发数据,在实现了每个数据链路数据获取、转译的同时,兼顾了数据分发的时间限制,对不同的运用场景和情况给予动态的通讯调节,在降低CPU占有率的同时实现了分发的时效性;而且根据流量统计结果对每个数据链路进行控制,包括对于流量小于等于流量阈值的数据链路,结合路由表配置信息,对每个数据链路实行不同阈值的流量管控;对于流量超 过流量阈值的数据链路发出预警信息,并进行切断或等待恢复操作,保证了系统的稳定性。
图5为本发明实施例提供的一种异构链路数据转译和分发设备的结构示意图,如图5所示,该异构链路数据转译和分发设备包括处理器51、存储器52、接收器53和发送器54;异构链路数据转译和分发设备中处理器51的数量可以是一个或多个,图5中以一个处理器51为例;异构链路数据转译和分发设备中的处理器51、存储器52、接收器53和发送器54可以通过总线或其他方式连接,图5中以通过总线连接为例。
存储器52作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本文图1所示实施例中的异构链路数据转译和分发方法对应的程序指令/模块(例如,异构链路数据转译和分发设备中的接收模块31、查询模块32、转译模块33、分发模块34)。处理器51通过运行存储在存储器52中的软件程序、指令以及模块,从而应用异构链路数据转译和分发设备的各种功能以及数据处理,即实现上述的异构链路数据转译和分发方法。
存储器52可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据异构链路数据转译和分发设备的使用所创建的数据等。此外,存储器52可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。
接收器53为任一种或多种具有数据接收能力的器件或模块的组合,发送器54为任一种或多种具有数据发送能力的器件或模块的组合。
本发明实施例还提供一种包含计算机可执行指令的存储介质,计算机可执行指令在由计算机处理器执行时用于执行一种异构链路数据转译和分发方法, 该方法包括:
接收异构链路中第一设备发送的原始数据;
根据原始数据查询异构链路路由表,以获取第一设备所要连接的第二设备的路由信息和数据协议信息;
将原始数据转译为符合第二设备的数据协议信息的待分发数据;
根据第二设备的路由信息向第二设备发送待分发数据。
当然,本发明实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令还可以执行本发明任意实施例所提供的异构链路数据转译和分发方法中的相关操作。
通过以上关于实施方式的描述,所属领域的技术人员可以清楚地了解到,本文可借助软件及必需的通用硬件来实现,当然也可以通过硬件实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本文的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如计算机的软盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、闪存(FLASH)、硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本文各个实施例所述的方法。
值得注意的是,上述异构链路数据转译和分发设备的实施例中,所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的名称也只是为了便于相互区分。

Claims (10)

  1. 一种异构链路数据转译和分发方法,包括:
    接收异构链路中第一设备发送的原始数据;
    根据所述原始数据查询异构链路路由表,以获取所述第一设备所要连接的第二设备的路由信息和数据协议信息;
    将所述原始数据转译为符合所述第二设备的数据协议信息的待分发数据;
    根据所述第二设备的路由信息向所述第二设备发送所述待分发数据。
  2. 根据权利要求1所述的方法,所述根据所述第二设备的路由信息向所述第二设备发送所述待分发数据之前,所述方法还包括:
    根据异构链路权重表格计算所述第二设备对应的发送等待时间;
    所述根据所述第二设备的路由信息向所述第二设备发送所述待分发数据,包括:
    根据所述第二设备的路由信息和对应的发送等待时间,向所述第二设备发送所述待分发数据。
  3. 根据权利要求2所述的方法,其中,所述根据异构链路权重表格计算所述第二设备对应的发送等待时间,包括:
    从异构链路权重表格中获取所述第二设备对应的数据链路的权重参数;其中所述数据链路的权重参数包括:数据链路通道空闲时间需要的等待时间和数据链路的权重;
    根据公式
    Figure PCTCN2019110891-appb-100001
    计算所述第二设备对应的发送等待时间,其中T w为所述第二设备对应的发送等待时间,T B为所述第二设备对应的数据链路通道空闲时间需要的等待时间,W为所述第二设备对应的数据链路的权重,P为单位时间内所述第二设备对应的数据链路的数据包数,δ为系统通信常数。
  4. 根据权利要求1~3任一项所述的方法,所述方法还包括:
    对所述异构链路中的每个数据链路进行流量统计,并根据流量统计结果对每个数据链路进行控制。
  5. 根据权利要求4所述的方法,其中,所述根据流量统计结果对每个数据链路进行控制包括:
    对于流量小于等于流量阈值的数据链路,结合路由表配置信息,对每个数据链路实行流量管控;
    对于流量超过流量阈值的数据链路发出预警信息,并进行切断或等待恢复操作。
  6. 根据权利要求1~3任一项所述的方法,所述方法还包括:
    通过动态库在所述异构链路路由表中加载新增设备的路由信息和数据协议信息;
    或者通过进程通信方式在所述异构链路路由表中实时添加新增设备的路由信息和数据协议信息。
  7. 一种异构链路数据转译和分发系统,包括:
    接收模块,被配置为接收异构链路中第一设备发送的原始数据;
    查询模块,被配置为根据所述原始数据查询异构链路路由表,以获取所述第一设备所要连接的第二设备的路由信息和数据协议信息;
    转译模块,被配置为将所述原始数据转译为符合所述第二设备的数据协议信息的待分发数据;
    分发模块,被配置为根据所述第二设备的路由信息向所述第二设备发送所述待分发数据。
  8. 根据权利要求7所述的系统,其中,所述查询模块,还被配置为根据异构链路权重表格计算所述第二设备对应的发送等待时间;
    所述分发模块,被配置为根据所述第二设备的路由信息和对应的发送等待时间,向所述第二设备发送所述待分发数据。
  9. 一种异构链路数据转译和分发设备,包括:
    一个或多个处理器;
    存储装置,用于存储一个或多个程序,
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1~6中任一所述的异构链路数据转译和分发方法。
  10. 一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如权利要求1~6中任一所述的异构链路数据转译和分发方法。
PCT/CN2019/110891 2019-08-09 2019-10-12 异构链路数据转译和分发方法、系统、设备和存储介质 WO2021027047A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/606,086 US11784929B2 (en) 2019-08-09 2019-10-12 Heterogeneous link data translation and distribution method, system and device, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910734387.6 2019-08-09
CN201910734387.6A CN110581804B (zh) 2019-08-09 2019-08-09 异构链路数据转译和分发方法、系统、设备和存储介质

Publications (1)

Publication Number Publication Date
WO2021027047A1 true WO2021027047A1 (zh) 2021-02-18

Family

ID=68810721

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/110891 WO2021027047A1 (zh) 2019-08-09 2019-10-12 异构链路数据转译和分发方法、系统、设备和存储介质

Country Status (3)

Country Link
US (1) US11784929B2 (zh)
CN (1) CN110581804B (zh)
WO (1) WO2021027047A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111352984B (zh) * 2020-02-19 2023-04-18 中国联合网络通信集团有限公司 数据分发方法、设备和存储介质
CN114938398B (zh) * 2022-04-08 2024-05-31 湖南匡安网络技术有限公司 电池管理系统中用于将can协议转换为iec61850协议的方法和系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050213574A1 (en) * 2004-03-23 2005-09-29 Naomasa Yoshimura Communication system
US20070266432A1 (en) * 2006-05-10 2007-11-15 Fujitsu Limited Packet routing method, computer system, and computer product
CN101141419A (zh) * 2007-10-19 2008-03-12 广州市聚晖电子科技有限公司 基于异构型网络协议的数字家庭设备间的通讯方法
CN101420386A (zh) * 2008-12-09 2009-04-29 南京西倍特科技有限公司 多现场综合计量网络互联路由方法
CN104038414A (zh) * 2013-08-21 2014-09-10 江南大学 一种多协议智能家庭网关装置及其系统

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7720095B2 (en) * 2003-08-27 2010-05-18 Fortinet, Inc. Heterogeneous media packet bridging
KR100607993B1 (ko) * 2004-07-16 2006-08-02 삼성전자주식회사 이종 네트워크간 통신 시스템 및 방법
CN101471877B (zh) * 2007-12-27 2011-09-14 华为技术有限公司 异构网络间通信的方法、系统和装置
JP4941397B2 (ja) * 2008-04-22 2012-05-30 富士通株式会社 経路情報中継方法および無線端末
CN102479182A (zh) * 2010-11-23 2012-05-30 大连兆阳软件科技有限公司 一种异构、异种数据库间的数据交换方法及其装置
US8984145B2 (en) * 2011-10-28 2015-03-17 Yokogawa Electric Corporation Network management interface for heterogeneous data network and system using the same
CN102694739B (zh) * 2012-06-27 2015-12-02 北京华胜天成信息技术发展有限公司 一种异构路由协调系统及方法
CN102938731B (zh) * 2012-11-22 2015-01-21 北京锐易特软件技术有限公司 一种基于代理缓存适配模型的交换集成装置及方法
CN103839138A (zh) * 2014-03-08 2014-06-04 成都文昊科技有限公司 用于支撑多个异构系统交互的系统
CN103839139A (zh) 2014-03-25 2014-06-04 天津市康信医药科技有限公司 一种生物化学实验记录模板设计方法
WO2017111677A1 (en) * 2015-12-22 2017-06-29 Telefonaktiebolaget Lm Ericsson (Publ) ROUTER AND METHOD FOR CONNECTING AN IPv4 NETWORK AND AN IPv6 NETWORK
CN105516185A (zh) * 2015-12-30 2016-04-20 广东顺德中山大学卡内基梅隆大学国际联合研究院 一种多协议网关设备
US10219209B2 (en) * 2016-03-28 2019-02-26 The Boeing Company Content delivery across heterogeneous networks
CN107528864A (zh) * 2016-06-20 2017-12-29 中国科学院微电子研究所 异构网络数据处理方法及系统
CN108521378A (zh) * 2018-04-23 2018-09-11 天津芯海创科技有限公司 异构协议报文的转发方法、装置和网络交换设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050213574A1 (en) * 2004-03-23 2005-09-29 Naomasa Yoshimura Communication system
US20070266432A1 (en) * 2006-05-10 2007-11-15 Fujitsu Limited Packet routing method, computer system, and computer product
CN101141419A (zh) * 2007-10-19 2008-03-12 广州市聚晖电子科技有限公司 基于异构型网络协议的数字家庭设备间的通讯方法
CN101420386A (zh) * 2008-12-09 2009-04-29 南京西倍特科技有限公司 多现场综合计量网络互联路由方法
CN104038414A (zh) * 2013-08-21 2014-09-10 江南大学 一种多协议智能家庭网关装置及其系统

Also Published As

Publication number Publication date
CN110581804A (zh) 2019-12-17
US20220200905A1 (en) 2022-06-23
US11784929B2 (en) 2023-10-10
CN110581804B (zh) 2021-05-11

Similar Documents

Publication Publication Date Title
EP3694165B1 (en) Managing congestion in a network
US11888744B2 (en) Spin-leaf network congestion control method, node, system, and storage medium
US8953631B2 (en) Interruption, at least in part, of frame transmission
US10609125B2 (en) Method and system for transmitting communication data
US20060233118A1 (en) Apparatus and method for dynamic packet training
CN104618194A (zh) 软件定义网络报文监控方法和sdn控制器、交换设备
US10797986B2 (en) Link discovery method and apparatus
WO2022032984A1 (zh) 一种mqtt协议仿真方法及仿真设备
WO2021027047A1 (zh) 异构链路数据转译和分发方法、系统、设备和存储介质
US10091063B2 (en) Technologies for directed power and performance management
CN110838935A (zh) 高可用sdn控制器集群方法、系统、存储介质及设备
WO2022040847A1 (zh) 通信数据处理方法及装置
US20220103479A1 (en) Transmit rate based on detected available bandwidth
CN114095901A (zh) 通信数据处理方法及装置
EP4304144A1 (en) Communication method and apparatus
CN117014967A (zh) 移动通信系统、方法和用户面节点
US20150074250A1 (en) Network management
KR20120012354A (ko) 부하 절감형 toe 네트워크 장치
TWI830350B (zh) 用於路由資料封包的方法及電子設備
CN102065028B (zh) 一种网关设备以及报文处理方法
WO2024024280A1 (ja) 通信処理装置および通信方法
JP2002009848A (ja) ゲートウェイ装置及びマルチキャスト通信システム
JP6480747B2 (ja) 通信装置、制御方法、及びプログラム
Wang et al. An Optimized RDMA QP Communication Mechanism for Hyperscale AI Infrastructure
CN106506434B (zh) 业务数据传输方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19941566

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19941566

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 19941566

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 18/08/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19941566

Country of ref document: EP

Kind code of ref document: A1