Method, system, equipment and storage medium for video transmission based on mesh networking

文档序号:1570011 发布日期:2020-01-24 浏览:27次 中文

阅读说明:本技术 基于mesh组网进行视频传输的方法、系统、设备及存储介质 (Method, system, equipment and storage medium for video transmission based on mesh networking ) 是由 檀深秋 李辉 于 2019-09-11 设计创作,主要内容包括:本发明涉及一种基于mesh组网进行视频传输的方法、系统、设备及存储介质,属于视频传输领域,在当前节点传输视频数据时,搜索mesh组网中支持多链路传输的mesh节点,探测mesh节点是否满足多链路传输的条件,获取满足多链路传输条件的目标mesh节点,根据目标mesh节点建立当前节点与根节点之间的多链路连接,通过多链路连接中的节点传输视频数据至根节点,在根节点上对视频数据进行组合。相对于传统的选择最优单链路进行传输的方法,该方法可以在多条链路上进行视频传输,在根节点上再对视频数据进行组合,解决单链路在传输视频数据过程受到干扰时,需要重新选路而导致视频数据丢失的问题,提升视频传输的效率。(The invention relates to a method, a system, equipment and a storage medium for video transmission based on a mesh networking, belonging to the field of video transmission. Compared with the traditional method for selecting the optimal single link for transmission, the method can be used for carrying out video transmission on a plurality of links, and video data are combined on the root node, so that the problem that the video data are lost due to the fact that the single link needs to be re-routed when the video data transmission process is interfered is solved, and the video transmission efficiency is improved.)

1. A method for video transmission based on mesh networking is characterized by comprising the following steps:

when the current node transmits video data, searching a mesh node supporting multilink transmission in a mesh network;

detecting whether the mesh node meets the condition of multilink transmission or not, and acquiring the target mesh node meeting the condition of multilink transmission;

establishing a multilink connection between the current node and a root node according to the target mesh node;

transmitting the video data to the root node via nodes in the multilink connection, the video data being combined at the root node.

2. The method for video transmission based on mesh networking according to claim 1, wherein searching for a mesh node supporting multilink transmission in mesh networking when the current node performs video transmission comprises:

and if the received signal strength of the node is greater than the first preset value and the node has the private IE with the multilink, determining the node as the mesh node supporting the multilink transmission.

3. The method for video transmission based on mesh networking according to claim 2, wherein the detecting whether the mesh node satisfies a multilink transmission condition, and acquiring a target mesh node satisfying the multilink transmission condition comprises:

and judging whether the RTT and the packet loss rate of the mesh node are smaller than respective preset values, and if the RTT and the packet loss rate of the node are smaller than the respective preset values, taking the mesh node as the target mesh node.

4. The method for video transmission based on mesh networking according to claim 3, wherein after establishing the multilink connection between the current node and a root node according to the target mesh node, the method comprises:

after the multilink connection is established, monitoring whether a new mesh node is added into the mesh networking, detecting whether the new mesh node meets the multilink transmission condition when the new mesh node is added, re-acquiring the new target mesh node meeting the multilink transmission condition, and establishing the multilink connection between the current node and the root node according to the new target mesh node.

5. The method for video transmission based on mesh networking according to claim 4, wherein after establishing the multilink connection between the current node and a root node according to the target mesh node, the method further comprises:

and periodically detecting whether RTT and packet loss rate of the nodes in the multi-link connection are greater than respective preset values, if so, judging that the link to which the node belongs is a deteriorated link, deleting the deteriorated link, and not establishing connection for the deleted link within first preset time.

6. The method for video transmission based on mesh networking according to claim 1, wherein the transmitting video data to the root node through the nodes in the multilink connection comprises:

the nodes in the multilink connection are used for judging the importance level of the video data content in the process of transmitting the video data, reserving corresponding transmission bandwidth to the root node according to the importance level of the video data content, and the root node is used for dynamically adjusting the transmission bandwidth of the nodes in the multilink connection.

7. The method for video transmission based on mesh networking as claimed in claim 1, further comprising:

the root node is used for appointing a first-level node according to the channel transmission parameters collected by the nodes in the multilink connection, wherein the first-level node is directly connected with the root node, and simultaneously, the frequency band, the frequency width, the channel and the transmitting power of the first-level node are adjusted to divide areas.

8. The method for video transmission based on mesh networking as recited in claim 7, wherein the root node is further configured to perform periodic statistics on a code stream level of a node in the multilink connection, and when the code stream level of the node in the multilink connection is lower than a second preset value, the node in the multilink connection is cut off from the higher-level node, and video content of subsequent child nodes is cached, and when the code stream level of the node cut off from the connection is higher than the second preset value, the node cut off from the connection is established to be connected with the higher-level node, and video breakpoint continuous transmission of the single link is performed.

9. The method for video transmission based on mesh networking according to claim 1, wherein the combining the video data at the root node comprises:

the root node is used for merging the data frames of the video data of the nodes in the multilink connection according to the source MAC address of the video data and configuring the data frames of the same source MAC address into the same receiving queue, meanwhile, the data frames in the same receiving queue are sequenced according to the frame sequence numbers of the data frames, buffering the data frames in the same receiving queue within a second preset time, if the buffering of the data frames in the same receiving queue is completed within the second preset time, storing or forwarding the data frames in the same receiving queue to an external network, if the data frames in the same receiving queue are not completely cached in the second preset time, merging the data frames with the serial numbers of the continuous data frames from the head of the sequence, generating a message and reporting the message to a TCP/IP protocol stack.

10. The method for video transmission based on mesh networking of claim 9, wherein the root node comprises a wireless communication device with a storage function or a wireless communication device connected with an external network.

11. A system for video transmission based on mesh networking, comprising:

the searching unit is used for searching the mesh node supporting multilink transmission in the mesh network when the current node performs video transmission;

the detection unit is used for detecting whether the mesh node meets the condition of multilink transmission or not and acquiring a target mesh node meeting the condition of multilink transmission;

the establishing unit is used for establishing multilink connection between the current node and the root node according to the target mesh node;

a transmission unit, configured to transmit video data to the root node via a node in a multilink connection, and combine the video data at the root node.

12. The device for video transmission based on mesh networking is characterized by comprising a plurality of node devices and wireless communication devices, wherein the node devices are all in the mesh networking:

when the current node equipment transmits video data, searching intermediate node equipment supporting multilink transmission in the mesh network;

the current node equipment detects whether the intermediate node equipment meets the condition of multilink transmission or not, and acquires the target intermediate node equipment meeting the condition of multilink transmission;

the current node equipment establishes a multilink connection between the current node equipment and the wireless communication equipment according to the target intermediate node equipment;

the target intermediate node device transmits the video data to the wireless communication device, which combines the video data.

13. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 10 are implemented by the processor when executing the computer program.

14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 10.

Technical Field

The present invention relates to the field of video transmission, and in particular, to a method, system, device, and storage medium for video transmission based on mesh networking.

Background

The traditional video transmission field is that a plurality of cameras with wireless wifi (also called "mobile hotspot" in chinese, is a trademark of Wi-Fi alliance manufacturers as brand authentication of products, and is a wireless local area network technology established in IEEE 802.11 standard) devices and a root node (wireless monitoring video recorder), based on a wireless Mesh networking (Mesh networking, i.e., "wireless Mesh network", is a "multi-hop" network), an optimal path of the Mesh network is selected for single-link video transmission according to RSSI (Received Signal strength indication, which is RSSI for short), which is used to determine link quality and increase broadcast transmission strength, and the optimal path of the wireless transmission layer is selected, although partial problems in actual use scenes can be solved, when the single link is interfered in the process of transmitting video data, the single link needs to be re-routed, this can result in loss of the video data being transmitted.

Disclosure of Invention

In view of the foregoing, it is necessary to provide a method, a system, a device and a storage medium for video transmission based on mesh networking.

A method for video transmission based on mesh networking comprises the following steps:

when the current node transmits video data, searching a mesh node supporting multilink transmission in a mesh network;

detecting whether the mesh node meets the condition of multilink transmission or not, and acquiring a target mesh node meeting the condition of multilink transmission;

establishing a multilink connection between a current node and a root node according to a target mesh node;

video data is transmitted to a root node through nodes in a multilink connection, and the video data is combined at the root node.

In one embodiment, when a current node performs video transmission, searching for a mesh node supporting multilink transmission in a mesh network comprises:

judging whether the received signal strength of a node of the mesh networking is greater than a first preset value and whether the node has a multilink private IE (IE is a field in the wireless message content), and if the received signal strength is greater than the first preset value and the node has the multilink private IE, determining the node as the mesh node supporting multilink transmission.

In one embodiment, detecting whether the mesh node meets the condition of multilink transmission, and acquiring a target mesh node meeting the condition of multilink transmission, wherein the target mesh node comprises the mesh node;

it is an important performance index in a computer network, which indicates that the total Time delay, which is also an important parameter affecting the TCP performance and representing the network operation condition, from the beginning of sending data from a sending end to the Time when the sending end receives an acknowledgement from a receiving end (the receiving end immediately sends the acknowledgement after receiving the data), and whether the packet loss rate are less than respective preset values, if the RTT and the packet loss rate of the node are less than respective preset values, the mesh node is taken as a target mesh node.

In one embodiment, after establishing the multilink connection between the current node and the root node according to the target mesh node, the method includes:

after the multilink connection is established, monitoring whether a new mesh node is added into the mesh networking, detecting whether the new mesh node meets the multilink transmission condition when the new mesh node is added, reacquiring a new target mesh node meeting the multilink transmission condition, and establishing the multilink connection between the current node and the root node according to the new target mesh node.

In one embodiment, after establishing the multilink connection between the current node and the root node according to the target mesh node, the method further includes:

and periodically detecting whether RTT and packet loss rate of the nodes in the multi-link connection are greater than respective preset values, if so, judging that the link to which the node belongs is a deteriorated link, deleting the deteriorated link, and not establishing connection for the deleted link within second preset time.

In one embodiment, transmitting video data to a root node via a node in a multilink connection comprises:

the nodes in the multilink connection are used for judging the importance level of video data content in the process of transmitting the video data, reserving corresponding transmission bandwidth to the root node according to the importance level of the video data content, and the root node is used for dynamically adjusting the transmission bandwidth of the nodes in the multilink connection.

In one implementation, the root node is configured to assign a primary node according to channel transmission parameters collected by nodes in the multi-link connection, wherein the primary node is directly connected to the root node, and the frequency band, bandwidth, channel and transmission power of the primary node are adjusted to divide the region.

In one embodiment, the root node is further configured to perform periodic statistics on the code stream levels of the nodes in the multilink connection, when the code stream level of the node in the multilink connection is lower than a second preset value, the node in the multilink connection is cut off from the connection with the upper node, the video content of the subsequent child nodes is cached, and when the code stream level of the node in the multilink connection is higher than the second preset value, the node in the cut-off connection is established to be connected with the upper node, and the video breakpoint continuous transmission of the single link is performed.

In one embodiment, combining video data at a root node comprises:

the root node is used for merging data frames of node video data in the multilink connection according to a source MAC address of the video data, configuring the data frames of the same source MAC address into the same receiving queue, sequencing the data frames in the same receiving queue according to a frame number of the data frames, caching the data frames in the same receiving queue within second preset time, storing or forwarding the data frames in the same receiving queue to an external network if the data frames in the same receiving queue are cached and finished within the second preset time, merging the data frames with continuous data frame numbers starting from a sequencing head if the data frames in the same receiving queue are not cached and finished within the second preset time, generating a message and reporting the message to a TCP/IP protocol stack.

In one embodiment, the root node comprises a wireless communication device having storage capabilities or a wireless communication device in communication with an external network.

A system for video transmission based on mesh networking comprises:

the searching unit is used for searching the mesh node supporting multilink transmission in the mesh network when the current node performs video transmission;

the detection unit is used for detecting whether the mesh node meets the condition of multilink transmission or not and acquiring a target mesh node meeting the condition of multilink transmission;

the establishing unit is used for establishing multi-link connection between the current node and the root node according to the target mesh node;

and the transmission unit is used for transmitting the video data to the root node through the nodes in the multilink connection and combining the video data on the root node.

A video transmission device based on mesh networking comprises a plurality of node devices and a wireless communication device, wherein the node devices are all in the mesh networking;

when the current node equipment transmits video data, searching intermediate node equipment supporting multilink transmission in the mesh network;

the current node equipment detects whether the intermediate node equipment meets the condition of multilink transmission or not, and acquires target intermediate node equipment meeting the condition of multilink transmission;

the current node equipment establishes a multilink connection between the current node equipment and the wireless communication equipment according to the target intermediate node equipment;

the target intermediate node device transmits the video data to the wireless communication device, which combines the video data.

A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor executing the computer program to perform the steps of:

when the current node carries out video transmission, searching a mesh node supporting multilink transmission in a mesh network;

detecting whether the mesh node meets the condition of multilink transmission or not, and acquiring a target mesh node meeting the condition of multilink transmission;

establishing a multilink connection between a current node and a root node according to a target mesh node;

video data is transmitted to a root node through nodes in a multilink connection, and the video data is combined at the root node.

A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:

when the current node carries out video transmission, searching a mesh node supporting multilink transmission in a mesh network;

detecting whether the mesh node meets the condition of multilink transmission or not, and acquiring a target mesh node meeting the condition of multilink transmission;

establishing a multilink connection between a current node and a root node according to a target mesh node;

video data is transmitted to a root node through nodes in a multilink connection, and the video data is combined at the root node.

The method, the system, the equipment and the storage medium for video transmission based on mesh networking search a mesh node supporting multilink transmission in the mesh networking when a current node transmits video data, detect whether the mesh node meets the condition of multilink transmission, obtain a target mesh node meeting the condition of multilink transmission, establish multilink connection between the current node and a root node according to the target mesh node, transmit the video data to the root node through the nodes in the multilink connection, and combine the video data on the root node. Compared with the traditional method for selecting the optimal single link for transmission, the method can be used for carrying out video transmission on a plurality of links, and video data are combined on the root node, so that the problem that the video data are lost due to the fact that the single link needs to be re-routed when the video data transmission process is interfered is solved, and the video transmission efficiency is improved.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.

Fig. 1 is a flowchart of a method for video transmission based on mesh networking in an embodiment;

FIG. 2 is a flow diagram illustrating multilink establishment in one embodiment;

FIG. 3 is a network topology diagram of a root node specifying a level one node in one embodiment;

FIG. 4 is a flow diagram that illustrates video combining at a root node in one embodiment;

fig. 5 is a schematic structural diagram of a system for video transmission based on mesh networking in an embodiment;

fig. 6 is a schematic structural diagram of a system for video transmission based on mesh networking in another embodiment;

fig. 7 is a schematic structural diagram of a system for video transmission based on mesh networking in yet another embodiment;

fig. 8 is a schematic structural diagram of a system for video transmission based on mesh networking in yet another embodiment;

fig. 9 is a schematic structural diagram of a device for video transmission based on mesh networking in yet another embodiment.

Detailed Description

In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.

It should be noted that the terms "first \ second \ third" related to the embodiments of the present invention only distinguish similar objects, and do not represent a specific ordering for the objects, and it should be understood that "first \ second \ third" may exchange a specific order or sequence when allowed. It should be understood that the terms first, second, and third, as used herein, are interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in other sequences than those illustrated or otherwise described herein.

The method for video transmission based on mesh networking can be applied to an application environment shown in fig. 1, wherein a current node 110 communicates with a target mesh node 112 through a network, and the target mesh node 112 communicates with a root node 114 through the network. Specifically, the current node 110 may obtain video data, the target mesh node may receive the video data of the current node 110, and the root node 114 may combine the video data from the nodes in the multilink connection. Further, the current node 110 acquires video data, establishes a multi-link connection with one or more target mesh nodes 112, transmits the video data to the root node 114 through the one or more target mesh nodes 112, and combines the video data by the root node 114. The current node 110 and the target mesh node 112 may be, but not limited to, a camera and a monitor, the root node 114 includes a wireless communication device with a storage function or a wireless communication device connected to an external network, and the root node 114 may designate the target mesh node 112 as a primary node according to a channel transmission parameter fed back by the target mesh node 112 directly connected thereto, and divide the region, where it is to be noted that in actual application, the root node 114 may collect video data of a plurality of cells.

In an embodiment, as shown in fig. 2, a flow of a method for video transmission based on mesh networking is provided, which is described by taking the method as an example applied in fig. 1, and the flow includes:

step S210: and when the current node transmits the video data, searching for a mesh node supporting multilink transmission in the mesh network.

When the current node transmits video data, searching a node with received signal strength greater than a first preset value (the size can be set according to the actual situation of a user) and a private IE with multilinks in a mesh network, and taking the node as a mesh node supporting multilink transmission.

The mesh network consists of mesh routers and mesh clients, wherein the mesh routers form a backbone network, are connected with a wired internet network and are responsible for providing multi-hop wireless internet connection for the mesh clients.

Optionally, there may be one or more mesh nodes supporting multilink transmission.

Step S212: and detecting whether the mesh node meets the condition of multilink transmission or not, and acquiring a target mesh node meeting the condition of multilink transmission.

After searching for a mesh node supporting multilink transmission in a mesh networking, a current node detects the mesh node supporting multilink transmission, acquires the mesh node of which the RTT and the packet loss rate are smaller than respective preset values (the RTT and the packet loss rate respectively have own preset values and can be set according to the actual condition of a user) from the mesh node supporting multilink transmission, and takes the mesh node as a target mesh node meeting multilink transmission conditions.

It should be noted that RTT (Round-Trip Time) is also called Round-Trip delay. It is an important performance index in computer network, which indicates the total time delay experienced from the time when the sending end sends data to the time when the sending end receives the acknowledgement from the receiving end (the receiving end immediately sends the acknowledgement after receiving the data), and is also an important parameter that affects the TCP performance and characterizes the network operation condition. The packet loss rate is the ratio of the lost part of the data packet to the total number of transmitted data packets.

Optionally, there may be one or more target mesh nodes satisfying the multilink transmission condition.

Step S214: and establishing the multilink connection between the current node and the root node according to the target mesh node.

After the current node detects a target mesh node meeting multilink transmission conditions, the current node can establish multilink connection between the current node and a root node according to one target mesh node meeting multilink transmission conditions and transmit video data, and the current node can also establish multilink connection between the current node and the root node according to a plurality of target mesh nodes meeting multilink transmission conditions, wherein when a plurality of target mesh nodes meet the multilink transmission conditions, the selection mode is that RTTs and packet loss rates of the plurality of target mesh nodes are compared, a preset number of target mesh nodes of a user are selected according to the sequence from small to large, multilink is established, and the video data is transmitted.

Step S216: video data is transmitted to a root node through nodes in a multilink connection, and the video data is combined at the root node.

The current node transmits video data to the root node via one or more nodes that satisfy the multilink connection, where the video data transmitted by the nodes in the multilink connection is combined at the root node.

The method for video transmission based on mesh networking comprises the steps of searching mesh nodes supporting multilink transmission in the mesh networking when a current node transmits video data, detecting whether the mesh nodes meet the condition of multilink transmission, obtaining target mesh nodes meeting the condition of multilink transmission, establishing multilink connection between the current node and a root node according to the target mesh nodes, transmitting the video data to the root node through the nodes in the multilink connection, and combining the video data on the root node. Compared with the traditional method for selecting the optimal single link for transmission, the method can be used for carrying out video transmission on a plurality of links, and video data are combined on the root node, so that the problem that the video data are lost due to the fact that the single link needs to be re-routed when the video data transmission process is interfered is solved, and the video transmission efficiency is improved.

In one embodiment, when the current node transmits video data, searching for a mesh node supporting multilink transmission in a mesh network comprises:

and if the received signal strength is greater than the first preset value and the node has the private IE with the multilink, determining the node as the mesh node supporting multilink transmission.

In this embodiment, when the current node transmits video data, the current node may determine whether the received signal strength of one or more mesh nodes in the mesh networking is greater than a first preset value set by a user and whether the mesh node has a multilink private IE, and if the received signal strength is greater than the first preset value set by the user and the mesh node has the multilink private IE, it indicates that the mesh node has a condition for supporting multilink transmission and has a good transmission signal, so that the current node determines the mesh node as a mesh node supporting multilink transmission.

The RSSI is an optional part of the radio transmission layer, and is used to determine the link quality and whether to increase the broadcast transmission strength, which can be set by the user. The IE is a field in the contents of the radio message.

In one embodiment, detecting whether a mesh node meets the condition of multilink transmission, and acquiring a target mesh node meeting the condition of multilink transmission, includes:

and judging whether the RTT and the packet loss rate of the mesh node are smaller than respective preset values, and if the RTT and the packet loss rate of the node are smaller than the respective preset values, taking the node as a target mesh node.

In this embodiment, the current node detects one or more mesh nodes supporting multilink transmission in the above embodiments, and determines whether RTT of the mesh node is smaller than a preset value (which may be set according to an actual situation of a user) and whether packet loss rate of the mesh node is smaller than a preset value, and if RTT and packet loss rate of the mesh node are respectively smaller than the preset value set by the user (which may be set according to an actual situation of the user), and the preset values of RTT and packet loss rate are the same as the preset values of RTT and packet loss rate in step S212, the mesh node is taken as a target mesh node, where RTT and packet loss rate are small, which indicates that a network operating condition of the node is good and data transmission efficiency is high.

In one embodiment, after establishing the multilink connection between the current node and the root node according to the target mesh node, the method comprises the following steps:

after the multilink transmission connection is established, whether a new mesh node is added into the mesh networking is monitored, when the new mesh node is added, whether the new mesh node meets the multilink transmission condition is detected, a new target mesh node meeting the multilink transmission condition is obtained again, and multilink connection between the current node and a root node is established according to the new target mesh node.

In this embodiment, according to the above embodiment, the current node establishes a multilink connection between the current node and the root node according to the target mesh node, after the multilink connection is established, the current node also periodically monitors whether a new mesh node (i.e., a node supporting multilink transmission conditions) is added to the mesh networking, if so, the current node detects the new mesh node again, detects whether the new mesh node is the target mesh node, if so, the current node establishes the multilink connection between the current node and the root node again according to the new target mesh node, and the establishment of the new multilink connection is favorable for improving the transmission rate of the video data.

Alternatively, the new node may be one or more new nodes.

In one embodiment, after establishing the multilink connection between the current node and the root node according to the target mesh node, the method further includes:

and periodically detecting whether RTT and packet loss rate of the nodes in the multilink are greater than respective preset values, if so, judging that the link to which the node belongs is a deteriorated link, deleting the deteriorated link, and not establishing connection for the deleted link within second preset time.

After the above-mentioned embodiment, that is, after establishing the multilink connection between the current node and the root node according to the target mesh node, the current node also periodically detects whether the RTT of the node in the multilink is greater than the preset value set by the user and whether the packet loss rate of the node in the multilink is greater than the preset value set by the user, where the preset values of the RTT and the packet loss rate are the same as the preset values of the RTT and the packet loss rate in the above-mentioned embodiment, if the RTT and the packet loss rate of the node in the multilink are respectively greater than the preset values set by the user, it is determined that the link to which the node belongs is a deteriorated link, and since the RTT and the packet loss rate of the node are too large, the transmission of video data is lost and the transmission rate is slow, the current node deletes the deteriorated link, and does not establish a connection with the deleted link within the first preset time (the size can be set according to the time condition of the user, therefore, video data can not be lost due to deteriorated links, and the transmission rate of the video data is improved.

In one embodiment, transmitting video data to a root node through nodes in a multilink connection includes;

the nodes in the multilink connection are used for judging the importance level of video data content in the process of transmitting the video data, reserving corresponding transmission bandwidth to the root node according to the importance level of the video data content, and the root node is used for dynamically adjusting the transmission bandwidth of the nodes in the multilink connection.

In this example, the importance level of the video transmission content may be set according to the actual situation of the user, taking a cell as an example, if a node X is set at a large entrance of the cell, a node a is set as the importance level, a node Y is set below a building in the cell, a node B is set as the importance level, a node Z is set in a stairwell of the building, a node C is set as the importance level, and if the user sets an importance level: a > B > C, when the node X, the node Y and the node Z transmit the received video data to the root node, X, Y, Z respectively form respective multilinks, and if M nodes are arranged in the X multilink, N nodes are arranged in the Y multilink and L nodes are arranged in the Z multilink, the nodes in the respective multilinks of X, Y, Z reserve corresponding transmission bandwidth relations to the root node; m is greater than N and greater than L, and the root node is used for dynamically adjusting the node reservation transmission bandwidth, ensures the quality of service (QoS) of the node transmission bandwidth, and simultaneously reserves and stores the video data with high importance level, and ensures that the video data with high importance level cannot be lost.

It should be noted that the root node may be configured to dynamically adjust the transmission bandwidth of the nodes in one or more multilinks.

Further, Quality of Service (QoS) refers to a network that can provide better Service capability for specified network communication by using various basic technologies, and is a security mechanism of the network, which is a technology for solving the problems of network delay and blocking, and QoS guarantee is very important for a network with limited capacity, especially for streaming multimedia applications such as VoIP and IPTV, because these applications often require a fixed transmission rate and are sensitive to delay.

In one embodiment, a multilink connection between a current node and a root node is established according to a target mesh node, including;

the root node is used for appointing a first-level node according to channel transmission parameters collected by nodes in the multilink connection, wherein the first-level node is directly connected with the root node, and simultaneously, the frequency band, the frequency width, the channel and the transmitting power of the first-level node are adjusted to divide areas.

In this embodiment, the root node designates a level one node according to channel transmission parameters collected by nodes in the multilink, where the channel transmission parameters include: signal-to-noise ratio, channel utilization, and RSSI. Only when the signal-to-noise ratio of the node in the multilink is greater than a preset value set by a user, the channel utilization rate is less than the preset value set by the user, and the RSSI is higher than the preset value of the user, and the node is directly connected with the root node, the root node selects the node as a primary node, and adjusts the frequency band, the frequency bandwidth, the channel and the transmitting power of the primary node, particularly, the division of the channel requires that the primary node works on a channel which is not interfered with each other, and the transmitting power is limited within the range of the region of the root node, so that the region division is performed by a method, and the interference of an adjacent region due to the overlarge.

In this step, it should be noted that the SIGNAL-to-noise ratio is called SNR or S/N (SIGNAL-to-noise ratio), which is also called SIGNAL-to-noise ratio. Refers to the ratio of signal to noise in an electronic device or system. The signal refers to an electronic signal from the outside of the device to be processed by the device, the noise refers to an irregular extra signal (or information) which does not exist in the original signal generated after passing through the device, and the signal does not change along with the change of the original signal.

Further, Channel utilization (Channel utilization) may also be referred to as Bandwidth utilization efficiency (Bandwidth utilization efficiency), and is defined as a ratio of throughput of effective data to a network transmission bit rate.

In one embodiment, the root node is further configured to perform periodic statistics on a code stream level of a node in the multilink connection, when the code stream level of the node in the multilink connection is lower than a second preset value, cut off the connection between the node in the multilink connection and a higher node, cache video content of a subsequent child node, and when the code stream level of the node in the multilink connection is higher than the second preset value, establish the node in the cut-off connection to be connected with the higher node, and perform video breakpoint continuous transmission of the single link.

In this embodiment, the root node periodically counts whether the code stream level of the node in the multilink connection is higher than a set second preset value (the size can be set according to the actual situation of the user), if the code stream level of the node in the multilink connection is lower than the set second preset value, the node is considered to be subjected to serious environmental interference, the root node cuts off the connection between the node in the multilink connection and the upper node, and caches the video content of the subsequent child nodes, if the code stream level of the cut-off node is detected to be higher than the set second preset value again, the node is considered to be recovered in communication, the node with the cut-off connection is established again to be connected with the upper node, the video breakpoint of the link to which the node and the node originally started to belong is continuously transmitted, and the video data originally started to be transmitted is.

In one embodiment, the root node comprises a wireless communication device having storage capabilities or a wireless communication device in communication with an external network.

In the present embodiment, the wireless communication apparatus having the storage function can realize storage of video data. The wireless communication device communicated with the external network can realize connection with the external network and can transmit video data to the external network.

As shown in fig. 3, which is a schematic diagram of video data combination at a root node according to an embodiment of the present invention, in another embodiment, video data combination is performed at the root node, and the video data combination includes:

the root node is used for merging data frames of node transmission video data in the multilink connection according to a source MAC address of the video data, configuring the data frames of the same source MAC address into the same receiving queue, sequencing the data frames in the same receiving queue according to a frame number of the data frames, caching the data frames in the same receiving queue within second preset time, storing or forwarding the data frames in the same receiving queue to an external network if the data frames in the same receiving queue are cached completely within the second preset time, merging the data frames with continuous data frame numbers starting from a head of the sequencing if the data frames in the same receiving queue are not cached completely within the second preset time, generating a message and reporting the message to a TCP/IP protocol stack.

In this embodiment, a root node configures data frames of the same source MAC address into the same receive queue, and when configuring the data frames into the same receive queue, performs a sorting on the data frames in the same receive queue, for example, a video data is divided into four data frames, and when the video data is transmitted in the form of four data frames, a unique sequence number identifier is performed on the four data frames, such as a1, a2, A3, and a4, and if the precedence relationship of the beginning of the four data frame identifiers is a1, a2, A3, and a4, the data frames are sorted according to the precedence relationship of the sequence number identifiers when sorting on the root node, and are also arranged as a1, a2, A3, and a4, the root node buffers a1, a2, A3, and a4 of the same source, and if a1, a2, a4, and A3 are not completed, the data frames are merged and 1 a1 is merged within a preset second preset time A2 merges and generates a message, then the generated message is reported to a TCP/IP protocol stack, and if the buffering of A1, A2, A3 and A4 is completed within a second preset time preset by a user, the video data is stored in a root node or forwarded to an external network, and the merging of data frames of the video data is realized at the root node, so that the transmission efficiency of the video data is improved.

The root node may buffer the data frames in one or more same receiving queues at the same time.

It should be noted that a MAC (Media Access Control) address, or referred to as a MAC address or a hardware address, is used to define the location of the network device. The MAC is integrated on the network card and consists of 48-bit 2-system digits, and the digits of 0-23 are called organization unique identifiers (identifiers for identifying local area network nodes).

Further, the data frame is a protocol data unit of a data link layer, and comprises three parts: frame header, data section, frame trailer. The frame head and the frame tail contain necessary control information, such as synchronization information, address information, error control information, and the like; the data portion includes data passed down by the network layer, such as IP packets, etc.

Further, a message (message) is a data unit exchanged and transmitted in the network, i.e. a data block to be sent by the station at one time. The message contains complete data information to be sent, and the message is very inconsistent in length, unlimited in length and variable.

Further, the TCP/IP protocol stack, otherwise known as the TCP/IP protocol, or the Internet protocol suite. The TCP/IP protocol stack (divided by TCP/IP reference model) is divided into 4 layers, and unlike OSI, the session layer and presentation layer in OSI are planned to the application layer.

In one embodiment, the root node is a wireless communication device that owns the storage device or the device that communicates with the external network.

In order to facilitate understanding of the technical solution of the present invention, the technical solution of the present invention is further described below with reference to a multilink establishment flowchart of a method for video transmission based on mesh networking.

Fig. 4 is a flowchart of a multilink transmission processing flow of a method for performing video transmission based on mesh networking according to an embodiment of the present invention, as shown in fig. 4, the flow includes:

and after successful networking of the wifi device mesh, entering a root node election stage, wherein the root node comprises a wireless communication device with a storage function or a wireless communication device communicated with an external network.

And each wifi device collects the signal-to-noise ratio, the channel utilization rate and the current RSSI of each channel to report the root node.

When the current node detects that the node residual bandwidth in the mesh networking is sufficient, a plurality of links can be established simultaneously, and the current node comprises the following five states in the process of establishing the plurality of links:

the specific processing flow includes multi-link search (multi-path search), multi-link probing (multi-path probe), multi-link setup (multi-path setup), multi-link detection (multi-path detect), and multi-link deletion (multi-path delete), and is as follows:

the multi-link search (multi-path search) is used for searching for a mesh node in the mesh network, and determining whether the mesh node in the mesh network can establish multi-link transmission according to whether the RSSI of the mesh node is greater than a set threshold value, wherein the mesh node supporting the multi-link transmission also needs to have a private IE of the multi-path, and the mesh node supporting the multi-link transmission is only required to be simultaneously satisfied by the two conditions.

The multi-link detection (multi-path probe) is used for detecting whether a mesh node supporting multi-link transmission in a multi-link search (multi-path search) meets the condition of the multi-link transmission, the multi-link detection is realized by sending a message with a fixed size through a sending end, responding to the received size with ACK by a receiving node, and the sending end calculates RTT and packet loss rate and marks that the node meets the condition of the multi-link transmission when the RTT and the packet loss rate are smaller than a threshold (the threshold can be set manually).

The multi-link setup (multi-path setup) is used for establishing connection with a mesh node satisfying the multi-link transmission condition in the multi-link probe (multi-path probe).

The multi-link detection (multi-path detect) is used for detecting whether a better link exists after multi-link transmission is established or whether a link in the current multi-link does not have the condition of multi-link transmission, the detection of the better link is realized by monitoring whether a node of multi-link private IE (Internet Explorer) is added, when the node is added, the node needs to jump to a multi-path probe for processing, the detection of whether the link is deteriorated is realized by periodically detecting the RTT and the packet loss rate of the current link, and when the RTT and the packet loss rate are larger than a set threshold, the multi-path delete is needed.

A multi-link delete (multi-path delete) is used to delete a degraded link detected in a multi-link detect (multi-path detect), and to prevent oscillations from occurring, the deleted link is not allowed to establish a connection any more for a certain time.

In one embodiment, a system for video transmission based on mesh networking is also provided. Fig. 5 is a block diagram of a structure of a system for video transmission based on mesh networking according to an embodiment of the present invention, and as shown in fig. 5, the apparatus includes:

a searching unit 510, configured to search a mesh node supporting multilink transmission in a mesh network when a current node performs video transmission;

a detecting unit 520, configured to detect whether the mesh node meets a condition of multilink transmission, and obtain a target mesh node that meets the condition of multilink transmission;

an establishing unit 530, configured to establish a multilink connection between the current node and the root node according to the target mesh node;

a transmitting unit 540, configured to transmit the video data to a root node through nodes in the multilink connection, where the video data is combined.

According to the above-mentioned system for video transmission based on mesh networking, the searching unit 510 searches for a mesh node supporting multilink transmission in the mesh networking when the current node performs video transmission, the exploring unit 520 detects whether the mesh node satisfies the condition of multilink transmission and obtains a target mesh node satisfying the condition of multilink transmission, the establishing unit 530 establishes multilink connection between the current node and a root node according to the target mesh node, and the transmitting unit 540 combines video data transmitted by nodes in the multilink connection on the root node. Compared with the traditional method for selecting the optimal single link for transmission, the method can be used for transmitting the video on a plurality of links, solves the problem that the video data is lost due to the fact that the single link needs to be re-routed when the video data transmission process is interfered, and improves the video transmission efficiency.

In an embodiment, the searching unit 510 is configured to determine whether the received signal strength of the mesh node is greater than a first preset value and whether the mesh node has a multilink private IE, and determine the mesh node as a mesh node supporting multilink transmission if the received signal strength is greater than the first preset value and the mesh node has the multilink private IE.

In an embodiment, the probing unit 520 is configured to determine whether the RTT and the packet loss rate of the mesh node are smaller than respective preset values, and if the RTT and the packet loss rate of the node are smaller than the respective preset values, use the node as the target mesh node.

In another embodiment, as shown in fig. 6, the system for video transmission based on a mesh network further includes a detecting unit 550, configured to monitor whether a new mesh node is added to the mesh network after the multilink transmission is established, and when a new mesh node is added, the detecting unit 220 needs to jump to process the new mesh node.

In another embodiment, as shown in fig. 7, the system for video transmission based on a mesh network further includes a deleting unit 560, configured to periodically detect whether RTT and packet loss rate of a node in the multilink are greater than respective preset values, if so, determine that the link to which the node belongs is a degraded link, delete the degraded link, and no longer establish connection with the deleted link within a first preset time.

In one embodiment, the nodes in the multilink connection are configured to determine an importance level of video transmission content during transmission of video data, and reserve a corresponding transmission bandwidth to a root node according to the importance level of the video transmission content, and the root node is configured to dynamically adjust the transmission bandwidth of the nodes in the multilink connection.

In one embodiment, the root node is configured to designate a primary node according to channel transmission parameters collected by nodes in the multilink, wherein the primary node is directly connected to the root node, and the frequency band, the bandwidth, the channel and the transmission power of the primary node are adjusted to divide the region.

In one embodiment, the root node is configured to perform periodic statistics on the code stream levels of the nodes in the multilink connection, cut off the connection between the nodes in the multilink connection and the upper node when the code stream level of the nodes in the multilink connection is lower than a second preset value, cache video content of subsequent child nodes, and establish the node in which the connection is cut off to be connected with the upper node when the code stream level of the node in which the connection is cut off is higher than the second preset value, so as to perform video breakpoint continuous transmission of the single link.

In yet another embodiment, as shown in fig. 8, the system for video transmission based on mesh networking further includes a combining unit 570, the method is used for the root node to combine the data frames of the video data transmitted by the nodes in the multi-link connection according to the source MAC address of the video data, and to configure the data frames with the same source MAC address into the same receiving queue, meanwhile, the data frames in the same receiving queue are sequenced according to the frame sequence numbers of the data frames, buffering the data frames in the same receiving queue within a second preset time, if the buffering of the data frames in the same receiving queue is completed within the second preset time, storing or forwarding the data frames in the same receiving queue to the external network, if the data frames in the same receiving queue are not cached in the second preset time, merging the data frames with the serial numbers of the continuous data frames from the head of the sequence, generating a message and reporting the message to a TCP/IP protocol stack.

In one embodiment, the root node is a wireless communication device that owns the storage device or the device that communicates with the external network.

The system for video transmission based on mesh networking in the embodiment of the invention corresponds to the method for video transmission based on mesh networking one by one, and the technical characteristics and the beneficial effects thereof described in the embodiment of the method for video transmission based on mesh networking are all suitable for the embodiment of the system for video transmission based on mesh networking.

In another embodiment, an apparatus for video transmission based on mesh networking is also provided. Fig. 9 is a block diagram of a structure of a device for video transmission based on a mesh networking according to an embodiment of the present invention, and as shown in fig. 9, the device includes a plurality of node devices and a wireless communication device, and the plurality of node devices are all in the mesh networking:

when the current node device 910 transmits video data, searching for an intermediate node device supporting multilink transmission in the mesh network;

the current node device 910 detects whether the intermediate node device satisfies the condition of multilink transmission, and acquires a target intermediate node device 920 satisfying the condition of multilink transmission;

the current node device 910 establishes a multilink connection between the current node device 910 and the wireless communication device 930 according to the target intermediate node device 920;

the target intermediate node device 920 transmits the video data to the wireless communication device 930, and the wireless communication device 930 combines the video data.

According to the system for video transmission based on mesh networking, when the current node device 910 transmits video data, an intermediate node device supporting multi-link transmission in the mesh networking is searched, the current node device 910 detects whether the intermediate node device meets the condition of multi-link transmission, a target intermediate node device 920 meeting the condition of multi-link transmission is obtained, the current node device 910 establishes multi-link connection between the current node device 910 and the wireless communication device 930 according to the target intermediate node device 920, the target intermediate node device 920 transmits the video data to the wireless communication device 930, and the wireless communication device 930 combines the video data. Compared with the traditional method for selecting the optimal single link for transmission, the method can be used for transmitting the video on a plurality of links, solves the problem that the video data is lost due to the fact that the single link needs to be re-routed when the video data transmission process is interfered, and improves the video transmission efficiency.

In an embodiment, the current node device 910 is configured to determine whether the received signal strength of the node device is greater than a first preset value and whether the node device has a multi-link private IE, and determine the node device as an intermediate node device supporting multi-link transmission if the received signal strength is greater than the first preset value and the intermediate node device has the multi-link private IE.

In an embodiment, the current node device 910 is configured to determine whether the RTT and the packet loss rate of the intermediate node device are smaller than respective preset values, and if the RTT and the packet loss rate of the intermediate node device are smaller than the respective preset values, use the intermediate node device as the target intermediate node device 920.

In an embodiment, the current node 910 is configured to monitor whether a new intermediate node device 920 joins the mesh networking after the multilink is established, and when a new intermediate node device 920 joins, the current node device 910 detects whether the new intermediate node device 920 satisfies a multilink transmission condition, re-acquires a new target intermediate node device 920 satisfying the multilink transmission condition, and establishes a multilink connection between the current node device 910 and the wireless communication device 930 according to the new target intermediate node device 920.

In an embodiment, the current node device 910 is configured to periodically detect whether the RTT and the packet loss rate of the target intermediate node device 920 are greater than respective preset values, and if so, determine that a link to which the target intermediate node device 920 belongs is a degraded link, delete the degraded link, and no longer establish a connection with the deleted link within a first preset time.

In one embodiment, the target intermediate node device 920 is configured to determine an importance level of video transmission content during transmission of video data, reserve a corresponding transmission bandwidth to the wireless communication device 930 according to the importance level of the video transmission content, and the wireless communication device 930 is configured to dynamically adjust the transmission bandwidth of the target intermediate node device 920.

In one embodiment, the wireless communication device 930 is configured to assign a primary node device according to the channel transmission parameters collected by the target intermediate node device 920, wherein the primary node device is directly connected to the wireless communication device 930, and the frequency band, bandwidth, channel and transmission power of the primary node device are adjusted to divide the region.

In an embodiment, the wireless communication device 930 is configured to perform periodic statistics on a code stream level of the target intermediate node device 920, when the code stream level of the target intermediate node device 920 is lower than a second preset value, cut off a connection between the target intermediate node device 920 and a higher node device, cache video content of subsequent child node devices, and when the code stream level of the node device that is cut off the connection is higher than the second preset value, establish a connection between the node device that is cut off the connection and the higher node device, and perform video breakpoint continuous transmission of a single link.

In one embodiment, the wireless communication device 930 is configured to merge data frames of video data transmitted by the target intermediate node device 920 according to a source MAC address of the video data, configure the data frames of the same source MAC address into the same receiving queue, sequence the data frames in the same receiving queue according to a frame number of the data frame, buffer the data frames in the same receiving queue within a second preset time, store or forward the data frames in the same receiving queue to an external network if the data frames in the same receiving queue are completely buffered within the second preset time, merge the data frames of consecutive data frame numbers beginning at a head of the sequence if the data frames in the same receiving queue are not completely buffered within the second preset time, generate a packet, and report the packet to a TCP/IP protocol stack.

In one embodiment, the wireless transmission device 930 includes a wireless communication device having a memory function or a wireless communication device communicating with an external network.

A readable storage medium, on which an executable program is stored, which when executed by a processor, implements the steps of the above-mentioned method for video transmission based on mesh networking.

The readable storage medium can realize video transmission on multiple links through the stored executable program, combines the video data on the root node, solves the problem that the video data is lost due to the fact that a single link needs to be re-routed when the video data transmission process is interfered, and improves the video transmission efficiency.

A computer device comprises a memory and a processor, wherein the memory stores an executable program, and the processor executes the executable program to realize the steps of the video transmission method based on the mesh networking.

According to the computer equipment, the executable program is run on the processor, video transmission can be achieved on the multiple links, the video data are combined on the root node, the problem that when a single link is interfered in the process of transmitting the video data, the video data are lost due to the fact that the path needs to be selected again is solved, and the efficiency of video transmission is improved.

It will be understood by those skilled in the art that all or part of the processes in the method for performing video transmission based on mesh networking according to the foregoing embodiments may be implemented by a computer program instructing associated hardware, where the program may be stored in a non-volatile computer-readable storage medium, and in the embodiments, the program may be stored in a storage medium of a computer system and executed by at least one processor in the computer system, so as to implement the processes including the above-described embodiments of the method for performing video transmission based on mesh networking. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.

The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.

The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

22页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:多功能设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类