CN110913441B - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN110913441B
CN110913441B CN201911209937.9A CN201911209937A CN110913441B CN 110913441 B CN110913441 B CN 110913441B CN 201911209937 A CN201911209937 A CN 201911209937A CN 110913441 B CN110913441 B CN 110913441B
Authority
CN
China
Prior art keywords
router
data
routers
data transmission
target router
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911209937.9A
Other languages
Chinese (zh)
Other versions
CN110913441A (en
Inventor
苏邓海
朱余浩
董浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Gongjin Electronics Co Ltd
Original Assignee
Shenzhen Gongjin Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Gongjin Electronics Co Ltd filed Critical Shenzhen Gongjin Electronics Co Ltd
Priority to CN201911209937.9A priority Critical patent/CN110913441B/en
Publication of CN110913441A publication Critical patent/CN110913441A/en
Application granted granted Critical
Publication of CN110913441B publication Critical patent/CN110913441B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0055Transmission or use of information for re-establishing the radio link
    • H04W36/0072Transmission or use of information for re-establishing the radio link of resource information of target access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/08Reselecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/16Performing reselection for specific purposes
    • H04W36/22Performing reselection for specific purposes for handling the traffic

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a data transmission method and a data transmission device, which are applied to wireless relay equipment, wherein the data transmission method comprises the following steps: determining a target router within a first time period from a plurality of routers; receiving data; the data is sent by a target router or sent by a device end; judging whether the data accords with a data transmission rule or not; and if the data accords with the data transmission rule, sending the data to the equipment end or the target router. Therefore, the wireless relay device can establish wireless connection with a plurality of routers, determine one router from the plurality of connected routers as a network channel, and the device end can only perform data transmission with the router, so that when the server connected at present is poor in signal or the router is damaged, the device end can still be ensured to maintain a better network signal.

Description

Data transmission method and device
Technical Field
The present application relates to the field of data communication, and in particular, to a data transmission method and apparatus.
Background
Various terminal devices in a household are generally accessed to a network through a router, in other words, the router can generally provide wireless access to the terminal devices in the household for connection. However, the wireless coverage of the router is limited, and therefore, the coverage of the router can be extended by a wireless relay device (Repeater). The existing wireless relay equipment is usually only in wireless connection with an uplink router, and when the router connected with the wireless relay equipment has the conditions of poor signals or damaged routers and the like, the terminal equipment cannot be guaranteed to always keep good network signals.
Disclosure of Invention
An object of the embodiments of the present application is to provide a data transmission method and apparatus, so as to solve a technical problem that it is not guaranteed that a terminal device always maintains a good network signal.
In order to achieve the above purpose, the technical solutions provided in the embodiments of the present application are as follows:
in a first aspect, an embodiment of the present application provides a data transmission method, which is applied to a wireless relay device, and includes: determining a target router within a first time period from a plurality of routers; receiving data; the data is sent by the target router or sent by the equipment end; judging whether the data accords with a data transmission rule or not; and if the data accords with the data transmission rule, sending the data to a device end or sending the data to the target router. Therefore, the wireless relay device can establish wireless connection with a plurality of routers, determine one router from the plurality of connected routers as a network channel, and the device end can only perform data transmission with the router, so that when the server connected at present is poor in signal or the router is damaged, the device end can still be ensured to maintain a better network signal.
In an optional embodiment of the present application, the determining whether the data conforms to a data transmission rule includes: judging whether the data is the data sent by the target router; or judging whether the data is the data sent to the target router. Therefore, whether the data is the data in the data transmission process between the target router and the equipment end can be judged, and the data transmission between only one router in the plurality of routers and the equipment end is ensured, so that errors in the data transmission process are reduced.
In an optional embodiment of the present application, the determining whether the data conforms to a data transmission rule includes: judging whether the data are wireless authentication data from the routers or not; wherein the wireless authentication data is used to maintain one of the plurality of routers in communication connection with the wireless relay device. Therefore, although only one network channel can carry out data transmission, other routers connected with the wireless relay equipment can still maintain wireless connection with the wireless relay equipment, and therefore rapid switching can be guaranteed when the network channel needs to be switched.
In an optional embodiment of the present application, the determining, from the plurality of routers, a target router within a first time period includes: and determining the router with the highest signal strength in the plurality of routers as the target router. Therefore, the router with the highest signal strength among the routers is used as the current network channel, that is, the channel switching among the routers can be performed to ensure that the router with the best signal strength always performs data transmission with the device side.
In an optional embodiment of the present application, the determining, from the plurality of routers, a target router within a first time period includes: when a router connected by 5G exists in the plurality of routers, determining the router connected by 5G as the target router. Therefore, the router connected with the 5G in the plurality of routers is used as the current network channel, that is, the channel switching among the plurality of routers can be performed, so that the router connected with the 5G is guaranteed to perform data transmission preferentially with the device side, and the signal is better.
In an optional embodiment of the present application, the determining, from the plurality of routers, a target router within a first time period includes: sending a control message protocol to the plurality of routers at regular time; receiving a plurality of response messages which are returned by the routers and correspond to the control message protocol; and determining the router with the lowest delay for receiving the response message in the plurality of routers as the target router. Therefore, the router with the smallest network delay in the plurality of routers is used as the current network channel, that is, the router with the smallest network delay and the device side can always perform data transmission by switching the channels among the plurality of routers.
In an optional embodiment of the present application, the determining, from the plurality of routers, a target router within a first time period includes: determining the target router by adopting at least two strategies of a first strategy, a second strategy or a third strategy; wherein the first policy is: determining a router with the highest signal strength in the plurality of routers as the target router; the second policy is: when a router connected by 5G exists in the plurality of routers, determining the router connected by 5G as the target router; the third policy is: sending a control message protocol to the plurality of routers at regular time; receiving a plurality of response messages which are returned by the routers and correspond to the control message protocol; and determining the router with the lowest delay for receiving the response message in the plurality of routers as the target router. Therefore, two or three strategies of the first strategy, the second strategy and the third strategy can be integrated, so that the optimal router is selected as a network channel, and the strongest signal of the current equipment end is ensured.
In a second aspect, an embodiment of the present application provides a data transmission apparatus, which is applied to a wireless relay device, and includes: a determining module for determining a target router within a first time period from a plurality of routers; the receiving module is used for receiving data; the data is sent by the target router or sent by the equipment end; the judging module is used for judging whether the data accords with a data transmission rule or not; and the sending module is used for sending the data to a device end or the target router if the data conforms to the data transmission rule. Therefore, the wireless relay device can establish wireless connection with a plurality of routers, and determine one router from the plurality of connected routers as a network channel by using the determination module, and the device end can only perform data transmission with the router, so that when the server connected at present is poor in signal or the router is damaged, the device end can still be ensured to maintain a better network signal.
In an optional embodiment of the present application, the determining module is further configured to: judging whether the data is the data sent by the target router; or judging whether the data is the data sent to the target router. Therefore, the judgment module can be used for ensuring that only one router in the plurality of routers performs data transmission with the equipment end by judging whether the data is the data in the data transmission process between the target router and the equipment end, so that errors in the data transmission process are reduced.
In an optional embodiment of the present application, the determining module is further configured to: judging whether the data are wireless authentication data from the routers or not; wherein the wireless authentication data is used to maintain one of the plurality of routers in communication connection with the wireless relay device. Therefore, although only one network channel can carry out data transmission, other routers connected with the wireless relay equipment can still maintain wireless connection with the wireless relay equipment, and therefore rapid switching can be guaranteed when the network channel needs to be switched.
In an optional embodiment of the present application, the determining module is further configured to: and determining the router with the highest signal strength in the plurality of routers as the target router. Therefore, the router with the highest signal strength among the routers is used as the current network channel, that is, the channel switching among the routers can be performed to ensure that the router with the best signal strength always performs data transmission with the device side.
In an optional embodiment of the present application, the determining module is further configured to: when a router connected by 5G exists in the plurality of routers, determining the router connected by 5G as the target router. Therefore, the router connected with the 5G in the plurality of routers is used as the current network channel, that is, the channel switching among the plurality of routers can be performed, so that the router connected with the 5G is guaranteed to perform data transmission preferentially with the device side, and the signal is better.
In an optional embodiment of the present application, the determining module is further configured to: sending a control message protocol to the plurality of routers at regular time; receiving a plurality of response messages which are returned by the routers and correspond to the control message protocol; and determining the router with the lowest delay for receiving the response message in the plurality of routers as the target router. Therefore, the router with the smallest network delay in the plurality of routers is used as the current network channel, that is, the router with the smallest network delay and the device side can always perform data transmission by switching the channels among the plurality of routers.
In an optional embodiment of the present application, the determining module is further configured to: determining the target router by adopting at least two strategies of a first strategy, a second strategy or a third strategy; wherein the first policy is: determining a router with the highest signal strength in the plurality of routers as the target router; the second policy is: when a router connected by 5G exists in the plurality of routers, determining the router connected by 5G as the target router; the third policy is: sending a control message protocol to the plurality of routers at regular time; receiving a plurality of response messages which are returned by the routers and correspond to the control message protocol; and determining the router with the lowest delay for receiving the response message in the plurality of routers as the target router. Therefore, two or three strategies of the first strategy, the second strategy and the third strategy can be integrated, so that the optimal router is selected as a network channel, and the strongest signal of the current equipment end is ensured.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory, and a bus; the processor and the memory are communicated with each other through the bus; the memory stores program instructions executable by the processor, the processor invoking the program instructions capable of performing the data transfer method as in the first aspect.
In a fourth aspect, embodiments of the present application provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the data transmission method of the first aspect.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic diagram of a data transmission system according to an embodiment of the present application;
fig. 2 is a flowchart of a data transmission method according to an embodiment of the present application;
fig. 3 is a flowchart of a method for determining a target router according to an embodiment of the present application;
fig. 4 is a block diagram of a data transmission apparatus according to an embodiment of the present application;
fig. 5 is a block diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Various devices in the household generally access the network through a router, but the wireless coverage of the router is limited, so the coverage of the router signal can be extended through a wireless relay device (Repeater). The wireless relay equipment can be used as a wireless access point to play a role in relaying in network connection, and can realize relay and amplification of router signals, so that the coverage range of a wireless network is extended.
However, the existing wireless relay device is usually only wirelessly connected to an uplink router, and therefore, when the router connected to the wireless relay device has poor signals or the router is damaged, it is not guaranteed that the device side always maintains good network signals.
Based on the above analysis, the inventor proposes a data transmission system, please refer to fig. 1, where fig. 1 is a schematic diagram of a data transmission system according to an embodiment of the present application, and the data transmission system 100 may include: a wireless relay device 101, a plurality of device peers 102, and a plurality of routers 103. Fig. 1 only shows one device end 102 and three routers 103, it can be understood that fig. 1 is only an example provided in the embodiment of the present application, and the number of the device ends 102 and the routers 103 is not specifically limited in the embodiment of the present application, and those skilled in the art may make appropriate adjustments according to actual situations.
In the data transmission system provided in the embodiment of the present application, the device end 102 may directly perform data transmission with the router 103, and when the device end 102 is not within a range capable of receiving a signal of the router 103, the device end 102 may perform data transmission with the router 103 through the wireless relay device 101.
As shown in fig. 1, the device side 102 is out of the signal range of the three routers 103, and at this time, the device side 102 cannot perform data transmission with any router 103 in the three routers 103. Thus, by the wireless relay apparatus 101 disposed in the middle of the three routers 103, the signal ranges of the three routers 103 can be expanded respectively, so that the apparatus side 102 can perform data transmission with the three routers 103 respectively under different situations. The wireless relay device 101 may be wirelessly connected to the plurality of routers 103 (for example, the connection mode includes WIFI 5G connection, WIFI 2.4G connection, wired ethernet connection, and the like), but the wireless relay device 101 only selects one connected router 103 as a network channel for data transmission in a certain time period, and the selected router 103 is a target router. In addition, the wireless relay device 101 may perform dynamic switching of network channels among the plurality of connected routers 103 according to a switching scheme configured in advance by the user, so as to ensure that the signal received by the device 102 is strongest.
It should be noted that the positions of the device end 102, the wireless relay device 101, and the router 103 are not specifically limited in the embodiment of the present application, and the position shown in fig. 1 is only an example, and those skilled in the art may make appropriate adjustments according to actual situations. For example: in a house, the routers are arranged in the living room and the toilet, but the bedroom cannot receive signals of the routers arranged in the living room and the toilet, so that a wireless relay device can be arranged in the bedroom, and a person can still have a strong signal when using a device end (such as a computer, a mobile phone and the like) in the bedroom by expanding the signal range of the router in the living room or the toilet to the bedroom.
Based on the data transmission system, the embodiment of the present application provides a data transmission method, in which a wireless relay device performs dynamic switching of network channels according to a real-time situation, and only one connected router is selected as a network channel for data transmission at the same time, so that when a server currently connected has poor signals or the router is damaged, it can still be ensured that a device side maintains good network signals.
The data transmission method provided by the embodiment of the application is described in detail as follows:
referring to fig. 2, fig. 2 is a flowchart of a data transmission method according to an embodiment of the present application, where the data transmission method includes the following steps:
step S201: from the plurality of routers, a target router within a first time period is determined.
Step S202: data is received.
Step S203: and judging whether the data conforms to the data transmission rule.
Step S204: and if the data accords with the data transmission rule, sending the data to the equipment end or the target router.
For example, first, the wireless relay apparatus may determine, among a plurality of routers connected to itself, a target router as a network path in a current time period (i.e., in the first time period in step S201). There are various ways for the wireless relay device to determine the target router, for example: receiving an instruction of a user, and determining a router as a target router according to the instruction; or, determining the target router according to a rule preset by the user, for example: a router with the maximum signal strength is determined as a target router according to the real-time signal strengths of the plurality of routers, and the like, and a part of the determination manner will be illustrated in the following embodiments.
In the embodiment of the present application, for convenience of description, it is assumed that the wireless relay apparatus is respectively connected to three routers: router a, router B, and router C are connected, and it is currently determined that router a is the target router.
After determining the target router, the wireless relay device may receive the data sent by the target router and send the data to the device side, or may receive the data sent by the device side and send the data to the target router. Step S202 to step S204 are described in detail below by taking an example in which the wireless relay device receives data sent by a target router:
and the router A carries out wireless communication with the wireless relay equipment through the WIFI equipment driver and sends the data to the wireless relay equipment. As an embodiment, the data may be received by using a netif _ receive _ skb function, where the netif _ receive _ skb function is an entry for receiving a message in a protocol stack, and is generally called by a driver to send the message into the protocol stack.
After receiving the data sent by the router A, the wireless relay equipment judges whether the data meet the data transmission rule according to skb- > dev when passing through a two-layer bridge processing function br _ handle _ frame _ finish. The data transmission rule may be used to determine whether the data is data sent by the router a (i.e., a target router), or whether the data is wireless authentication data sent by the router B or the router C for maintaining communication connection between the router and the wireless relay device, and the like.
And when the wireless relay equipment judges that the received data accords with the data transmission rule, the data is sent to the equipment end.
Similarly, after receiving the data sent by the router B or the router C, the wireless relay device determines whether the data conforms to the data transmission rule. And when the wireless relay equipment judges that the received data does not accord with the data transmission rule, the data is lost.
It should be noted that the embodiment of the wireless relay device receiving the data transmitted by the device side is similar to the embodiment of the wireless relay device receiving the data transmitted by the target router. As an implementation manner, after the device side sends data to the wireless relay device, the wireless relay device may determine, according to skb- > dev, whether the data is data sent to the router a (i.e., a target router) or whether the data is wireless authentication data sent to the router B or the router C through a two-layer bridge processing function br _ dev _ queue _ push _ xmit.
Determining a plurality of policies for the target router over the first time period from the plurality of routers is described in detail below:
in the first strategy, step S201 may include the following steps:
and determining the router with the highest signal strength in the plurality of routers as a target router.
Specifically, the wireless relay device may select a router with the strongest signal strength as the network channel among the plurality of connected upstream routers, and when the signal of the router connected to the wireless relay device changes, the router with the strongest signal may be preferentially reselected as the network channel under a suitable condition. That is, the channel switching among the routers can be performed to ensure that the router with the best signal strength always performs data transmission with the device side.
For example, assume that the wireless relay device is respectively connected to three routers: router a, router B, and router C are connected, and it is currently determined that router a is the target router. After the whole data transmission system operates for a period of time, the wireless relay device finds that the signal intensity of the router A is low and lower than that of the router B, and immediately switches the router B to be used as a network channel, so that the router with the best signal intensity always performs data transmission with the device end.
In the second strategy, step S201 may include the steps of:
when a router connected to the 5G exists in the plurality of routers, the router connected to the 5G is determined as a target router.
Specifically, if the routers connected to the wireless relay device are all connected to WIFI, the router connected to WIFI 5G may be preferentially selected as the network channel. This is because the channel bandwidth of WIFI 5G is relatively independent, and the interference between channels is small, and adjacent channels of WIFI 2.4G overlap and interfere with each other, so the signal strength of WIFI 5G is relatively higher than that of WIFI 2.4G. That is to say, the channels can be switched among a plurality of routers, so that the routers connected with the 5G are guaranteed to preferentially perform data transmission with the equipment side, and signals are better.
For example, assume that the wireless relay device is respectively connected to three routers: the router A, the router B and the router C are connected, the router A and the wireless relay equipment are connected through WIFI 5G, the router B and the router C are connected through WIFI 2.4G, and the router A is determined to be a target router at present. After the whole data transmission system operates for a period of time, the wireless relay equipment finds that the router A fails, and immediately switches the router B as a network channel; after a period of time, the wireless relay device finds that the router A recovers work, and immediately switches the router A as a network channel.
In a third policy, please refer to fig. 3, where fig. 3 is a flowchart of a method for determining a target router according to an embodiment of the present application, in the method for determining a target router, step S201 may include the following steps:
step S301: and sending a control message protocol to the plurality of routers at regular time.
Step S302: and receiving a plurality of response messages which are returned by the routers and correspond to the control message protocol.
Step S303: and determining the router with the lowest delay for receiving the response message in the plurality of routers as the target router.
Specifically, the wireless relay device may send a Control Message Protocol (ICMP) to the connected routers at regular time, determine packet receiving delays of the connected routers according to the received response messages corresponding to the Control Message Protocol of the router, record the uplink connection with the optimal delay, and switch to the router with the optimal delay as a network channel under appropriate conditions. That is, the switching of the channels among the plurality of routers can be performed to ensure that the router with the minimum network delay always performs data transmission with the device side.
For example, assume that the wireless relay device is respectively connected to three routers: router a, router B, and router C are connected, and it is currently determined that router a is the target router. In the operation process of the whole data transmission system, the wireless relay equipment sends control message protocols to the router A, the router B and the router C every hour, and judges packet receiving delays of the router A, the router B and the router C. After the data transmission system operates for a period of time, the wireless relay equipment finds that the packet receiving delays of the router A and the router C are both larger than the packet receiving delay of the router B, and immediately switches the router B to serve as a network channel, so that the router with the minimum network delay and the equipment end always perform data transmission.
It should be noted that the three policies are merely examples provided in the embodiment of the present application, and in practical cases, the policy for determining the target router in the first time period may also take other manners. In addition, the three policies may be used individually as criteria for determining a target router, or at least two of the first policy, the second policy, or the third policy may also be used to determine the target router.
For example, assuming that a target router is determined in combination with the first policy and the second policy, the wireless relay device is respectively connected to three routers: the router A, the router B and the router C are connected, the router A and the router C are connected with the wireless relay device through WIFI 5G, the router B is connected through WIFI 2.4G, and the router A is determined to be a target router at present. After the whole data transmission system operates for a period of time, the wireless relay equipment finds that the signal intensity of the router A becomes low and is lower than the signals of the router B and the router C, and immediately switches the router C which is also connected by the WIFI 5G to serve as a network channel, so that the strongest signal received by the equipment end is ensured on the basis of preferentially adopting the WIFI 5G connection.
The following describes in detail various situations for determining whether data conforms to the data transmission rule:
in the first case, step S203 may include the steps of:
judging whether the data is the data sent by the target router; or, whether the data is data addressed to the target router is judged.
Specifically, in order to ensure that only one network channel is connected in the data transmission process, it may be determined whether the data sent or received by the wireless relay device is received or sent by the target router. Therefore, whether the data is the data in the data transmission process between the target router and the equipment end can be judged, and the data transmission between only one router in the plurality of routers and the equipment end is ensured, so that errors in the data transmission process are reduced.
In the second case, step S203 may include the steps of:
it is determined whether the data is wireless authentication data from a plurality of routers.
Specifically, although only one network channel is connected in the data transmission process, the routers connected to other nodes still need to maintain the WIFI connection. As an embodiment, the wireless authentication data, such as ethernet _ TYPE _802_1X or ethernet _ TYPE _802_1X _ PREAUTH, may be unconditionally passed through, so that the wireless relay device maintains connection with another router, and a switching channel may be quickly selected between the connected routers.
In the embodiment of the application, the wireless relay device can establish wireless connection with a plurality of routers, and determine one router from the plurality of connected routers as a network channel, and the device end can only perform data transmission with the router, so that when the server connected at present is poor in signal or the router is damaged, the device end can still be ensured to maintain a better network signal.
Referring to fig. 4, fig. 4 is a block diagram of a data transmission apparatus according to an embodiment of the present application, where the data transmission apparatus 400 is applied to a wireless relay device, and includes: a determining module 401, configured to determine, from a plurality of routers, a target router within a first time period; a receiving module 402, configured to receive data; the data is sent by the target router or sent by the equipment end; a judging module 403, configured to judge whether the data conforms to a data transmission rule; a sending module 404, configured to send the data to a device side or to the target router if the data conforms to the data transmission rule.
In this embodiment of the present application, the wireless relay device may establish wireless connection with multiple routers, and determine, by using the determining module 401, one router from the multiple connected routers as a network channel, and the device end may only perform data transmission with the router, so that when a server currently connected is poor in signal or the router is damaged, it is still ensured that the device end maintains a better network signal.
Further, the determining module 403 is further configured to: judging whether the data is the data sent by the target router; or judging whether the data is the data sent to the target router.
In this embodiment of the present application, the determining module 403 may ensure that only one router in the plurality of routers performs data transmission with the device side by determining whether the data is data in the data transmission process between the target router and the device side, so as to reduce errors occurring in the data transmission process.
Further, the determining module 403 is further configured to: judging whether the data are wireless authentication data from the routers or not; wherein the wireless authentication data is used to maintain one of the plurality of routers in communication connection with the wireless relay device.
In the embodiment of the present application, although only one network channel may perform data transmission, other routers connected to the wireless relay device may maintain wireless connection with the wireless relay device, so as to ensure that the network channel can be switched quickly when the network channel needs to be switched.
Further, the determining module 401 is further configured to: and determining the router with the highest signal strength in the plurality of routers as the target router.
In the embodiment of the present application, a router with the highest signal strength among the plurality of routers is used as a current network channel, that is, a channel can be switched among the plurality of routers, so as to ensure that the router with the highest signal strength always performs data transmission with the device side.
Further, the determining module 401 is further configured to: when a router connected by 5G exists in the plurality of routers, determining the router connected by 5G as the target router.
In the embodiment of the present application, a router connected to 5G in a plurality of routers is used as a current network channel, that is, switching of channels in the plurality of routers can be performed, so that it is ensured that the router connected to 5G preferentially performs data transmission with an equipment side, and a signal is better.
Further, the determining module 401 is further configured to: sending a control message protocol to the plurality of routers at regular time; receiving a plurality of response messages which are returned by the routers and correspond to the control message protocol; and determining the router with the lowest delay for receiving the response message in the plurality of routers as the target router.
In the embodiment of the present application, a router with the minimum network delay among the plurality of routers is used as a current network channel, that is, a channel can be switched among the plurality of routers, so as to ensure that the router with the minimum network delay always performs data transmission with the device side.
Further, the determining module 401 is configured to: determining the target router by adopting at least two strategies of a first strategy, a second strategy or a third strategy; wherein the first policy is: determining a router with the highest signal strength in the plurality of routers as the target router; the second policy is: when a router connected by 5G exists in the plurality of routers, determining the router connected by 5G as the target router; the third policy is: sending a control message protocol to the plurality of routers at regular time; receiving a plurality of response messages which are returned by the routers and correspond to the control message protocol; and determining the router with the lowest delay for receiving the response message in the plurality of routers as the target router.
In the embodiment of the present application, two or three policies among the first policy, the second policy, and the third policy may be integrated, so that an optimal router is selected as a network channel, and it is ensured that a signal of a current device end is strongest.
Referring to fig. 5, fig. 5 is a block diagram of an electronic device according to an embodiment of the present disclosure, where the electronic device includes: at least one processor 501, at least one communication interface 502, at least one memory 503, and at least one communication bus 504. Wherein, the communication bus 504 is used for realizing direct connection communication of these components, the communication interface 502 is used for communicating signaling or data with other node devices, and the memory 503 stores machine readable instructions executable by the processor 501. When the electronic device is in operation, the processor 501 communicates with the memory 503 via the communication bus 504, and the machine-readable instructions, when called by the processor 501, perform the data transfer method described above.
For example, the processor 501 of the embodiment of the present application may read the computer program from the memory 503 through the communication bus 504 and execute the computer program to implement the following method: step S201: from the plurality of routers, a target router within a first time period is determined. Step S202: data is received. Step S203: and judging whether the data conforms to the data transmission rule. Step S204: and if the data accords with the data transmission rule, sending the data to the equipment end or the target router. In some embodiments, processor 501 executes a computer program to determine a router with the greatest signal strength among the plurality of routers as a target router; or when the router connected with the 5G exists in the plurality of routers, determining the router connected with the 5G as the target router; or determining the router with the lowest delay for receiving the response message in the plurality of routers as the target router.
The processor 501 may be an integrated circuit chip having signal processing capabilities. The Processor 501 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. Which may implement or perform the various methods, steps, and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The Memory 503 may include, but is not limited to, Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read Only Memory (PROM), Erasable Read Only Memory (EPROM), electrically Erasable Read Only Memory (EEPROM), and the like.
It will be appreciated that the configuration shown in fig. 5 is merely illustrative and that the electronic device may include more or fewer components than shown in fig. 5 or have a different configuration than shown in fig. 5. The components shown in fig. 5 may be implemented in hardware, software, or a combination thereof. In this embodiment, the electronic device may be, but is not limited to, an entity device such as a desktop, a notebook computer, a smart phone, an intelligent wearable device, and a vehicle-mounted device, and may also be a virtual device such as a virtual machine. In addition, the electronic device is not necessarily a single device, but may also be a combination of multiple devices, such as a server cluster, and the like. In this embodiment of the application, the router, the wireless relay device, and the device end in the data transmission method may be implemented by using the electronic device shown in fig. 5.
Embodiments of the present application further provide a computer program product, including a computer program stored on a non-transitory computer readable storage medium, where the computer program includes program instructions, and when the program instructions are executed by a computer, the computer can perform the steps of the data transmission method in the foregoing embodiments, for example, including: determining a target router within a first time period from a plurality of routers; receiving data; judging whether the data accords with a data transmission rule or not; and if the data accords with the data transmission rule, sending the data to a device end or sending the data to the target router.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (9)

1. A data transmission method is applied to a wireless relay device and comprises the following steps:
determining a target router in a first time period from a plurality of routers, and using the target router as a network channel, wherein the plurality of routers are all connected with the wireless relay equipment, and an equipment end can only perform data transmission with the target router in the first time period;
receiving data; the data is sent by the target router or the equipment end;
judging whether the data accords with a data transmission rule or not;
if the data accords with the data transmission rule, the data is sent to the equipment end or the target router;
wherein, the judging whether the data accords with a data transmission rule comprises:
judging whether the data is the data sent by the target router; or judging whether the data is the data sent to the target router.
2. The data transmission method according to claim 1, wherein the determining whether the data complies with a data transmission rule comprises:
judging whether the data are wireless authentication data from the routers or not; wherein the wireless authentication data is used to maintain one of the plurality of routers in communication connection with the wireless relay device.
3. The data transmission method according to any one of claims 1-2, wherein the determining the target router in the first time period from the plurality of routers comprises:
and determining the router with the highest signal strength in the plurality of routers as the target router.
4. The data transmission method according to any one of claims 1-2, wherein the determining the target router in the first time period from the plurality of routers comprises:
when a router connected by 5G exists in the plurality of routers, determining the router connected by 5G as the target router.
5. The data transmission method according to any one of claims 1-2, wherein the determining the target router in the first time period from the plurality of routers comprises:
sending a control message protocol to the plurality of routers at regular time;
receiving a plurality of response messages which are returned by the routers and correspond to the control message protocol;
and determining the router with the lowest delay for receiving the response message in the plurality of routers as the target router.
6. The data transmission method according to any one of claims 1-2, wherein the determining the target router in the first time period from the plurality of routers comprises:
determining the target router by adopting at least two strategies of a first strategy, a second strategy or a third strategy; wherein,
the first policy is: determining a router with the highest signal strength in the plurality of routers as the target router;
the second policy is: when a router connected by 5G exists in the plurality of routers, determining the router connected by 5G as the target router;
the third policy is: sending a control message protocol to the plurality of routers at regular time; receiving a plurality of response messages which are returned by the routers and correspond to the control message protocol; and determining the router with the lowest delay for receiving the response message in the plurality of routers as the target router.
7. A data transmission apparatus, applied to a wireless relay device, comprising:
a determining module, configured to determine, from multiple routers, a target router in a first time period, and use the target router as a network channel, where the multiple routers are all connected to the wireless relay device, and a device end may only perform data transmission with the target router in the first time period;
the receiving module is used for receiving data; the data is sent by the target router or the equipment end;
the judging module is used for judging whether the data accords with a data transmission rule or not;
a sending module, configured to send the data to the device side or to the target router if the data conforms to the data transmission rule;
the judging module is specifically configured to judge whether the data is the data sent by the target router; or judging whether the data is the data sent to the target router.
8. An electronic device, comprising: a processor, a memory, and a bus;
the processor and the memory are communicated with each other through the bus;
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the data transfer method of any of claims 1-6.
9. A non-transitory computer-readable storage medium storing computer instructions which, when executed by a computer, cause the computer to perform the data transmission method of any one of claims 1-6.
CN201911209937.9A 2019-11-28 2019-11-28 Data transmission method and device Active CN110913441B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911209937.9A CN110913441B (en) 2019-11-28 2019-11-28 Data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911209937.9A CN110913441B (en) 2019-11-28 2019-11-28 Data transmission method and device

Publications (2)

Publication Number Publication Date
CN110913441A CN110913441A (en) 2020-03-24
CN110913441B true CN110913441B (en) 2022-02-11

Family

ID=69821340

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911209937.9A Active CN110913441B (en) 2019-11-28 2019-11-28 Data transmission method and device

Country Status (1)

Country Link
CN (1) CN110913441B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114071633A (en) * 2020-07-30 2022-02-18 华为技术有限公司 Wireless communication method and related equipment thereof
CN111935277A (en) * 2020-08-07 2020-11-13 上海汉枫电子科技有限公司 Router connection method, router connection device, computer equipment and storage medium
CN112118222A (en) * 2020-08-11 2020-12-22 深圳市欣博跃电子有限公司 Data forwarding method and device, electronic equipment and storage medium
CN114375021A (en) * 2021-12-17 2022-04-19 北京小米移动软件有限公司 Relay communication method, device, relay equipment, terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101867515A (en) * 2010-05-19 2010-10-20 华为终端有限公司 Data packet transmission method and terminal equipment
CN106060878A (en) * 2016-05-17 2016-10-26 杭州华三通信技术有限公司 Relay method of device and repeater
CN107743047A (en) * 2017-10-26 2018-02-27 北方民族大学 A kind of wireless directional relay communication means and system
CN108718260A (en) * 2018-06-08 2018-10-30 北京飞音时代技术有限公司 Open environment tests the method and system of wireless router handling capacity
CN109151855A (en) * 2017-06-28 2019-01-04 迈普通信技术股份有限公司 The upgrade method of repeater, apparatus and system

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7349390B2 (en) * 2002-05-28 2008-03-25 Ntt Docomo, Inc. Packet transmission method and communication system
US7248560B1 (en) * 2002-06-04 2007-07-24 Cisco Technology, Inc. Method and system for router redundancy in a wide area network
CN101895886A (en) * 2009-05-22 2010-11-24 南京中兴软件有限责任公司 Method and device for selecting access point
US9380517B2 (en) * 2013-12-10 2016-06-28 Cisco Technology, Inc. Adjusting number of discovery frames sent based on access point deployment
JP6775928B2 (en) * 2015-08-27 2020-10-28 横河電機株式会社 Wireless relay equipment, control devices, wireless communication systems, and entry methods
WO2018036601A1 (en) * 2016-08-22 2018-03-01 Nokia Solutions And Networks Oy Enabling efficient uplink (re) transmissions in an interfere-cancellation based system using network assistance
CN106535238B (en) * 2016-11-02 2020-04-07 青岛海信移动通信技术股份有限公司 Link switching method and device
CN107426050B (en) * 2017-06-22 2020-06-09 普联技术有限公司 Data relay transmission system, construction method thereof and wireless relay equipment
CN107969000B (en) * 2017-10-31 2021-05-04 深圳市共进电子股份有限公司 Method, device, equipment and medium for detecting state of uplink of wireless repeater
CN107995633A (en) * 2017-12-08 2018-05-04 深圳市共进电子股份有限公司 A kind of more hot spot Radio Network Systems for home environment
CN108601057A (en) * 2018-03-07 2018-09-28 青岛海尔科技有限公司 Network data transmission method, equipment and system
US10999866B2 (en) * 2018-05-08 2021-05-04 Kabushiki Kaisha Toshiba Reliable and deterministic Wi-Fi for industrial control applications

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101867515A (en) * 2010-05-19 2010-10-20 华为终端有限公司 Data packet transmission method and terminal equipment
CN106060878A (en) * 2016-05-17 2016-10-26 杭州华三通信技术有限公司 Relay method of device and repeater
CN109151855A (en) * 2017-06-28 2019-01-04 迈普通信技术股份有限公司 The upgrade method of repeater, apparatus and system
CN107743047A (en) * 2017-10-26 2018-02-27 北方民族大学 A kind of wireless directional relay communication means and system
CN108718260A (en) * 2018-06-08 2018-10-30 北京飞音时代技术有限公司 Open environment tests the method and system of wireless router handling capacity

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
S. Kavitha ; .Optimized access point link selection-QOS aware resource allocation for WiMAX Networks.《 2015 International Conference on Communications and Signal Processing (ICCSP)》.2015, *
基于无线Mesh网络技术的应急通信技术应用;付荣国等;《防灾减灾工程学报》;20141215(第06期);全文 *
浅析无线路由器信号覆盖范围的拓展;李竹林等;《农业网络信息》;20090726(第07期);全文 *

Also Published As

Publication number Publication date
CN110913441A (en) 2020-03-24

Similar Documents

Publication Publication Date Title
CN110913441B (en) Data transmission method and device
US10701696B2 (en) Transmission configuration method and related product
EP3965441B1 (en) Direct link transmission method and terminal
CN112788698B (en) Data processing method and device and terminal equipment
US20180084597A1 (en) Method of managing communication interfaces for a multipath transmission control protocol (mptcp) connection
TW201801563A (en) Communication device performing device-to-device communication and operating method thereof
JP2023532259A (en) Flow control method and apparatus
EP3379889B1 (en) Method and terminal for controlling service connection
JP5675669B2 (en) Access point device and wireless communication method
CN116235542A (en) Routing method, device and system
CN104105117A (en) Method for achieving VoIP service in ad hoc network
EP3537671B1 (en) Protection switching method and system, and nodes
CN113645072B (en) Master-slave gateway deployment method and device
JP6683916B2 (en) Wireless device and wireless communication system
AU2019261671B2 (en) Repeater for mesh network
JP2020519108A (en) Paging method and device
CN106686645B (en) Method and system for improving throughput of multi-hop transmission link
JP2018524854A (en) Method and transmission apparatus used for service transmission
US12058574B2 (en) Terminal device that performs communication in stand-by state, method for controlling the same, and computer-readable storage medium
CN112751754B (en) Method and equipment for selecting port switched to working state during dual-homing access
US20160165509A1 (en) System for transmitting message through heterogeneous networks by gateways and method thereof
EP3337278B1 (en) Wireless medium clearing
WO2015019550A1 (en) Communication system, radio terminal, communication method, and communication program
CN118316910A (en) Method for processing media intervention control address, electronic equipment and storage medium
CN116801347A (en) Data transmission method and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant