CN1897570A - Large data-set task node transferrying method based on content and relation separation - Google Patents
Large data-set task node transferrying method based on content and relation separation Download PDFInfo
- Publication number
- CN1897570A CN1897570A CNA2006100122659A CN200610012265A CN1897570A CN 1897570 A CN1897570 A CN 1897570A CN A2006100122659 A CNA2006100122659 A CN A2006100122659A CN 200610012265 A CN200610012265 A CN 200610012265A CN 1897570 A CN1897570 A CN 1897570A
- Authority
- CN
- China
- Prior art keywords
- memory
- address
- pool
- memory pool
- content
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 21
- 238000000926 separation method Methods 0.000 title 1
- 230000015654 memory Effects 0.000 claims abstract description 129
- 238000013507 mapping Methods 0.000 claims abstract description 14
- 238000012423 maintenance Methods 0.000 claims abstract description 4
- 238000012986 modification Methods 0.000 claims description 5
- 230000004048 modification Effects 0.000 claims description 5
- 238000012217 deletion Methods 0.000 claims description 4
- 230000037430 deletion Effects 0.000 claims description 4
- 230000009191 jumping Effects 0.000 claims description 3
- 230000009471 action Effects 0.000 claims description 2
- 238000013500 data storage Methods 0.000 claims description 2
- 230000008569 process Effects 0.000 abstract description 7
- 239000011796 hollow space material Substances 0.000 abstract 1
- 238000013508 migration Methods 0.000 description 7
- 230000005012 migration Effects 0.000 description 7
- 238000011161 development Methods 0.000 description 4
- 238000013459 approach Methods 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 238000010276 construction Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention features the following points: sequentially building a content data memory pool including routing information and a configuration data memory pool including the relation between routing items; based on the difference between the first addresses of said two memory pools, getting and building the mapping relation of said memories on the store address; separately building the idle memory link table of said each memory pool; when the routing table manages to move to a independent memory area, according to the size of each memory pool a content memory pool and a configuration memory pool are separately built in the new memory area, and a mapping relation in the new memory area and a idle memory link table are rebuilt. The invention is used to control the hollow space of memory occurring at routing maintenance process.
Description
Technical field
The node moving method of content-based large data sets task of separating with relation belongs to internet ip router data and memory management algorithm research field.
Background technology
In the computer network system in modern times, router is most crucial connection device.Rapid development of Internet has been brought the innovation of router architecture.Next Generation Internet has proposed new demand to ip router architecture of future generation.Single node is optimized, improves its disposal ability and no longer be the improved fundamental way of system, because this mode is subject to the development speed influence of physical device.Traditional IP router architecture based on single node can't adapt to rapid development of network.Extendible architecture is the main developing direction of ip router of future generation.
In the expandable route software architecture, the migration of task is basic structural support.The computation model that can expand software architecture only solved the static abstract problem of system, it answered system this how to organize basic problem with allocating task.But for a real extendible system, the dynamic expansion of system configuration is vital.Because search efficiency, the storage of routing table is not to store with uncorrelated " table " type structure, normally stores based on Trie tree structure or other organized structures.Rebuild the copy that means data incessantly, these incidence relations also will obtain recovering, and for large data sets, the relation of restore data set is the comparison difficulty at short notice.That summarizes says that the complexity that data relationship is rebuild fully non-reproduction excessive at the time overhead of large-scale dataset and the data incidence relation has restricted the migration of these tasks between router control plane node.Therefore, reach the real software architecture expanded, just must solve the migration problem of large data sets task.
Summary of the invention
The object of the present invention is to provide a kind of node moving method of content-based large data sets task of separating with relation.
The invention is characterized in that it contains following steps successively:
Step (1.): set up the content-data storage pool, write down the first address of each memory pool, and storage comprises targeted subnet, next jumping, outgoing interface and the priority routing iinformation in interior router interior;
Step (2.): set up the structured data memory pool, write down the first address of this memory pool and the association between the inner routing iinformation of storage router, wherein comprise pointer and two pointers that are used for quick retrieval of pointing to the content-data memory pool;
Step (3.): initialization content-data memory pool and structured data memory pool;
Step (4.): set up the mapping relations one to one on memory address between described content-data memory pool and the structured data memory pool; Simultaneously, set up each memory address and free memory chained list, this chained list is a pointer chained list that is used to store the free memory address, so that the memory address cavity that forms owing to cancelling of route entry is managed; Wherein, the side-play amount of corresponding clauses and subclauses on memory address is identical between the described mapping relations difference that is in particular in content-data memory pool and structured data memory pool first address in internal memory and the described memory pool;
Step (5.): after executing the deletion action of route entry, kept a record by the details of the free memory chained list in the step (4.) to the memory address cavity of being brought by deletion, these details comprise: the first address pointer of free memory chained list and the address of next free space region of memory;
Step (6): when carrying out route entry increase operation, whether the first address of at first judging described free memory chained list is empty, if this address non-NULL, then the new route entry that needs are added preferentially is stored in the cavity, address by the free memory linked list maintenance, and the first address pointer of modification free memory chained list, if this address is empty, then there is not the cavity, address in the memory address of explanation storage route entry, need deposit newly-increased route entry to the new memory address of system's application;
Step (7.): when needs move to another piece to routing table independently during region of memory, carry out according to the following steps successively:
Step (7.1): the size of the content-data memory pool of Yi Donging as required, the corresponding memory of application space in new region of memory, and write down the first address in this space;
Step (7.2): the size of the structured data memory pool of Yi Donging as required, the corresponding memory space of application in new region of memory, and write down the first address of this memory space;
Step (7.3): the new memory pool described in establishment step (7.1), the step (7.2) between mapping relations, write down the side-play amount between new content-data memory pool and structured data memory pool first address;
Step (7.4): the described new structured data memory pool of scanning step (7.2), and according to corresponding pointer address in the new structured data memory pool of the described new side-play amount modification of step (7.3);
Step (7.5): in new region of memory, set up the free memory chained list, the free memory address that may exist is managed.
We to said method have carried out emulation in the routing table scale under the situation from 100K to the 1M bar to this agreement according to above-mentioned execution mode, and said method and the traditional mode of rebuilding routing table are fully compared.Wherein Fig. 6 is to use this method to rebuild the analog simulation result of routing table institute spended time, can find that this process meets linear computation complexity.Fig. 7 adopts true routing table to experimentize under the situation, the contrast of said method and traditional complete reconstruction mode spended time under the routing table situation of movement, the node moving method that can find content-based large data sets task of separating with relation from figure is compared at the routing table traveling time with traditional approach very big advantage, and also is far smaller than traditional complete reconstruction mode with its growth rate of increase of route entry.Fig. 8 has shown the speed-up ratio of this mode and traditional approach, and circles mark discrete among the figure is represented under the corresponding route bar said conditions, the ratio of the traditional approach that records and the reconstruction time of the node moving method of content-based large data sets task of separating with relation.Speed-up ratio is distributed between 23.47 to 58.90, though these discrete speed-up ratio data do not have very level and smooth data trend relation.But, still can find out increase substantially with route bar number, speed-up ratio has the trend of increase.
Description of drawings
Fig. 1. routing table structrual description figure;
Fig. 2. memory pool and mapping relations figure
Fig. 3. free memory list structure figure;
Fig. 4. routing table is duplicated schematic diagram;
Fig. 5. overall process flow figure of the present invention;
Fig. 6. the emulated data curve chart;
Fig. 7. routing table reconstruction time experimental curve diagram;
Fig. 8. the speed-up ratio curve chart;
Fig. 9. application exemplary plot of the present invention.
Embodiment
Under the traditional large data sets task node migration and the efficient of reconstruction mode, had a strong impact on the development of expansion software architecture.Designing a kind of more high efficiency moving and storage means and satisfy that route in the expandable route is calculated and these two Core Features of management of route, is main contribution of the present invention.
In description of the invention, content-based thought of separating with structure, routing table is described by content-data memory pool, structured data memory pool and this two right mapping relations of memory pool, wherein stored the essential information of route entry in the content-data memory pool, comprising: targeted subnet, next jumping, outgoing interface and priority.The structured data memory pool then is used for storing the fundamental relation between the route entry, searches for convenience, because routing table generally uses the structure of Trie tree to store, the structured data memory pool is exactly a kind of special description at the Trie tree.The right mapping relations of memory pool wherein can be expressed as y=f (d (x))=x, and wherein x is the logical address of structured data, and y is the logical address of content-data.
Routing table structrual description figure sees Fig. 1
Memory pool and mapping relations are described and are seen Fig. 2
In the process of maintenance content datarams pond, structured data memory pool, if the release of route entry, the address that need write down this memory block timely also is recorded in this address in the free memory chained list, when the first address pointer of this chained list is not sky, for the save memory space, need be with preferential being stored in the cavity, address that the free memory chained list write down of initiate route entry.
The free memory list structure is seen Fig. 3
When needs carry out the routing table migration, at first in the purpose region of memory of migration, rebuild corresponding construction according to source contents datarams pond and structured data memory pool size, data content and the relationship description with correspondence duplicates again.Duplicate finish after, write down the new content-data memory pool and the first address of structured data memory pool, and set up new mapping relations, at last, by the structured data memory pool is scanned, finish the migration and the reconstruction of routing table according to the pointer address in the new first address mapping relations modification structured data memory pool.
Fig. 4 is seen in the reproduction process of routing table in memory block
Overall process flow figure of the present invention sees Fig. 5
The frame construction drawing of expandable route is that the present invention uses exemplary plot and sees Fig. 9
The present invention can remember processing expenditure with the calculating in reducing extensive routing table process of reconstruction separating of correlation by the content to route information, and, thereby by the free memory chained list the preferential use of the management of empty memory is discharged the empty memory that brings by internal memory and reduced the waste on the memory headroom, and, data show by experiment, this method is compared with traditional complete method for reconstructing has at the bottom of the computation complexity characteristics such as good stability.Solved support issue as the important component part in the expandable route software architecture to the large data sets task immigration.
Claims (1)
1. the moving method of content-based large data sets task of separating with relation, it is characterized in that this method is to realize by increase a dynamic task migrating module in the software architecture of internet ip router or end host, contains following steps successively:
Step (1.): set up the content-data storage pool, write down the first address of each memory pool, and storage comprises targeted subnet, next jumping, outgoing interface and the priority routing iinformation in interior router interior;
Step (2.): set up the structured data memory pool, write down the first address of this memory pool and the association between the inner routing iinformation of storage router, wherein comprise pointer and two pointers that are used for quick retrieval of pointing to the content-data memory pool;
Step (3.): initialization content-data memory pool and structured data memory pool;
Step (4.): set up the mapping relations one to one on memory address between described content-data memory pool and the structured data memory pool; Simultaneously, set up each memory address and free memory chained list, this chained list is a pointer chained list that is used to store the free memory address, so that the memory address cavity that forms owing to cancelling of route entry is managed; Wherein, the side-play amount of corresponding clauses and subclauses on memory address is identical between the described mapping relations difference that is in particular in content-data memory pool and structured data memory pool first address in internal memory and the described memory pool;
Step (5.): after executing the deletion action of route entry, kept a record by the details of the free memory chained list in the step (4.) to the memory address cavity of being brought by deletion, these details comprise: the first address pointer of free memory chained list and the address of next free space region of memory;
Step (6): when carrying out route entry increase operation, whether the first address of at first judging described free memory chained list is empty, if this address non-NULL, then the new route entry that needs are added preferentially is stored in the cavity, address by the free memory linked list maintenance, and the first address pointer of modification free memory chained list, if this address is empty, then there is not the cavity, address in the memory address of explanation storage route entry, need deposit newly-increased route entry to the new memory address of system's application;
Step (7.): when needs move to another piece to routing table independently during region of memory, carry out according to the following steps successively:
Step (7.1): the size of the content-data memory pool of Yi Donging as required, the corresponding memory of application space in new region of memory, and write down the first address in this space;
Step (7.2): the size of the structured data memory pool of Yi Donging as required, the corresponding memory space of application in new region of memory, and write down the first address of this memory space;
Step (7.3): the new memory pool described in establishment step (7.1), the step (7.2) between mapping relations, write down the side-play amount between new content-data memory pool and structured data memory pool first address;
Step (7.4): the described new structured data memory pool of scanning step (7.2), and according to corresponding pointer address in the new structured data memory pool of the described new side-play amount modification of step (7.3);
Step (7.5): in new region of memory, set up the free memory chained list, the free memory address that may exist is managed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100122659A CN100471170C (en) | 2006-06-15 | 2006-06-15 | Large data-set task node transferrying method based on content and relation separation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100122659A CN100471170C (en) | 2006-06-15 | 2006-06-15 | Large data-set task node transferrying method based on content and relation separation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1897570A true CN1897570A (en) | 2007-01-17 |
CN100471170C CN100471170C (en) | 2009-03-18 |
Family
ID=37609951
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2006100122659A Expired - Fee Related CN100471170C (en) | 2006-06-15 | 2006-06-15 | Large data-set task node transferrying method based on content and relation separation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100471170C (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102088753A (en) * | 2011-03-28 | 2011-06-08 | 中国科学院上海微系统与信息技术研究所 | Alternate hole routing method of Internet of Things (IOT) for guaranteeing service quality |
CN103176907A (en) * | 2011-12-22 | 2013-06-26 | 北京新媒传信科技有限公司 | Memory management method and memory management system |
CN103885829A (en) * | 2014-04-16 | 2014-06-25 | 中国科学院软件研究所 | Virtual machine cross-data-center dynamic migration optimization method based on statistics |
CN104869056A (en) * | 2014-02-20 | 2015-08-26 | 明博教育科技有限公司 | Institution personnel data synchronization method based on relational data separation |
CN103176907B (en) * | 2011-12-22 | 2016-12-14 | 北京新媒传信科技有限公司 | A kind of method and system of memory management |
CN111338806A (en) * | 2020-05-20 | 2020-06-26 | 腾讯科技(深圳)有限公司 | Service control method and device |
-
2006
- 2006-06-15 CN CNB2006100122659A patent/CN100471170C/en not_active Expired - Fee Related
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102088753A (en) * | 2011-03-28 | 2011-06-08 | 中国科学院上海微系统与信息技术研究所 | Alternate hole routing method of Internet of Things (IOT) for guaranteeing service quality |
CN103176907A (en) * | 2011-12-22 | 2013-06-26 | 北京新媒传信科技有限公司 | Memory management method and memory management system |
CN103176907B (en) * | 2011-12-22 | 2016-12-14 | 北京新媒传信科技有限公司 | A kind of method and system of memory management |
CN104869056A (en) * | 2014-02-20 | 2015-08-26 | 明博教育科技有限公司 | Institution personnel data synchronization method based on relational data separation |
CN104869056B (en) * | 2014-02-20 | 2019-12-24 | 明博教育科技有限公司 | Organization-personnel data synchronization method based on relationship-data separation |
CN103885829A (en) * | 2014-04-16 | 2014-06-25 | 中国科学院软件研究所 | Virtual machine cross-data-center dynamic migration optimization method based on statistics |
CN111338806A (en) * | 2020-05-20 | 2020-06-26 | 腾讯科技(深圳)有限公司 | Service control method and device |
CN111338806B (en) * | 2020-05-20 | 2020-09-04 | 腾讯科技(深圳)有限公司 | Service control method and device |
Also Published As
Publication number | Publication date |
---|---|
CN100471170C (en) | 2009-03-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110825748B (en) | High-performance and easily-expandable key value storage method by utilizing differentiated indexing mechanism | |
US5222235A (en) | Databases system for permitting concurrent indexing and reloading of data by early simulating the reload process to determine final locations of the data | |
JP3453757B2 (en) | Buffer management method | |
US20090182837A1 (en) | Spatial Sieve Tree | |
WO2013174305A1 (en) | Ssd-based key-value type local storage method and system | |
CN103279502B (en) | A kind of framework and method with the data de-duplication file system be combined with parallel file system | |
CN102024020A (en) | Efficient metadata memory access method in distributed file system | |
US20170147225A1 (en) | Unified table delta dictionary memory size and load time optimization | |
CN1897570A (en) | Large data-set task node transferrying method based on content and relation separation | |
CN1831824A (en) | Buffer data base data organization method | |
CN100347705C (en) | Method for file merge | |
CN1845093A (en) | Attribute extensible object file system | |
CN100338607C (en) | Method for organizing and accessing distributive catalogue of document system | |
CN118535578A (en) | Hash and LSM Tree-based hybrid index method and key value storage system | |
Xu et al. | A hybrid update strategy for I/O-efficient out-of-core graph processing | |
Ghanem et al. | Bulk operations for space-partitioning trees | |
Zhang et al. | Making In-Memory Learned Indexes Efficient on Disk | |
US7308448B1 (en) | Method and apparatus for implementing a lock-free skip list that supports concurrent accesses | |
CN110515897B (en) | Method and system for optimizing reading performance of LSM storage system | |
CN116226497A (en) | Retrieval method, medium, device and computing equipment | |
CN1652111A (en) | Method for implementing realtime database routine operation | |
JP2022098496A (en) | Creating tree of database states | |
CN113535711B (en) | Hierarchical index data management method and system based on LSM-Tree | |
CN1269034C (en) | Compression of executable document in embedded type system and its loading method | |
CN1567238A (en) | Mirror method for files based on Internet |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20090318 Termination date: 20110615 |