CN107948202A - 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
CN107948202A
CN107948202A CN201711481946.4A CN201711481946A CN107948202A CN 107948202 A CN107948202 A CN 107948202A CN 201711481946 A CN201711481946 A CN 201711481946A CN 107948202 A CN107948202 A CN 107948202A
Authority
CN
China
Prior art keywords
node
network
routing node
sub
electricity consumption
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711481946.4A
Other languages
Chinese (zh)
Other versions
CN107948202B (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

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

Data transmission method and data transmission system provided by the invention based on IPv6, are related to field of communication technology.Wherein, data transmission method includes:For each acquisition node, which sends the electricity consumption data of collection to the routing node belonged in same level-one sub-network;For each routing node, which carries out fusion treatment by the electricity consumption data of collection and the electricity consumption data for each acquisition node transmission for belonging to same level-one sub-network, to obtain corresponding data packet;For each data packet, the routing node that the data packet is passed sequentially through to upper level sub-network by corresponding routing node is forwarded to, to be transmitted to gateway node, wherein, the gateway node is used to the data packet of reception being forwarded to server, and the sub-network in small distance of adjacent two-stage sub-network routing nodes and the gateway node is upper level sub-network.By the above method, the problem of data transmission efficiency existing in the prior art is low can be improved.

Description

Data transmission method and data transmission system based on IPv6
Technical field
The present invention relates to field of communication technology, in particular to a kind of data transmission method and data based on IPv6 Transmission system.
Background technology
With the continuous development of the communication technology, its application field has obtained continuous expansion.Wherein, in the biography of electricity consumption data Play an important role in defeated.Study and find through inventor, in existing electricity consumption data transmission technology, passed in electricity consumption data Defeated scale it is excessive or when frequency is excessive there are data transmission efficiency it is low the problem of.
The content of the invention
In view of this, it is an object of the invention to provide a kind of data transmission method and data transmission system based on IPv6 System, to improve the problem of data transmission efficiency existing in the prior art is low.
To achieve the above object, the embodiment of the present invention adopts the following technical scheme that:
A kind of data transmission method based on IPv6, gathers network, the electricity consumption data gathers net applied to electricity consumption data Network includes multilevel subnetwork network, wherein, include a routing node and multiple acquisition nodes, the method bag per level-one sub-network Include:
For each acquisition node, which sends the electricity consumption data of collection to belonging in same level-one sub-network Routing node;
For each routing node, the routing node is by the electricity consumption data of collection and belongs to respectively adopting for same level-one sub-network Collect the electricity consumption data that node is sent and carry out fusion treatment, to obtain corresponding data packet;
For each data packet, which is passed sequentially through to the road of upper level sub-network by corresponding routing node It is forwarded to by node, to be transmitted to gateway node, wherein, the gateway node is used to the data packet of reception being forwarded to service Device, the sub-network in small distance of adjacent two-stage sub-network routing nodes and the gateway node is upper level sub-network.
In the embodiment of the present invention preferably selects, in the above-mentioned data transmission method based on IPv6, for each Routing node, the electricity consumption number which sends the electricity consumption data of collection with each acquisition node for belonging to same level-one sub-network According to fusion treatment is carried out, to obtain corresponding data packet the step of includes:
For each routing node, which obtains the IP address of the electricity consumption data of collection and belongs to same level-one The IP address for the electricity consumption data that each acquisition node of network is sent;
The routing node generates a new IP address according to each IP address of acquisition, and by new IP address to the road The electricity consumption data sent by the electricity consumption data of node collection with each acquisition node for belonging to same level-one sub-network is packaged to obtain To data packet.
In the embodiment of the present invention preferably selects, in the above-mentioned data transmission method based on IPv6, the routing node The step of generating a new IP address according to each IP address of acquisition includes:
The routing node obtains the subnet ID of the affiliated sub-network of the routing node, the route section according to each IP address of acquisition Point node ID and belong to the routing node same level-one sub-network each acquisition node node ID, wherein, belong to same The subnet ID of each node of level sub-network is identical;
The routing node is according to the number of nodes of affiliated sub-network, obtained subnet ID and obtained each node ID generation one A new IP address.
In the embodiment of the present invention preferably selects, in the above-mentioned data transmission method based on IPv6, it is directed in execution Each acquisition node, the acquisition node send the electricity consumption data of collection to the routing node belonged in same level-one sub-network Before step, the method further includes:
Each copy reading instruction that server is sent is forwarded to corresponding each routing node by gateway node, wherein, the copy reading Instruction is used for the electricity consumption data for reading corresponding routing node or acquisition node collection;
For each routing node, which carries out fusion treatment by corresponding each copy reading instruction, to obtain pair The instruction bag answered;
The routing node saves corresponding instruction packet broadcast to each collection for belonging to same level-one sub-network with the routing node Point, so that each acquisition node sends the electricity consumption data of collection to belonging in same level-one sub-network according to the instruction bag received Routing node.
In the embodiment of the present invention preferably selects, in the above-mentioned data transmission method based on IPv6, gateway node will The step of each copy reading instruction that server is sent is forwarded to corresponding each routing node includes:
Each copy reading instruction that server is sent is forwarded in each routing node and the gateway node distance by gateway node Nearest routing node;
The routing node obtains the IP address of each copy reading instruction, and the subnet ID in the IP address judges corresponding copy Whether reading instruction is used to read the electricity consumption data of each node collection in the affiliated sub-network of the routing node;
If the determination result is YES, then judge that copy reading instruction has been forwarded to corresponding routing node;
If judging result is no, which is forwarded to copy reading instruction at the route section of next stage sub-network successively Point, so that copy reading instruction is forwarded to corresponding routing node, wherein, adjacent two-stage sub-network routing nodes and the net The distant sub-network of artis is next stage sub-network.
In the embodiment of the present invention preferably selects, in the above-mentioned data transmission method based on IPv6, for each Corresponding each copy reading instruction is carried out fusion treatment, is wrapped with obtaining the step of corresponding instruction is wrapped by routing node, the routing node Include:
For each routing node, which obtains the IP address of corresponding each copy reading instruction;
The routing node generates new IP address according to each IP address of acquisition, and will be corresponding each by new IP address Copy reading instruction is packaged processing, to obtain instruction bag.
In the embodiment of the present invention preferably selects, in the above-mentioned data transmission method based on IPv6, the routing node By corresponding instruction packet broadcast to each acquisition node for belonging to same level-one sub-network with the routing node, so that each acquisition node root The electricity consumption data of collection is sent to including the step of belonging to the routing node in same level-one sub-network according to the instruction bag received:
The routing node saves corresponding instruction packet broadcast to each collection for belonging to same level-one sub-network with the routing node Point;
For each acquisition node, which obtains the IP address of the instruction bag, and whether judges the IP address Node ID including the acquisition node, so that the electricity consumption data of collection is when being, which is sent to category by judging result Routing node in same level-one sub-network.
In the embodiment of the present invention preferably selects, in the above-mentioned data transmission method based on IPv6, gateway is being performed Before the step of each copy reading instruction that server is sent is forwarded to corresponding each routing node by node, the method further includes:
For each routing node, which obtains the global route prefix of gateway node, the routing node Electric meter address and belong to same level-one sub-network each acquisition node electric meter address;
The routing node obtains the son that the gateway node is configured by stateless address distribution method for the routing node ID and node ID are netted, and obtains the subnet ID and node that the routing node is each acquisition node configuration for belonging to same level-one sub-network ID;
The routing node is according to the electric meter address of the routing node, subnet ID, node ID and the global route prefix life Into the IP address of the routing node, and according to the electric meter address of each acquisition node, subnet ID, node ID and the global route before Sew the IP address for generating each acquisition node.
The embodiment of the present invention additionally provides a kind of data transmission system based on IPv6, and net is gathered applied to electricity consumption data Network, the data transmission system include:
Acquisition node, for gathering electricity consumption data;
Routing node, for gathering electricity consumption data and receiving the electricity consumption for belonging to each acquisition node of same level-one sub-network and sending Data, fusion treatment is carried out to obtain corresponding data packet by the electricity consumption data of collection and each electricity consumption data received, and should The routing node that data packet passes sequentially through upper level sub-network is forwarded to;
Gateway node, for receiving the data packet of routing node transmission, and is forwarded to server by the data packet of reception;
Wherein, the electricity consumption data collection network includes multilevel subnetwork network, and a road is corresponding with any level-one sub-network By node and multiple acquisition nodes, the sub-network in small distance of adjacent two-stage sub-network routing nodes and the gateway node For upper level sub-network.
In the embodiment of the present invention preferably selects, in the above-mentioned data transmission system based on IPv6, the gateway section Point, is additionally operable to each copy reading instruction that the server is sent being forwarded to corresponding each routing node;
The routing node, is additionally operable to corresponding each copy reading instruction carrying out fusion treatment to obtain corresponding instruction bag, And by corresponding instruction packet broadcast to each acquisition node for belonging to same level-one sub-network with the routing node, so that each acquisition node Instruction bag according to receiving sends the electricity consumption data of collection to the routing node belonged in same level-one sub-network.
Data transmission method and data transmission system provided by the invention based on IPv6, by by routing node and collection Node collection electricity consumption data is merged to obtain data packet, and the transmission of data is carried out in the form of data packet, can be effective Ground reduces the frequency of routing node transmission electricity consumption data, to improve in existing electricity consumption data transmission technology because electricity consumption data is transmitted Scale is excessive or frequency is excessive and there are data transmission efficiency it is low the problem of, and then be effectively prevented from electricity consumption data transmission Data collision problem, drastically increase the reliability and security of data transmission method and data transmission system.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate Appended attached drawing, is described in detail below.
Brief description of the drawings
Fig. 1 is the structure diagram of the data transmission system provided in an embodiment of the present invention based on IPv6.
Fig. 2 is the flow diagram of the data transmission method provided in an embodiment of the present invention based on IPv6.
Fig. 3 is the flow diagram of step S120 in Fig. 2.
Fig. 4 is the flow diagram of step S123 in Fig. 3.
Fig. 5 is the composition schematic diagram of the new IP address of generation provided in an embodiment of the present invention.
Fig. 6 is another flow diagram of the data transmission method provided in an embodiment of the present invention based on IPv6.
Fig. 7 is the flow diagram of step S140 in Fig. 6.
Fig. 8 is the flow diagram of step S150 in Fig. 6.
Fig. 9 is the flow diagram of step S160 in Fig. 6.
Figure 10 is another flow diagram of the data transmission method provided in an embodiment of the present invention based on IPv6.
Figure 11 is the composition schematic diagram of the IP address of routing node provided in an embodiment of the present invention and acquisition node.
Icon:100- data transmission systems;110- gateway nodes;130- routing nodes;150- acquisition nodes.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment only It is the part of the embodiment of the present invention, instead of all the embodiments.The present invention being usually described and illustrated herein in the accompanying drawings The component of embodiment can be arranged and designed with a variety of configurations.
Therefore, below the detailed description of the embodiment of the present invention to providing in the accompanying drawings be not intended to limit it is claimed The scope of the present invention, but be merely representative of the present invention selected embodiment.Based on the embodiments of the present invention, this area is common Technical staff's all other embodiments obtained without creative efforts, belong to the model that the present invention protects Enclose.It should be noted that:Similar label and letter represents similar terms in following attached drawing, therefore, once a certain Xiang Yi are attached It is defined, then it further need not be defined and explained in subsequent attached drawing in figure.
As shown in Figure 1, an embodiment of the present invention provides a kind of data transmission system 100 based on IPv6, applied to electricity consumption Data acquisition network.Wherein, the data transmission system 100 includes gateway node 110, routing node 130 and acquisition node 150, the electricity consumption data collection network includes multilevel subnetwork network.
Further, in the present embodiment, in the multilevel subnetwork network route is corresponding with any level-one sub-network Node 130 and multiple acquisition nodes 150.The multilevel subnetwork network can be configured according to the distance with gateway node 110, and By the routing node 130 in sub-networks at different levels to realize the data transfer of adjacent two-stage sub-network and routing node 130 and net Data transfer between artis 110.
Wherein, the sub-network in small distance of adjacent two-stage sub-network routing nodes 130 and the gateway node 110 is Upper level sub-network, the distant sub-network of adjacent two-stage sub-network routing nodes 130 and the gateway node 110 are Next stage sub-network.
In the present embodiment, the acquisition node 150, for gathering electricity consumption data.The routing node 130, for adopting Collection electricity consumption data and the electricity consumption data for receiving the transmission of each acquisition node 150 for belonging to same level-one sub-network, by the electricity consumption number of collection Fusion treatment is carried out to obtain corresponding data packet according to each electricity consumption data with reception, and the data packet is passed sequentially through into upper level The routing node 130 of sub-network is forwarded to.The gateway node 110, for receiving the data packet of the transmission of routing node 130, And the data packet of reception is forwarded to server.
Wherein, the acquisition node 150 and the routing node 130 can be with needing the ammeter for gathering electricity consumption data to connect The communication module connect, the gateway node 110 can be the gateway being connected with the communication module.
Further, it is contemplated that if each acquisition node 150 and each routing node 130 constantly by the electricity consumption data of collection into Sent after row fusion treatment to gateway node 110, and be forwarded to server, gateway node 110 and server will be greatly increased Workload and the problem of cause management and control efficiency of the server to electricity consumption data to reduce.In the present embodiment, the gateway node 110, it is additionally operable to each copy reading instruction that the server is sent being forwarded to corresponding each routing node 130.The routing node 130, it is additionally operable to corresponding each copy reading instruction carrying out fusion treatment to wrap to obtain corresponding instruction, and by corresponding instruction Bao Guang Each acquisition node 150 for belonging to same level-one sub-network with the routing node 130 is cast to, so that each acquisition node 150 is according to reception To instruction bag the electricity consumption data of collection sent to the routing node 130 belonged in same level-one sub-network.
Wherein, to improve the utilization rate of the data collecting system, in the present embodiment, the gateway node 110 may be used also For directly establishing correspondence with acquisition node 150, to directly acquire the electricity consumption data of the acquisition node 150 transmission, and The server is forwarded to after fusion treatment is carried out to the electricity consumption data.
With reference to Fig. 2, the embodiment of the present invention also provide it is a kind of can be applied to above-mentioned electricity consumption data collection network based on IPv6 Data transmission method.Wherein, the electricity consumption data collection network includes multilevel subnetwork network, wherein, include per level-one sub-network One routing node 130 and multiple acquisition nodes 150, below in conjunction with Fig. 2, to the idiographic flow of the data transmission method into Row elaborates.
Step S110, for each acquisition node 150, which sends the electricity consumption data of collection to category Routing node 130 in same level-one sub-network.
In the present embodiment, it is contemplated that the quantity of acquisition node 150 is generally more, and most of acquisition nodes 150 due to Limited by communication distance and be difficult to directly send the electricity consumption data of collection to gateway node 110, therefore, it is necessary to set route Node 130 is forwarded to the data gathered to acquisition node 150.
Wherein, each acquisition node 150 is managed for ease of routing node 130, each acquisition node 150 will can gather Electricity consumption data send to the routing node 130 in the same level-one sub-network of default setting.
Step S120, for each routing node 130, the routing node 130 is by the electricity consumption data of collection and belongs to same The electricity consumption data that each acquisition node 150 of primary subnet network is sent carries out fusion treatment, to obtain corresponding data packet.
In the present embodiment, to avoid being separately provided router the electricity consumption data to be sent to each acquisition node 150 from carrying out The problem of handling and causing the wasting of resources, can be by carrying out being configured as routeing the specified communication module being connected with ammeter Node 130, to realize melting for the electricity consumption data of collection and corresponding each transmission of acquisition node 150 to the electricity consumption data of corresponding ammeter Close the purpose of processing.
Step S130, for each data packet, upper one is passed sequentially through by corresponding routing node 130 by the data packet The routing node 130 of level sub-network is forwarded to, to be transmitted to gateway node 110.
In the present embodiment, the gateway node 110 is used to the data packet of reception being forwarded to server, wherein, it is adjacent Two-stage sub-network routing nodes 130 and the sub-network in small distance of the gateway node 110 are upper level sub-network.Example Such as, when electricity consumption data collection network includes Level 3 subsidiary network, the routing node 130 of third level sub-network can be by the road The electricity consumption data that each acquisition node 150 of the electricity consumption data that is gathered by node 130 and the sub-network is sent carry out fusion treatment with A data packet is obtained, and passes sequentially through the routing node 130 of second level sub-network, the routing node 130 of first order sub-network The server is forwarded to gateway node 110.
Wherein, the data packet sent for third level sub-network, the routing node 130, first of the second level sub-network The routing node 130 and gateway node 110 of level sub-network are only forwarded to processing, and the route of the second level sub-network is additionally operable to The electricity consumption data that the electricity consumption data and each acquisition node 150 of the sub-network that the routing node 130 is gathered are sent is merged Processing passes sequentially through the routing node 130 of first order sub-network and gateway node 110 is forwarded to institute to obtain a data packet State server.
Alternatively, step S120 by each electricity consumption data carry out fusion treatment in a manner of it is unrestricted, in this implementation In example, with reference to Fig. 3, step S120 can include step S121 and step S123.
Step S121, for each routing node 130, the routing node 130 is with obtaining the IP of the electricity consumption data of collection The IP address for the electricity consumption data that location is sent with each acquisition node 150 for belonging to same level-one sub-network.
In the present embodiment, pre- establishing can be passed through to the electricity consumption data when each acquisition node 150 sends electricity consumption data The IP address put is packaged, to obtain data message and send to corresponding routing node 130.Routing node 130 is receiving During to data message, parsing is carried out to the message can obtain corresponding electricity consumption data and IP address.Wherein, the IP address is in institute The source IP address of data message is stated, and is based on IPv6 protocol generations.
Step S123, the routing node 130 generate a new IP address according to each IP address of acquisition, and by new The electricity consumption data and belong to the use that each acquisition node 150 of same level-one sub-network is sent that IP address gathers the routing node 130 Electric data are packaged to obtain data packet.
Wherein, it is unrestricted that the mode of a new IP address is generated according to each IP address, as long as can effectively identify Corresponding routing node 130 and each acquisition node 150.In the present embodiment, step can be included with reference to Fig. 4, step S123 Rapid S123a and step S123b.
Step S123a, the routing node 130 sub-network according to belonging to each IP address of acquisition obtains the routing node 130 Subnet ID, the routing node 130 node ID and belong to each acquisition node of same level-one sub-network with the routing node 130 150 node ID.
In the present embodiment, it is identical to belong to the subnet ID of each node with level-one sub-network, that is, belongs in same subnet network Routing node 130 it is identical with the subnet ID of each acquisition node 150.
Step S123b, the routing node 130 is according to the number of nodes of affiliated sub-network, obtained subnet ID and obtains Each node ID generates a new IP address.
In the present embodiment, it is unrestricted that the mode of new IP address is generated according to number of nodes, subnet ID and node ID, Can include for example, when primary subnet network includes a routing node 130 and three acquisition nodes 150 with reference to Fig. 5 6bytes, is respectively the subnet ID of this grade of sub-network, the quantity of node, the corresponding node ID of four nodes.
Further, for ease of the management and control to each routing node 130, acquisition node 150, in this embodiment, the data Transmission method can also include server and send corresponding copy reading instruction to each routing node 130, acquisition node 150, so that respectively Routing node 130, acquisition node 150 send the electricity consumption data of collection according to the instruction, with reference to Fig. 6, perform step S110 it Before, the data transmission method can also include step S140, step S150 and step S160.
Each copy reading instruction that server is sent is forwarded to corresponding each routing node by step S140, gateway node 110 130。
Step S150, for each routing node 130, which is melted corresponding each copy reading instruction Conjunction is handled, and is wrapped with obtaining corresponding instruction.
Corresponding instruction packet broadcast is belonged to same level-one by step S160, the routing node 130 to the routing node 130 Each acquisition node 150 of network so that each acquisition node 150 according to receive instruction bag by the electricity consumption data of collection send to Belong to the routing node 130 in same level-one sub-network.
In the present embodiment, led to avoid each copy reading instruction from being sent directly to each acquisition node 150 and routing node 130 The problem of causing data transmission conflict, can be respectively sent to corresponding routing node 130, so that routing node 130 by each instruction Corresponding copy reading is instructed and carries out fusion treatment, to send to each acquisition node 150.Wherein, the corresponding routing node 130 It can be copy reading instruction for the corresponding routing node 130 of electricity consumption data of reading or belong to corresponding acquisition node 150 With the routing node 130 of level-one sub-network.
Alternatively, perform step S140 by each copy reading instruction send to corresponding routing node 130 concrete mode from Limitation, in the present embodiment, with reference to Fig. 7, step S140 can include step S141, step S143, step S145 and step S147。
Each copy reading instruction that server is sent is forwarded in each routing node 130 and institute by step S141, gateway node 110 State the closest routing node 130 of gateway node 110.
In the present embodiment, gateway node 110 is receiving the copy reading for being used to read each electricity consumption data of server transmission After instruction, the purpose IP address that each copy reading performs can be obtained, if the corresponding acquisition node 150 of the purpose IP address and the gateway 110 direct communication of node connects, then the copy reading can be instructed to the acquisition node 150 for being sent directly to connection, if connection is adopted Collect node 150 to be multiple, corresponding each copy reading can be carried out fusion treatment to obtain instruction bag by gateway node 110, and should Packet broadcast is instructed to each acquisition node 150 connected.
If the corresponding node of the purpose IP address is routing node 130 or is not connected with 110 direct communication of gateway node Copy reading instruction, can be forwarded in each routing node 130 closest with the gateway node 110 by acquisition node 150 Routing node 130 (with gateway node 110 directly establish communication connection routing node 130), for example, it may be it is above-mentioned including The routing node 130 of first order sub-network in Level 3 subsidiary network.
Step S143, the routing node 130 obtain the IP address of each copy reading instruction, and the subnet ID in the IP address Judge whether corresponding copy reading instruction is used to read the electricity consumption data of each node collection in sub-network belonging to the routing node 130.
In the present embodiment, when which receives each copy reading instruction of the transmission of gateway node 110, can obtain The IP address (purpose IP address) of each copy reading instruction is taken, to judge whether respectively copy reading instruction is used to read the routing node 130 The electricity consumption of each node (including the routing node 130 and each acquisition node 150 with level-one sub-network) collection in affiliated sub-network Data.Wherein, if copy reading instruction is used for the collection of acquisition node 150 for reading the routing node 130 or affiliated sub-network Electricity consumption data, then perform step S145, if not the acquisition node 150 for reading the routing node 130 or affiliated sub-network The electricity consumption data of collection, then perform step S147.
Step S145, judges that copy reading instruction has been forwarded to corresponding routing node 130.
In the present embodiment, if copy reading instruction is forwarded to corresponding routing node 130, which can be with The copy reading is instructed by step S150 and carries out fusion treatment with other corresponding copy reading instructions, to obtain instruction bag.
Copy reading instruction is forwarded to the routing node of next stage sub-network by step S147, the routing node 130 successively 130, so that copy reading instruction is forwarded to corresponding routing node 130.
In the present embodiment, if copy reading instruction is not forwarded to corresponding routing node 130 also, if for example, the copy reading refers to The routing node 130 that corresponding routing node 130 is third level sub-network is made, the routing node 130 of first order sub-network performs After step S143 judges, step S147 is performed so that copy reading instruction is forwarded to the routing node 130 of second level sub-network, second After the routing node 130 of level sub-network performs step S143 judgements, step S147 can also be performed to be forwarded to third level subnet The routing node 130 of network.
Alternatively, performing step S150 instructs the concrete mode for carrying out fusion treatment unrestricted each copy reading, in this reality Apply in example, with reference to Fig. 8, step S150 can include step S151 and step S153.
Step S151, for each routing node 130, which obtains the IP of corresponding each copy reading instruction Address.
Step S153, the routing node 130 generate new IP address according to each IP address of acquisition, and by new IP Corresponding each copy reading instruction is packaged processing by location, to obtain instruction bag.
In the present embodiment, the embodiment that the IP address instructed according to each copy reading generates new IP address can join Each steps flow chart included according to step S123, wherein it is desired to it is noted that, it is necessary to obtain when handling each copy reading instruction Be each copy reading instruction purpose IP address, and the new IP address generated is also the purpose IP address as instruction bag.
Alternatively, it is unrestricted to perform the concrete mode that step S160 is handled obtained instruction bag, in this implementation In example, with reference to Fig. 9, step S160 can include step S161 and step S163.
Corresponding instruction packet broadcast is belonged to same level-one by step S161, the routing node 130 to the routing node 130 Each acquisition node 150 of network.
Step S163, for each acquisition node 150, which obtains the IP address of the instruction bag, and sentences Whether the IP address of breaking includes the node ID of the acquisition node 150, so that judging result is when being, which will adopt The electricity consumption data of collection is sent to the routing node 130 belonged in same level-one sub-network.
Further, it is contemplated that, it is necessary to each acquisition node 150 in each process step for performing the data transmission method With the IP address of routing node 130, it is packaged with the electricity consumption data to collection or data packet is packaged, in the present embodiment In, with reference to Figure 10, before step S140 is performed, the data transmission method can also include step S170, step S180 and Step S190 is with the configuration to each acquisition node 150 and the progress IP address of each routing node 130.
Step S170, for each routing node 130, which obtains the global route of gateway node 110 Prefix, the routing node 130 electric meter address and belong to same level-one sub-network each acquisition node 150 electric meter address.
In the present embodiment, the global route prefix can be that 110 corresponding gateway device of gateway node is in access net During network, the global route prefix of 64 of acquisition.Electric meter address can be by 150 corresponding electricity of routing node 130 and acquisition node The address number for being used to identify and supplier number composition that table has when dispatching from the factory.
Step S180, it is the road which, which obtains the gateway node 110 by stateless address distribution method, The subnet ID and node ID configured by node 130, and it is each collection section for belonging to same level-one sub-network to obtain the routing node 130 The subnet ID and node ID of the configuration of point 150.
In the present embodiment, after the electric meter address that gateway gets that each routing node 130 corresponds to ammeter, nothing can be passed through State assignment method configures subnet ID and node ID for each routing node 130.Corresponding collection section is got in routing node 130 After point 150 corresponds to the electric meter address of ammeter, subnet ID and section can be configured for each acquisition node 150 by stateless distribution method Point ID.Wherein, the subnet ID of each routing node 130 is different, belongs to the routing node 130 and acquisition node of same level-one sub-network 150 subnet ID is identical, node ID is different.
Step S190, the routing node 130 is according to the electric meter address of the routing node 130, subnet ID, node ID and described Global route prefix generates the IP address of the routing node 130, and according to the electric meter address of each acquisition node 150, subnet ID, section Point ID and the global route prefix generate the IP address of each acquisition node 150.
In the present embodiment, with reference to Figure 11, generating the IP address of routing node 130 and acquisition node 150 can be successively, The global route prefix of 64bits, the electric meter address of 48bits, 8bits subnet ID and 8bits node ID.
In conclusion the data transmission method and data transmission system 100 provided by the invention based on IPv6, by by road Electricity consumption data is gathered by node 130 and acquisition node 150 to be merged to obtain data packet, and into line number in the form of data packet According to transmission, the frequency that routing node 130 transmits electricity consumption data can be effectively reduced, transmitted with improving existing electricity consumption data In technology because the scale of electricity consumption data transmission is excessive or low there are data transmission efficiency frequency is excessive the problem of, and then effectively Ground avoids the data collision problem in electricity consumption data transmission, drastically increases data transmission method and data transmission system 100 Reliability and security.
In several embodiments that the embodiment of the present invention is provided, it should be understood that disclosed apparatus and method, also may be used To realize by another way.Apparatus and method embodiment described above is only schematical, for example, in attached drawing Flow chart and block diagram show the device of multiple embodiments according to the present invention, the possibility of method and computer program product is realized Architectural framework, function and operation.At this point, each square frame in flow chart or block diagram can represent module, a program A part for section or code, a part for the module, program segment or code are used for realization defined patrol comprising one or more Collect the executable instruction of function.It should also be noted that at some as the function of in the implementation replaced, being marked in square frame Can be with different from the order marked in attached drawing generation.For example, two continuous square frames can essentially be held substantially in parallel OK, they can also be performed in the opposite order sometimes, this is depending on involved function.It is also noted that block diagram and/or The combination of each square frame and block diagram in flow chart and/or the square frame in flow chart, can use function or dynamic as defined in performing The dedicated hardware based system made is realized, or can be realized with the combination of specialized hardware and computer instruction.
In addition, each function module in each embodiment of the present invention can integrate to form an independent portion Point or modules individualism, can also two or more modules be integrated to form an independent part.
If the function is realized in the form of software function module and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part to contribute to the prior art or the part of the technical solution can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be People's computer, electronic equipment, or network equipment etc.) perform all or part of step of each embodiment the method for the present invention Suddenly.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), deposit at random Access to memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes. It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to the bag of nonexcludability Contain, so that process, method, article or equipment including a series of elements not only include those key elements, but also including Other elements that are not explicitly listed, or further include as elements inherent to such a process, method, article, or device. In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including the key element Process, method, also there are other identical element in article or equipment.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the invention, for the skill of this area For art personnel, the invention may be variously modified and varied.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of data transmission method based on IPv6, gathers network, it is characterised in that the electricity consumption number applied to electricity consumption data Include multilevel subnetwork network according to collection network, wherein, include a routing node and multiple acquisition nodes per level-one sub-network, it is described Method includes:
For each acquisition node, which sends the electricity consumption data of collection to the road belonged in same level-one sub-network By node;
For each routing node, which saves the electricity consumption data of collection with each collection for belonging to same level-one sub-network The electricity consumption data that point is sent carries out fusion treatment, to obtain corresponding data packet;
For each data packet, which is passed sequentially through to the route section of upper level sub-network by corresponding routing node Point is forwarded to, to be transmitted to gateway node, wherein, the gateway node is used to the data packet of reception being forwarded to server, The sub-network in small distance of adjacent two-stage sub-network routing nodes and the gateway node is upper level sub-network.
2. the data transmission method according to claim 1 based on IPv6, it is characterised in that saved for each route Point, the routing node carry out the electricity consumption data of collection and the electricity consumption data for each acquisition node transmission for belonging to same level-one sub-network Fusion treatment, to obtain corresponding data packet the step of, include:
For each routing node, which obtains the IP address of the electricity consumption data of collection and belongs to same level-one sub-network Each acquisition node send electricity consumption data IP address;
The routing node generates a new IP address according to each IP address of acquisition, and by new IP address to the route section The electricity consumption data that the electricity consumption data of point collection is sent with each acquisition node for belonging to same level-one sub-network is packaged to be counted According to bag.
3. the data transmission method according to claim 2 based on IPv6, it is characterised in that the routing node is according to acquisition Each IP address generate a new IP address the step of include:
The routing node obtains the subnet ID of the affiliated sub-network of the routing node, the routing node according to each IP address of acquisition Node ID and belong to the routing node same level-one sub-network each acquisition node node ID, wherein, belong to same level-one The subnet ID of each node of network is identical;
The routing node according to the number of nodes of affiliated sub-network, obtained subnet ID and obtained each node ID generate one it is new IP address.
4. according to the data transmission method based on IPv6 described in claim 1-3 any one, it is characterised in that performing pin To each acquisition node, which sends the electricity consumption data of collection to the routing node belonged in same level-one sub-network The step of before, the method further includes:
Each copy reading instruction that server is sent is forwarded to corresponding each routing node by gateway node, wherein, the copy reading instruction For reading the electricity consumption data of corresponding routing node or acquisition node collection;
For each routing node, which carries out fusion treatment by corresponding each copy reading instruction, corresponding to obtain Instruction bag;
Corresponding instruction packet broadcast is extremely belonged to each acquisition node of same level-one sub-network by the routing node with the routing node, with Each acquisition node is set to be sent the electricity consumption data of collection to the route belonged in same level-one sub-network according to the instruction bag received Node.
5. the data transmission method according to claim 4 based on IPv6, it is characterised in that gateway node sends out server The step of each copy reading instruction sent is forwarded to corresponding each routing node includes:
Each copy reading instruction that server is sent is forwarded in each routing node closest with the gateway node by gateway node Routing node;
The routing node obtains the IP address of each copy reading instruction, and the subnet ID in the IP address judges that corresponding copy reading refers to Whether order is used to read the electricity consumption data of each node collection in the affiliated sub-network of the routing node;
If the determination result is YES, then judge that copy reading instruction has been forwarded to corresponding routing node;
If judging result is no, which is forwarded to the copy reading instruction routing node of next stage sub-network successively, So that copy reading instruction is forwarded to corresponding routing node, wherein, adjacent two-stage sub-network routing nodes and the gateway The distant sub-network of node is next stage sub-network.
6. the data transmission method according to claim 4 based on IPv6, it is characterised in that saved for each route Corresponding each copy reading instruction is carried out fusion treatment, is included with obtaining the step of corresponding instruction is wrapped by point, the routing node:
For each routing node, which obtains the IP address of corresponding each copy reading instruction;
The routing node generates new IP address according to each IP address of acquisition, and by new IP address by corresponding each copy reading Instruction is packaged processing, to obtain instruction bag.
7. the data transmission method according to claim 4 based on IPv6, it is characterised in that the routing node will be corresponding Instruction packet broadcast is to belonging to each acquisition node of same level-one sub-network with the routing node, so that each acquisition node is according to receiving Instruction bag the electricity consumption data of collection is sent to including the step of belonging to the routing node in same level-one sub-network:
Corresponding instruction packet broadcast is extremely belonged to each acquisition node of same level-one sub-network by the routing node with the routing node;
For each acquisition node, which obtains the IP address of the instruction bag, and judges whether the IP address includes The node ID of the acquisition node, so that the electricity consumption data of collection is when being, which is sent to belonging to same by judging result Routing node in primary subnet network.
8. the data transmission method according to claim 4 based on IPv6, it is characterised in that will be taken performing gateway node Before the step of each copy reading instruction that business device is sent is forwarded to corresponding each routing node, the method further includes:
For each routing node, which obtains global route prefix, the ammeter of the routing node of gateway node Address and belong to same level-one sub-network each acquisition node electric meter address;
The routing node obtains the subnet ID that the gateway node is configured by stateless address distribution method for the routing node And node ID, and obtain the subnet ID and node ID that the routing node is each acquisition node configuration for belonging to same level-one sub-network;
The routing node should according to the electric meter address of the routing node, subnet ID, node ID and the global route prefix generation The IP address of routing node, and according to the electric meter address of each acquisition node, subnet ID, node ID and the global route prefix life Into the IP address of each acquisition node.
9. a kind of data transmission system based on IPv6, gathers network, it is characterised in that the data are passed applied to electricity consumption data Defeated system includes:
Acquisition node, for gathering electricity consumption data;
Routing node, for gathering electricity consumption data and receiving the electricity consumption number for belonging to each acquisition node of same level-one sub-network and sending According to the electricity consumption data of collection and each electricity consumption data received are carried out fusion treatment to obtain corresponding data packet, and this is counted The routing node that upper level sub-network is passed sequentially through according to bag is forwarded to;
Gateway node, for receiving the data packet of routing node transmission, and is forwarded to server by the data packet of reception;
Wherein, the electricity consumption data collection network includes multilevel subnetwork network, and a route section is corresponding with any level-one sub-network The sub-network in small distance of point and multiple acquisition nodes, adjacent two-stage sub-network routing nodes and the gateway node is upper Primary subnet network.
10. the data transmission system according to claim 9 based on IPv6, it is characterised in that the gateway node, is also used Corresponding each routing node is forwarded in each copy reading instruction for sending the server;
The routing node, is additionally operable to corresponding each copy reading instruction carrying out fusion treatment to obtain corresponding instruction bag, and will Corresponding instruction packet broadcast to belonging to each acquisition node of same level-one sub-network with the routing node so that each acquisition node according to The instruction bag received sends the electricity consumption data of collection to the routing node belonged in same level-one sub-network.
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 true CN107948202A (en) 2018-04-20
CN107948202B 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)

Cited By (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
CN113068141A (en) * 2021-03-22 2021-07-02 杭州芯创智联科技有限公司 Fusion data transmission method

Citations (10)

* 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
CN103200241A (en) * 2013-03-20 2013-07-10 杭州乾程弘泰电力科技有限公司 Remote wireless meter reading control device
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
CN105262689A (en) * 2015-09-14 2016-01-20 中国电力科学研究院 Intelligent acquisition router and route acquisition method
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

Patent Citations (10)

* 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
CN103200241A (en) * 2013-03-20 2013-07-10 杭州乾程弘泰电力科技有限公司 Remote wireless meter reading control device
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
CN105262689A (en) * 2015-09-14 2016-01-20 中国电力科学研究院 Intelligent acquisition router and route acquisition method
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

Cited By (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
CN113068141A (en) * 2021-03-22 2021-07-02 杭州芯创智联科技有限公司 Fusion data transmission method

Also Published As

Publication number Publication date
CN107948202B (en) 2020-10-02

Similar Documents

Publication Publication Date Title
CN106412142B (en) Resource equipment address obtaining method and device
CN106844000A (en) Using the method and apparatus of browser access linux container cluster under a kind of multi-user environment
CN113014489B (en) Data forwarding method and device, server and storage medium
CN106992917A (en) Message forwarding method and device
CN106953905A (en) Catalogue sharing method and device between domain
CN103841037B (en) The method and apparatus of multicast message forwarding
CN107277190B (en) A kind of method of SDN equipment automatic wire charging, SDN equipment and controller
CN107819732A (en) The method and apparatus of user terminal access local network
CN103944867A (en) Dynamic host configuration protocol (DHCP) message processing method, device and system
CN102014377A (en) Distributed wireless sensor network-based IPv6 address configuration implementing method
CN109088823B (en) Method and device for realizing terminal interconnection
CN106936943A (en) The distribution method and system of virtual machine address
CN104601467A (en) Method and device for sending messages
CN102739502B (en) A kind of realize network identity conversion method, Apparatus and system
CN106385344A (en) Message monitoring method and device
CN103561122B (en) IPv6 address collocation method, IPv6 client and server
Grajzer et al. ND++–an extended IPv6 Neighbor Discovery protocol for enhanced stateless address autoconfiguration in MANETs
CN103298148B (en) Method for connecting mobile terminal to multiple PDNs (public data networks) through fixed network and related device
CN107948202A (en) data transmission method and data transmission system based on IPv6
CN103813372B (en) A kind of wireless sensor network management method based on IPv6
CN104104749B (en) The distribution method and device of a kind of tunnel IP address
CN107623752A (en) Network management and device based on link layer
CN104703211B (en) A kind of virtualization cut-in method and equipment
CN105207909A (en) Method for transmitting information and network apparatus
CN107896188A (en) Data forwarding method and device

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