CN103716240B - Message forwarding method, message receiving method and corresponding equipment - Google Patents
Message forwarding method, message receiving method and corresponding equipment Download PDFInfo
- Publication number
- CN103716240B CN103716240B CN201210370514.7A CN201210370514A CN103716240B CN 103716240 B CN103716240 B CN 103716240B CN 201210370514 A CN201210370514 A CN 201210370514A CN 103716240 B CN103716240 B CN 103716240B
- Authority
- CN
- China
- Prior art keywords
- router
- message
- business board
- business
- mark
- 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
Links
Abstract
The embodiment of the invention discloses a message forwarding method, a message receiving method, a first router, a second router and a router standby group. The message forwarding method includes the following steps that: the first router receives a first message, wherein the first router comprises a first service board; the first router searches a table item matched with the first message in a forwarding table; and if the first router detects that faults occur on the first service board, the first router packages the first message into a second message according to the identifier of a second service board in the table item, and forwards the second message to the second router. By means of the above technical schemes, a standby router does not need to be configured with a forwarding table similar to a forwarding table of a main router.
Description
Technical field
The present invention relates to communication technical field, the method that particularly to the method E-Packeting, receives message, the first via by
Device, the second router and router backup group.
Background technology
In a communication network, the data that base station sends can be transferred to Internet protocol or multiprotocol label by router
Exchange (internet protocol/multi-protocol label switching, ip/mpls) network.In order to improve number
According to the reliability of transmission, two routers can be set in a network, a router is active router, and another router is
The corresponding standby router of active router.Virtual Router Redundacy Protocol can be run between active router and standby router
(virtual router redundancy protocol, vrrp).Active router and standby router form a router
Backup group.Active router and standby router all include interface board (line processing unit, lpu) and business board
(service processing unit, spu).The spu of standby router is the standby spu of the spu of active router.Specifically come
Say, between the lpu and the lpu of standby router of active router, there is the link being communicated.If the spu on active router does not have
Break down, described message can be forwarded to the spu of active router by the lpu of active router after receiving message.Main road by
The spu of device can execute the corresponding operation of certain business to described message.If the spu on active router breaks down, main road
By described link, message can be sent to standby router by device.After the lpu of standby router receives described message, will
Described message sends to the spu of standby router, and the spu in order to standby router executes certain business described to described message
Corresponding operation.
In prior art, need to configure forward table, so that after the lpu of active router receives message, root on active router
According to the forward table on active router, the message that the lpu of active router receives is forwarded to the spu of active router.Accordingly, it is
When the spu of active router breaks down, the lpu of standby router is forwarded by the active router that above-mentioned link receives
Message be forwarded to the spu of standby router, need configuration on standby router similar with the forward table of active router turn
Deliver.The process configuring the forward table similar with the forward table of active router on standby router is comparatively laborious.
Content of the invention
The method E-Packeting, the method receiving message, the first router, secondary route is provided in the embodiment of the present invention
Device and router backup group, standby router do not need configure the forward table similar with the forward table of active router.
In order to reach above-mentioned technique effect, the embodiment of the invention discloses following technical scheme:
In a first aspect, providing a kind of method E-Packeting, methods described includes:
The first router receives the first message, and described the first router comprises the first business board;
Described the first router searches the list item mating with described first message in forward table, and described list item comprises second
The mark of business board, described second business board is the business board of the second router, described the second router be the described first via by
The standby router of device, described second business board is the standby traffic plate of described first business board;
If described the first router detects described first business board and breaks down, described the first router is according to described
Described first message is encapsulated as the second message by the mark of described second business board in list item, and described second message comprises described
The mark of the second business board;With
Described second message is forwarded to described the second router by described the first router, and described second message is used for making institute
State the second router and described first message is obtained according to described second message, and according to described second industry in described second message
Described first message is sent described second business board to described the second router by the mark of business plate.
In the first the possible implementation of method E-Packeting described in described first aspect offer, described list item
Also include the mark of business, described second message also includes the mark of described business, described second message is additionally operable to make described
According to the mark of the described business in described second message, two routers indicate that described second business board is held to described first message
The row corresponding operation of described business.
Turn described in the method E-Packeting according to described first aspect provides and the offer of described first aspect
Transmit messages literary composition method the first possible implementation, provide in described first aspect described in E-Packet the of method
In two kinds of possible implementations, described list item also includes the mark of described first business board, if described the first router does not have
Described first business board is detected to break down, described first message is forwarded in described list item described the first router
Described first business board corresponding to mark of described first business board.
Second aspect, provides a kind of method receiving message, and methods described includes:
The second router receives the second message that the first router forwards, and described second message is obtained by following approach:
Described the first router receives the first message, and described the first router comprises the first business board;
Described the first router searches the list item mating with described first message in forward table, and described list item comprises second
The mark of business board, described second business board is the business board of described the second router, and described the second router is described first
The standby router of router, described second business board is the standby traffic plate of described first business board;With
If described the first router detects described first business board and breaks down, described the first router is according to described
Described first message is encapsulated as described second message by the mark of described second business board in list item, and described second message comprises
The mark of described second business board;
Described the second router first message according to described second Receive message;With
Described the second router is according to the mark of described second business board in described second message by described first message
Send described second business board to described the second router.
In the first possible implementation of the method for described reception message that described second aspect provides, described second
Router sends described first message to described second tunnel according to the mark of described second business board in described second message
After described second business board in device, methods described also includes:
Described the second router indicates described second business board to described according to the mark of the business in described second message
The first message execution corresponding operation of described business, described list item also includes the mark of described business, and described second message also wraps
Include the mark of described business.
The third aspect, provides a kind of the first router, comprising: the first business board, receiving unit, searching unit, encapsulation are single
Unit and the first retransmission unit;
Described receiving unit, for receiving the first message;
Described searching unit, is mated with described first message that described receiving unit receives for searching in forward table
List item, described list item comprises the mark of the second business board, and described second business board is the business board of the second router, described the
Two routers are the standby routers of described the first router, and described second business board is the standby traffic of described first business board
Plate;
Described encapsulation unit, if described first business board is detected for described the first router broken down, according to
Described first message is encapsulated as second by the mark of described second business board in the described list item that described searching unit finds
Message, described second message comprises the mark of described second business board;
Described first retransmission unit, described second message for generating described encapsulation unit is forwarded to described second tunnel
By device, described second message is used for making described the second router obtain described first message according to described second message, and according to
Described first message is sent the institute to described the second router by the mark of described second business board in described second message
State the second business board.
In the first possible implementation of described the first router that the described third aspect provides, described encapsulation is single
Unit, is additionally operable to mark according to the business in described list item and described first message is encapsulated as described second message, and described second
Message also includes the mark of described business, and described second message is additionally operable to make described the second router according in described second message
Described business mark indicate described second business board to described first message execution the corresponding operation of described business.
The described the first router being provided according to the described third aspect and the described first via of described third aspect offer
By the first possible implementation of device, in the possible reality of the second of the described the first router of described third aspect offer
In existing mode, also include:
Second retransmission unit, if be not detected by described first business board for described the first router broken down,
Described in described first message that described receiving unit is received is forwarded in the described list item that described searching unit finds
Described first business board corresponding to mark of the first business board, described list item also includes the mark of described first business board.
Fourth aspect, provides a kind of the second router, comprising: the second business board, receiving unit, obtaining unit and transmission
Unit;
Described receiving unit, for receiving the second message of the first router forwarding, described second message passes through following way
Footpath obtains: described the first router receives the first message, and described the first router comprises the first business board;Described the first router
Search the list item that mates with described first message in forward table, described list item comprises the mark of the second business board, described second
Business board is the business board of the second router, and described the second router is the standby router of described the first router, described the
Two business boards are the standby traffic plates of described first business board;If described first business board is detected with described the first router
Break down, described first message is encapsulated by described the first router according to the mark of described second business board in described list item
For described second message, described second message comprises the mark of described second business board;
Described obtaining unit, described second message for being received according to described receiving unit obtains described first report
Literary composition;
Described transmitting element, for described second business in described second message that received according to described receiving unit
Described first message that described obtaining unit obtains is sent described second business to described the second router by the mark of plate
Plate.
In the first possible implementation of described the second router that described fourth aspect provides, described second business
Plate, is additionally operable to the described first message execution institute that the mark according to the business in described second message obtains to described transmitting element
The corresponding operation of business of stating, described list item also includes the mark of described business, and described second message also includes the mark of described business
Know.
5th aspect, provides a kind of router backup group, comprising: the described third aspect, the described third aspect the first
Described the first router and institute that the possible implementation of the second of possible implementation or the described third aspect provides
The described the second router of the first possible implementation offer of fourth aspect or described fourth aspect is provided.
In technique scheme, after comprising the first router reception first message of the first business board, look in forward table
Look for the list item mating with the first message, this list item comprises the mark of the second business board, the second business board is the industry of the second router
Business plate, the second router is the standby router of the first router, and the second business board is the standby traffic of described first business board
Plate, when the first router detects the first business board and breaks down, the mark according to the second business board in list item is reported first
Literary composition is encapsulated as the second message, and the second message comprises the mark of the second business board, and the second message is forwarded to the second router, and second
Router obtains the first message according to the second message, and is sent the first message according to the mark of the second business board in the second message
The second business board to the second router.Need not join in the second router as standby router in technique scheme
Put the forward table similar with the forward table of the first router as active router.If there is event in the business board of the first router
Barrier, described the first router is packaged to the message receiving, the message after being encapsulated.Wrap in message after described encapsulation
The mark of the business board containing the second router.The second router can obtain prior art from the message after encapsulation to be needed to pass through
Search the mark of the obtainable business board of forward table ability of the second router.Therefore, on standby router in technique scheme
Do not need to configure the forward table similar with the forward table of active router.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
Have technology description in required use accompanying drawing be briefly described it should be apparent that, for those of ordinary skill in the art
Speech, without having to pay creative labor, can also obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is the flow chart of a method E-Packeting provided in an embodiment of the present invention;
Fig. 2 is the flow chart of the method for a reception message provided in an embodiment of the present invention;
Fig. 3 is the flow chart of a method E-Packeting provided in an embodiment of the present invention;
Fig. 4 is the schematic diagram of transmission services message between two routers provided in an embodiment of the present invention;
Fig. 5 is the structural representation of a first router provided in an embodiment of the present invention;
Fig. 6 is the structural representation of a second router provided in an embodiment of the present invention;
Fig. 7 is the structural representation of a router backup group provided in an embodiment of the present invention.
Specific embodiment
Embodiments provide the method E-Packeting, the method receiving message, the first router, the second router
And router backup group.Wherein, active router is the first router, and the standby router of the first router is the second router.
First business board is comprised on the first router, the second router comprises the second business board.Second business board is the first business board
Standby traffic plate.The first router and the second router can be by running Virtual Router Redundacy Protocol (virtual
Router redundancy protocol, vrrp) one router backup group of composition.
In order that those skilled in the art more fully understand the technical scheme in the embodiment of the present invention, and make the present invention real
Apply the above-mentioned purpose of example, feature and advantage can become apparent from understandable, below in conjunction with the accompanying drawings to technical side in the embodiment of the present invention
Case is described in further detail.
Fig. 1 is a kind of flow chart of method E-Packeting provided in an embodiment of the present invention.Referring to Fig. 1, methods described bag
Include:
101: the first router receives the first message, described the first router comprises the first business board.
For example, described the first router can include at least one interface board and at least one business board.Described
After at least one interface board receives message, the described message receiving can be forwarded at least one business board described.Institute
The business of stating can according to the field in the message receiving, the message receiving be processed.Wherein, the field in message
It can be OSI (open system interconnect reference model, osirm)
The 4th layer of information to layer 7 of definition.For example, described business can be network address translation (network
Address translation, nat) business, the Internet protocol security (internet protocol security, ipsec)
Business, video traffic, firewall services, URL (uniform/universal resource locator,
Url) filter traffic or point-to-point (peer-to-peer, p2p) traffic visualization business.Wherein, video traffic can be frame
Relaying (frame relay, fr), RET (resolution enhancement technology, ret), many
MDI (multiple document interface, mdi) or content distributing network (content delivery
Network, cdn).
102: described the first router searches the list item mating with described first message in forward table, described list item comprises
The mark of the second business board.
Described second business board is the business board of the second router, and described the second router is the standby of described the first router
With router, described second business board is the standby traffic plate of described first business board.
For example, described forward table can be routing table or accesses control list (access control
List, acl).When searching the list item mating with the first message, the second layer of the osirm definition that can be comprised according to heading
Information or third layer information searching forward table, obtain the list item mating with described first message., acl is route taking acl as a example
The instruction list of configuration on device interface board, for the message of turnover on control interface plate port.Comprise to flow classification gauge in generally acl
Then and action corresponding with described flow classification rule.Wherein, described the first router can be according to the five of the message receiving yuan
Group is mated with described flow classification rule.When matching certain flow classification rule, then execution and described flow classification rule pair
The action answered.
103: if described the first router detects described first business board and breaks down, described the first router according to
Described first message is encapsulated as the second message by the mark of described second business board in described list item, and described second message comprises
The mark of described second business board.
104: described second message is forwarded to described the second router by described the first router, described second message is used for
Described the second router is made to obtain described first message according to described second message, and according to described in described second message
Described first message is sent described second business board to described the second router by the mark of two business boards.
According to technique scheme as can be seen that need not be in the secondary route as standby router in technique scheme
The forward table similar with the forward table of the first router as active router is configured on device.If the business board of the first router
Break down, described the first router is packaged to the message receiving, the message after being encapsulated.Report after described encapsulation
The mark of the business board of the second router is comprised in literary composition.The second router can obtain prior art from the message after encapsulation and need
Will be by searching the mark of the obtainable business board of forward table ability of the second router.Therefore, standby road in technique scheme
By not needing on device to configure the forward table similar with the forward table of active router.
Alternatively, in the method E-Packeting shown in Fig. 1, described list item can also include the mark of business, and described
Two messages also include the mark of described business, and described second message is additionally operable to make described the second router according to described second message
In described business mark indicate described second business board to described first message execution the corresponding operation of described business.
Alternatively, in the method E-Packeting shown in Fig. 1, described list item can also include the mark of described first business board
Know, if described the first router is not detected by described first business board and breaks down, described the first router is by described the
One message is forwarded to described first business board corresponding to mark of described first business board in described list item.
Fig. 2 is a kind of flow chart of method receiving message provided in an embodiment of the present invention.Referring to Fig. 2, methods described bag
Include:
201: the second router receives the second message that the first router forwards.
Described second message is obtained by following approach:
Described the first router receives the first message, and described the first router comprises the first business board;
Described the first router searches the list item mating with described first message in forward table, and described list item comprises second
The mark of business board, described second business board is the business board of described the second router, and described the second router is described first
The standby router of router, described second business board is the standby traffic plate of described first business board;With
If described the first router detects described first business board and breaks down, described the first router is according to described
Described first message is encapsulated as described second message by the mark of described second business board in list item, and described second message comprises
The mark of described second business board.
For example, described the first router can be included described at least one interface board and at least one business board at least
After one interface board receives message, the described message receiving can be forwarded at least one business board described.Described industry
Business can according to the field in the message receiving, the message receiving be processed.Wherein, the field in message is permissible
The 4th layer of information to layer 7 for osirm definition.For example, business can be nat business, ipsec business, video industry
Business, firewall services, url filter traffic or p2p traffic visualization business.Wherein, described video traffic can be fr, ret,
Mdi or cdn.
In method shown in Fig. 2, described second message that described the second router receives can be the described first via by
Device generates according to the method shown in Fig. 1.Described the first router forwards the detailed process of described second message to may refer to Fig. 1
Shown method, will not be described here.
202: described the second router first message according to described second Receive message.
Described the second router to described second message execution decapsulation operation after, you can obtain described first message and
The mark of described second business board.
203: described the second router is according to the mark of described second business board in described second message by described first
Message sends described second business board to described the second router.
According to technique scheme as can be seen that need not be in the secondary route as standby router in technique scheme
The forward table similar with the forward table of the first router as active router is configured on device.If the business board of the first router
Break down, described the first router is packaged to the message receiving, the message after being encapsulated.Report after described encapsulation
The mark of the business board of the second router is comprised in literary composition.The second router can obtain prior art from the message after encapsulation and need
Will be by searching the mark of the obtainable business board of forward table ability of the second router.Therefore, standby road in technique scheme
By not needing on device to configure the forward table similar with the forward table of active router.
Alternatively, in the method for reception message shown in Fig. 2, described the second router is according to the institute in described second message
State the second business board mark described first message is sent described second business board to described the second router after, institute
The method of stating can also include:
Described the second router indicates described second business board to described according to the mark of the business in described second message
The first message execution corresponding operation of described business, described list item also includes the mark of described business, and described second message also wraps
Include the mark of described business.
Fig. 3 is the flow chart of the method E-Packeting provided in an embodiment of the present invention.Forward table in this embodiment is concrete
For acl.Referring to Fig. 3, methods described includes:
301: the first router receives service message.
Generally include at least one interface board and at least one business board on each router, on a router,
The service message receiving is transferred to by corresponding business board by interface board and carries out Business Processing;Transmission between two routers
Link is typically established between the interface board of two routers.In the present embodiment, the second router is standby as the first router
With router, between the interface board and the interface board of the second router of the first router, set up transmission link.
302: the first router is passed through to search purpose information and the business information that the acl configuring obtains service message, wherein
Purpose information includes the information of purpose business board in the first router for the service message, and the purpose industry in the first router
The information of business standby traffic plate in the second router for the plate.
Acl is the instruction list of configuration on router interface plate, for the message of turnover on control interface plate port.Generally
Comprise shunting rule in acl and shunt regular corresponding shunting action from different, wherein router can be according to the industry receiving
The five-tuple of business message is mated with shunting rule, when matching certain shunting rule, then corresponding execution and this shunting rule
Then corresponding shunting action.Wherein, five-tuple typically refers to the source ip address of message, source port, purpose ip address, destination
Mouthful, and transport layer protocol number.
In the present embodiment, when acl is searched according to service message, if this service message mates certain shunting rule,
Corresponding shunting action can be obtained, this shunting action specifically can include business information and the purpose information of this service message.
Wherein, business information can refer to this service message is carried out what type of Business Processing, and the information that Business Processing needs,
For example, it is desired to service message is carried out with nat process, and nat processes the information needing, or needs service message is carried out
Ipsec process, and the information that ipsec process needs;Purpose information includes purpose industry in the first router for the service message
The information of business plate, and the information of standby traffic plate in the second router for the purpose business board in the first router, business
The information of plate refers mainly to address and the port of business board.In the embodiment of the present invention, if purpose business board is normal, the first via by
Service message is transferred to purpose business board by the information according to purpose business board by device, by purpose business board according to business information pair
Service message is processed;If purpose business board fault, execute follow-up 303.
303: when purpose business board breaks down, business information is encapsulated as the internal layer mark of service message by the first router
Sign, and the Information encapsulation of the standby traffic plate in purpose information is the outer layer label of service message.
In this example, need not configure consistent with the interface board of the first router on the interface board of the second router
Acl, but the Information encapsulation of acl is transmitted in the label of service message.Wherein, for the industry finding in acl
Business information, this business information is encapsulated as the vpn label of service message, for the purpose information finding in acl, should
The Information encapsulation of the standby traffic plate in purpose information is the outer layer label of service message.
Optionally, this outer layer label mainly includes the port in the address information of standby traffic plate, and standby traffic plate
Information, the concrete form of this label can be as shown in table 1 below:
Table 1
Length | Content | Description |
8b | in_seg_action | Tag operational: 1, represent and eject (pop) this label |
8b | inseg_tb | Target service plate |
8b | inseg_tp | Target port |
8b | reserved | Retain |
304: the service message after encapsulating is transferred to the second router by the first router.
Because the second router is the standby router of the first router, therefore when the target service plate in the first router
When breaking down, the first router is given tacit consent to by the transmission link between the second router, will encapsulate vpn label with outward
The service message of layer label is sent to the second router by this transmission link.
305: the second router searches the outer layer label of service message, obtain the information of standby traffic plate.
After interface board in the second router receives the service message of encapsulation, as shown in Table 1, due to outer layer label
Tag operational is " ejection ", and therefore the interface board in the second router can obtain standby traffic plate according to the outer layer label ejecting
Address (destination address in table 1) and port (target port in table 1) so that in be able to encapsulating according to destination address
The service message of layer label is sent on the target port of standby traffic plate.
306: the second router will encapsulate the information according to standby traffic plate for the service message of vpn label, be sent to standby
With on business board.
307: standby traffic plate is according to the business information processing business message in vpn label.
After standby traffic plate receives service message, vpn label can be decapsulated, obtain the type of Business Processing, and
The information that Business Processing needs.Wherein, standby traffic plate is consistent with prior art to the processing procedure of service message, and this is sent out
Bright embodiment repeats no more, and the core of the embodiment of the present invention is without in configuration in the second router and the first router one
The acl causing, but in target service plate fault, when needing by standby traffic plate processing business message, will find from acl
Forward related business information and purpose information to be encapsulated in the form of a label on service message and forwarded to service message,
Thus acl need not be configured on standby router, accordingly save acl resource.
Fig. 4 is the schematic diagram of transmission services message between two routers provided in an embodiment of the present invention.Below with two
As a example router, the process of transmission services message in the description embodiment of the present invention.
Wherein, the first router has interface board lpu1 and business board spu1, the second router has interface board
Lpu2 and business board spu2, spu2 are the standby traffic plate of spu1.It should be noted that Fig. 4 is as an example, on each router
Illustrate only an interface board and a business board, in practical application, the interface board that router is comprised and the number of business board
Amount is not limited.
Wherein, the lpu1 of the first router receives service message 1, and this service message 1 includes MAC layer
In (media access control, mac) protocol address, Internet protocol (internet protocol, ip) address and message
Hold (payload);Lpu1 searches purpose information and the business information that the acl configuring obtains this service message 1, wherein assumes business
Purpose business board in the first router for the message 1 is spu1, and this service message 1 needs to carry out nat process, then lpu1 obtains
Purpose information to service message 1 is the information of spu1 and the information of spu2, and business information needs to carry out nat for service message 1
Process, and carry out nat and process the information needing;It is assumed that spu1 breaks down, then lpu1 cannot by service message 1 according to
The information transfer of spu1 carries out nat process to spu1, and the business information of acquisition is encapsulated as the internal layer of service message 1 by therefore lpu1
Label, is expressed as lable2 in Fig. 4, the Information encapsulation by the spu2 obtaining is the outer layer label of service message 1, represents in Fig. 4
For lable1;The service message 1 encapsulating outer layer label and vpn label is passed through the chain between lpu1 and lpu2 by lpu1
Road, is transferred to lpu2;Lpu2 searches the outer layer label lable1 of service message 1, gets the information of spu2, specifically can include
The address of spu2 and port;The service message 1 encapsulating vpn label lable2 is sent on the port of spu2 lpu2;spu2
The vpn label lable2 of decapsulation service message 1, getting this service message 1 needs to carry out nat process, and carries out nat
Process the information needing;Spu2 carries out nat process according to the information obtaining to service message 1.
If from technique scheme as can be seen that the spu that the first router detects described the first router occurs event
Barrier, then the first router is encapsulated as new report according to the message that the first router is received by the mark of the spu of standby router
Literary composition, contains the mark of the spu of the second router in new message.After the second router receives new message, can be to new
Message execution decapsulation operation thus message after generating decapsulation.In addition, the second router can be according in new message
The spu of the second router mark, by decapsulation after message send to the spu of the second router.Therefore, the second router
On do not need to configure the forward table similar with the forward table of the first router.
Fig. 5 is a kind of structural representation of the first router provided in an embodiment of the present invention.Described the first router is permissible
Realized by the method shown in Fig. 1.Referring to Fig. 5, this first router includes: the first business board 510, receiving unit 520, lookup
Unit 530, encapsulation unit 540 and the first retransmission unit 550.
Wherein, described receiving unit 520, for receiving the first message.
For example, described receiving unit 520 can be receptor.
Described searching unit 530, for searching described first report receiving with described receiving unit 520 in forward table
The list item of literary composition coupling, described list item comprises the mark of the second business board, and described second business board is the business board of the second router,
Described the second router is the standby router of described the first router, and described second business board is the standby of described first business board
Use business board.
For example, described searching unit 530 can be network processing unit (network processor, np).
Described encapsulation unit 540, if described first business board is detected for described the first router broken down, root
Described first message is encapsulated as by the mark according to described second business board in the described list item that described searching unit 530 finds
Second message, described second message comprises the mark of described second business board;
Described first retransmission unit 550, described second message for generating described encapsulation unit 540 is forwarded to described
The second router, described second message is used for making described the second router obtain described first message according to described second message,
And sent described first message to described the second router according to the mark of described second business board in described second message
In described second business board.
For example, described first retransmission unit 550 can be the first transmitter.
Alternatively, encapsulation unit 540, can be also used for mark according to the business in described list item by described first message
It is encapsulated as described second message, described second message also includes the mark of described business, described second message is additionally operable to make described
The second router indicates described second business board to described first message according to the mark of the described business in described second message
Execute the corresponding operation of described business.
Alternatively, described the first router can also include:
Second retransmission unit (not shown in Fig. 5), if be not detected by described first industry for described the first router
Business plate breaks down, and described first message that described receiving unit is received is forwarded to described in described searching unit finds
Described first business board corresponding to mark of described first business board in list item, described list item also includes described first business
The mark of plate.
For example, described second retransmission unit can be the second transmitter.
For example, receiving unit 520, searching unit 530, encapsulation unit 540 can be carried on described the first router
Interface board on.
Fig. 6 is a kind of structural representation of the second router provided in an embodiment of the present invention.Described the second router is permissible
Realized by the method for the reception message shown in Fig. 2.Referring to Fig. 6, this second router includes: the second business board 610, reception are single
Unit 620, obtaining unit 630 and transmitting element 640.
Wherein, described receiving unit 620, for receiving the second message of the first router forwarding, described second message leads to
Cross following approach to obtain: described the first router receives the first message, and described the first router comprises the first business board;Described
One router searches the list item mating with described first message in forward table, and described list item comprises the mark of the second business board,
Described second business board is the business board of the second router, and described the second router is the alternate routing of described the first router
Device, described second business board is the standby traffic plate of described first business board;If described the first router detects described
One business board breaks down, and described the first router is according to the mark of described second business board in described list item by described first
Message is encapsulated as described second message, and described second message comprises the mark of described second business board.
For example, described receiving unit 620 can be receptor.
Described obtaining unit 630, described second message for being received according to described receiving unit 620 obtains described the
One message.
Described transmitting element 640, for described in described second message that received according to described receiving unit 620
Described in described first message that described obtaining unit 630 is obtained by the mark of two business boards sends to described the second router
Second business board 610.
For example, described transmitting element 640 can be transmitter.
Alternatively, described second business board 610, is additionally operable to mark according to the business in described second message to described
Send the described first message execution corresponding operation of described business that unit obtains, described list item also includes the mark of described business,
Described second message also includes the mark of described business.
Alternatively, above-mentioned receiving unit 620, obtaining unit 630 and transmitting element 640 can be carried on the second router
On interface board.
Fig. 7 is a kind of structural representation of router backup group provided in an embodiment of the present invention.Referring to Fig. 7, this router
Backup group includes: the first router 710 and the second router 720, and described the second router 720 is described the first router 710
Standby router, the second business board 721 that described the second router 720 comprises is to comprise in described the first router 710
The first business board 711 standby traffic plate.Described the first router 710 can be the first router shown in Fig. 5.Described
Two routers 720 can be the second router shown in Fig. 6.
Those skilled in the art can be understood that technology in the embodiment of the present invention can be by software plus required
General hardware platform mode realizing.Based on such understanding, the technical scheme in the embodiment of the present invention substantially or
Say that what prior art was contributed partly can be embodied in the form of software product, this computer software product can be deposited
In storage medium, such as rom/ram, magnetic disc, CD etc., including some instructions with so that a computer equipment is (permissible for storage
Be personal computer, server, or the network equipment etc.) execution each embodiment of the present invention or embodiment some part institutes
The method stated.
Each embodiment in this specification is all described by the way of going forward one by one, identical similar portion between each embodiment
Divide mutually referring to what each embodiment stressed is the difference with other embodiment.Real especially for system
For applying example, because it is substantially similar to embodiment of the method, so description is fairly simple, referring to embodiment of the method in place of correlation
Part illustrate.
Invention described above embodiment, does not constitute limiting the scope of the present invention.Any in the present invention
Spirit and principle within modification, equivalent and improvement of being made etc., should be included within the scope of the present invention.
Claims (11)
1. a kind of method E-Packeting is it is characterised in that methods described includes:
The first router receives the first message, and described the first router comprises the first business board;
Described the first router searches the list item mating with described first message in forward table, and described list item comprises the second business
The mark of plate, described second business board is the business board of the second router, and described the second router is described the first router
Standby router, described second business board is the standby traffic plate of described first business board, described the first router and described
Two routers pass through to run Virtual Router Redundacy Protocol one router backup group of composition;
If described the first router detects described first business board and breaks down, described the first router is according to described list item
In the mark of described second business board described first message is encapsulated as the second message, described second message comprises described second
The mark of business board;With
Described second message is forwarded to described the second router by described the first router, and described second message is used for making described
Two routers obtain described first message according to described second message, and according to described second business board in described second message
Mark described first message is sent described second business board to described the second router.
2. method according to claim 1 it is characterised in that
Described list item also includes the mark of business, and described second message also includes the mark of described business, and described second message is also
For making described the second router indicate described second business board to institute according to the mark of the described business in described second message
State the first message execution corresponding operation of described business.
3. method according to claim 1 and 2 it is characterised in that
Described list item also includes the mark of described first business board, if described the first router is not detected by described first industry
Business plate breaks down, and described first message is forwarded to the mark of described first business board in described list item by described the first router
Know corresponding described first business board.
4. a kind of method receiving message is it is characterised in that methods described includes:
The second router receives the second message that the first router forwards, and described second message is obtained by following approach:
Described the first router receives the first message, and described the first router comprises the first business board;
Described the first router searches the list item mating with described first message in forward table, and described list item comprises the second business
The mark of plate, described second business board is the business board of described the second router, described the second router be the described first via by
The standby router of device, described second business board is the standby traffic plate of described first business board, described the first router and institute
State the second router to pass through to run Virtual Router Redundacy Protocol one router backup group of composition;With
If described the first router detects described first business board and breaks down, described the first router is according to described list item
In the mark of described second business board described first message is encapsulated as described second message, described second message comprises described
The mark of the second business board;
Described the second router first message according to described second Receive message;With
Described first message is sent by described the second router according to the mark of described second business board in described second message
Described second business board to described the second router.
5. method according to claim 4 is it is characterised in that described the second router is according to the institute in described second message
State the second business board mark described first message is sent described second business board to described the second router after, institute
Method of stating also includes:
Described the second router indicates described second business board to described first according to the mark of the business in described second message
Message executes the corresponding operation of described business, and described list item also includes the mark of described business, and described second message also includes institute
State the mark of business.
6. a kind of the first router it is characterised in that include: the first business board, receiving unit, searching unit, encapsulation unit with
And first retransmission unit;
Described receiving unit, for receiving the first message;
Described searching unit, for searching the table mating with described first message that described receiving unit receives in forward table
, described list item comprises the mark of the second business board, and described second business board is the business board of the second router, described second tunnel
It is the standby router of described the first router by device, described second business board is the standby traffic plate of described first business board,
Described the first router and described the second router are passed through to run Virtual Router Redundacy Protocol one router backup group of composition;
Described encapsulation unit, if described first business board is detected for described the first router broken down, according to described
Described first message is encapsulated as the second message by the mark of described second business board in the described list item that searching unit finds,
Described second message comprises the mark of described second business board;
Described first retransmission unit, described second message for generating described encapsulation unit is forwarded to described secondary route
Device, described second message is used for making described the second router obtain described first message according to described second message, and according to institute
State described second business board in the second message mark described first message is sent to described the second router described in
Second business board.
7. the first router according to claim 6 it is characterised in that
Described encapsulation unit, is additionally operable to the mark according to the business in described list item and described first message is encapsulated as described second
Message, described second message also includes the mark of described business, described second message be additionally operable to make described the second router according to
The mark of the described business in described second message indicates that described second business board executes described business pair to described first message
The operation answered.
8. the first router according to claim 6 or 7 is it is characterised in that also include:
Second retransmission unit, if be not detected by described first business board for described the first router broken down, by institute
State described first message that receiving unit receives and be forwarded in the described list item that described searching unit finds described first
Described first business board corresponding to mark of business board, described list item also includes the mark of described first business board.
9. a kind of the second router is it is characterised in that include: the second business board, receiving unit, obtaining unit and transmission are single
Unit;
Described receiving unit, for receiving the second message of the first router forwarding, described second message is obtained by following approach
Arrive:
Described the first router receives the first message, and described the first router comprises the first business board;
Described the first router searches the list item mating with described first message in forward table, and described list item comprises the second business
The mark of plate, described second business board is the business board of the second router, and described the second router is described the first router
Standby router, described second business board is the standby traffic plate of described first business board, described the first router and described
Two routers pass through to run Virtual Router Redundacy Protocol one router backup group of composition;With
If described the first router detects described first business board and breaks down, described the first router is according to described list item
In the mark of described second business board described first message is encapsulated as described second message, described second message comprises described
The mark of the second business board;
Described obtaining unit, described second message for being received according to described receiving unit obtains described first message;
Described transmitting element, for described second business board in described second message that received according to described receiving unit
Described first message that described obtaining unit obtains is sent described second business board to described the second router by mark.
10. the second router according to claim 9 it is characterised in that
Described second business board, is additionally operable to the institute described transmitting element being obtained according to the mark of the business in described second message
State the first message execution corresponding operation of described business, described list item also includes the mark of described business, and described second message is also
Mark including described business.
A kind of 11. router backup groups it is characterised in that include: in claim 6 to 8 arbitrary described the first router and
The second router described in claim 9 or 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210370514.7A CN103716240B (en) | 2012-09-28 | 2012-09-28 | Message forwarding method, message receiving method and corresponding equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210370514.7A CN103716240B (en) | 2012-09-28 | 2012-09-28 | Message forwarding method, message receiving method and corresponding equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103716240A CN103716240A (en) | 2014-04-09 |
CN103716240B true CN103716240B (en) | 2017-02-01 |
Family
ID=50408839
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210370514.7A Active CN103716240B (en) | 2012-09-28 | 2012-09-28 | Message forwarding method, message receiving method and corresponding equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103716240B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107835126A (en) * | 2017-10-19 | 2018-03-23 | 盛科网络(苏州)有限公司 | A kind of message forwarding method and system |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105939324A (en) * | 2016-01-11 | 2016-09-14 | 杭州迪普科技有限公司 | Message forwarding method and device |
CN113472900B (en) * | 2021-09-01 | 2022-02-22 | 阿里云计算有限公司 | Message processing method, device, storage medium and computer program product |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5815668A (en) * | 1995-03-17 | 1998-09-29 | Nec Corporation | Slave inter-lan connection device, an inter-lan connection system and a hot standby method of said inter-lan connection system |
CN1949735A (en) * | 2005-10-12 | 2007-04-18 | 上海贝尔阿尔卡特股份有限公司 | Tag path fast protection switching method and system thereof |
CN101355486A (en) * | 2007-07-23 | 2009-01-28 | 中国移动通信集团公司 | Method, equipment and system for switching route |
CN101640642A (en) * | 2009-09-07 | 2010-02-03 | 华为技术有限公司 | Data packet transmitting method, device and system |
CN101977139A (en) * | 2010-07-28 | 2011-02-16 | 北京星网锐捷网络技术有限公司 | Route retransmission realization device and method, and switching equipment |
CN102377601A (en) * | 2011-10-14 | 2012-03-14 | 杭州华三通信技术有限公司 | LSP (Local Switched Path) fault notification method and LSP fault notification device |
-
2012
- 2012-09-28 CN CN201210370514.7A patent/CN103716240B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5815668A (en) * | 1995-03-17 | 1998-09-29 | Nec Corporation | Slave inter-lan connection device, an inter-lan connection system and a hot standby method of said inter-lan connection system |
CN1949735A (en) * | 2005-10-12 | 2007-04-18 | 上海贝尔阿尔卡特股份有限公司 | Tag path fast protection switching method and system thereof |
CN101355486A (en) * | 2007-07-23 | 2009-01-28 | 中国移动通信集团公司 | Method, equipment and system for switching route |
CN101640642A (en) * | 2009-09-07 | 2010-02-03 | 华为技术有限公司 | Data packet transmitting method, device and system |
CN101977139A (en) * | 2010-07-28 | 2011-02-16 | 北京星网锐捷网络技术有限公司 | Route retransmission realization device and method, and switching equipment |
CN102377601A (en) * | 2011-10-14 | 2012-03-14 | 杭州华三通信技术有限公司 | LSP (Local Switched Path) fault notification method and LSP fault notification device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107835126A (en) * | 2017-10-19 | 2018-03-23 | 盛科网络(苏州)有限公司 | A kind of message forwarding method and system |
Also Published As
Publication number | Publication date |
---|---|
CN103716240A (en) | 2014-04-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8830998B2 (en) | Separation of edge and routing/control information for multicast over shortest path bridging | |
US9130859B1 (en) | Methods and apparatus for inter-virtual local area network multicast services | |
US20220078114A1 (en) | Method and Apparatus for Providing Service for Traffic Flow | |
CN106878047B (en) | Fault handling method and device | |
US8396954B2 (en) | Routing and service performance management in an application acceleration environment | |
CN106878065B (en) | Configuration method and device of distributed aggregation system | |
CN101160850B (en) | Method and device for forwarding packet | |
CN103401773B (en) | Method and network equipment realizing interboard communication | |
CN102368727B (en) | Crossed IP network TRILL network communication method, system thereof and devices | |
CN102301663A (en) | Message processing method and associated devices | |
CN103780470B (en) | A kind of information synchronization method of IS IS and device | |
CN100514929C (en) | Method and device for message transfer of virtual private local area network | |
US20150341263A1 (en) | Associating internet protocol (ip) addresses with ethernet virtualisation interconnection (evi) links | |
CN106341298A (en) | Message transmission method and device | |
CN102546349B (en) | A kind of message forwarding method and equipment | |
CN105591834A (en) | Traffic monitoring method and device in VXLAN | |
CN101286922A (en) | Signalling control method, system and apparatus | |
EP3874687A1 (en) | Operations processing of multiple-protocol packets | |
CN108512669A (en) | It is used for transmission the method and system of broadcast data | |
CN103716240B (en) | Message forwarding method, message receiving method and corresponding equipment | |
CN104780090B (en) | Method, apparatus, the PE equipment of VPN multicast transmissions | |
CN102710495B (en) | Method and device for establishing routing information of user host computer in monitoring network | |
CN101626307B (en) | Method, system and device for processing path tracking request message | |
CN109218176B (en) | Message processing method and device | |
CN103391251B (en) | A kind of method and apparatus reducing redundant flow in PBB 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 |