CN107948202B - Data transmission method and data transmission system based on IPv6 - Google Patents

Data transmission method and data transmission system based on IPv6 Download PDF

Info

Publication number
CN107948202B
CN107948202B CN201711481946.4A CN201711481946A CN107948202B CN 107948202 B CN107948202 B CN 107948202B CN 201711481946 A CN201711481946 A CN 201711481946A CN 107948202 B CN107948202 B CN 107948202B
Authority
CN
China
Prior art keywords
node
routing node
network
routing
sub
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711481946.4A
Other languages
Chinese (zh)
Other versions
CN107948202A (en
Inventor
仝杰
丁慧霞
汪洋
吴赛
李许安
马跃
雷煜卿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Electric Power Research Institute Co Ltd CEPRI
Original Assignee
China Electric Power Research Institute Co Ltd CEPRI
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 China Electric Power Research Institute Co Ltd CEPRI filed Critical China Electric Power Research Institute Co Ltd CEPRI
Priority to CN201711481946.4A priority Critical patent/CN107948202B/en
Publication of CN107948202A publication Critical patent/CN107948202A/en
Application granted granted Critical
Publication of CN107948202B publication Critical patent/CN107948202B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides an IPv 6-based data transmission method and a data transmission system, and relates to the technical field of communication. The data transmission method comprises the following steps: aiming at each acquisition node, the acquisition node sends the acquired electricity consumption data to routing nodes belonging to the same-level sub-network; for each routing node, the routing node performs fusion processing on the collected power utilization data and the power utilization data sent by each collecting node belonging to the same-level sub-network to obtain a corresponding data packet; and for each data packet, forwarding the data packet sequentially through the routing node of the upper-level sub-network by the corresponding routing node so as to transmit the data packet to the gateway node, wherein the gateway node is used for forwarding the received data packet to a server, and the sub-network with smaller distance between the routing node and the gateway node in the two adjacent sub-networks is the upper-level sub-network. By the method, the problem of low data transmission efficiency in the prior art can be solved.

Description

Data transmission method and data transmission system based on IPv6
Technical Field
The invention relates to the technical field of communication, in particular to a data transmission method and a data transmission system based on IPv 6.
Background
With the continuous development of communication technology, the application field of the communication technology is continuously expanded. Among them, the present invention plays an important role in the transmission of power consumption data. The inventor researches and discovers that the conventional power utilization data transmission technology has the problem of low data transmission efficiency when the power utilization data transmission scale is too large or the frequency is too high.
Disclosure of Invention
In view of the above, the present invention provides a data transmission method and a data transmission system based on IPv6, so as to solve the problem of low data transmission efficiency in the prior art.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
an IPv 6-based data transmission method applied to a power utilization data acquisition network, wherein the power utilization data acquisition network comprises a plurality of sub-networks, each sub-network comprises a routing node and a plurality of acquisition nodes, and the method comprises the following steps:
aiming at each acquisition node, the acquisition node sends the acquired electricity consumption data to routing nodes belonging to the same-level sub-network;
for each routing node, the routing node performs fusion processing on the collected power utilization data and the power utilization data sent by each collecting node belonging to the same-level sub-network to obtain a corresponding data packet;
and for each data packet, forwarding the data packet sequentially through the routing node of the upper-level sub-network by the corresponding routing node so as to transmit the data packet to the gateway node, wherein the gateway node is used for forwarding the received data packet to a server, and the sub-network with smaller distance between the routing node and the gateway node in the two adjacent sub-networks is the upper-level sub-network.
In a preferred selection of the embodiment of the present invention, in the data transmission method based on IPv6, for each routing node, the step of performing fusion processing on the collected power consumption data and the power consumption data sent by each collection node belonging to the same-level sub-network by the routing node to obtain a corresponding data packet includes:
for each routing node, the routing node acquires the IP address of the collected power consumption data and the IP address of the power consumption data sent by each collecting node belonging to the same-level sub-network;
the routing node generates a new IP address according to the acquired IP addresses, and encapsulates the electricity consumption data acquired by the routing node and the electricity consumption data sent by the acquisition nodes belonging to the same-level sub-network through the new IP address to obtain a data packet.
In a preferred option of the embodiment of the present invention, in the data transmission method based on IPv6, the step of generating, by the routing node, a new IP address according to each acquired IP address includes:
the routing node obtains the subnet ID of the sub-network to which the routing node belongs, the node ID of the routing node and the node ID of each acquisition node belonging to the same-level sub-network as the routing node according to the obtained IP addresses, wherein the subnet IDs of the nodes belonging to the same-level sub-network are the same;
the routing node generates a new IP address according to the number of nodes of the sub-network, the obtained sub-network ID and the obtained node IDs.
In a preferred option of the embodiment of the present invention, in the IPv 6-based data transmission method, before the step of sending, for each collection node, the collected power consumption data to a routing node belonging to the same-level sub-network is performed, the method further includes:
the gateway node forwards each reading instruction sent by the server to each corresponding routing node, wherein the reading instruction is used for reading the electricity consumption data collected by the corresponding routing node or collection node;
for each routing node, the routing node performs fusion processing on the corresponding reading instructions to obtain a corresponding instruction packet;
the routing node broadcasts the corresponding instruction packet to each acquisition node belonging to the same-level sub-network as the routing node, so that each acquisition node transmits the acquired power utilization data to the routing node belonging to the same-level sub-network according to the received instruction packet.
In a preferred option of the embodiment of the present invention, in the data transmission method based on IPv6, the step of forwarding, by the gateway node, each copy instruction sent by the server to each corresponding routing node includes:
the gateway node forwards each reading instruction sent by the server to a routing node closest to the gateway node in each routing node;
the routing node acquires the IP address of each reading instruction, and judges whether the corresponding reading instruction is used for reading the electricity consumption data collected by each node in the sub-network to which the routing node belongs according to the sub-network ID in the IP address;
if the judgment result is yes, judging that the reading instruction is forwarded to the corresponding routing node;
if the judgment result is negative, the routing node sequentially forwards the reading instruction to the routing node of the next-level sub-network so that the reading instruction is forwarded to the corresponding routing node, wherein the sub-network with the longer distance between the routing node and the gateway node in the adjacent two levels of sub-networks is the next-level sub-network.
In a preferred option of the embodiment of the present invention, in the data transmission method based on IPv6, for each routing node, the step of performing fusion processing on each corresponding copy instruction by the routing node to obtain a corresponding instruction packet includes:
aiming at each routing node, the routing node acquires the IP address of each corresponding reading instruction;
and the routing node generates a new IP address according to each acquired IP address, and encapsulates each corresponding copying instruction through the new IP address to obtain an instruction packet.
In a preferred option of the embodiment of the present invention, in the IPv 6-based data transmission method, the step of broadcasting, by the routing node, the corresponding instruction packet to each collection node belonging to the same-level sub-network as the routing node, so that each collection node transmits the collected electricity consumption data to the routing node belonging to the same-level sub-network according to the received instruction packet includes:
the routing node broadcasts the corresponding instruction packet to each acquisition node belonging to the same level of sub-network as the routing node;
and aiming at each acquisition node, the acquisition node acquires the IP address of the instruction packet and judges whether the IP address comprises the node ID of the acquisition node, so that when the judgment result is yes, the acquisition node transmits the acquired electricity utilization data to the routing node belonging to the same-level sub-network.
In a preferred option of the embodiment of the present invention, in the data transmission method based on IPv6, before the step of forwarding, by the gateway node, each copy instruction sent by the server to each corresponding routing node is executed, the method further includes:
aiming at each routing node, the routing node acquires the global routing prefix of the gateway node, the electric meter address of the routing node and the electric meter address of each acquisition node belonging to the same-level sub-network;
the routing node acquires a subnet ID and a node ID which are configured for the routing node by the gateway node through a stateless address allocation method, and acquires the subnet ID and the node ID which are configured for each acquisition node belonging to the same-level subnet by the routing node;
the routing node generates the IP address of the routing node according to the electric meter address, the subnet ID, the node ID and the global routing prefix of the routing node, and generates the IP address of each acquisition node according to the electric meter address, the subnet ID, the node ID and the global routing prefix of each acquisition node.
The embodiment of the invention also provides an IPv 6-based data transmission system, which is applied to a power utilization data acquisition network and comprises the following components:
the collection node is used for collecting power utilization data;
the routing node is used for acquiring the power consumption data and receiving the power consumption data sent by each acquisition node belonging to the same-level sub-network, fusing the acquired power consumption data and the received power consumption data to obtain a corresponding data packet, and forwarding the data packet sequentially through the routing node of the previous-level sub-network;
the gateway node is used for receiving the data packet sent by the routing node and forwarding the received data packet to the server;
the electricity consumption data acquisition network comprises a plurality of levels of sub-networks, a routing node and a plurality of acquisition nodes are correspondingly arranged in any level of sub-network, and the sub-network with the smaller distance between the routing node and the gateway node in the adjacent two levels of sub-networks is the upper level of sub-network.
In a preferred option of the embodiment of the present invention, in the data transmission system based on IPv6, the gateway node is further configured to forward each copy instruction sent by the server to each corresponding routing node;
the routing node is further configured to perform fusion processing on the corresponding reading instructions to obtain corresponding instruction packets, and broadcast the corresponding instruction packets to acquisition nodes belonging to the same-level sub-network as the routing node, so that the acquisition nodes send acquired power consumption data to the routing nodes belonging to the same-level sub-network according to the received instruction packets.
According to the IPv 6-based data transmission method and the data transmission system, the power utilization data collected by the routing node and the collection node are fused to obtain the data packet, and the data is transmitted in the form of the data packet, so that the frequency of transmitting the power utilization data by the routing node can be effectively reduced, the problem of low data transmission efficiency caused by overlarge power utilization data transmission scale or overhigh frequency in the existing power utilization data transmission technology is solved, the problem of data collision in power utilization data transmission is effectively avoided, and the reliability and the safety of the data transmission method and the data transmission system are greatly improved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
Fig. 1 is a block diagram of an IPv 6-based data transmission system according to an embodiment of the present invention.
Fig. 2 is a schematic flowchart of a data transmission method based on IPv6 according to an embodiment of the present invention.
Fig. 3 is a schematic flowchart of step S120 in fig. 2.
Fig. 4 is a schematic flowchart of step S123 in fig. 3.
Fig. 5 is a schematic diagram illustrating components of a generated new IP address according to an embodiment of the present invention.
Fig. 6 is another schematic flow chart of the IPv 6-based data transmission method according to the embodiment of the present invention.
Fig. 7 is a schematic flowchart of step S140 in fig. 6.
Fig. 8 is a schematic flowchart of step S150 in fig. 6.
Fig. 9 is a schematic flowchart of step S160 in fig. 6.
Fig. 10 is another schematic flowchart of a data transmission method based on IPv6 according to an embodiment of the present invention.
Fig. 11 is a schematic diagram illustrating components of IP addresses of a routing node and a collection node according to an embodiment of the present invention.
Icon: 100-a data transmission system; 110-a gateway node; 130-routing nodes; 150-collection node.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
As shown in fig. 1, an embodiment of the present invention provides an IPv 6-based data transmission system 100, which is applied to a power consumption data collection network. The data transmission system 100 includes a gateway node 110, a routing node 130, and a collection node 150, and the electricity consumption data collection network includes a multi-level sub-network.
Further, in this embodiment, one routing node 130 and a plurality of collection nodes 150 correspond to any one of the multi-level sub-networks. The multiple sub-networks may be arranged according to the distance from the gateway node 110, and pass through the routing nodes 130 in each sub-network to realize data transmission between the adjacent two sub-networks and data transmission between the routing nodes 130 and the gateway node 110.
The sub-network with the smaller distance between the routing node 130 and the gateway node 110 in the two adjacent sub-networks is the upper sub-network, and the sub-network with the longer distance between the routing node 130 and the gateway node 110 in the two adjacent sub-networks is the lower sub-network.
In this embodiment, the collection node 150 is configured to collect power consumption data. The routing node 130 is configured to collect the power consumption data and receive the power consumption data sent by each collection node 150 belonging to the same sub-network, perform fusion processing on the collected power consumption data and the received power consumption data to obtain a corresponding data packet, and forward the data packet sequentially through the routing node 130 of the previous sub-network. The gateway node 110 is configured to receive the data packet sent by the routing node 130, and forward the received data packet to the server.
The collection node 150 and the routing node 130 may be communication modules connected to electric meters that need to collect electricity consumption data, and the gateway node 110 may be a gateway connected to the communication modules.
Further, it is considered that if each collection node 150 and each routing node 130 continuously perform fusion processing on the collected power consumption data and then send the power consumption data to the gateway node 110, and forward the power consumption data to the server, the workload of the gateway node 110 and the server is greatly increased, and the efficiency of controlling the power consumption data by the server is reduced. In this embodiment, the gateway node 110 is further configured to forward each reading instruction sent by the server to each corresponding routing node 130. The routing node 130 is further configured to perform fusion processing on the corresponding reading instructions to obtain corresponding instruction packets, and broadcast the corresponding instruction packets to the collection nodes 150 belonging to the same-level sub-network as the routing node 130, so that the collection nodes 150 send the collected power consumption data to the routing nodes 130 belonging to the same-level sub-network according to the received instruction packets.
In order to improve the utilization rate of the data acquisition system, in this embodiment, the gateway node 110 may also be configured to directly establish a communication relationship with the acquisition node 150, so as to directly obtain the power consumption data sent by the acquisition node 150, and forward the power consumption data to the server after performing fusion processing on the power consumption data.
With reference to fig. 2, an embodiment of the present invention further provides an IPv 6-based data transmission method that can be applied to the power consumption data acquisition network. The power consumption data acquisition network includes multiple sub-networks, wherein each sub-network includes a routing node 130 and multiple acquisition nodes 150, and the detailed flow of the data transmission method will be described in detail below with reference to fig. 2.
In step S110, for each collection node 150, the collection node 150 transmits the collected electricity consumption data to the routing nodes 130 belonging to the same-level sub-network.
In this embodiment, considering that the number of the collection nodes 150 is generally large, and most of the collection nodes 150 are difficult to directly transmit the collected electricity consumption data to the gateway node 110 due to the limitation of the communication distance, the routing node 130 needs to be arranged to forward the data collected by the collection nodes 150.
In order to facilitate the management of the collection nodes 150 by the routing node 130, each collection node 150 may transmit the collected power consumption data to the routing node 130 in the preset same-level sub-network.
Step S120, for each routing node 130, the routing node 130 performs fusion processing on the collected power consumption data and the power consumption data sent by each collection node 150 belonging to the same-level sub-network to obtain a corresponding data packet.
In this embodiment, in order to avoid the problem of resource waste caused by separately providing a router to process the power consumption data sent by each collection node 150, a designated communication module connected to the electric meter may be configured as the routing node 130, so as to achieve the purpose of performing fusion processing on the power consumption data corresponding to the electric meter and the power consumption data sent by each collection node 150.
Step S130, for each data packet, the corresponding routing node 130 forwards the data packet sequentially through the routing node 130 of the upper-level sub-network, so as to transmit the data packet to the gateway node 110.
In this embodiment, the gateway node 110 is configured to forward the received data packet to a server, where a sub-network of two adjacent sub-networks, in which the distance between the routing node 130 and the gateway node 110 is smaller, is a sub-network of a previous level. For example, when the power consumption data collection network includes three levels of sub-networks, the routing node 130 of the third level of sub-network may perform fusion processing on the power consumption data collected by the routing node 130 and the power consumption data sent by each collection node 150 of the sub-network to obtain a data packet, and forward the data packet to the server sequentially through the routing node 130 of the second level of sub-network, the routing node 130 of the first level of sub-network, and the gateway node 110.
For the data packet sent by the third-level sub-network, the routing node 130 of the second-level sub-network, the routing node 130 of the first-level sub-network, and the gateway node 110 only perform forwarding processing, and the routing of the second-level sub-network is further configured to perform fusion processing on the power consumption data acquired by the routing node 130 and the power consumption data sent by each acquisition node 150 of the sub-network to obtain a data packet, and forward the data packet to the server sequentially through the routing node 130 of the first-level sub-network and the gateway node 110.
Optionally, the manner of performing the fusion processing on each electricity consumption data through step S120 is not limited, and in this embodiment, in combination with fig. 3, step S120 may include step S121 and step S123.
In step S121, for each routing node 130, the routing node 130 acquires the IP address of the collected power consumption data and the IP address of the power consumption data transmitted by each collection node 150 belonging to the same-level sub-network.
In this embodiment, when the collection nodes 150 send the electricity consumption data, the electricity consumption data is encapsulated by the preset configured IP address to obtain a data packet, and the data packet is sent to the corresponding routing node 130. When receiving the data packet, the routing node 130 analyzes the packet to obtain the corresponding power consumption data and the IP address. The IP address is at the source IP address of the data message and is generated based on the IPv6 protocol.
Step S123, the routing node 130 generates a new IP address according to the acquired IP addresses, and encapsulates the power consumption data collected by the routing node 130 and the power consumption data sent by the collection nodes 150 belonging to the same-level sub-network by using the new IP address to obtain a data packet.
The manner of generating a new IP address according to each IP address is not limited, as long as the corresponding routing node 130 and each collection node 150 can be effectively identified. In the present embodiment, in conjunction with fig. 4, step S123 may include step S123a and step S123 b.
In step S123a, the routing node 130 obtains, according to the acquired IP addresses, the subnet ID of the subnet to which the routing node 130 belongs, the node ID of the routing node 130, and the node IDs of the collection nodes 150 belonging to the same-level subnet as the routing node 130.
In the present embodiment, the subnet IDs of the nodes belonging to the same-level sub-network are the same, that is, the subnet IDs of the routing node 130 and the collection nodes 150 belonging to the same sub-network are the same.
In step S123b, the routing node 130 generates a new IP address based on the number of nodes in the sub-network, the obtained sub-network ID, and the obtained node IDs.
In this embodiment, the manner of generating a new IP address according to the number of nodes, the number of subnets, and the node ID is not limited, and for example, when a primary subnetwork includes one routing node 130 and three collection nodes 150, the primary subnetwork may include 6bytes, which are the subnet ID, the number of nodes, and the node ID corresponding to four nodes of the primary subnetwork, respectively, in combination with fig. 5.
Further, in order to facilitate management and control of each routing node 130 and each collection node 150, in this embodiment, the data transmission method may further include that the server sends a corresponding copy reading instruction to each routing node 130 and each collection node 150, so that each routing node 130 and each collection node 150 send the collected power consumption data according to the instruction, and with reference to fig. 6, before executing step S110, the data transmission method may further include step S140, step S150, and step S160.
In step S140, the gateway node 110 forwards each copy instruction sent by the server to each corresponding routing node 130.
Step S150, for each routing node 130, the routing node 130 performs fusion processing on each corresponding copy-reading instruction to obtain a corresponding instruction packet.
Step S160, the routing node 130 broadcasts the corresponding instruction packet to each collection node 150 belonging to the same level of sub-network as the routing node 130, so that each collection node 150 transmits the collected electricity consumption data to the routing node 130 belonging to the same level of sub-network according to the received instruction packet.
In this embodiment, in order to avoid the problem of data transmission collision caused by directly sending each reading instruction to each collection node 150 and routing node 130, each instruction may be sent to the corresponding routing node 130, so that the routing node 130 performs fusion processing on the corresponding reading instruction to send to each collection node 150. The corresponding routing node 130 may be the routing node 130 corresponding to the electricity data read by the copy instruction or the routing node 130 belonging to the same-level sub-network as the corresponding collection node 150.
Optionally, a specific manner of executing step S140 to send each copy reading instruction to the corresponding routing node 130 is not limited, and in this embodiment, with reference to fig. 7, step S140 may include step S141, step S143, step S145, and step S147.
In step S141, the gateway node 110 forwards each copy instruction sent by the server to the routing node 130 closest to the gateway node 110 in each routing node 130.
In this embodiment, after receiving the reading instruction sent by the server to read each electricity consumption data, the gateway node 110 may obtain a destination IP address of each reading execution, and if the collection node 150 corresponding to the destination IP address is in direct communication connection with the gateway node 110, the reading instruction may be directly sent to the connected collection node 150, and if there are a plurality of connected collection nodes 150, the gateway node 110 may perform fusion processing on each corresponding reading to obtain an instruction packet, and broadcast the instruction packet to each connected collection node 150.
If the node corresponding to the destination IP address is the routing node 130 or the collection node 150 that is not in direct communication connection with the gateway node 110, the copy instruction may be forwarded to the routing node 130 closest to the gateway node 110 (the routing node 130 that directly establishes communication connection with the gateway node 110) in each routing node 130, for example, the routing node 130 may be the routing node 130 of the first-level sub-network in the three-level sub-networks.
Step S143, the routing node 130 obtains the IP address of each reading instruction, and determines whether the corresponding reading instruction is used to read the power consumption data collected by each node in the sub-network to which the routing node 130 belongs according to the subnet ID in the IP address.
In this embodiment, when the routing node 130 receives each copy instruction sent by the gateway node 110, the IP address (destination IP address) of each copy instruction may be obtained to determine whether each copy instruction is used to read the power consumption data collected by each node (including the routing node 130 and each collection node 150 in the same-level sub-network) in the sub-network to which the routing node 130 belongs. If the copy reading instruction is used to read the electricity consumption data collected by the routing node 130 or the collection node 150 of the sub-network, step S145 is executed, and if the copy reading instruction is not used to read the electricity consumption data collected by the routing node 130 or the collection node 150 of the sub-network, step S147 is executed.
Step S145, determining that the copy instruction has been forwarded to the corresponding routing node 130.
In this embodiment, if the copy reading instruction is forwarded to the corresponding routing node 130, the routing node 130 may perform fusion processing on the copy reading instruction and other corresponding copy reading instructions through step S150 to obtain an instruction packet.
In step S147, the routing node 130 sequentially forwards the copy instruction to the routing nodes 130 of the next-level sub-network, so that the copy instruction is forwarded to the corresponding routing nodes 130.
In this embodiment, if the copy reading instruction is not forwarded to the corresponding routing node 130, for example, if the routing node 130 corresponding to the copy reading instruction is the routing node 130 of the third-level sub-network, the routing node 130 of the first-level sub-network performs the determination of step S143, then step S147 is performed to forward the copy reading instruction to the routing node 130 of the second-level sub-network, and after the routing node 130 of the second-level sub-network performs the determination of step S143, step S147 may be performed to forward the copy reading instruction to the routing node 130 of the third-level sub-network.
Optionally, a specific manner of executing step S150 to perform fusion processing on each copy reading instruction is not limited, and in this embodiment, with reference to fig. 8, step S150 may include step S151 and step S153.
In step S151, for each routing node 130, the routing node 130 acquires the IP address of each copy instruction corresponding to the routing node 130.
Step S153, the routing node 130 generates a new IP address according to each acquired IP address, and encapsulates each corresponding copy instruction by the new IP address to obtain an instruction packet.
In this embodiment, a specific implementation manner of generating a new IP address according to the IP address of each copy instruction may refer to the flow of the steps included in step S123, where it should be noted that, when each copy instruction is processed, it is necessary to obtain the destination IP address of each copy instruction, and the generated new IP address is also the destination IP address of the instruction packet.
Optionally, a specific manner of executing step S160 to process the obtained instruction packet is not limited, and in this embodiment, with reference to fig. 9, step S160 may include step S161 and step S163.
In step S161, the routing node 130 broadcasts the corresponding command packet to each of the collection nodes 150 belonging to the same level of sub-network as the routing node 130.
Step S163, for each collection node 150, the collection node 150 acquires the IP address of the instruction packet, and determines whether the IP address includes the node ID of the collection node 150, so that if the determination result is yes, the collection node 150 transmits the collected electricity consumption data to the routing node 130 belonging to the same-level sub-network.
Further, considering that in each flow step of executing the data transmission method, IP addresses of each collection node 150 and each routing node 130 are required to encapsulate the collected power consumption data or encapsulate the data packet, in this embodiment, with reference to fig. 10, before executing step S140, the data transmission method may further include step S170, step S180, and step S190 to configure IP addresses of each collection node 150 and each routing node 130.
Step S170, for each routing node 130, the routing node 130 obtains the global routing prefix of the gateway node 110, the electric meter address of the routing node 130, and the electric meter addresses of the collection nodes 150 belonging to the same-level sub-network.
In this embodiment, the global routing prefix may be a 64-bit global routing prefix obtained when a gateway device corresponding to the gateway node 110 accesses a network. The electric meter address may be composed of an address number and a manufacturer number, which are used for identification when the electric meter corresponding to the routing node 130 and the collection node 150 is shipped from the factory.
Step S180, the routing node 130 obtains the subnet ID and the node ID configured by the gateway node 110 for the routing node 130 through the stateless address allocation method, and obtains the subnet ID and the node ID configured by the routing node 130 for each collection node 150 belonging to the same level of subnet.
In this embodiment, after the gateway obtains the electric meter address of the electric meter corresponding to each routing node 130, the subnet ID and the node ID may be configured for each routing node 130 by a stateless allocation method. After the routing node 130 acquires the electric meter address of the electric meter corresponding to the corresponding collection node 150, a subnet ID and a node ID may be configured for each collection node 150 by a stateless allocation method. The subnet IDs of the routing nodes 130 are different, and the subnet IDs of the routing nodes 130 and the collection node 150 belonging to the same-level subnet are the same and different.
Step S190, the routing node 130 generates the IP address of the routing node 130 according to the electric meter address, the subnet ID, the node ID of the routing node 130 and the global routing prefix, and generates the IP address of each collection node 150 according to the electric meter address, the subnet ID, the node ID of each collection node 150 and the global routing prefix.
In this embodiment, with reference to fig. 11, the IP addresses of the generating routing node 130 and the collecting node 150 may sequentially be a global routing prefix of 64bits, an electric meter address of 48bits, a subnet ID of 8bits, and a node ID of 8 bits.
In summary, according to the IPv 6-based data transmission method and the data transmission system 100 provided by the present invention, the routing node 130 and the collection node 150 collect the power consumption data and merge them to obtain the data packet, and transmit the data in the form of the data packet, so that the frequency of transmitting the power consumption data by the routing node 130 can be effectively reduced, the problem of low data transmission efficiency due to too large scale or too high frequency of power consumption data transmission in the conventional power consumption data transmission technology is improved, the problem of data collision in power consumption data transmission is effectively avoided, and the reliability and the security of the data transmission method and the data transmission system 100 are greatly improved.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus and method embodiments described above are illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, an electronic device, or a network device) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. An IPv 6-based data transmission method applied to a power utilization data acquisition network, wherein the power utilization data acquisition network comprises a plurality of sub-networks, each sub-network comprises a routing node and a plurality of acquisition nodes, and the method comprises the following steps:
aiming at each acquisition node, the acquisition node sends the acquired electricity consumption data to routing nodes belonging to the same-level sub-network;
for each routing node, the routing node performs fusion processing on the collected power utilization data and the power utilization data sent by each collecting node belonging to the same-level sub-network to obtain a corresponding data packet;
for each data packet, forwarding the data packet sequentially through the routing node of the upper-level sub-network by the corresponding routing node so as to transmit the data packet to the gateway node, wherein the gateway node is used for forwarding the received data packet to a server, and the sub-network with smaller distance between the routing node and the gateway node in the two adjacent sub-networks is the upper-level sub-network;
the method further comprises the following steps:
the gateway node forwards each reading instruction sent by the server to each corresponding routing node, wherein the reading instruction is used for reading the electricity consumption data collected by the corresponding routing node or collection node;
for each routing node, the routing node acquires the IP address of each corresponding reading instruction, generates a new IP address according to each acquired IP address, and encapsulates each corresponding reading instruction through the new IP address to obtain an instruction packet;
the routing node broadcasts the corresponding instruction packet to each acquisition node belonging to the same-level sub-network as the routing node, so that each acquisition node transmits the acquired power utilization data to the routing node belonging to the same-level sub-network according to the received instruction packet.
2. The IPv 6-based data transmission method according to claim 1, wherein the step of, for each routing node, performing fusion processing on the collected power consumption data and the power consumption data sent by the collection nodes belonging to the same-level sub-network to obtain a corresponding data packet includes:
for each routing node, the routing node acquires the IP address of the collected power consumption data and the IP address of the power consumption data sent by each collecting node belonging to the same-level sub-network;
the routing node generates a new IP address according to the acquired IP addresses, and encapsulates the electricity consumption data acquired by the routing node and the electricity consumption data sent by the acquisition nodes belonging to the same-level sub-network through the new IP address to obtain a data packet.
3. The IPv 6-based data transmission method according to claim 2, wherein the step of the routing node generating a new IP address based on the acquired IP addresses includes:
the routing node obtains the subnet ID of the sub-network to which the routing node belongs, the node ID of the routing node and the node ID of each acquisition node belonging to the same-level sub-network as the routing node according to the obtained IP addresses, wherein the subnet IDs of the nodes belonging to the same-level sub-network are the same;
the routing node generates a new IP address according to the number of nodes of the sub-network, the obtained sub-network ID and the obtained node IDs.
4. The IPv 6-based data transmission method according to any one of claims 1-3, wherein the step of forwarding, by the gateway node, each copy instruction sent by the server to each corresponding routing node includes:
the gateway node forwards each reading instruction sent by the server to a routing node closest to the gateway node in each routing node;
the routing node acquires the IP address of each reading instruction, and judges whether the corresponding reading instruction is used for reading the electricity consumption data collected by each node in the sub-network to which the routing node belongs according to the sub-network ID in the IP address;
if the judgment result is yes, judging that the reading instruction is forwarded to the corresponding routing node;
if the judgment result is negative, the routing node sequentially forwards the reading instruction to the routing node of the next-level sub-network so that the reading instruction is forwarded to the corresponding routing node, wherein the sub-network with the longer distance between the routing node and the gateway node in the adjacent two levels of sub-networks is the next-level sub-network.
5. The IPv 6-based data transmission method according to any one of claims 1-3, wherein the routing node broadcasting a corresponding instruction packet to each collection node belonging to the same level of sub-network as the routing node, so that each collection node sends collected electricity consumption data to the routing node belonging to the same level of sub-network according to the received instruction packet, comprises:
the routing node broadcasts the corresponding instruction packet to each acquisition node belonging to the same level of sub-network as the routing node;
and aiming at each acquisition node, the acquisition node acquires the IP address of the instruction packet and judges whether the IP address comprises the node ID of the acquisition node, so that when the judgment result is yes, the acquisition node transmits the acquired electricity utilization data to the routing node belonging to the same-level sub-network.
6. The IPv 6-based data transmission method according to any one of claims 1-3, wherein before the step of the gateway node forwarding each copy instruction sent by the server to the corresponding routing node is executed, the method further comprises:
aiming at each routing node, the routing node acquires the global routing prefix of the gateway node, the electric meter address of the routing node and the electric meter address of each acquisition node belonging to the same-level sub-network;
the routing node acquires a subnet ID and a node ID which are configured for the routing node by the gateway node through a stateless address allocation method, and acquires the subnet ID and the node ID which are configured for each acquisition node belonging to the same-level subnet by the routing node;
the routing node generates the IP address of the routing node according to the electric meter address, the subnet ID, the node ID and the global routing prefix of the routing node, and generates the IP address of each acquisition node according to the electric meter address, the subnet ID, the node ID and the global routing prefix of each acquisition node.
7. An IPv 6-based data transmission system applied to a power utilization data acquisition network, the data transmission system comprising:
the collection node is used for collecting power utilization data;
the routing node is used for acquiring the power consumption data and receiving the power consumption data sent by each acquisition node belonging to the same-level sub-network, fusing the acquired power consumption data and the received power consumption data to obtain a corresponding data packet, and forwarding the data packet sequentially through the routing node of the previous-level sub-network;
the gateway node is used for receiving the data packet sent by the routing node and forwarding the received data packet to the server;
the electricity consumption data acquisition network comprises a plurality of sub-networks, a routing node and a plurality of acquisition nodes are correspondingly arranged in any one sub-network, and the sub-network with the smaller distance between the routing node and the gateway node in the adjacent two sub-networks is the upper sub-network;
the gateway node is further configured to forward each reading instruction sent by the server to each corresponding routing node, where the reading instruction is used to read the power consumption data collected by the corresponding routing node or collection node;
for each routing node, the routing node is further configured to acquire an IP address of each corresponding reading instruction, generate a new IP address according to each acquired IP address, and encapsulate each corresponding reading instruction through the new IP address to obtain an instruction packet;
the routing node is further used for broadcasting the corresponding instruction packet to each acquisition node belonging to the same-level sub-network as the routing node, so that each acquisition node sends the acquired electricity utilization data to the routing node belonging to the same-level sub-network according to the received instruction packet.
8. The IPv 6-based data transmission system according to claim 7, wherein the gateway node is further configured to forward each copy instruction sent by the server to each corresponding routing node;
the routing node is further configured to perform fusion processing on the corresponding reading instructions to obtain corresponding instruction packets, and broadcast the corresponding instruction packets to acquisition nodes belonging to the same-level sub-network as the routing node, so that the acquisition nodes send acquired power consumption data to the routing nodes belonging to the same-level sub-network according to the received instruction packets.
CN201711481946.4A 2017-12-29 2017-12-29 Data transmission method and data transmission system based on IPv6 Active CN107948202B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711481946.4A CN107948202B (en) 2017-12-29 2017-12-29 Data transmission method and data transmission system based on IPv6

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711481946.4A CN107948202B (en) 2017-12-29 2017-12-29 Data transmission method and data transmission system based on IPv6

Publications (2)

Publication Number Publication Date
CN107948202A CN107948202A (en) 2018-04-20
CN107948202B true CN107948202B (en) 2020-10-02

Family

ID=61938048

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711481946.4A Active CN107948202B (en) 2017-12-29 2017-12-29 Data transmission method and data transmission system based on IPv6

Country Status (1)

Country Link
CN (1) CN107948202B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109917742A (en) * 2019-03-25 2019-06-21 北京龙鼎源科技股份有限公司 Programmable logic controller (PLC) PLC system, data uploading method
CN113068141B (en) * 2021-03-22 2023-05-19 杭州芯创智联科技有限公司 Fusion data transmission method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102882790A (en) * 2012-10-12 2013-01-16 北京锐安科技有限公司 IPv6 (Internet Protocol version 6) real-time dataflow processing method
CN102984821A (en) * 2011-12-30 2013-03-20 山东黄金集团有限公司 Safety monitoring wireless sensor network in factory
US8761007B1 (en) * 2008-10-21 2014-06-24 Marvell International Ltd. Method and apparatus for preventing a mobile device from creating a routing loop in a network
CN103906044A (en) * 2014-03-04 2014-07-02 杭州迅龙科技有限公司 Networking method of wireless electricity consumption information acquisition ad hoc network
CN104639618A (en) * 2015-01-13 2015-05-20 南京康尼机电股份有限公司 Wireless networking system and method of working parameters of rail vehicle equipment or mechanism
CN105262687A (en) * 2015-09-14 2016-01-20 重庆邮电大学 Networking communication method of electricity consumption information acquisition system based on WIA-PA technology
CN106604344A (en) * 2016-11-28 2017-04-26 中国电力科学研究院 Power utilization information system based on RPL and networking and communication method thereof
CN107017921A (en) * 2017-05-12 2017-08-04 南京南瑞微电子技术有限公司 A kind of method for improving broadband power line carrier power information collecting efficiency

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200241A (en) * 2013-03-20 2013-07-10 杭州乾程弘泰电力科技有限公司 Remote wireless meter reading control device
CN105262689A (en) * 2015-09-14 2016-01-20 中国电力科学研究院 Intelligent acquisition router and route acquisition method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8761007B1 (en) * 2008-10-21 2014-06-24 Marvell International Ltd. Method and apparatus for preventing a mobile device from creating a routing loop in a network
CN102984821A (en) * 2011-12-30 2013-03-20 山东黄金集团有限公司 Safety monitoring wireless sensor network in factory
CN102882790A (en) * 2012-10-12 2013-01-16 北京锐安科技有限公司 IPv6 (Internet Protocol version 6) real-time dataflow processing method
CN103906044A (en) * 2014-03-04 2014-07-02 杭州迅龙科技有限公司 Networking method of wireless electricity consumption information acquisition ad hoc network
CN104639618A (en) * 2015-01-13 2015-05-20 南京康尼机电股份有限公司 Wireless networking system and method of working parameters of rail vehicle equipment or mechanism
CN105262687A (en) * 2015-09-14 2016-01-20 重庆邮电大学 Networking communication method of electricity consumption information acquisition system based on WIA-PA technology
CN106604344A (en) * 2016-11-28 2017-04-26 中国电力科学研究院 Power utilization information system based on RPL and networking and communication method thereof
CN107017921A (en) * 2017-05-12 2017-08-04 南京南瑞微电子技术有限公司 A kind of method for improving broadband power line carrier power information collecting efficiency

Also Published As

Publication number Publication date
CN107948202A (en) 2018-04-20

Similar Documents

Publication Publication Date Title
CN106412142B (en) Resource equipment address obtaining method and device
EP3012999B1 (en) Method, apparatus and system for creating virtual interfaces based on network characteristics
US10129202B2 (en) Optimizing global IPv6 address assignments
EP2974456B1 (en) Providing a backup network topology without service disruption
US10911400B2 (en) Network device movement validation
JP5588345B2 (en) System and method for generating functional addresses
US10693777B2 (en) In-situ operations, administration, and maintenance (iOAM) for software defined architectures (SDAs)
US10333887B2 (en) Internet protocol (IP) network virtualization of serial network endpoints
US9490419B2 (en) DHCPv6 address autoconfiguration for source-routed networks
CN107948202B (en) Data transmission method and data transmission system based on IPv6
CN111541616A (en) Flow control method and device
WO2016191906A1 (en) Internet protocol address allocation method and router
CN107896188B (en) Data forwarding method and device
US20150103695A1 (en) Method and apparatus for controlling topology
CN114205282B (en) SRv6 Policy scheduling method, system, router and controller
CN113365227A (en) WI-SUN network system, and network access method, device and equipment based on WI-SUN network system
CN114615080B (en) Remote communication method and device for industrial equipment and equipment
US10303502B2 (en) Creating a virtual machine for an IP device using information requested from a lookup service
JP2021057873A (en) GENERATION OF IPv6 MULTICAST ADDRESS
EP3703343A1 (en) Method and device for configuring service flow
EP3231142B1 (en) Network address translation
CN111988228B (en) Method and apparatus for processing forwarding table entry
CN109995649B (en) Method and device for acquiring cross-domain link
US9912557B2 (en) Node information detection apparatus, node information detection method, and program
CN107770070B (en) Information transmission method, equipment and system

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