CN104821913B - A kind of data message forwarding method and device - Google Patents

A kind of data message forwarding method and device Download PDF

Info

Publication number
CN104821913B
CN104821913B CN201510224099.8A CN201510224099A CN104821913B CN 104821913 B CN104821913 B CN 104821913B CN 201510224099 A CN201510224099 A CN 201510224099A CN 104821913 B CN104821913 B CN 104821913B
Authority
CN
China
Prior art keywords
bras
data message
host routes
acl
list item
Prior art date
Application number
CN201510224099.8A
Other languages
Chinese (zh)
Other versions
CN104821913A (en
Inventor
管树发
Original Assignee
新华三技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 新华三技术有限公司 filed Critical 新华三技术有限公司
Priority to CN201510224099.8A priority Critical patent/CN104821913B/en
Publication of CN104821913A publication Critical patent/CN104821913A/en
Application granted granted Critical
Publication of CN104821913B publication Critical patent/CN104821913B/en

Links

Abstract

The present invention provides a kind of data message forwarding methods, this method comprises: BRAS is used as standby equipment, when receiving the Host routes of main BRAS publication, generate the corresponding Host routes list item of the Host routes;It when the BRAS is switched to main equipment, when receiving data message, is searched in Host routes list item according to the purpose IP address of the data message, and the data message is forwarded according to the outgoing interface in the Host routes list item found.Based on same inventive concept, the application also proposes a kind of data message forwarding device, and in active-standby switch, the program can be improved VSRP networking convergence rate.

Description

A kind of data message forwarding method and device

Technical field

The present invention relates to field of communication technology, in particular to a kind of data message forwarding method and device.

Background technique

Dual-host backup virtual service redundancy protocol (Virtual Service Redundancy Protocol, VSRP) in networking, lead between two Broadband Remote Access Server (Broadband Remote Access Server, BRAS) Cross the active and standby pass of protocol negotiation Virtual Router Redundancy Protocol (Virtual Router Redundancy Protocol, VRRP) System, a BRAS are used as standby equipment as main equipment, a BRAS.

BRAS as standby equipment does not generate host road when receiving the Host routes as the BRAS publication of main equipment By list item, i.e. control plane does not issue Host routes to data plane.

When carrying out two-way converting detection (Bidirectional Forwarding Detection, BFD) detection, work as detection To as main equipment BRAS and it is lower hang LSW between link break down when, by VRRP agreement, between two BRAS into Row active-standby switch is switched to the BARS of main equipment by standby equipment, generates Host routes for the Host routes of former main equipment publication Host routes are issued to data plane by list item.

In above-mentioned implementation, the BRAS as standby equipment does not issue Host routes to data plane, but until standby Equipment is switched to after main equipment issues Host routes to data plane again, in this way in active-standby switch, will lead to VSRP networking receipts It is slow to hold back speed.

Summary of the invention

In view of this, the application provides a kind of data message forwarding method and device, to solve the VSRP in active-standby switch The slow problem of networking convergence rate.

In order to solve the above technical problems, the technical solution of the application is achieved in that

A kind of data message forwarding method, applied to the BRAS in VRRP backup group in VSRP network, this method comprises:

The BRAS is used as standby equipment, and when receiving the Host routes of main BRAS publication, it is corresponding to generate the Host routes Host routes list item;

When the BRAS is switched to main equipment, when receiving data message, according to the destination IP of the data message Location is searched in Host routes list item, and forwards the data message according to the outgoing interface in the Host routes list item found.

A kind of data message forwarding device, applied on the BRAS in VRRP backup group in VSRP network, which includes: Receiving unit, generation unit and processing unit

The receiving unit is used as standby equipment for BRAS where this unit, receives the Host routes of main BRAS publication;This BRAS where unit is switched to main equipment, receives data message;

The generation unit is used as standby equipment for BRAS where this unit, when the receiving unit receives main BRAS When the Host routes of publication, the corresponding Host routes list item of the Host routes is generated;

The processing unit, for when the receiving unit receives data message, according to the mesh of the data message IP address searched in the Host routes list item in the generation unit, and according in the Host routes list item found go out Interface forwards the data message.

As can be seen from the above technical solution, herein as the BRAS of standby equipment, in the master for receiving main BRAS publication When machine routes, corresponding Host routes list item is generated, when the BRAS is switched to main equipment, according to corresponding Host routes list item Forward the data message received.In active-standby switch, the program can be improved VSRP networking convergence rate.

Detailed description of the invention

Fig. 1 is data message forwarding flow diagram in the embodiment of the present application;

Fig. 2 is VSRP networking schematic diagram in the embodiment of the present application;

Fig. 3 is the apparatus structure schematic diagram for being applied to above-mentioned technology in the embodiment of the present application.

Specific embodiment

In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and examples, Technical solution of the present invention is described in detail.

A kind of data message forwarding method is provided in the embodiment of the present application, applied in VRRP backup group in VSRP network When BRAS, the BRAS are used as standby equipment, when receiving the Host routes of main BRAS publication, corresponding Host routes list item is generated, When the BRAS is switched to main equipment, the data message received is forwarded according to corresponding Host routes list item.In active-standby switch When, the program can be improved VSRP networking convergence rate.

For convenience, in a VRRP backup group, the BRAS as main equipment is known as main BRAS, as standby equipment BRAS be known as standby BRAS.

Main BRAS can will authenticate the network segment routing passed through on this BRAS and be distributed to standby BRAS, and meeting in VRRP backup group The Host routes obtained on this BRAS are distributed to standby BRAS.

When standby BRAS receives the network segment routing that main BRAS is issued, core router is directed toward in outlet, i.e., is identified outlet The interface being connected for this BRAS with core router.

In existing realization, when standby BRAS receives the Host routes that main BRAS is issued, the Host routes are not issued To data plane, i.e., Host routes list item is not generated;And when the embodiment of the present application realization, receive the host road of main BRAS publication By when, the Host routes are issued to data plane by standby BRAS, i.e. generation Host routes list item.

Host routes list item is generated, is being switched before switching as main BRAS in standby BRAS in the application specific embodiment When for main BRAS, convergence time is greatly saved, that is, improves VSRP networking convergence rate.

It is data message forwarding flow diagram in the embodiment of the present application referring to Fig. 1, Fig. 1.Specific steps are as follows:

Step 101, BRAS is used as standby equipment, when receiving the Host routes of main BRAS publication, generates the Host routes Corresponding Host routes list item.

Step 102, which is switched to main equipment, when receiving data message, according to the purpose of the data message IP address is searched in Host routes list item, and forwards the datagram according to the outgoing interface in the Host routes list item found Text.

In order to avoid, due to pre-generating Host routes list item, data message with lower extension LSW by being connected on standby BARS Interface directly forward, and lead to that associated statistical information cannot be obtained on main BARS, also carried out in the embodiment of the present application as follows Processing:

Standby BRAS increases ACL match information in the Host routes list item of generation;

Meanwhile BRAS configures acl rule, the acl rule for VRRP backup group are as follows: ACL match information, by matching State the interface forwarding that the data message of ACL match information is connected by this BRAS with core equipment.

ACL match information in the corresponding Host routes list item of the VRRP backup group, and is directed to the VRRP backup group ACL match information in the acl rule of configuration is identical, and can be the VRRP backup group number of the VRRP backup group.

For same VRRP backup group, the increased ACL matching letter in the corresponding Host routes list item of the VRRP backup group ACL configuration information in breath, with the acl rule for VRRP backup group configuration is identical.For different VRRP backup groups, The increased ACL match information in the corresponding Host routes list item of a VRRP backup group, be directed to another VRRP backup group ACL configuration information in the acl rule of configuration is different.

In specific implementation, ACL match information is not limited to VRRP backup group number, if only deposited in current VSRP networking In a VRRP backup group, then ACL match information can be used any mark and realize;When there are two in current VSRP networking When the above VRRP backup group, any mark realization that can distinguish different VRRP backup groups can be used.

When standby BRAS receives data message, looked into Host routes list item according to the purpose IP address of the data message It looks for, if there are ACL match informations in the Host routes list item found, according to the corresponding acl rule of the ACL match information Handle the data message.

When standby BRAS is switched to main equipment in the embodiment of the present application, VRRP backup group where current main BARS is deleted is corresponding Acl rule;And the ACL match information in corresponding Host routes list item.

With reference to the accompanying drawing, the forwarding that data message how is realized in the embodiment of the present application is described in detail.

Referring to fig. 2, Fig. 2 is VSRP networking schematic diagram in the embodiment of the present application.

In Fig. 2, it is desirable to which BRAS 1 is the main equipment of 11.11.11.0/24 network segment, and BRAS 2 is 11.11.11.0/24 net The standby equipment of section;12.12.12.0/24 network segment only accesses on BRAS 2, no active and standby point of the access of the network segment.

The main and standby relation in BRAS equipment is gone out by VRRP protocol negotiation between two BRAS, BRAS1 is main equipment, BRAS 2 be standby equipment.

11.11.11.0/24 the user of network segment generates Host routes by certification on BRAS 1 on BRAS 1, and 12.12.12.0/24 the user of network segment passes through certification on BRAS 2.

The network segment routing of 11.11.11.0/24 network segment is distributed to BRAS 2 by VSRP agreement by BRAS 1.

When BRAS 2 receives the network segment routing of the publication of BRAS 1, network segment routing 11.11.11.0/24 is gone out to connect Mouth is directed toward core equipment, i.e. outgoing interface is interface 2.

When some time, BRAS1 obtains Host routes, such as 11.11.11.1/24, then by the Host routes 11.11.11.1/24 being distributed to BRAS 2.

This is arrived, above-mentioned realization is compared with realization.

When BARS 2 receives the Host routes that BARS 1 is issued, for Host routes generation Host routes list item, and Increase ACL match information in the Host routes list item.

Referring to table 1, table 1 is the content that Host routes list item includes in the embodiment of the present application.

Host routes Outgoing interface ACL match information
11.11.11.1/24 Interface 2 VRRP backup group 1

Table 1

ACL match information in table 1 is realized using VRRP backup group number, if there are multiple VRRP are standby in VSRP networking Part group is identified as the acl rule of corresponding VRRP backup group configuration using corresponding backup group number.

Acl rule is configured for the VRRP backup group (VRRP backup group 1) simultaneously, the ACL of the acl rule of configuration matches letter Breath is VRRP backup group 1, and the movement of execution is to match the data message of the acl rule to forward by interface 1.Issue ACL rule Then, down hop is reset, data message is forwarded by interface 1.The purpose for issuing acl rule is to replace routing twice, because of two Secondary routing will lead to forwarding performance reduction.

When current BRAS 2 receives the data message that purpose IP address is 11.11.11.1/24, according to purpose IP address 11.11.11.1/24 corresponding Host routes list item is found in Host routes list item, content shown in table 1, and according in table 1 ACL match information matched in the acl rule being locally configured, will according to the acl rule that is matched to after being matched to acl rule The data message received is sent by interface 1.

When detecting the link failure between LSW 1 and BRAS 1, notice VSRP is switched;The handle on BRAS 2 11.11.11.0/24 the corresponding VSRP group of network segment is switched to master status, and the outlet of network segment routing 11.11.11.0/24 is referred to Start statistics and charging processing to BARS 2, and delete the acl rule configured for VRRP backup group 1, accesses 11.11.11.0/ The customer flow of 24 network segments directly can be forwarded to LSW 2 by BRAS 2.

BARS 2, can be by Host routes list item when deleting corresponding A CL rule, and the matching of the corresponding acl rule is believed Breath is deleted, and can not also be deleted.

After BRAS 2 is switched to main equipment, it is assumed that when receiving the data message that purpose IP address is 11.11.11.1/24, Corresponding Host routes list item is found in Host routes list item according to purpose IP address 11.11.11.1/24, and use is looked into Outgoing interface (interface 2) in the Host routes list item found forwards the data message received.

No matter BRAS 2 is used as main equipment, or when standby equipment, receives the datagram that purpose IP address is 121212.1/24 Wen Shi does not influence the processing to the data message, and treatment process is not detailed herein compared with realization.

By above-mentioned realization as it can be seen that Host routes list item is pre-generated on standby VSRP in the application specific embodiment, standby When VSRP switching is main VSRP, the forwarding of data message is directly carried out using pre-generated Host routes list item, is improved The convergence rate of VSRP networking;And before standby VSRP switching is main VSRP, by acl rule, route next jump is redirected, Corresponding data message is forwarded on main VSRP by core router, to carry out the traffic statistics such as charging.

Based on same inventive concept, the application also proposes a kind of data message forwarding device, is applied in VSRP network On BRAS in VRRP backup group.Referring to Fig. 3, Fig. 3 is the apparatus structure signal for being applied to above-mentioned technology in the embodiment of the present application Figure.The device includes: receiving unit 301, generation unit 302 and processing unit 303;

Receiving unit 301 is used as standby equipment for BRAS where this unit, receives the Host routes of main BRAS publication;This BRAS where unit is switched to main equipment, receives data message;

Generation unit 302 is used as standby equipment for BRAS where this unit, when receiving unit 301 receives main BRAS hair When the Host routes of cloth, the corresponding Host routes list item of the Host routes is generated;

Processing unit 303, for when receiving unit 301 receives data message, according to the purpose of the data message IP address is searched in the Host routes list item in generation unit 302, and goes out to connect according in the Host routes list item found Mouth forwards the data message.

Preferably,

Generation unit 302 is used as standby equipment for BRAS where this unit, increases ACL in the Host routes list item Match information;And acl rule, the acl rule are configured for the VRRP backup group are as follows: ACL match information, originally by matching The interface forwarding that the data message of acl rule is connected by this BRAS with core equipment;

Receiving unit 301 is used as standby equipment for BRAS where this unit, receives data message;

Processing unit 303 is used as standby equipment for BRAS where this unit, when receiving unit 301 receives data message, It is searched in Host routes list item according to the purpose IP address of the data message, if existing in the Host routes list item found ACL match information then handles the data message according to the corresponding acl rule of the ACL match information.

Preferably,

Generation unit 302, BRAS where being further used for this unit are switched to main equipment, delete and back up for the VSRP The acl rule of group configuration.

Preferably,

Generation unit 302, when being further used for deleting the acl rule for VSRP backup group configuration, described in deletion ACL match information in the corresponding Host routes list item of VRRP backup group.

Preferably,

ACL match information in the corresponding Host routes list item of the VRRP backup group, and is directed to the VRRP backup group ACL match information in the acl rule of configuration is identical, and is the VRRP backup group number of the VRRP backup group.

The unit of above-described embodiment can integrate in one, can also be deployed separately;It can be merged into a unit, it can also To be further split into multiple subelements.

In conclusion the application is on standby VSRP by pre-generating Host routes list item, based on standby VSRP switching When VSRP, the forwarding of data message is directly carried out using pre-generated Host routes list item, improves the convergence of VSRP networking Speed;And before standby VSRP switching is main VSRP, by acl rule, route next jump is redirected, by corresponding data message It is forwarded on main VSRP by core router, to carry out the traffic statistics such as charging.

The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.

Claims (8)

1. a kind of data message forwarding method is applied to Virtual Router Redundancy Protocol in virtual service redundancy protocol VSRP network On Broadband Remote Access Server BRAS in VRRP backup group, which is characterized in that this method comprises:
The BRAS is used as standby equipment, when receiving the Host routes of main BRAS publication, generates the corresponding master of the Host routes Machine route table items;
When the BRAS is switched to main equipment, when receiving data message, according to the purpose internet protocol of the data message View IP address is searched in Host routes list item, and forwards the data according to the outgoing interface in the Host routes list item found Message;
Wherein, the method further includes:
The BRAS is used as standby equipment, increases access control list ACL match information in the Host routes list item;
And acl rule is configured for the VRRP backup group, the match information of the acl rule is ACL match information, is executed dynamic The interface forwarding being connected by this BRAS with core equipment as the data message that will match this acl rule;
It when receiving data message, is searched in Host routes list item according to the purpose IP address of the data message, if searching To Host routes list item in there are ACL match informations, then according to the ACL match information corresponding acl rule processing Data message.
2. the method is further the method according to claim 1, wherein the BRAS is switched to main equipment Include:
Delete the acl rule for VRRP backup group configuration.
3. according to the method described in claim 2, it is characterized in that, the ACL deleted for VRRP backup group configuration When regular, the method further includes:
Delete the ACL match information in the corresponding Host routes list item of the VRRP backup group.
4. method according to claim 1 to 3, which is characterized in that
ACL match information in the corresponding Host routes list item of the VRRP backup group, configures with for the VRRP backup group Acl rule in ACL match information it is identical, and be the VRRP backup group VRRP backup group number.
5. a kind of data message forwarding device is applied to Virtual Router Redundancy Protocol in virtual redundancy service protocol VSRP network On Broadband Remote Access Server BRAS in VRRP backup group, which is characterized in that the device includes: receiving unit, generates list Member and processing unit
The receiving unit is used as standby equipment for BRAS where this unit, receives the Host routes of main BRAS publication;This unit Place BRAS is switched to main equipment, receives data message;
The generation unit is used as standby equipment for BRAS where this unit, when the receiving unit receives main BRAS publication Host routes when, generate the corresponding Host routes list item of the Host routes;
The processing unit, for when the receiving unit receives data message, according to the purpose of the data message because Special fidonetFido IP address is searched in the Host routes list item in the generation unit, and according to the Host routes list item found In outgoing interface forward the data message;
Wherein,
The generation unit is used as standby equipment for BRAS where this unit, increases access control in the Host routes list item List ACL match information processed;And acl rule is configured for the VRRP backup group, the match information of the acl rule is ACL Match information, execution movement are the interface turn that will be matched the data message of this acl rule and be connected by this BRAS with core equipment Hair;
The receiving unit is used as standby equipment for BRAS where this unit, receives data message;
The processing unit is used as standby equipment, when the receiving unit receives data message, root for BRAS where this unit It is searched in Host routes list item according to the purpose IP address of the data message, if existing in the Host routes list item found ACL match information then handles the data message according to the corresponding acl rule of the ACL match information.
6. device according to claim 5, which is characterized in that
The generation unit, BRAS where being further used for this unit are switched to main equipment, delete and are directed to the VRRP backup group The acl rule of configuration.
7. device according to claim 6, which is characterized in that
The generation unit deletes the VRRP when being further used for deleting the acl rule for VRRP backup group configuration ACL match information in the corresponding Host routes list item of backup group.
8. according to device described in claim 5-7 any one, which is characterized in that
ACL match information in the corresponding Host routes list item of the VRRP backup group, configures with for the VRRP backup group Acl rule in ACL match information it is identical, and be the VRRP backup group VRRP backup group number.
CN201510224099.8A 2015-05-05 2015-05-05 A kind of data message forwarding method and device CN104821913B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510224099.8A CN104821913B (en) 2015-05-05 2015-05-05 A kind of data message forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510224099.8A CN104821913B (en) 2015-05-05 2015-05-05 A kind of data message forwarding method and device

Publications (2)

Publication Number Publication Date
CN104821913A CN104821913A (en) 2015-08-05
CN104821913B true CN104821913B (en) 2019-01-29

Family

ID=53732083

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510224099.8A CN104821913B (en) 2015-05-05 2015-05-05 A kind of data message forwarding method and device

Country Status (1)

Country Link
CN (1) CN104821913B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559326A (en) * 2015-09-28 2017-04-05 中兴通讯股份有限公司 Flow forwarding method and flow forwarding device
CN108234322A (en) * 2016-12-21 2018-06-29 中兴通讯股份有限公司 Message forwarding method, message forwarding controller and BRAS

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413046A (en) * 2011-11-24 2012-04-11 杭州华三通信技术有限公司 Method for forwarding flow by means of virtual router redundancy protocol backup set and equipment
CN102664788A (en) * 2012-04-05 2012-09-12 中兴通讯股份有限公司 CE dual-homed link protection method in MPLS L3VPN and system thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6910148B1 (en) * 2000-12-07 2005-06-21 Nokia, Inc. Router and routing protocol redundancy

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413046A (en) * 2011-11-24 2012-04-11 杭州华三通信技术有限公司 Method for forwarding flow by means of virtual router redundancy protocol backup set and equipment
CN102664788A (en) * 2012-04-05 2012-09-12 中兴通讯股份有限公司 CE dual-homed link protection method in MPLS L3VPN and system thereof

Also Published As

Publication number Publication date
CN104821913A (en) 2015-08-05

Similar Documents

Publication Publication Date Title
US9231868B2 (en) Communication system, communication device, controller, and method and program for controlling forwarding path of packet flow
US8169924B2 (en) Optimal bridging over MPLS/IP through alignment of multicast and unicast paths
CN104737502B (en) A method for sub-optimal from the main flow to the standby p2mp p2mp switching system and
CN101911600B (en) No map via any broadcast global traffic load balancing methods and systems
US7304955B2 (en) Scalable IP multicast with efficient forwarding cache
CN102549983B (en) Distributed data center access switch
US20090080345A1 (en) Efficient multipoint distribution tree construction for shortest path bridging
RU2530338C2 (en) Prepared connection based on state of communication lines of providers (plsb) with routed redundancy
JPWO2005048540A1 (en) COMMUNICATION SYSTEM AND COMMUNICATION METHOD
EP2737671B1 (en) Method and apparatus for resilient routing of control traffic in a split-architecture system
US20150200850A1 (en) Communication system, control device, communication method, and program
CN101009569B (en) Data communication device and the method thereof
KR101155012B1 (en) Open flow network system and method of controlling the same
CN103905447A (en) Service link selection control method and device
US20130177016A1 (en) Communication system, control apparatus, packet handling operation setting method, and program
US20160119156A1 (en) Protocol independent multicast sparse mode (pim-sm) support for data center interconnect
US9276843B2 (en) Virtual link aggregation extension (vLAG+) enabled in a trill-based fabric network
WO2011062120A1 (en) Dynamic route branching system and dynamic route branching method
JP5850471B2 (en) Communication system, control apparatus, node control method, and program
US10148517B2 (en) Systems and methods for topology discovery and application in a border gateway protocol based data center
EP2737663B1 (en) Bootstrapping fault detection sessions over a p2mp tunnel
KR101644766B1 (en) Information system, control device, virtual network provision method and program
CN103888369B (en) Ethernet communication method, system and SDN switch
US20130021896A1 (en) Method, system, and device for protecting multicast in communication network
CN104363159A (en) Virtual open network building system and method based on software definition network

Legal Events

Date Code Title Description
C06 Publication
EXSB Decision made by sipo to initiate substantive examination
CB02
GR01