Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind
State date storage method, system, computer storage medium and the equipment of the ODN management system of problem.
The first aspect of the present invention provides a kind of date storage method of ODN management system, comprising:
The description information of physical NE each in ODN network is issued by unit of block data in the block disposed in advance
Chain network, the user node in the block chain network be according to the client of administrative region deployment where physical NE, it is described
The head data of block data include the points relationship between the essential information of physical NE and block, the data volume of the block data
Port data and operation note including network element;
When the block data in block chain network updates, the intelligent contract in block chain network, the intelligence are executed
Energy contract is used to generate target block according to updated block data;
The each user node being published to the target block of generation by current block chain network in block chain network.
Optionally, the method also includes:
According to the access request received, casual user's node is added in the block chain network;
It is requested according to the downloading of casual user's node, the Correlation block data to operating physical network element is transferred to described face
When user node, carry identification information to operating physical network element in the downloading request;
The Correlation block data to operating physical network element include operating physical network element block data and with the block
Data have the block data of points relationship.
Optionally, the method also includes:
When user node and/or casual user's node carry out business operation to the physical NE in ODN network, generation pair
The business operation information answered;
The intelligent contract in block chain network is executed, the intelligence contract is also used to according to the business operation information and institute
The number signature that administrative region where stating physical NE corresponds to user node generates new operation note, and according to generation
Operation note updates the block data of the physical NE.
Optionally, it is described the target block of generation is published to by current block chain network it is each in block chain network
User node includes:
According to the points relationship between block, the target block of generation is published to and the mesh by current block chain network
Mark the corresponding user node of block data that block has points relationship.
Optionally, the points relationship between the block is consistent with the topological relation of each physical NE in ODN network.
The second aspect of the present invention provides a kind of data-storage system of ODN management system, comprising:
Release module, for issuing the description information of physical NE each in ODN network by unit of block data
The block chain network disposed in advance, the user node in the block chain network are to dispose according to administrative region where physical NE
Client, the head data of the block data include the points relationship between the essential information of physical NE and block, the area
The data volume of block number evidence includes port data and the operation note of network element;
Processing module, for executing the intelligence in block chain network when the block data in block chain network updates
Energy contract, the intelligence contract are used to generate target block according to updated block data;
The release module is also used to that the target block of generation is published to block chain network by current block chain network
In each user node.
Optionally, the system also includes:
Node configuration module, for adding casual user in the block chain network according to the access request received
Node;And requested according to the downloading of casual user's node, the Correlation block data to operating physical network element are transferred to described face
When user node, carry identification information to operating physical network element in the downloading request;
The Correlation block data to operating physical network element include operating physical network element block data and with the block
Data have the block data of points relationship.
Optionally, the processing module is also used to work as user node and/or casual user's node to the object in ODN network
When managing network element progress business operation, corresponding business operation information is generated;Execute the intelligent contract in block chain network, the intelligence
Energy contract is also used to correspond to the user of user node according to administrative region where the business operation information and the physical NE
Digital signature generates new operation note, and the block data of the physical NE is updated according to the operation note of generation.
In addition, it is stored thereon with computer program the present invention also provides a kind of computer readable storage medium, the program
The step of as above any the method is realized when being executed by processor.
In addition, the present invention also provides a kind of equipment, including memory, processor and storage on a memory and can located
The step of computer program run on reason device, the processor realizes as above any the method when executing described program.
It the date storage method of ODN management system provided in an embodiment of the present invention, system, computer storage medium and sets
It is standby, using the data distribution block chain memory technology of low cost, solve the data storage of mass port data in optical network system
Application demand realizes High Availabitity and load balancing, moreover, for the downloading scene of off-line data, also due to for specified area
The downloading of block so that download simpler, more efficient effect offline.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art
Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in fields of the present invention.Should also
Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art
The consistent meaning of meaning, and unless otherwise will not be explained in an idealized or overly formal meaning by specific definitions.
Block chain is a kind of a kind of chain type number for being sequentially combined into data block in such a way that sequence is connected according to certain
According to structure, and the distributed account book that can not be distorted He can not forge guaranteed in a manner of cryptography.Block chain technology is to utilize block
Linked data structure knows together algorithm with storing data, using distributed node and generates and more new data, utilize password to verify
Mode guarantees the safety of data transmission and access, programs and grasp using the intelligent contract being made of automatized script code
Make one kind of data completely new distributed basis framework and calculation.
Aiming at the problems existing in the prior art, block chain technology is applied to ODN the embodiment of the invention provides a kind of
The date storage method of management system, this method is highly suitable for ODF in ODN system, light is handed over, the cascade data of fiber-dividing box
Storage and application realize High Availabitity and load balancing using the distributed structure/architecture of low cost;For the downloading field of off-line data
Scape, also due to the downloading for designated blocks so that download simpler, more efficient effect offline.
Fig. 1 is the flow chart of the date storage method of the ODN management system of one embodiment of the invention.Referring to Fig.1, this hair
The date storage method of the ODN management system of bright embodiment specifically includes the following steps:
S11, the description information of physical NE each in ODN network is issued using block data as unit and is being disposed in advance
Block chain network.
In the present embodiment, system corresponds to the description information of the physical NE of ODN network using block as unit.Its
In, the physical NE of ODN includes ODF frame, optical cross box, fiber-dividing box etc..User node in the block chain network is according to object
The client of administrative region deployment where managing network element.
Wherein, the head data of the block data include the points relationship between the essential information of physical NE and block, net
The essential information, including element name, number, longitude and latitude etc. of member;Each Physical Network in points relationship and ODN network between block
The topological relation of member is consistent, practical 1 many-many relationship of network element physical topology, therefore a block may point to multiple higher level's blocks.Institute
The data volume for stating block data includes port data and the operation note of network element, the port data of corresponding network element, including title, institute
In panel, serial number, state, optical path information.
S12, when the block data in block chain network updates, execute block chain network in intelligent contract, institute
Intelligent contract is stated for generating target block according to updated block data.
In the present embodiment, each Node distribution formula in block chain network is disposed, can be according to region administration in practical application
Unit deploying client is such as that unit builds distributed node according to area, county, and basic server can be used in node.Work as block
When data change, block data is updated according to the intelligent contract executed in block chain network and generates target block.
S13, the target block of generation is published to by the section of each user in block chain network by current block chain network
Point.
Specifically, the publication of target block can will be generated according to the points relationship between block by current block chain network
Target block be published to there is the corresponding user node of the block data of points relationship with the target block.
The date storage method of ODN management system provided in an embodiment of the present invention utilizes the data distribution block of low cost
Chain memory technology solves the data-storage applications demand of mass port data in optical network system, realizes High Availabitity and load
Equilibrium, moreover, for the downloading scene of off-line data, also due to downloading for designated blocks so that offline downloading it is simpler,
More efficient effect.
In embodiments of the present invention, mobile terminal is also transient node, when needing to operate network element on the spot using mobile terminal
When corresponding block, according to the access request received, casual user's node is added in the block chain network;Casual user
Node and formal node are identity relations, and the downloading wrapped offline is also the process that client has selection to obtain block, non-traditional ODN
The customer end/server mode of information management system.Specifically, can be requested according to the downloading of casual user's node, it will be wait operate
The Correlation block data of physical NE are transferred to casual user's node, carry in the downloading request to operating physical network element
Identification information.Wherein, the Correlation block data to operating physical network element include operating physical network element block data and
There is the block data of points relationship with the block data.
In the present embodiment, when mobile terminal client terminal needs to download off-line data, it is only necessary to which downloading needs to operate on the spot
The corresponding block of network element corresponds to the complete of network element by being all downloaded the block being related to according to the points relationship of block in this way
Whole topological structure can all download to mobile terminal client terminal, be also to be adjusted to block information when operator operates on the spot
Process, after mobile terminal accesses wireless network, the nodal information of variation can be broadcast to node nearby.
Further, when user node and/or casual user's node carry out business operation to the physical NE in ODN network
When, generate corresponding business operation information;And the intelligent contract in block chain network is executed, the intelligence contract is also used to basis
The number signature that administrative region where the business operation information and the physical NE corresponds to user node generates new
Operation note, and update according to the operation note of generation the block data of the physical NE.
In practical applications, ODN system business operation information records within a block, when carrying out business operation, such as newly-increased,
Change, dismantling operation, mobile terminal client terminal can be online or be adjusted offline to block, and each mobile client operator has a pair
Public key and code key, operator can be written in block to the operation information of block while include the digital signature of operator.
Fig. 2 gives the block chain network system architecture of the date storage method of the ODN management system of the embodiment of the present invention
Figure.Each district unit can establish respective block chain node, and node can directly carry out the block data between block and synchronize, this
Sample realizes the redundancy backup of data.As transient node, all mid-side nodes that network speed can be selected most fast are downloaded mobile terminal
Block, in business operation, the specified block of mobile terminal downloading simultaneously carries out business operation, and block can be realized in local operation
Offline functionality, since to limited blocks operation, only there is efficient processing speed, when block data changes,
Mobile terminal can variation by from block data to periphery node broadcasts block.Mobile terminal and the formal node of district unit are flat
Row node, only mobile terminal node storage section block.
The specific data knot of block data in the date storage method of ODN management system is provided the embodiment of the present invention below
Structure is specifically described.
1 block data structures of table
Data item |
Description |
Length |
Leader is known |
0X7E7E7E7E |
4 bytes |
Block size |
The byte length terminated to block |
4 bytes |
Block head |
Detail is shown in Table 2 |
292 bytes |
Port number |
|
4 bytes |
Operation note quantity |
|
4 bytes |
The one before number of blocks |
|
2 bytes |
Port detail |
Detail is shown in Table 3 |
|
Operation note |
Detail is shown in Table 4 |
|
Preceding block record |
|
|
Check bit |
CRC32 |
4 bytes |
Table 1 gives the data structure of block, and each block corresponds to a network element of ODN network.Block data is by leader
Knowledge, block size, block head, port number, operation note quantity, the one before number of blocks, port detail, operation note, proparea
Block record, check bit composition.Leader knowledge is fixed as 0X7E7E7E7E;The unsigned long that block size is made of 4 bytes;
Block head is the data structure of 292 bytes;What port number recorded is the port number that network element has, and is 4 bytes compositions
Unsigned long;Operation note quantity is the log stream water number that operator operates network element port, is 4 byte groups
At unsigned long;The one before number of blocks records the record number of last network element in network element topology, is 2 byte compositions
Unsigned long;Port detail is port detailed data structure;Operation note is record data structure;Preceding block record
The network element number of block before recording;Check bit is 4 bytes using CRC32 records.
2 block head data structure of table
Data item |
Description |
Length |
Version |
Each block version number that changes can increase 1 |
4 bytes |
Network element number |
The unique number of network element, is encoded by UTF-8 |
128 bytes |
Element name |
The unique number of network element, is encoded by UTF-8 |
128 bytes |
Network element longitude |
|
8 bytes |
Network element latitude |
|
8 bytes |
It creates NE the time |
The number of seconds of distance 1900-1-1 00:00:00 (GMT) |
8 bytes |
Location and county |
National region coding |
8 bytes |
Table 2 gives the data structure of block head, only one block head of each block.Block head is compiled by version, network element
Number, element name, network element longitude, network element latitude, the time that creates NE, location and county composition.Wherein version is 4 bytes
From the unsigned int of increasing type, any variation that block occurs can all lead to the increase of version number, and system is also to pass through version number
Clash handle is realized in control;Network element number is encoded by UTF-8, is 128 bytes;Element name is encoded by UTF-8, is 128
Byte;Network element longitude is the floating type of 8 bytes;Network element latitude is the floating type of 8 bytes;Network element creation time is distance
The number of seconds of 1900-1-100:00:00 (GMT) is the unsigned int of 8 bytes.
3 port detailed data structural body of table
Data item |
Description |
Length |
Port name |
UTF-8 coding |
64 bytes |
Port serial number |
The number of port in network elements |
2 bytes |
Port status |
0: indicating empty;1: indicating to occupy;2: indicating damage |
1 byte |
Channel number |
Channel number is encoded by UTF-8 |
128 bytes |
Route upper network element number |
Channel number is encoded by UTF-8 |
128 bytes |
Single port serial number in routing |
The number of port in network elements |
2 bytes |
Circuit name |
Circuit name is encoded by UTF-8 |
128 bytes |
Table 3 gives port detailed data structural body, has multiple records in a block.By port name, port sequence
Number, port status, channel number, routing upper network element number, Single port serial number, circuit name form in routing.Its middle port
The character string of entitled UTF-8 coding, is 64 bytes;The unsigned int of 2 bytes of port serial number;Port status is by 1
Byte representation (0: indicating empty;1: indicating to occupy;2: indicating damage);Channel number indicates the circuit property that port has, and is
UTF-8 coded string, 128 bit byte length;Where the upper a port for routing upper network element number expression port connection
Network element number, can retrieve corresponding block by the number;Single port serial number indicates that a upper network element is corresponding in routing
Port;Circuit name is that port circuit describes attribute, is UTF-8 coded string, 128 bit byte length.
4 record data structural body of table
Table 4 provides record data structural body, the operation note changed record detail in each port.One area
Block has multiple operation notes.Operation note structural body is by operator's public key, operating time, port serial number, operation front port shape
State, operation rear port state, channel number, operator sign and form.When operator has a public key and private key pair, every behaviour
It notes down and needs operator that the public key of oneself is written, using secp256k1 rivest, shamir, adelman.In addition to needing to record industry
Be engaged in data, also need the signature of write operation person, the original text of signature by character string, original text by network element number+port serial number character string+
Operating time character string (format yyyyMMddHHmmss) composition, obtains original text after carrying out SHA256 calculating.
Compared with the central database mode of traditional ODN management system, data-storage system provided by the invention have as
Lower advantages and beneficial effects:
1, using the server distribution node of low cost, it is the deployment that unit carries out node according to district, is managed with practical ODN
It manages system Construction principle to coincide, the primary construction of project and final construction cost are all effectively reduced;
2, block stores the complete information of ODN network element, and the topological relation of the pointer of block and practical network element always, and props up
One-to-many direction is held, it is this to be held on it using very easy with the consistent block chain data structure of actual logic
It carries;
3, when carrying out the business operation of ODN, since the operator of ODN only operates limited network element, mobile terminal is only
Limited block (corresponding network element and context block) need to be downloaded, since data volume is small, local operation is very quick;
4, ODN management system generates a large amount of log information of volume and is also distributed about in each corresponding block, effectively reduces negative
Lotus, due to using digital signature and distributed deployment, data are difficult to tamper with, and system information is also safer;
5, ODN management system uses block chain technology, realizes central database and high cost investment is needed just to be able to achieve
The High Availabitity of big data and load balancing application.
For embodiment of the method, for simple description, therefore, it is stated as a series of action combinations, but this field
Technical staff should be aware of, and embodiment of that present invention are not limited by the describe sequence of actions, because implementing according to the present invention
Example, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know that, specification
Described in embodiment belong to preferred embodiment, the actions involved are not necessarily necessary for embodiments of the present invention.
Fig. 3 diagrammatically illustrates the structural representation of the data-storage system of the ODN management system of one embodiment of the invention
Figure.Referring to Fig. 3, the data-storage system of the ODN management system of the embodiment of the present invention specifically includes release module 301 and processing mould
Block 302, in which:
Release module 301, for issuing the description information of physical NE each in ODN network by unit of block data
User node in the block chain network disposed in advance, the block chain network is according to administrative region portion where physical NE
The client of administration, the head data of the block data include the points relationship between the essential information of physical NE and block, described
The data volume of block data includes port data and the operation note of network element.In points relationship and ODN network between the block
The topological relation of each physical NE is consistent.
Processing module 302, for executing in block chain network when the block data in block chain network updates
Intelligent contract, the intelligence contract are used to generate target block according to updated block data;
The release module 301 is also used to that the target block of generation is published to block chain by current block chain network
Each user node in network.
Further, the release module 301, specifically for passing through current block chain according to the points relationship between block
The target block of generation is published to by network has the corresponding user node of the block data of points relationship with the target block.
In embodiments of the present invention, the system also includes being the node configuration module shown in attached drawing, the node is matched
Module is set, for adding casual user's node in the block chain network according to the access request received;And according to facing
When user node downloading request, the Correlation block data to operating physical network element are transferred to casual user's node, institute
State the identification information carried in downloading request to operating physical network element.Wherein, the correlation zone block number to operating physical network element
There is the block data of points relationship according to the block data for including operating physical network element and with the block data.
In embodiments of the present invention, the processing module 302 is also used to when user node and/or casual user's node pair
When physical NE in ODN network carries out business operation, corresponding business operation information is generated;Execute the intelligence in block chain network
Energy contract, the intelligence contract are also used to according to administrative region where the business operation information and the physical NE to application
The number signature of family node generates new operation note, and the area of the physical NE is updated according to the operation note of generation
Block number evidence.
For system embodiments, since it is basically similar to the method embodiment, related so being described relatively simple
Place illustrates referring to the part of embodiment of the method.
System embodiment described above is only schematical, wherein described, unit can as illustrated by the separation member
It is physically separated with being or may not be, component shown as a unit may or may not be physics list
Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs
In some or all of the modules achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness
Labour in the case where, it can understand and implement.
The date storage method of ODN management system provided in an embodiment of the present invention, system utilize the data distribution of low cost
Block chain memory technology, solve optical network system in mass port data data-storage applications demand, realize High Availabitity and
Load balancing, moreover, for the downloading scene of off-line data, also due to the downloading for designated blocks so that download simpler offline
It is single, more efficient effect.
In addition, it is stored thereon with computer program the embodiment of the invention also provides a kind of computer readable storage medium,
The step of program realizes method as described above when being executed by processor.
In the present embodiment, if module/unit that the data storage device of the ODN management system integrates is with software function
The form of unit is realized and when sold or used as an independent product, can store in a computer-readable storage medium
In.Based on this understanding, the present invention realizes all or part of the process in above-described embodiment method, can also pass through computer
Program is completed to instruct relevant hardware, and the computer program can be stored in a computer readable storage medium, should
Computer program is when being executed by processor, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the computer program
Including computer program code, the computer program code can be source code form, object identification code form, executable file
Or certain intermediate forms etc..The computer-readable medium may include: can carry the computer program code any
Entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-
Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and
Software distribution medium etc..It should be noted that the content that the computer-readable medium includes can be according in jurisdiction
Legislation and the requirement of patent practice carry out increase and decrease appropriate, such as in certain jurisdictions, according to legislation and patent practice, meter
Calculation machine readable medium does not include electric carrier signal and telecommunication signal.
Fig. 4 is the schematic diagram of equipment provided in an embodiment of the present invention.Equipment provided in an embodiment of the present invention, including memory
401, processor 402 and the computer program that can be run on memory 401 and on the processor 402, the processor are stored in
The step in the date storage method embodiment of above-mentioned each ODN management system, example are realized when the 402 execution computer program
It S11 as shown in Figure 1, by the description information of physical NE each in ODN network using block data is that unit is issued in preparatory portion
The block chain network of administration.S12, the intelligence when the block data in block chain network updates, in execution block chain network
Contract, the intelligence contract are used to generate target block according to updated block data.S13, pass through current block chain network
The each user node target block of generation being published in block chain network.Alternatively, the processor 402 executes the meter
The function of each module/unit in the data storage device embodiment of above-mentioned each ODN management system is realized when calculation machine program, such as is schemed
Release module 301 and processing module 302 shown in 3.
Illustratively, the computer program can be divided into one or more module/units, one or more
A module/unit is stored in the memory, and is executed by the processor, to complete the present invention.It is one or more
A module/unit can be the series of computation machine program instruction section that can complete specific function, and the instruction segment is for describing institute
State implementation procedure of the computer program in the data storage device of the ODN management system.For example, the computer program can
To be divided into release module 301 and processing module 302.
The equipment can be desktop PC, notebook, palm PC and cloud server etc. and calculate equipment.It is described
Equipment may include, but be not limited only to, processor, memory.It will be understood by those skilled in the art that the schematic diagram 4 is only
The example of the equipment does not constitute the restriction to equipment, may include components more more or fewer than diagram, or combine certain
A little components or different components, such as the equipment can also include input-output equipment, network access equipment, bus etc..
The processor can be central processing unit (Central Processing Unit, CPU), can also be it
His general processor, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng the processor is the control centre of the equipment, utilizes the various pieces of various interfaces and connection whole equipment.
The memory can be used for storing the computer program and/or module, and the processor is by operation or executes
Computer program in the memory and/or module are stored, and calls the data being stored in memory, described in realization
The various functions of equipment.The memory can mainly include storing program area and storage data area, wherein storing program area can deposit
Application program (such as sound-playing function, image player function etc.) needed for storing up operating system, at least one function etc.;Storage
Data field, which can be stored, uses created data (such as audio data, phone directory etc.) etc. according to mobile phone.In addition, memory can
It can also include nonvolatile memory, such as hard disk, memory, plug-in type hard disk, intelligence to include high-speed random access memory
Energy storage card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash
Card), at least one disk memory, flush memory device or other volatile solid-state parts.
In embodiments of the present invention, it should be understood that disclosed device and method, it can be real by another way
It is existing.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit or unit, only
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of equipment or unit
It connects, can be electrical or other forms.
It will be appreciated by those of skill in the art that although some embodiments in this include included in other embodiments
Certain features rather than other feature, but the combination of the feature of different embodiments means to be within the scope of the present invention simultaneously
And form different embodiments.For example, in the following claims, the one of any of embodiment claimed all may be used
Come in a manner of in any combination using.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used
To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;
And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and
Range.