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 PDF

Info

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
new
memory pool
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
CNA2006100122659A
Other languages
Chinese (zh)
Other versions
CN100471170C (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.)
Tsinghua University
Original Assignee
Tsinghua University
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 Tsinghua University filed Critical Tsinghua University
Priority to CNB2006100122659A priority Critical patent/CN100471170C/en
Publication of CN1897570A publication Critical patent/CN1897570A/en
Application granted granted Critical
Publication of CN100471170C publication Critical patent/CN100471170C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明属于互联网IP路由器数据以及内存管理方法技术领域,其具体特征在于依次含有以下步骤:依次建立包含路由信息的内容数据内存池和包含路由条目之间关系的结构数据内存池;依据上述两个内存地址池首地址之差得出并建立该内存池对在存储地址上的映射关系;分别建立上述内存池各自的空闲内存链表;当要把路由表移到一个独立的内存区域时要分别根据各自内存池的大小在新内存区域内分别建立内容数据内存池和结构数据内存池,并重新建立新内存空间内的映射关系与空闲内存链表,用来管理在路由维护中可能出现的地址空洞。本发明实现了IP路由器软件体系结构中大数据集的动态维护。

Figure 200610012265

The invention belongs to the technical field of Internet IP router data and memory management methods, and is characterized in that it contains the following steps in sequence: sequentially establishing a content data memory pool containing routing information and a structural data memory pool containing the relationship between routing entries; according to the above two The difference between the first address of the memory address pool is obtained and the mapping relationship of the memory pool pair on the storage address is established; the respective free memory linked lists of the above memory pools are respectively established; when the routing table is to be moved to an independent memory area, it is necessary to use The size of the respective memory pools establishes content data memory pools and structural data memory pools in the new memory area, and re-establishes the mapping relationship and free memory list in the new memory space to manage address holes that may appear during routing maintenance. The invention realizes the dynamic maintenance of large data sets in the software system structure of the IP router.

Figure 200610012265

Description

The node moving method of content-based large data sets task of separating with relation
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.基于内容与关系分离的大数据集任务的迁移方法,其特征在于该方法是通过在互联网IP路由器或终端主机的软件体系结构中增加一个动态任务迁移模块来实现的,依次含有以下步骤:1. The migration method of the large data set task based on the separation of content and relationship is characterized in that the method is realized by adding a dynamic task migration module in the software architecture of Internet IP router or terminal host, and contains the following steps successively: 步骤(1.):建立内容数据存储池,记录各内存池的首地址,并存储包含目标子网、下一跳、出接口以及优先级在内的路由器内部的路由信息;Step (1.): Establish a content data storage pool, record the first address of each memory pool, and store the internal routing information of the router including the target subnet, next hop, outgoing interface and priority; 步骤(2.):建立结构数据内存池,记录该内存池的首地址并存储路由器内部路由信息之间的关联,其中包含指向内容数据内存池的指针以及两个用于快速检索的指针;Step (2.): Establish a structural data memory pool, record the first address of the memory pool and store the association between router internal routing information, which contains a pointer to the content data memory pool and two pointers for fast retrieval; 步骤(3.):初始化内容数据内存池和结构数据内存池;Step (3.): Initialize the content data memory pool and the structure data memory pool; 步骤(4.):建立所述内容数据内存池和结构数据内存池之间在存储地址上的一一对应的映射关系;同时,建立各内存地址和空闲内存链表,该链表是一个用于存储空闲内存地址的指针链表,以便对由于路由条目的撤消而形成的内存地址空洞进行管理;其中,所述映射关系具体表现在内容数据内存池与结构数据内存池在内存中首地址之差与所述内存池之间对应条目在内存地址上的偏移量是相同的;Step (4.): establish a one-to-one mapping relationship on storage addresses between the content data memory pool and the structure data memory pool; meanwhile, set up each memory address and a free memory linked list, which is a list for storing free memory A linked list of pointers to memory addresses, so as to manage the memory address holes formed due to the revocation of routing entries; wherein, the mapping relationship is embodied in the difference between the first address in the memory of the content data memory pool and the structure data memory pool and the above-mentioned The offsets of the corresponding entries between the memory pools on the memory address are the same; 步骤(5.):在执行完路由条目的删除操作后,由步骤(4.)中的空闲内存链表对由删除带来的内存地址空洞的详细信息做记录,该详细信息包括:空闲内存链表的首地址指针以及下一个空闲空间内存区域的地址;Step (5.): After executing the deletion operation of the routing entry, the detailed information of the memory address hole caused by the deletion is recorded by the free memory linked list in step (4.), the detailed information includes: free memory linked list The first address pointer and the address of the next free space memory area; 步骤(6):在执行路由条目增加操作时,首先判断所述空闲内存链表的首地址是否为空,若该地址非空,则把需要添加的新路由条目优先存储在由空闲内存链表维护的地址空洞中,并修改空闲内存链表的首地址指针,若该地址为空,则说明存储路由条目的内存地址中不存在地址空洞,需要向系统申请新的内存地址,存放新增的路由条目;Step (6): When performing the routing entry addition operation, first judge whether the first address of the free memory linked list is empty, if the address is not empty, then store the new routing entry that needs to be added in the first address maintained by the free memory linked list In the address hole, modify the first address pointer of the free memory linked list. If the address is empty, it means that there is no address hole in the memory address storing the routing entry, and it is necessary to apply for a new memory address to the system to store the newly added routing entry; 步骤(7.):当需要把路由表移动到另一块独立的内存区域时,依次按以下步骤进行:Step (7.): When it is necessary to move the routing table to another independent memory area, follow the steps below: 步骤(7.1):根据需要移动的内容数据内存池的大小,在新的内存区域中申请相应的内存存储空间,并记录该空间的首地址;Step (7.1): According to the size of the content data memory pool to be moved, apply for the corresponding memory storage space in the new memory area, and record the first address of the space; 步骤(7.2):根据需要移动的结构数据内存池的大小,在新的内存区域中申请相应的存储空间,并记录该存储空间的首地址;Step (7.2): According to the size of the structural data memory pool to be moved, apply for a corresponding storage space in the new memory area, and record the first address of the storage space; 步骤(7.3):建立步骤(7.1)、步骤(7.2)中所述的新内存池对之间的映射关系,记录新的内容数据内存池与结构数据内存池首地址间的偏移量;Step (7.3): Establish the mapping relationship between the new memory pool pair described in step (7.1) and step (7.2), and record the offset between the new content data memory pool and the head address of the structural data memory pool; 步骤(7.4):扫描步骤(7.2)所述的新的结构数据内存池,并根据步骤(7.3)所述的新偏移量修改新的结构数据内存池中对应的指针地址;Step (7.4): scanning the new structural data memory pool described in step (7.2), and modifying the corresponding pointer address in the new structural data memory pool according to the new offset described in step (7.3); 步骤(7.5):在新的内存区域中建立空闲内存链表,对可能存在的空闲内存地址进行管理。Step (7.5): Establish a free memory linked list in the new memory area, and manage possible free memory addresses.
CNB2006100122659A 2006-06-15 2006-06-15 Node Migration Method for Large Dataset Tasks Based on Separation of Content and Relationship Expired - Fee Related CN100471170C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100122659A CN100471170C (en) 2006-06-15 2006-06-15 Node Migration Method for Large Dataset Tasks Based on Separation of Content and Relationship

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100122659A CN100471170C (en) 2006-06-15 2006-06-15 Node Migration Method for Large Dataset Tasks Based on Separation of Content and Relationship

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 Node Migration Method for Large Dataset Tasks Based on Separation of Content and Relationship

Country Status (1)

Country Link
CN (1) CN100471170C (en)

Cited By (6)

* Cited by examiner, † Cited by third party
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

Cited By (8)

* Cited by examiner, † Cited by third party
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 明博教育科技有限公司 A Synchronization Method of Institution-Personnel Data Based on Relation-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
CN101286160B (en) method of database indexing
CN1147812C (en) Database system having at least two host databases and one remote database and method of synchronizing such databases
CN101055589A (en) Embedded database storage management method
CN106777351A (en) Computing system and its method are stored based on ART tree distributed systems figure
CN1908588A (en) Fast map matching method based on small lattice road network organization and structure
CN103139300A (en) Virtual machine image management optimization method based on data de-duplication
JP5813887B2 (en) Forwarding database synchronization on network devices
CN1897570A (en) Large data-set task node transferrying method based on content and relation separation
JP2007025735A (en) Index operating method of database management system
CN100347705C (en) Method for file merge
CN1858710A (en) Method and system for synchronizing data
CN103140840A (en) Data management method and device
CN104052824B (en) Distributed caching method and system
CN101587484B (en) Index method for main storage database based on T-lt tree
CN1614591A (en) Method for organizing and accessing distributive catalogue of document system
US20230281157A1 (en) Post-exascale graph computing method, system, storage medium and electronic device thereof
US7308448B1 (en) Method and apparatus for implementing a lock-free skip list that supports concurrent accesses
CN1797397A (en) Real time database management system for automatic system of electric power, and implementation method
CN1444133A (en) Information processing device and program
JPH04141721A (en) Disk sector substituting system
CN112817982B (en) Dynamic power law graph storage method based on LSM tree
CN112463904B (en) Mixed analysis method of distributed space vector data and single-point space data
CN1237445C (en) Method for rapid path analysis for distributed file system
JP2022098496A (en) Creating tree of database states
CN1501268A (en) Computer hard disk grouping management system and method

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