CN103984550A - Serial number elongation algorithm of distributed modular system - Google Patents

Serial number elongation algorithm of distributed modular system Download PDF

Info

Publication number
CN103984550A
CN103984550A CN201410204382.XA CN201410204382A CN103984550A CN 103984550 A CN103984550 A CN 103984550A CN 201410204382 A CN201410204382 A CN 201410204382A CN 103984550 A CN103984550 A CN 103984550A
Authority
CN
China
Prior art keywords
module
sequence number
information
algorithm
serial number
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
CN201410204382.XA
Other languages
Chinese (zh)
Other versions
CN103984550B (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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201410204382.XA priority Critical patent/CN103984550B/en
Publication of CN103984550A publication Critical patent/CN103984550A/en
Application granted granted Critical
Publication of CN103984550B publication Critical patent/CN103984550B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Storage Device Security (AREA)

Abstract

The invention provides a serial number elongation algorithm of a distributed modular system. The implementation procedure comprises the steps that the information of each module is collected, and an independent module serial number is created for each module; the internal analysis of each module is realized according to a bit analysis method; a new module is automatically generated to form an elongated serial number plaintext, and a product form of a serial number is generated by an encryption algorithm; when the system is started, the information of the serial number is read from a database and is cracked, the information is placed in a memory of a public module to realize the effective and orderly reading of the information of the module and use the information of the module for logic operation. Compared with the prior art, the serial number elongation algorithm of the distributed modular system has the advantages that the content of each module is subjected to subsection and elongation, and is stored in a serial number evident code, the cracking and elongation algorithms are simple and efficient, the later-period maintenance and the usability are excellent, the practicability is strong, and the popularization is easy.

Description

A kind of elongated sequence number algorithm of distributed modular system
Technical field
The present invention relates to cloud computing technology field, specifically the elongated sequence number algorithm of higher, the distributed modular system that maintains easily of a kind of efficiency.
Background technology
Distributed system (distributed system) is the software systems that are based upon on network.Exactly because the characteristic of software, so distributed system has cohesion and the transparency of height.Therefore, the difference between network and distributed system is more high layer software (particularly operating system), instead of hardware.Cohesion refers to each database distribution node high degree of autonomy, has local data base management system (DBMS).The transparency refers to that each database distribution node is transparent concerning user's application, does not see local or long-range.In distributed data base system, the imperceptible data of user distribute, and user not must know whether relation is cut apart, has or not copy, data to be stored in which website and affairs are carried out etc. on which website.
Computing technique develops towards modularization and service-oriented future development, and the development of the modularization standard taking REST as representative and perfect, makes computing technique more trend towards distributed and parallel computation.In such system, in order to protect the business rights and interests of development company, the elongated algorithm of sequence number, surely escorting for this type of software.
Conventionally the information that is comprising modules in the sequence number structure of distributed system, they divide segment record.In systems development process, if because exploitation needs or demand change, the number of module is increased, if what now adopt is the sequence number generating mode of fixed length location, surely can increase complexity and the difficulty of system, bring very large inside hidden danger to the maintenance in later stage simultaneously, even occur, the sequence number in early stage, after later stage upgrade-system, the risk that can not re-use.
Based on this, a kind of elongated sequence number algorithm of distributed modular system is now provided, by elongated the content segmentation of each module leaving in sequence number plain code, crack elongated algorithm simply efficient, improve superiority and the ease for use of later maintenance.
Summary of the invention
Technical assignment of the present invention is to solve the deficiencies in the prior art, and a kind of elongated sequence number algorithm that has the distributed modular system that complexity is lower is provided.
Technical scheme of the present invention realizes in the following manner, the elongated sequence number algorithm of this kind of distributed modular system, and its implementation procedure is:
One, collect the information of modules, and for each module rise one independently module number;
Two, the parsing of each inside modules is carried out according to position analytical method;
Three, automatically generate new module, form elongated sequence number expressly, by the product form of cryptographic algorithm formation sequence number;
Four, when system starts, from database, read sequence number information, crack sequence number information, and information is positioned in the internal memory of public module, realize the effective of module information is read and for logical operation.
Further, the module in described step 1 is numbered A~Z; The structure of the sequence number in step 3 is: beginning and end is all 3 random digits, and centre is the numbering of 25 modules of A-Z.
In described step 3, system automatically generates the process of new module and is:
In the time that module increases, system generates new module automatically, and relevant information according to the structure of new module sequence number, after adding original module data to.
The detailed process of described step 3 is:
A~Z is mapped in map data structure, corresponding with module title;
After the deciphering of reversible encryption pattern, remove the random number at character string two ends;
Press index function index size, since 0, when charindex function is greater than 65 and be less than or equal to 90, module is started to sequence number and is arranged to the currency of index; If index is not 0, intercepting this segment data that current index starts sequence number to module is the data of a upper module.
The detailed process of described step 4 is:
After system starts, public module obtains the information in database, after cracking, joins in the data structure of valueMap and stores;
Multiple interfaces that obtain content in data of dishing out, call for service layer;
By the mapping table of module name and A~zee, realize the effective of module information is read and for logical operation.
The present invention is different from traditional sequence number algorithm, this method is that the elongated analytical algorithm of sequence number is basis, the information of distributed modular is stored as prerequisite, the mode of resolving by staging treating sub-module, flexible and efficient module information being stored in sequence-number field or resolve extracts, module information after resolving is placed in the internal memory of shared module simultaneously, with the access of aspect modules, raises the efficiency.
The beneficial effect that the present invention compared with prior art produced is:
The elongated sequence number algorithm of a kind of distributed modular system of the present invention can reach when in the situation that module increases, do not change the program of formation sequence number, only need change into ginseng, the just energy effect of sub-module control relevant information flexibly, reduce modular complexity and the degree of coupling, optimization system framework is saved development of manpower cost and later maintenance cost simultaneously; Applied widely, except being applied to the sequence number algorithm field developing software of cloud computing distributed modular, also can be applicable to in non-cloud computing in other higher software application of modular requirement; This method, by elongated the content segmentation of each module leaving in sequence number plain code, cracks elongated algorithm simply efficient, and later maintenance and ease for use are superior, practical, is easy to promote.
Embodiment
Below in conjunction with example, the elongated sequence number algorithm of a kind of distributed modular system of the present invention is described in detail below.
In order to reach when in the situation that module increases, do not change the program of formation sequence number, only need change into ginseng, the just energy effect of sub-module control relevant information flexibly, reduce modular complexity and the degree of coupling, optimization system framework, the invention provides a kind of elongated sequence number algorithm of distributed modular system, following 2 points of design basic thought of this algorithm.
One, calculate by the algorithm that module arbitrarily increases and module contents arbitrarily increases, make the distributed system can be under the condition of maximum independence, reduce the coupling of module on sequence number, increase system ease for use.
Two, sequence number decrypting process only carries out once in the time that system starts, and operation result is positioned in the internal memory of public module, improves the efficiency of acquisition of information in sequence number.
Based on above-mentioned 2 thoughts, the specific implementation process of this invention is:
One, collect the information of modules, and for each module rise one independently module number.
Two, the parsing of each inside modules is carried out according to position analytical method.
Three, automatically generate new module, form elongated sequence number expressly, by the product form of cryptographic algorithm formation sequence number.
Four, when system starts, from database, read sequence number information, crack sequence number information, and information is positioned in the internal memory of public module, realize the effective of module information is read and for logical operation.
After sequence number deciphering, information is built in internal memory.In modular system, in sequence number, store a large amount of configurations and configuration information.As virtual machine number, the size of internal memory, the quantity of hard disk, number of physical machine etc.Modules entry difference, arranges difference.These information must, after system service starts, be built in the internal memory of public module, make modules can access and get relevant information.
Module in described step 1 is numbered A~Z; The structure of the sequence number in step 3 is: beginning and end is all 3 random digits, centre is the numbering of 25 modules of A-Z, and the structure of this sequence number is: random (3)+A+ ... + B+ ... + (>Z) random (3).
In practical operation, its structure is as shown in the table:
random(3) A B (C-Z) Z random(3)
Between any two modules, as added the information of any length between A module and B module, the parsing of inside modules is resolved according to position analytical method.
In described step 3, system automatically generates the process of new module and is:
In the time that module increases, system generates new module automatically, and relevant information according to the structure of new module sequence number, after adding original module data to.Illustrate: in the time that module increases, system generates C module automatically, and relevant information according to the structure of C module serial number, after adding B module data to, so, formed elongated sequence number expressly, by the product form of cryptographic algorithm formation sequence number.
The detailed process of described step 3 is:
A~Z is mapped in map data structure, corresponding with module title, as shown in the table.
After the deciphering of reversible encryption pattern, remove the random number at character string two ends;
Press index function index size, since 0, when charindex function is greater than 65 and be less than or equal to 90, module is started to sequence number moduleStartIndex and is arranged to the currency of index; If index is not 0, intercepting this segment data that current index starts sequence number moduleStartIndex to module is the data of a upper module.
The detailed process of described step 4 is:
After system starts, public module obtains the information in database, after cracking, joins in the data structure of valueMap and stores.
Multiple interfaces that obtain content in data of dishing out, call for the service of service layer layer.
By the mapping table of module name and A~zee, realize the effective of module information is read and for logical operation.
The foregoing is only embodiments of the invention, within the spirit and principles in the present invention all, any amendment of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (5)

1. an elongated sequence number algorithm for distributed modular system, is characterized in that its implementation procedure is:
One, collect the information of modules, and for each module rise one independently module number;
Two, the parsing of each inside modules is carried out according to position analytical method;
Three, automatically generate new module, form elongated sequence number expressly, by the product form of cryptographic algorithm formation sequence number;
Four, when system starts, from database, read sequence number information, crack sequence number information, and information is positioned in the internal memory of public module, realize the effective of module information is read and for logical operation.
2. the elongated sequence number algorithm of a kind of distributed modular system according to claim 1, is characterized in that: the module in described step 1 is numbered A~Z; The structure of the sequence number in step 3 is: beginning and end is all 3 random digits, and centre is the numbering of 25 modules of A-Z.
3. the elongated sequence number algorithm of a kind of distributed modular system according to claim 2, is characterized in that: in described step 3, system automatically generates the process of new module and is:
In the time that module increases, system generates new module automatically, and relevant information according to the structure of new module sequence number, after adding original module data to.
4. according to the elongated sequence number algorithm of a kind of distributed modular system described in claim 2 or 3, it is characterized in that: the detailed process of described step 3 is:
A~Z is mapped in map data structure, corresponding with module title;
After the deciphering of reversible encryption pattern, remove the random number at character string two ends;
Press index function index size, since 0, when charindex function is greater than 65 and be less than or equal to 90, module is started to sequence number and is arranged to the currency of index; If index is not 0, intercepting this segment data that current index starts sequence number to module is the data of a upper module.
5. the elongated sequence number algorithm of a kind of distributed modular system according to claim 4, is characterized in that: the detailed process of described step 4 is:
After system starts, public module obtains the information in database, after cracking, joins in the data structure of valueMap and stores;
Multiple interfaces that obtain content in data of dishing out, call for service layer;
By the mapping table of module name and A~zee, realize the effective of module information is read and for logical operation.
CN201410204382.XA 2014-05-15 2014-05-15 A kind of method of elongated sequence number in distributed modular system Active CN103984550B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410204382.XA CN103984550B (en) 2014-05-15 2014-05-15 A kind of method of elongated sequence number in distributed modular system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410204382.XA CN103984550B (en) 2014-05-15 2014-05-15 A kind of method of elongated sequence number in distributed modular system

Publications (2)

Publication Number Publication Date
CN103984550A true CN103984550A (en) 2014-08-13
CN103984550B CN103984550B (en) 2018-03-27

Family

ID=51276544

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410204382.XA Active CN103984550B (en) 2014-05-15 2014-05-15 A kind of method of elongated sequence number in distributed modular system

Country Status (1)

Country Link
CN (1) CN103984550B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468098A (en) * 2014-11-21 2015-03-25 浪潮(北京)电子信息产业有限公司 Method and device for generating serial number

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005088481A1 (en) * 2004-03-08 2005-09-22 Transreplicator, Inc. System for database relication of proprietary data transformation
CN101382953A (en) * 2008-09-19 2009-03-11 中兴通讯股份有限公司 Interface system for accessing file system in user space and file reading and writing method
CN101976241A (en) * 2010-09-26 2011-02-16 用友软件股份有限公司 Method and system for generating identification code
CN102542019A (en) * 2011-12-19 2012-07-04 北京地拓科技发展有限公司 Identification code storage method and identification code storage system as well as identification code indexing method and identification code indexing system
CN102609462A (en) * 2012-01-14 2012-07-25 杭州安恒信息技术有限公司 Method for compressed storage of massive SQL (structured query language) by means of extracting SQL models

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005088481A1 (en) * 2004-03-08 2005-09-22 Transreplicator, Inc. System for database relication of proprietary data transformation
CN101382953A (en) * 2008-09-19 2009-03-11 中兴通讯股份有限公司 Interface system for accessing file system in user space and file reading and writing method
CN101976241A (en) * 2010-09-26 2011-02-16 用友软件股份有限公司 Method and system for generating identification code
CN102542019A (en) * 2011-12-19 2012-07-04 北京地拓科技发展有限公司 Identification code storage method and identification code storage system as well as identification code indexing method and identification code indexing system
CN102609462A (en) * 2012-01-14 2012-07-25 杭州安恒信息技术有限公司 Method for compressed storage of massive SQL (structured query language) by means of extracting SQL models

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468098A (en) * 2014-11-21 2015-03-25 浪潮(北京)电子信息产业有限公司 Method and device for generating serial number

Also Published As

Publication number Publication date
CN103984550B (en) 2018-03-27

Similar Documents

Publication Publication Date Title
US10778441B2 (en) Redactable document signatures
CN104680076B (en) For making the system of protected health and fitness information anonymization and aggregation
CN106127075B (en) Encryption method can search for based on secret protection under a kind of cloud storage environment
US9715536B2 (en) Virtualization method for large-scale distributed heterogeneous data
CN104217290A (en) An archive management system
CN103793424A (en) Database data migration method and database data migration system
CN106534164B (en) Effective virtual identity depicting method based on cyberspace user identifier
CN101673289B (en) Method and device for constructing distributed file storage framework
CN103812939A (en) Big data storage system
Mohan et al. An authentication technique for accessing de-duplicated data from private cloud using one time password
CN102194292B (en) Billing server, tax copying system and tax copying method
CN106557307A (en) The processing method and processing system of business datum
KR101428649B1 (en) Encryption system for mass private information based on map reduce and operating method for the same
JP6410932B2 (en) Embedded cloud analytics
CN103440227B (en) A kind of data processing method supporting running algorithms in parallel and device
US11297166B2 (en) System and method of transmitting confidential data
CN102594807A (en) Network gene recognition method based on entity self characteristics in information space
TWI402698B (en) Data distribution access method and system
CN106302236A (en) A kind of method of data distribution and access device
CN104424316A (en) Data storage method, data searching method, related device and system
CN106326752A (en) Program-controlled encrypted file storage system for block chain and method thereof
CN103984550A (en) Serial number elongation algorithm of distributed modular system
CN106127083A (en) A kind of logistics data security protection method and system based on cloud disk
CN113742386B (en) Processing and analyzing method for block data of block chain account book
CN104468836A (en) Virtual disk creating method and device and distributed storage system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant