CN115314504A - Data transmission method and firmware upgrading method - Google Patents
Data transmission method and firmware upgrading method Download PDFInfo
- Publication number
- CN115314504A CN115314504A CN202210945861.1A CN202210945861A CN115314504A CN 115314504 A CN115314504 A CN 115314504A CN 202210945861 A CN202210945861 A CN 202210945861A CN 115314504 A CN115314504 A CN 115314504A
- Authority
- CN
- China
- Prior art keywords
- node
- nodes
- data packet
- data transmission
- data
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
- H04L67/1074—Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
- H04L67/1078—Resource delivery mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/12—Discovery or management of network topologies
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
- H04L67/1087—Peer-to-peer [P2P] networks using cross-functional networking aspects
- H04L67/1089—Hierarchical topologies
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Small-Scale Networks (AREA)
Abstract
本发明涉及数据传输技术领域,尤其是一种数据传输方法及固件升级方法,所述数据传输方法包括以下步骤:S100,根据相邻节点间的通讯成功率,分析其他节点与中心节点间的线路权重;所述线路权重与通讯成功率负相关;所述节点包括中心节点和其他节点;S200,筛选与中心节点间线路权重大于预设权重的其他节点为待传输节点;S300,采用点对点的方式,将数据包从中心节点传输至待传输节点;S400,采用广播的方式,将数据包从已接收数据包的节点,传输至未接收数据包的节点。采用本方案,使得全局最优跟局部最优的方式充分结合,提升了数据传输效率,在网络拓扑结构复杂的情况下,也能够快速完成整个拓扑结构中各节点的数据接收,有效提升了节点间的通信效率。
The present invention relates to the technical field of data transmission, in particular to a data transmission method and a firmware upgrade method. The data transmission method includes the following steps: S100, analyzing the lines between other nodes and the central node according to the communication success rate between adjacent nodes weight; the line weight is negatively correlated with the communication success rate; the nodes include a central node and other nodes; S200, select other nodes whose line weights between the central node and the central node are greater than the preset weight as nodes to be transmitted; S300, adopt a point-to-point method , transmit the data packet from the central node to the node to be transmitted; S400 , transmit the data packet from the node that has received the data packet to the node that has not received the data packet by means of broadcasting. Using this solution, the global optimal and local optimal methods are fully combined, which improves the data transmission efficiency. In the case of a complex network topology, the data reception of each node in the entire topology can also be quickly completed, effectively improving the number of nodes. communication efficiency between them.
Description
技术领域technical field
本发明涉及数据传输技术领域,特别涉及一种数据传输方法及固件升级方法。The invention relates to the technical field of data transmission, in particular to a data transmission method and a firmware upgrade method.
背景技术Background technique
网络拓扑结构是指用传输介质互连各种设备的物理布局,网络拓扑结构中通常包括一个中心节点及若干个其他节点。随着互联网的不断发展,网络规模在不断扩大,网络的复杂性也在持续增加。在此趋势下,如何在节点众多、线路复杂的网络拓扑结构中完成整个拓扑结构中各节点的数据接收成为了一大难题。The network topology refers to the physical layout of various devices interconnected by transmission media. The network topology usually includes a central node and several other nodes. With the continuous development of the Internet, the scale of the network is constantly expanding, and the complexity of the network is also increasing. Under this trend, how to complete the data reception of each node in the entire topology structure in a network topology structure with many nodes and complex lines has become a major problem.
现有技术中,通常会采用点对点路由转发的方式进行轮流升级,这种方式虽然成功率较高,但在节点数量多、拓扑结构复杂的情况下,由于需要各节点依次、逐个向自己的子节点完成数据包的传输,故存在耗时长、网络效率浪费率高的问题;除此之外,现有技术还通过分布式的文件分发机制进行数据包的传输,这种方式往往采用泛洪的方法,进行广播升级,相对于采用点对点的数据传输方式而言,采用该方法,能够使数据快速抵达通讯良好的节点,但是因为泛洪造成的碰撞以及干扰较大,从而导致大部分通讯链接良好的节点都已经传输完毕了,却还是需要等待通讯最差的那些节点完成传输才能完成全网升级;当碰撞及干扰过大时,甚至会导致有些重要的数据包无法抵达最需要的地方,从而导致无法进行全网升级。In the existing technology, point-to-point routing and forwarding is usually used to upgrade in turn. Although this method has a high success rate, in the case of a large number of nodes and a complex topology, it is necessary for each node to send its own sub- Nodes complete the transmission of data packets, so there are problems of long time consumption and high waste rate of network efficiency; in addition, the existing technology also transmits data packets through a distributed file distribution mechanism, which often uses flooding The method is broadcast upgrade. Compared with the point-to-point data transmission method, this method can make the data quickly reach the nodes with good communication, but because of the collision and interference caused by flooding, most of the communication links are good. All the nodes have already completed the transmission, but it is still necessary to wait for the nodes with the worst communication to complete the transmission to complete the entire network upgrade; when the collision and interference are too large, it may even cause some important data packets to fail to reach the most needed places, thus As a result, the network-wide upgrade cannot be performed.
由此可以看出,现有网络拓扑结构中,节点间的通信效率低,例如:在电力线载波领域,台区节点通信效率低,从而导致台区固件升级效率较低,因此,亟需提供一种数据传输方法,能够提升数据传输效率,从而提升节点的通信效率,在网络拓扑结构复杂的情况下,也能够快速完成整个拓扑结构中各节点的数据接收。It can be seen from this that in the existing network topology, the communication efficiency between nodes is low. For example, in the field of power line carrier, the node communication efficiency in the station area is low, which leads to the low efficiency of firmware upgrade in the station area. Therefore, it is urgent to provide a This method of data transmission can improve the efficiency of data transmission, thereby improving the communication efficiency of nodes. In the case of complex network topology, it can also quickly complete the data reception of each node in the entire topology.
发明内容Contents of the invention
本发明提供了一种数据传输方法及固件升级方法,能够提升数据传输效率,从而提升节点的通信效率,在网络拓扑结构复杂的情况下,也能够快速完成整个拓扑结构中各节点的数据接收。The present invention provides a data transmission method and a firmware upgrade method, which can improve data transmission efficiency, thereby improving the communication efficiency of nodes, and can quickly complete the data reception of each node in the entire topology structure in the case of a complex network topology.
本发明提供的基础方案一:Basic scheme one provided by the present invention:
一种数据传输方法,包括以下步骤:A data transmission method, comprising the steps of:
S100,根据相邻节点间的通讯成功率,其中节点包括中心节点和其他节点,分析其他节点与中心节点间的线路权重;所述线路权重与通讯成功率负相关;S100, according to the communication success rate between adjacent nodes, wherein the nodes include the central node and other nodes, analyze the line weight between other nodes and the central node; the line weight is negatively correlated with the communication success rate;
S200,筛选与中心节点间线路权重大于预设权重的其他节点为待传输节点;S200, screening other nodes with a line weight greater than a preset weight between the central node and the central node as nodes to be transmitted;
S300,采用点对点的方式,将数据包从中心节点传输至待传输节点;S300 uses point-to-point mode to transmit data packets from the central node to the node to be transmitted;
S400,采用广播的方式,将数据包从已接收数据包的节点,传输至未接收数据包的节点。S400: Transmitting the data packets from the nodes that have received the data packets to the nodes that have not received the data packets in a broadcast manner.
基础方案一的有益效果:根据相邻节点间的通讯成功率,分析其他节点与中心节点间的线路权重,且所述线路权重与通讯成功率负相关,也即其他节点与中心节点间的线路权重越大,中心节点向该其他节点进行数据传输时就越为困难。Beneficial effect of basic scheme 1: According to the communication success rate between adjacent nodes, analyze the line weight between other nodes and the central node, and the line weight is negatively correlated with the communication success rate, that is, the line between other nodes and the central node The greater the weight, the more difficult it is for the central node to transmit data to other nodes.
本方案中将整个拓扑结构中的数据传输分为了两个阶段,在第一个阶段中,先从中心节点将数据包传输至与中心节点间线路权重较大的其他节点(待传输节点),与采用泛洪的方法进行数据传输相比,采用该方法,能够避免泛洪造成的碰撞及干扰,从而有利于提升数据接收困难节点的数据接收效率,由此,使得数据传输困难的节点率先完成了数据接收。在第一阶段的数据传输过程中,中心节点需要将数据包以点对点的方式传输至待传输节点,必定会使得其传输路径上的各节点也接收到数据包,从而为第二阶段的数据传输奠定了基础。在数据传输的第二阶段,再采用广播的方式,将数据包从已接收数据包的节点,传输至未接收数据包的节点,由此实现整个拓扑结构中各节点的数据接收。由于第一阶段已完成线路权重较大的节点的数据传输,而线路权重较大的节点往往与中心节点之间的节点数量较多,故有利于通过这些节点进行数据的进一步传输。In this scheme, the data transmission in the entire topology structure is divided into two stages. In the first stage, the data packet is first transmitted from the central node to other nodes (nodes to be transmitted) with a larger line weight between the central node and the central node. Compared with the method of data transmission using flooding, this method can avoid the collision and interference caused by flooding, which is conducive to improving the data receiving efficiency of nodes with difficult data reception, thus making the nodes with difficult data transmission complete first data reception. In the data transmission process of the first stage, the central node needs to transmit the data packet to the node to be transmitted in a point-to-point manner, which will surely make each node on its transmission path also receive the data packet, thus providing a basis for the second stage of data transmission. Foundation. In the second stage of data transmission, the data packet is transmitted from the node that has received the data packet to the node that has not received the data packet by broadcasting, thereby realizing the data reception of each node in the entire topology. Since the first stage has completed the data transmission of nodes with larger line weights, and the nodes with larger line weights often have a large number of nodes with the central node, it is beneficial for further data transmission through these nodes.
由于在第一阶段就完成了数据接收困难节点的数据传输,因此,避免了数据传输困难链路上的节点迟迟接收不到数据包,导致延缓整个拓扑结构完成数据包接收的时间;并且,在第一阶段的数据传输过程中,为数据包的广播奠定了基础,增加了能够同时进行数据包广播的节点数量,从而有效缩短了完成整个拓扑结构中各节点的数据包接收的时间。Since the data transmission of the node with difficulty in data reception is completed in the first stage, it is avoided that the nodes on the link with difficulty in data transmission cannot receive the data packet, resulting in delaying the time for the entire topology to complete the reception of the data packet; and, In the data transmission process of the first stage, the foundation is laid for the broadcast of data packets, and the number of nodes capable of broadcasting data packets at the same time is increased, thereby effectively shortening the time to complete the data packet reception of each node in the entire topology.
综上,采用本方案,使得全局最优跟局部最优的方式充分结合,提升了数据传输效率,在网络拓扑结构复杂的情况下,也能够快速完成整个拓扑结构中各节点的数据接收,有效提升了节点间的通信效率。就电力线载波领域为例,提升了台区节点间的通信效率,从而提升了台区固件升级效率,在台区结构复杂的情况下,也能够快速完成整个台区的固件升级。In summary, the adoption of this solution fully combines the global optimal and local optimal methods, improves data transmission efficiency, and can quickly complete the data reception of each node in the entire topology in the case of a complex network topology, effectively Improve the communication efficiency between nodes. Taking the field of power line carrier as an example, it improves the communication efficiency between nodes in the station area, thereby improving the firmware upgrade efficiency of the station area. In the case of a complex structure in the station area, the firmware upgrade of the entire station area can also be quickly completed.
进一步,S100包括:Further, S100 includes:
S101,获取其他节点与中心节点间的传输路径;S101, acquiring transmission paths between other nodes and the central node;
S102,根据传输路径及相邻节点间的通讯成功率,分析其他节点与中心节点间的线路权重。S102. Analyze the weights of lines between other nodes and the central node according to transmission paths and communication success rates between adjacent nodes.
有益效果:根据其他节点与中心节点间的传输路径,再结合传输路径上各相邻节点间的通讯成功率,分析出其他节点与中心节点间的线路权重,从而可以分析出各节点在接收中心节点传输数据时的难易程度。Beneficial effects: According to the transmission path between other nodes and the central node, combined with the communication success rate between adjacent nodes on the transmission path, the weight of the line between other nodes and the central node can be analyzed, so that it can be analyzed that each node is in the receiving center How easy it is for a node to transmit data.
进一步,S300包括:Further, S300 includes:
S301,将数据包从中心节点逐级传输至待传输节点,所述数据包中包括反馈指令;S301. Transmit the data packet from the central node to the node to be transmitted step by step, and the data packet includes a feedback instruction;
S302,节点接收到数据包后,向其父节点发送反馈信号;S302. After receiving the data packet, the node sends a feedback signal to its parent node;
S303,判断父节点是否成功接收反馈信号;若否,则执行S304;S303, judging whether the parent node successfully receives the feedback signal; if not, execute S304;
S304,父节点重传数据包。S304, the parent node retransmits the data packet.
有益效果:数据包在传输过程中,由子节点向父节点发送反馈信号,从而父节点可根据反馈信号分析出子节点是否成功接收数据包,未成功接收反馈信号时,重传数据包,从而可以确保传输路径上的节点成功接收了数据包。Beneficial effects: during the transmission of the data packet, the child node sends a feedback signal to the parent node, so that the parent node can analyze whether the child node successfully receives the data packet according to the feedback signal, and retransmit the data packet when the feedback signal is not successfully received, so that Make sure that the nodes on the transmission path successfully received the packet.
进一步,S300还包括:Furthermore, S300 also includes:
S305,获取网络拓扑结构,并根据网络拓扑结构调整相邻节点间的通讯成功率;S305. Obtain the network topology, and adjust the communication success rate between adjacent nodes according to the network topology;
S100,根据调整后的相邻节点间的通讯成功率,分析其他节点与中心节点间的线路权重。S100, analyzing the weights of lines between other nodes and the central node according to the adjusted communication success rate between adjacent nodes.
有益效果:数据包传输过程中,各节点存在掉线的情况,或者因路由选择改变导致组网的拓扑结构变化,故本方案中,获取网络拓扑结构,并根据网络拓扑结构调整相邻节点间的通讯成功率,使得通讯成功率跟随网络拓扑结构的变化而更新,有利于在节点自身变化导致拓扑结构发生变化时,对线路权重进行调整与更新,以保证即使网络拓扑结构发生变化,所有线路权重大于权重阈值的节点也能够接收到数据包。Beneficial effects: during the data packet transmission process, each node is disconnected, or the topology of the network changes due to the change of routing selection. Therefore, in this solution, the network topology is obtained, and the connection between adjacent nodes is adjusted according to the network topology. The communication success rate is high, so that the communication success rate is updated with the change of the network topology, which is beneficial to adjust and update the weight of the line when the topology changes due to the change of the node itself, so as to ensure that even if the network topology changes, all lines Nodes with weights greater than the weight threshold are also able to receive packets.
进一步,S303中,判断父节点是否成功接收反馈信号;若否,则执行S305。Further, in S303, it is judged whether the parent node successfully receives the feedback signal; if not, execute S305.
有益效果:父节点未成功接收反馈信号时,说明该父子节点间的数据传输出现了异常,故此时获取网络拓扑结构,相对于实时获取网络拓扑结构,采用本方案,系统功耗更低、效率更高。Beneficial effects: When the parent node fails to receive the feedback signal, it means that the data transmission between the parent and child nodes is abnormal, so the network topology structure is obtained at this time. Compared with obtaining the network topology structure in real time, using this solution, the system consumes less power and is more efficient. higher.
进一步,S400中,已接收数据包的节点,向其子节点发送数据包。Further, in S400, the node that has received the data packet sends the data packet to its child nodes.
有益效果:已接收数据包的节点,采用广播的方式向其子节点发送数据包,在此过程中,其周围的节点都能够接收到该数据包,从而可以最大化利用带宽,提升传输效率。Beneficial effects: the node that has received the data packet sends the data packet to its child nodes in a broadcast manner, and in the process, the surrounding nodes can receive the data packet, thereby maximizing the use of bandwidth and improving transmission efficiency.
进一步,S400包括:Further, S400 includes:
S401,未接收数据包的节点向其父节点发送请求信号;S401, the node that has not received the data packet sends a request signal to its parent node;
S402,父节点接收请求信号,并判断是否接受有数据包;若是,则执行S403;若否,则执行S404;S402, the parent node receives the request signal, and judges whether to accept a data packet; if yes, execute S403; if not, execute S404;
S403,广播所述数据包;S403, broadcast the data packet;
S404,父节点继续向其父节点发送请求信号,直至有节点接收过数据包;各节点由上至下依次广播所述数据包。S404, the parent node continues to send the request signal to its parent node until some node has received the data packet; each node broadcasts the data packet sequentially from top to bottom.
有益效果:通过子节点向父节点发送请求信号的方式,使得相应的父节点广播数据包,相对直接令各已接收数据包的节点广播数据包而言,采用本方案,其功耗更低,且因减少了发出广播的节点数量,有效减少了数据传输过程中的碰撞与干扰。Beneficial effects: the child node sends a request signal to the parent node, so that the corresponding parent node broadcasts the data packet. Compared with directly making each node that has received the data packet broadcast the data packet, the power consumption of this scheme is lower. And because the number of nodes sending out broadcasts is reduced, collisions and interferences during data transmission are effectively reduced.
进一步,S300中,所述采用点对点的方式,包括,采用时分多址技术。Further, in S300, the adopting a point-to-point manner includes adopting a time division multiple access technology.
有益效果:采用时分多址技术,其传输速率高,自适应均衡,且信元间干扰较小。Beneficial effects: the time division multiple access technology is adopted, the transmission rate is high, self-adaptive equalization, and the interference between cells is small.
进一步,S400中,所述采用广播的方式,包括,采用载波监听多路访问技术。Further, in S400, the broadcasting method includes adopting a carrier sense multiple access technology.
有益效果:采用载波监听多路访问技术,可以有效避免网络中的数据冲突。Beneficial effects: the data conflict in the network can be effectively avoided by adopting the carrier sense multiple access technology.
本发明提供的基础方案二:Basic scheme two that the present invention provides:
一种固件升级方法,使用了上述数据传输方法进行固件数据传输,并在完成固件数据传输后进行固件升级。A firmware upgrade method uses the above data transmission method to transmit firmware data, and performs firmware upgrade after completing the firmware data transmission.
基础方案二的有益效果:根据相邻节点间的通讯成功率,分析其他节点与中心节点间的线路权重,且所述线路权重与通讯成功率负相关,也即其他节点与中心节点间的线路权重越大,中心节点向该其他节点进行数据传输时就越为困难。Beneficial effect of basic scheme 2: According to the communication success rate between adjacent nodes, analyze the line weight between other nodes and the central node, and the line weight is negatively correlated with the communication success rate, that is, the line between other nodes and the central node The greater the weight, the more difficult it is for the central node to transmit data to other nodes.
本方案中将整个拓扑结构中的数据传输分为了两个阶段,在第一个阶段中,先从中心节点将数据包传输至与中心节点间线路权重较大的其他节点(待传输节点),由此,使得数据传输困难的节点率先完成了数据接收。在第一阶段的数据传输过程中,中心节点需要将数据包以点对点的方式传输至待传输节点,必定会使得其传输路径上的各节点也接收到数据包,从而为第二阶段的数据传输奠定了基础。在数据传输的第二阶段,再采用广播的方式,将数据包从已接收数据包的节点,传输至未接收数据包的节点,由此实现整个拓扑结构中各节点的数据接收。In this scheme, the data transmission in the entire topology structure is divided into two stages. In the first stage, the data packet is first transmitted from the central node to other nodes (nodes to be transmitted) with a larger line weight between the central node and the central node. Thus, the node that makes data transmission difficult completes data reception first. In the data transmission process of the first stage, the central node needs to transmit the data packet to the node to be transmitted in a point-to-point manner, which will surely make each node on its transmission path also receive the data packet, thus providing a basis for the second stage of data transmission. Foundation. In the second stage of data transmission, the data packet is transmitted from the node that has received the data packet to the node that has not received the data packet by broadcasting, thereby realizing the data reception of each node in the entire topology.
由于在第一阶段就完成了数据接收困难节点的数据传输,因此,避免了数据传输困难链路上的节点迟迟接收不到数据包,导致延缓整个拓扑结构完成数据包接收的时间;并且,在第一阶段的数据传输过程中,为数据包的广播奠定了基础,增加了能够同时进行数据包广播的节点数量,从而有效缩短了完成整个拓扑结构中各节点的数据包接收的时间。Since the data transmission of the node with difficulty in data reception is completed in the first stage, it is avoided that the nodes on the link with difficulty in data transmission cannot receive the data packet, resulting in delaying the time for the entire topology to complete the reception of the data packet; and, In the data transmission process of the first stage, the foundation is laid for the broadcast of data packets, and the number of nodes capable of broadcasting data packets at the same time is increased, thereby effectively shortening the time to complete the data packet reception of each node in the entire topology.
综上,采用本方案,使得全局最优跟局部最优的方式充分结合,提升了数据传输效率,在网络拓扑结构复杂的情况下,也能够快速完成整个拓扑结构中各节点的数据接收,有效提升了节点间的通信效率。就电力线载波领域为例,提升了台区节点间的通信效率,从而提升了台区固件升级效率,在台区结构复杂的情况下,也能够快速完成整个台区的固件升级。In summary, the adoption of this solution fully combines the global optimal and local optimal methods, improves data transmission efficiency, and can quickly complete the data reception of each node in the entire topology in the case of a complex network topology, effectively Improve the communication efficiency between nodes. Taking the field of power line carrier as an example, it improves the communication efficiency between nodes in the station area, thereby improving the firmware upgrade efficiency of the station area. In the case of a complex structure in the station area, the firmware upgrade of the entire station area can also be quickly completed.
附图说明Description of drawings
图1为本发明实施例一种数据传输方法的流程框图。FIG. 1 is a block flow diagram of a data transmission method according to an embodiment of the present invention.
图2为本发明实施例一种数据传输方法中的网络拓扑结构示意图。FIG. 2 is a schematic diagram of a network topology in a data transmission method according to an embodiment of the present invention.
图3为本发明实施例一种数据传输方法中的时分多址时隙分配示意图。FIG. 3 is a schematic diagram of time division multiple access time slot allocation in a data transmission method according to an embodiment of the present invention.
图4为本发明实施例一种数据传输方法中的载波监听多路访问时隙分配示意图。FIG. 4 is a schematic diagram of carrier sense multiple access time slot allocation in a data transmission method according to an embodiment of the present invention.
图5为本发明实施例一种数据传输方法中数据链路层服务架构示意图。FIG. 5 is a schematic diagram of a data link layer service architecture in a data transmission method according to an embodiment of the present invention.
图6为本发明实施例一种数据传输方法中点对点方式的数据传输示意图。FIG. 6 is a schematic diagram of point-to-point data transmission in a data transmission method according to an embodiment of the present invention.
图7为本发明实施例一种数据传输方法中广播方式的数据传输示意图。FIG. 7 is a schematic diagram of data transmission in broadcast mode in a data transmission method according to an embodiment of the present invention.
具体实施方式Detailed ways
下面通过具体实施方式进一步详细说明:The following is further described in detail through specific implementation methods:
实施例1:Example 1:
一种数据传输方法,如图1所示,包括以下步骤:A data transmission method, as shown in Figure 1, comprises the following steps:
S100,根据相邻节点间的通讯成功率,其中节点包括中心节点和其他节点,分析其他节点与中心节点间的线路权重;所述线路权重与通讯成功率负相关,也即其他节点与中心节点间的线路权重越大,中心节点向该其他节点进行数据传输时就越为困难。S100包括:S100, according to the communication success rate between adjacent nodes, wherein the nodes include the central node and other nodes, analyze the line weight between other nodes and the central node; the line weight is negatively correlated with the communication success rate, that is, other nodes and the central node The greater the weight of the line between, the more difficult it is for the central node to transmit data to the other node. S100 includes:
S101,获取其他节点与中心节点间的传输路径;S101, acquiring transmission paths between other nodes and the central node;
S102,根据传输路径及相邻节点间的通讯成功率,分析其他节点与中心节点间的线路权重。本实施例中:S102. Analyze the weights of lines between other nodes and the central node according to transmission paths and communication success rates between adjacent nodes. In this example:
W(i,j)=1-SUC(i,j);W(i,j)=1-SUC(i,j);
其中,i,j为节点的编号,也即终端设备标识符;W(i,j)表示节点i与节点j之间的线路权重;SUC(i,j)表示节点i与节点j之间的通讯成功率。Among them, i, j is the number of the node, that is, the terminal device identifier; W(i, j) represents the line weight between node i and node j; SUC(i, j) represents the line weight between node i and node j communication success rate.
当两个节点间的传输路径不是直达,而需要通过中间节点进行转发,比如节点x在节点i跟节点j中间进行转发,那么W(i,j)=W(i,x)+W(x,j);因为考虑到路由有上下行,所以总的WT(i,j)=W(i,j)+W(j,i),所以可知WT(i,j)=WT(j,i)。如果节点x在节点i跟节点j中间,那么可以展开成为WT(i,j)=WT(j,i)=W(i,x)+W(x,j)+W(x,i)+W(j,x)。When the transmission path between two nodes is not direct, but needs to be forwarded through an intermediate node, for example, node x forwards between node i and node j, then W(i,j)=W(i,x)+W(x ,j); because considering that the route has uplink and downlink, the total WT(i,j)=W(i,j)+W(j,i), so it can be known that WT(i,j)=WT(j,i ). If node x is between node i and node j, it can be expanded into WT(i,j)=WT(j,i)=W(i,x)+W(x,j)+W(x,i)+ W(j,x).
S200,筛选与中心节点间线路权重大于预设权重的其他节点为待传输节点;S200, screening other nodes with a line weight greater than a preset weight between the central node and the central node as nodes to be transmitted;
S300,采用点对点的方式,将数据包从中心节点传输至待传输节点;本实施例中,采用时分多址技术,所谓点对点并非单点对单点,而是仍然采用广播的形式进行传输,周围节点均可以进行数据包的接收,但其广播为带地址广播,也即数据包中带有目标地址,目标地址的节点需对其是否接受到该数据包进行回复,由此,第一阶段的数据传输过程中,数据链路周围的节点也能够接收到部分数据包,提升了数据传输效率。S300包括:S300 adopts a point-to-point method to transmit data packets from the central node to the node to be transmitted; in this embodiment, time division multiple access technology is adopted. All nodes can receive data packets, but the broadcast is broadcast with address, that is, the data packet contains the target address, and the node with the target address needs to reply whether it has received the data packet. Therefore, the first stage During the data transmission process, the nodes around the data link can also receive some data packets, which improves the data transmission efficiency. S300 includes:
S301,将数据包从中心节点逐级传输至待传输节点,所述数据包中包括反馈指令;S301. Transmit the data packet from the central node to the node to be transmitted step by step, and the data packet includes a feedback instruction;
S302,节点接收到数据包后,向其父节点发送反馈信号;当该节点存在多个父节点时,此处向发送数据包的父节点发送反馈信号,S303、S304中所述的父节点同理;S302, after the node receives the data packet, it sends a feedback signal to its parent node; when the node has multiple parent nodes, it sends a feedback signal to the parent node that sent the data packet, and the parent nodes described in S303 and S304 are the same reason;
S303,判断父节点是否成功接收反馈信号;若否,则执行S304及S305;若是,则执行S400;S303, judging whether the parent node successfully receives the feedback signal; if not, execute S304 and S305; if yes, execute S400;
S304,父节点重传数据包;S304, the parent node retransmits the data packet;
S305,获取网络拓扑结构,并根据网络拓扑结构调整相邻节点间的通讯成功率;S305. Obtain the network topology, and adjust the communication success rate between adjacent nodes according to the network topology;
至此,完成了数据接收困难节点的数据传输,因此,避免了数据传输困难链路上的节点迟迟接收不到数据包,导致延缓整个拓扑结构完成数据包接收的时间;并且,在第一阶段的数据传输过程中,为数据包的广播奠定了基础,增加了能够同时进行数据包广播的节点数量,从而有效缩短了完成整个拓扑结构中各节点的数据包接收的时间。So far, the data transmission of the node with difficulty in data reception is completed, therefore, it is avoided that the nodes on the link with difficulty in data transmission cannot receive the data packet, resulting in delaying the time for the entire topology to complete the data packet reception; and, in the first stage In the process of data transmission, it lays the foundation for the broadcast of data packets and increases the number of nodes that can broadcast data packets at the same time, thereby effectively shortening the time to complete the reception of data packets of each node in the entire topology.
S100,根据调整后的相邻节点间的通讯成功率,分析其他节点与中心节点间的线路权重。S100, analyzing the weights of lines between other nodes and the central node according to the adjusted communication success rate between adjacent nodes.
S400,采用广播的方式,将数据包从已接收数据包的节点,传输至未接收数据包的节点,本实施例中,采用载波监听多路访问技术。具体的,已接收数据包的节点,向其子节点发送数据包。S400包括:S400. Transmit the data packet from the node that has received the data packet to the node that has not received the data packet by broadcasting. In this embodiment, a carrier sense multiple access technology is used. Specifically, the node that has received the data packet sends the data packet to its child nodes. S400 includes:
S401,未接收数据包的节点向其父节点发送请求信号;当该节点存在多个父节点时,此处向所有父节点发送反馈信号,S402、S404中所述的父节点同理;S401, the node that has not received the data packet sends a request signal to its parent node; when the node has multiple parent nodes, a feedback signal is sent to all parent nodes here, and the parent nodes described in S402 and S404 are the same;
S402,父节点接收请求信号,并判断是否接受有数据包;若是,则执行S403;若否,则执行S404;S402, the parent node receives the request signal, and judges whether to accept a data packet; if yes, execute S403; if not, execute S404;
S403,广播所述数据包;S403, broadcast the data packet;
S404,父节点继续向其父节点发送请求信号,直至有节点接收过数据包;各节点由上至下依次广播所述数据包。S404, the parent node continues to send the request signal to its parent node until some node has received the data packet; each node broadcasts the data packet sequentially from top to bottom.
至此,完成了第二阶段的数据传输,采用本方案,使得全局最优跟局部最优的方式充分结合,提升了数据传输效率,在网络拓扑结构复杂的情况下,也能够快速完成整个拓扑结构中各节点的数据接收,有效提升了节点间的通信效率。就电力线载波领域为例,提升了台区节点间的通信效率,从而提升了台区固件升级效率,在台区结构复杂的情况下,也能够快速完成整个台区的固件升级。So far, the second stage of data transmission has been completed. Using this scheme, the global optimal and local optimal methods can be fully combined to improve the efficiency of data transmission. In the case of complex network topology, the entire topology can also be quickly completed. The data reception of each node in the network effectively improves the communication efficiency between nodes. Taking the field of power line carrier as an example, it improves the communication efficiency between nodes in the station area, thereby improving the firmware upgrade efficiency of the station area. In the case of a complex structure in the station area, the firmware upgrade of the entire station area can also be quickly completed.
在此,以宽带载波通信网络拓扑结构的固件升级进行举例说明:(本实施例中,其他节点包括中继节点和末端节点)Here, take the firmware upgrade of the broadband carrier communication network topology as an example: (in this embodiment, other nodes include relay nodes and terminal nodes)
如图2所示,宽带载波通信网络拓扑结构是以一个中心节点(图中表示为CCO)为中心,以中继节点(图中表示为PCO,包括智能电表或者I型采集器通信单元、宽带载波II型采集器)为中继代理,连接所有末端节点(图中表示为STA,包括智能电表或者I型采集器通信单元、宽带载波II型采集器)多级关联的树形网络。As shown in Figure 2, the topology of the broadband carrier communication network is centered on a central node (shown as CCO in the figure), with relay nodes (shown as PCO in the figure, including smart meters or I-type collector communication units, broadband Carrier type II collector) is a relay agent, connecting all end nodes (represented as STA in the figure, including smart meters or type I collector communication units, broadband carrier type II collectors) multi-level associated tree network.
以下进行模型假设,如图5所示,固件升级从软件的分层应该是在APPLICATION层,那么假设完整的数据包最初是保存于中心节点之上,而且网络中所有节点(包括中继节点和末端节点)都没有该数据包的任何部分。组网完成后,从中心节点开始传输数据包开始,到最后一个节点拥有整个完整的数据包结束所消耗的时间,为整体的数据传输时间。假设整个数据包被分为N个block,每个block可以放在一个无fragment(分片)的信息协议数据单元里面进行传输。The following model assumptions are made, as shown in Figure 5, the layering of the firmware upgrade from the software should be at the APPLICATION layer, then it is assumed that the complete data packet is initially stored on the central node, and all nodes in the network (including relay nodes and End nodes) do not have any part of the packet. After the networking is completed, the time it takes from the center node to transmit the data packet to the end of the last node having the entire complete data packet is the overall data transmission time. Assuming that the entire data packet is divided into N blocks, each block can be transmitted in a fragment-free information protocol data unit.
具体步骤如下:Specific steps are as follows:
获取其他节点(包括中继节点与末端节点)与中心节点间的传输路径;根据传输路径及相邻节点间的通讯成功率,分析其他节点与中心节点间的线路权重。如图2所示,中心节点CCO到末端节点STA2的通讯成功率SUC(0,2)=0.8,那么中心节点CCO与末端节点STA2间的线路权重W(0,2)=1-0.8=0.2。Obtain the transmission path between other nodes (including relay nodes and terminal nodes) and the central node; analyze the line weight between other nodes and the central node according to the transmission path and the communication success rate between adjacent nodes. As shown in Figure 2, the communication success rate SUC(0,2)=0.8 from the center node CCO to the end node STA2, then the line weight W(0,2)=1-0.8=0.2 between the center node CCO and the end node STA2 .
筛选与中心节点间线路权重大于预设权重的其他节点为待传输节点,本实施例中,预设权重为0.4;并采用时分多址技术将数据包从中心节点传输至待传输节点。如图3所示,在该数据传输阶段,有时分多址时隙的存在,从中心节点逐级在自己的时分多址时隙中给子节点发送包括反馈指令的数据包,也即该数据包需要指定子节点进行回复,从而确保传输路径上的节点成功接收了数据包。在此过程中,如父节点未接收到子节点回复的反馈信号,则进行数据包重传,并重新获取网络拓扑结构,根据新的网络拓扑结构对节点间的通讯成功率进行更新,以保证所有与中心节点间的线路权重大于权重阈值的节点均获取到数据包。Select other nodes with a link weight greater than the preset weight between the central node and the central node as nodes to be transmitted. In this embodiment, the preset weight is 0.4; and time division multiple access technology is used to transmit data packets from the central node to the node to be transmitted. As shown in Figure 3, in this data transmission stage, there is a time division multiple access time slot, and the central node sends a data packet including a feedback command to the child node in its own time division multiple access time slot step by step, that is, the data packet The packet needs to specify a child node to reply, so as to ensure that the nodes on the transmission path have successfully received the data packet. During this process, if the parent node does not receive the feedback signal from the child node, it will retransmit the data packet and reacquire the network topology, and update the communication success rate between nodes according to the new network topology to ensure All nodes whose line weights with the central node are greater than the weight threshold obtain the data packets.
如图6所示,图中示例了中心节点CCO有一个3个block的数据包,在第一个阶段将block0传输到了与中心节点间线路权重大于权重阈值的末端节点STA,路径上是采用广播,但是并不是所有STA都会成功获取block0的数据。至此,完成了第一阶段的数据传输,所有数据传输困难的节点,及其传输路径上的节点都已经接收到了数据包,此时传输路径上也会有一些附近的节点接收到了数据包中的部分文件块。As shown in Figure 6, the figure shows that the central node CCO has a data packet of 3 blocks. In the first stage, block0 is transmitted to the end node STA whose line weight with the central node is greater than the weight threshold. The path uses broadcast , but not all STAs will successfully obtain the data of block0. So far, the first phase of data transmission has been completed. All nodes with difficulty in data transmission and nodes on the transmission path have received the data packet. At this time, some nearby nodes on the transmission path will also receive the data packet. Partial file blocks.
如图7所示,取消第一传输阶段中采用的时分多址技术,而采用载波监听多路访问技术完成剩余节点的数据传输,如图4所示,采用局部广播的方式进行互相传输,具体的,未接收数据包的节点向其父节点发送请求信号;父节点接收请求信号,并判断是否接受有数据包;若是,则广播所述数据包;若否,则父节点继续向其父节点发送请求信号,直至有节点接收过数据包。得到回复的过程中均采用选择广播,以使得周围的节点都能够接收到该数据包,从而可以最大化利用带宽,提升传输效率。至此,第二阶段的数据传输结束。As shown in Figure 7, the time division multiple access technology used in the first transmission stage is cancelled, and the carrier sense multiple access technology is used to complete the data transmission of the remaining nodes. As shown in Figure 4, local broadcasting is used for mutual transmission. Specifically Yes, the node that has not received the data packet sends a request signal to its parent node; the parent node receives the request signal and judges whether to accept the data packet; if it is, then broadcasts the data packet; Send the request signal until a node has received the data packet. Selective broadcast is used in the process of getting the reply, so that the surrounding nodes can receive the data packet, so that the bandwidth can be maximized and the transmission efficiency can be improved. So far, the data transmission of the second stage ends.
采用本方案,使得全局最优跟局部最优的方式充分结合,提升了数据传输效率,在网络拓扑结构复杂的情况下,也能够快速完成整个拓扑结构中各节点的数据接收,有效提升了节点间的通信效率。就电力线载波领域为例,提升了台区节点间的通信效率,从而提升了台区固件升级效率,在台区结构复杂的情况下,也能够快速完成整个台区的固件升级。Using this solution, the global optimal and local optimal methods are fully combined, which improves the efficiency of data transmission. In the case of complex network topology, it can also quickly complete the data reception of each node in the entire topology, effectively improving the node communication efficiency between them. Taking the field of power line carrier as an example, it improves the communication efficiency between nodes in the station area, thereby improving the firmware upgrade efficiency of the station area. In the case of a complex structure in the station area, the firmware upgrade of the entire station area can also be quickly completed.
一种固件升级方法,使用了上述数据传输方法进行固件数据传输,并在完成固件数据传输后进行固件升级。A firmware upgrade method uses the above data transmission method to transmit firmware data, and performs firmware upgrade after completing the firmware data transmission.
以上的仅是本发明的实施例,方案中公知的具体结构及特性等常识在此未作过多描述,所属领域普通技术人员知晓申请日或者优先权日之前发明所属技术领域所有的普通技术知识,能够获知该领域中所有的现有技术,并且具有应用该日期之前常规实验手段的能力,所属领域普通技术人员可以在本申请给出的启示下,结合自身能力完善并实施本方案,一些典型的公知结构或者公知方法不应当成为所属领域普通技术人员实施本申请的障碍。应当指出,对于本领域的技术人员来说,在不脱离本发明结构的前提下,还可以作出若干变形和改进,这些也应该视为本发明的保护范围,这些都不会影响本发明实施的效果和专利的实用性。本申请要求的保护范围应当以其权利要求的内容为准,说明书中的具体实施方式等记载可以用于解释权利要求的内容。The above is only an embodiment of the present invention, and the common knowledge such as the specific structure and characteristics known in the scheme is not described here too much. Those of ordinary skill in the art know all the common technical knowledge in the technical field to which the invention belongs before the filing date or the priority date , can know all the existing technologies in this field, and have the ability to apply conventional experimental methods before this date. Those of ordinary skill in the art can improve and implement this scheme based on their own abilities under the inspiration given by this application. Some typical The known structures or known methods should not be an obstacle for those of ordinary skill in the art to implement the present application. It should be pointed out that for those skilled in the art, under the premise of not departing from the structure of the present invention, several modifications and improvements can also be made, and these should also be regarded as the protection scope of the present invention, and these will not affect the implementation of the present invention. Effects and utility of patents. The scope of protection required by this application shall be based on the content of the claims, and the specific implementation methods and other records in the specification may be used to interpret the content of the claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210945861.1A CN115314504B (en) | 2022-08-08 | 2022-08-08 | A data transmission method and a firmware upgrade method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210945861.1A CN115314504B (en) | 2022-08-08 | 2022-08-08 | A data transmission method and a firmware upgrade method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN115314504A true CN115314504A (en) | 2022-11-08 |
| CN115314504B CN115314504B (en) | 2025-06-24 |
Family
ID=83860772
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210945861.1A Active CN115314504B (en) | 2022-08-08 | 2022-08-08 | A data transmission method and a firmware upgrade method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115314504B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115988358B (en) * | 2023-03-22 | 2023-05-23 | 广东电网有限责任公司东莞供电局 | Meter reading method and device, ammeter and storage medium |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070115903A1 (en) * | 2005-11-23 | 2007-05-24 | Yung-Chih Liu | Method and apparatus for efficient data broadcast within beaconing network |
| WO2015167321A1 (en) * | 2014-04-30 | 2015-11-05 | Mimos Berhad | A method for upgrading firmware in a wireless mesh network |
| US20180121191A1 (en) * | 2016-11-03 | 2018-05-03 | Digi International Inc. | System and methods for wireless firmware upgrades using one-way broadcast transmissions |
| CN109873714A (en) * | 2019-01-04 | 2019-06-11 | 平安科技(深圳)有限公司 | Cloud computing node configures update method and terminal device |
| CN110138672A (en) * | 2019-05-17 | 2019-08-16 | 重庆物奇科技有限公司 | A kind of internet of things data transmission method and system |
| CN111245660A (en) * | 2020-02-24 | 2020-06-05 | 重庆金美通信有限责任公司 | Network-based equipment upgrading self-adaptive transmission method |
| US20210240464A1 (en) * | 2018-04-20 | 2021-08-05 | Carrier Corporation | Automatic device-to-device firmware upgrade of a wireless network |
| KR20220089298A (en) * | 2020-12-21 | 2022-06-28 | 엘지이노텍 주식회사 | Communication node in wireless communication network and firmware upgrage method of the same |
-
2022
- 2022-08-08 CN CN202210945861.1A patent/CN115314504B/en active Active
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070115903A1 (en) * | 2005-11-23 | 2007-05-24 | Yung-Chih Liu | Method and apparatus for efficient data broadcast within beaconing network |
| WO2015167321A1 (en) * | 2014-04-30 | 2015-11-05 | Mimos Berhad | A method for upgrading firmware in a wireless mesh network |
| US20180121191A1 (en) * | 2016-11-03 | 2018-05-03 | Digi International Inc. | System and methods for wireless firmware upgrades using one-way broadcast transmissions |
| US20210240464A1 (en) * | 2018-04-20 | 2021-08-05 | Carrier Corporation | Automatic device-to-device firmware upgrade of a wireless network |
| CN109873714A (en) * | 2019-01-04 | 2019-06-11 | 平安科技(深圳)有限公司 | Cloud computing node configures update method and terminal device |
| CN110138672A (en) * | 2019-05-17 | 2019-08-16 | 重庆物奇科技有限公司 | A kind of internet of things data transmission method and system |
| CN111245660A (en) * | 2020-02-24 | 2020-06-05 | 重庆金美通信有限责任公司 | Network-based equipment upgrading self-adaptive transmission method |
| KR20220089298A (en) * | 2020-12-21 | 2022-06-28 | 엘지이노텍 주식회사 | Communication node in wireless communication network and firmware upgrage method of the same |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115988358B (en) * | 2023-03-22 | 2023-05-23 | 广东电网有限责任公司东莞供电局 | Meter reading method and device, ammeter and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115314504B (en) | 2025-06-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4425863B2 (en) | Packet transfer system and radio base station | |
| US8259635B2 (en) | Automatic clustering of wireless network nodes toward selected mesh access points | |
| JP5388137B2 (en) | Network system, node, packet forwarding method, program, and recording medium | |
| US8774051B2 (en) | Path notification | |
| EP2350863B1 (en) | Establishing a mesh network with wired and wireless links | |
| CN101146263B (en) | System and method for reutilizing wireless resource in wireless network | |
| CN107886696B (en) | Method for realizing meter reading by connecting wireless signal blind area nodes | |
| JP2012525744A (en) | Equipment and method of base station dynamic clustering in mobile communication | |
| CN100512174C (en) | Household network wireless netting and communication method | |
| CN101013912A (en) | Power control method for centralized wireless multihop access network | |
| CN101610594A (en) | TD-OFDMA-based Dynamic Hierarchical PMP/Mesh Hybrid Network System and Its Superframe Structure | |
| CN101364944A (en) | Cooperative medium access control method for wireless distributed network | |
| CN115314504A (en) | Data transmission method and firmware upgrading method | |
| CN120166375A (en) | A UAV swarm networked measurement, control and communication system and communication method | |
| CN112351509A (en) | Self-organizing network protocol based on determinacy management method | |
| WO2016039039A1 (en) | Communication apparatus, control method therefor, communication system, and program | |
| CN115914129B (en) | Data transmission method based on intelligent reflecting surface auxiliary vehicle self-organizing network | |
| CN115119216B (en) | LoRaWAN network communication method and system with constant power supply | |
| WO2012037819A1 (en) | Device and method for allocating downlink relay backhaul resources | |
| CN114666824B (en) | Radio station information processing method based on ad hoc network communication | |
| CN110381563A (en) | A kind of uplink resources allocation strategy of self-organizing relay forwarding network | |
| CN116886125A (en) | Dual-mode communication relay method and system applied to power system | |
| JP2006050460A (en) | Wireless node device and multi-hop wireless system | |
| CN115941586A (en) | Dual-mode communication method for selecting optimal communication path by utilizing CSMA | |
| CN102164093B (en) | Media access control method for wireless Mesh network |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |