CN117880277A - Method and system for shortening multi-address file transmission time by using hierarchical proxy - Google Patents

Method and system for shortening multi-address file transmission time by using hierarchical proxy Download PDF

Info

Publication number
CN117880277A
CN117880277A CN202410103186.7A CN202410103186A CN117880277A CN 117880277 A CN117880277 A CN 117880277A CN 202410103186 A CN202410103186 A CN 202410103186A CN 117880277 A CN117880277 A CN 117880277A
Authority
CN
China
Prior art keywords
file
node
pco
data block
level
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.)
Pending
Application number
CN202410103186.7A
Other languages
Chinese (zh)
Inventor
宋玮琼
赵乐
李蕊
李季巍
郭帅
潘全成
刘士峰
罗冬坤
韩柳
吕凤鸣
逄林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
State Grid Beijing Electric Power Co Ltd
China Gridcom Co Ltd
Original Assignee
State Grid Corp of China SGCC
State Grid Beijing Electric Power Co Ltd
China Gridcom Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, State Grid Beijing Electric Power Co Ltd, China Gridcom Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN202410103186.7A priority Critical patent/CN117880277A/en
Publication of CN117880277A publication Critical patent/CN117880277A/en
Pending legal-status Critical Current

Links

Abstract

The invention relates to a method and a system for shortening the transmission time of a multi-address file by using a hierarchical proxy, comprising the steps that CCO broadcasts file content transmission messages to all target nodes in an electricity consumption information acquisition system, and PCO broadcasts and transmits file data blocks which are stored in the number of unreceived file data blocks to lower node equipment; the PCO sends the number of the file data block which is not received to the connected higher-level node equipment; and the upper PCO forwards the received file content transmission message sent by the upper node equipment to the connected lower equipment until all the terminal nodes STA in the power consumption information acquisition system receive the file to be transmitted. The invention realizes the whole network STA node upgrade in the dual-mode communication network topology in the electricity consumption information acquisition system, shortens the transmission time of an upgrade file, accelerates the completion of upgrade service, shortens the transmission time especially in a large-scale node and multi-level tree network environment, and effectively improves the upgrade efficiency. The invention also relates to a storage medium.

Description

Method and system for shortening multi-address file transmission time by using hierarchical proxy
Technical Field
The invention relates to the technical field of power systems, in particular to a method and a system for shortening multi-address file transmission time by using a hierarchical proxy.
Background
In the electricity consumption information acquisition system, a dual-mode communication network is generally adopted, wherein the dual-mode communication network takes CCO as a center, PCO as an agent, and is connected with a multi-level associated tree network formed by all STA nodes of terminal equipment, and at most, a fifteen-level topological network can be realized, and electricity consumption information acquisition is carried out between a concentrator and each ammeter through the topological network. In the current dual-mode communication network, when file transmission is carried out to a plurality of terminal equipment STA nodes at one time, firstly, data is sent through a broadcast whole network, a plurality of target objects are notified, then a gateway or a root node searches the file receiving state of the STA nodes one by one, and according to missing data blocks of each node, unicast complementary sending is carried out on the missing data blocks through the gateway or the root node, so that the complete file transmission content received by the target nodes in the whole communication network is achieved. In a large-scale and multi-level dual-mode communication network, the time consumed by one file transmission is long, the number of communication messages required to be transmitted is large, and a large amount of communication network resources are consumed.
Disclosure of Invention
Aiming at the problems that one file transmission in the prior dual-mode communication network consumes long time, more transmission messages and consumes a large amount of communication network resources, the invention provides a method and a system for shortening the transmission time of a multi-address file by using a hierarchical proxy.
In a first aspect, the present invention provides a method for shortening multi-address file transfer time using a hierarchical proxy, the method comprising:
s1, broadcasting file content transmission messages to all target nodes in an electricity consumption information acquisition system by a central coordination node CCO, wherein the target nodes comprise agent coordination nodes PCO of all levels in the electricity consumption information acquisition system and all terminal nodes STA;
s2, the terminal node STA and the proxy coordination node PCO send a file receiving state notification message to the connected upper-level proxy coordination node PCO;
s3, the upper-level proxy coordination node PCO obtains file data block numbers which are not received by all lower-level node devices according to all received file receiving state notification messages;
s4, the upper-level proxy coordination node PCO determines a first file data block number which is stored in the file data block number and is not received, writes the file data block corresponding to the first file data block number into a file content transmission message, and broadcasts and transmits the file data block to all lower-level node devices of the upper-level proxy coordination node PCO;
s5, the upper-level proxy coordination node PCO sends the first file data block number which is not stored in the file data block number and is not received to the connected upper-level node equipment through a file receiving state notification message;
and S6, forwarding the received file content transmission message sent by the higher-level node equipment by the higher-level proxy coordination node PCO to the connected lower-level equipment, and repeating the steps S2 to S6 until all the terminal nodes STA in the electricity consumption information acquisition system receive the file to be transmitted.
Further, the method further comprises the step of S1', wherein the central coordination node CCO broadcasts a file transmission starting message to all the target nodes, the file transmission starting message comprises information of a file to be transmitted, and the information of the file to be transmitted comprises a file ID, a file data block byte number, a file data block number and file verification information.
Further, the terminal node STA and the proxy coordination node PCO send a file reception status notification message to the connected upper-level proxy coordination node PCO, which specifically includes:
the terminal node STA assigns the value of the bit corresponding to the received file data block number in the file block bitmap to a first preset value;
writing the file block bitmap, the file start block number and the file ID into the file receiving state notification message, sending the file block bitmap, the file start block number and the file ID to the upper-level proxy coordination node PCO connected with the terminal node STA, and waiting for receiving a file content transmission message sent by the upper-level proxy coordination node PCO.
Further, the step S2 further includes:
if the last node device connected with the terminal node STA and the proxy coordination node PCO is the central coordination node CCO, the terminal node STA and the proxy coordination node PCO assign the value of the bit corresponding to the received file data block number in the file block bitmap as a first preset value;
writing the file block bitmap, the file start block number and the file ID into the file receiving state notification message, and sending the file receiving state notification message to the central coordination node CCO.
Further, the step S3 further includes:
and the central coordination node CCO obtains file data block numbers which are not received by all subordinate node equipment according to the file block bitmap and all the received file receiving state notification messages.
Further, the step S4 further includes:
and the central coordination node CCO writes the file data block corresponding to the unreceived file data block number into a file content transmission message and broadcasts and sends the file content transmission message to all subordinate node devices.
Further, the method further comprises a step S7;
s7, the terminal equipment STA receives the file to be transmitted, assigns all bit positions in the file block bitmap as a first preset value, writes the file block bitmap into a file receiving state message, and sends the file receiving state message to a superior agent coordination node PCO connected with the terminal equipment STA;
and the upper-level proxy coordination node PCO confirms that the terminal equipment STA finishes receiving the file to be transmitted according to the file receiving state message, and notifies the central coordination node CCO of the terminal equipment STA finishing receiving the file to be transmitted.
In a second aspect, the present invention also provides a system for shortening the transmission time of a multi-address file by using a hierarchical proxy, where the system includes a central coordination node CCO, a proxy coordination node PCO, and a terminal node STA;
the central coordination node CCO is configured to broadcast a file content transmission message to all target nodes in the electricity consumption information acquisition system, where the target nodes include proxy coordination nodes PCOs of each level in the electricity consumption information acquisition system and all terminal nodes STA;
the terminal node STA is used for sending a file receiving state notification message to the connected upper-level proxy coordination node PCO;
the proxy coordination node PCO is used for sending a file receiving state notification message to the connected upper-level proxy coordination node PCO;
the upper-level proxy coordination node PCO is used for obtaining file data block numbers which are not received by all lower-level node devices according to all received file receiving state notification messages;
the upper-level proxy coordination node PCO is used for determining a first file data block number which is stored in the file data block number and is not received, writing a file data block corresponding to the first file data block number into a file content transmission message, and broadcasting and transmitting the file data block to all lower-level node devices of the upper-level proxy coordination node PCO;
the upper-level proxy coordination node PCO is used for sending the first file data block number which is not stored in the file data block number and is not received to the connected upper-level node equipment through a file receiving state notification message;
and the upper-level proxy coordination node PCO is used for forwarding the received file content transmission message sent by the upper-level node equipment to the connected lower-level equipment, and repeating the second module to the sixth module until all the terminal nodes STA in the power consumption information acquisition system receive the file to be transmitted.
In a third aspect, the present invention also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of reducing multi-address file transfer time using a hierarchical proxy of any of the first aspects.
The invention provides a method for shortening the transmission time of a multi-address file by using a hierarchical proxy, which comprises the steps that a CCO broadcasts a file content transmission message to all target nodes in an electricity consumption information acquisition system; STA and PCO send file receiving state notification message to the connected upper PCO; the upper PCO broadcasts and transmits the file data block which is stored in the file data block number and is not received to the lower node equipment; the upper-level PCO transmits the number of the file data block which is not received to the connected upper-level node equipment; and the upper PCO forwards the received file content transmission message sent by the upper node equipment to the connected lower equipment until all the terminal nodes STA in the power consumption information acquisition system receive the file to be transmitted. The invention realizes the whole network STA node upgrade in the dual-mode communication network topology in the electricity consumption information acquisition system, shortens the transmission time of the upgrade file, accelerates the completion of upgrade service, and particularly, in a large-scale node and multi-level tree network environment, after the upgrade file is broadcast and transmitted, a plurality of nodes lose data blocks, thereby shortening the transmission time and effectively improving the upgrade efficiency. Meanwhile, the invention realizes large-scale nodes, and the multi-level network environment synchronizes the files of the whole network nodes through the gateway or the root node, thereby accelerating the transmission of the whole network files.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention. In the drawings:
FIG. 1 is a flowchart of a method for reducing multi-address file transfer time using hierarchical agents according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a method for reducing multi-address file transfer time using hierarchical agents according to another embodiment of the present invention;
FIG. 3 is a schematic diagram of message transmission in a method for shortening multi-address file transmission time by using hierarchical proxy according to another embodiment of the present invention;
FIG. 4 is a schematic diagram of a file block bitmap in a method for reducing multi-address file transfer time using hierarchical agents according to another embodiment of the present invention;
FIG. 5 is a flowchart of a method for reducing multi-address file transfer time using a hierarchical proxy according to another embodiment of the present invention;
FIG. 6 is a schematic diagram of a system for reducing multi-address file transfer time using hierarchical agents according to another embodiment of the present invention.
Detailed Description
The invention will be described in detail below with reference to the drawings in connection with embodiments. It should be noted that, without conflict, the embodiments of the present invention and features of the embodiments may be combined with each other.
The following detailed description is exemplary and is intended to provide further details of the invention. Unless defined otherwise, all technical terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments in accordance with the invention.
The method for shortening the transmission time of the multi-address file by using the hierarchical proxy according to the embodiment of the invention will be described with reference to fig. 1, which includes the following steps:
s1, a central coordination node CCO broadcasts file content transmission messages to all target nodes in an electricity consumption information acquisition system, wherein the target nodes comprise proxy coordination nodes PCO and all terminal nodes STA of each level in the electricity consumption information acquisition system.
S2, the terminal node STA and the proxy coordination node PCO send a file receiving state notification message to the connected upper-level proxy coordination node PCO.
S3, the upper-level proxy coordination node PCO obtains file data block numbers which are not received by all lower-level node devices according to the received file receiving state notification messages.
S4, the upper-level proxy coordination node PCO determines a first file data block number which is stored in the file data block number and is not received, writes the file data block corresponding to the first file data block number into a file content transmission message, and broadcasts and transmits the file data block to all lower-level node devices of the upper-level proxy coordination node PCO.
S5, the upper-level proxy coordination node PCO sends the first file data block number which is not stored in the file data block number and is not received to the connected upper-level node equipment through a file receiving state notification message;
s6, the upper-level proxy coordination node PCO forwards the received file content transmission message sent by the upper-level node equipment to the connected lower-level equipment, and the steps S2 to S6 are repeated until all terminal nodes STA in the electricity consumption information acquisition system receive the file to be transmitted.
Based on the above embodiment, further, before step S1, the method further includes:
s1', a central coordination node CCO broadcasts a file transmission starting message to all target nodes, wherein the file transmission starting message comprises information of a file to be transmitted, and the information of the file to be transmitted comprises a file ID, the byte number of a file data block, the number of the file data block and file verification information.
Based on the above embodiment, further, step S2 specifically includes:
and the terminal node STA assigns the value of the bit corresponding to the received file data block number in the file block bitmap to be a first preset value.
Writing the file block bitmap, the file start block number and the file ID into the file receiving state notification message, sending the file block bitmap, the file start block number and the file ID to a previous-stage proxy coordination node PCO connected with a terminal node STA, and waiting for receiving a file content transmission message sent by the previous-stage proxy coordination node PCO.
Based on the above embodiment, further, step S2 further includes:
if the last node device connected between the terminal node STA and the proxy coordination node PCO is the central coordination node CCO, the terminal node STA and the proxy coordination node PCO assign a value of a bit corresponding to the received file data block number in the file block bitmap to a first preset value.
Writing the file block bitmap, the file start block number and the file ID into a file receiving state notification message, and sending the file receiving state notification message to a central coordination node CCO.
Based on the above embodiment, further, step S3 further includes:
and the central coordination node CCO obtains file data block numbers which are not received by all subordinate node equipment according to the file block bitmap and the received file receiving state notification message.
Based on the above embodiment, further, step S4 further includes:
the central coordination node CCO writes the file data blocks corresponding to the unreceived file data block numbers into file content transmission messages, and broadcasts and sends the file content transmission messages to all subordinate node devices.
Based on the above embodiment, further, step S7 is included;
and S7, the terminal equipment STA receives the file to be transmitted, assigns all bit positions in the file block bitmap as a first preset value, writes the file block bitmap into a file receiving state message, and sends the file receiving state message to a superior agent coordination node PCO connected with the terminal equipment STA.
And the upper-level proxy coordination node PCO confirms that the terminal equipment STA finishes receiving the file to be transmitted according to the file receiving state message, and informs the central coordination node CCO of the terminal equipment STA finishing receiving the file to be transmitted.
The invention provides a method for shortening the transmission time of a multi-address file by using a hierarchical proxy, which comprises the steps that a CCO broadcasts a file content transmission message to all target nodes in an electricity consumption information acquisition system; STA and PCO send file receiving state notification message to the connected upper PCO; the upper PCO broadcasts and transmits the file data block which is stored in the file data block number and is not received to the lower node equipment; the upper-level PCO transmits the number of the file data block which is not received to the connected upper-level node equipment; and the upper PCO forwards the received file content transmission message sent by the upper node equipment to the connected lower equipment until all the terminal nodes STA in the power consumption information acquisition system receive the file to be transmitted. The invention realizes the whole network STA node upgrade in the dual-mode communication network topology in the electricity consumption information acquisition system, shortens the transmission time of the upgrade file, accelerates the completion of upgrade service, and particularly, in a large-scale node and multi-level tree network environment, after the upgrade file is broadcast and transmitted, a plurality of nodes lose data blocks, thereby shortening the transmission time and effectively improving the upgrade efficiency. Meanwhile, the invention realizes large-scale nodes, and the multi-level network environment synchronizes the files of the whole network nodes through the gateway or the root node, thereby accelerating the transmission of the whole network files.
The method for shortening the transmission time of the multi-address file by using the hierarchical proxy according to the embodiment of the present invention will be described in practical application with reference to fig. 2 to 5, which specifically includes the following steps:
110. the central coordination node CCO broadcasts a file transmission starting message to all target nodes, wherein the file transmission starting message comprises information of a file to be transmitted, and the information of the file to be transmitted comprises a file ID, the byte number of file data blocks, the number of file data blocks and file verification information.
Specifically, as shown in fig. 2 and fig. 3, file transmission is started, the CCO informs the target node of the whole network of a message of file information to be transmitted, and informs the whole network of the preparation to receive the file to be transmitted, including the target object for receiving the file transmission, and the information of the file information to be transmitted, the file ID, the size of each file block, the total block number, the verification, and the like.
120. The central coordination node CCO broadcasts file content transmission messages to all target nodes in the electricity consumption information acquisition system, wherein the target nodes comprise proxy coordination nodes PCO and all terminal nodes STA of all levels in the electricity consumption information acquisition system.
Specifically, the CCO broadcasts and transmits the message of all data blocks by broadcasting and transmitting the message of the data blocks, and can perform broadcast retransmission according to the scale of the node and the condition of the communication signal;
130. and the terminal node STA assigns the value of the bit corresponding to the received file data block number in the file block bitmap as a first preset value, writes the file block bitmap, the file starting block number and the file ID into the file receiving state notification message, sends the file receiving state notification message to a superior proxy coordination node PCO connected with the terminal node STA, and sends the file receiving state notification message to the central coordination node CCO if the superior node equipment connected with the terminal node STA and the proxy coordination node PCO is the central coordination node CCO.
140. The upper-level proxy coordination node PCO obtains file data block numbers which are not received by all lower-level node devices according to the received file receiving state notification messages, and the central coordination node CCO obtains file data block numbers which are not received by all lower-level node devices according to the received file receiving state notification messages according to the file block bitmap.
150. The upper-level proxy coordination node PCO determines a first file data block number which is stored in the file data block number and is not received, writes a file data block corresponding to the first file data block number into a file content transmission message, and broadcasts and transmits the file data block to all lower-level node devices of the upper-level proxy coordination node PCO;
the central coordination node CCO writes the file data blocks corresponding to the unreceived file data block numbers into file content transmission messages, and broadcasts and sends the file content transmission messages to all subordinate node devices.
160. The upper-level proxy coordination node PCO sends a first file data block number which is not stored in the file data block number and is not received to the connected upper-level node equipment through a file receiving state notification message;
170. and the upper-level proxy coordination node PCO forwards the received file content transmission message sent by the upper-level node equipment to the connected lower-level equipment, and the steps 120 to 170 are repeated until all terminal nodes STA in the power consumption information acquisition system receive the file to be transmitted.
Specifically, the STA informs the proxy node of the situation of receiving the file data block, if the proxy node analyzes and discovers that the STA has a missing data block, the proxy node gathers the missing data block of the next node, and has received the content of the data block, and supplements the content of the missing file data block in a downlink broadcast manner, and other nodes which have missing the data block also receive the missing data block and synchronously supplement the missing data block; if the proxy node also lacks the data block, the upper node is informed of reissuing, and the CCO preferably reissues the directly connected proxy node data block.
180. The method comprises the steps that a terminal equipment STA receives a file to be transmitted, all bit positions in a file block bitmap are assigned to be a first preset value, the file block bitmap is written into a file receiving state message, and the file receiving state message is sent to a superior agent coordination node PCO connected with the terminal equipment STA;
190. and the upper-level proxy coordination node PCO confirms that the terminal equipment STA finishes receiving the file to be transmitted according to the file receiving state message, and informs the central coordination node CCO of the terminal equipment STA finishing receiving the file to be transmitted.
Specifically, the proxy node and the gateway or the root node distribute file contents, complement the node contents of the missing file data blocks, aggregate and report node addresses of successful file reception, synchronize the condition of receiving the file by the node receiving the file transmission in the whole network to the gateway or the root node, and judge that the file transmission is completed.
Specifically, the present invention requires at least three data frames in the file transmission process, and the format is approximately as follows:
the first method for starting file transmission message comprises the following steps: file ID, file size, file check, file data block size, and total number of file data blocks.
The second file content transmits a message, the message content includes: file ID, file data block number, data block size (the size is the file data block size in the start file transfer message, except the last data block), file data.
The third file receives a status message, where the message content includes: file ID, message length, start block number, bitmap for describing the received file block bitmap in transmission, 0 indicating that the block data was not received, 1 indicating that the block data was received. As shown in fig. 4, the bitmap illustrates an example: the initial block number is 1, the 0 th byte and the 0 th bit in the bitmap represent the 1 st data block receiving situation, the 1 st bit of the 0 th byte represents the 2 nd data block receiving situation, and so on.
It should be understood that the invention is mainly used in a multi-level communication network, when a gateway or a root node transmits an upgrade file to a plurality of nodes at the same time, the proxy node is utilized to already receive the file content, and the proxy node responds to the node with missing file content to reply and complement the missing file content, so that the communication resources between each level and the gateway or the root node are effectively reduced, the time of file transmission is reduced, the file is rapidly and completely transmitted, and the purpose of accelerating file transmission to a target node is achieved in the upgrade process.
Specifically, in a multi-level network topology, multiple levels transmit data across levels at the same time, there is substantially no interference between each other, for example, a 1-level node communicates with a next direct station, a 3-level node communicates with a next direct station, the two simultaneous communications have little interference with each other, and on dual-mode communication channels of power line communication and wireless communication, different channels and levels can communicate simultaneously without interfering with each other.
When the communication gateway or the root node transmits a plurality of node addresses simultaneously, through broadcast transmission, each layer of proxy nodes receive and then forward the messages to the next node, so that the proxy nodes can be more than correct messages received by the next hop node, after the broadcast is finished, the CCO inquires upgrading states one by one nodes to carry out packet supplementing, the nodes at the low layer can also carry out packet supplementing firstly, complete messages can be received firstly, based on the CCO and the proxy nodes, when the CCO completes data blocks of other directly connected nodes, the other proxy nodes can also complete message data blocks of the next node, and the nodes at different layers and different channels can simultaneously carry out communication with less mutual interference, thus shortening the communication time of file transmission, achieving the purpose that the whole file is transmitted to all target STAs and improving the file transmission efficiency.
Compared with the prior art, the invention has the advantages that:
1. in a multi-level network topology in the electricity consumption information acquisition system, the simultaneous file transmission of the whole network to a plurality of node addresses is realized, after the file is broadcast and transmitted, the STA node can inform the agent node of missing data blocks, and the agent node gathers the missing condition of the data blocks of the next node.
2. And the proxy node actively complements the missing data block of the next node according to the missing condition of the data block of the next node. The method is completed in a downlink broadcasting mode, and meanwhile, the messages missing from all nodes of a lower level can be completed.
3. After the verification is passed, the nodes can report to the gateway or the root node uniformly, judge whether the file transmission is completed or not, and reduce the state that the gateway or the root node inquires the file receiving of each node independently.
The invention realizes the whole network STA node upgrade in the dual-mode communication network topology in the electricity consumption information acquisition system, shortens the transmission time of the upgrade file, accelerates the completion of upgrade service, and particularly, in a large-scale node and multi-level tree network environment, after the upgrade file is broadcast and transmitted, a plurality of nodes lose data blocks, thereby shortening the transmission time and effectively improving the upgrade efficiency. Meanwhile, the invention realizes large-scale nodes, and the multi-level network environment synchronizes the files of the whole network nodes through the gateway or the root node, thereby accelerating the transmission of the whole network files.
A system for shortening transmission time of a multi-address file by using a hierarchical proxy according to an embodiment of the present invention will be described with reference to fig. 6, where the system includes a central coordination node CCO, a proxy coordination node PCO, and a terminal node STA;
the central coordination node CCO is configured to broadcast a file content transmission message to all target nodes in the electricity consumption information acquisition system, where the target nodes include proxy coordination nodes PCOs of each level in the electricity consumption information acquisition system and all terminal nodes STA;
the terminal node STA is used for sending a file receiving state notification message to the connected upper-level proxy coordination node PCO;
the proxy coordination node PCO is used for sending a file receiving state notification message to the connected upper-level proxy coordination node PCO;
the upper-level proxy coordination node PCO is used for obtaining file data block numbers which are not received by all lower-level node devices according to all received file receiving state notification messages;
the upper-level proxy coordination node PCO is used for determining a first file data block number which is stored in the file data block number and is not received, writing a file data block corresponding to the first file data block number into a file content transmission message, and broadcasting and transmitting the file data block to all lower-level node devices of the upper-level proxy coordination node PCO;
the upper-level proxy coordination node PCO is used for sending the first file data block number which is not stored in the file data block number and is not received to the connected upper-level node equipment through the file receiving state notification message.
And the upper-level proxy coordination node PCO is used for forwarding the received file content transmission message sent by the upper-level node equipment to the connected lower-level equipment, and repeating the second module to the sixth module until all the terminal nodes STA in the power consumption information acquisition system receive the file to be transmitted.
Based on the above embodiment, further, the central coordination node CCO is configured to broadcast a file transmission start message to all the target nodes, where the file transmission start message includes information of a file to be transmitted, and the information of the file to be transmitted includes a file ID, a number of bytes of a file data block, a number of data blocks of the file, and file verification information.
Based on the above embodiment, further, the terminal node STA is configured to assign a value of a bit corresponding to the received file data block number in the file block bitmap to a first preset value;
writing the file block bitmap, the file start block number and the file ID into the file receiving state notification message, sending the file block bitmap, the file start block number and the file ID to the upper-level proxy coordination node PCO connected with the terminal node STA, and waiting for receiving a file content transmission message sent by the upper-level proxy coordination node PCO.
Based on the above embodiment, further, if the previous node device connected to the terminal node STA and the proxy coordination node PCO is the central coordination node CCO, the terminal node STA and the proxy coordination node PCO assign a value of a bit corresponding to the received file data block number in the file block bitmap to a first preset value;
writing the file block bitmap, the file start block number and the file ID into the file receiving state notification message, and sending the file receiving state notification message to the central coordination node CCO.
Based on the above embodiment, further, the central coordination node CCO is configured to obtain, according to the file block bitmap, file data block numbers that are not received by all the subordinate node devices according to all the received file receiving status notification messages.
Based on the above embodiment, further, the central coordination node CCO is configured to write the file data block corresponding to the unreceived file data block number into a file content transmission packet, and broadcast and send the file content transmission packet to all subordinate node devices.
Based on the above embodiment, further, the terminal device STA is configured to receive the file to be transmitted, assign all bits in the file block bitmap to a first preset value, write the file block bitmap into a file receiving status message, and send the file receiving status message to a previous-level proxy coordination node PCO connected to the terminal device STA;
the upper-level proxy coordination node PCO is configured to confirm, according to the file reception status message, that the terminal device STA has completed receiving the file to be transmitted, and notify the central coordination node CCO of the terminal device STA that has completed receiving the file to be transmitted.
The invention realizes the whole network STA node upgrade in the dual-mode communication network topology in the electricity consumption information acquisition system, shortens the transmission time of the upgrade file, accelerates the completion of upgrade service, and particularly, in a large-scale node and multi-level tree network environment, after the upgrade file is broadcast and transmitted, a plurality of nodes lose data blocks, thereby shortening the transmission time and effectively improving the upgrade efficiency. Meanwhile, the invention realizes large-scale nodes, and the multi-level network environment synchronizes the files of the whole network nodes through the gateway or the root node, thereby accelerating the transmission of the whole network files.
The embodiment of the invention also comprises a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the computer program is executed by a processor to realize the method for shortening the transmission time of the multi-address file by using the hierarchical proxy.
The above embodiments are only for illustrating the technical aspects of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the above embodiments, it should be understood by those of ordinary skill in the art that: modifications and equivalents may be made to the specific embodiments of the invention without departing from the spirit and scope of the invention, which is intended to be covered by the claims.

Claims (10)

1. A method for reducing multi-address file transfer time using hierarchical proxies, the method comprising:
s1, broadcasting file content transmission messages to all target nodes in an electricity consumption information acquisition system by a central coordination node CCO, wherein the target nodes comprise agent coordination nodes PCO of all levels in the electricity consumption information acquisition system and all terminal nodes STA;
s2, the terminal node STA and the proxy coordination node PCO send a file receiving state notification message to the connected upper-level proxy coordination node PCO;
s3, the upper-level proxy coordination node PCO obtains file data block numbers which are not received by all lower-level node devices according to all received file receiving state notification messages;
s4, the upper-level proxy coordination node PCO determines a first file data block number which is stored in the file data block number and is not received, writes the file data block corresponding to the first file data block number into a file content transmission message, and broadcasts and transmits the file data block to all lower-level node devices of the upper-level proxy coordination node PCO;
s5, the upper-level proxy coordination node PCO sends the first file data block number which is not stored in the file data block number and is not received to the connected upper-level node equipment through a file receiving state notification message;
and S6, forwarding the received file content transmission message sent by the higher-level node equipment by the higher-level proxy coordination node PCO to the connected lower-level equipment, and repeating the steps S2 to S6 until all the terminal nodes STA in the electricity consumption information acquisition system receive the file to be transmitted.
2. The method according to claim 1, wherein the step S1 is preceded by:
s1', the central coordination node CCO broadcasts a file transmission starting message to all the target nodes, wherein the file transmission starting message comprises information of a file to be transmitted, and the information of the file to be transmitted comprises a file ID, a file data block byte number, a file data block number and file verification information.
3. The method according to claim 1, wherein the terminal node STA and the proxy coordination node PCO send a file reception status notification message to the connected upper level proxy coordination node PCO, specifically comprising:
the terminal node STA assigns the value of the bit corresponding to the received file data block number in the file block bitmap to a first preset value;
writing the file block bitmap, the file start block number and the file ID into the file receiving state notification message, sending the file block bitmap, the file start block number and the file ID to the upper-level proxy coordination node PCO connected with the terminal node STA, and waiting for receiving a file content transmission message sent by the upper-level proxy coordination node PCO.
4. The method according to claim 1, wherein the step S2 further comprises:
if the last node device connected with the terminal node STA and the proxy coordination node PCO is the central coordination node CCO, the terminal node STA and the proxy coordination node PCO assign the value of the bit corresponding to the received file data block number in the file block bitmap as a first preset value;
writing the file block bitmap, the file start block number and the file ID into the file receiving state notification message, and sending the file receiving state notification message to the central coordination node CCO.
5. The method according to claim 4, wherein the step S3 further comprises:
and the central coordination node CCO obtains file data block numbers which are not received by all subordinate node equipment according to the file block bitmap and all the received file receiving state notification messages.
6. The method according to claim 5, wherein the step S4 further comprises:
and the central coordination node CCO writes the file data block corresponding to the unreceived file data block number into a file content transmission message and broadcasts and sends the file content transmission message to all subordinate node devices.
7. A method according to claim 3, characterized in that the method further comprises a step S7;
s7, the terminal equipment STA receives the file to be transmitted, assigns all bit positions in the file block bitmap as a first preset value, writes the file block bitmap into a file receiving state message, and sends the file receiving state message to a superior agent coordination node PCO connected with the terminal equipment STA;
and the upper-level proxy coordination node PCO confirms that the terminal equipment STA finishes receiving the file to be transmitted according to the file receiving state message, and notifies the central coordination node CCO of the terminal equipment STA finishing receiving the file to be transmitted.
8. A system for shortening the transmission time of a multi-address file by using a hierarchical proxy, characterized in that the system comprises a central coordination node CCO, a proxy coordination node PCO and a terminal node STA;
the central coordination node CCO is configured to broadcast a file content transmission message to all target nodes in the electricity consumption information acquisition system, where the target nodes include proxy coordination nodes PCOs of each level in the electricity consumption information acquisition system and all terminal nodes STA;
the terminal node STA is used for sending a file receiving state notification message to the connected upper-level proxy coordination node PCO;
the proxy coordination node PCO is used for sending a file receiving state notification message to the connected upper-level proxy coordination node PCO;
the upper-level proxy coordination node PCO is used for obtaining file data block numbers which are not received by all lower-level node devices according to all received file receiving state notification messages;
the upper-level proxy coordination node PCO is used for determining a first file data block number which is stored in the file data block number and is not received, writing a file data block corresponding to the first file data block number into a file content transmission message, and broadcasting and transmitting the file data block to all lower-level node devices of the upper-level proxy coordination node PCO;
the upper-level proxy coordination node PCO is used for sending the first file data block number which is not stored in the file data block number and is not received to the connected upper-level node equipment through a file receiving state notification message;
and the upper-level proxy coordination node PCO is used for forwarding the received file content transmission message sent by the upper-level node equipment to the connected lower-level equipment, and repeating the second module to the sixth module until all the terminal nodes STA in the power consumption information acquisition system receive the file to be transmitted.
9. The system of claim 8, wherein the system further comprises a controller configured to control the controller,
the central coordination node CCO is configured to broadcast a file transmission start message to all the target nodes, where the file transmission start message includes information of a file to be transmitted, and the information of the file to be transmitted includes a file ID, a number of bytes of a file data block, a number of data blocks of the file, and file verification information.
10. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements the method of reducing multi-address file transfer time using a hierarchical proxy of any of claims 1 to 7.
CN202410103186.7A 2024-01-24 2024-01-24 Method and system for shortening multi-address file transmission time by using hierarchical proxy Pending CN117880277A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410103186.7A CN117880277A (en) 2024-01-24 2024-01-24 Method and system for shortening multi-address file transmission time by using hierarchical proxy

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410103186.7A CN117880277A (en) 2024-01-24 2024-01-24 Method and system for shortening multi-address file transmission time by using hierarchical proxy

Publications (1)

Publication Number Publication Date
CN117880277A true CN117880277A (en) 2024-04-12

Family

ID=90591782

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410103186.7A Pending CN117880277A (en) 2024-01-24 2024-01-24 Method and system for shortening multi-address file transmission time by using hierarchical proxy

Country Status (1)

Country Link
CN (1) CN117880277A (en)

Similar Documents

Publication Publication Date Title
CN101743716B (en) Establishment of reliable multicast/broadcast in a wireless network
JP4058450B2 (en) Wireless packet communication method and wireless packet communication device
JP4875156B2 (en) Repeater
CN102026297B (en) Method, system and node for channel negotiation
CN101331702A (en) Method, wireless local area network(wlan),node and apparatus for multicast and/or broadcast acknowledgements
US20230209536A1 (en) Multi-link communication method, traffic-to-link mapping method, and device
CN114584274B (en) Method for improving electricity consumption information acquisition success rate
CN111711471A (en) Method for realizing power line carrier communication ad hoc network
CN105099902A (en) Routing method for quantum Mesh network
CN114143899B (en) Channel access method of broadband carrier network
EP1699169A1 (en) Wireless base station, wireless mobile device, and wireless access network for reducing signalling traffic
CN110636631B (en) Transmission scheduling method, related device and system
CN101861737B (en) Method and apparatus for transmitting a packet header
CN110661550B (en) Method, device, storage medium and electronic equipment for forwarding message in HPLC communication link
CN117880277A (en) Method and system for shortening multi-address file transmission time by using hierarchical proxy
CN101686436A (en) Wireless communication system, wireless communication terminal, wireless communication station and wireless communication method
CN103155633B (en) Air station, communication system and communication means
JP2002124953A (en) Wireless packet relay method, system thereof and wireless station
CN114745613A (en) Meter reading method for broadband carrier network
CN101617509B (en) Method for transferring data to a plurality of control appliances
CN102045102B (en) Method and system for transmitting information by using rate-free code as well as relay station
CN110739987A (en) Low-voltage power line broadband carrier communication system
CN101494589B (en) Management system and method for transmission resource
CN111740905B (en) Routing method for realizing reliable communication link under wireless ad hoc network environment
CN100366012C (en) Method for connecting user's terminal through wireless access network to kernel network

Legal Events

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