CN118055471B - Intelligent primary-secondary relationship establishment method, device and system of Mesh system - Google Patents

Intelligent primary-secondary relationship establishment method, device and system of Mesh system Download PDF

Info

Publication number
CN118055471B
CN118055471B CN202410448973.5A CN202410448973A CN118055471B CN 118055471 B CN118055471 B CN 118055471B CN 202410448973 A CN202410448973 A CN 202410448973A CN 118055471 B CN118055471 B CN 118055471B
Authority
CN
China
Prior art keywords
sub
route
main
data packet
main route
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
CN202410448973.5A
Other languages
Chinese (zh)
Other versions
CN118055471A (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 Duoku Technology Co ltd
Original Assignee
Shenzhen Duoku Technology 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 Duoku Technology Co ltd filed Critical Shenzhen Duoku Technology Co ltd
Priority to CN202410448973.5A priority Critical patent/CN118055471B/en
Publication of CN118055471A publication Critical patent/CN118055471A/en
Application granted granted Critical
Publication of CN118055471B publication Critical patent/CN118055471B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, and a system for establishing an intelligent primary-secondary relationship of a Mesh system. The method comprises the steps of establishing a primary-secondary relationship between routes; for each main route, generating a main data packet, uniformly dividing the main data packet into a plurality of sub-data packets and respectively transmitting the sub-data packets to the next-stage sub-route; receiving a plurality of sub-data packets transmitted along the uplink of an original path; calculating the downlink rate, the uplink rate, the downlink transmission time deviation, the uplink transmission time deviation and the loss rate of the main data packet of the main route; calculating a channel quality value of the primary route; determining a main route communicated with the light cat as an exit route; if the abnormal signal of the sub-route is received, exchanging the sub-route generating the abnormal signal and the sub-and-mother relation of the sub-route connected with the sub-route, and executing the steps for more than one time; a primary-secondary relationship of the swap is determined and a swap update is performed. The invention solves the problem that the network quality can not be self-adjusted to optimize the network quality.

Description

Intelligent primary-secondary relationship establishment method, device and system of Mesh system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, and a system for establishing an intelligent primary-secondary relationship of a Mesh system.
Background
Mesh networks, i.e. "wireless Mesh networks", are "multi-hop" networks, developed from ad hoc (point-to-point) networks, and are one of the key technologies to solve the "last kilometer" problem. In the evolution towards the next generation network, wireless technology is an indispensable technology. The wireless mesh can cooperatively communicate with other networks, is a dynamic network architecture which can be continuously expanded, and any two devices can keep wireless interconnection.
The current Mesh network adopts a mode that an initiating route is used as a parent node in the process of self-networking, and child nodes represented by the child routes are in communication connection to establish the Mesh network, or the connection between the routes is carried out by adopting a fixed child-parent relationship according to a set sequence.
After the Mesh network is established, the master-slave relation among the routes is not changed, and if the network quality of any one route is poor, the network quality of the link where the router is located is also poor, and the network quality cannot be self-adjusted to optimize the network quality in the mode.
Disclosure of Invention
Based on this, it is necessary to provide a method, a device and a system for establishing an intelligent primary-secondary relationship of a Mesh system, aiming at the above-mentioned problems.
The embodiment of the invention is realized in such a way that the method for establishing the intelligent primary-secondary relationship of the Mesh system comprises the following steps:
S101, establishing a primary-secondary relation between routes to form a plurality of multi-branch tree networks taking a main route as a starting point;
S102, for each main route, generating a main data packet, dividing the main data packet into a plurality of sub-data packets according to the number of next-stage sub-routes connected with the main route, and respectively transmitting the sub-data packets to each connected next-stage sub-route;
s103, receiving a plurality of sub-data packets which are transmitted along the original uplink by the sub-route;
S104, calculating the downlink speed V 1, the uplink speed V 2, the downlink transmission time deviation T 1, the uplink transmission time deviation T 2 and the loss rate a of the main data packet of the main route according to each sub data packet received by the main route;
S105, obtaining the channel quality value of the main route according to V 1、V2、T1、T2 and a;
S106, determining a main route communicated with the light cat as an exit route according to the channel quality value of each main route;
S107, judging whether a transaction signal of a sub-route is received, if yes, exchanging a sub-route generating the transaction signal with a sub-parent relation of the sub-route connected with the sub-route, and executing the S102-S105 on a main route communicated with a light cat once by exchanging the sub-parent relation each time;
s108, determining a primary-secondary relation of exchange according to the channel quality value of the main route obtained after each exchange and carrying out exchange update on the multi-way tree network;
S109, executing S102-S108 once every other preset period.
In one embodiment, the present invention provides an intelligent primary-secondary relationship establishing device of a Mesh system, where the intelligent primary-secondary relationship establishing device of the Mesh system includes:
the connection module is used for establishing a primary-secondary relation between routes and forming a plurality of multi-branch tree networking taking a main route as a starting point;
The downlink transmission module is used for generating a main data packet for each main route, dividing the main data packet into a plurality of sub-data packets according to the number of next-stage sub-routes connected with the main route, and respectively transmitting the sub-data packets to each connected next-stage sub-route;
the uplink transmission module is used for receiving a plurality of sub-data packets which are transmitted by the sub-route along the original uplink;
The calculation parameter module is used for calculating the downlink speed V 1, the uplink speed V 2, the downlink transmission time deviation T 1, the uplink transmission time deviation T 2 and the loss rate a of the main data packet of the main route according to each sub data packet received by the main route;
a quality determining module, configured to obtain a channel quality value of the primary route according to V 1、V2、T1、T2 and a;
a determining route module, configured to determine, according to the channel quality value of each main route, that a main route in communication with the optical modem is an egress route;
The exchange calculation module is used for judging whether abnormal signals of the sub-routes are received or not, if yes, exchanging the sub-routes generating the abnormal signals and the sub-master relations of the sub-routes connected with the sub-routes, and executing a downlink transmission module, an uplink transmission module, a calculation parameter module and a quality determination module on the main routes communicated with the optical cat by exchanging the sub-master relations each time;
And the exchange route module is used for determining an exchange primary-secondary relation according to the channel quality value of the main route obtained after each exchange and carrying out exchange update on the multi-branch tree network.
In one embodiment, the invention provides an intelligent primary-secondary relation establishing system of a Mesh system, which comprises a light cat and a plurality of routes;
the optical cats are respectively connected with a plurality of routes and are used for converting optical fiber signals into Ethernet signals of the router;
The routes are connected with each other to form a plurality of multi-branch tree networks taking the main route as a starting point;
The route comprises a route body and control equipment arranged in the route, wherein the control equipment is used for executing the steps of the intelligent primary-secondary relation establishment method of the Mesh system.
The intelligent primary-secondary relation establishing method of the Mesh system provided by the embodiment of the application forms a plurality of multi-branch tree networking taking a main route as a starting point by establishing primary-secondary relations among routes; for each main route, generating a main data packet, dividing the main data packet into a plurality of sub-data packets according to the number of next-stage sub-routes connected with the main route, and respectively transmitting the sub-data packets to each connected next-stage sub-route; receiving a plurality of sub-data packets which are transmitted along the original route in an uplink manner by a sub-route; calculating the downlink speed V 1, the uplink speed V 2, the downlink transmission time deviation T 1, the uplink transmission time deviation T 2 and the loss rate a of the main data packet of the main route according to each sub data packet received by the main route; obtaining a channel quality value of the main route according to V 1、V2、T1、T2 and a; determining a main route communicated with the optical cat as an exit route according to the channel quality value of each main route; judging whether a transaction signal of a sub-route is received, if yes, exchanging a sub-route generating the transaction signal with a sub-and-mother relation of the sub-route connected with the sub-route, and executing more than one step on a main route communicated with a light cat by exchanging the sub-and-mother relation each time; determining a primary-secondary relation of exchange according to the channel quality value of the main route obtained after each exchange and carrying out exchange update on the multi-branch tree network; repeating the above steps every other preset period. The application determines the channel quality value of the main route by transmitting the sub-data packet downwards to each main route and receiving the sub-data packet transmitted upwards to each sub-route; determining a main route communicated with the optical cat as an exit route according to the channel quality value of each main route, and adjusting the communication link to the communication link with the best network quality so as to optimize the network quality; exchanging the primary-secondary relation of the primary route generating the abnormal signal and the secondary route connected with the primary route generating the abnormal signal, calculating the channel quality value of the primary route communicated with the optical modem once by exchanging the primary-secondary relation each time, determining the primary-secondary relation of one exchange according to the channel quality value of the primary route obtained after each exchange, exchanging and updating the multi-branch tree network, and adjusting the position of the secondary route generating the abnormal signal to optimize the network quality of the secondary route. Whereby the network quality can be self-adjusted to optimize the network quality.
Drawings
Fig. 1 is a flowchart of a method for establishing an intelligent primary-secondary relationship of a Mesh system in one embodiment;
Fig. 2 is a block diagram of an intelligent primary-secondary relationship establishing device of a Mesh system in an embodiment;
Fig. 3 is a block diagram of a system for establishing an intelligent primary-secondary relationship of a Mesh system according to an embodiment;
fig. 4 is a block diagram showing an internal structure of the control device in one embodiment.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
It will be understood that the terms "first," "second," and the like, as used herein, may be used to describe various elements, but these elements are not limited by these terms unless otherwise specified. These terms are only used to distinguish one element from another element. For example, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script, without departing from the scope of this disclosure.
As shown in fig. 1, in one embodiment, an intelligent primary-secondary relationship establishing method of a Mesh system is provided, which specifically includes the following steps:
S101, establishing a primary-secondary relation between routes to form a plurality of multi-branch tree networks taking a main route as a starting point;
S102, for each main route, generating a main data packet, dividing the main data packet into a plurality of sub-data packets according to the number of next-stage sub-routes connected with the main route, and respectively transmitting the sub-data packets to each connected next-stage sub-route;
s103, receiving a plurality of sub-data packets which are transmitted along the original uplink by the sub-route;
S104, calculating the downlink speed V 1, the uplink speed V 2, the downlink transmission time deviation T 1, the uplink transmission time deviation T 2 and the loss rate a of the main data packet of the main route according to each sub data packet received by the main route;
S105, obtaining the channel quality value of the main route according to V 1、V2、T1、T2 and a;
S106, determining a main route communicated with the light cat as an exit route according to the channel quality value of each main route;
S107, judging whether a transaction signal of a sub-route is received, if yes, exchanging a sub-route generating the transaction signal with a sub-parent relation of the sub-route connected with the sub-route, and executing the S102-S105 on a main route communicated with a light cat once by exchanging the sub-parent relation each time;
s108, determining a primary-secondary relation of exchange according to the channel quality value of the main route obtained after each exchange and carrying out exchange update on the multi-way tree network;
S109, executing S102-S108 once every other preset period.
In this embodiment, in S101, there are various ways of establishing routes, and the originating terminal may be used as a parent node, the connected terminal may be used as a child node, and a primary-secondary relationship between routes may be established; the primary-secondary relationship between the routes can also be determined according to the order set by the user, for example, different grades are set for the routes, and the high-grade route is used as the primary node of the low-grade route to establish the connection relationship between the two. After the networking state is established, the routes connected with the optical cat are main routes, and the number of the main routes can be multiple, and the connection does not represent communication. The next-level routes connected with the main route are sub-routes, the number of the next-level routes connected with the sub-routes can be multiple, and the number of the next-level routes connected with the sub-routes can be multiple. In an actual networking process, there are typically no more than five sub-routes connected by one route. The number of networking stages is typically no more than three, which can cause the network to be greatly attenuated or even unusable. For a multi-drop tree network with a primary route as a starting point, the primary route is the primary route, the secondary route is a sub-route connected to the primary route, the tertiary route is a sub-route connected to the sub-route of the secondary route, and so on.
In this embodiment, the primary route may be a sub-route in the multi-drop tree network starting from another primary route. For example, one route is a primary route in a multi-drop tree network that starts with the primary route itself, but is a sub-route in a multi-drop tree network that starts with other primary routes. Depending on whether the route has communication with the light cat, there is a primary route that communicates with the light cat, and there is a secondary route that does not communicate with the light cat.
In this embodiment, in S102, equally dividing the main data packet means equally dividing the data amount of the main data packet. For example, the main data packet is 10M, and the main route is connected with 2 sub-routes, that is, 2 sub-routes in the second level route of the multi-tree network with the main route as the starting point, so that the data volume of the equally divided sub-data packet is 5M. The main route transmits sub-packets of 5M to each sub-route separately.
In this embodiment, in S103, the sub-route received by the main route is from the sub-route of the last stage along the sub-packet transmitted on the original route. For example, a multi-tree network with a main route as a starting point has 3 routes, the first route is the main route, the second route has 2 sub-routes, each sub-route has 2 sub-routes of the next level, so the third route has 4 sub-routes, the data volume of the sub-data packet received by the main route is 4, and the data volume is respectively from the 4 sub-routes of the third route. And for a link corresponding to one sub-route of the third-level route, after the downlink transmission of the link is finished, namely the first-level route transmits the sub-data packet downwards to the second-level route, the second-level route transmits the sub-data packet downwards to the third-level route, if the fourth-level route does not exist, the third-level route transmits the sub-data packet upwards to the second-level route, and the second-level route receives the sub-data packet transmitted upwards by the third-level route and then transmits the sub-data packet upwards to the first-level route. Since the uplink transmission is carried out along the original path and the relation between the uplink transmission and the previous-level path is 1 to 1, the sub-data packets of the uplink transmission do not need to be evenly divided. In transmitting data, one sub-route has only one primary route or sub-route of the previous stage, but there may be a plurality of sub-routes of the next stage.
In this embodiment, S104, the downlink rate V 1 is an average value, the main data packet is equally divided into a plurality of sub-data packets and transmitted to different sub-routes, where different downlink rates exist, and the sub-routes equally divide the received sub-data packet to different sub-routes of the next stage, where different downlink rates exist. Therefore, the downlink rate V 1 refers to the average value of the downlink rates of all the sub-packets in the process that the main data packet reaches the final stage of sub-route; the uplink rate V 2 is the same. One downlink time exists in every two connected routes, a plurality of downlink times exist, and the downlink transmission time deviation T 1 is the deviation degree of each downlink time and the minimum downlink time; the uplink transmission time offset T 2 is the same. The loss rate of the main data packet refers to the ratio of the amount of lost data to the amount of data of the main data packet. The data in the sub-data packet received by the main route is transmitted from the main route to the sub-route of the last stage, and is transmitted back to the main route from the sub-route of the last stage.
In this embodiment, in S105, the channel quality value is used to determine the network quality of the multi-tree network starting from the primary route, and the larger the channel quality value is, the better the network quality of the multi-tree network starting from the primary route is.
In this embodiment, in S106, the primary route having the largest channel quality value is determined as the primary route for communication with the optical cat, i.e., the egress route. The egress route is a main route for communicating with the optical cat, only one of which is determined, and the other main routes are used as a sub-route of the multi-tree networking of the main route.
In this embodiment, in S107, the occurrence of the transaction signal of a sub-route is various, for example, a certain sub-route is disconnected, the sub-route is not checked by the route of the upper stage of the sub-route, and the transaction signal of the sub-route is sent; for example, interference of environmental factors or change in transmission position of a certain sub-route causes weakening of signal processing capability of the sub-route, and a transaction signal of the sub-route is transmitted.
In this embodiment, in S107, the primary-secondary relationship between the primary route generating the transaction signal and the secondary route connected thereto is essentially exchanged, and the positions of both routes in the multi-tree network are exchanged, and the routes connected to the two exchanged routes also need to be changed accordingly. For example, the main route is connected with the sub-route 1, the sub-route 1 is connected with the sub-route 2 and the sub-route 3, and the sub-mother relation between the sub-route 1 and the sub-route 2, namely, the sub-route 2 is connected with the sub-route 1 is exchanged, so that the multi-branch tree networking becomes that the main route is connected with the sub-route 2, and the sub-route 2 is connected with the sub-route 1 and the sub-route 3.
In this embodiment, in S107, exchanging the primary-secondary relationship between the primary route generating the transaction signal and the primary route connected thereto, each time exchanging the primary-secondary relationship is performed once on the primary route communicating with the optical cat S102-S105, including:
s901, selecting a sub-route connected with the sub-route generating the abnormal signal, and disconnecting the connection relationship between the selected sub-route and the sub-route generating the abnormal signal;
s902, exchanging all connection relations of the selected sub-route and the sub-route generating the abnormal signal;
s903, establishing a connection relationship between the selected sub-route and the sub-route generating the abnormal signal by taking the selected sub-route as a parent route and the sub-route generating the abnormal signal as the sub-route;
s904, performing S102-S105 once for the main route of communication with the light cat;
S905, restoring the connection relation between the routes after exchange to the connection relation between the routes before exchange, and selecting one unselected sub-route from the sub-routes connected with the sub-routes generating the abnormal signals to execute S901-S904;
S906, repeating S905 until all the sub-routes connected to the sub-route generating the transaction signal are selected.
In this embodiment, in S108, if there are a plurality of exchange relationships, the exchange route with the highest channel quality value of the main route obtained after exchange is determined as the primary-secondary relationship of the exchange, and it is ensured that the channel quality value of the main route obtained after exchange is higher than before exchange. If there is only one exchange relation and the channel quality value of the main route obtained after exchange is lower than that before exchange, then exchange can be carried out to the next stage, if there is no next stage, the original primary-secondary relation is restored. If the sub-route is still present after the exchange, then the route exchange may be to the next level or peer.
In this embodiment, in S109, the preset period may be a multiple of the average time period used for running out S102-S108, or may be a manually set time period, for example, 12 hours.
The intelligent primary-secondary relation establishing method of the Mesh system provided by the embodiment of the application forms a plurality of multi-branch tree networking taking a main route as a starting point by establishing primary-secondary relations among routes; for each main route, generating a main data packet, dividing the main data packet into a plurality of sub-data packets according to the number of next-stage sub-routes connected with the main route, and respectively transmitting the sub-data packets to each connected next-stage sub-route; receiving a plurality of sub-data packets which are transmitted along the original route in an uplink manner by a sub-route; calculating the downlink speed V 1, the uplink speed V 2, the downlink transmission time deviation T 1, the uplink transmission time deviation T 2 and the loss rate a of the main data packet of the main route according to each sub data packet received by the main route; obtaining a channel quality value of the main route according to V 1、V2、T1、T2 and a; determining a main route communicated with the optical cat as an exit route according to the channel quality value of each main route; judging whether a transaction signal of a sub-route is received, if yes, exchanging a sub-route generating the transaction signal with a sub-and-mother relation of the sub-route connected with the sub-route, and executing more than one step on a main route communicated with a light cat by exchanging the sub-and-mother relation each time; determining a primary-secondary relation of exchange according to the channel quality value of the main route obtained after each exchange and carrying out exchange update on the multi-branch tree network; repeating the above steps every other preset period. The application determines the channel quality value of the main route by transmitting the sub-data packet downwards to each main route and receiving the sub-data packet transmitted upwards to each sub-route; determining a main route communicated with the optical cat as an exit route according to the channel quality value of each main route, and adjusting the communication link to the communication link with the best network quality so as to optimize the network quality; exchanging the primary-secondary relation of the primary route generating the abnormal signal and the secondary route connected with the primary route generating the abnormal signal, calculating the channel quality value of the primary route communicated with the optical modem once by exchanging the primary-secondary relation each time, determining the primary-secondary relation of one exchange according to the channel quality value of the primary route obtained after each exchange, exchanging and updating the multi-branch tree network, and adjusting the position of the secondary route generating the abnormal signal to optimize the network quality of the secondary route. Whereby the network quality can be self-adjusted to optimize the network quality.
In one embodiment, the method equally divides the main data packet into a plurality of sub data packets according to the number of the sub routes connected by the main route on the multi-tree network and transmits the sub data packets to each connected sub route, and then further comprises:
S201, judging whether the sub-route of the received sub-data packet has the sub-route connected with the next stage, if so, dividing the received sub-data packet into a plurality of sub-data packets of the next stage according to the number of the sub-routes connected with the next stage, and respectively transmitting the sub-data packets to each sub-route connected with the next stage, otherwise, not operating;
S202, repeating S201 until the sub-route of the received sub-data packet has no sub-route connected to the next stage.
In this embodiment, since the uplink transmission of the sub-packet starts from the sub-route of the last stage, it is necessary to determine whether the sub-route receiving the sub-packet has the sub-route connected to the next stage, and if so, the sub-packet needs to be equally divided into several sub-packets for downlink transmission until the sub-route receiving the sub-packet has no sub-route connected to the next stage. For example, the main data packet is 10M, and the main route is connected with 2 sub-routes, that is, 2 sub-routes in the second level route of the multi-tree network with the main route as the starting point, so that the data volume of the equally divided sub-data packet is 5M. The main route transmits sub-packets of 5M to each sub-route separately. All the 2 sub-routes have 2 next-level sub-routes, namely the third-level route has 4 sub-routes, and if no data loss exists, the sub-data packet of 5M is equally divided into 2 sub-data packets of 2.5M. If the fourth-level route does not exist, downlink transmission is not performed any more, and uplink transmission is performed from the third-level route.
In one embodiment, the sub-routes respectively transmitted to the next stage connection include:
S301, judging whether a connection port is idle, if yes, judging whether idle time reaches preset time, and if yes, transmitting the idle time to a next-stage connected sub-route corresponding to the connection port;
S302, repeating S301 until the idle time reaches the preset time if the idle time does not reach the preset time;
S303, if the connection port is not idle, repeating S301-S302 until the connection port is idle;
S304, in the transmission process of the sub-data packet, judging whether the transmission data of the network end appears, if so, stopping the transmission of the sub-data packet, and executing S301-S303.
In this embodiment, since the routes in the multi-drop tree network are in a normal operation state, it is necessary to select an idle time for testing. Since data is transmitted through the connection port, the route is idle when the connection port is idle.
In this embodiment, the preset time may be slightly longer than the data transmission interval of the network, so that it is ensured that the connection port is not misjudged to be in the idle state due to the data transmission interval of the network. For example, the data transmission interval of the network is 0.1ms, and the preset time may be set to 0.2ms.
In this embodiment, in the process of transmitting the sub-packet, transmission data of the network end appears, and transmission of the sub-packet is stopped. If the sub-data packet is not completely transmitted, the sub-route of the next stage is required to discard the received partial sub-data packet and notify the main route at the same time, and wait for the next connection port to be idle and then re-transmit the sub-data packet.
In one embodiment, calculating the downstream rate V 1 and the upstream rate V 2 of the primary route according to each sub-packet received by the primary route includes:
For each sub-data packet received by the main route, determining the downlink time length b i and the uplink time length c i of the sub-route of the sub-data packet in each stage;
determining the data quantity A i of the sub-data packet received by the sub-route of each stage before downlink transmission;
Determining the data quantity B i of the sub-data packet before uplink transmission of the sub-route of each stage;
From the following components Obtaining the downlink rate d k of the sub-data packet;
From the following components Obtaining the downlink rate V 1 of the main route;
From the following components Obtaining the uplink rate e k of the sub-data packet;
From the following components Obtaining the uplink rate V 2 of the main route;
wherein i is the number of routing stages where the sub-route is located, i is counted from 2, N is the total number of the sub-routes, k is the number of the sub-data packets received by the main route, k is counted from 1, and N is the total number of the sub-data packets received by the main route.
In this embodiment, the first level route is the main route, and the second level route has sub-routes, so i counts from 2.
In this embodiment, since data may be lost in transmission, the calculation uses the data amount of the sub data before transmission, not the data amount of the received sub data.
In this embodiment, for each sub-packet received by the main route, only one sub-route is corresponding to each level of sub-route, so the data amount a i of the sub-packet received by each level of sub-route before downlink transmission, that is, the data amount of the sub-packet after the sub-packet received by the previous level of route is equally divided.
In this embodiment, if there are multiple sub-routes, there are multiple sub-packets, i.e. there are multiple downstream rates, so it is necessary to calculate an average downstream rate to represent the downstream rate that occurs during all downstream transmissions. The uplink rate is the same.
In this embodiment, the downlink rate d k of a sub-packet is calculated first, and the downlink rates of the sub-packets are different between routes of each level, so d k is an average value, and then the average value between d k of all the sub-packets is calculated to obtain the downlink rate V 1 of the main route. The uplink rate is the same.
In this embodiment, for example, the second level route has a sub-route 1, the third level route has a sub-route 2 and a sub-route 3, and the sub-route 2 and the sub-route 3 are respectively connected to the sub-route 1, and only three levels of routes are provided. For sub-packets requiring uplink transmission from sub-route 2 to sub-route 3, the downlink rate of the data between the main route and sub-route 1 is essentially the downlink rate of the sub-packets transmitted from the main route to sub-route 1, i.e. for sub-packets requiring uplink transmission from sub-route 2 to sub-route 3, the first downlink transmission rate of the sub-packets is the same.
In one embodiment, the determining the downlink duration b i and the uplink duration c i of the sub-route of the sub-packet at each stage includes:
acquiring all time stamps of the sub data packet, dividing all time stamps into a time group according to a time sequence, and counting the number D of the time groups;
subtracting the previous time stamp from the next time stamp to obtain a transmission duration for each group of time groups;
according to the front The transmission duration of the group time group determines the downlink duration b i of the sub-route of the sub-data packet at each stage;
According to the back The transmission duration of the group time group determines the uplink duration c i of the sub-route of the sub-packet at each stage.
In this embodiment, each route starts data transmission and after receiving the complete data, a time stamp is added to the data packet, and the process is performed spontaneously. The main route can calculate the downlink time length and the uplink time length of each sub-data packet in each level route according to the attached time stamp on the sub-data packet.
In this embodiment, data is transmitted before being received, so the transmission time is before the reception time. Each time group represents the duration of a sub-packet transmission between two routes.
In this embodiment, since the sub-packet is first transmitted to the sub-route of the last stage, and the sub-route of the last stage is transmitted to the main route, the time group includes the duration of the downlink transmission and the duration of the uplink transmission, and the number of the time groups of the downlink transmission is the same as the number of the time groups of the uplink transmission. For example, if there are 4 time groups in the sub-packet received by one main route, the 1 st time group is the transmission time length of the main route for downlink transmission of the sub-route of the second-level route, the 2 nd time group is the transmission time length of the sub-route of the second-level route for downlink transmission of the sub-route of the third-level route, the 3 rd time group is the transmission time length of the sub-route of the third-level route for uplink transmission of the sub-route of the second-level route, and the 4 th time group is the transmission time length of the sub-route of the second-level route for uplink transmission of the main route.
In one embodiment, calculating the downlink transmission time deviation T 1 and the uplink transmission time deviation T 2 of the main route according to each sub-packet received by the main route includes:
Determining the minimum downlink duration b min according to the downlink duration of all the sub-data packets;
Determining the minimum uplink length c min according to the uplink lengths of all the sub-data packets;
For each sub-packet received by the primary route, a packet is sent by Obtaining the downlink transmission time deviation f k of the sub-data packet;
From the following components Obtaining a downlink transmission time deviation T 1 of the main route;
From the following components Obtaining the uplink transmission time deviation g k of the sub-data packet;
From the following components Obtaining a downlink transmission time deviation T 1 of the main route;
wherein m i is the number of sub-routes in the ith level of route.
In this embodiment, for example, the second level route has 1 sub-route and the third level route has 2 sub-routes, and then the data volume of the sub-data packet downstream transmitted from the main route to the second level route is 2 times that of the sub-data packet downstream transmitted from the second level route to the third level route, and the time is 2 times that of the sub-data packet downstream transmitted from the second level route to the third level route, so that the transmission time required in the sub-data packet downstream from the main route to the second level route is 1/2 of that of the original sub-data packet, namely
In this embodiment, the uplink transmission does not involve the sub-packet combining process, so that the uplink data does not need to be processed.
In one embodiment, calculating the loss rate a of the main data packet according to each sub data packet received by the main route includes:
Determining the data quantity C k of each received sub-data packet;
From the following components Obtaining the loss rate a of the main data packet;
wherein k is the serial number of the sub-data packets received by the main route, k is counted from 1, N is the total number of the sub-data packets received by the main route, and E is the data volume of the main data packet.
In this embodiment, N is the total number of sub-packets received by the primary route, and is also the number of sub-routes of the last-stage route.
In one embodiment, the obtaining the channel quality value of the primary route according to V 1、V2、T1、T2 and a includes:
From the following components Obtaining an average transmission rate V 3 of the main route;
From the following components Obtaining an average transmission time deviation T 3 of the main route;
From the following components Obtaining a channel quality value of the primary route;
Where x 1 is the transmission coefficient, y 1 is the rate factor, y 2 is the time factor, and y 3 is the actual transmission factor.
In this embodiment, since the downlink rate is generally 10 times the uplink rate, x 1 may be set to 10 in order to reduce the influence of the downlink rate on the uplink rate.
In this embodiment, all uplink rates are multiplied by x 1 and then compared with all downlink rates, the maximum rate is selected as V max, the transmission time deviation T max,y1 for beating is selected from the downlink transmission time deviation and the uplink transmission time deviation as the ratio of Y 1 to V max, and Y 2 is the ratio of Y 2 to T max. The value of Y 1、Y2 and Y 3 added together is 1. The values of Y 1、Y2 and Y 3 may be set to 1/3. The values of Y 1、Y2 and Y 3 may also be determined according to the actual requirements. For example, where the actual demand requires a fast transfer rate, then the value of Y 1 can be set larger, only to ensure that the sum of Y 1、Y2 and Y 3 is 1.
As shown in fig. 2, in one embodiment, an intelligent primary-secondary relationship establishing apparatus of a Mesh system is provided, which may specifically include:
the connection module is used for establishing a primary-secondary relation between routes and forming a plurality of multi-branch tree networking taking a main route as a starting point;
The downlink transmission module is used for generating a main data packet for each main route, dividing the main data packet into a plurality of sub-data packets according to the number of next-stage sub-routes connected with the main route, and respectively transmitting the sub-data packets to each connected next-stage sub-route;
the uplink transmission module is used for receiving a plurality of sub-data packets which are transmitted by the sub-route along the original uplink;
The calculation parameter module is used for calculating the downlink speed V 1, the uplink speed V 2, the downlink transmission time deviation T 1, the uplink transmission time deviation T 2 and the loss rate a of the main data packet of the main route according to each sub data packet received by the main route;
a quality determining module, configured to obtain a channel quality value of the primary route according to V 1、V2、T1、T2 and a;
a determining route module, configured to determine, according to the channel quality value of each main route, that a main route in communication with the optical modem is an egress route;
The exchange calculation module is used for judging whether abnormal signals of the sub-routes are received or not, if yes, exchanging the sub-routes generating the abnormal signals and the sub-master relations of the sub-routes connected with the sub-routes, and executing a downlink transmission module, an uplink transmission module, a calculation parameter module and a quality determination module on the main routes communicated with the optical cat by exchanging the sub-master relations each time;
And the exchange route module is used for determining an exchange primary-secondary relation according to the channel quality value of the main route obtained after each exchange and carrying out exchange update on the multi-branch tree network.
In this embodiment, each module of the intelligent primary-secondary relationship establishing device of the Mesh system is modularized in the method portion of the present invention, and for specific explanation of each module, please refer to the corresponding content of the method portion of the present invention, and the embodiments of the present invention are not repeated here.
As shown in fig. 3, in one embodiment, an intelligent primary-secondary relationship establishing system of a Mesh system is provided, where the intelligent primary-secondary relationship establishing system of the Mesh system includes a light cat and a plurality of routes;
the optical cats are respectively connected with a plurality of routes and are used for converting optical fiber signals into Ethernet signals of the router;
The routes are connected with each other to form a plurality of multi-branch tree networks taking the main route as a starting point;
The route comprises a route body and control equipment arranged in the route, wherein the control equipment is used for executing the steps of the intelligent primary-secondary relation establishment method of the Mesh system.
In this embodiment, the routes are divided into a main route and a sub-route according to the connection relationship with the optical cat, and in a multi-tree network, the route connected with the optical cat is the main route, and the other routes are the sub-routes.
In this embodiment, as shown in fig. 3, both routes 1 and 2 may be primary routes, in the multi-tree network with route 1 as the primary route, route 1 is the primary route, that is, the first-level route, the second-level route may be route 3 and route 4, and the third-level route may be route 5, route 2 and route 6, where route 5 is connected to route 3, and routes 2 and 6 are connected to route 4, respectively. In the multi-drop networking with route 2 as the primary route, route 2 is the primary route, i.e., the first-level route, the second-level route is route 4, and the third-level route may be route 1, route 3, route 5, and route 6. The broken lines in the figure do not represent the connection relationship, but only represent that the two pieces can be connected, and once the two pieces are connected, the two pieces have the primary-secondary relationship.
The intelligent primary-secondary relation establishing system of the Mesh system forms a plurality of multi-branch tree networking taking a main route as a starting point by establishing primary-secondary relations among routes; for each main route, generating a main data packet, dividing the main data packet into a plurality of sub-data packets according to the number of next-stage sub-routes connected with the main route, and respectively transmitting the sub-data packets to each connected next-stage sub-route; receiving a plurality of sub-data packets which are transmitted along the original route in an uplink manner by a sub-route; calculating the downlink speed V 1, the uplink speed V 2, the downlink transmission time deviation T 1, the uplink transmission time deviation T 2 and the loss rate a of the main data packet of the main route according to each sub data packet received by the main route; obtaining a channel quality value of the main route according to V 1、V2、T1、T2 and a; determining a main route communicated with the optical cat as an exit route according to the channel quality value of each main route; judging whether a transaction signal of a sub-route is received, if yes, exchanging a sub-route generating the transaction signal with a sub-and-mother relation of the sub-route connected with the sub-route, and executing more than one step on a main route communicated with a light cat by exchanging the sub-and-mother relation each time; determining a primary-secondary relation of exchange according to the channel quality value of the main route obtained after each exchange and carrying out exchange update on the multi-branch tree network; repeating the above steps every other preset period. The application determines the channel quality value of the main route by transmitting the sub-data packet downwards to each main route and receiving the sub-data packet transmitted upwards to each sub-route; determining a main route communicated with the optical cat as an exit route according to the channel quality value of each main route, and adjusting the communication link to the communication link with the best network quality so as to optimize the network quality; exchanging the primary-secondary relation of the primary route generating the abnormal signal and the secondary route connected with the primary route generating the abnormal signal, calculating the channel quality value of the primary route communicated with the optical modem once by exchanging the primary-secondary relation each time, determining the primary-secondary relation of one exchange according to the channel quality value of the primary route obtained after each exchange, exchanging and updating the multi-branch tree network, and adjusting the position of the secondary route generating the abnormal signal to optimize the network quality of the secondary route. Whereby the network quality can be self-adjusted to optimize the network quality.
Fig. 4 shows an internal structural diagram of the control device in one embodiment. As shown in fig. 4, the control apparatus includes a processor, a memory, a network interface, an input device, and a display screen connected through a system bus. The memory includes a nonvolatile storage medium and an internal memory. The nonvolatile storage medium of the control device stores an operating system and also stores a computer program, and when the computer program is executed by a processor, the processor can be enabled to realize the intelligent primary-secondary relation establishing method of the Mesh system. The internal memory may also store a computer program, which when executed by the processor, causes the processor to execute the method for establishing the intelligent primary-secondary relationship of the Mesh system provided by the embodiment of the invention.
It will be appreciated by those skilled in the art that the structure shown in fig. 4 is merely a block diagram of a portion of the structure associated with the present inventive arrangements and is not limiting of the control device to which the present inventive arrangements are applied, and that a particular control device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the device for establishing the intelligent primary-secondary relationship of the Mesh system provided by the embodiment of the invention may be implemented in a form of a computer program, and the computer program may be run on a control device as shown in fig. 4. The memory of the control device may store each program module of the intelligent primary-secondary relationship establishing device that composes the Mesh system, for example, a connection establishment module, a downlink transmission module, an uplink transmission module, a parameter calculation module, a quality determination module, a route determination module, a switch calculation module, and a switch route module shown in fig. 3. The computer program formed by the program modules causes the processor to execute the steps in the method for establishing the intelligent primary-secondary relationship of the Mesh system according to the embodiments of the invention described in the specification.
For example, the control device shown in fig. 4 may execute step S101 through the connection establishment module in the intelligent primary-secondary relationship establishment apparatus of the Mesh system as shown in fig. 3; the control device may execute step S102 through the downlink transmission module; the control device may execute step S103 through the uplink transmission module; the control device may execute step S104 through the calculation parameter module; the control device may perform step S105 by determining a quality module; the control device may perform step S106 by determining the routing module; the control device may execute step S107 by exchanging the calculation module; the control device may perform step S108 by exchanging the routing module.
In one embodiment, a control device is provided, the control device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
S101, establishing a primary-secondary relation between routes to form a plurality of multi-branch tree networks taking a main route as a starting point;
S102, for each main route, generating a main data packet, dividing the main data packet into a plurality of sub-data packets according to the number of next-stage sub-routes connected with the main route, and respectively transmitting the sub-data packets to each connected next-stage sub-route;
s103, receiving a plurality of sub-data packets which are transmitted along the original uplink by the sub-route;
S104, calculating the downlink speed V 1, the uplink speed V 2, the downlink transmission time deviation T 1, the uplink transmission time deviation T 2 and the loss rate a of the main data packet of the main route according to each sub data packet received by the main route;
S105, obtaining the channel quality value of the main route according to V 1、V2、T1、T2 and a;
S106, determining a main route communicated with the light cat as an exit route according to the channel quality value of each main route;
S107, judging whether a transaction signal of a sub-route is received, if yes, exchanging a sub-route generating the transaction signal with a sub-parent relation of the sub-route connected with the sub-route, and executing the S102-S105 on a main route communicated with a light cat once by exchanging the sub-parent relation each time;
s108, determining a primary-secondary relation of exchange according to the channel quality value of the main route obtained after each exchange and carrying out exchange update on the multi-way tree network;
S109, executing S102-S108 once every other preset period.
In one embodiment, a computer readable storage medium is provided, having a computer program stored thereon, which when executed by a processor causes the processor to perform the steps of:
S101, establishing a primary-secondary relation between routes to form a plurality of multi-branch tree networks taking a main route as a starting point;
S102, for each main route, generating a main data packet, dividing the main data packet into a plurality of sub-data packets according to the number of next-stage sub-routes connected with the main route, and respectively transmitting the sub-data packets to each connected next-stage sub-route;
s103, receiving a plurality of sub-data packets which are transmitted along the original uplink by the sub-route;
S104, calculating the downlink speed V 1, the uplink speed V 2, the downlink transmission time deviation T 1, the uplink transmission time deviation T 2 and the loss rate a of the main data packet of the main route according to each sub data packet received by the main route;
S105, obtaining the channel quality value of the main route according to V 1、V2、T1、T2 and a;
S106, determining a main route communicated with the light cat as an exit route according to the channel quality value of each main route;
S107, judging whether a transaction signal of a sub-route is received, if yes, exchanging a sub-route generating the transaction signal with a sub-parent relation of the sub-route connected with the sub-route, and executing the S102-S105 on a main route communicated with a light cat once by exchanging the sub-parent relation each time;
s108, determining a primary-secondary relation of exchange according to the channel quality value of the main route obtained after each exchange and carrying out exchange update on the multi-way tree network;
S109, executing S102-S108 once every other preset period.
It should be understood that, although the steps in the flowcharts of the embodiments of the present invention are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in various embodiments may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
Those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (SYNCHLINK) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the invention and are described in detail herein without thereby limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention.

Claims (6)

1. The method for establishing the intelligent primary-secondary relationship of the Mesh system is characterized by comprising the following steps of:
S101, establishing a primary-secondary relation between routes to form a plurality of multi-branch tree networks taking a main route as a starting point;
S102, for each main route, generating a main data packet, dividing the main data packet into a plurality of sub-data packets according to the number of next-stage sub-routes connected with the main route, and respectively transmitting the sub-data packets to each connected next-stage sub-route;
s103, receiving a plurality of sub-data packets which are transmitted along the original uplink by the sub-route;
S104, calculating the downlink speed V 1, the uplink speed V 2, the downlink transmission time deviation T 1, the uplink transmission time deviation T 2 and the loss rate a of the main data packet of the main route according to each sub data packet received by the main route;
S105, obtaining the channel quality value of the main route according to V 1、V2、T1、T2 and a;
S106, determining a main route communicated with the light cat as an exit route according to the channel quality value of each main route;
S107, judging whether a transaction signal of a sub-route is received, if yes, exchanging a sub-route generating the transaction signal with a sub-parent relation of the sub-route connected with the sub-route, and executing the S102-S105 on a main route communicated with a light cat once by exchanging the sub-parent relation each time;
s108, determining a primary-secondary relation of exchange according to the channel quality value of the main route obtained after each exchange and carrying out exchange update on the multi-way tree network;
S109, executing S102-S108 once every other preset period;
Calculating the downlink rate V 1 and the uplink rate V 2 of the main route according to each sub-data packet received by the main route, including:
For each sub-data packet received by the main route, determining the downlink time length b i and the uplink time length c i of the sub-route of the sub-data packet in each stage;
determining the data quantity A i of the sub-data packet received by the sub-route of each stage before downlink transmission;
Determining the data quantity B i of the sub-data packet before uplink transmission of the sub-route of each stage;
From the following components Obtaining the downlink rate d k of the sub-data packet;
From the following components Obtaining the downlink rate V 1 of the main route;
From the following components Obtaining the uplink rate e k of the sub-data packet;
From the following components Obtaining the uplink rate V 2 of the main route;
wherein i is the serial number of the route level where the sub-route is located, i is counted from 2, N is the total level of the sub-route, k is the serial number of the sub-data packets received by the main route, k is counted from 1, and N is the total number of the sub-data packets received by the main route;
calculating the downlink transmission time deviation T 1 and the uplink transmission time deviation T 2 of the main route according to each sub-data packet received by the main route, including:
Determining the minimum downlink duration b min according to the downlink duration of all the sub-data packets;
Determining the minimum uplink length c min according to the uplink lengths of all the sub-data packets;
For each sub-packet received by the primary route, a packet is sent by Obtaining the downlink transmission time deviation f k of the sub-data packet;
From the following components Obtaining a downlink transmission time deviation T 1 of the main route;
From the following components Obtaining the uplink transmission time deviation g k of the sub-data packet;
From the following components Obtaining a downlink transmission time deviation T 1 of the main route;
Wherein m i is the number of sub-routes in the ith level of route;
calculating a loss rate a of the main data packet according to each sub data packet received by the main route, including:
Determining the data quantity C k of each received sub-data packet;
From the following components Obtaining the loss rate a of the main data packet;
Wherein k is the serial number of the sub-data packets received by the main route, k is counted from 1, N is the total number of the sub-data packets received by the main route, and E is the data volume of the main data packet;
The obtaining the channel quality value of the main route according to V 1、V2、T1、T2 and a includes:
From the following components Obtaining an average transmission rate V 3 of the main route;
From the following components Obtaining an average transmission time deviation T 3 of the main route;
From the following components Obtaining a channel quality value of the primary route;
Where x 1 is the transmission coefficient, y 1 is the rate factor, y 2 is the time factor, and y 3 is the actual transmission factor.
2. The method for establishing the intelligent primary-secondary relationship of the Mesh system according to claim 1, wherein the method is characterized in that the main data packet is divided into a plurality of sub data packets according to the number of sub routes connected by the main route on the multi-tree network and transmitted to each connected sub route, and further comprises the following steps:
S201, judging whether the sub-route of the received sub-data packet has the sub-route connected with the next stage, if so, dividing the received sub-data packet into a plurality of sub-data packets of the next stage according to the number of the sub-routes connected with the next stage, and respectively transmitting the sub-data packets to each sub-route connected with the next stage, otherwise, not operating;
S202, repeating S201 until the sub-route of the received sub-data packet has no sub-route connected to the next stage.
3. The method for establishing the intelligent primary-secondary relationship of the Mesh system according to claim 2, wherein the respective sub-routes transmitted to the next-stage connection include:
S301, judging whether a connection port is idle, if yes, judging whether idle time reaches preset time, and if yes, transmitting the idle time to a next-stage connected sub-route corresponding to the connection port;
S302, repeating S301 until the idle time reaches the preset time if the idle time does not reach the preset time;
S303, if the connection port is not idle, repeating S301-S302 until the connection port is idle;
S304, in the transmission process of the sub-data packet, judging whether the transmission data of the network end appears, if so, stopping the transmission of the sub-data packet, and executing S301-S303.
4. The method for establishing the intelligent primary-secondary relationship of the Mesh system according to claim 1, wherein the determining the downlink duration b i and the uplink duration c i of the sub-route of the sub-packet in each stage includes:
acquiring all time stamps of the sub data packet, dividing all time stamps into a time group according to a time sequence, and counting the number D of the time groups;
subtracting the previous time stamp from the next time stamp to obtain a transmission duration for each group of time groups;
according to the front The transmission duration of the group time group determines the downlink duration b i of the sub-route of the sub-data packet at each stage;
According to the back The transmission duration of the group time group determines the uplink duration c i of the sub-route of the sub-packet at each stage.
5. An intelligent primary-secondary relationship establishing device of a Mesh system is characterized in that the intelligent primary-secondary relationship establishing device of the Mesh system comprises:
the connection module is used for establishing a primary-secondary relation between routes and forming a plurality of multi-branch tree networking taking a main route as a starting point;
The downlink transmission module is used for generating a main data packet for each main route, dividing the main data packet into a plurality of sub-data packets according to the number of next-stage sub-routes connected with the main route, and respectively transmitting the sub-data packets to each connected next-stage sub-route;
the uplink transmission module is used for receiving a plurality of sub-data packets which are transmitted by the sub-route along the original uplink;
The calculation parameter module is used for calculating the downlink speed V 1, the uplink speed V 2, the downlink transmission time deviation T 1, the uplink transmission time deviation T 2 and the loss rate a of the main data packet of the main route according to each sub data packet received by the main route;
a quality determining module, configured to obtain a channel quality value of the primary route according to V 1、V2、T1、T2 and a;
a determining route module, configured to determine, according to the channel quality value of each main route, that a main route in communication with the optical modem is an egress route;
The exchange calculation module is used for judging whether abnormal signals of the sub-routes are received or not, if yes, exchanging the sub-routes generating the abnormal signals and the sub-master relations of the sub-routes connected with the sub-routes, and executing a downlink transmission module, an uplink transmission module, a calculation parameter module and a quality determination module on the main routes communicated with the optical cat by exchanging the sub-master relations each time;
The exchange route module is used for determining an exchange primary-secondary relation according to the channel quality value of the main route obtained after each exchange and carrying out exchange update on the multi-branch tree network;
Calculating the downlink rate V 1 and the uplink rate V 2 of the main route according to each sub-data packet received by the main route, including:
For each sub-data packet received by the main route, determining the downlink time length b i and the uplink time length c i of the sub-route of the sub-data packet in each stage;
determining the data quantity A i of the sub-data packet received by the sub-route of each stage before downlink transmission;
Determining the data quantity B i of the sub-data packet before uplink transmission of the sub-route of each stage;
From the following components Obtaining the downlink rate d k of the sub-data packet;
From the following components Obtaining the downlink rate V 1 of the main route;
From the following components Obtaining the uplink rate e k of the sub-data packet;
From the following components Obtaining the uplink rate V 2 of the main route;
wherein i is the serial number of the route level where the sub-route is located, i is counted from 2, N is the total level of the sub-route, k is the serial number of the sub-data packets received by the main route, k is counted from 1, and N is the total number of the sub-data packets received by the main route;
calculating the downlink transmission time deviation T 1 and the uplink transmission time deviation T 2 of the main route according to each sub-data packet received by the main route, including:
Determining the minimum downlink duration b min according to the downlink duration of all the sub-data packets;
Determining the minimum uplink length c min according to the uplink lengths of all the sub-data packets;
For each sub-packet received by the primary route, a packet is sent by Obtaining the downlink transmission time deviation f k of the sub-data packet;
From the following components Obtaining a downlink transmission time deviation T 1 of the main route;
From the following components Obtaining the uplink transmission time deviation g k of the sub-data packet;
From the following components Obtaining a downlink transmission time deviation T 1 of the main route;
Wherein m i is the number of sub-routes in the ith level of route;
calculating a loss rate a of the main data packet according to each sub data packet received by the main route, including:
Determining the data quantity C k of each received sub-data packet;
From the following components Obtaining the loss rate a of the main data packet;
Wherein k is the serial number of the sub-data packets received by the main route, k is counted from 1, N is the total number of the sub-data packets received by the main route, and E is the data volume of the main data packet;
The obtaining the channel quality value of the main route according to V 1、V2、T1、T2 and a includes:
From the following components Obtaining an average transmission rate V 3 of the main route;
From the following components Obtaining an average transmission time deviation T 3 of the main route;
From the following components Obtaining a channel quality value of the primary route;
Where x 1 is the transmission coefficient, y 1 is the rate factor, y 2 is the time factor, and y 3 is the actual transmission factor.
6. The intelligent primary-secondary relation establishing system of the Mesh system is characterized by comprising a light cat and a plurality of routes;
the optical cats are respectively connected with a plurality of routes and are used for converting optical fiber signals into Ethernet signals of the router;
The routes are connected with each other to form a plurality of multi-branch tree networks taking the main route as a starting point;
the route comprises a route body and control equipment arranged in the route, wherein the control equipment is used for executing the steps of the intelligent primary-secondary relation establishing method of the Mesh system according to any one of claims 1 to 4.
CN202410448973.5A 2024-04-15 2024-04-15 Intelligent primary-secondary relationship establishment method, device and system of Mesh system Active CN118055471B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410448973.5A CN118055471B (en) 2024-04-15 2024-04-15 Intelligent primary-secondary relationship establishment method, device and system of Mesh system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410448973.5A CN118055471B (en) 2024-04-15 2024-04-15 Intelligent primary-secondary relationship establishment method, device and system of Mesh system

Publications (2)

Publication Number Publication Date
CN118055471A CN118055471A (en) 2024-05-17
CN118055471B true CN118055471B (en) 2024-06-25

Family

ID=91046889

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410448973.5A Active CN118055471B (en) 2024-04-15 2024-04-15 Intelligent primary-secondary relationship establishment method, device and system of Mesh system

Country Status (1)

Country Link
CN (1) CN118055471B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114745763A (en) * 2022-03-08 2022-07-12 深圳市欣博跃电子有限公司 Method and system for updating optimal network topology
WO2023124256A1 (en) * 2021-12-30 2023-07-06 中兴通讯股份有限公司 Internet access method for routing devices in wi-fi mesh, and routing device, management system, and medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023124256A1 (en) * 2021-12-30 2023-07-06 中兴通讯股份有限公司 Internet access method for routing devices in wi-fi mesh, and routing device, management system, and medium
CN114745763A (en) * 2022-03-08 2022-07-12 深圳市欣博跃电子有限公司 Method and system for updating optimal network topology

Also Published As

Publication number Publication date
CN118055471A (en) 2024-05-17

Similar Documents

Publication Publication Date Title
US7020086B2 (en) Lagrange quality of service routing
Khalife et al. Probabilistic path selection in opportunistic cognitive radio networks
KR101342323B1 (en) A radio and bandwidth aware routing metric for multi-radio multi-channel multi-hop wireless networks
CN107257261B (en) Dynamic link scheduling method for6TiSCH multi-hop wireless network
CN104813621A (en) Link adaptation for multi-hop route in wireless mesh network
US20220217089A1 (en) Path traffic allocation method, network device, and network system
EP3766276B1 (en) Methods and nodes for obtaining information regarding a bluetooth mesh network
US8792389B2 (en) Rapid deployment devices in wireless self-organizing networks and methods for same
Fedullo et al. Adaptive LoRaWAN transmission exploiting reinforcement learning: The industrial case
CN118055471B (en) Intelligent primary-secondary relationship establishment method, device and system of Mesh system
Kafetzakis et al. A novel effective capacity-based framework for providing statistical QoS guarantees in IEEE 802.11 WLANs
US20150003286A1 (en) Unknown
Marbach et al. Asynchronous CSMA policies in multihop wireless networks with primary interference constraints
Park et al. A learning-based distributed algorithm for scheduling in multi-hop wireless networks
Deng PSSB: priority enforced slow-start backoff algorithm for multimedia transmission in wireless ad-hoc networks
Chiariotti et al. Age of information in multihop connections with tributary traffic and no preemption
US9491088B2 (en) Distributed system and method for sharing capacity in an ad-hoc network
TW201637494A (en) Method for assigning backhaul links in cooperative wireless network
Mamduhi et al. Event-based data scheduling for a class of interconnected networked control systems
Liu et al. Distributed queue length based algorithms for optimal end-to-end throughput allocation and stability in multi-hop random access networks
El-Azouzi et al. Modeling slotted aloha as a stochastic game with random discrete power selection algorithms
Uddin et al. Joint configuration of routing and medium access parameters in wireless networks
Hohmann et al. Optimal resource allocation policy for multi-rate opportunistic forwarding
Kim et al. A distributed throughput-optimal CSMA with data packet collisions
Friderikos et al. Multi-rate power-controlled link scheduling for mesh broadband wireless access networks

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