CN106330553A - Message forwarding method and device - Google Patents
Message forwarding method and device Download PDFInfo
- Publication number
- CN106330553A CN106330553A CN201610764427.8A CN201610764427A CN106330553A CN 106330553 A CN106330553 A CN 106330553A CN 201610764427 A CN201610764427 A CN 201610764427A CN 106330553 A CN106330553 A CN 106330553A
- Authority
- CN
- China
- Prior art keywords
- routing table
- business board
- route
- message
- table items
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/54—Organization of routing tables
Abstract
The invention provides a message forwarding method and device. The method is applied to frame type forwarding equipment and comprises the following steps of matching target routing table entries corresponding to a message in a routing table of an appointed business board when the appointed business board receives the message; if the routing table is not matched with the target routing table entries corresponding to the message, forwarding the message to a routing proxy port of a next business board based on the default routing table entries in the routing table, and continuing to execute the same matching action as the appointed business board by the next business board; and when the routing table in any business board is matched with the target routing table entries corresponding to the message, forwarding the message based on the target routing table entries. Through utilization of the technical scheme, the forwarding performance of the frame type forwarding equipment about the message can be effectively improved.
Description
Technical field
The application relates to computer communication field, particularly relates to message forwarding method and device.
Background technology
Along with the development of network technology, network size is increasing so that hold the complete machine routing table of network forwarding equipment
The requirement of amount is more and more higher.
Currently, in general frame network forwarding equipment, it is usually present multiple business board, owing to the routing table of complete machine is held
Amount is typically, by the minimum routing list capacity decision in business board, to increase along with the quantity of complete machine Insert service plate
And increased, therefore limit the Message processing performance of frame type equipment.
Summary of the invention
In view of this, the application provides a kind of message forwarding method and device, in order to improve frame forwarding unit to message
Forwarding performance.
Specifically, the application is achieved by the following technical solution:
First aspect, the application provides a kind of message forwarding method, and described method is applied to frame forwarding unit, described frame
Formula forwarding unit includes multiple business board, the plurality of business board is the most pre-configured route agent's port, the plurality of business board
Routing table in the most pre-configured default route list item of route agent's port that outgoing interface is next business board, described method
Including:
When specified services plate receives message, the routing table of this business board is mated the purpose corresponding with described message
Route table items;
If do not match the purpose route table items corresponding with described message in described routing table, then based on this routing table
In default route list item, this message is forwarded to route agent's port of next business board, by next business board described continue
Perform the coupling action identical with described specified services plate;
When the routing table at arbitrary business board matches the purpose route table items corresponding with described message, then based on this
Purpose route table items, forwards described message.
Second aspect, the application provides a kind of apparatus for forwarding message, and described device is applied to frame forwarding unit, including:
First matching unit, for when specified services plate receives message, in the routing table of this business board coupling with
The purpose route table items that described message is corresponding;
First retransmission unit, if for not matching the purpose route table items corresponding with described message in described routing table
Time, then based on the default route list item in this routing table, this message is forwarded to route agent's port of next business board, by institute
State next business board and continue executing with the coupling action identical with described specified services plate;
Second retransmission unit, for when matching the purpose road corresponding with described message in the routing table of arbitrary business board
During by list item, then based on this purpose route table items, described message is forwarded.
The embodiment of the present application provides a kind of new message forwarding method, by the improvement to existing message forwarding mechanism, when
When the specified services plate of frame forwarding unit receives message, mate corresponding with described message in the routing table of this business board
Purpose route table items;If do not match the purpose route table items corresponding with described message in described routing table, then based on this
Default route list item in routing table, is forwarded to route agent's port of next business board by this message, by next business described
Plate continues executing with the coupling action identical with described specified services plate;When the routing table at arbitrary business board matches with described
During purpose route table items corresponding to message, then based on this purpose route table items, described message is forwarded.Above-mentioned default route
The outgoing interface of list item is route agent's port of next business board.
The outgoing interface of the default route list item owing to being pre-configured with is route agent's port of next business board, thus logical
Cross this default route list item, the routing table on all business boards can be integrated into a logical routing table so that this frame
The capacity specifications of the complete machine routing table of forwarding unit will not be dependent on the Minimal routing table capacity in business board, but all industry
The summation of the routing list capacity in business plate, thus in the message repeating process of logical routing table based on more capacity specification,
The frame forwarding unit forwarding performance to message can be effectively improved.
Accompanying drawing explanation
Fig. 1 is the flow chart of a kind of message forwarding method shown in the application one exemplary embodiment;
Fig. 2 is the application scenarios figure of a kind of message forwarding method shown in the application one exemplary embodiment;
Fig. 3 is the application scenarios figure of a kind of message forwarding method shown in the application one exemplary embodiment;
Fig. 4 is the hardware structure diagram of a kind of apparatus for forwarding message place equipment shown in the application one exemplary embodiment;
Fig. 5 is the block diagram of a kind of apparatus for forwarding message shown in the application one exemplary embodiment.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Explained below relates to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they are only with the most appended
The example of the apparatus and method that some aspects that described in detail in claims, the application are consistent.
It is only merely for describing the purpose of specific embodiment at term used in this application, and is not intended to be limiting the application.
" a kind of ", " described " and " being somebody's turn to do " of singulative used in the application and appended claims is also intended to include majority
Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wraps
Any or all containing one or more projects of listing being associated may combination.
Although should be appreciated that in the application possible employing term first, second, third, etc. to describe various information, but this
A little information should not necessarily be limited by these terms.These terms are only used for same type of information is distinguished from each other out.Such as, without departing from
In the case of the application scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depend on linguistic context, word as used in this " if " can be construed to " ... time " or " when ...
Time " or " in response to determining ".
In the related, frame forwarding unit has generally comprised multiple business board.Frame forwarding unit can be based on net
The topology information of network, generates complete machine routing table, it is possible to this complete machine routing table is issued to each business board.
But, under normal conditions, each business board has the routing table of different capabilities size, in order to make each business
Plate routing table can store the information of complete machine routing table, and the capacity of complete machine routing table typically can be by the Minimal routing in business board
Table capacity determines.
For example, it is assumed that there are three business boards in frame forwarding unit, respectively business A, business board B and business board C, these are three years old
The amount of capacity sequence of the routing table in individual business board is followed successively by, business board A > business board B > business board C, then this frame forwards and sets
The capacity of standby complete machine routing table is determined by the routing list capacity in business board C.
In the mechanism that message is forwarded by existing frame forwarding unit, when arbitrary business board of frame forwarding unit connects
When receiving message, the purpose route table items corresponding with this message can be mated in the routing table of this business board, when in arbitrary industry
When the routing table of business plate matches the purpose route table items corresponding with described message, can be based on this purpose route table items, will
This message forwards.If all not matching the purpose routing table corresponding with described message in the routing table of all of business board
Xiang Shi, by this packet loss.
In the related, it is by the Minimal routing of business board due to the capacity of the complete machine route table items of frame forwarding unit
Table capacity determines, therefore the capacity of complete machine routing table is restricted.And this frame forwarding unit to the forwarding of message time, by
In being only capable of the complete machine routing table less based on this capacity, because greatly limit the forwarding to message of the frame forwarding unit
Energy.
The embodiment of the present application provides a kind of new message forwarding method, by the improvement to existing message forwarding mechanism, frame
Formula forwarding unit, when specified services plate receives message, mates the mesh corresponding with described message in the routing table of this business board
Route table items;If do not match the purpose route table items corresponding with described message in described routing table, then based on this road
By the default route list item in table, this message is forwarded to route agent's port of next business board, by next business board described
Continue executing with the coupling action identical with described specified services plate;When the routing table at arbitrary business board matching and described report
During purpose route table items corresponding to literary composition, then based on this purpose route table items, described message is forwarded.Above-mentioned default router table
The outgoing interface of item is route agent's port of next business board.
The outgoing interface of the default route list item owing to being pre-configured with is route agent's port of next business board, thus logical
Cross this default route list item, the routing table on all business boards can be integrated into a logical routing table so that this frame
The capacity specifications of the complete machine routing table of forwarding unit will not be dependent on the Minimal routing table capacity in business board, but all industry
The summation of the routing list capacity in business plate, thus in the message repeating process of logical routing table based on more capacity specification,
The frame forwarding unit forwarding performance to message can be effectively improved.
See the flow chart that Fig. 1, Fig. 1 are a kind of message forwarding methods shown in the application one exemplary embodiment, described
Method is applied to frame forwarding unit, specifically includes following steps:
Step 101: when specified services plate receives message, coupling and described message pair in the routing table of this business board
The purpose route table items answered.
Step 102: if do not match the purpose route table items corresponding with described message in described routing table, then based on
Default route list item in this routing table, is forwarded to route agent's port of next business board by this message, by next industry described
Business plate continues executing with the coupling action identical with described specified services plate.
Step 103: when matching the purpose route table items corresponding with described message in the routing table at arbitrary business board,
Then based on this purpose route table items, described message is forwarded.
In the related, it is generally the case that each business board of frame forwarding unit has different capabilities size
Routing table, in order to make each business board routing table can store the routing iinformation of complete machine routing table, this frame forwarding unit
The capacity of complete machine routing table typically can be determined by the Minimal routing table capacity in business board.
In actual applications, when message is forwarded by frame forwarding unit, less owing to being only capable of based on this capacity
Complete machine routing table, therefore greatly limit the frame forwarding unit forwarding performance to message.
In embodiments of the present invention, multiple business boards of frame forwarding unit are the most pre-configured route agent's port, and
The most pre-configured default router table of route agent's port that outgoing interface is next business board in the routing table of multiple business boards
?.By this default route list item, the routing table on all business boards can be integrated into a logical routing table so that should
The capacity specifications of the complete machine routing table of frame forwarding unit will not be dependent on the Minimal routing table capacity in business board, but institute
There is the summation of routing list capacity in business board, thus at the message repeating process of logical routing table based on more capacity specification
In, the frame forwarding unit forwarding performance to message can be effectively improved.
For example, it is assumed that frame forwarding unit has three business boards, respectively business A, business board B and business board C, this
The amount of capacity sequence of the routing table of three business boards is followed successively by, business board A > business board B > business board C.
In the related, the capacity of complete machine routing table is determined (i.e. business board C by the Minimal routing table capacity in business board
Routing list capacity), and in the embodiment of the present application, complete machine routing list capacity is that the routing list capacity of business board A, B, C is added
Deduct number of slots again.
When realizing, frame forwarding unit can include multiple business board, route that the plurality of business board is the most pre-configured
Proxy port, the most pre-configured route agent's port that outgoing interface is next business board in the routing table of the plurality of business board
Default route list item.
Wherein, the subnet mask of the destination network segment of above-mentioned default route list item is all 0, and outgoing interface is on frame forwarding unit
Next groove position on route agent's port of business board.
For example, it is assumed that route agent's port of the business board of the first groove position of frame forwarding unit is IETH8_1, next
Route agent's port on business board on groove position is IETH8_2, then writing from memory in the routing table of the business route plate on first groove position
Recognize the outgoing interface of route table items then for IETH8_2.
During message forwards, the specified services plate of frame forwarding unit can receive message.When this specified services
After plate receives message, can be according to information such as the destination network segments of message, coupling and described report in the routing table of this business board
The purpose route table items that literary composition is corresponding.
If matching the purpose route table items corresponding with this message in this routing table, then based on this purpose route table items,
This message is forwarded.
If not matching the purpose route table items corresponding with this message in this routing table, then based on writing from memory in this routing table
Recognize route table items, route agent's port of the business board being forwarded to by this message on next groove position.
When route agent's port of the business board on next groove position receives above-mentioned message, can continue to repeat above-mentioned
The coupling action of specified services plate.
When the routing table at arbitrary business board matches the purpose route table items corresponding with above-mentioned message, then can be with base
In this route table items, this message is forwarded.
If all do not match the purpose route table items corresponding with this message in the routing table of all business boards, by this report
Literary composition abandons.
Such as, as illustrated in fig. 2, it is assumed that, frame forwarding unit has two pieces of business boards, and the specified services plate in first groove position has
Routing table 1, route agent's port of this specified services plate is IETH8_1, and the business board on next groove position has routing table 2,
The business board at routing table 2 place has proxy port IETH8_2.The destination network segment of the default route list item in routing table 1 is
0.0.0.0, outgoing interface is IETH8_2.
After specified services plate receives the message that purpose IP is IPF, can purpose IP based on this message (i.e. IPF) letter
Breath, mates the purpose route table items corresponding with this message in routing table 1.Owing to not matching and purpose IP in routing table 1
The purpose route table items that the message of (i.e. IPF) is corresponding, then can forward the packet to next business based on default route list item
Route agent's port (i.e. IETH8_2) of plate.After this route agent port IETH8_2 receives this message, can be in route
Table 2 is searched the purpose route table items mated with this message.Being IPF when determining this message and destination network segment, outgoing interface is ETH2_
When the purpose route table items of 2 mates, based on this purpose route table items, this message can be forwarded.
In the present embodiment, frame forwarding unit can generate by the purpose route table items in routing table based on each business board
Corresponding logical routing table;Described logical routing table summarizes the route table items in the routing table of business board;Create this logic road
Mapping relations by the purpose route table items in summary table Yu the groove position information of this purpose route table items place business board.
When realizing, frame forwarding unit can be based on the purpose route table items in the routing table in each business board and mark thereof
Knowledge information, generates logical routing table, this logical routing table can include purpose route table items in the routing table of each business board and
The identification information corresponding with this purpose route table items.
Frame forwarding unit can create in the routing table of each business board based on the identification information of each purpose route table items
The mapping relations of the groove position information of purpose route table items and this groove position, purpose route table items place.
Wherein, above-mentioned identification information is mainly used in identifying above-mentioned route table items, can be the index ID of above-mentioned route table items,
Can also be the capacity of above-mentioned route table items, here, repeat the most one by one.
For example, it is assumed that represent the identification information of purpose route table items with index ID, then the road in the business board on first groove position
Can be 1 by the index ID of first purpose route table items in table, the index ID of second purpose route table items be 2, with this
Analogize.
It is assumed that characterize the identification information of this route table items with the amount of capacity of route table items;In business board on first groove position
Routing table in the amount of capacity of first purpose route table items be 100 bytes, the capacity of second purpose route table items is
200 bytes, the route table items of the 3rd mesh is 100 bytes.Then can set, the identification information of the first route table items is 0 to 100 word
Joint, the identification information of second route table items is 100 bytes to 300 bytes, and the identification information of the 3rd route table items is 300 words
Joint is to 400 bytes, by that analogy.
Wherein, above-mentioned groove position information is mainly used in logo slot position, can be the groove bit number etc. of frame forwarding unit, at this
Repeat the most one by one.
Above-mentioned mapping relations are mainly used in the mapping relations characterizing purpose route table items with the groove position of its place business board, can
The mapping relations etc. of the beacon information of the identification information of route table items and this groove position for the purpose of by, it is possible to by mapping relations table
Record above-mentioned mapping relations.The content of above-mentioned mapping relations and existence form can be various, here, repeat the most one by one.
For example, it is assumed that the numbered SLOT1 of first groove position, the business board of first groove position has routing table 1, the industry of next groove position
Business plate has routing table 2, has 500 purpose route table items in routing table 1, and routing table 2 has 300 route table items, purpose
Route table items is identified with index ID.The then purpose route table items in the routing table of the business board that frame forwarding unit is set up
ID1-SLOT1, ID2-can be expressed as with the mapping relations of the groove position information of this groove position, purpose route table items place
SLOT1 ..., ID500-SLOT1;ID501-SLOT2 ..., ID800-SLOT2.
Certainly, above-mentioned mapping relations can be presented in mapping table, here, repeat the most one by one.
When above-mentioned frame forwarding unit is generating logical routing table, and create the purpose routing table in this logic route summary table
With the mapping relations of the groove position information of this purpose route table items place business board after, can to this locality purpose route table items carry out
Update.
In embodiments of the present invention, when above-mentioned frame forwarding unit is when receiving renewal route table items, can be described
Logical routing table mates the to be updated purpose route table items corresponding with this renewal route table items;And can be based on described mapping
Relation, determines the groove position information of this purpose route table items place business board, and described renewal route table items is stored to this groove
Correspondence position in the routing table of the business board that position information is corresponding.
When realizing, frame forwarding unit can be based on the relevant information updating route table items received, in the routing table
Mate the to be updated purpose route table items corresponding with this renewal route table items, and based on route table items to be updated and its place industry
The mapping relations of the groove position of business plate, determine the groove position that the purpose route table items to be updated with this is corresponding, are deposited by renewal route table items
In the relevant position of the routing table that Chu Zhiyu is positioned at the business board on this groove position.
Such as, as shown in Figure 3, it is assumed that above-mentioned frame forwarding unit has three business boards, respectively business board A, B and
Business board C, the groove bit number of its groove position, place is respectively SLOT1, SLOT2 and SLOT3.Have on each business board one the most right
The routing table answered, respectively routing table 1, routing table 2 and routing table 3.Routing table 1 has 500 purpose route table items, route
Table 2 has 300 purpose route table items, and routing table 3 has 200 purpose route table items, and purpose route table items enters with index ID
Line identifier.
Purpose route table items in routing table 1,2 and routing table 3 can generate logical routing table.This logical routing table wraps
Containing above-mentioned purpose route table items and corresponding index ID.
Purpose route table items is this purpose route table items with the mapping relations of this groove position, purpose route table items place information
The mapping relations of the groove bit number that index ID is corresponding, i.e. can be expressed as ID1-SLOT1, ID2-SLOT1 ...,
ID500-SLOT1;ID501-SLOT2 ..., ID800-SLOT2, ID801-SLOT3 ..., ID1000-SLOT3.
The destination network segment of this renewal route table items is IPE ', and destination network segment is that the purpose route table items of IPE can be and this
Update the purpose route table items to be updated of route table items coupling.Destination network segment is being designated of the purpose route table items of IPE
ID801, this purpose route table items is ID801-SLOT3 with the mapping relations of groove position.
When frame forwarding unit receives the renewal route table items that destination network segment is IPE ', can route based on this renewal
Information in list item, mates the purpose route table items that corresponding destination network segment is IPE in logical routing table.This frame turns
The equipment of sending out can check the identification information (i.e. ID801) of this purpose route table items, it is possible to mapping based on this ID801-SLOT3
Relation, determines the groove position of this route table items place business board.When determining that groove position is SLOT3 based on above-mentioned mapping relations, this sets
For the renewal route table items that destination network segment is IPE ' being stored in the phase in the routing table of the business board that groove position is SLOT3
The position answered.
Additionally, in order to improve the message repeating process utilization rate to each routing table, above-mentioned specified services plate is described frame
Business board on forwarding unit head groove position.
Business board in order to avoid loop occurs inside this frame forwarding unit, on above-mentioned frame forwarding unit most end groove position
Routing table in the most pre-configured described default route list item.
The embodiment of the present application provides a kind of new message forwarding method, by the improvement to existing message forwarding mechanism, when
When the specified services plate of frame forwarding unit receives message, mate corresponding with described message in the routing table of this business board
Purpose route table items;If do not match the purpose route table items corresponding with described message in described routing table, then based on this
Default route list item in routing table, is forwarded to route agent's port of next business board by this message, by next business described
Plate continues executing with the coupling action identical with described specified services plate;When the routing table at arbitrary business board matches with described
During purpose route table items corresponding to message, then based on this purpose route table items, described message is forwarded.Above-mentioned default route
The outgoing interface of list item is route agent's port of next business board.
Additionally, this frame forwarding unit is also based on the route table items in the routing table of each business board, generate logic road
By summary table, and create the groove position letter of the purpose route table items in this logic route summary table and this purpose route table items place business board
The mapping relations of breath.When existing route table items is updated by needs, this equipment can mate in logical routing table and be somebody's turn to do
Update the purpose route table items to be updated that route table items is corresponding;And can determine that this purpose route based on described mapping relations
The groove position information of list item place business board, and described renewal route table items is stored to the business board corresponding with this groove position information
Correspondence position in routing table.
On the one hand, the outgoing interface of the default route list item owing to being pre-configured with is route agent's end of next business board
Mouthful, thereby through this default route list item, the routing table on all business boards can be integrated into a logical routing table, make
The capacity specifications of the complete machine routing table obtaining this frame forwarding unit will not be dependent on the Minimal routing table capacity in business board, and
It is the summation of routing list capacity in all business boards, thus forwards at the message of logical routing table based on more capacity specification
During, the frame forwarding unit forwarding performance to message can be effectively improved.
On the other hand, owing to this frame forwarding unit can generate above-mentioned logical routing table and creates above-mentioned mapping pass
System, when this equipment needs to update or during newly added purpose route table items, can based on above-mentioned logical routing table and mapping relations,
The purpose route table items of this renewal is stored in the correspondence position in the routing table of corresponding business board, is more convenient for this
The management to the routing table of each business board of the frame forwarding unit.
Additionally, in order to improve the message repeating process utilization rate to each routing table, above-mentioned specified services plate can be this frame
Business board on formula forwarding unit head groove position;In order to avoid occurring loop inside this frame forwarding unit, above-mentioned frame forwards and sets
The routing table of the business board on standby most end groove position can not be pre-configured with described default route list item.
Below as a example by specified services plate is for the business board on frame forwarding unit head groove position, and combine this frame forward set
The standby scene E-Packeted, is described in detail above-described embodiment.
See the application scenarios figure that Fig. 2, Fig. 2 are a kind of message forwarding methods shown in the application one exemplary embodiment.
It is assumed that frame forwarding unit has three groove positions, each groove position has a business board, on each business board
There is corresponding routing table.From first groove position to groove position, end, its groove bit number is followed successively by SLOT1, SLOT2 and SLOT3, thereon
Business board is respectively business board A, business board B and business board C.The routing table that these three business board is corresponding is followed successively by routing table 1, road
By table 2, routing table 3, the route agent's port on these three business board is followed successively by IETH1_8, IETH2_8, IETH3_8.Route
Pre-configured default route list item in table 1 and routing table 2.The destination network segment of the default route list item of routing table 1 is 0.0.0.0,
Outgoing interface is IETH2_8.The destination network segment of the default route list item in routing table 2 is 0.0.0.0, and outgoing interface is IETH3_8.Road
By allocating default route table items non-in table 3.
It is assumed that table 1 can represent routing table 1, describe the relevant purpose route table items in routing table 1.
Destination network segment | Outgoing interface | Down hop |
IPA | ETH1_1 | IP1 |
IPB | ETH1_2 | IP2 |
IPC | ETH1_3 | IP3 |
IPD | ETH1_4 | IP4 |
0.0.0.0 | IETH2_8 |
Table 1
Table 2 can represent routing table 2, describes the relevant purpose route table items in routing table 2.
Destination network segment | Outgoing interface | Down hop |
IPE | ETH2_1 | IP5 |
IPF | ETH2_2 | IP6 |
IPG | ETH2_3 | IP7 |
IPH | ETH2_4 | IP8 |
0.0.0.0 | IETH3_8 |
Table 2
Table 3 can represent routing table 3, describes the relevant purpose route table items in routing table 3.
Destination network segment | Outgoing interface | Down hop |
IPI | ETH3_1 | IP9 |
IPJ | ETH3_2 | IP10 |
IPK | ETH3_3 | IP11 |
IPL | ETH3_4 | IP12 |
Table 3
Certainly, table 1 to table 3 show only the part list item of above-mentioned routing table, in addition to the list item that table 1 to table 3 shows, on
State routing table and can also include some other list items.
It is assumed that the business board A being positioned at first groove position can receive message, this business board A can receive destination network segment respectively
Message for IPA, IPF and IPZ.
Above-mentioned frame forwarding unit is as follows to the repeating process of the message that destination network segment is IPA:
After the business board A of this frame forwarding unit receives the message that destination network segment is IPA, can be based on this message
Destination network segment (i.e. IPA), mates the purpose route table items corresponding with this message in the routing table 1 of this business board A.
By above-mentioned coupling action, this frame forwarding unit can match the purpose route table items corresponding with this message
(i.e. destination network segment is the purpose route table items of IPA), it is possible to based on the purpose route table items that this destination network segment is IPA, to this
Message forwards.
This frame forwarding unit is as follows to the repeating process of the message that destination network segment is IPF:
After the business board A of this frame forwarding unit receives the message that destination network segment is IPF, can be based on this message
Destination network segment (i.e. IPF), mates the purpose route table items corresponding with this message in the routing table 1 of this business board A.
Through above-mentioned coupling, this frame forwarding unit does not matches the purpose route corresponding with this message in routing table 1
List item (i.e. destination network segment is the purpose route table items of IPF), then (i.e. can go out based on the default route list item in this routing table 1
Interface is the route table items of the route agent port IETH2_8 of next business board B), the message that destination network segment is IPF is forwarded
Route agent port IETH2_8 to next business board B.
After the route agent port IETH2_8 of next business board B receives the message that destination network segment is IPF, permissible
Based on this destination network segment IPF, routing table 2 is mated the purpose route table items corresponding with this message.
Through above-mentioned coupling, this frame forwarding unit can match the purpose road corresponding with this message in routing table 2
By list item (i.e. destination network segment is the purpose route table items of IPF), it is possible to based on the purpose routing table that this destination network segment is IPF
, this message is forwarded.
This frame forwarding unit is as follows to the repeating process of the message that destination network segment is IPZ:
After the business board A of this frame forwarding unit receives the message that destination network segment is IPZ, can be based on this message
Destination network segment (i.e. IPZ), mates the purpose route table items corresponding with this message in the routing table 1 of this business board.
Through above-mentioned coupling, this frame forwarding unit does not matches the purpose route corresponding with this message in routing table 1
List item (i.e. destination network segment is the purpose route table items of IPZ), then (i.e. can go out based on the default route list item in this routing table 1
Interface is the route table items of the route agent port IETH2_8 of next business board B), then can based on this default route list item,
The message that destination network segment is IPZ is forwarded to the route agent port IETH2_8 of next business board B.
After the route agent port IETH2_8 of next business board B receives the message that destination network segment is IPZ, permissible
Based on this destination network segment IPZ, routing table 2 is mated the purpose route table items corresponding with this message.
Through above-mentioned coupling, this frame forwarding unit does not matches the purpose route corresponding with this message in routing table 2
List item (i.e. destination network segment is the purpose route table items of IPZ), then can be IPZ by destination network segment based on this default route list item
Message be forwarded to the route agent port IETH3_8 of next business board C.
After the route agent port IETH3_8 of next business board C receives the message that destination network segment is IPZ, permissible
Based on this destination network segment IPZ, routing table 3 is mated the purpose route table items corresponding with this message.
Through above-mentioned coupling, this frame forwarding unit does not matches the purpose road corresponding with this message in routing table 3 yet
By list item, then can be by this packet loss.
By above-described embodiment, when the specified services plate of frame forwarding unit receives message, at this business board
Routing table in mate the purpose route table items corresponding with described message;If not matching in described routing table and described message
During corresponding purpose route table items, then based on the default route list item in this routing table, this message is forwarded to next business board
Route agent's port, next business board described continue executing with the coupling action identical with described specified services plate;When in office
When the routing table of one business board matches the purpose route table items corresponding with described message, then based on this purpose route table items,
Described message is forwarded.The outgoing interface of above-mentioned default route list item is route agent's port of next business board.
The outgoing interface of the default route list item owing to being pre-configured with is route agent's port of next business board, thus logical
Cross this default route list item, the routing table on all business boards can be integrated into a logical routing table so that this frame
The capacity specifications of the complete machine routing table of forwarding unit will not be dependent on the Minimal routing table capacity in business board, but all industry
The summation of the routing list capacity in business plate, thus in the message repeating process of logical routing table based on more capacity specification,
The frame forwarding unit forwarding performance to message can be effectively improved.
Corresponding with the embodiment of aforementioned message forwarding method, present invention also provides the embodiment of apparatus for forwarding message.
The embodiment of the application apparatus for forwarding message can be applied on frame forwarding unit.Device embodiment can be passed through
Software realizes, it is also possible to realize by the way of hardware or software and hardware combining.As a example by implemented in software, as a logic meaning
Device in justice, is that the processor by its place frame forwarding unit is by computer program corresponding in nonvolatile memory
Instruction reads and runs formation in internal memory.For hardware view, as shown in Figure 4, for the application apparatus for forwarding message place
A kind of hardware structure diagram of frame forwarding unit, except the processor shown in Fig. 4, internal memory, network interface and non-volatile deposit
Outside reservoir, the actual functional capability that in embodiment, the frame forwarding unit at device place forwards generally according to this message, it is also possible to bag
Include other hardware, this is repeated no more.
Refer to the block diagram that Fig. 5, Fig. 5 are a kind of apparatus for forwarding message shown in the application one exemplary embodiment.Described
Device is applied to the frame forwarding unit of Fig. 4, including:
First matching unit 510, for when specified services plate receives message, mates in the routing table of this business board
The purpose route table items corresponding with described message;
First retransmission unit 520, if for not matching the purpose route corresponding with described message in described routing table
During list item, then based on the default route list item in this routing table, this message is forwarded to route agent's port of next business board,
The coupling action identical with described specified services plate is continued executing with by next business board described;
Second retransmission unit 530, for when matching the mesh corresponding with described message in the routing table of arbitrary business board
Route table items time, then based on this purpose route table items, described message is forwarded.
In an optional embodiment, described device can also include:
Discarding unit 540, if for all not matching the mesh corresponding with described message in the routing table of all business boards
Route table items, then by this packet loss.
In another optional embodiment, described device can also include:
Signal generating unit 550, the purpose route table items in routing table based on each business board generates corresponding logic road
By table;Described logical routing table summarizes the route table items in the routing table of business board;
Creating unit 560, for creating the purpose route table items in this logic route summary table and this purpose route table items institute
Mapping relations in the groove position information of business board.
In another optional embodiment, described device can also include:
Second matching unit 570, for when receiving renewal route table items, mates in described logical routing table and is somebody's turn to do
Update the purpose route table items to be updated that route table items is corresponding;
Storage element 580, for based on described mapping relations, determining the groove position letter of this purpose route table items place business board
Breath, and the correspondence position described renewal route table items stored to the routing table of the business board corresponding with this groove position information.
In said apparatus, the function of unit and the process that realizes of effect specifically refer to corresponding step in said method
Realize process, do not repeat them here.
For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part sees method in fact
The part executing example illustrates.Device embodiment described above is only schematically, wherein said as separating component
The unit illustrated can be or may not be physically separate, and the parts shown as unit can be or can also
It not physical location, i.e. may be located at a place, or can also be distributed on multiple NE.Can be according to reality
Need to select some or all of module therein to realize the purpose of the application scheme.Those of ordinary skill in the art are not paying
In the case of going out creative work, i.e. it is appreciated that and implements.
The foregoing is only the preferred embodiment of the application, not in order to limit the application, all essences in the application
Within god and principle, any modification, equivalent substitution and improvement etc. done, should be included within the scope of the application protection.
Claims (10)
1. a message forwarding method, it is characterised in that described method is applied to frame forwarding unit, described frame forwarding unit
Including multiple business boards, the plurality of business board is the most pre-configured route agent's port, in the routing table of the plurality of business board
The most pre-configured default route list item of route agent's port that outgoing interface is next business board, described method includes:
When specified services plate receives message, the routing table of this business board is mated the purpose route corresponding with described message
List item;
If do not match the purpose route table items corresponding with described message in described routing table, then based in this routing table
Default route list item, is forwarded to route agent's port of next business board by this message, next business board described continue executing with
The coupling action identical with described specified services plate;
When the routing table at arbitrary business board matches the purpose route table items corresponding with described message, then based on this purpose
Route table items, forwards described message.
Method the most according to claim 1, it is characterised in that described method also includes:
Purpose route table items in routing table based on each business board generates corresponding logical routing table;Described logical routing table converges
Route table items in total routing table of business board;
Create the groove position information of the purpose route table items in this logic route summary table and this purpose route table items place business board
Mapping relations.
Method the most according to claim 2, it is characterised in that described side also includes:
When receiving renewal route table items, mate corresponding with this renewal route table items to be updated in described logical routing table
Purpose route table items;
Based on described mapping relations, determine the groove position information of this purpose route table items place business board, and update route by described
List item stores the correspondence position to the routing table of the business board corresponding with this groove position information.
Method the most according to claim 1, it is characterised in that described method also includes:
If all not matching the purpose route table items corresponding with described message in the routing table of all business boards, then by this message
Abandon.
Method the most according to claim 1, it is characterised in that described specified services plate is described frame forwarding unit head groove
Business board on position;
The most pre-configured described default route list item in the routing table of the business board on described frame forwarding unit most end groove position.
6. an apparatus for forwarding message, it is characterised in that described device is applied to frame forwarding unit, including:
First matching unit, for when specified services plate receives message, in the routing table of this business board, coupling is with described
The purpose route table items that message is corresponding;
First retransmission unit, if in time not matching the purpose route table items corresponding with described message in described routing table,
Then based on the default route list item in this routing table, this message is forwarded to route agent's port of next business board, by described
Next business board continues executing with the coupling action identical with described specified services plate;
Second retransmission unit, for when matching the purpose routing table corresponding with described message in the routing table of arbitrary business board
Xiang Shi, then based on this purpose route table items, forward described message.
Device the most according to claim 6, it is characterised in that described device also includes:
Signal generating unit, the purpose route table items in routing table based on each business board generates corresponding logical routing table;Institute
State logical routing table and summarize the route table items in the routing table of business board;
Creating unit, for creating the purpose route table items in this logic route summary table and this purpose route table items place business board
The mapping relations of groove position information.
Device the most according to claim 7, it is characterised in that described device also includes:
Second matching unit, for when receiving renewal route table items, mating and this renewal road in described logical routing table
The to be updated purpose route table items corresponding by list item;
Storage element, is used for based on described mapping relations, determines the groove position information of this purpose route table items place business board, and will
Described renewal route table items stores the correspondence position to the routing table of the business board corresponding with this groove position information.
Device the most according to claim 6, it is characterised in that described device also includes:
Discarding unit, if for all not matching the purpose routing table corresponding with described message in the routing table of all business boards
, then by this packet loss.
Device the most according to claim 6, it is characterised in that described specified services plate is that described frame forwarding unit is first
Business board on groove position;
The most pre-configured described default route list item in the routing table of the business board on described frame forwarding unit most end groove position.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610764427.8A CN106330553A (en) | 2016-08-30 | 2016-08-30 | Message forwarding method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610764427.8A CN106330553A (en) | 2016-08-30 | 2016-08-30 | Message forwarding method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106330553A true CN106330553A (en) | 2017-01-11 |
Family
ID=57789021
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610764427.8A Pending CN106330553A (en) | 2016-08-30 | 2016-08-30 | Message forwarding method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106330553A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107547364A (en) * | 2017-08-15 | 2018-01-05 | 新华三技术有限公司 | Route sending-down method, device and the network equipment |
CN107547405A (en) * | 2017-08-08 | 2018-01-05 | 杭州迪普科技股份有限公司 | Route agent's method and device |
CN110430135A (en) * | 2019-07-08 | 2019-11-08 | 新华三信息安全技术有限公司 | A kind of message processing method and device |
CN110875881A (en) * | 2018-08-31 | 2020-03-10 | 中兴通讯股份有限公司 | Route management method and distributed equipment |
CN111327546A (en) * | 2020-02-25 | 2020-06-23 | 杭州迪普科技股份有限公司 | Message forwarding method and device |
CN111654452A (en) * | 2020-05-08 | 2020-09-11 | 杭州迪普科技股份有限公司 | Message processing method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101252521A (en) * | 2008-03-19 | 2008-08-27 | 中兴通讯股份有限公司 | Method for forwarding message and distributed three layer network eqiupment |
CN101534253A (en) * | 2009-04-09 | 2009-09-16 | 中兴通讯股份有限公司 | Message forwarding method and device |
CN101552730A (en) * | 2009-05-08 | 2009-10-07 | 中兴通讯股份有限公司 | IP network equipment and routing optimum matching method of distributed IP network equipment |
CN102571587A (en) * | 2012-01-13 | 2012-07-11 | 大唐移动通信设备有限公司 | Method and equipment for forwarding messages |
CN105227463A (en) * | 2014-06-13 | 2016-01-06 | 杭州迪普科技有限公司 | Communication means in a kind of distributed apparatus between business board |
CN105847185A (en) * | 2015-01-16 | 2016-08-10 | 杭州迪普科技有限公司 | Message processing method and apparatus for distributed device and distributed device |
-
2016
- 2016-08-30 CN CN201610764427.8A patent/CN106330553A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101252521A (en) * | 2008-03-19 | 2008-08-27 | 中兴通讯股份有限公司 | Method for forwarding message and distributed three layer network eqiupment |
CN101534253A (en) * | 2009-04-09 | 2009-09-16 | 中兴通讯股份有限公司 | Message forwarding method and device |
CN101552730A (en) * | 2009-05-08 | 2009-10-07 | 中兴通讯股份有限公司 | IP network equipment and routing optimum matching method of distributed IP network equipment |
CN102571587A (en) * | 2012-01-13 | 2012-07-11 | 大唐移动通信设备有限公司 | Method and equipment for forwarding messages |
CN105227463A (en) * | 2014-06-13 | 2016-01-06 | 杭州迪普科技有限公司 | Communication means in a kind of distributed apparatus between business board |
CN105847185A (en) * | 2015-01-16 | 2016-08-10 | 杭州迪普科技有限公司 | Message processing method and apparatus for distributed device and distributed device |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107547405A (en) * | 2017-08-08 | 2018-01-05 | 杭州迪普科技股份有限公司 | Route agent's method and device |
CN107547405B (en) * | 2017-08-08 | 2019-12-06 | 杭州迪普科技股份有限公司 | Routing agent method and device |
CN107547364A (en) * | 2017-08-15 | 2018-01-05 | 新华三技术有限公司 | Route sending-down method, device and the network equipment |
CN110875881A (en) * | 2018-08-31 | 2020-03-10 | 中兴通讯股份有限公司 | Route management method and distributed equipment |
CN110430135A (en) * | 2019-07-08 | 2019-11-08 | 新华三信息安全技术有限公司 | A kind of message processing method and device |
CN110430135B (en) * | 2019-07-08 | 2021-10-26 | 新华三信息安全技术有限公司 | Message processing method and device |
CN111327546A (en) * | 2020-02-25 | 2020-06-23 | 杭州迪普科技股份有限公司 | Message forwarding method and device |
CN111327546B (en) * | 2020-02-25 | 2022-01-28 | 杭州迪普科技股份有限公司 | Message forwarding method and device |
CN111654452A (en) * | 2020-05-08 | 2020-09-11 | 杭州迪普科技股份有限公司 | Message processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106330553A (en) | Message forwarding method and device | |
US9979645B2 (en) | Hardware and software methodologies for creating and managing portable service function chains | |
US9559954B2 (en) | Indexed segment ID | |
CN113904983A (en) | Message processing method, network node and system | |
CN106470158B (en) | Message forwarding method and device | |
CN102792651B (en) | At the device of MAC layer application service path Route Selection | |
CN105939332B (en) | Defend the method and device of ARP attack message | |
JP2017518710A (en) | Service flow processing method, apparatus, and device | |
CN103516610A (en) | Service processing method, device and system | |
CN106209557B (en) | Message forwarding method and device | |
JP6618610B2 (en) | Routing management | |
CN101656663B (en) | Method, device and system for forwarding MPLS multicast message | |
CN102638407A (en) | Message forwarding method, device and network equipment | |
CN101707569A (en) | Method and device for processing NAT service message | |
CN106803809B (en) | Message forwarding method and device | |
CN109347670A (en) | Route tracing method and device, electronic equipment, storage medium | |
CN104780103A (en) | Message forwarding method and device | |
CN106161227A (en) | A kind of message forwarding method and device | |
CN107547346A (en) | A kind of message transmitting method and device | |
CN102938711B (en) | Network interface information configuring methods and the network equipment | |
CN107147581A (en) | The maintaining method and device of route table items | |
CN106209634B (en) | Learning method and device of address mapping relation | |
CN110166375A (en) | A kind of message forwarding method and device | |
JP2006174399A (en) | Communication method in group, system and recording medium | |
WO2015186366A1 (en) | Data transfer system, data transfer server, data transfer method, and program recording medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building Applicant after: Hangzhou Dipu Polytron Technologies Inc Address before: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building Applicant before: Hangzhou Dipu Technology Co., Ltd. |
|
CB02 | Change of applicant information | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170111 |
|
RJ01 | Rejection of invention patent application after publication |