Path selection method and router
By establishing a transmission delay model in the wireless Mesh network and using the branch-and-bound algorithm, the problem of balancing delay and hop count in transmission path selection is solved, a transmission path with minimum delay and minimum hop count is achieved, and network performance is improved.
Patent Information
- Application Number
- CN202210092093.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-26
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2042-01-26
AI Technical Summary
In wireless Mesh networks, it is difficult to achieve a balance between the minimum delay and the minimum number of hops when selecting transmission paths, which affects network performance.
By establishing a transmission delay model and using the branch-and-bound algorithm, the optimization problem is transformed into a 0-1 integer programming problem, and the optimal path under the minimum transmission delay is solved to achieve data transmission with the minimum delay.
In the wireless Mesh network, the data transmission with the minimum delay is achieved, and the transmission path with the minimum delay is obtained under the minimum hop count constraint to meet the low-latency transmission requirements.
Smart Images

Figure CN114585044B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a path selection method and a router. Background Art
[0002] Due to lower costs, flexible configuration, and enhanced network coverage and capacity, the application of wireless mesh network (WMN: Wireless Mesh Network) technology is becoming more and more widespread. Its excellent performance is favored by academia and industry, and has become a new wireless networking technology with great application prospects in the next generation of wireless networks. Wireless Mesh network is mainly composed of Mesh terminals and Mesh routers. Among them, each Mesh router constitutes the network architecture foundation and backbone network of the wireless network, and is interconnected with the wired network to provide multi-hop wireless Internet connection for Mesh terminals.
[0003] In a wireless Mesh ad hoc network system, the most important task of the network layer is to transmit data from the source node to the destination node. This process depends largely on routing selection, which determines the transmission path that the data packet flows through from the source node to the destination stage. There may be multiple transmission paths between the source node and the destination node. After receiving a packet, the intermediate node must determine the path to transmit to the next node, that is, routing selection. The strategy for determining routing selection is called a routing algorithm. Different routing algorithms have different effects on the network's throughput, latency, and packet loss rate, which in turn determines the performance of the entire Mesh system.
[0004] Choosing different transmission paths corresponds to different transmission delay costs. How to select the optimal transmission path from many alternative transmission paths according to actual needs is the key to the Mesh ad hoc network terminal routing algorithm. Summary of the invention
[0005] The object of the present invention is to provide a path selection method and a router, which can at least realize data transmission based on minimum delay in a wireless mesh network, and at least realize obtaining a transmission path with minimum delay under the constraint of minimum hop count.
[0006] According to one aspect of the present invention, at least one embodiment provides a path selection method, comprising: obtaining a data packet to be transmitted from a source node, wherein the data packet to be transmitted needs to be transmitted to a destination node; establishing a transmission delay model, wherein the transmission delay model derives at least one routing constraint condition based on the transmission delay of the data packet to be transmitted; solving the transmission delay model using a branch and bound algorithm, and outputting a transmission path corresponding to the minimum transmission delay.
[0007] According to another aspect of the present invention, at least one embodiment provides a router, comprising: a processor, adapted to implement various instructions; and a memory, adapted to store a plurality of instructions, wherein the instructions are adapted to be loaded by the processor and execute the above-mentioned path selection method.
[0008] According to another aspect of the present invention, at least one embodiment provides a computer-readable non-volatile storage medium storing computer program instructions, and when the computer executes the program instructions, the above-mentioned path selection method is executed.
[0009] In the above way, the optimization problem to be studied is modeled through the objective function (such as minimum transmission delay) and constraints (such as minimum number of hops), and the optimization problem is converted into a 0-1 integer programming problem. The classic branch and bound algorithm is used to solve it, and the optimal path with minimum transmission delay is obtained, thereby meeting the low-latency transmission requirements of Mesh network data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0011] Figure 1 is a typical mesh network schematic diagram according to an embodiment of the present invention;
[0012] Figure 2 is a schematic diagram of a router according to an embodiment of the present invention;
[0013] Figure 3 is a flow chart of a method for path selection according to an embodiment of the present invention;
[0014] Figure 4 is a schematic diagram of a node according to an embodiment of the present invention;
[0015] Figure 5 is a schematic diagram of test results according to an embodiment of the present invention. DETAILED DESCRIPTION
[0016] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0017] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0018] Wireless Mesh Network (WMN) has attracted more and more attention as a key technology to solve the bottleneck problem of the "last mile" of wireless access. Wireless Mesh Network combines the advantages of Wireless Local Area Network (WLAN) and Adhoc network. It expands the coverage of traditional wireless LAN through self-organizing communication between mobile users. At the same time, it improves the service quality of Adhoc network through the deployment of Mesh backbone network. Adhoc network is also called multi-hop wireless network, self-organizing network or network without fixed facilities. Wireless Mesh Network originally appeared as a commercial form of Mobile Adhoc Network (MANET), and is essentially a mobile Adhoc network.
[0019] Unlike Adhoc networks, wireless mesh networks have a certain infrastructure. This infrastructure, the wireless mesh backbone (MB, Mesh Backbone), consists of some basically static wireless mesh routers (MR, Mesh Routers), which are used to provide better quality of service (QoS, Quality of Service) support than adhoc networks. Wireless mesh networks have the advantages of high reliability, multi-hop routing, self-forming, self-healing and self-organizing functions, and support for compatibility and interoperability with other wireless networks. Figure 1 As shown in Figure 1, the general architecture of a typical Mesh network consists of three different types of wireless network elements: gateway routers (routers with gateway / bridge functions), Mesh routers (access points), and Mesh clients (mobile or other). Among them, the Mesh client is connected to the wireless Mesh router through a wireless connection, and the wireless Mesh router forms a relatively stable forwarding network in the form of multi-hop interconnection. In the Mesh network architecture, any Mesh router can serve as a data forwarding relay for other Mesh routers, and some Mesh routers also have the additional capability of Internet gateways.
[0020] In such Figure 1 In the application environment shown, at least one embodiment of the present invention provides a Mesh router (or other computing device). Figure 2 As shown, the Mesh router (or other computing device) includes: a processor 202; and a memory 204, configured to store computer program instructions, the computer program instructions are suitable for being loaded by the processor and executing the path selection method developed by the present invention (which will be described in detail later). Optionally, at least one embodiment of the present invention also provides a computer-readable non-volatile storage medium, storing computer program instructions, and when the computer executes the program instructions, the path selection method developed by the present invention is executed (which will be described in detail later).
[0021] The processor 202 may be any suitable processor, for example, implemented in the form of a central processing unit, a microprocessor, an embedded processor, etc., and may adopt an architecture such as X86, ARM, etc. The memory 204 may be any suitable storage device, for example, a non-volatile storage device, including but not limited to a magnetic storage device, a semiconductor storage device, an optical storage device, etc., and may be arranged as a single storage device, a storage device array, or a distributed storage device, which is not limited in the embodiments of the present invention.
[0022] It will be understood by those skilled in the art that the above-mentioned structure of the Mesh router is only for illustration and does not limit the structure of the Mesh router. Figure 2 The transmission device is used to receive or send data via a network. In one embodiment, the transmission device is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0023] In the above operating environment, at least one embodiment of the present invention provides a path selection method suitable for loading and executing by the processor 202, at least for providing a transmission path with low transmission delay. Figure 3 The flowchart of the method for path selection shown in the accompanying drawings should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here. The method may include the following steps:
[0024] Step S301, obtaining a data packet to be transmitted from a source node, wherein the data packet to be transmitted needs to be transmitted to a destination node;
[0025] Step S303, establishing a transmission delay model, wherein the transmission delay model derives at least one routing constraint condition according to the transmission delay of the data packet to be transmitted;
[0026] Step S305 , using a branch and bound algorithm to solve the transmission delay model, and outputting a transmission path corresponding to the minimum transmission delay.
[0027] It can be seen that in order to solve the problem of selecting the optimal transmission path from multiple transmission paths in the process of transmitting data from a source node to a destination node in a wireless Mesh ad hoc network system, the present invention proposes an optimal path selection method based on minimum transmission delay. The optimal path selection method based on minimum transmission delay models the optimization problem to be studied through an objective function (such as minimum transmission delay) and constraints (such as minimum number of hops), and converts the optimization problem into a 0-1 integer programming problem, and uses a classic branch and bound algorithm to solve it, and obtains the optimal path under the condition of minimum transmission delay, thereby meeting the demand for low-latency transmission of Mesh network data transmission.
[0028] In step S301, a data packet to be transmitted of a source node in the Mesh network is obtained, and the data packet to be transmitted needs to be transmitted to a destination node in the Mesh network. It should be noted that there are multiple nodes in the Mesh network, and there are multiple paths for the data packet to choose from from the source node to the destination node.
[0029] In step S303, a transmission delay model is established. Optionally, establishing the transmission delay model includes: establishing an objective function, wherein the objective function is The source node is 1, the destination node is N, t i,j is the transmission delay of the data packet to be transmitted from node i to node j, x i,j Establishing factors for the communication link; deriving at least one routing constraint condition for the above objective function, wherein the at least one routing constraint condition includes:
[0030] Constraint Y1: Among them, the size of the data packet to be transmitted is L, r i,j is the transmission rate of data from node i to node j, and the constraint Y1 is used to represent the transmission delay of the selected communication link;
[0031] Constraint Y2: i, j, k∈{1, 2, ...N}, where constraint Y2 is used to indicate that nodes i, j, k are any nodes in the node set {1, 2, ...N};
[0032] Constraint Y3: x i,j ∈{0,1}, where x i,j =1 indicates that the communication link from node i to node j is established, x i,j=0 means that the communication link from node i to node j is not established;
[0033] Constraint Y4: Among them, constraint Y4 restricts node j to receive signals from at most one transmitting node when it is a receiving node;
[0034] Constraint Y5: Among them, constraint Y5 means that when node j is a transmitting node, it can only send a signal to one receiving node at most;
[0035] Constraint Y6: Among them, m represents the maximum hop value, and constraint Y6 limits the maximum number of hops that can be established from node 1 to the destination node N;
[0036] Constraint Y7: in, represents the sum of all communication links that can be established when node j is a receiving node, It represents the sum of all links that can be established when node j is a transmitting node. Constraint Y7 limits the directional propagation of data from source node 1 to destination node N.
[0037] That is, the present invention derives at least one routing constraint condition for the minimum transmission delay of the data packet to be transmitted. Here, the transmission rate table can be queried to obtain r i,j , wherein establishing a transmission rate table may include: setting M-level transmission rates, wherein M=Q-1, Q is the total number of nodes; and allocating decreasing transmission rates in order based on the direction of increasing hop counts between nodes. That is, according to the different transmission distances between nodes, the corresponding transmission rates can be divided into different levels, and the shorter the transmission distance, the higher the transmission rate, and vice versa, the longer the transmission distance, the lower the transmission rate.
[0038] For example, Figure 4 As shown in the figure, assume that there are Q nodes in the Mesh network to form a main chain. In the main chain, according to the different positions between nodes, there are M different transmission rates between nodes, that is, M represents the maximum number of transmission rate levels in the network. If Q = 8, the corresponding transmission rate is divided into 6 levels, that is, M = 6, thus setting the corresponding transmission rate between nodes to 54 for one hop, 32 for two hops, 16 for three hops, 8 for four hops, 4 for five hops, and 2 for six hops. Therefore, r i,j The value of can be obtained by looking up the difference between j and i.
[0039] Table 1 i,j Transfer rate value
[0040] ji=a a=1 a=2 a=3 a=4 a=5 a=6 <![CDATA[r i,j ]]> 54 32 16 8 4 2
[0041] For the objective function The goal is to minimize the transmission delay used for data transmission. If the data packet to be transmitted (size is L) needs to be transmitted from source node 1 to destination node N on the main chain, then its cost function is t i,j , In order to minimize the transmission delay from source node 1 to destination node N under the constraint of minimum hop count, the optimization goal is to minimize the transmission delay of data through all nodes, that is, Considering the directionality of signal transmission, only when 1≤ji≤M, r i,j exists; otherwise, link r cannot be established between node i and node j i,j =0.
[0042] The constraints include the minimum hop count constraint, the constraint that a receiving node can communicate with at most one transmitting node at a time, and the directional propagation of unidirectional transmission between nodes. It should be noted that when j=1, node 1 only transmits signals as a transmitting node and does not receive signals. Therefore, the difference between the number of links of the input signal and the number of links of the output signal in this case is -1; when j=N, for the destination node N, there is only an input signal and no output signal, so the difference between the number of links of the input signal and the number of links of the output signal is 1; specifically, considering that for all nodes other than the source node 1 and the destination node N, as relay nodes for signal forwarding, if the node has an input signal, then there must be a corresponding output signal. Therefore, in this case, the difference between the number of links of the input signal and the number of links of the output signal is 0.
[0043] In step S305, the transmission delay model is solved using a branch and bound algorithm, and the transmission path corresponding to the minimum transmission delay is output. That is, the optimization problem of the present invention is a 0-1 integer programming problem, which can be solved using a classic branch and bound algorithm. The branch and bound method is the most commonly used algorithm for solving integer programming problems, a search and iteration method, and selects different branch variables and sub-problems for branching.
[0044] Optionally, solving the transmission delay model using a branch and bound algorithm may include: finding at least one relaxation problem corresponding to at least one routing constraint; using at least one relaxation problem to output a transmission path corresponding to the minimum transmission delay, wherein the optimal solution of at least one relaxation problem is Z*, and if Z* is an integer solution, then the first transmission path corresponding to Z* is the transmission path corresponding to the minimum transmission delay.
[0045] If Z* is not an integer solution, then select the first constraint Y that does not meet the integer constraint in Z*; branch at least one relaxation problem to form a first branch and a second branch, add a constraint Y≤[Y] to the first branch, and add a constraint Y≥[Y]+1 to the second branch, where [Y] represents the largest integer less than Y; solve the first branch and the second branch to obtain integer solutions and optimal solutions for the first branch and the second branch. If there are no integer solutions for the first branch and the second branch, continue to select the second constraint YY that does not meet the integer constraint in Z*; branch at least one relaxation problem to form a third branch and a fourth branch, add a constraint YY≤[YY] to the third branch, and add a constraint YY≥[YY]+1 to the second branch, where [YY] represents the largest integer less than YY; solve the third branch and the fourth branch to obtain integer solutions and optimal solutions for the third branch and the fourth branch, thereby finding all integer solutions in turn. Optionally, finally find the branch with the smallest optimal solution in the branch corresponding to the integer solution Z, and set the smallest optimal solution to Z**. If Z**≥Z, then the smallest Z in Z ’ The corresponding second transmission path is the transmission path corresponding to the minimum transmission delay.
[0046] That is to say, the present invention seeks to minimize the original problem by first ignoring the integer variables in the original optimization problem, finding a relaxed problem B corresponding to the original problem, wherein the relaxed problem B is a linear programming problem, and using a graphical method or a simplex method to find the optimal solution Z* of the relaxed problem B. If the optimal solution Z* of the relaxed problem B just satisfies the integer solution of the original optimization problem, then the integer solution is the optimal solution of the original integer programming problem, otherwise the original problem is branched to seek the integer optimal solution.
[0047] The idea of branch and bound is as follows. First, branch: arbitrarily select a Y that does not meet the integer constraint in the optimal solution Z*. i , add constraint condition Y to the relaxed problem B constraint condition i ≤[Y i ] and Y i ≥[Y i ]+1 forms two new sub-problems, because [Y i ] and [Y i]+1, so the integer solutions in these two subsets must be consistent with the integer solutions of the original feasible solution set. Solve each branch to determine whether there is an integer solution in each branch. If there is an integer solution, you can proceed to the subsequent process "delimitation", otherwise continue to "branch". Secondly, delimitation: find the branch with the smallest optimal solution among all branches with integer solutions, and set its optimal solution as Z** as the upper bound, then Z**≥Z. Thirdly, pruning: if during the branching process, the optimal solution of a branch meets the integer solution requirements, but its optimal solution is greater than Z**, there is no need to continue branching. Finally, repeat the above branching, delimiting, and pruning process until no new branches appear, the optimal solution Z' is found, and the algorithm ends.
[0048] In practice, the source node, destination node, minimum number of hops, and transmission rates corresponding to different gears can also be directly input into the Mesh router (or other computing device), and then the path selection method of the present invention is used to solve the problem, and the minimum transmission delay and the corresponding optimal transmission path are obtained through simulation. For example, the Matlab simulation is as follows, assuming that the destination node N = 8, the data packet size is L = 1, the maximum number of hops m = 4 (that is, the maximum number of nodes allowed is 5), and the maximum transmission delay T = 1ms. In this case, the transmission rate table and the corresponding transmission delay table are established as follows:
[0049] Table 2 Transmission rate table
[0050]
[0051] Note: The corresponding transmission rate is calculated normally for nodes that can transmit data packets, and the transmission rate is set to 0 for nodes that cannot transmit data packets.
[0052] Table 3 Transmission delay table
[0053]
[0054] Note: inf in Table 3 is an infinite value. During simulation, inf can be replaced by a larger value, which is set to 100 here.
[0055] Through Matlab simulation experiments, such as Figure 5 As shown, the path corresponding to the minimum delay from source node 1 to destination node 8 is "node 1→node 2→node 4→node 6→node 8", and its corresponding minimum transmission delay is 0.1123, and the maximum average transmission rate is 8.9072. It can be seen that through the above method of the present invention, data transmission based on minimum delay in wireless mesh network can be realized, and the transmission path with minimum delay can be obtained under the constraint of minimum hop number.
[0056] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A path selection method, applicable to a first Mesh router, characterized in that: include: Acquire a data packet to be transmitted from a source node, wherein the data packet to be transmitted needs to be transmitted to a destination node; Establishing a transmission delay model, wherein the transmission delay model derives at least one routing constraint condition for the transmission delay of the data packet to be transmitted based on the input minimum hop count constraint; Solving the transmission delay model by using a branch and bound algorithm, outputting a first transmission path corresponding to a minimum transmission delay, and transmitting a source node, a destination node, a minimum number of hops, and a transmission rate to a second Mesh router based on the solution result, so that the second Mesh router obtains a second transmission path corresponding to its minimum transmission delay through simulation; Establishing a transmission delay model includes: Establish an objective function, where the objective function is The source node is 1, the destination node is N, and the t i,j is the transmission delay of the data packet to be transmitted from node i to node j, and x i,j Establishing factors for communication links; At least one routing constraint is derived based on the input minimum hop count constraint, wherein the at least one routing constraint includes: Constraint Y1: Wherein, the size of the data packet to be transmitted is L, r i,j is the transmission rate of data from node i to node j, and the constraint condition Y1 is used to represent the transmission delay of the selected communication link; Constraint Y2: i, j, k∈{1, 2, ...N}, where constraint Y2 is used to indicate that nodes i, j, k are any nodes in the node set {1, 2, ...N}; Constraint Y3: x i,j ∈{0,1}, where x i,j =1 indicates that the communication link from node i to node j is established, x i,j =0 means that the communication link from node i to node j is not established; Constraint Y4: The constraint Y4 restricts node j to receive signals from at most one transmitting node when it is a receiving node. Constraint Y5: The constraint condition Y5 indicates that when node j is a transmitting node, it can only send a signal to one receiving node at most; Constraint Y6: Wherein, m represents the maximum hop value, and the constraint condition Y6 limits the maximum number of hops that can be established for a link from the source node 1 to the destination node N; Constraint Y7: in, represents the sum of all communication links that can be established when node j is a receiving node, represents the sum of all links that can be established when node j is a transmitting node. The constraint Y7 limits the directional propagation of data from source node 1 to destination node N; By querying the transmission rate table to obtain the r i,j , establish the transmission rate table: set M-level transmission rate, where M=Q-1, and Q is the total number of nodes; allocate decreasing transmission rates in sequence based on the direction of increasing hop counts between nodes, that is, according to different transmission distances between nodes, the corresponding transmission rates can be divided into different levels, the shorter the transmission distance, the higher the transmission rate, and the longer the transmission distance, the lower the transmission rate.
2. The method according to claim 1, characterized in that Solving the transmission delay model using a branch and bound algorithm includes: Finding at least one relaxation problem corresponding to at least one routing constraint; The at least one relaxation problem is used to output a transmission path corresponding to the minimum transmission delay, wherein the optimal solution of the at least one relaxation problem is Z*, and if Z* is an integer solution, then the first transmission path corresponding to Z* is the transmission path corresponding to the minimum transmission delay.
3. The method according to claim 2, characterized in that Outputting the transmission path corresponding to the minimum transmission delay using the at least one relaxation problem also includes: If Z* is not an integer solution, selecting a first constraint Y in Z* that does not meet the integer constraint condition; The at least one relaxation problem is branched into a first branch and a second branch, wherein the first branch adds a constraint condition Y≤[Y], and the second branch adds a constraint condition Y≥[Y]+1, wherein [Y] represents the largest integer less than Y; The first branch and the second branch are solved to obtain integer solutions and optimal solutions of the first branch and the second branch.
4. The method according to claim 3, characterized in that Solving the first branch and the second branch further includes: If there is no integer solution for the first branch and the second branch, continue to select the second constraint condition YY that does not meet the integer constraint condition in Z*; The at least one relaxation problem is branched to form a third branch and a fourth branch, wherein the third branch adds a constraint condition YY≤[YY], and the second branch adds a constraint condition YY≥[YY]+1, wherein [YY] represents the largest integer less than YY; The third branch and the fourth branch are solved to obtain integer solutions and optimal solutions of the third branch and the fourth branch.
5. The method according to claim 4, characterized in that Find the branch with the smallest optimal solution among the branches corresponding to the integer solution Z, and set the smallest optimal solution to Z**, wherein the transmission path corresponding to the minimum transmission delay outputted by using the at least one relaxation problem comprises: Using Z**≥Z, the second transmission path corresponding to Z is the transmission path corresponding to the minimum transmission delay.
6. The method according to claim 1, characterized in that Obtaining the data packet to be transmitted from the source node includes: Get the data packets to be transmitted from the source node in the Mesh network.
7. A router, characterized in that: include: A processor, suitable for implementing each instruction; and a memory, suitable for storing multiple instructions, wherein the instructions are suitable for being loaded and executed by the processor: a path selection method as described in any one of claims 1-6.
8. A computer-readable non-volatile storage medium storing computer program instructions, wherein when the computer executes the program instructions, the path selection method according to any one of claims 1 to 6 is executed.
Citation Information
Patent Citations
End-to-end routing relay link selection method, system and device based on branch and bound method
CN113676979A
