Data transmission method, device and equipment and computer readable storage medium

By acquiring and orchestrating the sending strategy of device packets, data transmission complexity and conflict problems in industrial networks are solved, and efficient and reliable data transmission is achieved.

CN119071248APending Publication Date: 2024-12-03HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310626759.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-30
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

In an industrial network, the data transmission between the first device and the second device has complexity of transmission constraints, resulting in high complexity in determining the transmission strategy, frequent transmission conflicts, and low transmission efficiency.

Method used

By acquiring the sending strategy of the device packet, determining the sending strategy based on the transmission constraints, the orchestration complexity is reduced, and the transmission device transmits interactive data according to the policy, reducing conflicts, and improving transmission reliability and efficiency.

Benefits of technology

It realizes data transmission with low orchestration complexity, reduces transmission delay, improves transmission efficiency and reliability, and avoids transmission conflicts between device packets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071248A_ABST
    Figure CN119071248A_ABST
Patent Text Reader

Abstract

The invention discloses a data transmission method, device and equipment and a computer readable storage medium, and belongs to the technical field of communication. The method comprises: a transmission device obtaining a sending policy of a first packet, the first packet being a device packet corresponding to the transmission device, one device packet comprising a plurality of first devices and a second device interacting with the plurality of first devices, the sending policy of the first packet being determined according to transmission constraint conditions of the first packet and the second packet, the second group and the first group are different equipment groups, and the transmission constraint condition is used for constraining transmission of interaction data corresponding to the first group and the second group; and transmitting the interaction data of the first group according to the sending strategy of the first group. The sending strategy is arranged and determined according to the transmission constraint conditions among different equipment groups, and the arrangement complexity is low. By transmitting the interaction data of the first group according to the sending strategy, conflicts occurring in the transmission process of the interaction data of different equipment groups can be reduced, and the transmission reliability is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a data transmission method, apparatus, device and computer-readable storage medium. Background Art

[0002] In the field of communication technology, the operation of some applications depends on the data transmission between the first device and the second device configured in the network. Taking an industrial application installed in an industrial network as an example, the first device is, for example, a device in the industrial network, and the second device is, for example, a controller in the industrial network. The industrial application is operated based on the real-time information transmitted between the device and the controller. Therefore, a data transmission method is needed to realize the data transmission between the first device and the second device. Summary of the invention

[0003] The present application provides a data transmission method, apparatus, device, and computer-readable storage medium to implement data transmission between a first device and a second device. The technical solution is as follows:

[0004] In a first aspect, a data transmission method is provided, the method comprising: a transmission device obtains a sending strategy of a first group, the first group is a device group corresponding to the transmission device, one device group includes multiple first devices and a second device that interacts with the multiple first devices, the sending strategy of the first group is determined according to transmission constraints of the first group and the second group, wherein the second group and the first group are different device groups, and the transmission constraints are used to constrain the transmission of interactive data corresponding to the first group and the second group respectively; the interactive data of the first group is transmitted according to the sending strategy of the first group.

[0005] The sending strategy is determined according to the transmission constraints between different device groups, and the constraints that need to be considered in the determination process are few, and the arrangement complexity is low. The sending strategy is determined by referring to the transmission constraints between device groups. Transmitting the interaction data of the first group according to the sending strategy can reduce the conflict of the interaction data of different device groups during the transmission process, and the transmission reliability is high.

[0006] In a possible implementation, obtaining the sending strategy of the first group includes: obtaining a first identifier of the first group, the first identifier being a group identifier of the first group; and obtaining the sending strategy of the first group according to the first identifier. The first identifier is a group identifier that can indicate the first group, and the sending strategy obtained through the first identifier has high accuracy.

[0007] In a possible implementation, obtaining the sending policy of the first group according to the first identifier includes: obtaining a policy mapping table, the policy mapping table including the mapping relationship between the group identifiers of each device group and the sending policy; searching the policy mapping table for a group identifier that matches the first identifier, and determining the sending policy corresponding to the matching group identifier as the sending policy of the first group. The sending policy of the first group can be determined by searching the policy mapping table through the first identifier, and the searching process of the sending policy of the first group is simple and the searching cost is low.

[0008] In a possible implementation, the interactive data of the first group is transmitted according to the sending strategy of the first group, including: encapsulating multiple received interactive data in a first transmission frame, transmitting the first transmission frame according to the sending strategy of the first group, and one interactive data is data of interaction between a first device and a second device in the first group. Multiple interactive data can be encapsulated in one first transmission frame and transmitted together, and different interactive data occupy the same transmission channel, thereby increasing the number of first devices and second devices that can complete the interaction in the same period, and the transmission efficiency is high.

[0009] In one possible implementation, the interaction data includes control data sent from the second device to the first device, the control data is used to manage the device operation of the first device, and the first transmission frame includes a first reference frame; multiple received interaction data are encapsulated in the first transmission frame, including: extracting first data from multiple interaction data, the multiple interaction data correspond to multiple first devices, and the first data is the interaction data corresponding to the first device directly connected to the transmission device; encapsulating the first data in the first reference frame.

[0010] In a possible implementation, the interactive data includes control data sent from the second device to the first device, the control data is used to manage the device operation of the first device, the first transmission frame includes the second reference frame; the received multiple interactive data are encapsulated in the first transmission frame, including: extracting the second data from the multiple interactive data, the second data is the interactive data corresponding to the first device to which the transmission device is indirectly connected; encapsulating the second data in the second reference frame. Since the first data and the second data need to be sent to different devices, the first data and the second data are respectively encapsulated in the first reference frame and the second reference frame, so that the first data and the second data are sent to the corresponding devices to ensure the smooth implementation of data transmission.

[0011] In a possible implementation, the interactive data includes feedback data sent from the first device to the second device, the feedback data indicating the operation result of the first device after the operation based on the received control data; before encapsulating the received multiple interactive data in the first transmission frame, it also includes: receiving a second transmission frame sent by the upstream device, the second transmission frame includes multiple feedback data received by the upstream device; extracting the feedback data included in the second transmission frame to obtain the feedback data sent from the first device to the second device. In addition to transmitting the control data sent from the second device to the first device, the transmission device can also transmit the feedback data sent from the first device to the second device, without limiting the transmission direction of the interactive data, and has high versatility.

[0012] In a possible implementation, the sending strategy includes at least one of a sending period, a start time, and a polling period of the first group of interactive data sent by the transmission device. By constraining the time when the transmission device sends the interactive data by at least one of the sending period, the start time, and the polling period, the data included in the sending strategy is not limited, and the flexibility is high. The transmission strategy is applicable to two transmission modes: sending interactive data separately, and encapsulating the interactive data in the first transmission frame for aggregate transmission, and has a wide range of applications.

[0013] In a possible implementation, the polling period of the first group is a multiple of the sending period of the interactive data of the first group. By setting the multiple relationship, the sending time of the interactive data transmitted by the transmission device can coincide with the sending time of the interactive data transmitted by the first device or the second device. In this case, the interactive data of the first group does not need to wait and can be directly transmitted, thereby reducing the transmission delay of the first group.

[0014] In a second aspect, a data transmission method is provided, the method comprising: a control device obtains transmission constraints between each device group in a plurality of device groups, one device group comprises a plurality of first devices and a second device interacting with the plurality of first devices, the transmission constraints are used to constrain the transmission of interactive data corresponding to the plurality of device groups respectively; a sending strategy of each device group is determined according to the transmission constraints; the sending strategy of the first group in the plurality of device groups is sent to a transmission device, the transmission device is used to transmit the interactive data of the first group according to the received sending strategy. The control device arranges and determines the sending strategy according to the transmission constraints between different device groups, fewer constraints need to be considered during the arrangement process, the arrangement scale is reduced to the granularity of the device group, and the arrangement complexity is low.

[0015] In a possible implementation, after determining the sending strategy of each device group according to the transmission constraint condition, the method further includes: determining a strategy mapping table according to the sending strategy of each device group, wherein the strategy mapping table includes a mapping relationship between the group identifier and the sending strategy of each device group. By establishing a strategy mapping table, the mapping relationship between the group identifier and the sending strategy is determined, so that the sending strategy of the device group can be determined by searching the group identifier, and the searching process of the sending strategy is simple and has high accuracy.

[0016] In a possible implementation, sending a sending policy of a first group among multiple device groups to a transmission device includes: sending a policy mapping table to the transmission device. The sending policy of the first group is implemented by sending the policy mapping table, and the sending process is simple.

[0017] In a possible implementation, the sending strategy includes at least one of a sending period, a start time, and a polling period of the first group of interactive data sent by the transmission device. In the case where the transmission device transmits the received interactive data alone, the sending period of the first group of interactive data is limited, and the transmission device transmits the interactive data in the sending period to implement the transmission constraint of the first group of interactive data. In the case where the transmission device encapsulates the interactive data in a first transmission frame for aggregate transmission, the sending time of the first transmission frame is determined by the sending strategy, thereby constraining the transmission process of the first transmission frame. The present application does not limit the data included in the sending strategy, and has high flexibility.

[0018] In a possible implementation, the polling period of the first group is a multiple of the sending period of the interactive data of the first group. By setting the multiple relationship, the sending time of the interactive data transmitted by the transmission device can coincide with the sending time of the interactive data transmitted by the first device or the second device. In this case, the interactive data of the first group does not need to wait and can be directly transmitted, thereby reducing the transmission delay of the first group.

[0019] According to a third aspect, a data transmission device is provided, which is applied to a transmission device, and the device includes: an acquisition module, which is used to acquire a sending strategy of a first group, the first group is a device group corresponding to the transmission device, and a device group includes multiple first devices and a second device that interacts with the multiple first devices. The sending strategy of the first group is determined according to transmission constraints of the first group and the second group. The second group and the first group are different device groups, and the transmission constraints are used to constrain the transmission of interactive data corresponding to the first group and the second group respectively; a transmission module, which is used to transmit the interactive data in the first group according to the sending strategy of the first group.

[0020] In a possible implementation, the acquisition module is configured to acquire a first identifier of a first group, where the first identifier is a group identifier of the first group; and acquire a sending policy of the first group according to the first identifier.

[0021] In a possible implementation, an acquisition module is used to obtain a policy mapping table, which includes a mapping relationship between group identifiers of each device group and a sending policy; a group identifier matching the first identifier is searched in the policy mapping table, and the sending policy corresponding to the matching group identifier is determined as the sending policy of the first group.

[0022] In a possible implementation, the transmission module is used to encapsulate multiple received interaction data in a first transmission frame, and transmit the first transmission frame according to the sending strategy of the first group. An interaction data is data of interaction between a first device and a second device in the first group.

[0023] In a possible implementation, the interaction data includes control data sent from the second device to the first device, the control data is used to manage the device operation of the first device, and the first transmission frame includes a first reference frame; a transmission module is used to extract first data from multiple interaction data, the multiple interaction data correspond to multiple first devices, and the first data is the interaction data corresponding to the first device directly connected to the transmission device; and the first data is encapsulated in the first reference frame.

[0024] In one possible implementation, the interaction data includes control data sent from the second device to the first device, the control data is used to manage the device operation of the first device, and the first transmission frame includes a second reference frame; a transmission module is used to extract second data from multiple interaction data, the second data is the interaction data corresponding to the first device to which the transmission device is indirectly connected; and the second data is encapsulated in the second reference frame.

[0025] In one possible implementation, the interaction data includes feedback data sent from the first device to the second device, the feedback data indicating the operation result of the first device after running based on the received control data; the transmission module is also used to receive a second transmission frame sent by the upstream device, the second transmission frame includes multiple feedback data received by the upstream device; extract the feedback data included in the second transmission frame to obtain the feedback data sent from the first device to the second device.

[0026] In a possible implementation, the sending strategy includes at least one of a sending period, a start time, and a polling period of the first packet of interactive data sent by the transmission device.

[0027] In a possible implementation manner, the polling period of the first group is a multiple of a sending period of the interactive data of the first group.

[0028] In a fourth aspect, a data transmission device is provided, which is applied to a control device, and the device includes: an acquisition module, which is used to obtain transmission constraints between each device group in a plurality of device groups, one device group includes a plurality of first devices and a second device that interacts with the plurality of first devices, and the transmission constraints are used to constrain the transmission of interaction data corresponding to the plurality of device groups; a determination module, which is used to determine a sending strategy for each device group according to the transmission constraints; and a sending module, which is used to send the sending strategy of the first group in the plurality of device groups to a transmission device, and the transmission device is used to transmit the interaction data of the first group according to the received sending strategy.

[0029] In a possible implementation, the determination module is further configured to determine a policy mapping table according to the sending policies of each device group, wherein the policy mapping table includes a mapping relationship between the group identifier of each device group and the sending policy.

[0030] In a possible implementation manner, the sending module is configured to send the policy mapping table to the transmission device.

[0031] In a possible implementation, the sending strategy includes at least one of a sending period, a start time, and a polling period of the first packet of interactive data sent by the transmission device.

[0032] In a possible implementation manner, the polling period of the first group is a multiple of a sending period of the interactive data of the first group.

[0033] In a fifth aspect, a data transmission device is provided, the device comprising a processor; the processor is used to load and execute at least one instruction so that the data transmission device implements the data transmission method in the first aspect or any possible implementation of the first aspect, or implements the data transmission method in the second aspect or any possible implementation of the second aspect.

[0034] In a possible implementation, the device further includes a memory, which is coupled to the processor and is used to store at least one instruction.

[0035] In the sixth aspect, a computer-readable storage medium is provided, in which at least one instruction is stored, and the instruction is loaded and executed by a processor to implement the data transmission method in the first aspect or any possible implementation of the first aspect, or to implement the data transmission method in the second aspect or any possible implementation of the second aspect.

[0036] In the seventh aspect, a computer program (product) is provided, which includes a computer program / instructions, and the computer program / instructions are executed by a processor to enable a computer to implement the data transmission method in the first aspect or any possible implementation of the first aspect, or to implement the data transmission method in the second aspect or any possible implementation of the second aspect.

[0037] In an eighth aspect, a communication device is provided, the device comprising: a transceiver, a memory, and a processor. The transceiver, the memory, and the processor communicate with each other through an internal connection path, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the transceiver to receive signals and control the transceiver to send signals, and when the processor executes the instructions stored in the memory, the processor executes the method in the first aspect or any possible implementation of the first aspect, or implements the method in the second aspect or any possible implementation of the second aspect.

[0038] Optionally, there are one or more processors and one or more memories.

[0039] Optionally, the memory may be integrated with the processor, or the memory may be provided separately from the processor.

[0040] In the specific implementation process, the memory can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated with the processor on the same chip or can be set on different chips. This application does not limit the type of memory and the setting method of the memory and the processor.

[0041] In a ninth aspect, a chip is provided, comprising a processor for calling and executing program instructions or codes stored in a memory, so that a communication device equipped with the chip executes the methods in the above aspects.

[0042] In the tenth aspect, another chip is provided, including: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the methods in the above aspects.

[0043] It should be understood that the beneficial effects achieved by the technical solutions of the third to tenth aspects of the present application and the corresponding possible implementation methods can be referred to the above-mentioned technical effects of the first aspect or the second aspect and their corresponding possible implementation methods, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 A schematic diagram of an implementation environment provided for an embodiment of the present application;

[0045] Figure 2 A flowchart of a data transmission method provided in an embodiment of the present application;

[0046] Figure 3 A schematic diagram of data transmission provided in an embodiment of the present application;

[0047] Figure 4 A schematic diagram of a network topology provided in an embodiment of the present application;

[0048] Figure 5 A schematic diagram of transmission of interactive data provided in an embodiment of the present application;

[0049] Figure 6 A schematic diagram of another data transmission provided in an embodiment of the present application;

[0050] Figure 7 A schematic diagram of the structure of a first reference frame provided in an embodiment of the present application;

[0051] Figure 8 A schematic diagram of the structure of another first reference frame provided in an embodiment of the present application;

[0052] Fig. 9 A schematic diagram of another data transmission provided in an embodiment of the present application;

[0053] Fig.10 A schematic diagram of the structure of a data transmission device provided in an embodiment of the present application;

[0054] Fig.11 A schematic diagram of the structure of another data transmission device provided in an embodiment of the present application;

[0055] Fig.12 A schematic diagram of the structure of a network device provided in an embodiment of the present application;

[0056] Fig.13 A structural diagram of another network device is provided for an embodiment of the present application. DETAILED DESCRIPTION

[0057] The terms used in the implementation method of this application are only used to explain the specific embodiments of this application, and are not intended to limit this application. In order to make the purpose, technical solution and advantages of this application clearer, the implementation method of this application will be further described in detail below with reference to the accompanying drawings.

[0058] In the field of communication technology, the operation of an application depends on the interactive data transmitted between a first device and a second device in a network. Taking the network as a fully digital, bidirectional, and multi-station industrial network installed in an industrial production environment as an example, the first device is, for example, a device in the industrial network, and the second device is, for example, a controller in the industrial network. The controller is used to manage the operation of the device and will send control data to the device, and the device will send feedback data to the controller. The feedback data can be the operation result of the device after running according to the control data sent by the controller. Therefore, it is necessary to provide a data transmission method to manage the data transmission between the first device and the second device.

[0059] In the related art, a transmission strategy between each first device and a second device is determined based on transmission constraints between different first devices, and the first device and the second device transmit interactive data separately according to the determined transmission strategy. In this transmission mode, as the number of first devices in the network increases, the number of transmission constraints that need to be referred to increases, and the complexity of determining the transmission strategy is high.

[0060] The present application embodiment provides a data transmission method for transmitting interactive data between a first device and a second device. Figure 1 , which shows a schematic diagram of the implementation environment of the data transmission method provided in the embodiment of the present application. The implementation environment includes a control device 01, a transmission device 02, a first device 03 and a second device 04. A communication connection can be established between the control device 01 and the transmission device 02 via a wired or wireless network, and a communication connection can also be established between the transmission device 02 and the first device 03 and the second device 04 via a wired or wireless network. Among them, the control device 01 is used to determine the sending strategy of the first group according to the data transmission method provided in the embodiment of the present application, and send the sending strategy of the first group to the transmission device 02 corresponding to the first group. The first group includes the first device 03 and the second device 04. The transmission device 02 is used to transmit the interactive data between the first device 03 and the second device 04 according to the sending strategy of the first group according to the data transmission method provided in the embodiment of the present application.

[0061] The embodiment of the present application does not limit the number of control devices 01, transmission devices 02, first devices 03 and second devices 04 included in the implementation environment, and may be Figure 1 The number shown may also be other quantity relations, for example, the number of first devices 01 connected to the transmission device 02 is 3, and the number of second devices 04 connected is 2. In addition, the control device 01 and the transmission device 02 may be Figure 1The independent devices shown may also be aggregated on the same device. For example, the functions of the control device 01 and the transmission device 02 are implemented by a network device, which may determine a sending strategy for the first group and send the interaction data of the first group according to the sending strategy for the first group.

[0062] Exemplarily, the control device 01 can be any network device with a data processing function, and the control device can be a server, such as a central server, an edge server, or a local server in a local data center. The server can be a physical server, or a cloud server that provides cloud computing services in a cloud scenario. In some embodiments, the control device 01 can also be a terminal device such as a desktop, a laptop, or a smart phone. The transmission device 02 can be any network device with a data transmission function, such as a switch, a router, and a gateway (GW). The first device 03 can be a device, or other network devices for interacting with applications, and the second device 04 can be a controller, or other network devices with device management functions.

[0063] The flowchart of the data transmission method provided in the embodiment of the present application is as follows Figure 2 As shown, including S201-S205.

[0064] S201, a control device obtains transmission constraints between each device group in a plurality of device groups, where a device group includes a plurality of first devices and a second device interacting with the plurality of first devices, and the transmission constraints are used to constrain transmission of interaction data corresponding to the plurality of device groups respectively.

[0065] Exemplarily, there is a master-slave relationship between the second device and the first device in the network. For example, when the second device is a controller in an industrial network and the first device is a device in the industrial network, when the controller is used to manage the operation of the device, such as managing the opening and closing of the valve switch of the device, or managing the device to collect real-time signals such as analog quantity or data volume, the controller and the managed device are in a master-slave relationship. Optionally, a second device can have a master-slave relationship with multiple first devices, and the master-slave relationship can be configured based on business needs during the network configuration process.

[0066] Since there is an interaction requirement between the first device and the second device in a master-slave relationship, for example Figure 3As shown, the second device needs to send control data to the first device to manage the operation of the first device. The first device also needs to return feedback data to the second device, which is data obtained after performing corresponding operations according to the received control data.

[0067] When a second device and multiple first devices have a master-slave relationship, although the multiple first devices are independent of each other, the control data received by the multiple first devices are all sent by the second device, or the feedback data sent by the multiple first devices are all sent to the second device, and the interactive data corresponding to the multiple first devices have overlapping second devices on the transmission path. Therefore, the control device can group the first devices and the second devices according to the master-slave relationship between the first devices and the second devices, thereby dividing the first devices and the second devices with a master-slave relationship into one device group, and controlling data transmission at the granularity of the slave device group.

[0068] In a possible implementation, there are transmission constraints between different device groups, and the transmission constraints are used to constrain the transmission of interactive data corresponding to the device groups. Optionally, the control device determines the transmission constraints between different device groups according to the transmission requirements of each device group and the network topology. For example, the transmission device corresponding to each device group is determined according to the transmission requirements of each device group and the network topology; the data transmission constraints included in the transmission constraints are determined according to the transmission devices corresponding to each device group, and the data transmission constraints indicate that the interactive data of different device groups have no competition relationship with the transmission resources of the transmission device during the transmission process, and the transmission resources include queue resources, link resources or transmission ports of the transmission device, etc.

[0069] The transmission device corresponding to the device group refers to a transmission device used to transmit the interactive data of the device group. Figure 4 A network topology diagram provided in an embodiment of the present application, Figure 4 8 first devices are shown, namely, first device 1, first device 2, first device 5, first device 6, first device 7 and first device 8 belonging to the first group, and first device 3 and first device 4 belonging to the second group. In the process of transmitting interactive data between the first device and the second device in the first group, based on the network topology, transmission device 1, transmission device 2, transmission device 3, transmission device 4 and transmission device 5 will receive the interactive data and forward the received interactive data. Therefore, transmission device 1, transmission device 2, transmission device 3, transmission device 4 and transmission device 5 are used to transmit the interactive data of the first group and belong to the transmission devices corresponding to the first group.

[0070] also, Figure 4The transmission device 3 is connected to the first device 3 and the first device 4 in the second group respectively, and during the interaction between the first device 3 and the first device 4 and the corresponding second device, the interaction data corresponding to the first device 3 and the first device 4 will be forwarded. Therefore, the transmission device 3 is used to transmit the interaction data of the second group and belongs to the transmission device corresponding to the second group.

[0071] After determining the transmission devices corresponding to each device group, the control device may determine the data transmission constraints of each device group according to the overlap between the transmission devices corresponding to each device group. Figure 4 For example, the transmission devices corresponding to the first group and the second group have overlapping transmission devices 3, and the data interaction of the first group and the second group needs to be forwarded by the overlapping transmission device 3, and the data interaction of the first group and the second group is realized based on the same transmission resources, for example, a link of the shared transmission device 3. Therefore, the time when the transmission device 3 transmits the interactive data of the first group and the interactive data of the second group needs to be separated to avoid competition for the transmission resources of the transmission device 3, and the control device thus determines the constraints of the first group and the second group on the transmission time to obtain the data transmission constraint. For example, in the case where the first group and the second group both need to transmit the interactive data within 10 minutes, the data transmission constraint between the first group and the second group is determined to be that the interactive data of the first group needs to be transmitted within the first 5 minutes, and the interactive data of the second group needs to be transmitted within the last 5 minutes, thereby separating the time when the transmission device 3 transmits the interactive data of the first group and the interactive data of the second group. In addition, the first group and the second group appearing in the embodiment of the present application are any two different device groups, and the first and the second are intended to distinguish different device groups in the process of exemplifying, rather than to limit the type of device group.

[0072] Exemplarily, the transmission constraint condition may also include at least one of a path dependency constraint, a simultaneous forwarding constraint, an end-to-end delay constraint, a cache occupancy constraint, and an application requirement constraint. The control device may determine the path dependency constraint, the simultaneous forwarding constraint, the end-to-end delay constraint, and the cache occupancy constraint according to the transmission requirements of each device group. The path dependency constraint indicates the forwarding restrictions of the physical properties of the transmission device on the transmission path, such as the buffer depth, storage space size, and technical delay, on the interactive data; the simultaneous forwarding constraint indicates that the interactive data corresponding to multiple first devices need to remain the same at the transmission device before the transmission separation occurs; the end-to-end delay constraint indicates that the transmission delay of the interactive data of the device group from the first device to the second device, or from the second device to the first device, needs to be less than the delay threshold; the cache occupancy constraint indicates that the cache amount of the interactive data of the device group during transmission needs to be less than the cache threshold. Among them, the delay threshold and the cache threshold can be values ​​of any size set based on experience and network topology.

[0073] Optionally, the control device may determine the application requirement constraints in each device group according to the application requirements corresponding to each device group. The application requirement constraints indicate the constraints of the application corresponding to the device group during the transmission process, such as requiring that the transmission overhead of the interactive data is not greater than the overhead threshold set based on experience. Afterwards, the control device obtains transmission constraints including path dependency constraints, simultaneous forwarding constraints, end-to-end delay constraints, cache occupancy constraints, data transmission conflict-free constraints, and application requirement constraints. Through the transmission constraints, transmission restrictions on various aspects such as the transmission time and transmission path of the interactive data of the first group are achieved.

[0074] S202: The control device determines a sending strategy for each device group according to the transmission constraint condition.

[0075] In a possible case, the control device arranges and determines the sending strategy of each device group according to the transmission constraint condition, so that there is no transmission conflict in the process of each device group sending the interactive data according to the sending strategy. Optionally, the sending strategy arranged by the control device includes at least one of the sending period, the start time and the polling period of the first group of interactive data sent by the transmission device. Among them, the sending period indicates the period for the transmission device to send the interactive data. During the sending period, the transmission device transmits the received interactive data of the first group. Outside the sending period, even if the transmission device receives the interactive data of the first group, it will suspend the transmission of the interactive data of the first group. The starting time indicates the time when the transmission device starts to send the interactive data. When the interactive data of the first group is transmitted separately, the starting time includes the time when each of the multiple interactive data is sent. When the interactive data of the first group is encapsulated in the first transmission frame for aggregate transmission, the starting time of the multiple interactive data is the same, which is the time when the transmission device starts to send the first transmission frame. Exemplarily, the first transmission frame belongs to a message whose format meets the channel transmission requirements, and the first transmission frame can be an Ethernet frame transmitted on the Ethernet channel.

[0076] Optionally, the polling period indicates how long the transmission device can transmit the interactive data of the first group. In one possible case, the polling period of the first group is a multiple of the sending period of the interactive data of the first group, wherein the sending period of the interactive data indicates how long the first device or the second device of the first group sends the interactive data. For a detailed description of setting the polling period to a multiple of the sending period, refer to the relevant description of the polling period in Example S205, which will not be repeated here.

[0077] The time for a transmission device to transmit the interactive data of a first group is limited according to the sending strategy. When a transmission device needs to transmit the interactive data of multiple device groups, the transmission device can transmit the interactive data of different device groups at different transmission times according to the sending strategies of different device groups, thereby avoiding transmission conflicts caused by multiple device groups enabling the same transmission device to transmit multiple interactive data.

[0078] In one possible case, in addition to determining the time when the transmission device sends the interactive data of each device group, the control device also assigns a group identifier to each device group to distinguish different device groups. The group identifier can be determined based on the completion time of each device group, and the completion time of the group indicates the time when the multiple first devices and second devices included in the device group are divided into the device group. Or the group identifier can be determined based on the number of devices included in each device group, or it can be set randomly. The group identifier is, for example, a cycle frame identity document (CFID), or other identifiers that can distinguish device groups. In addition, the sending strategy determined by the control device may also include a mark of whether to encapsulate the interactive data in the first transmission frame, and the frame length of the first transmission frame.

[0079] Optionally, after determining the sending strategy of each device group, the control device may determine a strategy mapping table according to the sending strategy of each device group, and the strategy mapping table includes a mapping relationship between the group identifier of each device group and the sending strategy. Table 1 is a strategy mapping table provided in an embodiment of the present application, which shows the mapping relationship between the sending strategy and the group identifier when the first transmission frame belongs to an aggregated cycle frame.

[0080] Table 1

[0081]

[0082] In Table 1, CFID is used as the group identifier of the device group, and send cycle frame is used to indicate whether the transmission device corresponding to the device group encapsulates the interactive data in the cycle frame for aggregate transmission. Y means that encapsulation is required, and N means that encapsulation is not required. Cycle start time indicates the moment when the transmission device corresponding to the device group starts to send interactive data. The sending moment can be the moment when the cycle frame encapsulating the interactive data is started to be sent, or it can be the moment when the separate interactive data is started to be sent. Cycle interval is used as the round-robin period of the first group, which indicates how long the transmission device corresponding to the device group sends the interactive data of the first group. When the interactive data needs to be encapsulated in the cycle frame, cycleinterval indicates how long the cycle frame is sent at each interval. When the interactive data does not need to be encapsulated in the cycle frame, cycleinterval indicates how long the interactive data of the first group is started to be sent at each interval. Cycle len includes at least one of the frame length of the cycle frame and the sending period. When the interactive data needs to be encapsulated in the cycle frame, cycle len indicates the frame length of the cycle frame. The frame length of the cycle frame needs to be sufficient to transmit multiple interactive data within one cycle in the device group. When there is no need to encapsulate the interactive data in a cycle frame, the cycle len indicates a sending period during which the transmission device transmits the interactive data of the first packet.

[0083] Figure 5 A schematic diagram of the transmission of interactive data provided in the embodiment of the present application is shown below. Figure 5 Explain the meaning of each parameter in Table 1. Figure 5 The rectangle in the figure represents the interactive data. When the interactive data is encapsulated in a cycle frame, the frame length of the cycle frame is Figure 5 The transmission device transmits the cycle frame encapsulating the interactive data at the start of the cycle, and continues to transmit the interactive data of the first packet at each cycle interval. When the interactive data is not encapsulated in the cycle frame, the transmission device starts to transmit the interactive data at the start of the cycle, and the transmission period of the first packet of interactive data is Figure 5 The cycle length in the transmission period, after the transmission period ends, the transmission device can continue to transmit the interactive data of the first group at an interval of the cycle time.

[0084] S203: The control device sends a sending policy of a first group among the multiple device groups to a transmission device, and the transmission device is used to transmit the interactive data of the first group according to the received sending policy.

[0085] In one possible case, a communication connection is established between the control device and the transmission device. After determining the sending strategy of each device group, the control device can send the sending strategy of each device group to the corresponding transmission device. Taking any device group as the first group as an example, the control device can send the sending strategy of the first device to the transmission device corresponding to the first group, so that the transmission device corresponding to the first group transmits the interactive data of the first group according to the sending strategy.

[0086] Optionally, the control device may choose to send the sending policy of the first group to the transmission device corresponding to the first group, or may choose to send the sending policies of multiple device groups to the transmission device corresponding to the first group, and the transmission device searches for the sending policy of the first group in the received multiple sending policies. Exemplarily, based on the situation in S202 where the control device arranges the sending policies in a policy mapping table, the control device may send the policy mapping table to the transmission device to send the sending policy of the first group to the transmission device.

[0087] S204, the transmission device obtains the sending strategy of the first group, the first group is the device group corresponding to the transmission device, one device group includes multiple first devices and second devices interacting with the multiple first devices, the sending strategy of the first group is determined according to the transmission constraints of the first group and the second group, the second group and the first group are different device groups, and the transmission constraints are used to constrain the transmission of the interactive data corresponding to the first group and the second group respectively.

[0088] For the first case where the control device sends a sending policy for the first packet to the transmission device, the transmission device obtains the sending policy for the first packet by receiving the sending policy for the first packet. For the second case where the control device sends multiple sending policies to the transmission device, the transmission device needs to find the sending policy for the first packet from the multiple sending policies. Exemplarily, the transmission device obtains a first identifier of the first packet, wherein the first identifier is a packet identifier assigned to the first packet by the control device; and obtains the sending policy for the first packet according to the first identifier.

[0089] Optionally, the transmission device receives a group identifier directly sent by the control device. For example, after determining the device group, the control device sends the group identifier of the first group corresponding to the transmission device to the transmission device, and the transmission device receives the group identifier sent by the control device as the first identifier of the corresponding first group. Alternatively, in the case where there is a corresponding relationship between the first device and the second device and the group identifier, the transmission device determines the device identifiers of the first device and the second device that need to transmit interactive data according to the network topology structure, searches for the corresponding relationship between the device identifier and the group identifier according to the device identifier of the first device and the second device, and determines the group identifier of the first group. Optionally, the device identifier can be a media access control (MAC) address or an Internet protocol (IP) address, etc.

[0090] Table 2 is an information structure table of a device grouping provided in an embodiment of the present application, which shows the correspondence between the device identifier and the group identifier.

[0091] Table 2

[0092] First Equipment Second device Priority Ether type CFID First device A Second device A 7 0x88xx CFID-1 First device B Second device A 7 0x88xx CFID-1 First device C Second device B 7 0x88xx CFID-2

[0093] Among them, the first device A, the first device B and the first device C included in Table 2 represent the device identification of the first device. The second device A and the second device B represent the device identification of the second device. The priority is used to indicate the transmission priority of the interactive data between the first device and the second device, the ether type is used to identify the type of the interactive data, and the CFID indicates the device group corresponding to the first device and the second device. Referring to Table 2, taking the first group including the first device A, the first device B and the second device A as an example, the transmission device determines that the first identification of the first group is CEID-1 according to the device identification of the first device A and the second device A.

[0094] Regardless of the method by which the transmission device obtains the first identifier of the first group, the sending strategy can be determined according to the first identifier. Exemplarily, the transmission device obtains the sending strategy of the first group according to the first identifier, including: obtaining a policy mapping table, the policy mapping table including the mapping relationship between the group identifiers and the sending strategies of each device group; searching the policy mapping table for the group identifier that matches the first identifier, and determining the sending strategy corresponding to the matching group identifier as the sending strategy of the first group. When the group identifier in the policy mapping table is the same as the first identifier, it is determined that the group identifier successfully matches the first identifier, and based on the mapping relationship between the group identifier and the sending strategy, the sending strategy of the first group is found.

[0095] S205: The transmission device transmits the interaction data of the first group according to the sending strategy of the first group.

[0096] The embodiment of the present application does not limit the transmission direction of the interactive data transmitted by the transmission device. It can be sent from the second device to the first device, that is, controller to device (C2D), or from the first device to the second device, that is, device to controller (D2C). For the description of interactive data in different transmission directions, please refer to the detailed description of interactive data in transmission direction one and transmission direction two, which will not be repeated here.

[0097] In one possible case, since the transmission device may correspond to multiple device groups, the transmission device will receive the interaction data of multiple device groups. Figure 4 As shown, the transmission device 3 will receive the interactive data of the first group corresponding to the first device 1, and will also receive the interactive data of the second group corresponding to the first device 3. However, there are differences in the interactive data transmitted by the transmission device at different times. For example, the transmission device 3 is used to transmit the interactive data of the first group in the first time period, and is used to transmit the interactive data of the second group in the second time period. Therefore, after receiving multiple interactive data in the first time period, the transmission device will first detect whether the multiple interactive data are interactive data of the first group. And when the multiple interactive data are interactive data of the first group, the received interactive data is transmitted according to the sending strategy of the first group.

[0098] Optionally, the interaction data carries a port identifier, which indicates a source port and a destination port of the interaction data. The transmission device parses the received interaction data, and when the source port of the interaction data is the second device included in the first group, and the destination port is the second device included in the first group, it is determined that the interaction data belongs to the interaction data of the first group. Among them, the destination port corresponds to the first device, and the source port corresponds to the second device. This is a corresponding relationship when the interaction data is sent from the second device to the first device. In other cases, the destination port may also correspond to the second device, and the source port may also correspond to the first device, which is not limited in the embodiments of the present application.

[0099] After determining that the received interactive data belongs to the interactive data of the first group, the transmission device may transmit the interactive data of the first group according to the sending strategy of the first group. In one possible case, the sending strategy includes at least one of a sending time period, a start time, and a polling period of the first group for the transmission device to send the interactive data of the first group. Based on the indication of the sending strategy of the first group that the interactive data does not need to be encapsulated in the first transmission frame, the transmission device transmits the received interactive data in the sending time period included in the sending strategy. In one possible case, based on the fact that the transmission of the interactive data of the first group is not completed within the sending time period, the transmission device will store the interactive data of the first group that has not been transmitted in the storage space, and after an interval of a polling period, continue to transmit the interactive data in the storage space.

[0100] Optionally, in addition to transmitting multiple interactive data separately, the transmission device may also choose to aggregate multiple interactive data in the first transmission frame for transmission. In this case, the transmission device may periodically transmit the first transmission frame according to the round-robin period and start time indicated in the sending strategy. The transmission direction of the first transmission frame may be from the transmission device to the second device, or from the transmission device to the first device. When the transmission device does not receive the interactive data, the field used to carry the interactive data in the first transmission frame is filled with padding so that the frame structure of the first transmission frame meets the transmission conditions and can be transmitted normally.

[0101] By periodically sending the first transmission frame, the channel connectivity between the first device, the transmission device, and the second device can be effectively detected, so that when interactive data needs to be transmitted, the first transmission frame carrying the interactive data can be directly transmitted based on the connected channel. In addition, periodically sending the first transmission frame can achieve regular transmission of the first transmission frame. Compared with randomly sending the first transmission frame based on the transmission requirements of the interactive data, different device groups send the first transmission frame based on regular transmission times, which can avoid transmission conflicts between different device groups in the transmission of interactive data, such as transmission device conflicts or transmission channel conflicts.

[0102] In one possible case, since the frame header of the first transmission frame carries the first identifier of the first group corresponding to the first transmission frame, the transmission device can also determine the corresponding group identifier according to the port identifier of the interaction data during the process of identifying the interaction data of the first group, and determine whether the interaction data belongs to the interaction data of the first group according to the matching of the group identifier corresponding to the interaction data and the first identifier included in the first transmission frame. Based on the fact that the interaction data belongs to the interaction data of the first group and the interaction data needs to be encapsulated in the first transmission frame, the transmission device encapsulates the received multiple interaction data in the first transmission frame, and transmits the first transmission frame according to the sending strategy of the first group. One interaction data is the data of interaction between the first device and the second device in the first group.

[0103] Since there are differences in the ways in which the transmission device transmits interactive data in different transmission directions, the following takes two transmission directions as an example to illustrate the process of the transmission device transmitting interactive data respectively.

[0104] Transmission direction 1: Interaction data is control data sent from the second device to the first device.

[0105] For transmission direction one, the interactive data received by the transmission device includes control data sent from the second device to the first device, and the control data is used to manage the device operation of the first device. The control data can be data for managing data collection of the first device, or data for managing the valve switch of the first device. Optionally, the multiple interactive data received by the transmission device correspond to multiple first devices. Based on the differences in connection methods between the transmission device and the multiple first devices, including directly connected first devices and indirectly connected first devices, the transmission device also has differences in the encapsulation process of the interactive data corresponding to the first devices with different connection methods.

[0106] Encapsulation method 1: when the first transmission frame includes a first reference frame, first data is extracted from multiple interaction data, the multiple interaction data correspond to multiple first devices, and the first data is interaction data corresponding to the first device directly connected to the transmission device; the first data is encapsulated in the first reference frame.

[0107] Figure 6 A data transmission schematic diagram provided in an embodiment of the present application, Figure 6 C represents the second device, and D represents the first device. Figure 6 The connection relationship between the first device, the second device and the transmission device can be found in Figure 4 The connection relationship between the first device, the second device and the transmission device. Figure 6 Taking the transmission device 2 as an example of a transmission device for executing the data transmission method of an embodiment of the present application, the transmission device 2 is connected to two first devices, namely the first device D1 and the first device D2, and the first devices D5, D6, D7 and D8 are first devices indirectly connected to the transmission device 2. Figure 6 In the example, the multiple interactive data received by the transmission device 2 are SF1, SF2, SF5, SF6, SF7 and SF8. The numbers in the interactive data are used to indicate the corresponding first device. For example, the interactive data sent by the second device to the first device D1 is SF1, and the interactive data sent by the second device to the first device D2 is SF2.

[0108] Depending on the first device to which the interactive data needs to be transmitted, the interactive data received by the transmission device can be divided into two types of data: first data and second data. The first data is the interactive data corresponding to the first device directly connected to the transmission device. In the case where the transmission device is transmission device 2, and the first devices connected to transmission device 2 are D1 and D2, then Figure 6 Among the multiple interactive data received by the transmission device 2, SF1 and SF2 belong to the first data. Corresponding to the meaning of the first data, the second data refers to the interactive data between the first device and the second device indirectly connected to the transmission device. Continuing to take the transmission device as the transmission device 2 as an example, the second data are SF5, SF6, SF7 and SF8.

[0109] In one possible case, the port identifier carried in the interaction data can indicate the first device corresponding to the interaction data. The transmission device determines the first device corresponding to the interaction data according to the port identifier carried in the interaction data. When the first device corresponding to the interaction data is the first device directly connected to the transmission device, the interaction data is determined to be the first data. Afterwards, the transmission device extracts the first data from the multiple interaction data and encapsulates it into the first reference frame. The encapsulation position can be Figure 7 The subframes are shown encapsulated in the frame data portion of the first reference frame. Figure 7 In the example, since the second device sends control data to multiple first devices by broadcasting, the destination MAC address of the first reference frame can be replaced by the CFID, and the multiple first devices included in the first packet are determined by the CFID, and the control data is broadcasted to each of the multiple first devices. In addition, when the transmission device encapsulates the first data as a subframe into the first reference frame, it can remove the frame header of the first data and select part of the data included in the first data for encapsulation, for example Figure 7 As shown, the subframe includes multiple fields such as a subframe header (head), subframe data (data) and a check byte, and the subframe header includes multiple fields such as a command prompt (CMD), an address (address) and a length (length, len). By removing the frame header of the interactive data, the data size carried in the first reference frame is reduced, thereby improving the transmission efficiency.

[0110] Optionally, the first reference frame used to encapsulate the interactive data may be Figure 7 The data structure shown can also be other data structures. For example Figure 8 As shown, Figure 8 It shows that when the first reference frame belongs to a virtual cycle frame, the interactive data is encapsulated based on the virtual cycle frame of MAC in MAC. Figure 8 In the process of encapsulating the interactive data into the first reference frame, the Ethernet frame header of the original interactive data is retained, and there is no need to change the format of the interactive data, which simplifies the steps required to encapsulate the interactive data, and the encapsulation process is simple. In this encapsulation method, the first reference frame includes multiple frame headers such as a virtual cycle frame header and an original Ethernet frame header. The multiple frame headers carry the source MAC address and the destination MAC address of the interactive data, and the transmission device can encapsulate the first data in the frame body of the virtual cycle frame. In addition, when encapsulating the interactive data in the first reference frame, what is changed is the data content carried in the first reference frame, and the message structure and frame length of the first reference frame are not changed. Therefore, the first reference frame can be transmitted normally in the network.

[0111] After encapsulating the first data into the first reference frame, the transmission device sends the first reference frame to the connected first device according to the sending strategy. For example, the sending time of the first reference frame is determined according to the start time and the sending period in the sending strategy, and the first reference frame is sent to the connected first device at the sending time. Figure 6 Taking an example to illustrate, since SF1 and SF2 correspond to different first devices, the transmission device encapsulates SF1 and SF2 into different first reference frames to obtain EF1 and EF2, transmits the first reference frame EF1 to the first device D1, and transmits another first reference frame EF2 to the first device D2.

[0112] Encapsulation method 2: when the first transmission frame includes a second reference frame, extract second data from multiple interactive data, the second data being interactive data corresponding to the first device to which the transmission device is indirectly connected; and encapsulate the second data in the second reference frame.

[0113] In some cases, the plurality of interactive data includes the second data. The process of the transmission device extracting the second data from the plurality of interactive data is similar to the process of extracting the first data, and the process of encapsulating the second data in the second reference frame is similar to the process of encapsulating the first data in the first reference frame, and the relevant description in the encapsulation method 1 may be referred to, which will not be repeated here.

[0114] After encapsulating the second data in the second reference frame, the transmission device may send the second reference frame to the downstream device according to the transmission strategy, and the downstream device is used to send the second data included in the second reference frame to the first device corresponding to the second data. The downstream device also belongs to the transmission device, for example Figure 6 As shown, when the transmission device executing the data transmission method is transmission device 2, the downstream device is transmission device 3, and transmission device 3 is used to send the received second data to transmission device 4 and transmission device 5 respectively, so as to encapsulate the second data SF5 in EF5 and send it to the first device D5 through transmission device 4, encapsulate the second data SF6 in EF6 and send it to the first device D6, encapsulate the second data SF7 in EF7 and send it to the first device D7 through transmission device 5, and encapsulate the second data SF8 in EF8 and send it to the first device D8.

[0115] By encapsulating multiple second data in one second reference frame, the aggregate transmission of multiple second data is realized, the invalid load in the second reference frame is compressed, the transmission channels required for transmitting multiple second data are effectively reduced, and the transmission efficiency of multiple second data is improved. Moreover, the transmission of multiple second data can be completed by transmitting one second reference frame in the first group, realizing low-latency transmission of the second data.

[0116] Optionally, when encapsulating multiple second data in the second reference frame, the transmission device may encapsulate them according to the distance from the first device. The farther the first device is from the transmission device, the earlier the second data corresponding to the first device is encapsulated in the second reference frame. Figure 6 As shown, the second data SF8 of the first device D8 farthest from the transmission device 2 is encapsulated at the front position of the second reference frame. Since the farther the first device is, the longer the transmission time is, the second data corresponding to the first device is encapsulated in the front, which reduces the time to read the second data from the second reference frame, thereby reducing the transmission delay of the first device.

[0117] In a possible case, when encapsulating multiple second data into the second reference frame, the transmission device may also fill the position in the second reference frame that does not carry the interactive data, so that the frame length of the second reference frame meets the transmission requirements. Figure 6 In the embodiment, the transmission device 2 fills the encapsulation positions corresponding to the first data SF1 and SF2 in the second reference frame.

[0118] The transmission device may select at least one of encapsulation mode 1 and encapsulation mode 2 to encapsulate the interaction data into the first transmission frame according to the data included in the multiple interaction data. The multiple interaction data may only include the first data. For example, the transmission device executing the data transmission method is Figure 6 The transmission device 4 receives multiple interactive data sent by the transmission device 3. The first devices corresponding to the multiple interactive data are the first device D5 and the first device D6, both of which are first devices directly connected to the transmission device 4. Therefore, the interactive data SF4 and SF5 belong to the first data.

[0119] The plurality of interaction data may also include only the second data, for example, the transmission device is Figure 6 In the transmission device 1, the transmission device 1 receives multiple interactive data sent by the second device. The transmission device 1 is not directly connected to the first device. The received interactive data all belong to the second data, and the multiple second data are encapsulated into the second reference frame. Optionally, the multiple interactive data may also include the first data and the second data, such as the transmission device 2 illustrated in the above encapsulation method one and encapsulation method two. In the case where the interactive data includes the first data and the second data, the second reference frame encapsulating the second data and the first reference frame encapsulating the first data of the transmission device are different first transmission frames. Therefore, the transmission device can send the first reference frame to the directly connected first device and the second reference frame to the downstream device, respectively.

[0120] Transmission direction two: the received interaction data is interaction data sent from the first device to the second device.

[0121] In the second transmission direction, the interactive data includes feedback data sent by the first device to the second device, and the feedback data indicates the operation result of the first device after the operation based on the received control data. Taking the control data as the opening and closing of the valve switch used to manage the device in the above example as an example, the feedback data returned by the first device is the execution result of the valve switch. Taking the control data as the data collection used to manage the device in the above example as an example, the feedback data returned by the first device is the real-time signal collected.

[0122] Optionally, the first device may send feedback data synchronously with the second device sending control data. For example, in a full-duplex application scenario, while the second device is sending control data of the current cycle to the first device, the first device is also sending feedback data corresponding to the control data of the previous cycle of the current cycle to the second device. The first device may also send feedback data asynchronously with the second device sending control data. For example, in a half-duplex application scenario, after receiving the control data of the current cycle sent by the second device, the first device returns the feedback data corresponding to the current cycle.

[0123] Regardless of the situation in which the first device sends feedback data to the second device, the transmission device will receive the feedback data sent by the first device. The embodiment of the present application does not limit the way in which the transmission device receives feedback data. When the transmission device is directly connected to the first device, the transmission device receives feedback data sent by the directly connected first device.

[0124] Fig. 9 Another schematic diagram of transmission of interactive data provided in an embodiment of the present application is shown in FIG. Fig. 9 Taking the transmission device 2 in the example as a transmission device for executing the data transmission method provided in the embodiment of the present application, the transmission device 2 is directly connected to the first device D1 and the first device D2. Based on the connection relationship, when the first device D1 and the first device D2 need to send feedback data to the second device C, the first device D1 and the first device D2 will respectively send the feedback data to be transmitted to the transmission device 2, and the transmission device 2 thereby receives the feedback data EF1 and EF2 sent by the first device D1 and the first device D2.

[0125] Optionally, when there is an upstream device in the transmission device, the transmission device receives a second transmission frame sent by the upstream device, the second transmission frame includes multiple feedback data received by the upstream device; extracts the feedback data included in the second transmission frame to obtain feedback data sent by the first device to the second device.

[0126] Fig. 9The transmission device 2 is also connected to the transmission device 3. In the transmission direction 2, the feedback data sent by the transmission device 3 to the second device needs to be forwarded by the transmission device 2. Therefore, the transmission device 3 belongs to the upstream device of the transmission device 2. The transmission device 3 receives multiple feedback data, including the feedback data EF5 of the first device D5 and the feedback data EF6 of the first device D6 sent by the transmission device 4, and the feedback data EF7 of the first device D7 and the feedback data EF8 of the first device 8 sent by the transmission device 5. The transmission device 3 encapsulates the received multiple feedback data in the second transmission frame and sends the second transmission frame to the transmission device 2. After receiving the second transmission frame, the transmission device 2 parses the second transmission frame and extracts the feedback data included in the second transmission frame.

[0127] The embodiment of the present application does not limit the number of upstream devices of the transmission device, which can be one of the above examples or multiple. Fig. 9 Taking the transmission device 3 in the example, the transmission device 3 is connected to two upstream devices, namely the transmission device 4 and the transmission device 5. The transmission device 3 receives the second transmission frame carrying feedback data SF5 and SF6 sent by the transmission device 4, receives the second transmission frame carrying feedback data SF7 and SF8 sent by the transmission device 5, parses the two received second transmission frames, and encapsulates the multiple feedback data carried in the two second transmission frames into a first transmission frame, thereby obtaining Fig. 9 The first transmission frame includes feedback data SF5, SF6, SF7 and SF8.

[0128] The transmission device can receive feedback data directly sent by the first device and at least one of the second transmission frames sent by the upstream device according to the connected device, and encapsulate the received feedback data in a first transmission frame. Although the devices sending feedback data to the transmission device can be different, multiple feedback data need to be sent to the second device. Therefore, the transmission path of the multiple feedback data received by the transmission device is from the transmission device to the second device. The transmission device can encapsulate the multiple feedback data received in a first transmission frame. The frame header of the first transmission frame includes a source MAC address, a destination MAC address, and an Ethernet type. Similar to the principle of replacing the destination MAC address with CFID in transmission direction one, in transmission direction two, the source MAC address of the first transmission frame can be replaced by CFID.

[0129] Optionally, the transmission device may encapsulate the received multiple feedback data into the first transmission frame in real time, or may cache them into a buffer first, then read the feedback data in the buffer, and encapsulate the feedback data into the first transmission frame. For example, when multiple ports of the transmission device receive multiple feedback data at the same time, based on the fact that the multiple feedback data have not reached the sending time, the multiple feedback data are cached in the buffer, and after receiving the remaining feedback data corresponding to the first packet, the remaining feedback data and the feedback data in the buffer are encapsulated together in the first transmission frame. Taking transmission device 2 as an example, after receiving the feedback data sent by the first device D1 and the first device D2 at the same time, the received feedback data is cached in the buffer, and after receiving the second transmission frame sent by transmission device 3, the feedback data included in the second transmission frame and the feedback data cached in the buffer are encapsulated in the first transmission frame.

[0130] Similar to the case of encapsulation mode 2, when the transmission device encapsulates multiple feedback data into the first transmission frame, it also fills the position in the first transmission frame that does not carry feedback data, for example Fig. 9 The first transmission frame encapsulated by the transmission device 3 in the transmission frame. The position without the feedback data can be as follows: Fig. 9 The front end or the back end of the first transmission frame is shown, and it can also be the middle position of the first transmission frame. The embodiment of the present application does not limit this. By filling, the frame length of the first transmission frame meets the transmission conditions, and the transmission device can send the first transmission frame to the connected next-hop transmission device, thereby realizing the aggregate transmission of multiple feedback data and improving the transmission efficiency of multiple feedback data.

[0131] In a possible implementation, after the transmission device transmits the first transmission frame, the egress device directly connected to the second device receives the first transmission frame. When the packet identifier carried by the first transmission frame matches the first identifier of the first packet, the egress device extracts the multiple feedback data from the first transmission frame, repackages them into independent frames, and sends them to the second device separately. Fig. 9 In the example, the export device 1 directly connected to the second device C receives the first transmission frame sent by the transmission device 2, decapsulates the 6 feedback data carried in the first transmission frame, re-capsulates them into independent frames EF1, EF2, EF5, EF6, EF7 and EF8, and sends the above 6 independent frames to the second device. By decapsulating and re-capsulating, multiple feedback data are encapsulated into a data structure that can be recognized by the second device, so as to avoid the second device directly receiving the first transmission frame and being unable to recognize the first transmission frame, thereby causing data transmission failure, and ensuring transmission reliability.

[0132] The transmission device can select any data transmission method in transmission direction 1 or transmission direction 2 according to the transmission direction of the received interactive data. Optionally, the transmission device can choose to encapsulate the complete interactive data in the first transmission frame and forward it after receiving the complete interactive data. It can also adopt the direct forwarding method, after determining the MAC address of the destination port of the interactive data, immediately encapsulate the received part of the interactive data in the first transmission frame and forward it, and then perform encapsulation and forwarding again every time a byte of interactive data is received.

[0133] In addition, regardless of whether the interactive data is encapsulated in the first transmission frame for transmission, the transmission device can determine the sending time of the interactive data according to the sending strategy. Since the sending time of the interactive data transmitted by the transmission device is a fixed value determined according to the sending strategy, that is, after the transmission device receives the interactive data and encapsulates the interactive data, it needs to wait until the sending time of the interactive data to transmit the interactive data of the first group. Therefore, the polling period of the first group can be set to a multiple of the sending period of the interactive data, and the multiple is determined according to the number of device groups corresponding to the transmission device. When the transmission device corresponds to one device group, that is, the first group, the polling period of the first group is equal to the sending period of the interactive data. By setting the sending period of the interactive data and the polling period of the first group to the same value, the sending time of the interactive data sent by the first device or the second device and the sending time of the interactive data sent by the transmission device are kept consistent. After receiving the interactive data, the transmission device can immediately transmit the interactive data without waiting, thereby reducing Figure 3 For example, the transmission delay is reduced to the point where the second device receives the feedback data of each first device without gaps, and each first device receives the control data of the second device at the same time.

[0134] When the transmission device corresponds to multiple device groups, for example, including the first group and the second group, the polling period of the first group is equal to twice the sending period of the interactive data of the first group. By setting the multiple relationship, the moment when the transmission device sends the interactive data can coincide with the sending moment of the interactive data of the first group at a certain moment, and the transmission device can transmit the interactive data of other device groups at the time when the sending moment of the interactive data of other device groups coincides. This ensures that the interactive data of multiple device groups at a certain moment can be directly transmitted without waiting, thereby reducing the transmission delay of each device group.

[0135] In summary, the data transmission method provided in the embodiment of the present application controls the device to arrange and determine the sending strategy according to the transmission constraints between different device groups. Compared with the related art in which the sending strategy is arranged according to the transmission constraints between devices, there are fewer constraints to be considered in the arrangement process, and the arrangement scale is reduced from the device level to the group level. The arrangement complexity is low, and business flexibility is achieved. In the process of transmitting interactive data, the interactive data of multiple first devices and second devices can be encapsulated in a first transmission frame and transmitted together. Different interactive data occupy the same transmission channel, which increases the number of first devices and second devices that can complete the interaction within a certain period of time, and the transmission efficiency is high.

[0136] The above describes the data transmission method of the embodiment of the present application. Corresponding to the above method, the embodiment of the present application also provides a data transmission device. Fig.10 Schematic diagram of a data transmission device provided in an embodiment of the present application. Fig.10 As shown in the following multiple modules, the Fig.10 The data transmission device shown can perform the above Figure 2 It should be understood that the device may include more additional modules than the modules shown or omit some of the modules shown, and the embodiments of the present application are not limited to this. Fig.10 As shown, the device is applied to a transmission device, and the device includes:

[0137] An acquisition module 901 is used to acquire a sending strategy of a first group, where the first group is a device group corresponding to a transmission device, and one device group includes a plurality of first devices and a second device interacting with the plurality of first devices. The sending strategy of the first group is determined according to transmission constraints of the first group and the second group, where the second group and the first group are different device groups, and the transmission constraints are used to constrain transmission of interaction data corresponding to the first group and the second group respectively.

[0138] The transmission module 902 is used to transmit the interaction data of the first group according to the sending strategy of the first group.

[0139] In a possible implementation, the acquisition module 901 is configured to acquire a first identifier of a first group, where the first identifier is a group identifier of the first group; and acquire a sending strategy for the first group according to the first identifier.

[0140] In one possible implementation, the acquisition module 901 is used to obtain a policy mapping table, which includes a mapping relationship between the group identifier of each device group and the sending policy; search the policy mapping table for a group identifier that matches the first identifier, and determine the sending policy corresponding to the matching group identifier as the sending policy of the first group.

[0141] In a possible implementation, the transmission module 902 is used to encapsulate multiple received interaction data in a first transmission frame, and transmit the first transmission frame according to the sending strategy of the first group. An interaction data is data of interaction between a first device and a second device in the first group.

[0142] In one possible implementation, the interaction data includes control data sent from the second device to the first device, the control data is used to manage the device operation of the first device, and the first transmission frame includes a first reference frame; the transmission module 902 is used to extract the first data from multiple interaction data, the multiple interaction data correspond to multiple first devices, and the first data is the interaction data corresponding to the first device directly connected to the transmission device; the first data is encapsulated in the first reference frame.

[0143] In one possible implementation, the interaction data includes control data sent from the second device to the first device, the control data is used to manage the device operation of the first device, and the first transmission frame includes a second reference frame; the transmission module 902 is used to extract second data from multiple interaction data, the second data is the interaction data corresponding to the first device to which the transmission device is indirectly connected; and the second data is encapsulated in the second reference frame.

[0144] In one possible implementation, the interaction data includes feedback data sent from the first device to the second device, and the feedback data indicates the operation result of the first device after running based on the received control data; the transmission module 902 is also used to receive a second transmission frame sent by the upstream device, and the second transmission frame includes multiple feedback data received by the upstream device; extract the feedback data included in the second transmission frame to obtain the feedback data sent from the first device to the second device.

[0145] In a possible implementation, the sending strategy includes at least one of a sending period, a start time, and a polling period of the first packet of interactive data sent by the transmission device.

[0146] In a possible implementation manner, the polling period of the first group is a multiple of a sending period of the interactive data of the first group.

[0147] The sending strategy of the above-mentioned device is determined based on the transmission constraints between different device groups. There are fewer constraints to be considered in the arrangement process, and the arrangement complexity is low. The sending strategy is determined with reference to the transmission constraints between the device groups. Transmitting the interaction data of the first group according to the sending strategy can reduce the conflicts that occur during the transmission of the interaction data of different device groups, and the transmission reliability is high.

[0148] The embodiment of the present application also provides a data transmission device. Fig.11 Schematic diagram of a data transmission device provided in an embodiment of the present application. Fig.11As shown in the following multiple modules, the Fig.11 The data transmission device shown can perform the above Figure 2 It should be understood that the device may include more additional modules than the modules shown or omit some of the modules shown, and the embodiments of the present application are not limited to this. Fig.11 As shown, the device is applied to a control device, and the device comprises:

[0149] An acquisition module 1001 is used to acquire transmission constraints between each device group in a plurality of device groups, where one device group includes a plurality of first devices and a second device interacting with the plurality of first devices, and the transmission constraints are used to constrain transmission of interaction data corresponding to each of the plurality of device groups;

[0150] A determination module 1002, configured to determine a transmission strategy for each device group according to a transmission constraint condition;

[0151] The sending module 1003 is used to send the sending policy of the first group among the multiple device groups to the transmission device, and the transmission device is used to transmit the interactive data of the first group according to the received sending policy.

[0152] In a possible implementation, the determination module 1002 is further configured to determine a policy mapping table according to the sending policies of each device group, where the policy mapping table includes a mapping relationship between the group identifier of each device group and the sending policy.

[0153] In a possible implementation, the sending module 1003 is configured to send a policy mapping table to a transmission device.

[0154] In a possible implementation, the sending strategy includes at least one of a sending period, a start time, and a polling period of the first packet of interactive data sent by the transmission device.

[0155] In a possible implementation manner, the polling period of the first group is a multiple of a sending period of the interactive data of the first group.

[0156] The above-mentioned device arranges and determines the sending strategy according to the transmission constraints between different device groups. There are fewer constraints to be considered during the arrangement process, the arrangement scale is reduced to the device group granularity, and the arrangement complexity is low.

[0157] It should be understood that the above Fig.10 or Fig.11When the device provided realizes its functions, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0158] See also Fig.12 , Fig.12 A schematic diagram of the structure of a network device 1100 provided by an exemplary embodiment of the present application is shown. Fig.12 The network device 1100 shown is used to perform the above Figure 2 The operations involved in the data transmission method shown. The network device 1100 is, for example, a switch, a router, etc. The network device 1100 can be implemented by a general bus architecture.

[0159] like Fig.12 As shown, the network device 1100 includes at least one processor 1101 , a memory 1103 , and at least one communication interface 1104 .

[0160] Processor 1101 is, for example, a general-purpose central processing unit (CPU), a digital signal processor (DSP), a network processor (NP), a graphics processing unit (GPU), a neural-network processing units (NPU), a data processing unit (DPU), a microprocessor, or one or more integrated circuits for implementing the solution of the present application. For example, processor 1101 includes an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. PLD is, for example, a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof. It can implement or execute various logic blocks, modules, and circuits described in conjunction with the disclosure of the embodiments of the present application. The processor can also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0161] Optionally, the network device 1100 further includes a bus. The bus is used to transmit information between the components of the network device 1100. The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.12 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0162] The memory 1103 is, for example, a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, or a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 1103 is, for example, independent and connected to the processor 1101 via a bus. The memory 1103 can also be integrated with the processor 1101.

[0163] The communication interface 1104 uses any transceiver-like device for communicating with other devices or communication networks, and the communication network can be Ethernet, a radio access network (RAN) or a wireless local area network (WLAN), etc. The communication interface 1104 may include a wired communication interface and may also include a wireless communication interface. Specifically, the communication interface 1104 may be an Ethernet interface, a fast Ethernet (FE) interface, a gigabit Ethernet (GE) interface, an asynchronous transfer mode (ATM) interface, a wireless local area network (WLAN) interface, a cellular network communication interface or a combination thereof. The Ethernet interface may be an optical interface, an electrical interface or a combination thereof. In an embodiment of the present application, the communication interface 1104 may be used for the network device 1100 to communicate with other devices.

[0164] In a specific implementation, as an embodiment, the processor 1101 may include one or more CPUs, such as Fig.12 0 and CPU1 shown in FIG. Each of these processors may be a single-CPU processor or a multi-CPU processor. A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0165] In a specific implementation, as an embodiment, the network device 1100 may include multiple processors, such as Fig.12 1 and 1105. Each of these processors may be a single-CPU or a multi-CPU. A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).

[0166] In a specific implementation, as an embodiment, the network device 1100 may also include an output device and an input device. The output device communicates with the processor 1101 and can display information in a variety of ways. For example, the output device may be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. The input device communicates with the processor 1101 and can receive user input in a variety of ways. For example, the input device may be a mouse, a keyboard, a touch screen device, or a sensor device.

[0167] In some embodiments, the memory 1103 is used to store the program code 1110 for executing the solution of the present application, and the processor 1101 can execute the program code 1110 stored in the memory 1103. That is, the network device 1100 can implement the data transmission method provided by the method embodiment through the processor 1101 and the program code 1110 in the memory 1103. The program code 1110 may include one or more software modules. Optionally, the processor 1101 itself may also store the program code or instruction for executing the solution of the present application.

[0168] In a specific embodiment, the network device 1100 of the embodiment of the present application may correspond to the computing device in the above-mentioned various method embodiments.

[0169] in, Figure 2 Each step of the data transmission method shown is completed by an integrated logic circuit of hardware or software instructions in the processor of the network device 1100. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor, or a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory, and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.

[0170] Fig.13 It is a structural diagram of another network device provided in an embodiment of the present application. The network device is, for example, a server. The server may have relatively large differences due to different configurations or performances. It may include one or more processors 1201 and one or more memories 1202, wherein at least one computer program is stored in the one or more memories 1202, and the at least one computer program is loaded and executed by the one or more processors 1201, so that the server implements the data transmission method provided in the above-mentioned various method embodiments. The processor 1201 is, for example, a central processing unit (CPU). Of course, the network device may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The network device may also include other components for implementing device functions, which will not be repeated here.

[0171] The embodiment of the present application also provides a communication device, which includes: a transceiver, a memory, and a processor. The transceiver, the memory, and the processor communicate with each other through an internal connection path, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the transceiver to receive signals and control the transceiver to send signals, and when the processor executes the instructions stored in the memory, the processor executes the data transmission method.

[0172] It should be understood that the processor may be a CPU, or other general-purpose processors, DSPs, ASICs, FPGAs or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting an advanced RISC machines (ARM) architecture.

[0173] Further, in an optional embodiment, the memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. The memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.

[0174] The memory may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memory. Among them, the nonvolatile memory may be a ROM, a programmable read-only memory (programmable ROM, PROM), an erasable programmable read-only memory (erasable PROM, EPROM), an EEPROM or a flash memory. The volatile memory may be a RAM, which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static random access memory (static RAM, SRAM), dynamic random access memory (dynamic random access memory, DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (synchlink DRAM, SLDRAM) and direct memory bus random access memory (direct rambus RAM, DR RAM).

[0175] The embodiment of the present application also provides a data transmission device, the device includes a processor, the processor is used to load and run at least one instruction, so that the data transmission device implements the data transmission method provided in the embodiment of the present application. Optionally, the device also includes a memory, the memory is coupled to the processor, and the memory is used to store at least one instruction.

[0176] An embodiment of the present application further provides a computer-readable storage medium, in which at least one instruction is stored. The instruction is loaded and executed by a processor so that a computer implements any of the data transmission methods described above.

[0177] The embodiments of the present application also provide a computer program (product), which, when executed by a computer, can enable a processor or a computer to execute the corresponding steps and / or processes in the above method embodiments.

[0178] An embodiment of the present application also provides a chip, which includes a processor for calling and executing instructions stored in a memory from the memory, so that a communication device equipped with the chip executes any of the data transmission methods described above.

[0179] An embodiment of the present application also provides another chip, including: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute any of the data transmission methods described above.

[0180] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in this application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk), etc.

[0181] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions. For example, the sending strategies involved in this application are all obtained with full authorization.

[0182] Those of ordinary skill in the art will appreciate that, in conjunction with the various method steps and modules described in the embodiments disclosed herein, they can be implemented in software, hardware, firmware, or any combination thereof. In order to clearly illustrate the interchangeability of hardware and software, the steps and components of each embodiment have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those of ordinary skill in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0183] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0184] When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer program instructions. As an example, the method of the embodiment of the present application can be described in the context of a machine executable instruction, and the machine executable instruction is such as included in the program module executed in the device on the real or virtual processor of the target. Generally speaking, a program module includes a routine, a program, a library, an object, a class, a component, a data structure, etc., which performs a specific task or realizes a specific abstract data structure. In various embodiments, the function of the program module can be merged or divided between the described program modules. The machine executable instruction for the program module can be executed in a local or distributed device. In a distributed device, the program module can be located in both a local and a remote storage medium.

[0185] The computer program code for realizing the method for the embodiment of the present application can be written in one or more programming languages. These computer program codes can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data transmission device, so that the program code, when executed by a computer or other programmable data transmission device, causes the function / operation specified in the flow chart and / or block diagram to be implemented. The program code can be executed completely on a computer, partially on a computer, as an independent software package, partially on a computer and partially on a remote computer or completely on a remote computer or server.

[0186] In the context of the embodiments of the present application, computer program codes or related data may be carried by any appropriate carrier to enable a device, apparatus or processor to perform the various processes and operations described above. Examples of carriers include signals, computer readable media, and the like.

[0187] Examples of signals may include electrical, optical, radio, acoustic or other forms of propagated signals, such as carrier waves, infrared signals, etc.

[0188] A machine-readable medium may be any tangible medium that contains or stores a program for or related to an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination thereof. More detailed examples of machine-readable storage media include an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0189] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0190] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the module is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, or it can be an electrical, mechanical or other form of connection.

[0191] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiments of the present application.

[0192] In addition, each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0193] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0194] In the present application, the terms "first", "second", etc. are used to distinguish between identical or similar items having substantially the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is there a limitation on quantity and execution order. It should also be understood that although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of the various described examples, a first image may be referred to as a second image, and similarly, a second image may be referred to as a first image. Both the first image and the second image may be images, and in some cases, may be separate and different images.

[0195] It should also be understood that in the various embodiments of the present application, the size of the serial number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0196] The term "at least one" in this application means one or more, and the term "multiple" in this application means two or more, for example, multiple second messages means two or more second messages. The terms "system" and "network" are often used interchangeably herein.

[0197] It should be understood that the terms used in the description of the various examples herein are only for describing specific examples and are not intended to be limiting. As used in the description of the various examples and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

[0198] It should also be understood that the term "and / or" used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items. The term "and / or" is a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this application generally indicates that the associated objects before and after are in an "or" relationship.

[0199] It should also be understood that the term “comprise” (also known as “includes,” “including,” “comprises” and / or “comprising”) when used in this specification specifies the presence of stated features, integers, steps, operations, elements, and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0200] It should also be understood that the terms "if" and "if" may be interpreted to mean "when" or "upon" or "in response to determining" or "in response to detecting." Similarly, the phrases "if it is determined that ..." or "if [a stated condition or event] is detected" may be interpreted to mean "upon determining that ..." or "in response to determining that ..." or "upon detecting [a stated condition or event]" or "in response to detecting [a stated condition or event]," depending on the context.

[0201] It should be understood that determining B based on A does not mean determining B only based on A. B can also be determined based on A and / or other information.

[0202] It should also be understood that the references to "one embodiment", "an embodiment", or "a possible implementation" throughout the specification mean that specific features, structures, or characteristics related to the embodiment or implementation are included in at least one embodiment of the present application. Therefore, the references to "in one embodiment" or "in an embodiment", or "a possible implementation" throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

Claims

1. A data transmission method, characterized in that: The method comprises: A transmission device acquires a sending strategy of a first group, where the first group is a device group corresponding to the transmission device, one device group includes a plurality of first devices and a second device interacting with the plurality of first devices, the sending strategy of the first group is determined according to transmission constraints of the first group and the second group, the second group and the first group are different device groups, and the transmission constraints are used to constrain transmission of interaction data corresponding to the first group and the second group respectively; The interactive data of the first group is transmitted according to the sending policy of the first group.

2. The method according to claim 1, characterized in that The obtaining of the sending strategy of the first packet includes: Acquire a first identifier of the first group, where the first identifier is a group identifier of the first group; A sending strategy for the first packet is acquired according to the first identifier.

3. The method according to claim 2, characterized in that The acquiring the sending strategy of the first packet according to the first identifier includes: Acquire a policy mapping table, wherein the policy mapping table includes a mapping relationship between group identifiers of various device groups and sending policies; The policy mapping table is searched for a group identifier that matches the first identifier, and a sending policy corresponding to the matching group identifier is determined as the sending policy of the first group.

4. The method according to any one of claims 1 to 3, characterized in that: The transmitting the interaction data of the first group according to the sending strategy of the first group includes: The received multiple interactive data are encapsulated in a first transmission frame, and the first transmission frame is transmitted according to the sending strategy of the first group. One interactive data is data of interaction between a first device and a second device in the first group.

5. The method according to claim 4, characterized in that The interaction data includes control data sent by the second device to the first device, where the control data is used to manage device operation of the first device, and the first transmission frame includes a first reference frame; The encapsulating the received multiple interactive data in the first transmission frame includes: Extracting first data from the plurality of interaction data, the plurality of interaction data corresponding to a plurality of first devices, the first data being interaction data corresponding to a first device directly connected to the transmission device; The first data is encapsulated in the first reference frame.

6. The method according to claim 4, characterized in that The interaction data includes control data sent by the second device to the first device, where the control data is used to manage device operation of the first device, and the first transmission frame includes a second reference frame; The encapsulating the received multiple interactive data in the first transmission frame includes: Extracting second data from the plurality of interaction data, where the second data is interaction data corresponding to the first device to which the transmission device is indirectly connected; The second data is packed in the second reference frame.

7. The method according to claim 4, characterized in that The interaction data includes feedback data sent by the first device to the second device, where the feedback data indicates an operation result of the first device after the operation is performed based on the received control data; Before encapsulating the received multiple interactive data in the first transmission frame, the method further includes: receiving a second transmission frame sent by an upstream device, where the second transmission frame includes a plurality of feedback data received by the upstream device; Extract feedback data included in the second transmission frame to obtain feedback data sent by the first device to the second device.

8. The method according to any one of claims 1 to 7, characterized in that: The sending strategy includes at least one of a sending period, a start time, and a polling period of the first packet for the transmission device to send the interactive data of the first packet.

9. The method according to claim 8, characterized in that The polling period of the first group is a multiple of a sending period of the interactive data of the first group.

10. A data transmission method, characterized in that: The method comprises: The control device obtains transmission constraint conditions between each device group in a plurality of device groups, where one device group includes a plurality of first devices and a second device interacting with the plurality of first devices, and the transmission constraint conditions are used to constrain transmission of interaction data respectively corresponding to the plurality of device groups; Determine a sending strategy for each device group according to the transmission constraint condition; The sending policy of a first group among the multiple device groups is sent to a transmission device, and the transmission device is used to transmit the interactive data of the first group according to the received sending policy.

11. The method according to claim 10, characterized in that After determining the sending strategy of each device group according to the transmission constraint condition, the method further includes: A policy mapping table is determined according to the sending policies of the various device groups, and the policy mapping table includes a mapping relationship between the group identifiers of the various device groups and the sending policies.

12. The method according to claim 11, characterized in that The sending strategy of the first group in the plurality of device groups to the transmission device includes: The policy mapping table is sent to the transmission device.

13. The method according to any one of claims 10 to 12, characterized in that: The sending strategy includes at least one of a sending period, a start time, and a polling period of the first packet for the transmission device to send the interactive data of the first packet.

14. The method according to claim 13, characterized in that The polling period of the first group is a multiple of a sending period of the interactive data of the first group.

15. A data transmission device, characterized in that: The device is applied to a transmission device, and the device comprises: an acquisition module, configured to acquire a sending strategy of a first group, wherein the first group is a device group corresponding to the transmission device, wherein one device group includes a plurality of first devices and a second device interacting with the plurality of first devices, wherein the sending strategy of the first group is determined according to transmission constraints of the first group and the second group, wherein the second group and the first group are different device groups, and the transmission constraints are used to constrain transmission of interaction data corresponding to the first group and the second group respectively; A transmission module is used to transmit the interaction data of the first group according to the sending strategy of the first group.

16. The device according to claim 15, characterized in that The acquisition module is used to acquire a first identifier of the first group, where the first identifier is a group identifier of the first group; and acquire a sending strategy of the first group according to the first identifier.

17. The device according to claim 16, characterized in that The acquisition module is used to obtain a policy mapping table, which includes a mapping relationship between group identifiers of each device group and a sending policy; searching the policy mapping table for a group identifier that matches the first identifier, and determining the sending policy corresponding to the matching group identifier as the sending policy of the first group.

18. The device according to any one of claims 15 to 17, characterized in that: The transmission module is used to encapsulate multiple received interaction data in a first transmission frame, and transmit the first transmission frame according to the sending strategy of the first group. One interaction data is data of interaction between a first device and a second device in the first group.

19. The device according to claim 18, characterized in that The interaction data includes control data sent by the second device to the first device, where the control data is used to manage device operation of the first device, and the first transmission frame includes a first reference frame; The transmission module is used to extract first data from the multiple interaction data, the multiple interaction data correspond to multiple first devices, and the first data is the interaction data corresponding to the first device directly connected to the transmission device; and encapsulate the first data in the first reference frame.

20. The device according to claim 18, characterized in that The interactive data includes control data sent by the second device to the first device, the control data is used to manage the device operation of the first device, and the first transmission frame includes a second reference frame; the transmission module is used to extract second data from the multiple interactive data, and the second data is the interactive data corresponding to the first device indirectly connected to the transmission device; The second data is packed in the second reference frame.

21. The device according to claim 18, characterized in that The interactive data includes feedback data sent by the first device to the second device, and the feedback data indicates the operation result of the first device after running based on the received control data; the transmission module is also used to receive a second transmission frame sent by an upstream device, and the second transmission frame includes multiple feedback data received by the upstream device; extract the feedback data included in the second transmission frame to obtain the feedback data sent by the first device to the second device.

22. A data transmission device, characterized in that: The device is applied to a control device, and the device comprises: an acquisition module, configured to acquire transmission constraints between respective device groups in a plurality of device groups, wherein a device group includes a plurality of first devices and second devices interacting with the plurality of first devices, and the transmission constraints are used to constrain transmission of interaction data respectively corresponding to the plurality of device groups; A determination module, configured to determine a sending strategy for each device group according to the transmission constraint condition; The sending module is used to send the sending policy of the first group among the multiple device groups to the transmission device, and the transmission device is used to transmit the interactive data of the first group according to the received sending policy.

23. The device according to claim 22, characterized in that The determination module is further used to determine a policy mapping table according to the sending policies of the various device groups, wherein the policy mapping table includes a mapping relationship between the group identifiers of the various device groups and the sending policies.

24. The device according to claim 23, characterized in that The sending module is used to send the policy mapping table to the transmission device.

25. A data transmission device, characterized in that: The device includes a processor, which loads and executes at least one instruction to enable the data transmission device to implement the data transmission method described in any one of claims 1-9, or implement the data transmission method described in any one of claims 10-14.

26. The device according to claim 25, characterized in that The device further includes a memory, which is coupled to the processor and stores at least one instruction.

27. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, and the instruction is loaded and executed by the processor to implement the data transmission method described in any one of claims 1-9, or to implement the data transmission method described in any one of claims 10-14.