Data transmission method, terminal, device and storage medium
By sending data packets containing the sending time and maximum delay to the terminal in the 5G network, the terminal determines the feedback time based on the maximum delay, which solves the problem of inconsistent data packet feedback order and realizes sequential reception in industrial ring networks under wireless conditions, supporting the deep integration of 5G networks and industrial protocols.
Patent Information
- Application Number
- CN202310835011.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-07
- Publication Date
- 2025-11-28
- Estimated Expiration
- 2043-07-07
AI Technical Summary
In a 5G network and industrial ring network integrated deployment environment, the data packet feedback order between the base station and the terminal cannot be guaranteed, resulting in inconsistent data packet sending and receiving.
The network device sends a data packet containing the sending time and maximum delay to the terminal. The terminal determines the feedback time based on the maximum delay and the sending time, and sends feedback data packets according to different feedback times. The network device receives and generates a second data packet in sequence.
It achieves sequential reception in industrial ring networks under wireless conditions, supporting the deep integration and implementation of 5G networks and industrial protocols.
Smart Images

Figure CN119276436B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of communication, and in particular, to a data transmission method, a first terminal, a network device, and a computer readable storage medium. BACKGROUND
[0002] At present, when networking through the 5th generation mobile communication technology (5G), a star-shaped networking architecture is naturally formed between the base station and each terminal. In the above star-shaped networking architecture, the base station can broadcast data packets to each terminal, or the base station can also send data packets to each terminal one by one.
[0003] In an environment where part of the 5G network needs to be deployed in an industrial ring network, it is impossible to sequentially send feedback data packets to the base station. SUMMARY
[0004] The embodiments of the present application provide a data transmission method, a first terminal, a network device, and a computer readable storage medium.
[0005] In a first aspect, the embodiments of the present application provide a data transmission method applied to a first terminal, wherein the first terminal and at least two second terminals form a ring network, and the method comprises the following steps.
[0006] receiving a first data packet sent by a network device; wherein the first data packet comprises a sending time of the first data packet and a maximum time delay of the first data packet estimated by the network device to reach each terminal in the ring network;
[0007] determining a feedback time for the first terminal to send a feedback data packet to the network device based on at least the maximum time delay and the sending time; wherein the feedback time corresponding to each terminal in the ring network is different;
[0008] sending the feedback data packet to the network device according to the feedback time.
[0009] In a second aspect, the embodiments of the present application provide a data transmission method applied to a network device, and the method comprises the following steps.
[0010] sending a first data packet to a first terminal and at least two second terminals; wherein the first terminal and the at least two second terminals form a ring network; the first data packet comprises a sending time of the first data packet and a maximum time delay of the first data packet estimated by the network device to reach each terminal in the ring network;
[0011] receive the feedback data packet sent by each terminal in the ring network at different feedback times, wherein the feedback times corresponding to each terminal in the ring network are different;
[0012] generate a second data packet based on the feedback data packet sent by each terminal;
[0013] send the second data packet to a controller.
[0014] In a third aspect, an embodiment of the present application provides a first terminal, the first terminal and at least two second terminals form a ring network, and the first terminal comprises:
[0015] a first receiving module, configured to receive a first data packet sent by a network device, wherein the first data packet comprises a sending time of the first data packet and a maximum time delay estimated by the network device for each terminal in the ring network to receive the first data packet;
[0016] a first processing module, configured to determine a feedback time for the first terminal to send a feedback data packet to the network device based on at least the maximum time delay and the sending time, wherein the feedback times corresponding to each terminal in the ring network are different;
[0017] a first sending module, configured to send the feedback data packet to the network device according to the feedback time.
[0018] In a fourth aspect, an embodiment of the present application provides a network device, the network device comprises:
[0019] a second sending module, configured to send a first data packet to a first terminal and at least two second terminals, wherein the first terminal and the at least two second terminals form a ring network, and the first data packet comprises a sending time of the first data packet and a maximum time delay estimated by the network device for the first data packet to arrive at each terminal in the ring network;
[0020] a second receiving module, configured to receive a feedback data packet sent by each terminal in the ring network at different feedback times, wherein the feedback times corresponding to each terminal in the ring network are different;
[0021] a second processing module, configured to generate a second data packet based on the feedback data packet sent by each terminal;
[0022] the second sending module, configured to send the second data packet to a controller.
[0023] In a fifth aspect, an embodiment of the present application provides a first terminal, the first terminal comprises:
[0024] a first memory, configured to store executable instructions;
[0025] The first processor is configured to execute the executable instructions stored in the first memory to implement the data transmission method.
[0026] In a sixth aspect, an embodiment of the present application provides a network device, which comprises:
[0027] The second memory is configured to store executable instructions.
[0028] The second processor is configured to execute the executable instructions stored in the second memory to implement the data transmission method.
[0029] In a seventh aspect, an embodiment of the present application provides a computer readable storage medium for storing a computer program, which causes a computer to execute the data transmission method.
[0030] The present application discloses a data transmission method, a first terminal, a network device and a computer readable storage medium. The method comprises the following steps: a network device sends a first data packet to a first terminal and at least two second terminals; the first terminal and the at least two second terminals form a ring network; the first terminal receives the first data packet; the first data packet comprises a sending time of the first data packet and a maximum delay of the first data packet to reach each terminal in the ring network estimated by the network device; the first terminal determines a feedback time of a feedback data packet based on at least the maximum delay and the sending time; the feedback time corresponding to each terminal in the ring network is different; the first terminal sends the feedback data packet to the network device according to the feedback time; the network device receives the feedback data packet sent by each terminal in the ring network at different feedback times; the network device generates a second data packet based on the feedback data packet sent by each terminal; and the network device sends the second data packet to a controller. That is, for the environment in which part of the 5G network needs to be deployed in combination with the industrial ring network, the terminal according to the present application sends the feedback data packet in sequence at different delay intervals to achieve the effect of receiving the industrial ring wired network in sequence under wireless conditions. BRIEF DESCRIPTION OF DRAWINGS
[0031] Figure 1 It is a schematic diagram of a communication system according to an embodiment of the present application;
[0032] Figure 2A It is a topology diagram of an industrial ring network in the related art;
[0033] Figure 2B It is a flowchart of a data transmission method provided in the related art;
[0034] Figure 3 It is a flowchart of a data transmission method provided according to an embodiment of the present application;
[0035] Figure 4A functional module schematic diagram of a base station provided by an embodiment of the present application is provided.
[0036] Figure 5 A schematic diagram of multiple feedback data packets provided by an embodiment of the present application is provided.
[0037] Figure 6 A schematic diagram of a mapping relationship table of addresses, receiving identifiers and data packets provided by an embodiment of the present application is provided.
[0038] Figure 7 A schematic diagram of a second data packet provided by an embodiment of the present application is provided.
[0039] Figure 8 A flowchart schematic diagram of a data transmission method provided by an embodiment of the present application is provided.
[0040] Figure 9 A schematic block diagram of a first terminal provided by an embodiment of the present application is provided.
[0041] Figure 10 A schematic block diagram of a network device provided by an embodiment of the present application is provided.
[0042] Figure 11 A schematic structural diagram of a communication device provided by an embodiment of the present application is provided.
[0043] Figure 12 A schematic block diagram of a communication system provided by an embodiment of the present application is provided. DETAILED DESCRIPTION
[0044] The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of protection of the present application.
[0045] Figure 1 A schematic diagram of an application scenario of an embodiment of the present application is provided.
[0046] As shown in Figure 1 , the wireless communication system 100 can include a terminal device 110 and a network device 120. The network device 120 can communicate with the terminal device 110 through an air interface. The terminal device 110 and the network device 120 support multi-service transmission.
[0047] It should be understood that the embodiments of the present application are only exemplarily described with respect to the wireless communication system 100, but the embodiments of the present application are not limited thereto. That is, the technical solutions of the embodiments of the present application can be applied to various communication systems, such as a Long Term Evolution (LTE) system, an LTE Time Division Duplex (TDD), a Universal Mobile Telecommunication System (UMTS), an Internet of Things (IoT) system, a Narrow Band Internet of Things (NB-IoT) system, an enhanced Machine-Type Communications (eMTC) system, a 5G communication system (also referred to as a New Radio (NR) communication system), or a future communication system, etc.
[0048] In Figure 1 In the wireless communication system 100 shown, the network device 120 can be an access network device that communicates with the terminal device 110. The access network device can provide communication coverage for a specific geographic area and can communicate with the terminal device 110 (e.g., a User Equipment (UE)) located in the coverage area.
[0049] The network device 120 can be an Evolutional Node B (eNB or eNodeB) in a Long Term Evolution (LTE) system, or a Next Generation Radio Access Network (NG RAN) device, or a base station (gNB) in a NR system, or a radio controller in a Cloud Radio Access Network (CRAN), or a relay station, an access point, a vehicle-mounted device, a wearable device, a hub, a switch, a bridge, a router, or a network device in a future evolved Public Land Mobile Network (PLMN), etc.
[0050] The wireless terminal device 110 includes, but is not limited to, any terminal device that is connected to the network device 120 or other terminal devices using a wired or wireless connection.
[0051] For example, the terminal device 110 can refer to an access terminal, a UE, a subscriber unit, a subscriber station, a mobile station, a mobile, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communication device, a user agent, or a user device. The access terminal can be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, an IoT device, a satellite handset, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a handheld device with wireless communication function, a computing device, or other processing device connected to a wireless modem, an in-vehicle device, a wearable device, a terminal device in a 5G network, or a terminal device in a future evolution network, etc.
[0052] The terminal device 110 can be used for Device to Device (D2D) communication.
[0053] Figure 1 Exemplarily, one base station and two UEs are shown, optionally, the wireless communication system 100 can include a plurality of base station devices and each base station can include other number of UEs within its coverage, which is not limited by the embodiments of the present application.
[0054] It should be noted that, Figure 1The system to which the embodiments of the present application apply is shown by way of example only. Of course, the method shown by the embodiments of the present application can also be applied to other systems. In addition, the terms "system" and "network" are often used interchangeably in the present document. The term "and / or" in the present document is only used to describe the association relationship of the associated objects, and can represent three relationships, for example, A and / or B can represent the following three cases: A exists alone, A and B exist together, and B exists alone. In addition, the character " / " in the present document generally represents an "or" relationship between the front and rear associated objects. It should also be understood that the "indication" mentioned in the embodiments of the present application can be direct indication or indirect indication, and can also represent an associated relationship. For example, A indicates B, which can mean that B can be obtained through A; or A indirectly indicates B, for example, A indicates C, and B can be obtained through C; or A and B have an associated relationship. It should also be understood that the "corresponding" mentioned in the embodiments of the present application can represent a direct correspondence or an indirect correspondence between the two, or can represent an associated relationship between the two, or can represent an indication and being indicated, configuration and being configured, and the like. It should also be understood that the "predefined" or "predefined rule" mentioned in the embodiments of the present application can be realized by pre-saving corresponding codes, tables or other means that can be used to indicate related information in devices (for example, including terminal devices and network devices), and the specific implementation manner of the present application is not limited. For example, the predefinition can refer to the definition in the protocol. It should also be understood that the "protocol" in the embodiments of the present application can refer to a standard protocol in the communication field, for example, can include an LTE protocol, an NR protocol and a related protocol applied to a future communication system, and the present application is not limited thereto.
[0055] In order to facilitate the understanding of the technical solutions of the embodiments of the present application, the related technologies of the embodiments of the present application are described below. The following related technologies can be combined with the technical solutions of the embodiments of the present application in any manner, and all belong to the protection scope of the embodiments of the present application.
[0056] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.
[0057] Before the present application is explained, the data transmission mode under the architecture of the industrial ring networking in the related art is described herein:
[0058] At the present stage, in the industrial field, due to the same protocols dominated by each company in the development period, the networking modes supported by different protocols are also different. Figure 2A is a topology diagram of the industrial ring networking in the related art. As shown in Figure 2AAs shown, the master controller (MASTER) polls all receiving ends on the ring, such as slave 1, slave 2, slave 3, slave 4, slave 5 and slave 6, in sequence, and forms a large packet composed of the identification of all receiving ends and the data payload, and the receiving ends extract the relevant data according to the identification and update the data that needs to be fed back to the corresponding position.
[0059] Figure 2B is a flowchart of a data transmission mode provided in the related art. As shown, Figure 2B the master controller sends a first data packet; wherein the first data packet includes a packet header, A, B, C and D; the first data packet passes through receiving end 1, receiving end 2, receiving end 3 and receiving end 4 in sequence; after the first data packet passes through receiving end 1, A is updated; after the data packet that has passed through receiving end 1 passes through receiving end 2, B is updated; after the data packet that has passed through receiving end 2 passes through receiving end 3, C is updated; after the data packet that has passed through receiving end 3 passes through receiving end 4, D is updated; and finally, receiving end 4 returns the final data packet to the master controller.
[0060] With the development of 5G, the scene of 5G network and industrial deployment appears. In the environment where part of the 5G network needs to be deployed in combination with the industrial ring network, if the base station adopts the mode of broadcasting data packets to each terminal, due to the different network states and capabilities of different terminals, the time when each terminal receives the data packet is different, and the time when each terminal generates the feedback data packet is also different. Thus, the time when each terminal sends the feedback data packet is not fixed, which may cause two terminals to send feedback data packets to the base station at the same time. If the base station adopts the mode of sending data packets to each terminal one by one, after the base station sends a data packet to the first terminal, the first terminal receives the data packet and transmits the feedback data packet back to the base station through the air interface, and then the base station generally determines the next terminal that receives the data packet in a random manner; that is, the order in which the base station sends data packets to each terminal is not fixed, and the order in which each terminal sends the feedback data packet is also not fixed.
[0061] It should be noted that, at the present stage, under the architecture of industrial wired ring networking, according to the requirements of the related industrial protocol such as Ethercat, the data payload in the data packet in the master controller is arranged in sequence; then, the master controller sends the data packet arranged in sequence, and polls all receiving ends on the ring in sequence, each receiving end updates the data that needs to be fed back to the corresponding position of the data packet, and further, the updated data packet received by the master controller is also in sequence. In order to enable the wireless ring networking to be deeply integrated with the related industrial protocol and land, without modifying or adapting such logic, it is necessary to realize the sequential reception of the data packet under the condition of wireless networking.
[0062] Figure 3 This is a flowchart illustrating an information transmission method provided in an embodiment of this application, such as... Figure 3 As shown, this method is applied to Figure 1 The communication system 100 shown includes a method comprising:
[0063] Step 301: The network device sends a first data packet to the first terminal and at least two second terminals.
[0064] The first terminal and at least two second terminals form a ring network.
[0065] In this embodiment of the application, the first terminal and at least two second terminals, i.e. Figure 1 The terminal device 110 is a terminal device located within the communication coverage area of the network device; the first terminal and at least two second terminals form a ring network, which can refer to the first terminal and at least two second terminals being connected to form a ring network through network cables; wherein, the network cable includes, but is not limited to, twisted pair, coaxial cable and fiber optic cable.
[0066] In this embodiment, the first data packet includes identifiers for a first terminal and at least two second terminals, as well as the data payload required by the first terminal and at least two second terminals. Each terminal has unique identification information. Identification information includes color identifiers, graphic identifiers, text identifiers, numerical identifiers, location identifiers, etc. Different terminals can use the same type of identification information; however, the types of identification information for different terminals may not be completely identical, or the types of identification information for different terminals may be completely different.
[0067] For example, the identifier of the terminal includes, but is not limited to, the terminal's Internet Protocol (IP) address and the terminal's Medium Access Control (MAC) address.
[0068] In this embodiment, the first data packet is sent in various ways, including in-band, out-of-band, media, signaling, data, message, control plane, and user plane. The network device can send the first data packet through existing media channels, or through one-to-many multicast or broadcast communication channels. Sending the first data packet through existing media channels improves compatibility with existing systems and reduces system upgrade costs. Sending the first data packet through one-to-many multicast or broadcast communication channels effectively reduces the number of data packets sent.
[0069] In this embodiment of the application, the first data packet may be either a non-first data packet of the first data stream or the first data packet of the first data stream.
[0070] Step 302, the first terminal receives the first data packet sent by the network device.
[0071] The first data packet includes a sending time of the first data packet and a maximum time delay of the first data packet estimated by the network device to reach each terminal in the ring network.
[0072] In the embodiment of the application, the maximum time delay of the first data packet estimated by the network device to reach each terminal in the ring network refers to a Round-Trip Time (RTT) from when the first data packet is sent to when it is received after passing through the network.
[0073] Step 303, the first terminal determines a feedback time for the first terminal to send a feedback data packet to the network device based on at least the maximum time delay and the sending time.
[0074] The feedback time corresponding to each terminal in the ring network is different.
[0075] In the embodiment of the application, after the first terminal receives the first data packet, the first terminal updates the data payload corresponding to the first terminal in the first data packet to obtain the feedback data packet.
[0076] In the embodiment of the application, the first terminal determines the feedback time for each terminal to send a feedback data packet to the network device based on the maximum time delay of the first data packet estimated by the network device to reach each terminal in the ring network and the sending time of the first data packet, and then determines the feedback time corresponding to the first terminal according to the feedback time corresponding to each terminal.
[0077] Step 304, the first terminal sends the feedback data packet to the network device according to the feedback time.
[0078] In the embodiment of the application, the feedback data packet is sent in the following ways: in-band, out-of-band, media, signaling, data, message, control plane, user plane, etc.
[0079] In the embodiment of the application, the feedback data packet sent by the first terminal includes the identities of the first terminal and at least two second terminals, the updated data payload corresponding to the first terminal, and the un-updated data payload corresponding to the at least two second terminals.
[0080] Step 305, the network device receives the feedback data packet sent by each terminal in the ring network at different feedback times.
[0081] Step 306, the network device generates a second data packet based on the feedback data packet sent by each terminal.
[0082] In the embodiment of the application, the network device receives the data packet sent by each terminal, combines at least three feedback data packets, and obtains the second data packet.
[0083] In the embodiments of the present application, the second data packet includes the identifier of each terminal and the updated data payload corresponding to each terminal.
[0084] In step 307, the network device sends the second data packet to the controller.
[0085] In the embodiments of the present application, the second data packet can be sent in the following ways: in-band, out-of-band, media, signaling, data, message, control plane, user plane, etc.
[0086] In the embodiments of the present application, the controller can be a separate device connected to the network device, or a functional module in the network device.
[0087] Here, the controller refers to the master controller in the industrial ring network. It should be noted that if the master controller is a physical entity, it is accessed to the network through a 5G module; if the master controller is deployed in the cloud on the server side of the network, when the trigger data is sent to the receiving end, the base station will copy and broadcast the data packet to the receiving end.
[0088] The present application discloses a data transmission method, which comprises the following steps: a network device sends a first data packet to a first terminal and at least two second terminals; the first terminal and the at least two second terminals form a ring network; the first terminal receives the first data packet; the first data packet includes the sending time of the first data packet and the maximum delay of the first data packet to reach each terminal in the ring network estimated by the network device; the first terminal determines the feedback time of a feedback data packet based on at least the maximum delay and the sending time; the feedback time corresponding to each terminal in the ring network is different; the first terminal sends the feedback data packet to the network device according to the feedback time; the network device receives the feedback data packet sent by each terminal in the ring network at different feedback times; the network device generates a second data packet based on the feedback data packet sent by each terminal; and the network device sends the second data packet to a controller. That is, in the environment where part of the 5G network needs to be deployed in the industrial ring network, the terminal according to the present application controls the feedback data packet to be sent in a certain time interval according to different time delays, so as to realize the effect of sequential reception of industrial ring wired networking under wireless conditions.
[0089] Further, in the environment where part of the 5G network needs to be deployed in the industrial ring network, the effect of sequential reception of industrial ring wired networking under 5G wireless conditions is realized, so that 5G has the opportunity to deeply integrate with industrial protocols in the future.
[0090] In some embodiments, in step 303, the first terminal determines the feedback time of the feedback data packet sent by the first terminal to the network device based on at least the maximum delay and the sending time, which can be achieved by the following steps:
[0091] Step A1, the first terminal determines the receiving time of each terminal based on the maximum delay of each terminal receiving the first data packet and the sending time.
[0092] In the embodiment of the application, the first terminal determines the receiving time of each terminal based on the maximum delay of each terminal and the sending time of the first data packet. The receiving time can be understood as the receiving time of each terminal. The receiving time of each terminal corresponds to a difference
[0093] For example, each terminal in the ring network includes terminal A, terminal B, and terminal C. The maximum delay of terminal A is 5 minutes, the maximum delay of terminal B is 15 minutes, and the maximum delay of terminal C is 8 minutes. The base station sends the first data packet to terminal A at 8:00. Then, the receiving time of terminal A is 8:05, the receiving time of terminal B is 8:15, and the receiving time of terminal C is 8:08.
[0094] For example, each terminal in the ring network includes terminal A, terminal B, and terminal C. The maximum delay of terminal A is 5 minutes, the maximum delay of terminal B is 15 minutes, and the maximum delay of terminal C is 8 minutes. The base station sends the first data packet to terminal A at 8:00. Then, the receiving time of terminal A is 8:05, the receiving time of terminal B is 8:15, and the receiving time of terminal C is 8:08.
[0095] Step A2, the first terminal determines the feedback order of each terminal sending the feedback data packet to the network device based on the receiving time.
[0096] In the ring network, the feedback order of each terminal is different.
[0097] For example, each terminal in the ring network includes terminal A, terminal B, and terminal C. The feedback order of each terminal sending the feedback data packet to the network device can be terminal A -> terminal C -> terminal B, or terminal B -> terminal C -> terminal A.
[0098] Step A3, the first terminal determines the feedback time of the first terminal based on the feedback order of each terminal and the preset time interval between adjacent feedback orders.
[0099] In the embodiment of the application, the preset time interval between adjacent feedback orders can be preset according to the actual application scenario, or can be uniformly preset by the system. For example, the time interval can be sending once every 5 minutes, or sending once every 10 minutes.
[0100] Exemplarily, taking each terminal in the ring network including terminal A, terminal B and terminal C as an example; the sending time of the first data packet is 9:00, and it is determined that terminal A, terminal B and terminal C all receive the first data packet at 9:02; further, the feedback sequence corresponding to each terminal is terminal A->terminal C->terminal B, and the time interval can be sending once every 5 minutes, then the feedback time corresponding to terminal A is 9:07, the feedback time corresponding to terminal C is 9:12, and the feedback time corresponding to terminal B is 9:17.
[0101] In some embodiments, the step A2, the first terminal sending the first data packet to the first terminal and the at least two second terminals can be implemented by the following steps:
[0102] The step A21, in the case that the receiving time corresponding to the first terminal and the second terminal is the same, the first terminal determines the ring network sequence corresponding to each terminal based on the position of each terminal in the ring network.
[0103] The step A22, the first terminal determines the feedback sequence corresponding to each terminal based on the receiving time and the ring network sequence corresponding to each terminal.
[0104] Exemplarily, taking each terminal in the ring network including terminal A, terminal B, terminal C and terminal D as an example; the ring network sequence corresponding to each terminal is terminal A->terminal B->terminal C->terminal D; for example, in the case that the receiving time of terminal A and terminal B is the same, the feedback sequence of terminal A and terminal B can be determined again according to the ring network sequence of terminal A and terminal B.
[0105] In some embodiments, the step 305, the network device sending the first data packet to the first terminal and the at least two second terminals can be implemented by the steps B1 to B3, and can also be implemented by the step B4:
[0106] The step B1, the network device determines the ring network sequence corresponding to each terminal based on the position of each terminal in the ring network.
[0107] In the embodiments of the present application, the position of each terminal in the ring network indicates the position of each terminal in the ring network connection.
[0108] Exemplarily, taking each terminal in the ring network including terminal A, terminal B, terminal C and terminal D as an example; the ring network connection of each terminal is sequentially connected in the order of the master controller, terminal A, terminal B, terminal C, terminal D and then the master controller, then the ring network sequence corresponding to each terminal is terminal A->terminal B->terminal C->terminal D.
[0109] Further, the network device determines the corresponding ring network order of each terminal, and sends the first data packet to the first terminal based on the determined corresponding ring network order of each terminal.
[0110] For example, the terminals in the ring network include terminal A, terminal B, terminal C and terminal D. If the corresponding ring network order of each terminal is terminal A -> terminal B -> terminal C -> terminal D, then the sending order of the network device for the first data packet is also terminal A -> terminal B -> terminal C -> terminal D.
[0111] In step B2, the network device sends the first data packet to the first terminal.
[0112] In step B3, after receiving the feedback data packet sent by the first terminal, the network device sends the first data packet to the second terminal.
[0113] The ring network order of the first terminal is before the ring network order of the second terminal.
[0114] In the embodiment, the base station sends the data packet to the receiving end in the wired order, that is, after receiving the feedback data packet returned by the previous terminal, such as an acknowledge character (ACK), the base station triggers the sending of the next terminal, so as to ensure the triggering in order.
[0115] In the embodiment, the base station sends the data packet in order, so that the data packet reaches each receiving end in order. After receiving the feedback data packet returned by the previous receiving end through the air interface, the base station sends the data packet to the next receiving end, so as to send the feedback data packet to the base station in order.
[0116] In step B4, the network device broadcasts the first data packet to the first terminal and at least two second terminals.
[0117] In some embodiments, in step 306, the network device generates the second data packet based on the feedback data packet sent by each terminal, which can be implemented by the following steps:
[0118] In step C1, the terminal identifier of each terminal is obtained.
[0119] In the embodiment, each terminal has unique identification information. The identification information includes color identification, graphic identification, text identification, digital identification, position identification, etc. Different terminals can use the same type of identification information. Of course, the types of identification information of different terminals can also be not completely the same, or the types of identification information of different terminals can be completely different.
[0120] For example, the terminal identifier includes but is not limited to the IP address of the terminal and the MAC address of the terminal.
[0121] Step C2, compare each feedback data packet sent by each terminal with the first data packet to obtain updated payload data in each feedback data packet.
[0122] In the first data packet, the payload data corresponding to each terminal is included.
[0123] Step C3, assemble the updated payload data according to the terminal identifier to obtain the second data packet.
[0124] Figure 4 Figure 1 is a schematic diagram of a functional module of a base station provided in an embodiment of the present application. As shown in the figure, the base station comprises a 5G communication module, a data processing module and a shunting functional module; wherein the 5G communication module is configured to perform network communication with a terminal device. Figure 4
[0125] In an embodiment of the present application, after different receiving ends receive data, they complete the extraction of data required by themselves, update information required to be fed back to the main controller to the corresponding position, and then return the packet, i.e. the feedback data packet, to the base station side. After the base station receives all the data packets, the shunting functional module and the data processing module built-in the base station are used to analyze the packet, extract the information of the corresponding update position according to the source of the packet, and form a completed data packet, i.e. the second data packet, which is fed back to the main controller. Figure 4
[0126] It should be noted that when the feedback data packet is returned to the base station, since there is no data interaction between different receiving ends, the returned feedback data packet only updates part of the returned packet. At this time, the return address of the feedback data packet needs to be modified from the next receiving end address in the wired mode to the data processing module address or the main controller address on the base station side.
[0127] It should be noted that, Figure 5 Figure 2 is a schematic diagram of a feedback data packet returned by a terminal provided in the present application. In the figure, Figure 5 each row represents each feedback data packet returned by a terminal; the feedback data packet comprises a packet header, identifiers corresponding to receiving ends, such as receiving 1 identifier, receiving 2 identifier, receiving 3 identifier and receiving 4 identifier, and data corresponding to each receiving end, such as 1 data, 2 data, 3 data and 4 data. The shaded part in each row represents the updated part of the receiving end.
[0128] In an embodiment of the present application, after the feedback data packet is returned to the base station, the receiving end information, such as IP address, MAC address and the like, is used to determine which receiving end the returned feedback data packet is returned to, and then the mapping relationship between the terminal address and the data packet identifier is used to determine which receiving end the returned feedback data packet is returned to. It should be noted that, Figure 6 Figure 3 is a mapping relationship table of address, receiving identifier and data packet provided in the present application. As shown in the figure,Figure 6 As shown in the figure, the terminal address table includes terminal address 1, terminal address 2, terminal address 3 and terminal address 4; the data packet identification table includes data packet identification 1, data packet identification 2, data packet identification 3 and data packet identification 4; and the data packets include data packet 1, data packet 2, data packet 3 and data packet 4. Among them, terminal address 1, data packet identification 1 and data packet 1 correspond; receive 1 identification and 1 data are separated from data packet 1; terminal address 2, data packet identification 2 and data packet 2 correspond; receive 2 identification and 2 data are separated from data packet 2; terminal address 3, data packet identification 3 and data packet 3 correspond; receive 3 identification and 3 data are separated from data packet 3; terminal address 4, data packet identification 4 and data packet 4 correspond; and receive 4 identification and 4 data are separated from data packet 4. Further, the base station combines the separated receive identification and data to obtain a data packet as shown in the figure, and the base station returns the data packet as shown in the figure to the host controller. Figure 7 As shown in the figure, the terminal address table includes terminal address 1, terminal address 2, terminal address 3 and terminal address 4; the data packet identification table includes data packet identification 1, data packet identification 2, data packet identification 3 and data packet identification 4; and the data packets include data packet 1, data packet 2, data packet 3 and data packet 4. Among them, terminal address 1, data packet identification 1 and data packet 1 correspond; receive 1 identification and 1 data are separated from data packet 1; terminal address 2, data packet identification 2 and data packet 2 correspond; receive 2 identification and 2 data are separated from data packet 2; terminal address 3, data packet identification 3 and data packet 3 correspond; receive 3 identification and 3 data are separated from data packet 3; terminal address 4, data packet identification 4 and data packet 4 correspond; and receive 4 identification and 4 data are separated from data packet 4. Further, the base station combines the separated receive identification and data to obtain a data packet as shown in the figure, and the base station returns the data packet as shown in the figure to the host controller. Figure 7 As shown in the figure, the terminal address table includes terminal address 1, terminal address 2, terminal address 3 and terminal address 4; the data packet identification table includes data packet identification 1, data packet identification 2, data packet identification 3 and data packet identification 4; and the data packets include data packet 1, data packet 2, data packet 3 and data packet 4. Among them, terminal address 1, data packet identification 1 and data packet 1 correspond; receive 1 identification and 1 data are separated from data packet 1; terminal address 2, data packet identification 2 and data packet 2 correspond; receive 2 identification and 2 data are separated from data packet 2; terminal address 3, data packet identification 3 and data packet 3 correspond; receive 3 identification and 3 data are separated from data packet 3; terminal address 4, data packet identification 4 and data packet 4 correspond; and receive 4 identification and 4 data are separated from data packet 4. Further, the base station combines the separated receive identification and data to obtain a data packet as shown in the figure, and the base station returns the data packet as shown in the figure to the host controller.
[0129] It should be noted that the receive end identification is a special identification of the industrial Ethernet protocol, and the traditional wired process does not have the analysis capability thereof. After completing the data packet analysis and determining the corresponding position of the packet modification, the data including the identification and the data payload part need to be extracted and combined to form the final second data packet.
[0130] In some embodiments, the method provided by the embodiments of the present application includes the following contents:
[0131] Step D1, the network device estimates the maximum time delay of each terminal in the ring network receiving the first data packet.
[0132] In some embodiments, step D1, the network device estimates the maximum time delay of each terminal in the ring network receiving the first data packet, can be implemented by steps D11 to D12, or can be implemented by steps D13 to D14:
[0133] Step D11, the network device obtains a first parameter in each terminal that can affect each terminal receiving the first data packet.
[0134] The first parameter includes the distance between each terminal and the network device, the network state of each terminal, and the packet capability of each terminal.
[0135] In the embodiments of the present application, the network state of each terminal includes but is not limited to the signal to interference plus noise ratio (SINR) of each terminal, and the reference signal receiving power (RSRP) of each terminal.
[0136] Step D12, the network device determines the maximum time delay based on the first parameter.
[0137] In the embodiments of the present application, the base station estimates the maximum time delay of the data packet to reach each receiving end according to the network state, the distance between the terminal and the base station, and the packet time of each level, and sends the sending time and the estimated receiving time to the terminal with the data packet. The terminal sends the data packet in a certain time interval according to the estimated maximum time delay, the sending time and the sequence of the ring network in which the terminal is located, so as to achieve the effect of receiving the wired ring network.
[0138] Step D13, the network device obtains the receiving time delay of the first terminal receiving the third data packet.
[0139] The third data packet is the last data packet received by each terminal before receiving the first data packet.
[0140] Step D14, the network device determines the maximum time delay based on the receiving time delay.
[0141] In the embodiments of the present application, the network device can use the receiving time delay of the last data packet as the receiving time delay of the next data packet.
[0142] Figure 8 is a flowchart of a data transmission method provided by the present application. The main controller broadcasts a first data packet to receiving end 1, receiving end 2, receiving end 3 and receiving end 4 through the base station; the first data packet includes a packet header, A, B, C and D; receiving end 1 updates A in the first data packet after receiving the first data packet, and sends a feedback data packet with updated A to the base station at a first trigger time; receiving end 2 updates B in the first data packet after receiving the first data packet, and sends a feedback data packet with updated B to the base station at a second trigger time; receiving end 3 updates C in the first data packet after receiving the first data packet, and sends a feedback data packet with updated C to the base station at a third trigger time; receiving end 4 updates D in the first data packet after receiving the first data packet, and sends a feedback data packet with updated D to the base station at a fourth trigger time; the base station collects the feedback data packets from each receiving end, extracts and combines the updated parts in the data packets to form a final second data packet, and returns the second data packet to the main controller. Here, the first trigger time, the second trigger time, the third trigger time and the fourth trigger time are different; sending the feedback data packet at different trigger times achieves the effect of receiving the industrial ring wired network in sequence under wireless conditions.
[0143] The embodiments of the present application provide a first terminal, which forms a ring network with at least two second terminals, and the first terminal can be used to achieve Figure 3 The corresponding embodiments provide a data transmission method, which is described with reference to Figure 9 The first terminal 90 includes:
[0144] The first receiving module 901 is configured to receive a first data packet sent by a network device; wherein the first data packet comprises a sending time of the first data packet and a maximum delay of the network device estimated for the first data packet to reach each terminal in a ring network;
[0145] The first processing module 902 is configured to determine a feedback time for the first terminal to send a feedback data packet to the network device based on at least the maximum delay and the sending time; wherein the feedback time corresponding to each terminal in the ring network is different.
[0146] The first sending module 903 is configured to send the feedback data packet to the network device according to the feedback time.
[0147] In other embodiments of the present application, the first processing module 902 is configured to determine a receiving time corresponding to each terminal based on the maximum delay and the sending time of the first terminal receiving the first data packet.
[0148] The first processing module 902 is configured to determine a feedback sequence for each terminal to send the feedback data packet to the network device based on the receiving time; wherein the feedback sequence corresponding to each terminal in the ring network is different.
[0149] The first processing module 902 is configured to determine the feedback time corresponding to the first terminal based on the feedback sequence corresponding to each terminal and a preset time interval between adjacent feedback sequences.
[0150] In other embodiments of the present application, the first processing module 902 is configured to determine a ring sequence corresponding to each terminal based on a position of each terminal in the ring network in a case that the receiving time corresponding to the first terminal and the second terminal is the same.
[0151] The first processing module 902 is configured to determine the feedback sequence corresponding to each terminal based on the receiving time and the ring sequence corresponding to each terminal.
[0152] The above description of the device embodiments is similar to the description of the method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the device embodiments of the present application, please refer to the description of the method embodiments for understanding.
[0153] It should be noted that, in the embodiments of the present application, if the data transmission method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a plurality of instructions for causing an end device to execute all or part of the method of each embodiment of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk, and various media that can store program codes. Thus, the embodiments of the present application are not limited to any specific hardware and software combination.
[0154] The embodiments of the present application provide a network device, which can be used to implement Figure 3 The data transmission method provided by the corresponding embodiments is described with reference to Figure 10 As shown in the figure, the network device 100 includes:
[0155] The second sending module 1001 is configured to send a first data packet to a first terminal and at least two second terminals; wherein the first terminal and the at least two second terminals form a ring network; the first data packet includes a sending time of the first data packet and a maximum delay of the network device estimated for the first data packet to reach each terminal in the ring network;
[0156] The second receiving module 1002 is configured to receive a feedback data packet sent by each terminal in the ring network at different feedback times; the corresponding feedback time of each terminal in the ring network is different;
[0157] The second processing module 1003 is configured to generate a second data packet based on the feedback data packet sent by each terminal;
[0158] The second sending module 1001 is configured to send the second data packet to a controller.
[0159] In other embodiments of the present application, the second sending module 1001 is further configured to broadcast the first data packet to the first terminal and the at least two second terminals.
[0160] In other embodiments of the present application, the second processing module 1003 is configured to determine the corresponding ring network order of each terminal based on the position of each terminal in the ring network;
[0161] The second sending module 1001 is configured to send the first data packet to the first terminal;
[0162] The second sending module 1001 is configured to send the first data packet to the second terminal after the network device receives the feedback data packet sent by the first terminal, wherein the ring network sequence of the first terminal is before the ring network sequence of the second terminal.
[0163] In other embodiments of the present application, the second processing module 1003 is configured to estimate the maximum time delay for each terminal in the ring network to receive the first data packet.
[0164] In other embodiments of the present application, the second obtaining module 1004 is configured to obtain a first parameter capable of affecting each terminal to receive the first data packet, wherein the first parameter comprises a distance between each terminal and the network device, a network state of each terminal, and a packet capability of each terminal.
[0165] The second processing module 1003 is further configured to determine the maximum time delay based on the first parameter.
[0166] In other embodiments of the present application, the second obtaining module 1004 is configured to obtain a receiving time delay of the first terminal to receive a third data packet, wherein the third data packet is a last data packet received by each terminal before receiving the first data packet.
[0167] The second processing module 1003 is further configured to determine the maximum time delay based on the receiving time delay.
[0168] In other embodiments of the present application, the second obtaining module 1004 is configured to obtain a terminal identifier of each terminal.
[0169] The second processing module 1003 is further configured to compare the feedback data packet sent by each terminal with the first data packet to obtain updated payload data in each feedback data packet, wherein the first data packet comprises the payload data corresponding to each terminal.
[0170] The second processing module 1003 is further configured to assemble the updated payload data according to the terminal identifier to obtain the second data packet.
[0171] The above device embodiments are similar to the description of the above method embodiments, and have similar beneficial effects to the method embodiments. For technical details not disclosed in the device embodiments of the present application, please refer to the description of the method embodiments of the present application.
[0172] It should be noted that, in the embodiments of the present application, if the data transmission method described above is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a plurality of instructions for causing an end device to execute all or part of the method of each embodiment of the present application. The storage medium described above includes: a U disk, a mobile hard disk, a ROM, a magnetic disk or an optical disk, and various media that can store program codes. Thus, the embodiments of the present application are not limited to any specific hardware and software combination.
[0173] Figure 11 is a schematic structural diagram of a communication device 1100 provided by the embodiments of the present application. The communication device can be a first terminal or a network device. Figure 11 The communication device 1100 shown includes a first processor 1110, which can call and run a computer program from a memory to implement the method in the embodiments of the present application.
[0174] Optionally, as shown in Figure 11 The communication device 1100 can also include a first memory 1120. The first processor 1110 can call and run a computer program from the first memory 1120 to implement the method in the embodiments of the present application.
[0175] The first memory 1120 can be a separate device independent of the first processor 1110, or can be integrated in the first processor 1110.
[0176] Optionally, as shown in Figure 11 The communication device 1100 can also include a transceiver 1130, and the first processor 1111 can control the transceiver 1130 to communicate with other devices, specifically, to send information or data to other devices, or to receive information or data sent by other devices.
[0177] The transceiver 1130 can include a transmitter and a receiver. The transceiver 1130 can further include an antenna, and the number of antennas can be one or more.
[0178] Optionally, the communication device 1100 can be a network device according to the embodiments of the present application, and the communication device 1100 can implement the corresponding processes in the methods of the embodiments of the present application implemented by the network device. For the sake of brevity, it will not be repeated here.
[0179] Optionally, the communication device 1100 can be a first terminal of the embodiments of the present application, and the communication device 1100 can implement the corresponding processes implemented by the first terminal in the various methods of the embodiments of the present application. For brevity, details are not repeated here.
[0180] Figure 12 is a schematic block diagram of a communication system 1200 provided by the embodiments of the present application. As shown in the figure, the communication system 1200 includes a network device 120 and a terminal device 110. Figure 12
[0181] The network device 120 can be used to implement the corresponding functions implemented by the network device in the above method, and the terminal device 110 can be used to implement the corresponding functions implemented by the first terminal in the above method. For brevity, details are not repeated here.
[0182] It should be understood that the processor of the embodiments of the present application can be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above method embodiment can be completed by integrated logic circuits or instructions in the form of software in the processor. The processor described above can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component. The disclosed methods, steps and logic block diagrams in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can be any conventional processor. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as a hardware coding processor for execution, or a combination of hardware and software modules in the coding processor for execution. The software module can be located in a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, and other mature storage media in the art. The storage medium is located in the storage, and the processor reads the information in the storage, and combines the hardware to complete the steps of the above method.
[0183] As an embodiment, the processor can include one or more general central processing units (Central Processing Unit, CPU). Each of these processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. The processor here can refer to one or more devices, circuits, and / or processing cores for processing data (such as computer execution instructions).
[0184] It is to be understood that the memory in the embodiments of the present application can be a volatile memory or a nonvolatile memory, or can include both volatile and nonvolatile memory. Among them, the nonvolatile memory can be ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically EPROM (EEPROM), or flash memory. The volatile memory can be a Random Access Memory (RAM) used as an external cache. By way of example, and not limitation, many forms of RAM can be used, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DR RAM). It should be noted that the memory of the system and method described herein is intended to include, but not be limited to, these and any other suitable types of memory.
[0185] It should be understood that the above-mentioned memory is exemplary but not limiting, for example, the memory in the embodiments of the present application can also be static RAM (SRAM), dynamic RAM (DRAM), synchronous dynamic RAM (SDRAM), double data rate synchronous dynamic RAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synch link DRAM (SLDRAM), and Direct Rambus RAM (DR RAM), etc. That is, the memory in the embodiments of the present application is intended to include, but not limited to, these and any other suitable types of memory.
[0186] The embodiment of the present application further provides a computer readable storage medium for storing the computer program.
[0187] Optionally, the computer readable storage medium can be applied to the network device / first terminal in the embodiment of the present application, and the computer program makes the computer execute the corresponding process realized by the network device / first terminal in the various methods of the embodiment of the present application, which is not described here again for the sake of brevity.
[0188] In the above embodiment, the method can be realized by software, hardware, firmware or any combination thereof, in whole or in part. When realized by software, the method can be realized in whole or in part in the form of a computer program product.
[0189] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the embodiment of the present 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, for example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) mode. The computer readable storage medium can be any available medium that the computer can store or the data storage device such as server, data center, etc. integrated with one or more available media. The available medium can be a magnetic medium (for example, floppy disk, hard disk, magnetic tape), an optical medium (for example, DVD) or a semiconductor medium (for example, solid state disk (SSD)) and the like.
[0190] The above describes the method for data transmission, network device, first terminal and computer readable storage medium provided by the embodiment of the present application in detail, the principle and implementation mode of the present application are described in this paper, and the above embodiment is only used to help understand the method and core idea of the present application; at the same time, for those skilled in the art, according to the idea of the present application, the specific implementation mode and application range will be changed, and the above description should not be understood as the limitation of the present application.
[0191] It should be understood that every feature, structure, or characteristic described above that is mentioned in connection with an "embodiment" or "one embodiment" or "the application embodiment" or "the foregoing embodiment" or "some embodiments" or "some embodiments" means that the feature, structure, or characteristic is included in at least one embodiment of the application. Therefore, appearances of the phrases "in one embodiment" or "in an embodiment" or "in the application embodiment" or "in the foregoing embodiment" or "in some embodiments" or "in some embodiments" throughout the specification do not necessarily refer to the same embodiment. Furthermore, the features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that the sequence of the steps in the above-described processes does not mean the order of execution, and the execution order of the steps should be determined according to the functions and inherent logic of the steps, and should not constitute any limitation on the implementation process of the embodiments of the application. The sequence of the above-described embodiments of the application is only for description, and does not represent the advantages or disadvantages of the embodiments.
[0192] Unless otherwise specified, the first terminal / network device performs any step in the embodiments of the application can be that the processor of the first terminal / network device performs the step. Unless otherwise specified, the embodiments of the application do not limit the order of the steps performed by the first terminal / network device. In addition, the way of processing data in different embodiments can be the same method or different method.
[0193] In several embodiments provided by the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There can be another division manner in actual implementation. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the various components shown or discussed can be through some interfaces, indirect coupling or communication connection between devices or units, which can be electrical, mechanical or in other forms.
[0194] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units; they can be located in one place or distributed on multiple network units; and some or all of the units can be selected according to actual needs to achieve the purpose of the embodiments.
[0195] In addition, each of the functional units in each embodiment of the present application can be integrated in one processing unit, or each unit can be separately implemented as a unit, or two or more units can be integrated in one unit; the integrated unit can be implemented in the form of hardware or in the form of hardware plus software function unit.
[0196] The methods disclosed in the several method embodiments of the present application can be combined arbitrarily to obtain new method embodiments, without conflict. The features disclosed in the several product embodiments of the present application can be combined arbitrarily to obtain new product embodiments, without conflict.
[0197] The features disclosed in the several method or device embodiments of the present application can be combined arbitrarily to obtain new method or device embodiments, without conflict.
[0198] Those of ordinary skill in the art can understand that all or part of the steps of the above method embodiments can be completed by a program instructing related hardware, the aforementioned program can be stored in a computer storage medium, and the program, when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes mobile storage devices, ROM, magnetic discs or optical discs, and various storage media that can store program codes.
[0199] Alternatively, the aforementioned integrated unit of the present application, if implemented in the form of a software function module and sold or used as an independent product, can also be stored in a computer storage medium. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of a software product, and the computer software product is stored in a storage medium, and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the various embodiments of the present application. The aforementioned storage medium includes mobile storage devices, ROM, magnetic discs or optical discs, and various storage media that can store program codes.
[0200] The singular forms "a", "an" and "the" used in the embodiments of the present application and the appended claims are intended to include plural forms, unless the context clearly indicates otherwise.
[0201] It should be noted that, in each of the embodiments of the present application, all steps can be performed or part of the steps can be performed, as long as a complete technical solution is formed.
[0202] The above merely provides the implementation of the present application, but the protection scope of the present application is not limited thereto, any person skilled in the art can easily think of the change or replacement within the technical range disclosed by the present application, which should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A data transmission method, characterized by, The method is applied to a first terminal, the first terminal and at least two second terminals form a ring network, and the method comprises the following steps: Receiving a first data packet sent by a network device; wherein the first data packet comprises a sending time of the first data packet and a maximum time delay of the first data packet estimated by the network device to reach each terminal in the ring network; Determining a feedback time of the first terminal for sending a feedback data packet to the network device based on at least the maximum time delay and the sending time; wherein the feedback time corresponding to each terminal in the ring network is different; Sending the feedback data packet to the network device according to the feedback time.
2. The method of claim 1, wherein, The step of determining the feedback time of the first terminal for sending the feedback data packet to the network device based on at least the maximum time delay and the sending time comprises the following steps: Determining a receiving time corresponding to each terminal based on the maximum time delay of each terminal for receiving the first data packet and the sending time; Determining a feedback sequence of each terminal for sending the feedback data packet to the network device based on the receiving time; wherein the feedback sequence corresponding to each terminal in the ring network is different; Determining the feedback time corresponding to the first terminal based on the feedback sequence corresponding to each terminal and a preset time interval between adjacent feedback sequences.
3. The method of claim 2, wherein, The step of determining the feedback sequence of each terminal for sending the feedback data packet to the network device based on the receiving time comprises the following steps: In the case that the receiving time corresponding to the first terminal and the second terminal is the same, determining a ring sequence corresponding to each terminal based on the position of each terminal in the ring network; Determining the feedback sequence corresponding to each terminal based on the receiving time and the ring sequence corresponding to each terminal.
4. A data transmission method, characterized by, The method is applied to a network device, and the method comprises the following steps: Sending a first data packet to a first terminal and at least two second terminals; wherein the first terminal and the at least two second terminals form a ring network; the first data packet comprises a sending time of the first data packet and a maximum time delay of the first data packet estimated by the network device to reach each terminal in the ring network; Receiving a feedback data packet sent by each terminal in the ring network at different feedback times; wherein the feedback time corresponding to each terminal in the ring network is different; Generating a second data packet based on the feedback data packet sent by each terminal; Sending the second data packet to a controller.
5. The method of claim 4, wherein, The step of sending the first data packet to the first terminal and the at least two second terminals comprises the following steps: Broadcasting the first data packet to the first terminal and the at least two second terminals.
6. The method of claim 4, wherein, The step of sending the first data packet to the first terminal and the at least two second terminals comprises the following steps: Determining a ring sequence corresponding to each terminal based on the position of each terminal in the ring network; Sending the first data packet to the first terminal; After the network device receives the feedback data packet sent by the first terminal, sending the first data packet to the second terminal; wherein the ring sequence of the first terminal is before the ring sequence of the second terminal.
7. The method of claim 4, wherein, The method further comprises the following steps: Estimating the maximum time delay of each terminal in the ring network for receiving the first data packet.
8. The method of claim 7, wherein, The estimating the maximum time delay for each terminal in the ring network to receive the first data packet comprises: obtaining a first parameter capable of affecting the first terminal to receive the first data packet, wherein the first parameter comprises a distance between the first terminal and a network device, a network state of the first terminal, and a packet capability of the first terminal; determining the maximum time delay based on the first parameter.
9. The method of claim 7, wherein, The estimating the maximum time delay for each terminal in the ring network to receive the first data packet comprises: obtaining a receiving time delay of the first terminal to receive a third data packet, wherein the third data packet is a last data packet received by the first terminal before the first data packet is received; determining the maximum time delay based on the receiving time delay.
10. The method according to any one of claims 4 to 9, characterized in that, The generating the second data packet based on the feedback data packet sent by each terminal comprises: obtaining a terminal identifier of each terminal; comparing the feedback data packet sent by each terminal with the first data packet to obtain updated payload data in each feedback data packet, wherein the first data packet comprises payload data corresponding to each terminal; assembling the updated payload data according to the terminal identifier to obtain the second data packet.
11. A first terminal, characterized by The first terminal and at least two second terminals form a ring network, and the first terminal comprises: a first receiving module configured to receive a first data packet sent by a network device, wherein the first data packet comprises a sending time of the first data packet and a maximum time delay estimated by the network device for each terminal in the ring network to receive the first data packet; a first processing module configured to determine a feedback time for the first terminal to send a feedback data packet to the network device based on at least the maximum time delay and the sending time, wherein the feedback time corresponding to each terminal in the ring network is different; a first sending module configured to send the feedback data packet to the network device according to the feedback time.
12. A network device, comprising: The network device comprises: a second sending module configured to send a first data packet to a first terminal and at least two second terminals, wherein the first terminal and the at least two second terminals form a ring network, and the first data packet comprises a sending time of the first data packet and a maximum time delay estimated by the network device for the first data packet to arrive at each terminal in the ring network; a second receiving module configured to receive a feedback data packet sent by each terminal in the ring network at different feedback times, wherein the feedback time corresponding to each terminal in the ring network is different; a second processing module configured to generate a second data packet based on the feedback data packet sent by each terminal; a second sending module configured to send the second data packet to a controller.
13. A first terminal, characterized by The first terminal comprises: a first memory configured to store executable instructions; a first processor configured to execute the executable instructions stored in the first memory to implement the data transmission method in any one of claims 1 to 3.
14. A network device, comprising: The network device comprises: a second memory configured to store executable instructions; a second processor configured to execute the executable instructions stored in the second memory to implement the data transmission method in any one of claims 4 to 10.
15. A computer-readable storage medium, characterized in that, The computer readable storage medium stores one or more programs, which can be executed by one or more processors to implement the data transmission method as claimed in any one of claims 1 to 3 or 4 to 10.
Citation Information
Patent Citations
Remote configuration method and device for E1 looped network address code and storage medium
CN112615942A
Intelligent box transformer substation with automatic measurement and control function and measurement and control system thereof
CN114142607A