CN106559326A - Flow forwarding method and device - Google Patents
Flow forwarding method and device Download PDFInfo
- Publication number
- CN106559326A CN106559326A CN201510631430.8A CN201510631430A CN106559326A CN 106559326 A CN106559326 A CN 106559326A CN 201510631430 A CN201510631430 A CN 201510631430A CN 106559326 A CN106559326 A CN 106559326A
- Authority
- CN
- China
- Prior art keywords
- host apparatus
- routing device
- flow
- equipment
- stand
- 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
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/28—Routing or path finding of packets in data switching networks using route fault recovery
-
- 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/22—Alternate routing
-
- 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/58—Association of routers
- H04L45/586—Association of routers of virtual routers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of flow forwarding method, during stand-by equipment in being virtual router redundance backup protocol VRRP backup group in the running status of routing device, the routing device stores the address information of the VRRP backup groups;If the host apparatus detected in the VRRP backup groups break down, and the routing device is when being the stand-by equipment of host apparatus association, then the flow that the routing device receiving terminal sends;If the destination address information of the flow is consistent with the address information that the routing device is stored, the routing device forwards the flow.The invention also discloses a kind of flow forwarding device.Present invention decreases in flow repeating process flow packet loss situation.
Description
Technical field
The present invention relates to network communication field, more particularly to a kind of flow forwarding method and device.
Background technology
With the development of the network communications technology, current VRRP (Virtual Router Redundancy
Protocol, virtual router redundance backup protocol) set of router in LAN is grouped together,
Referred to as one backup group.Backup group is by a Master router (host apparatus) and multiple Backup roads
It is made up of device (stand-by equipment), is functionally equivalent to a virtual router.In host apparatus forwarding flow
During amount, group address message is backed up by the VRRP for storing flow is forwarded, and stand-by equipment is not deposited
Storage VRRP backup group address messages, therefore it is unable to converting flow.But when host apparatus break down,
Stand-by equipment is switched to host apparatus so as to carry out the forwarding of flow by the failure of perception host apparatus.
But, the problem that presently, there are is, when stand-by equipment switches to host apparatus, due to also not storing VRRP
Backup group address message, if this when of flow has been transferred to the host apparatus, due to host apparatus
The flow cannot be forwarded, and produces the situation of flow packet loss.
The content of the invention
Present invention is primarily targeted at proposing a kind of flow forwarding method and device, it is intended to solve standby setting
It is standby when switching to host apparatus, due to cannot converting flow and cause the technical problem of the situation of flow packet loss.
For achieving the above object, a kind of flow forwarding method that the present invention is provided, the flow forwarding method
Comprise the following steps:
It is standby in being virtual router redundance backup protocol VRRP backup group in the running status of routing device
When using equipment, the routing device stores the address information of the VRRP backup groups;
If the host apparatus detected in the VRRP backup groups break down, and the routing device is
During the stand-by equipment of the host apparatus association, then the flow that the routing device receiving terminal sends;
If the destination address information of the flow is consistent with the address information that the routing device is stored,
Then the routing device forwards the flow.
Preferably, if the host apparatus detected in the VRRP backup groups break down, and institute
When stating the stand-by equipment that routing device is the host apparatus association, then the routing device receiving terminal is sent out
The step of flow for sending, includes:
If the host apparatus detected in the VRRP backup groups break down, and the routing device is
During the stand-by equipment of the host apparatus association, then running status is cut by the routing device by stand-by equipment
It is changed to host apparatus;
When running status is switched to host apparatus by stand-by equipment by the routing device, the route sets
The flow that standby receiving terminal sends.
Preferably, if the host apparatus detected in the VRRP backup groups break down, and institute
When stating the stand-by equipment that routing device is the host apparatus association, then the routing device receiving terminal is sent out
Before the step of flow for sending, the flow forwarding method also includes:
The routing device receives the VRRP messages that the host apparatus send;
If not receiving the VRRP messages that the host apparatus send within a preset time interval,
The routing device determines that the host apparatus break down.
Preferably, when the next stage equipment that the priority facility of the routing device is the host apparatus,
Or the routing device is when prestoring the incidence relation between the host apparatus and the routing device,
The routing device is the stand-by equipment of host apparatus association.
Additionally, for achieving the above object, the present invention also proposes a kind of flow forwarding device, and the flow turns
Transmitting apparatus include:
Memory module, is virtual router redundance backup protocol VRRP for the running status in routing device
During stand-by equipment in backup group, the address information of the VRRP backup groups is stored;
First receiver module, if breaking down for detecting the host apparatus in the VRRP backup groups,
And the routing device is when being the stand-by equipment of host apparatus association, then the flow that receiving terminal sends;
Forwarding module, if for the flow the storage of destination address information and the routing device described in
Address information is consistent, then forward the flow.
Preferably, first receiver module includes:
Switch unit, if break down for detecting the host apparatus in the VRRP backup groups, and
When the routing device is the stand-by equipment of the host apparatus association, then by running status by stand-by equipment
Switch to host apparatus;
Receiving unit, for running status is switched to host apparatus by stand-by equipment when the routing device
When, the flow that receiving terminal sends.
Preferably, the flow forwarding device also includes:
Second receiver module, for receiving the VRRP messages that the host apparatus send;
Determining module, if for not received described in the host apparatus transmission within a preset time interval
VRRP messages, it is determined that the host apparatus break down.
Preferably, when the next stage equipment that the priority facility of the routing device is the host apparatus,
Or the routing device is when prestoring the incidence relation between the host apparatus and the routing device,
The routing device is the stand-by equipment of host apparatus association.
Flow forwarding method proposed by the present invention and device, are that VRRP is standby in the running status of routing device
During stand-by equipment in part group, the routing device stores the address information of the VRRP backup groups, so
If the host apparatus for being detected in the VRRP backup groups afterwards break down, and the routing device is institute
When stating the stand-by equipment of host apparatus association, the flow that receiving terminal sends, and in the purpose of the flow
Address information is consistent with the address information that the routing device is stored, and directly forwards the flow, and
It is not, when running status is switched to host apparatus by stand-by equipment by routing device, will first to store described
The address information of VRRP backup groups, then can just carry out the forwarding of flow, lead to not forward the flow and
The situation of flow packet loss is produced, this programme directly forwards the stream for receiving by the address information being previously stored
Amount, reduces the situation of flow packet loss in flow repeating process.
Description of the drawings
Schematic flow sheets of the Fig. 1 for inventive flow retransmission method first embodiment;
If Fig. 2 is the host apparatus that the present invention is detected in the VRRP backup groups break down, and it is described
When routing device is the stand-by equipment of the host apparatus association, then the routing device receiving terminal sends
Flow preferred embodiment schematic flow sheet;
Schematic flow sheets of the Fig. 3 for inventive flow retransmission method 3rd embodiment;
High-level schematic functional block diagrams of the Fig. 4 for inventive flow retransmission unit first embodiment;
Fig. 5 is the refinement high-level schematic functional block diagram of the preferred embodiment of the first receiver module in Fig. 4;
High-level schematic functional block diagrams of the Fig. 6 for inventive flow retransmission unit 3rd embodiment.
The realization of the object of the invention, functional characteristics and advantage will be done further in conjunction with the embodiments referring to the drawings
Explanation.
Specific embodiment
It should be appreciated that specific embodiment described herein is not used to limit only to explain the present invention
The fixed present invention.
The present invention provides a kind of flow forwarding method.
With reference to Fig. 1, schematic flow sheets of the Fig. 1 for inventive flow retransmission method first embodiment.
The present embodiment proposes a kind of flow forwarding method, and the flow forwarding method includes:
Step S10, is that virtual router redundance backup protocol VRRP is standby in the running status of routing device
During stand-by equipment in part group, the routing device stores the address information of the VRRP backup groups;
In virtual router redundance backup protocol VRRP backup group, including a host apparatus and one
Or multiple stand-by equipments, the present embodiment preferably includes multiple stand-by equipments.In host apparatus and stand-by equipment
After election contest success, host apparatus and the corresponding routing device of stand-by equipment can all store the VRRP backups
The address information of group, the i.e. running status in routing device are virtual router redundance backup protocol VRRP
During stand-by equipment in backup group, the routing device stores the address information of the VRRP backup groups,
The address information includes virtual physical address or virtual ip address, the present embodiment preferably address information
For virtual physical address (Media Access Control, MAC), the routing device stores the VRRP
The mode of the address information of backup group is preferably:The routing device first passes through its chain of command and sends described
Then the corresponding virtual physical address of VRRP messages stores the physical vlan by forwarding surface to forwarding surface
Address, it is when realizing the host apparatus in VRRP backup groups and normally sending VRRP messages, i.e., described
Under normal operating conditions, the corresponding routing device of each stand-by equipment has been previously stored institute to host apparatus
State the virtual physical address in VRRP backup groups.
Step S20, if the host apparatus detected in the VRRP backup groups break down, and it is described
When routing device is the stand-by equipment of the host apparatus association, then the routing device receiving terminal sends
Flow;
In the present embodiment, the embodiment of step S20 includes:
1) it is when mode one, the host apparatus in the VRRP backup groups are detected break down, described
Based on default priority facility, routing device first determines whether the host apparatus are upper level equipment, described
Upper level is to represent between two equipment it is the adjacent relation of priority facility, when the host apparatus of association are
During the upper level equipment of the routing device, in other words, that is, when the equipment of the routing device is excellent
When first level is the next stage equipment of the host apparatus, you can determine the routing device and close for host apparatus
The stand-by equipment of connection, now, the flow that the routing device receiving terminal sends.
2) it is when mode two, the host apparatus in the VRRP backup groups are detected break down, described
Routing device first determines whether to prestore the incidence relation between the host apparatus and the routing device,
When the routing device prestores the incidence relation between the host apparatus and the routing device, i.e.,
The stand-by equipment that the routing device is host apparatus association is can determine that, now, the routing device is received
The flow that terminal sends.In the present embodiment, the host apparatus and routing device connect heart beating in advance
Line, i.e., described host apparatus set up relevant based on the heartbeat being connected with the routing device,
When the host apparatus break down, perceive with by the routing device that the host apparatus are connected heartbeat
The failure of the host apparatus, and the flow that receiving terminal sends.
Step S30, if the address letter that the destination address information of the flow is stored with the routing device
Breath is consistent, then the routing device forwards the flow.
In the present embodiment, when the routing device receives the flow of terminal transmission, first determine described
Whether the corresponding destination address information of flow for receiving is matched with the address information for storing, if matching,
The flow can be forwarded according to the address information of storage directly, the mode of the forwarding flow is described
The forward table that routing device inquiry prestores, to obtain the exit port of the flow, then according to the institute for obtaining
State exit port and forward the flow, by the direct converting flow of the address information for prestoring, improve flow and turn
The speed sent out, while, it is not necessary to when the flow of terminal transmission is received, to first store the VRRP
The address information of backup group, after then waiting until the address information storage of VRRP backup groups, then carries out flow
Forwarding, this process for waiting, as terminal may always all in transmitted traffic, and the now road
The forwarding of flow cannot be carried out by equipment, and cause the packet loss of the flow.
The flow forwarding method that the present embodiment is proposed, is VRRP backup groups in the running status of routing device
In stand-by equipment when, the routing device stores the address information of the VRRP backup groups, Ran Houruo
The host apparatus detected in the VRRP backup groups break down, and the routing device is the master
During the stand-by equipment associated with equipment, the flow that receiving terminal sends, and in the destination address of the flow
Information is consistent with the address information that the routing device is stored, and directly forwards the flow, rather than
When running status is switched to host apparatus by stand-by equipment by routing device, the VRRP will be first stored
The address information of backup group, then can just carry out the forwarding of flow, lead to not forward the flow and produce
The situation of flow packet loss, this programme directly forward the flow for receiving by the address information being previously stored,
Reduce the situation of flow packet loss in flow repeating process.
Further, in order to increase the motility of flow forwarding, present invention stream is proposed based on first embodiment
The second embodiment of amount retransmission method, in the present embodiment, with reference to Fig. 2, step S20 includes:
Step S21, if the host apparatus detected in the VRRP backup groups break down, and it is described
When routing device is the stand-by equipment of host apparatus association, then the routing device by running status by
Stand-by equipment switches to host apparatus;
Step S22, when running status is switched to host apparatus by stand-by equipment by the routing device, institute
State the flow of routing device receiving terminal transmission.
In the present embodiment, host apparatus of the routing device in the VRRP backup groups are detected
When breaking down, whether the routing device first determines the host apparatus based on default priority facility
For upper level equipment, if the host apparatus are the upper level equipment of the routing device, the route sets
It is standby that running status is switched to into host apparatus, and the routing device receiving terminal by stand-by equipment directly
The flow of transmission.Further, if the host apparatus are not the upper level equipment of the routing device,
Then the routing device keeps constant.In the present embodiment, the priority facility includes the VRRP
Default switching priority in backup group, i.e., standby can be set to each in the VRRP backup groups in advance
Standby corresponding routing device sets switching priority, when the host apparatus break down, needs the master
When switching to host apparatus with the routing device of equipment next stage, the route of the host apparatus next stage sets
It is standby that host apparatus can directly be switched to based on default priority facility, and now, set than the route
Other lower routing devices of standby priority can enter resting state, in the same manner, will transport in the routing device
When row state switches to host apparatus by stand-by equipment, the routing device of the next stage of the routing device enters
Row working condition, and the lower routing device of other ranks is equivalent to entering resting state.
Further, it is to improve the route to set the motility for switching to host apparatus, the routing device
Can also first determine whether to prestore when the host apparatus in detecting the VRRP backup groups break down
The incidence relation having between the host apparatus and the routing device, if prestore the host apparatus with
Running status directly can be set by the incidence relation between the routing device, the routing device by standby
It is standby to switch to host apparatus.I.e. described host apparatus and routing device connect heartbeat in advance, based on connection
The heartbeat set up incidence relation, and when the host apparatus break down, primary set with described
The routing device of standby connection heartbeat can perceive the failure of the host apparatus, and by running status by standby
Host apparatus are switched to directly with equipment.
Further, in order to increase the motility of flow forwarding, present invention stream is proposed based on first embodiment
The 3rd embodiment of amount retransmission method, in the present embodiment, with reference to Fig. 3, before step S20, institute
Stating flow forwarding method also includes:
Step S40, the routing device receive the VRRP messages that the host apparatus send;
Step S50, if not receiving the VRRP that the host apparatus send within a preset time interval
Message, then the routing device determine that the host apparatus break down.
In the present embodiment, the host apparatus in the VRRP backup groups send VRRP messages in real time
During, correspondingly, the VRRP messages that host apparatus described in the routing device real-time reception send,
Now the host apparatus send VRRP messages in real time, illustrate that the host apparatus are in normal work mould
Formula, sends a VRRP message in each 1 second such as the host apparatus, and works as the routing device pre-
It is if not receiving the VRRP messages in time interval, primary as described in interval does not all receive for 3 seconds to set
The VRRP messages that preparation is sent, then the routing device can determine that the host apparatus break down,
And the flow of terminal transmission can be directly received.
The present invention further provides a kind of flow forwarding device.
With reference to Fig. 4, high-level schematic functional block diagrams of the Fig. 4 for inventive flow retransmission unit preferred embodiment.
It is emphasized that it will be apparent to those skilled in the art that functional block diagram is only shown in Fig. 4
The exemplary plot of one preferred embodiment, those skilled in the art is around the flow forwarding device shown in Fig. 4
Functional module, the supplement of new functional module can be carried out easily;The title of each functional module is self-defined
Title, is only used for aiding in each program function block for understanding the flow forwarding device, is not used in and limits this
Bright technical scheme, the core of technical solution of the present invention are that the functional module of each self-defined title will reach
Into function.
The present embodiment proposes a kind of flow forwarding device, and the flow forwarding device includes:
Memory module 10, is virtual router redundance backup protocol for the running status in routing device
During stand-by equipment in VRRP backup groups, the address information of the VRRP backup groups is stored;
In virtual router redundance backup protocol VRRP backup group, including a host apparatus and one
Or multiple stand-by equipments, the present embodiment preferably includes multiple stand-by equipments.In host apparatus and stand-by equipment
After election contest success, host apparatus and the corresponding routing device of stand-by equipment can all store the VRRP backups
The address information of group, the i.e. running status in routing device are virtual router redundance backup protocol VRRP
During stand-by equipment in backup group, the memory module 10 stores the address information of the VRRP backup groups,
The address information includes virtual physical address or virtual ip address, the present embodiment preferably address information
For virtual physical address (Media Access Control, MAC), the memory module 10 stores described
The mode of the address information of VRRP backup groups is preferably:First pass through its chain of command and send the VRRP reports
, to forwarding surface, then the memory module 10 is described by forwarding surface storage for the corresponding virtual physical address of text
Virtual physical address, when realizing the host apparatus in VRRP backup groups and normally sending VRRP messages,
I.e. described host apparatus under normal operating conditions, deposit in advance by the corresponding routing device of each stand-by equipment
The virtual physical address in the VRRP backup groups is stored up.
First receiver module 20, if there is event for detecting the host apparatus in the VRRP backup groups
Barrier, and the routing device when being the stand-by equipment of host apparatus association, then receiving terminal sends
Flow;
In the present embodiment, if the host apparatus detected in the VRRP backup groups break down, and
When the routing device is the stand-by equipment of the host apparatus association, then first receiver module 20 connects
The embodiment for receiving the flow that terminal sends includes:
1) it is when mode one, the host apparatus in the VRRP backup groups are detected break down, described
Based on default priority facility, routing device first determines whether the host apparatus are upper level equipment, described
Upper level is to represent between two equipment it is the adjacent relation of priority facility, when the host apparatus of association are
During the upper level equipment of the routing device, in other words, that is, when the equipment of the routing device is excellent
When first level is the next stage equipment of the host apparatus, you can determine the routing device and close for host apparatus
The stand-by equipment of connection, now, the flow that 20 receiving terminal of the first receiver module sends.
2) it is when mode two, the host apparatus in the VRRP backup groups are detected break down, described
Routing device first determines whether to prestore the incidence relation between the host apparatus and the routing device,
When the routing device prestores the incidence relation between the host apparatus and the routing device, i.e.,
Can determine that the stand-by equipment that the routing device is host apparatus association, now, first receiver module
The flow that 20 receiving terminals send.In the present embodiment, the host apparatus and routing device connect in advance
Heartbeat is connect, i.e., described host apparatus set up relevant pass based on the heartbeat being connected with the routing device
System, when the host apparatus break down, the routing device for being connected heartbeat with the host apparatus is i.e.
The failure of the host apparatus, and the flow that 20 receiving terminal of the first receiver module sends can be perceived.
Forwarding module 30, if for the institute that stores with the routing device of destination address information of the flow
State address information consistent, then forward the flow.
In the present embodiment, when first receiver module 20 receives the flow of terminal transmission, first really
Whether the fixed corresponding destination address information of flow for receiving is matched with the address information for storing, if
Matching, the forwarding module 30 directly can forward the flow, the forwarding according to the address information of storage
Module 30 forwards the forward table that the mode of the flow is that the routing device inquiry prestores, described to obtain
The exit port of flow, then the forwarding module 30 flow is forwarded according to the exit port for obtaining,
By the direct converting flow of the address information for prestoring, the speed of flow forwarding is improve, while, it is not necessary to
When the flow of terminal transmission is received, the address information of the VRRP backup groups to be first stored, then
After the address information storage of VRRP backup groups, then the forwarding of flow is carried out, this process for waiting,
As terminal may always all in transmitted traffic, and now the routing device cannot carry out the forwarding of flow,
And cause the packet loss of the flow.
The flow forwarding device that the present embodiment is proposed, is VRRP backup groups in the running status of routing device
In stand-by equipment when, the routing device stores the address information of the VRRP backup groups, Ran Houruo
The host apparatus detected in the VRRP backup groups break down, and the routing device is the master
During the stand-by equipment associated with equipment, the flow that receiving terminal sends, and in the destination address of the flow
Information is consistent with the address information that the routing device is stored, and directly forwards the flow, rather than
When running status is switched to host apparatus by stand-by equipment by routing device, the VRRP will be first stored
The address information of backup group, then can just carry out the forwarding of flow, lead to not forward the flow and produce
The situation of flow packet loss, this programme directly forward the flow for receiving by the address information being previously stored,
Reduce the situation of flow packet loss in flow repeating process.
Further, in order to increase the motility of flow forwarding, present invention stream is proposed based on first embodiment
The second embodiment of amount retransmission unit, in the present embodiment, with reference to Fig. 5, first receiver module 20
Including:
Switch unit 21, if breaking down for detecting the host apparatus in the VRRP backup groups,
And the routing device is when being the stand-by equipment of host apparatus association, then running status is set by standby
It is standby to switch to host apparatus;
Receiving unit 22, for running status is switched to primary setting by stand-by equipment when the routing device
When standby, the flow that receiving terminal sends.
In the present embodiment, host apparatus of the routing device in the VRRP backup groups are detected
When breaking down, whether the routing device first determines the host apparatus based on default priority facility
For upper level equipment, if the host apparatus are the upper level equipment of the routing device, the switching list
Running status is directly switched to host apparatus, and the receiving unit 22 to connect by stand-by equipment by unit 21
Receive the flow that terminal sends.Further, if the host apparatus are not the upper levels of the routing device
Equipment, then the routing device holding is constant.In the present embodiment, the priority facility includes institute
State default switching priority in VRRP backup groups, i.e., can in advance to each in the VRRP backup groups
The corresponding routing device of individual stand-by equipment sets switching priority, when the host apparatus break down, needs
When wanting the routing device of the host apparatus next stage to switch to host apparatus, the host apparatus next stage
Routing device be the switch unit 21 based on directly switching to primary setting by default priority facility
It is standby, and now, other routing devices lower than the routing device priority can enter resting state,
In the same manner, when running status is switched to host apparatus by stand-by equipment by the switch unit 21, the road
State is operated by the routing device of the next stage of equipment, and the lower routing device of other ranks is suitable
In entering resting state.
Further, it is to improve the route to set the motility for switching to host apparatus, the routing device
Can also first determine whether to prestore when the host apparatus in detecting the VRRP backup groups break down
The incidence relation having between the host apparatus and the routing device, if prestore the host apparatus with
Incidence relation between the routing device, the switch unit 21 can be directly by running status by standby
Equipment switches to host apparatus.I.e. described host apparatus and routing device connect heartbeat in advance, based on even
The heartbeat for connecing sets up incidence relation, and when the host apparatus break down, it is primary with described
The routing device of equipment connection heartbeat be the event of the perception host apparatus by the switch unit 21
Barrier, and running status is directly switched to into host apparatus by stand-by equipment.
Further, in order to increase the motility of flow forwarding, present invention stream is proposed based on first embodiment
The 3rd embodiment of amount retransmission unit, in the present embodiment, with reference to Fig. 6, the flow forwarding device is also wrapped
Include:
Second receiver module 40, for receiving the VRRP messages that the host apparatus send;
Determining module 50, if for not receiving the institute that the host apparatus send within a preset time interval
State VRRP messages, it is determined that the host apparatus break down.
In the present embodiment, the host apparatus in the VRRP backup groups send VRRP messages in real time
During, correspondingly, the VRRP that host apparatus described in 40 real-time reception of the second receiver module send
Message, now the host apparatus send VRRP messages in real time, illustrate the host apparatus in normal
Mode of operation, as the host apparatus send a VRRP message for each 1 second, and works as the route and sets
It is standby not receive the VRRP messages within a preset time interval, as described in interval does not all receive for 3 seconds
Host apparatus send the VRRP messages, then the determining module 50 can determine that the host apparatus send out
Raw failure, and first receiver module 20 can directly receive the flow of terminal transmission.
It should be noted that herein, term " including ", "comprising" or its any other variant
Be intended to including for nonexcludability so that process, method, article including a series of key elements or
Person's system not only includes those key elements, but also including other key elements being not expressly set out, or also
Including the key element intrinsic for this process, method, article or system.In the feelings for not having more restrictions
Under condition, the key element limited by sentence "including a ...", it is not excluded that including the key element process,
Also there is other identical element in method, article or system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-mentioned
Embodiment method can add the mode of required general hardware platform to realize by software, naturally it is also possible to logical
Cross hardware, but the former is more preferably embodiment in many cases.It is based on such understanding, of the invention
The part that technical scheme is substantially contributed to prior art in other words can in the form of software product body
Reveal and, the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disc, light
Disk) in, use so that a station terminal equipment including some instructions (can be mobile phone, computer, service
Device, air-conditioner, or network equipment etc.) perform method described in each embodiment of the invention.
The preferred embodiments of the present invention are these are only, the scope of the claims of the present invention is not thereby limited, it is every
The equivalent structure made using description of the invention and accompanying drawing content or equivalent flow conversion, or directly or
Connect and be used in other related technical fields, be included within the scope of the present invention.
Claims (8)
1. a kind of flow forwarding method, it is characterised in that the flow forwarding method is comprised the following steps:
It is standby in being virtual router redundance backup protocol VRRP backup group in the running status of routing device
When using equipment, the routing device stores the address information of the VRRP backup groups;
If the host apparatus detected in the VRRP backup groups break down, and the routing device is
During the stand-by equipment of the host apparatus association, then the flow that the routing device receiving terminal sends;
If the destination address information of the flow is consistent with the address information that the routing device is stored,
Then the routing device forwards the flow.
2. flow forwarding method as claimed in claim 1, it is characterised in that if it is described detect it is described
Host apparatus in VRRP backup groups break down, and the routing device is the host apparatus association
During stand-by equipment, then include the step of the flow of the routing device receiving terminal transmission:
If the host apparatus detected in the VRRP backup groups break down, and the routing device is
During the stand-by equipment of the host apparatus association, then running status is cut by the routing device by stand-by equipment
It is changed to host apparatus;
When running status is switched to host apparatus by stand-by equipment by the routing device, the route sets
The flow that standby receiving terminal sends.
3. flow forwarding method as claimed in claim 1, it is characterised in that if it is described detect it is described
Host apparatus in VRRP backup groups break down, and the routing device is the host apparatus association
During stand-by equipment, then the step of the flow that the routing device receiving terminal sends before, the flow turns
Forwarding method also includes:
The routing device receives the VRRP messages that the host apparatus send;
If not receiving the VRRP messages that the host apparatus send within a preset time interval,
The routing device determines that the host apparatus break down.
4. the flow forwarding method as described in any one of claim 1-3, it is characterised in that when the road
During by the next stage equipment that the priority facility of equipment is the host apparatus, or the routing device is pre-
During the incidence relation having between the host apparatus and the routing device, the routing device is primary
The stand-by equipment of equipment association.
5. a kind of flow forwarding device, it is characterised in that the flow forwarding device includes:
Memory module, is virtual router redundance backup protocol VRRP for the running status in routing device
During stand-by equipment in backup group, the address information of the VRRP backup groups is stored;
First receiver module, if breaking down for detecting the host apparatus in the VRRP backup groups,
And the routing device is when being the stand-by equipment of host apparatus association, then the flow that receiving terminal sends;
Forwarding module, if for the flow the storage of destination address information and the routing device described in
Address information is consistent, then forward the flow.
6. flow forwarding device as claimed in claim 5, it is characterised in that first receiver module
Including:
Switch unit, if break down for detecting the host apparatus in the VRRP backup groups, and
When the routing device is the stand-by equipment of the host apparatus association, then by running status by stand-by equipment
Switch to host apparatus;
Receiving unit, for running status is switched to host apparatus by stand-by equipment when the routing device
When, the flow that receiving terminal sends.
7. flow forwarding device as claimed in claim 5, it is characterised in that the flow forwarding device
Also include:
Second receiver module, for receiving the VRRP messages that the host apparatus send;
Determining module, if for not received described in the host apparatus transmission within a preset time interval
VRRP messages, it is determined that the host apparatus break down.
8. the flow forwarding device as described in any one of claim 5-7, it is characterised in that when the road
During by the next stage equipment that the priority facility of equipment is the host apparatus, or the routing device is pre-
During the incidence relation having between the host apparatus and the routing device, the routing device is primary
The stand-by equipment of equipment association.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510631430.8A CN106559326A (en) | 2015-09-28 | 2015-09-28 | Flow forwarding method and device |
PCT/CN2016/087111 WO2017054535A1 (en) | 2015-09-28 | 2016-06-24 | Traffic forwarding method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510631430.8A CN106559326A (en) | 2015-09-28 | 2015-09-28 | Flow forwarding method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106559326A true CN106559326A (en) | 2017-04-05 |
Family
ID=58416855
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510631430.8A Pending CN106559326A (en) | 2015-09-28 | 2015-09-28 | Flow forwarding method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106559326A (en) |
WO (1) | WO2017054535A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113328933A (en) * | 2021-05-27 | 2021-08-31 | 杭州迪普科技股份有限公司 | Data traffic forwarding method and system |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110830310B (en) * | 2019-11-28 | 2022-04-26 | 新华三大数据技术有限公司 | Cross-data-center disaster backup method and BRAS system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1011231A2 (en) * | 1998-12-15 | 2000-06-21 | Nortel Networks Corporation | Method and apparatus providing for router redundancy of non internet protocols using the virtual router redundancy protocol |
CN1466322A (en) * | 2002-06-23 | 2004-01-07 | ��Ϊ��������˾ | Method for realfizing router interface backup utilizing virtual router redundancy procotol |
CN101951345A (en) * | 2010-10-15 | 2011-01-19 | 杭州华三通信技术有限公司 | Message transmitting method and equipment |
CN101667927B (en) * | 2009-09-16 | 2012-02-01 | 杭州华三通信技术有限公司 | Method and device for rapidly restoring service |
CN102868616A (en) * | 2012-09-21 | 2013-01-09 | 华为技术有限公司 | Method for establishing virtual MAC (Media Access Control) address table item in network as well as router and system |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2414624B (en) * | 2004-05-29 | 2007-01-10 | Sarian Systems Ltd | Method of monitoring a member router in a VRRP group |
CN102413046B (en) * | 2011-11-24 | 2014-08-20 | 杭州华三通信技术有限公司 | Method for forwarding flow by means of virtual router redundancy protocol backup set and equipment |
US9191271B2 (en) * | 2013-04-29 | 2015-11-17 | Telefonaktiebolaget L M Ericsson (Publ) | Fast traffic recovery in VRRP based routers |
CN104821913B (en) * | 2015-05-05 | 2019-01-29 | 新华三技术有限公司 | A kind of data message forwarding method and device |
-
2015
- 2015-09-28 CN CN201510631430.8A patent/CN106559326A/en active Pending
-
2016
- 2016-06-24 WO PCT/CN2016/087111 patent/WO2017054535A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1011231A2 (en) * | 1998-12-15 | 2000-06-21 | Nortel Networks Corporation | Method and apparatus providing for router redundancy of non internet protocols using the virtual router redundancy protocol |
CN1466322A (en) * | 2002-06-23 | 2004-01-07 | ��Ϊ��������˾ | Method for realfizing router interface backup utilizing virtual router redundancy procotol |
CN101667927B (en) * | 2009-09-16 | 2012-02-01 | 杭州华三通信技术有限公司 | Method and device for rapidly restoring service |
CN101951345A (en) * | 2010-10-15 | 2011-01-19 | 杭州华三通信技术有限公司 | Message transmitting method and equipment |
CN102868616A (en) * | 2012-09-21 | 2013-01-09 | 华为技术有限公司 | Method for establishing virtual MAC (Media Access Control) address table item in network as well as router and system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113328933A (en) * | 2021-05-27 | 2021-08-31 | 杭州迪普科技股份有限公司 | Data traffic forwarding method and system |
Also Published As
Publication number | Publication date |
---|---|
WO2017054535A1 (en) | 2017-04-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102025646B (en) | Link switching method and device thereof | |
CN101483558B (en) | Method, system and apparatus for packet switching network access by network appliance | |
CN100417141C (en) | Group broadcasting business realizing method | |
CN102075343B (en) | An out-of-band management realization method, a system for the same and an out-of-band management switch | |
CN101860491B (en) | Aggregation type link bidirectional forwarding detection method and device thereof | |
CN103916275A (en) | BFD detection device and method | |
CN101094102A (en) | Main and standby switching method and route standby system for route device | |
CN102904818A (en) | Method and device for updating ARP (Address Resolution Protocol) information table | |
EP2696542A1 (en) | Method, ToR switch, and system for implementing protection switchover based on TRILL network | |
CN102035676A (en) | ARP (Address Resolution Protocol) interaction based method and equipment for detecting and recovering link fault | |
CN101374075A (en) | Method, apparatus and system for protecting multicast source | |
CN102970160B (en) | The method and apparatus of a kind of auxiliary monitor terminal and standby server high-speed traffic | |
CN105072021B (en) | A kind of message forwarding method of dispatch automated system cross-network segment | |
US10819623B2 (en) | Method and device for transmitting data | |
CN101610535A (en) | Multilink direct continuous show scape guarantees the method, system and device of BFD conversation stability down | |
CN101425942A (en) | Method, apparatus and system for bidirectional forwarding detection implementation | |
CN101800774A (en) | Environmental-friendly accessing method and environmental-friendly accessing network | |
CN106341249A (en) | Redundant port switching method and device | |
CN102624559A (en) | Method, device and system for realizing out-of-band management | |
CN1980155A (en) | Method for recovering sponsor media accessing control address and operation businesss edge apparatus | |
CN103036728A (en) | Multi- redundancy ethernet data transmission system and transmission method | |
CN101964719A (en) | Data processing method based on operating/standby switch of master control boards, line card and master control boards | |
CN101909006A (en) | BFD (Bidirectional Forwarding Detection) message sending and receiving methods as well as device and communication system thereof | |
CN106559326A (en) | Flow forwarding method and device | |
CN103036781A (en) | Method and device for processing main path link failures |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170405 |