CN100531102C - Route table adjustment method, route query method and device and route table storage device - Google Patents

Route table adjustment method, route query method and device and route table storage device Download PDF

Info

Publication number
CN100531102C
CN100531102C CN200710176765.0A CN200710176765A CN100531102C CN 100531102 C CN100531102 C CN 100531102C CN 200710176765 A CN200710176765 A CN 200710176765A CN 100531102 C CN100531102 C CN 100531102C
Authority
CN
China
Prior art keywords
route
sublist
hyperplasia
bloom filter
address
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.)
Active
Application number
CN200710176765.0A
Other languages
Chinese (zh)
Other versions
CN101150483A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN200710176765.0A priority Critical patent/CN100531102C/en
Publication of CN101150483A publication Critical patent/CN101150483A/en
Application granted granted Critical
Publication of CN100531102C publication Critical patent/CN100531102C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a routing table regulating method, a routing inquiring method and device as well as a routing table memory device; wherein the routing table regulating method comprises receiving a routing prefix; when the memory space of a routing sub table reaching a threshold value is monitored, a proliferation bloom filter of the sub table and a proliferation routing sub table are established according to the capability of the routing sub table. The routing inquiring method includes the following steps: obtaining the IP address to be inquired; obtaining the length of routing prefix corresponding to the IP address to be inquired by inquiring on a bloom filter and the proliferation bloom filter according to the IP address to be inquired; and obtaining the routing path of the IP address to be inquired inside the corresponding routing sub table according to the length of routing prefix. The routing table regulating device and the routing inquiring device respectively comprise function modules for conducting the methods, and the routing table memory device consists of modules of a memory routing sub table and a bloom filter. The technical proposal of the invention is capable of regulating the routing table quickly with a little expense.

Description

Route table adjustment method, method for searching route and device and route table storage device
Technical field
The invention belongs to communication technical field, relate in particular to a kind of route table adjustment method, method for searching route and device and route table storage device in the communications field.
Background technology
In the existing communication network technology, one of technology that route technology receives much attention beyond doubt.Many development of the communications field all need the requirement of corresponding raising to the route technology.For example in recent years, tendency along with enterprise's globalization, a lot of enterprises have developed more branched structure in different places in the world, so a lot of enterprises trend towards utilizing the internet to substitute their privately owned data networks, this logical network of utilizing the internet to transmit private information and forming just is called virtual private network (Virtual Private Network is hereinafter to be referred as VPN).The application of VPN at present more and more widely, and people are for safety, the demand of data communication means also increases day by day easily.Along with the extensive use of VPN, had only incoming end routing forwarding equipment just need support the VPN route, but now, a lot of middle and high end routing forwarding equipment are directly connected to the end user, also need to support the VPN route in the past.Therefore, more and more higher to the requirement of route technology.On the other hand, the transmission rate of transmission medium is increasing rapidly, the message amount that routing device is handled increases rapidly, for example: the routing forwarding equipment of support 100G optical cable port needs each second usually and searches maximum route prefix 150M time, the routing forwarding equipment of support 150G optical cable port needs each second usually and searches route prefix 250M time, this also needs routing device that stronger query capability is provided, just stronger maximum route prefix search capacity, high-speed searching technology be one of difficult problem of facing of industry just.
Two key factors in the high-speed searching technology are: search speed and renewal rate.Search speed bigger routing capacity is provided, renewal rate provides more stable network, just accelerates network convergence speed, these technical issues that need to address of the present invention just.The routing inquiry technology is by a general steps in the transmitted data on network packet procedures, route system is necessary for each IP packet that receives, in its routing table, seek the maximum route prefix of destination address in the IP packet, transmit this packet according to corresponding routed path again.Be factors such as the inquiry velocity of improving routing inquiry operation, inquiry expense, people have adopted various route querying system, and wherein a kind of method is to adopt Bloom filter (to call Bloom Filter in the following text) technology.The sets of data set method for expressing that Bloom Filter technology is computer scientist " Burton Bloom " to be proposed in 1970, this method can highly significants and the effective information of a data set of compression, are widely used aspect information retrieval.Bloom Filter technology is applied in the route technology, at first the length according to the route prefix matching value is divided into several route subclass to routing table, set up a Bloom filter respectively for each route subclass then, be Bloom Filter, and with the corresponding route sublist of this filter, under the mode of shared drive, each Bloom Filer is corresponding with the initial address of an internal memory respectively.In fact the route sublist is exactly the part of original routing table, is the route sublist that forms in logic.Figure 1A is for carrying out the schematic flow sheet of routing inquiry based on the Bloom filter technology, Figure 1B is relevant routing table configuration diagram, and its basic step is as follows:
Step a1, obtain IP address to be checked;
Step a2, according to IP address to be checked, utilize Bloom Filter technology, by inquiring about each filter, be filter0, filter1, filter2 and filter3 etc., obtain the length of the maximum route prefix of IP to be checked address correspondence, may match the length of a plurality of route prefix herein,, select the length of maximum route prefix according to the principle of long coupling;
Step a3, get front, IP address the respective length byte as maximum route prefix value, this relative length is exactly maximum route prefix length;
Step a4, maximum route prefix value is done Hash (hash) computing, obtain the physical address of corresponding route table items, thereby finally inquire routed path, promptly in the prefix length table of correspondence, inquire about the index of corresponding ip address, for correctly, also need the route prefix value (key) of comparison actual storage whether correct with the key of inquiry, verify when correct just it as Query Result, verify when incorrect, then be back among the step a2, select short route prefix length, execution in step a3 more then is up to inquiring correct result.
In above-mentioned steps a2, because the configuration of the prefix of identical route has a lot, determine an address by value of hash computing, just corresponding route is left in this place, address in the time of the configuration routing table.
The reasonable storage and maintenance technology of route data is to realize the important prerequisite of efficient, reliable route.When adopting above-mentioned Bloom filter technology, can set up the less vector table of committed memory of a hash table, promptly Bloom filter comes correspondence to take the actual prefix entries of big memory headroom.
But the inventor finds to exist at least in the routing table storage system maintenance technology based on the Bloom filter technology following problems in carrying out research process of the present invention: owing to be difficult to estimate the scale of each route subclass in advance, can only suppose its size and allocate the route sublist that certain memory space is given a certain length prefix in advance, but the increase and decrease concussion that the quantity of route table items can be frequent in the network of reality, when numerical value in the route subclass of certain length prefix increases severely, must discharge old Bloom filter and corresponding route sublist, then rebuild bigger Bloom filter of capacity and corresponding route sublist, undoubtedly, this operation overhead is huge.
Summary of the invention
The embodiment of the invention provides a kind of route table adjustment method and device, overcome in the existing route technology based on Bloom filter, the adjustment scheme complexity of routing table, the big problem of adjustment expense, thereby during with the increase and decrease of realization route sublist memory space, rapidly routing table is safeguarded, and realized adjusting routing table with less operation overhead.
The embodiment of the invention also provides a kind of method for searching route and device, be adapted to the routing table that adopts route table adjustment method of the present invention to expand, thereby can adopt the route table adjustment method quick, that expense is little, and routing inquiry carries out in less route sublist, also can improve inquiry velocity accordingly.
The embodiment of the invention provides a kind of route table storage device again, is adapted to adopt route table adjustment method embodiment of the present invention to adjust, the route table adjustment method that it can adopt fast, expense is little.
Some embodiments of the present invention provide a kind of route table adjustment method, comprise the steps:
Receive the route prefix matching value;
When the memory space that monitors the route sublist corresponding with the length of this route prefix matching value has reached the threshold value of setting, set up the hyperplasia Bloom filter of this route sublist according to the length of the Bloom filter of the capacity of this route sublist and described route sublist, and set up hyperplasia route sublist according to the capacity of described route sublist.
Other embodiment of the present invention provides a kind of routing table adjusting device, comprising:
Receiver module is used to receive the route prefix matching value;
Creation module, when the memory space that is used to monitor the route sublist corresponding with the length of this route prefix matching value has reached the threshold value of setting, set up the hyperplasia Bloom filter of this route sublist according to the length of the Bloom filter of the capacity of this route sublist and described route sublist, and set up hyperplasia route sublist according to the capacity of described route sublist.
By above technical scheme as can be known, the embodiment of route table adjustment method of the present invention and device, when route sublist memory space increases to set point, adopt corresponding former Bloom filter and route sublist to set up the technological means of hyperplasia Bloom filter and hyperplasia route sublist, overcome in the prior art and when the expansion routing table, need rebuild Bloom filter and route sublist, and the big technical problem of expansion expense.Therefore, the expansion expense of route table adjustment method of the present invention and adjusting device is little, and extended operation is quick.
Some embodiment more of the present invention provide a kind of method for searching route, comprising:
Obtain IP address to be checked;
According to IP address to be checked,, obtain the route prefix length of IP to be checked address correspondence by in the Bloom filter of Bloom filter and hyperplasia thereof, inquiring about;
According to this route prefix length that inquires, in the route sublist of correspondence, obtain the routed path of IP to be checked address.
Other embodiment of the present invention provide a kind of routing inquiring device, comprising:
Acquisition module is used to obtain IP address to be checked;
First enquiry module is used for according to IP address to be checked, by inquiring about in the Bloom filter of Bloom filter and hyperplasia thereof, obtains the length of the maximum route prefix of IP to be checked address correspondence;
Second enquiry module is used for obtaining the routed path of IP to be checked address according to maximum route prefix length in the route sublist of correspondence.
As shown from the above technical solution, method for searching route of the present invention and device can be when the original Bloom filters of inquiry, inquire about the Bloom filter of hyperplasia simultaneously, be adapted to the routing table that adopts route table adjustment method of the present invention to expand, thereby can adopt the route table adjustment method quick, that expense is little, and routing inquiry carries out in less route sublist, also can improve inquiry velocity accordingly.
Other embodiment of the present invention provides a kind of route table storage device, comprising:
The route table block, be used to store the route prefix matching value, comprise the route sublist unit that is used to store preseting length route prefix matching value more than two, and be used for storing the hyperplasia route sublist unit with the route prefix matching value of route sublist unit route prefix matching value equal in length more than one;
Segment address register, the initial address that is used to store route sublist unit;
Three module, comprise two above Bloom filters, link to each other with route sublist unit is corresponding one by one, be used for storing the length information of route sublist unit route prefix matching value, and above hyperplasia Bloom filter, link to each other with hyperplasia route sublist unit is corresponding one by one, be used for storing the length information of hyperplasia route sublist unit route prefix matching value.
As shown from the above technical solution, this route table storage device comprises route sublist unit and hyperplasia route sublist unit, be used to store the route prefix matching value of same length, also comprise Bloom filter and hyperplasia Bloom filter, corresponding mutually with route sublist unit and hyperplasia route sublist unit, can be adapted to adopt the technical scheme of route table adjustment method embodiment of the present invention, when the content of route sublist unit expands, route sublist unit and Bloom filter needn't regenerate, thereby the method for its adjustment is quick, expense is little.
Also in conjunction with the accompanying drawings the present invention is described in further detail below by specific embodiment.
Description of drawings
Figure 1A is a method for searching route flow process in the prior art;
Figure 1B is a method for searching route schematic flow sheet in the prior art;
Fig. 2 is the routing table structural representation in the route table adjustment method specific embodiment one of the present invention;
Fig. 3 is the flow chart of route table adjustment method specific embodiment one of the present invention;
Fig. 4 is the flow chart of route table adjustment method specific embodiment two of the present invention;
Fig. 5 is the structural representation of routing table adjusting device specific embodiment one of the present invention;
Fig. 6 is the structural representation of routing table adjusting device specific embodiment two of the present invention;
Fig. 7 is the flow chart of method for searching route specific embodiment of the present invention;
Fig. 8 is the structural representation of routing inquiring device specific embodiment of the present invention;
Fig. 9 is the structural representation of route table storage device specific embodiment of the present invention
Embodiment
Route table adjustment method embodiment one
Be illustrated in figure 3 as the flow chart of route table adjustment method specific embodiment one of the present invention, the route table adjustment method of present embodiment is in the route technology based on the Bloom filter technology, the method that routing table is adjusted.Route technology based on Bloom filter, length according to the route prefix matching value is divided into the set of a plurality of disjoint route prefix matching values with it, independent allocation one block space in the routing table that is integrated into for each route prefix matching value, be about to routing table and be divided into a plurality of independently route sublists, each route sublist another one corresponding Bloom filter, route prefix matching value in the route sublist is all by the hash computing, its length information is write in the Bloom filter, so that in a Bloom filter, inquire the length of route prefix to be found, then further specifically inquire about the matching value of this route prefix in the route sublist of correspondence, this is based on the basic principle of the route technology of Bloom filter.The essence of Bloom filter is a set of vectors, leave a big array the inside in, can be when setting up Bloom filter by the route prefix matching value is carried out the hash computing, corresponding bit is set to 1 in the address Bloom filter of use hash, when using several hash function, each route prefix matching value is carried out computing can obtain a vector, just several bits of Bloom filter are 1.The array of Bloom filter needs enough big, is 1 otherwise will occur making same bit after a plurality of router prefix matching value hash computing, when carrying out the inquiry of ip route prefix, will occur judging by accident so.So the length of Bloom filter, just the number of Bloom filter bit needs abundant.The length of Bloom filter should be corresponding with the capacity of route sublist, to reduce the possibility of erroneous judgement as far as possible.The method of adjustment at its routing table of present embodiment comprises:
Step 101, reception one route prefix matching value;
Step 102, when the memory space that monitors the route sublist corresponding with the length of this route prefix matching value has reached the threshold value of setting, set up the hyperplasia Bloom filter and the hyperplasia route sublist of this route sublist according to the capacity of this route sublist, this route sublist is designated as former route sublist, and the Bloom filter of this route sublist is designated as former Bloom filter;
The memory space of above-mentioned steps 102 Central Plains route sublists reaches the situation of setting threshold value can be full for the memory space of this route sublist, or, usually occur in when certain route sublist is extensive to be expanded for guaranteeing that inquiry velocity is the maximum storage limit value that route sublist memory space is set; Adjusted routing table structure as shown in Figure 2, wherein, former route sublist t0~t3 and former Bloom filter bf0~bf3 can be corresponding one by one by segment address register Seg ptr0~Seg ptr3, and segment address register Seg ptr0~Segptr3 is respectively applied for the first address of each former route sublist t0~t3 of storage in internal memory.As shown in Figure 2, when the memory space of former route sublist t2 reaches the setting threshold value, then set up its hyperplasia Bloom filter bf2 ' according to the capacity of former route sublist t2, and set up hyperplasia route sublist t2 ', and, when using the first address of segment address register storage route sublist, also need in segment address register Seg ptr4, preserve the first address of hyperplasia route sublist bf2 '.
In above-mentioned steps 102, capacity according to former route sublist, the step of setting up the hyperplasia Bloom filter of former route sublist can be specially: according to the capacity of former route sublist, set up the former Bloom filter equal in length of length and former route sublist, it is the hyperplasia Bloom filter that number of bits equates, the length of former Bloom filter is corresponding with the capacity of former route sublist, generally is that the capacity of route sublist is directly proportional.In this technical scheme, set up the hyperplasia Bloom filter that length equals former Bloom filter, can also be convenient to the operation of former Bloom filter of follow-up merging and hyperplasia Bloom filter.In step 102, the step of setting up hyperplasia route sublist according to the capacity of former route sublist can be specially: according to the capacity of former route sublist, set up the hyperplasia route sublist that capacity equates with the capacity of former route sublist, promptly in internal memory, distribute one with the onesize memory space of former route sublist as hyperplasia route sublist.
In step 102, can further after setting up hyperplasia route sublist, preserve the initial address of hyperplasia route sublist, so that find the position of route sublist.Present embodiment at the routing table storage architecture in, as shown in Figure 2, when shared drive, the initial address of route sublist can further be stored in the segment address register, as a plurality of when outreaching memory space or embedded random asccess memory (RAM), the route sublist can use segment address register and the sub-table number of route all can find the position of route sublist more easily corresponding to the sub-table number of route.Therefore, the preservation of hyperplasia route sublist initial address can be specially and be saved in the segment address register.
After setting up hyperplasia route sublist, can further carry out following step, as shown in Figure 3:
Step 103, preserve the route prefix matching value that this receives.
In above-mentioned steps 103, the preservation that receives the route prefix matching value specifically is to be saved in the route sublist, and the length information of route prefix matching value is write in the Bloom filter.In the present embodiment, the route prefix matching value that preferably will newly receive is saved in the newly-built hyperplasia route sublist, and its length information write in the hyperplasia Bloom filter, to enrich the content in the hyperplasia route sublist, make former route sublist be tending towards equating gradually with the memory space of hyperplasia route sublist.
The advantage of present embodiment technical scheme is: realized the method for dynamic routing table expansion, compared with prior art, the expansion expense of routing table is little, and method of adjustment is convenient.
Route table adjustment method embodiment two
Be illustrated in figure 4 as the flow chart of route table adjustment method specific embodiment two of the present invention, present embodiment is based on the technical scheme of the foregoing description one, after above-mentioned steps 102 is set up hyperplasia Bloom filter and hyperplasia route sublist, can further carry out the collapse step of routing table, specifically comprise the steps:
Step 301, the memory space that monitors the hyperplasia route sublist of this route sublist and/or this route sublist reduce to when setting threshold value, execution in step 302;
Step 302, the Bloom filter that merges this route sublist and this hyperplasia Bloom filter, and merge this route sublist and this hyperplasia route sublist.
In above-mentioned steps 301, the setting of route sublist or hyperplasia route sublist memory space lower limit can be decided as the case may be, and the mode that also needs to merge according to the route sublist is determined.The space that for example need guarantee a former route sublist can hold the route prefix matching value of storing in former route sublist and the hyperplasia route sublist.
In above-mentioned steps 302, merging the Bloom filter of route sublist and the step of hyperplasia Bloom filter is specifically as follows: the bit vector array to route sublist Bloom filter and this hyperplasia Bloom filter is carried out OR operation, with its result as former Bloom filter, discharge then, promptly delete the hyperplasia Bloom filter; The step that merges this route sublist and this hyperplasia route sublist is specifically as follows: the route prefix matching value in the hyperplasia route sublist is added in the follow-up memory space of route prefix matching value of former route sublist.Further, after merging this route sublist and hyperplasia route sublist, can also comprise: the initial address of this hyperplasia route sublist of deletion from segment address register.
The advantage of present embodiment technical scheme is: set threshold value when following when the route prefix matching value quantity in the hyperplasia route sublist reduces to, can further carry out shrinkage operation, routing table is safeguarded, with conserve storage with improve routing inquiry speed.
Routing table adjusting device embodiment one
Be illustrated in figure 5 as the structural representation of routing table adjusting device specific embodiment one of the present invention, this device comprises:
Receiver module 1 is used to receive the route prefix matching value; Creation module 2 when the memory space that is used to monitor the route sublist corresponding with the length of this route prefix matching value has reached the threshold value of setting, is set up the hyperplasia Bloom filter and the hyperplasia route sublist of this route sublist according to the capacity of this route sublist.
The routing table adjusting device of present embodiment can adopt the technical scheme of route table adjustment method embodiment one of the present invention, has realized the method for dynamic routing table expansion, and compared with prior art, the expansion expense of routing table is little, and it is convenient to adjust.
Routing table adjusting device embodiment two
Be illustrated in figure 6 as the structural representation of routing table adjusting device specific embodiment two of the present invention, present embodiment also comprises on the basis of above-mentioned routing table adjusting device embodiment one:
Merge module 4, the memory space that is used to monitor the hyperplasia route sublist of route sublist and/or route sublist reduces to when setting threshold value, merges the Bloom filter and the hyperplasia Bloom filter of route sublist, and merges route sublist and hyperplasia route sublist.
The routing table adjusting device of present embodiment can adopt the technical scheme of route table adjustment method embodiment two of the present invention, when reducing to, the route prefix matching value quantity in the hyperplasia route sublist sets threshold value when following, can further carry out shrinkage operation, routing table is safeguarded, with conserve storage and raising routing inquiry speed.
Method for searching route embodiment
Be illustrated in figure 7 as the flow chart of method for searching route specific embodiment of the present invention, the method for searching route of present embodiment according in the route table adjustment method of the present invention at routing table carry out routing inquiry, the structure of this routing table comprises the steps: as shown in Figure 2
Step 201, obtain IP address to be checked;
Step 202, according to IP address to be checked, by in Bloom filter and hyperplasia Bloom filter, inquiring about, obtain the length of the route prefix of IP to be checked address correspondence;
Step 203, according to route prefix length, in the route sublist of correspondence, obtain the routed path of IP to be checked address.
In the implementation of above-mentioned steps 202 and 203, according to longest path by the prefix matching principle, usually in a plurality of route prefix length of the IP address correspondence that gets access to, select from the longest route prefix length, when inquiry is correct, inquiry is than short route prefix length again, execution in step 202,203 repeatedly, up to inquiring correct result
In above-mentioned steps 203,, in the route sublist of correspondence, obtain the routed path of IP to be checked address and specifically can realize by carrying out following step according to the length of route prefix:
The length of the route prefix that step 2031, basis are obtained, the initial address of the route sublist of inquiry correspondence in segment address register;
Step 2032, obtain address in the table of corresponding route sublist by Hash operation;
The initial address and the Biao Nei address of the route sublist that step 2033, basis are obtained obtain the corresponding physical address in the corresponding routing table;
Step 2034, obtain the routed path of IP to be checked address according to the physical address in the routing table.
The routing table that the technical scheme of present embodiment can effectively be adjusted based on route table adjustment method of the present invention is carried out routing inquiry, thereby can adopt the route table adjustment method quick, that expense is little, and routing inquiry carries out in less route sublist, also can improve inquiry velocity accordingly.
Routing inquiring device embodiment
Be illustrated in figure 8 as the structural representation of routing inquiring device specific embodiment of the present invention, this device comprises:
Acquisition module 11 is used to obtain IP address to be checked; First enquiry module 12 is used for according to IP address to be checked, by inquiring about in Bloom filter and hyperplasia Bloom filter, obtains the length of the route prefix of IP to be checked address correspondence; Second enquiry module 13 is used for according to route prefix length, obtains the routed path of IP to be checked address in the route sublist of correspondence.
The routing inquiring device of present embodiment can adopt the technical scheme of the arbitrary embodiment of method for searching route of the present invention, thereby can adopt the route table adjustment method quick, that expense is little, and routing inquiry carries out in less route sublist, perhaps by adopting other storage mediums to be implemented in inquiry simultaneously in route sublist and the hyperplasia route sublist, so also can improve inquiry velocity accordingly.
Route table storage device embodiment
Be illustrated in figure 9 as the structural representation of route table storage device specific embodiment of the present invention, this device comprises:
Router table means 100, i.e. first module, be used to store the route prefix matching value, comprise the route sublist unit 1001 that is used to store preseting length route prefix matching value more than two, it is first module, and be used for storing hyperplasia route sublist unit 1002 with the route prefix matching value of route sublist unit 1001 route prefix matching value equal in length, i.e. Unit second more than one; Segment address register 200, i.e. second module, the initial address that is used to store route sublist unit 1001 and hyperplasia route sublist unit 1002; Filter module 300, comprise two above Bloom filters 3001, i.e. Unit the 3rd, with 1001 corresponding one by one linking to each other of route sublist unit, be used for storing the length information of route sublist unit 1001 route prefix matching values, and above hyperplasia Bloom filter 3002, i.e. Unit the 4th, with 1002 corresponding one by one linking to each other of hyperplasia route sublist unit, be used for storing the length information of hyperplasia route sublist unit 1002 route prefix matching values.
Present embodiment can be adapted to use the embodiment of route table adjustment method of the present invention and method for searching route, when its content expands, and can be fast, little the adjusting of expense.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (15)

1, a kind of route table adjustment method comprises:
Receive the route prefix matching value;
When the memory space that monitors the route sublist corresponding with the length of described route prefix matching value has reached the threshold value of setting, set up the hyperplasia Bloom filter of described route sublist according to the length of the Bloom filter of the capacity of described route sublist and described route sublist, and set up hyperplasia route sublist according to the capacity of described route sublist.
2, route table adjustment method according to claim 1, it is characterized in that, the hyperplasia Bloom filter of setting up described route sublist according to the length of the Bloom filter of the capacity of described route sublist and described route sublist is specially: according to the capacity of described route sublist, set up the hyperplasia Bloom filter of equal in length of the Bloom filter of length and described route sublist.
3, route table adjustment method according to claim 1, it is characterized in that, setting up hyperplasia route sublist according to the capacity of described route sublist is specially: according to the capacity of described route sublist, set up the hyperplasia route sublist that capacity equates with the capacity of described route sublist.
4, route table adjustment method according to claim 1 is characterized in that, after setting up described hyperplasia route sublist, also comprises: the initial address of described hyperplasia route sublist is kept in the segment address register.
5, route table adjustment method according to claim 1, it is characterized in that, after setting up described hyperplasia route sublist, also comprise: the described route prefix matching value that receives is kept in the described hyperplasia route sublist, and the length information of the described route prefix matching value that receives is write in the described hyperplasia Bloom filter.
6, route table adjustment method according to claim 1 is characterized in that, after the hyperplasia Bloom filter of setting up described route sublist and hyperplasia route sublist, this method also comprises:
The memory space that monitors the hyperplasia route sublist of described route sublist and/or described route sublist reduces to when setting threshold value, merge the Bloom filter and the described hyperplasia Bloom filter of described route sublist, and merge described route sublist and described hyperplasia route sublist.
7, route table adjustment method according to claim 6, it is characterized in that, the Bloom filter and the described hyperplasia Bloom filter that merge described route sublist are specially: Bloom filter and described hyperplasia Bloom filter to described route sublist are carried out OR operation, with the Bloom filter of result, and delete described hyperplasia Bloom filter as described route sublist.
8, route table adjustment method according to claim 6, it is characterized in that, merge described route sublist and described hyperplasia route sublist is specially: the route prefix Configuration Values in the described hyperplasia route sublist is added in the follow-up memory space of the route prefix Configuration Values in the described route sublist.
9, route table adjustment method according to claim 8 is characterized in that, after merging described route sublist and described hyperplasia route sublist, also comprises: the initial address of the described hyperplasia route sublist of deletion from segment address register.
10, a kind of routing table adjusting device is characterized in that, comprising:
Receiver module is used to receive the route prefix matching value;
Creation module, when the memory space that is used to monitor the route sublist corresponding with the length of described route prefix matching value has reached the threshold value of setting, set up the hyperplasia Bloom filter of described route sublist according to the length of the Bloom filter of the capacity of described route sublist and described route sublist, and set up hyperplasia route sublist according to the capacity of described route sublist.
11, routing table adjusting device according to claim 10 is characterized in that, also comprises:
Merge module, the memory space that is used to monitor the hyperplasia route sublist of described route sublist and/or described route sublist reduces to when setting threshold value, merge the Bloom filter and the described hyperplasia Bloom filter of described route sublist, and merge described route sublist and described hyperplasia route sublist.
12, a kind of method for searching route according to the arbitrary described route table adjustment method of claim 1-9 is characterized in that, comprising:
Obtain IP address to be checked;
According to IP address to be checked,, obtain the route prefix length of IP to be checked address correspondence by in Bloom filter and hyperplasia Bloom filter, inquiring about;
According to the described route prefix length that inquires, in the route sublist of correspondence, obtain the routed path of IP to be checked address.
13, method for searching route according to claim 12 is characterized in that, according to route prefix length, the routed path that obtains IP to be checked address in the route sublist of correspondence is specially:
According to the route prefix length of obtaining, the initial address of the route sublist of inquiry correspondence in the segment address register of correspondence;
Obtain address in the table of corresponding route sublist by Hash operation;
Initial address and Biao Nei address according to the route sublist of obtaining obtain the corresponding physical address in routing table;
Obtain the routed path of IP to be checked address according to the physical address in the routing table.
14, a kind of routing inquiring device according to the arbitrary described route table adjustment method of claim 1-9 is characterized in that, comprising:
Acquisition module is used to obtain IP address to be checked;
First enquiry module is used for according to IP address to be checked, by inquiring about in the Bloom filter of Bloom filter and hyperplasia thereof, obtains the length of the route prefix of IP to be checked address correspondence;
Second enquiry module is used for according to route prefix length, obtains the routed path of IP to be checked address in the route sublist of correspondence.
15, a kind of route table storage device, it is characterized in that, comprise: router table means, be used to store the route prefix matching value, comprise the route sublist unit that is used to store preseting length route prefix matching value more than two, and be used for storing the hyperplasia route sublist unit with the route prefix matching value of described route sublist unit route prefix matching value equal in length more than one;
Segment address register, the initial address that is used to store described route sublist unit;
Filter module, comprise two above Bloom filters, link to each other with described route sublist unit is corresponding one by one, be used for storing the length information of described route sublist unit route prefix matching value, and above hyperplasia Bloom filter, link to each other with described hyperplasia route sublist unit is corresponding one by one, be used for storing the length information of described hyperplasia route sublist unit route prefix matching value.
CN200710176765.0A 2007-11-02 2007-11-02 Route table adjustment method, route query method and device and route table storage device Active CN100531102C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710176765.0A CN100531102C (en) 2007-11-02 2007-11-02 Route table adjustment method, route query method and device and route table storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710176765.0A CN100531102C (en) 2007-11-02 2007-11-02 Route table adjustment method, route query method and device and route table storage device

Publications (2)

Publication Number Publication Date
CN101150483A CN101150483A (en) 2008-03-26
CN100531102C true CN100531102C (en) 2009-08-19

Family

ID=39250835

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710176765.0A Active CN100531102C (en) 2007-11-02 2007-11-02 Route table adjustment method, route query method and device and route table storage device

Country Status (1)

Country Link
CN (1) CN100531102C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603414A (en) * 2016-11-17 2017-04-26 上海红阵信息科技有限公司 Routing table fast comparing method

Families Citing this family (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8892780B2 (en) 2007-03-08 2014-11-18 Oracle International Corporation Management of shared storage I/O resources
WO2010022767A1 (en) * 2008-08-26 2010-03-04 Telefonaktiebolaget Lm Ericsson (Publ) Packet forwarding in a network
CN102203773B (en) 2008-09-19 2014-03-19 甲骨文国际公司 Hash join using collaborative parallel filtering in intelligent storage with offloaded bloom filters
US10430338B2 (en) 2008-09-19 2019-10-01 Oracle International Corporation Selectively reading data from cache and primary storage based on whether cache is overloaded
US8868831B2 (en) 2009-09-14 2014-10-21 Oracle International Corporation Caching data between a database server and a storage system
CN101901248B (en) * 2010-04-07 2012-08-15 北京星网锐捷网络技术有限公司 Method and device for creating and updating Bloom filter and searching elements
CN101841483B (en) * 2010-05-06 2013-06-19 北京星网锐捷网络技术有限公司 Hardware routing table management method and device and communication equipment
CN101923568B (en) * 2010-06-23 2013-06-19 北京星网锐捷网络技术有限公司 Method for increasing and canceling elements of Bloom filter and Bloom filter
US8458511B2 (en) 2010-09-17 2013-06-04 Oracle International Corporation Fault isolation using code paths
CN102271087B (en) * 2011-07-27 2017-09-29 中兴通讯股份有限公司 A kind of method for searching route and device
CN102333036B (en) * 2011-10-17 2015-06-03 中兴通讯股份有限公司 Method and system for realizing high-speed routing lookup
US8886827B2 (en) * 2012-02-13 2014-11-11 Juniper Networks, Inc. Flow cache mechanism for performing packet flow lookups in a network device
WO2014132136A2 (en) * 2013-02-27 2014-09-04 Marvell World Trade Ltd. Efficient longest prefix matching techniques for network devices
US10489365B2 (en) 2013-03-14 2019-11-26 Oracle International Corporation Predicate offload of large objects
US10642837B2 (en) 2013-03-15 2020-05-05 Oracle International Corporation Relocating derived cache during data rebalance to maintain application performance
US10528590B2 (en) 2014-09-26 2020-01-07 Oracle International Corporation Optimizing a query with extrema function using in-memory data summaries on the storage server
US9798655B2 (en) 2013-09-20 2017-10-24 Oracle International Corporation Managing a cache on storage devices supporting compression
US10229161B2 (en) 2013-09-20 2019-03-12 Oracle International Corporation Automatic caching of scan and random access data in computing systems
CN105095393B (en) * 2015-06-30 2018-11-16 努比亚技术有限公司 A kind of date storage method and device
US10331573B2 (en) 2016-11-04 2019-06-25 Oracle International Corporation Detection of avoidable cache thrashing for OLTP and DW workloads
CN106850541B (en) * 2016-12-13 2020-11-06 华为技术有限公司 Method and device for determining address of node in Internet of things
US11086876B2 (en) 2017-09-29 2021-08-10 Oracle International Corporation Storing derived summaries on persistent memory of a storage device
US10990596B2 (en) 2019-06-14 2021-04-27 Oracle International Corporation Non-disruptive referencing of special purpose operators for database management systems
US11200234B2 (en) 2019-06-14 2021-12-14 Oracle International Corporation Non-disruptive dynamic ad-hoc database catalog services
CN110781392B (en) * 2019-10-22 2022-08-12 深圳墨世科技有限公司 Dynamically scalable filtering method and device, computer equipment and storage medium
CN112035413B (en) * 2020-09-03 2024-02-20 杭州海康威视系统技术有限公司 Metadata information query method, device and storage medium
CN112637077B (en) * 2020-12-28 2023-02-28 杭州迪普科技股份有限公司 Dynamic route configuration method and device
US20230221864A1 (en) * 2022-01-10 2023-07-13 Vmware, Inc. Efficient inline block-level deduplication using a bloom filter and a small in-memory deduplication hash table

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
基于Bloom滤波器的缓存机制快速路由查找算法. 张瑞,刘仓明,姜金平,宋伟,王文鼐.北京邮电大学学报,第27卷. 2004
基于Bloom滤波器的缓存机制快速路由查找算法. 张瑞,刘仓明,姜金平,宋伟,王文鼐.北京邮电大学学报,第27卷. 2004 *
基于快速搜索树的路由查表算法. 谭兴晔,张勇,雷振明.计算机应用研究,第7期. 2005
基于快速搜索树的路由查表算法. 谭兴晔,张勇,雷振明.计算机应用研究,第7期. 2005 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603414A (en) * 2016-11-17 2017-04-26 上海红阵信息科技有限公司 Routing table fast comparing method
CN106603414B (en) * 2016-11-17 2020-04-10 珠海高凌信息科技股份有限公司 Routing table fast comparison method

Also Published As

Publication number Publication date
CN101150483A (en) 2008-03-26

Similar Documents

Publication Publication Date Title
CN100531102C (en) Route table adjustment method, route query method and device and route table storage device
CN102739720B (en) Distributed cache server system and application method thereof, cache clients and cache server terminals
EP2793436B1 (en) Content router forwarding plane architecture
CN101540723B (en) Flow stream searching method and device
CN105589664B (en) Virtual memory high speed transmission method
CN104811493B (en) The virtual machine image storage system and read-write requests processing method of a kind of network aware
US20020046291A1 (en) Network unit with address cache for frequently occurring network conversations
CN107832343B (en) Bitmap-based method for quickly retrieving data by MBF data index structure
CN103918230B (en) Synchronizing forwarding databases in a network device background
CN102567211A (en) SAS expander connection routing techniques
CN101159619A (en) Fast adding method, device and switching arrangement of ARP table
CN101236564A (en) Mass data high performance reading display process
CN108089825A (en) A kind of storage system based on distributed type assemblies
CN107517266A (en) A kind of instant communication method based on distributed caching
JP2002314561A5 (en)
CN103220230B (en) Support the dynamic shared buffer method that message crossbar stores
CN103139068B (en) The method E-Packeted, router and system
CN109002260A (en) A kind of data cached processing method and processing system
CN101102176A (en) A data backup method
CN108156249B (en) Network cache updating method based on approximate Markov chain
EP3481014B1 (en) Forwarding table entry access
US8719467B2 (en) Method, apparatus and system for mounting file system
CN106549983A (en) The access method and terminal of a kind of database, server
CN103491124A (en) Method for processing multimedia message data and distributed cache system
CN110035092A (en) A kind of implicit cache policy based on LCD in ICN network

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