CN109327339B - Message processing method and device - Google Patents

Message processing method and device Download PDF

Info

Publication number
CN109327339B
CN109327339B CN201811360182.8A CN201811360182A CN109327339B CN 109327339 B CN109327339 B CN 109327339B CN 201811360182 A CN201811360182 A CN 201811360182A CN 109327339 B CN109327339 B CN 109327339B
Authority
CN
China
Prior art keywords
bras
virtualized
forwarding
virtualization
brass
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811360182.8A
Other languages
Chinese (zh)
Other versions
CN109327339A (en
Inventor
王伟锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201811360182.8A priority Critical patent/CN109327339B/en
Publication of CN109327339A publication Critical patent/CN109327339A/en
Application granted granted Critical
Publication of CN109327339B publication Critical patent/CN109327339B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access
    • H04L12/2869Operational details of access network equipments
    • H04L12/287Remote access server, e.g. BRAS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/101Access control lists [ACL]

Abstract

The embodiment of the application provides a message processing method and a device, which are applied to an SDN controller, wherein the SDN controller is connected with M + N virtualized BRAS, M virtualized BRAS in the M + N virtualized BRAS are used as a main BRAS, N virtualized BRAS are used as a standby BRAS, M and N are positive integers, and M is greater than N, and the method comprises the following steps: monitoring the running states of M virtualized BRASs; when the operation state of a first virtualized BRAS in M virtualized BRAS is monitored to be a fault, a second virtualized BRAS is selected from N virtualized BRAS; sending a forwarding strategy to the shunting equipment; the forwarding policy is to: and indicating the shunting equipment to forward the message forwarded to the first virtualized BRAS to the second virtualized BRAS. By applying the technical scheme provided by the embodiment of the application, the cost can be reduced, and the equipment utilization rate can be improved.

Description

Message processing method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for processing a packet.
Background
BRAS (Broadband Remote Access Server) is used as metropolitan area network service convergence layer equipment, and mainly completes two functions, namely a network bearing function: the system is responsible for terminating PPPoE (Point-to-Point Protocol over Ethernet based on Ethernet) or IPoE (Internet Protocol over Ethernet based on network Protocol) session of a user and forwarding a message; secondly, the control and realization functions are as follows: and the authentication system, the charging system, the user management system and the service strategy control system are matched to realize the authentication, the charging and the management of user access. The BRAS may be a physical BRAS and a virtualized BRAS, respectively. The physical BRAS is implemented using dedicated hardware. The virtualized BRAS utilizes NFV (Network Function Virtualization) technology, and can be implemented by using general-purpose hardware. Virtualized BRAS run on X86 servers with some gap in performance compared to physical BRAS.
At present, in order to ensure the normal operation of the service, a physical BRAS dual-machine backup is performed, that is, two physical BRAS are deployed, wherein one physical BRAS serves as a primary BRAS, and the other physical BRAS serves as a standby BRAS. Under normal conditions, the convergence switch forwards the message to the primary BRAS, and the primary BRAS processes the message. When the primary BRAS is in fault, a user manually modifies a message forwarding strategy of the convergence switch, wherein the message forwarding strategy is used for indicating the convergence switch to forward the received message to the standby BRAS, and the standby BRAS processes the message.
The physical BRAS dual-computer backup is deployed at high cost, and in practical application, only one device works, namely 50% of devices are in a working state, so that the utilization rate of the devices is low.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method and an apparatus for processing a packet, so as to reduce cost and improve utilization rate of a device. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a packet processing method, which is applied to an SDN (Software Defined Network) controller, where the SDN controller is connected to M + N virtualized BRASs, where M virtualized BRASs in the M + N virtualized BRASs serve as a primary BRAS, N virtualized BRASs serve as a backup BRAS, M and N are positive integers, and M > N, and the method includes:
monitoring the running states of the M virtualized BRASs;
when the operation state of a first virtualized BRAS in the M virtualized BRASs is monitored to be a fault, selecting a second virtualized BRAS from the N virtualized BRASs;
sending a forwarding strategy to the shunting equipment; the forwarding policy is to: and indicating the shunting equipment to forward the message forwarded to the first virtualized BRAS to the second virtualized BRAS.
In a second aspect, an embodiment of the present application provides a message processing method, which is applied to a offloading device, where the offloading device is connected to an SDN controller; the SDN controller is connected with M + N virtualized BRASs, M virtualized BRASs in the M + N virtualized BRASs serve as a primary BRAS, N virtualized BRASs serve as a standby BRAS, M and N are positive integers, and M > N, and the method comprises the following steps:
receiving a forwarding strategy sent by the SDN controller; the forwarding policy is sent by the SDN controller after a second virtualized BRAS is selected from the N virtualized BRASs when the operation state of a first virtualized BRAS in the M virtualized BRASs is monitored to be a fault;
and forwarding the message forwarded to the first virtualized BRAS to the second virtualized BRAS according to the forwarding strategy.
In a third aspect, an embodiment of the present application provides a packet processing device, which is applied to an SDN controller, where the SDN controller is connected to M + N virtualized BRASs, where M virtualized BRASs in the M + N virtualized BRASs serve as a primary BRAS, N virtualized BRASs serve as a standby BRAS, M and N are positive integers, and M > N, and the device includes:
the monitoring unit is used for monitoring the running states of the M virtualized BRASs;
the selection unit is used for selecting a second virtualized BRAS from the N virtualized BRASs when the operation state of a first virtualized BRAS in the M virtualized BRASs is monitored to be a fault;
the sending unit is used for sending a forwarding strategy to the shunting equipment; the forwarding policy is to: and indicating the shunting equipment to forward the message forwarded to the first virtualized BRAS to the second virtualized BRAS.
In a fourth aspect, an embodiment of the present application provides a packet processing apparatus, which is applied to a offloading device, where the offloading device is connected to an SDN controller; the SDN controller is connected with M + N virtualized BRAS, M virtualized BRAS in the M + N virtualized BRAS is used as a main BRAS, N virtualized BRAS is used as a standby BRAS, M and N are positive integers, M > N, and the device comprises:
a receiving unit, configured to receive a forwarding policy sent by the SDN controller; the forwarding policy is sent by the SDN controller after a second virtualized BRAS is selected from the N virtualized BRASs when the operation state of a first virtualized BRAS in the M virtualized BRASs is monitored to be a fault;
and the forwarding unit is used for forwarding the message forwarded to the first virtualized BRAS to the second virtualized BRAS according to the forwarding strategy.
In a fifth aspect, embodiments of the present application provide an SDN controller comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: implementing any of the method steps provided in the first aspect.
In a sixth aspect, embodiments of the present application provide a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to: implementing any of the method steps provided in the first aspect.
In a seventh aspect, an embodiment of the present application provides a streaming device, including a processor and a machine-readable storage medium, the machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: implementing any of the method steps provided in the second aspect.
In an eighth aspect, embodiments of the present application provide a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to: implementing any of the method steps provided in the second aspect.
In the technical scheme provided by the embodiment of the application, the virtualized BRAS is deployed in the network, the cost of the virtualized BRAS is lower than that of the physical BRAS, and the cost is reduced. In addition, M virtualized BRAS are deployed in the network as a main BRAS, N virtualized BRAS are deployed as standby BRAS, M is greater than N, more than 50% of equipment is in a working state, and the utilization rate of the equipment is improved. Of course, it is not necessary for any product or method of the present application to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram illustrating a conventional network architecture;
fig. 2 is a schematic diagram of a network architecture according to an embodiment of the present application;
fig. 3 is a first flowchart of a message processing method according to an embodiment of the present application;
fig. 4 is a second flowchart of a message processing method according to an embodiment of the present application;
fig. 5 is a first structural diagram of a message processing apparatus according to an embodiment of the present application;
fig. 6 is a second structure diagram of a message processing apparatus according to an embodiment of the present application;
fig. 7 is a structural diagram of an SDN controller according to an embodiment of the present application;
fig. 8 is a structural diagram of a flow distribution device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
At present, in order to ensure normal operation of a service, a physical BRAS dual-machine backup is performed, and a network architecture shown in fig. 1 deploys a physical BRAS 101 and a physical BRAS 102, where the physical BRAS 101 serves as a primary BRAS, and the physical BRAS 102 serves as a backup BRAS. Under normal conditions, the aggregation switch 103 forwards the message to the physical BRAS 101, and the physical BRAS 101 processes the message. When the physical BRAS 101 fails, a user manually modifies a message forwarding policy of the aggregation switch 103, where the message forwarding policy is used to instruct the aggregation switch 103 to forward a received message to the physical BRAS 102, and the physical BRAS 102 processes the message.
The physical BRAS dual-computer backup is deployed at high cost, and in practical application, only one device works, namely 50% of devices are in a working state, so that the utilization rate of the devices is low.
In order to reduce the cost and improve the device utilization, the embodiment of the present application provides a network architecture, as shown in fig. 2, including an SDN controller 201, a convergence switch 202, a offloading device 203, and a virtualized BRAS 204 and 209. The 4 virtualized BRAS 204 and 207 serve as the main BRAS, and the 2 virtualized BRAS208 and 209 serve as the standby BRAS. In fig. 2, only 4 primary BRASs and 2 backup BRASs are taken as an example for explanation, and the description is not limited. As long as the number of the primary BRAS is larger than that of the standby BRAS.
Based on the network architecture shown in fig. 2, the embodiment of the present application provides a message processing method. In the message processing method, an SDN controller is connected with M + N virtualized BRASs, M virtualized BRASs in the M + N virtualized BRASs serve as a main BRAS, N virtualized BRASs serve as standby BRASs, M and N are positive integers, and M is greater than N. The SDN controller monitors the operation states of M virtualized BRASs; when the operation state of a first virtualized BRAS in M virtualized BRAS is monitored to be a fault, a second virtualized BRAS is selected from N virtualized BRAS; sending a forwarding strategy to the shunting equipment; the forwarding policy is to: and indicating the shunting equipment to forward the message forwarded to the first virtualized BRAS to the second virtualized BRAS. And the shunting equipment forwards the message forwarded to the first virtualized BRAS to the second virtualized BRAS according to the received forwarding strategy. The second virtualized BRAS processes the received message.
In the technical scheme provided by the embodiment of the application, the virtualized BRAS is deployed in the network, the cost of the virtualized BRAS is lower than that of the physical BRAS, and the cost is reduced. In addition, M virtualized BRAS are deployed in the network as a main BRAS, N virtualized BRAS are deployed as standby BRAS, M is greater than N, more than 50% of equipment is in a working state, and the utilization rate of the equipment is improved.
In addition, a small number of virtualized BRAS are adopted to backup a plurality of virtualized BRAS, and the network cost is further reduced.
The present application will be described in detail below with reference to specific examples.
Referring to fig. 3, fig. 3 is a first flowchart of a message processing method provided in the embodiment of the present application, where the method is applied to an SDN controller. The SDN controller may be integrated on any device in the network. Such as an SDN controller, may be integrated on the offloading device. The SDN controller is connected with M + N virtualization BRAS, M virtualization BRAS in the M + N virtualization BRAS are used as main BRAS, N virtualization BRAS are used as standby BRAS, M and N are positive integers, and M > N. The message processing method comprises the following steps.
Step 301, monitoring the operation status of the M virtualized BRASs.
In the embodiment of the application, the SDN controller monitors the operation states of M virtualized BRASs serving as primary BRASs. The operation state may be a fault or a normal state.
In an embodiment, the SDN controller may send probe packets to the M virtualized BRASs, respectively. And after receiving the detection message, the virtualized BRAS sends a detection response message to the SDN controller. If the SDN controller receives a detection response message sent by a virtualized BRAS within a preset time length after sending the detection message to the virtualized BRAS, the SDN controller determines that the virtualized BRAS is normal. And if the SDN controller does not receive the detection response message sent by a virtualized BRAS after the preset time length after the detection message is sent to the virtualized BRAS, determining that the virtualized BRAS has a fault.
In another embodiment, M virtualized BRASs as primary BRASs may periodically send notification messages to the SDN controller. And the SDN controller receives a notification message sent by a virtualized BRAS, and determines that the virtualized BRAS is normal. If the SDN controller does not receive the detection response message sent by the virtualized BRAS after receiving the preset time length after the notification message sent by the virtualized BRAS, determining that the virtualized BRAS has a fault.
In this embodiment of the application, the SDN controller may also monitor the operation states of the M virtualized BRASs in other manners, which is not limited herein.
Step 302, when the operation state of a first virtualized BRAS in M virtualized BRASs is monitored to be a fault, a second virtualized BRAS is selected from N virtualized BRASs.
The first virtualized BRAS is any one of the M virtualized BRASs as the main BRAS. When the operation state of the first virtualized BRAS is monitored to be failure, the SDN controller selects one virtualized BRAS from N virtualized BRASs serving as standby BRASs, namely a second virtualized BRAS.
In one embodiment, in order to reduce service interruption caused by service back-off, after selecting a second virtualized BRAS from the N virtualized BRASs as the backup BRAS, the SDN controller upgrades the second virtualized BRAS to the primary BRAS, and after the first virtualized BRAS is restored, downgrades the first virtualized BRAS to the backup BRAS.
For example, the SDN controller sends an upgrade file to the second virtualized BRAS. And the second virtualized BRAS is configured according to the upgrade file and upgraded to the primary BRAS. The SDN controller monitors the operation state of the second virtualized BRAS. And after the first virtualization BRAS is recovered, the first virtualization BRAS sends a notification message to the SDN controller. And the SDN controller determines that the first virtualized BRAS is recovered and sends a degraded file to the first virtualized BRAS. The first virtualized BRAS is configured according to the degradation file, and the degradation is the backup BRAS. At this point, the SDN controller stops monitoring the operational status of the first virtualized BRAS.
Step 303, sending a forwarding policy to the shunting equipment; the forwarding policy is to: and indicating the shunting equipment to forward the message forwarded to the first virtualized BRAS to the second virtualized BRAS.
And the shunting equipment forwards the message forwarded to the first virtualized BRAS to the second virtualized BRAS according to the received forwarding strategy. The second virtualized BRAS processes the received message.
In one embodiment, the shunting device forwards the packet based on a flow table or an ACL (Access Control List). The address of the first virtualized BRAS and the address of the second virtualized BRAS can be included in the forwarding policy. And the shunting equipment searches a target flow table or a target ACL with the destination address as the address of the first virtualization BRAS from the stored flow table or ACL according to the received forwarding strategy, and modifies the destination address of the target flow table or the target ACL into the address of the second virtualization BRAS. And after the shunting device is matched with the target flow table or the target ACL, sending the received message to a second virtualization BRAS for processing according to the target flow table or the target ACL. Namely, the message forwarded to the first virtualized BRAS is forwarded to the second virtualized BRAS for processing according to the modified target flow table or target ACL.
For example, the first virtualized BRAS is a vbars1The second virtualized BRAS is a vBRAS2。vBRAS1Is IP address1,vBRAS2Is IP address2. The shunt device stores a flow table 1 as follows:
source Address (IP) protocol01Destination IP1
In vBRAS1After a fault occurs, the SDN controller issues a forwarding strategy to the shunting equipment, and the shunting equipment modifies the flow table 1 into a flow table according to the forwarding strategy:
Source IP01Destination IP2
at this time, the shunting device may address the IP01From the equipment of, the messages sent from the vbars1Is shunted to vBRAS2Up, i.e. towards vbars1The transmitted message is sent to vBRAS2The above.
In another embodiment, the forking device forwards the message based on the VXLAN identifier. The address of the first virtualized BRAS and the address of the second virtualized BRAS can be included in the forwarding policy. The shunting device modifies the corresponding relation between the address of the first virtualized BRAS and the identifier of the VXLAN (Virtual Extensible Local Area Network) into the corresponding relation between the address of the second virtualized BRAS and the identifier of the VXLAN according to the received forwarding strategy. And after the shunting device and the second virtualized BRAS are matched with the message of the corresponding relation between the address of the VXLAN, sending the received message to the second virtualized BRAS for processing according to the corresponding relation between the address of the second virtualized BRAS and the identifier of the VXLAN. Namely, the message forwarded to the first virtualized BRAS is forwarded to the second virtualized BRAS for processing according to the corresponding relation between the address of the second virtualized BRAS and the identifier of the VXLAN.
For example, the first virtualized BRAS is a vbars1The second virtualized BRAS is a vBRAS2。vBRAS1Is IP address1,vBRAS2Is IP address2. The shunt device stores: [ IP ]1,VXLAN1]. In vBRAS1After a fault, the SDN controller transmits forwarding to the shunting equipmentSending strategy, the shunting device sends IP according to the forwarding strategy1,VXLAN1]Modified as [ IP2,VXLAN1]. At this time, the forking device can identify VXLAN as VXLAN1From the equipment of, the messages sent from the vbars1Is shunted to vBRAS2Up, i.e. towards vbars1The transmitted message is sent to vBRAS2The above.
In the embodiment of the application, the SDN controller monitors the running state of the virtualized BRAS in real time, and automatically adjusts the forwarding strategy on the shunting equipment, so that the service fault time can be effectively shortened, and higher-quality service is provided.
The following describes an embodiment of the present application with reference to a network architecture shown in fig. 2. Fig. 2 includes: the SDN controller 201 is connected with the SDN controller 201, the aggregation switch 202, the offloading device 203, and the virtualization BRAS 204 and 209. The 4 virtualized BRAS 204 and 207 serve as the main BRAS, and the 2 virtualized BRAS208 and 209 serve as the standby BRAS. And forwarding the message by the shunting equipment based on the flow table.
The SDN controller 201 monitors the operation status of the virtualized BRAS 204 and 207.
When the virtualized BRAS 204 is monitored to be in failure, the SDN controller 201 randomly selects one virtualized BRAS from the virtualized BRASs 208-209, for example, selects the virtualized BRAS208, and sends a forwarding policy 1 to the offloading device 203, wherein the forwarding policy 1 includes an IP address IP of the virtualized BRAS 204204And the IP address IP of the virtualized BRAS208208
The branching device 203 stores therein a flow table a 1: [ Source IP ]a1,Destination IP204]. The shunting device 203 modifies the flow table a1 into [ Source IP ] according to the forwarding policy 1a1,Destination IP208]。
The aggregation switch 202 receives the IP address as IPa1The message 11 sent by the device in (1) sends the message 11 to the shunting device 203. The source IP address of the message 11 is IPa1
The shunting device 203 determines that the message 11 is matched with the modified flow table a1, and sends the message 11 to the virtualized BRAS208 according to the modified flow table a 1.
In the technical scheme provided by the embodiment of the application, the virtualized BRAS is deployed in the network, the cost of the virtualized BRAS is lower than that of the physical BRAS, and the cost is reduced. In addition, M virtualized BRAS are deployed in the network as a main BRAS, N virtualized BRAS are deployed as standby BRAS, M is greater than N, more than 50% of equipment is in a working state, and the utilization rate of the equipment is improved.
In addition, SDN controller 201 sends upgrade file 1 to virtualized BRAS 208.
And the virtualized BRAS208 is upgraded to the primary BRAS according to the upgrade file 1.
The SDN controller 201 monitors the operational status of the virtualized BRAS 205-208.
And when the recovery of the virtualized BRAS 204 is monitored, sending a downgrade file 1 to the virtualized BRAS 204.
The virtualized BRAS 204 demotes to a backup BRAS according to demote file 1.
This reduces traffic outage due to traffic cutback.
Corresponding to the above embodiment of the message processing method applied to the SDN controller, the embodiment of the present application further provides a message processing method applied to the offloading device. Referring to fig. 4, fig. 4 is a second flowchart of a message processing method provided in the embodiment of the present application, where the method is applied to a offloading device, and the offloading device is connected to an SDN controller; the SDN controller is connected with M + N BRAS, M virtualized BRAS in M + N virtualized BRAS is used as main BRAS, N virtualized BRAS is used as standby BRAS, M and N are positive integers, and M > N. The message processing method comprises the following steps.
Step 401, receiving a forwarding strategy sent by an SDN controller; the forwarding policy is sent after the SDN controller selects a second virtualized BRAS from the N virtualized BRASs when the SDN controller monitors that the running state of a first virtualized BRAS in the M virtualized BRASs is a fault.
Step 402, according to the forwarding strategy, the message forwarded to the first virtualized BRAS is forwarded to the second virtualized BRAS.
In one embodiment, forwarding, by the offloading device, the packet forwarded to the first virtualized BRAS to the second virtualized BRAS according to the forwarding policy may be: according to the forwarding strategy, a forwarding table item with a destination address as the address of the first virtual BRAS is searched, wherein the forwarding table item is a flow table or an ACL; modifying the destination address of the forwarding table entry into the address of a second virtualized BRAS; and forwarding the message forwarded to the first virtualized BRAS to the second virtualized BRAS according to the modified forwarding table entry.
In one embodiment, forwarding, by the offloading device, the packet forwarded to the first virtualized BRAS to the second virtualized BRAS according to the forwarding policy may be: according to the forwarding strategy, the corresponding relation between the address of the first virtualized BRAS and the identifier of the VXLAN is modified into the corresponding relation between the address of the second virtualized BRAS and the identifier of the VXLAN; and forwarding the message forwarded to the first virtualized BRAS to the second virtualized BRAS according to the corresponding relation between the address of the second virtualized BRAS and the identifier of the VXLAN.
In the technical scheme provided by the embodiment of the application, the virtualized BRAS is deployed in the network, the cost of the virtualized BRAS is lower than that of the physical BRAS, and the cost is reduced. In addition, M virtualized BRAS are deployed in the network as a main BRAS, N virtualized BRAS are deployed as standby BRAS, M is greater than N, more than 50% of equipment is in a working state, and the utilization rate of the equipment is improved.
Corresponding to the embodiment of the message processing method applied to the SDN controller, the embodiment of the application also provides a message processing device applied to the SDN controller. Referring to fig. 5, fig. 5 is a first structure diagram of a packet processing device according to an embodiment of the present application, where the method is applied to an SDN controller, the SDN controller is connected to M + N virtualized BRASs, M virtualized BRASs in the M + N virtualized BRASs serve as a primary BRAS, N virtualized BRASs serve as a backup BRAS, M and N are positive integers, and M > N, and the device includes:
a monitoring unit 501, configured to monitor the operating statuses of M virtualized BRASs;
a selecting unit 502, configured to select a second virtualized BRAS from the N virtualized BRASs when it is monitored that an operation state of a first virtualized BRAS among the M virtualized BRASs is a fault;
a sending unit 503, configured to send a forwarding policy to the offloading device; the forwarding policy is to: and indicating the shunting equipment to forward the message forwarded to the first virtualized BRAS to the second virtualized BRAS.
In an embodiment, the message processing apparatus may further include:
the processing unit is used for upgrading the second virtualization BRAS to the main BRAS after the second virtualization BRAS is selected from the N virtualization BRASs; and after the first virtualized BRAS is recovered, downgrading the first virtualized BRAS to a standby BRAS.
In the technical scheme provided by the embodiment of the application, the virtualized BRAS is deployed in the network, the cost of the virtualized BRAS is lower than that of the physical BRAS, and the cost is reduced. In addition, M virtualized BRAS are deployed in the network as a main BRAS, N virtualized BRAS are deployed as standby BRAS, M is greater than N, more than 50% of equipment is in a working state, and the utilization rate of the equipment is improved.
Corresponding to the above embodiment of the message processing method applied to the shunting device, the embodiment of the present application further provides a message processing apparatus applied to the shunting device. Referring to fig. 6, fig. 6 is a second structural diagram of a message processing apparatus according to an embodiment of the present application, where the method is applied to a offloading device, and the offloading device is connected to an SDN controller; the SDN controller is connected with M + N virtualized BRAS, M virtualized BRAS in M + N virtualized BRAS is as main BRAS, N virtualized BRAS is as the backup BRAS, M and N are positive integers, M > N, the apparatus includes:
a receiving unit 601, configured to receive a forwarding policy sent by an SDN controller; the forwarding policy is sent after the SDN controller selects a second virtualized BRAS from the N virtualized BRASs when monitoring that the running state of a first virtualized BRAS in the M virtualized BRASs is a fault;
a forwarding unit 602, configured to forward, according to a forwarding policy, a packet forwarded to the first virtualized BRAS to the second virtualized BRAS.
In an embodiment, the forwarding unit 602 may specifically be configured to:
according to the forwarding strategy, searching a forwarding table item of which the destination address is the address of the first virtualized BRAS; the forwarding table item is a flow table or an access control table item ACL;
modifying the destination address of the forwarding table entry into the address of a second virtualized BRAS;
and forwarding the message forwarded to the first virtualized BRAS to the second virtualized BRAS according to the modified forwarding table entry.
In an embodiment, the forwarding unit 602 may specifically be configured to:
according to the forwarding strategy, the corresponding relation between the address of the first virtualized BRAS and the identifier of the extensible virtual local area network VXLAN is modified into the corresponding relation between the address of the second virtualized BRAS and the identifier of the VXLAN;
and forwarding the message forwarded to the first virtualized BRAS to the second virtualized BRAS according to the corresponding relation between the address of the second virtualized BRAS and the identifier of the VXLAN.
In the technical scheme provided by the embodiment of the application, the virtualized BRAS is deployed in the network, the cost of the virtualized BRAS is lower than that of the physical BRAS, and the cost is reduced. In addition, M virtualized BRAS are deployed in the network as a main BRAS, N virtualized BRAS are deployed as standby BRAS, M is greater than N, more than 50% of equipment is in a working state, and the utilization rate of the equipment is improved.
Corresponding to the above message processing method embodiment applied to the SDN controller, an embodiment of the present application further provides an SDN controller, as shown in fig. 7, including a processor 701 and a machine-readable storage medium 702, where the machine-readable storage medium 702 stores machine-executable instructions that can be executed by the processor 701. The processor 701 is caused by machine executable instructions to implement any of the steps of the message processing method described above as applied to an SDN controller. In the message processing method, an SDN controller is connected with M + N virtualized BRASs, M virtualized BRASs in the M + N virtualized BRASs serve as a primary BRAS, N virtualized BRASs serve as standby BRASs, M and N are positive integers, and M > N, and the message processing method comprises the following steps:
monitoring the running states of M virtualized BRASs;
when the operation state of a first virtualized BRAS in M virtualized BRAS is monitored to be a fault, a second virtualized BRAS is selected from N virtualized BRAS;
sending a forwarding strategy to the shunting equipment; the forwarding policy is to: and indicating the shunting equipment to forward the message forwarded to the first virtualized BRAS to the second virtualized BRAS.
In the technical scheme provided by the embodiment of the application, the virtualized BRAS is deployed in the network, the cost of the virtualized BRAS is lower than that of the physical BRAS, and the cost is reduced. In addition, M virtualized BRAS are deployed in the network as a main BRAS, N virtualized BRAS are deployed as standby BRAS, M is greater than N, more than 50% of equipment is in a working state, and the utilization rate of the equipment is improved.
In one embodiment, as shown in fig. 7, the SDN controller may further include: a communication interface 703 and a communication bus 704; the processor 701, the machine-readable storage medium 702, and the communication interface 703 complete mutual communication through the communication bus 704, and the communication interface 703 is used for communication between the SDN controller and other devices.
Corresponding to the foregoing message processing method embodiment applied to the SDN controller, an embodiment of the present application further provides a machine-readable storage medium storing machine-executable instructions, and when the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause the processor to: any step of the message processing method applied to the SDN controller is realized.
Corresponding to the above message processing method embodiment applied to the flow distribution device, an embodiment of the present application further provides a flow distribution device, as shown in fig. 8, including a processor 801 and a machine-readable storage medium 802, where the machine-readable storage medium 802 stores machine-executable instructions that can be executed by the processor 801. The processor 801 is caused by machine executable instructions to implement any of the steps of the message processing method described above as applied to a shunt device. In the message processing method, a shunting device is connected with an SDN controller; the SDN controller is connected with M + N virtualized BRAS, M virtualized BRAS in M + N virtualized BRAS is used as main BRAS, N virtualized BRAS is used as standby BRAS, M and N are positive integers, M > N, the message processing method includes:
receiving a forwarding strategy sent by an SDN controller; the forwarding policy is sent after the SDN controller selects a second virtualized BRAS from the N virtualized BRASs when monitoring that the running state of a first virtualized BRAS in the M virtualized BRASs is a fault;
and forwarding the message forwarded to the first virtualized BRAS to the second virtualized BRAS according to the forwarding strategy.
In the technical scheme provided by the embodiment of the application, the virtualized BRAS is deployed in the network, the cost of the virtualized BRAS is lower than that of the physical BRAS, and the cost is reduced. In addition, M virtualized BRAS are deployed in the network as a main BRAS, N virtualized BRAS are deployed as standby BRAS, M is greater than N, more than 50% of equipment is in a working state, and the utilization rate of the equipment is improved.
In one embodiment, as shown in fig. 8, the SDN controller may further include: a communication interface 803 and a communication bus 804; the processor 801, the machine-readable storage medium 802, and the communication interface 803 complete mutual communication through the communication bus 804, and the communication interface 803 is used for communication between the shunting device and other devices.
Corresponding to the foregoing message processing method embodiment applied to the offloading device, an embodiment of the present application further provides a machine-readable storage medium storing machine-executable instructions, and when the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause the processor to: any step of the message processing method applied to the shunting equipment is realized.
The communication bus may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, fig. 7 and 8 are shown with only one thick line, but do not indicate only one bus or one type of bus.
The machine-readable storage medium may include a RAM (Random Access Memory) and a NVM (Non-Volatile Memory), such as at least one disk Memory. Additionally, the machine-readable storage medium may be at least one memory device located remotely from the aforementioned processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also DSPs (Digital Signal Processing), ASICs (Application Specific Integrated circuits), FPGAs (Field Programmable Gate arrays) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for embodiments of a message processing apparatus, an SDN controller, a offloading device, and a machine-readable storage medium, since they are substantially similar to embodiments of a message processing method, descriptions are relatively simple, and relevant points may be referred to part of the description of the embodiments of the message processing method.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (12)

1. A message processing method is applied to a Software Defined Network (SDN) controller, wherein the SDN controller is connected with M + N virtualized broadband access servers (BRAS), M virtualized BRAS in the M + N virtualized BRAS are used as a main BRAS, N virtualized BRAS are used as a standby BRAS, M and N are positive integers, and M > N, and the method comprises the following steps:
monitoring the running states of the M virtualized BRASs;
when the operation state of a first virtualization BRAS in the M virtualization BRAS is monitored to be a fault, selecting a second virtualization BRAS from the N virtualization BRAS, sending an upgrade file to the second virtualization BRAS, and upgrading the second virtualization BRAS to a main BRAS; after the first virtualization BRAS is recovered, sending a degradation file to the first virtualization BRAS, and degrading the first virtualization BRAS into a standby BRAS;
sending a forwarding strategy to the shunting equipment; the forwarding policy is to: and indicating the shunting equipment to forward the message forwarded to the first virtualized BRAS to the second virtualized BRAS.
2. A message processing method is applied to a shunting device, wherein the shunting device is connected with a Software Defined Network (SDN) controller; the SDN controller is connected with M + N virtualized broadband access servers (BRAS), M virtualized BRAS in the M + N virtualized BRAS are used as a main BRAS, N virtualized BRAS are used as standby BRAS, M and N are positive integers, and M > N, and the method comprises the following steps:
receiving a forwarding strategy sent by the SDN controller; the forwarding strategy is that when the SDN controller monitors that the running state of a first virtualization BRAS in the M virtualization BRASs is a fault, a second virtualization BRAS is selected from the N virtualization BRASs, an upgrade file is sent to the second virtualization BRAS, and the second virtualization BRAS is upgraded to a main-use BRAS; after the first virtualization BRAS is recovered, sending a degradation file to the first virtualization BRAS, and sending the first virtualization BRAS after the first virtualization BRAS is degraded into a standby BRAS;
and forwarding the message forwarded to the first virtualized BRAS to the second virtualized BRAS according to the forwarding strategy.
3. The method according to claim 2, wherein the step of forwarding the packet forwarded to the first virtualized BRAS to the second virtualized BRAS according to the forwarding policy comprises:
according to the forwarding strategy, a forwarding table entry with a destination address as the address of the first virtualized BRAS is searched; the forwarding table item is a flow table or an access control table item ACL;
modifying the destination address of the forwarding table entry into the address of the second virtualized BRAS;
and forwarding the message forwarded to the first virtualized BRAS to the second virtualized BRAS according to the modified forwarding table entry.
4. The method according to claim 2, wherein the step of forwarding the packet forwarded to the first virtualized BRAS to the second virtualized BRAS according to the forwarding policy comprises:
according to the forwarding strategy, modifying the corresponding relation between the address of the first virtualized BRAS and the identifier of the extensible virtual local area network VXLAN into the corresponding relation between the address of the second virtualized BRAS and the identifier of the VXLAN;
and forwarding the message forwarded to the first virtualized BRAS to the second virtualized BRAS according to the corresponding relation between the address of the second virtualized BRAS and the identifier of the VXLAN.
5. A packet processing apparatus, applied to a software defined network SDN controller, where the SDN controller is connected to M + N virtualized broadband access servers BRAS, where M virtualized BRAS in the M + N virtualized BRAS serve as a primary BRAS, N virtualized BRAS serve as a standby BRAS, M and N are positive integers, and M > N, the apparatus comprising:
the monitoring unit is used for monitoring the running states of the M virtualized BRASs;
the selection unit is used for selecting a second virtualized BRAS from the N virtualized BRASs when the operation state of a first virtualized BRAS in the M virtualized BRASs is monitored to be a fault;
the processing unit is used for upgrading a second virtualization BRAS to a main BRAS after the second virtualization BRAS is selected from the N virtualization BRASs; after the first virtualized BRAS is recovered, degrading the first virtualized BRAS into a standby BRAS;
the sending unit is used for sending a forwarding strategy to the shunting equipment; the forwarding policy is to: and indicating the shunting equipment to forward the message forwarded to the first virtualized BRAS to the second virtualized BRAS.
6. The message processing device is applied to a shunting device, and the shunting device is connected with a Software Defined Network (SDN) controller; the SDN controller is connected with M + N virtualized broadband access servers (BRAS), M virtualized BRAS in the M + N virtualized BRAS is used as a main BRAS, N virtualized BRAS is used as a standby BRAS, M and N are positive integers, and M > N, the device comprises:
a receiving unit, configured to receive a forwarding policy sent by the SDN controller; the forwarding strategy is that when the SDN controller monitors that the running state of a first virtualization BRAS in the M virtualization BRASs is a fault, a second virtualization BRAS is selected from the N virtualization BRASs, an upgrade file is sent to the second virtualization BRAS, and the second virtualization BRAS is upgraded to a main-use BRAS; after the first virtualization BRAS is recovered, sending a degradation file to the first virtualization BRAS, and sending the first virtualization BRAS after the first virtualization BRAS is degraded into a standby BRAS;
and the forwarding unit is used for forwarding the message forwarded to the first virtualized BRAS to the second virtualized BRAS according to the forwarding strategy.
7. The apparatus according to claim 6, wherein the forwarding unit is specifically configured to:
according to the forwarding strategy, a forwarding table entry with a destination address as the address of the first virtualized BRAS is searched; the forwarding table item is a flow table or an access control table item ACL;
modifying the destination address of the forwarding table entry into the address of the second virtualized BRAS;
and forwarding the message forwarded to the first virtualized BRAS to the second virtualized BRAS according to the modified forwarding table entry.
8. The apparatus according to claim 6, wherein the forwarding unit is specifically configured to:
according to the forwarding strategy, modifying the corresponding relation between the address of the first virtualized BRAS and the identifier of the extensible virtual local area network VXLAN into the corresponding relation between the address of the second virtualized BRAS and the identifier of the VXLAN;
and forwarding the message forwarded to the first virtualized BRAS to the second virtualized BRAS according to the corresponding relation between the address of the second virtualized BRAS and the identifier of the VXLAN.
9. A software defined network, SDN, controller comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: implementing the method steps of claim 1.
10. A machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to: implementing the method steps of claim 1.
11. A streaming device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: -carrying out the method steps of any one of claims 2 to 4.
12. A machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to: -carrying out the method steps of any one of claims 2 to 4.
CN201811360182.8A 2018-11-15 2018-11-15 Message processing method and device Active CN109327339B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811360182.8A CN109327339B (en) 2018-11-15 2018-11-15 Message processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811360182.8A CN109327339B (en) 2018-11-15 2018-11-15 Message processing method and device

Publications (2)

Publication Number Publication Date
CN109327339A CN109327339A (en) 2019-02-12
CN109327339B true CN109327339B (en) 2021-11-26

Family

ID=65257722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811360182.8A Active CN109327339B (en) 2018-11-15 2018-11-15 Message processing method and device

Country Status (1)

Country Link
CN (1) CN109327339B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131026B (en) * 2019-12-26 2022-06-21 深信服科技股份有限公司 Communication method, device, equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101277262B (en) * 2008-04-30 2010-10-27 华为技术有限公司 Method for restarting virtual router redundancy protocol and router
EP2536068B1 (en) * 2011-06-18 2014-08-13 Deutsche Telekom AG Virtual subscriber management
CN102958086A (en) * 2011-08-26 2013-03-06 中兴通讯股份有限公司 Network disaster tolerance method and network disaster tolerance system
CN106936613B (en) * 2015-12-31 2020-03-31 北京网御星云信息技术有限公司 Method and system for rapidly switching main and standby Openflow switch
CN106027311A (en) * 2016-06-24 2016-10-12 江苏省未来网络创新研究院 SDN-based disaster recovery system and data disaster recovery method thereof

Also Published As

Publication number Publication date
CN109327339A (en) 2019-02-12

Similar Documents

Publication Publication Date Title
US10210058B1 (en) Application aware inter-chassis redundancy
CN112866004B (en) Control plane equipment switching method and device and transfer control separation system
US9722917B2 (en) Traffic recovery in openflow networks
CN110784400B (en) N: 1 method, system and standby service gateway for redundancy of stateful application gateway
US8467289B2 (en) Optimized fast re-route in MPLS ring topologies
US9838245B2 (en) Systems and methods for improved fault tolerance in solicited information handling systems
MX2012005239A (en) Disjoint path computation algorithm.
CN110730125B (en) Message forwarding method and device, dual-active system and communication equipment
WO2020030000A1 (en) Disaster recovery switching method, related device and computer storage medium
CN106685817B (en) Method and device for switching flow of box end equipment
CN109327339B (en) Message processing method and device
US8570877B1 (en) Preparing for planned events in computer networks
CN109412980B (en) BRAS backup method and device
CN109120449B (en) Method and device for detecting link failure
CN106878117B (en) Data processing method and device
US11800262B2 (en) Service path switching method and related device
US11258700B1 (en) Enhanced messaging for backup state status notifications in communications networks
CN112583650B (en) SR-BE tunnel link detection method and system in SPN
CN108768798B (en) Equipment access method and device
CN109039921B (en) Designated router switching method, multicast router and multicast network
CN108616461B (en) Policy switching method and device
CN108174417B (en) Main/standby switching method and device, related electronic equipment and readable storage medium
CN111865803A (en) Route processing method and device based on EVPN
CN113746902A (en) Communication method and device
US11949597B2 (en) Platform independent on demand network management and monitoring

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
GR01 Patent grant
GR01 Patent grant