TECHNICAL FIELD
[0001] The present invention relates to the field of communications, and in particular to
a method and an apparatus for controlling switching between an active pseudo-wire
and a standby pseudo-wire.
BACKGROUND
[0002] A radio access network is developing towards an IP-based radio access network, that
is, an IP RAN (Radio Access Network, radio access network) technology. In a current
system that is networked by using the IP RAN technology, a PWE3 (Pseudo-Wire Emulation
Edge to Edge, pseudo-wire emulation edge-to-edge) technology is used; on an access
side of a pseudo-wire (Pseudo-Wire, PW), a cell-site gateway (Cell-Site Gateway, CSG),
by using a PW redundancy (Redundancy) protection technology of the PWE3, is connected
to a first provider edge-aggregation (Provider Edge-Aggregation) and a second provider
edge-aggregation in dual-homing mode, and a BTS/NB (Base Transceiver Station/Node
Base, base transceiver station/NodeB) is connected to the cell-site gateway. After
terminating the PW through an Ethernet port, the first provider edge-aggregation and
the second provider edge-aggregation connect to a VPLS (Virtual Private Local Area
Network Service, virtual private local area network service) of a first user-facing
provider edge (User-Facing PE) and a VPLS of a second user-facing provider edge, respectively.
A BSC/RNC (Base Station Controller/Radio Network Controller, base station controller/radio
network controller) is connected to the first user-facing provider edge and the second
user-facing provider edge. The VPLS of the first user-facing provider edge interworks
with the VPLS of the second user-facing provider edge. This ensures that once an active
PW is faulty, traffic in a standby PW can reach the second user-facing provider edge
and then can be sent to the first user-facing provider edge through the VPLS.
[0003] When a link works normally, which means both the active PW and the standby PW are
available, a virtual switch instance VSI (Virtual Switch Instance) of the first user-facing
provider edge learns a MAC (Media Access Control, media access control) address of
a base station from an access side (the provider edge-aggregation side), and learns
a MAC address of the BSC/RNC from another side (the BSC/RNC side). Traffic from the
BTS/NB to the BSC/RNC is uplink traffic, and traffic from the BSC/RNC to the BTS/NB
is downlink traffic. When the active PW between the cell-site gateway and the provider
edge-aggregation is faulty, the VSI of the first user-facing provider edge cannot
sense the fault and therefore cannot clear the learned MAC address. As a result, the
downlink traffic from the BSC/RNC to the BTS/NB always follows an original path, but
the original path is disconnected at this time.
[0004] When the active PW is faulty, an existing method is performing switching between
the active PW and the standby PW by using a heartbeat packet between the BTS/NB and
the BSC/RNC. However, the method for performing switching between the active PW and
the standby PW according to the heartbeat packet depends on a frequency of the heartbeat
packet and therefore is uncontrollable.
SUMMARY
[0005] The present invention provides a method and an apparatus for controlling switching
between an active pseudo-wire and a standby pseudo-wire to address the technical issue.
[0006] According to a first aspect of the present invention, a method for controlling switching
between an active pseudo-wire and a standby pseudo-wire is provided, where the method
includes:
when the active pseudo-wire PW is faulty, receiving, by an Address Resolution Protocol
ARP proxy, a pseudo-wire PW redundancy switching message;
sending, by the ARP proxy, according to the pseudo-wire PW redundancy switching message
and by using the standby pseudo-wire, an ARP packet monitored by an ARP monitoring
module to a second provider edge-aggregation PE-AGG2 connected with the standby pseudo-wire
PW;
sending, by the PE-AGG2, the ARP packet to a second user-facing provider edge UPE2
connected to the PE-AGG2;
triggering, by the UPE2, a virtual switch instance VSI of the UPE2 to learn a source
hardware address of the ARP packet;
sending, by the UPE2, the ARP packet to a first user-facing provider edge UPE1 corresponding
to the active pseudo-wire; and
triggering, by the UPE1, a VSI of the UPE1 to learn the source hardware address of
the ARP packet so as to switch downlink traffic to the standby pseudo-wire PW.
[0007] Further, the ARP proxy is configured on an access side of the active pseudo-wire
PW and the standby pseudo-wire PW, and is specifically configured on a base station
side of a cell-site gateway.
[0008] Further, the ARP monitoring module is configured on the access side of the active
pseudo-wire PW and the standby pseudo-wire PW, and is specifically configured on the
base station side of the cell-site gateway.
[0009] Further, the step of monitoring an ARP packet by the ARP monitoring module includes:
monitoring an ARP packet from the base station side according to a protocol type of
the ARP packet, and storing the monitored ARP packet in the cell-site gateway CSG
of the base station.
[0010] Further, the PW redundancy switching message is sent from the faulty active PW
[0011] According to a second aspect of the present invention, an apparatus for controlling
switching between an active pseudo-wire and a standby pseudo-wire is provided, where
the apparatus includes:
an Address Resolution Protocol ARP monitoring module, configured to monitor an ARP
packet; and
an ARP proxy, configured to, when the active pseudo-wire PW is faulty, receive a pseudo-wire
PW redundancy switching message, and send, according to the PW redundancy switching
message and by using a standby pseudo-wire PW, an ARP packet monitored by the ARP
monitoring module to a second provider edge-aggregation PE-AGG2 connected with the
standby pseudo-wire PW, so that the PE-AGG2 sends the ARP packet to a second user-facing
provider edge UPE2 connected to the PE-AGG2, the UPE2 triggers a virtual switch instance
VSI of the UPE2 to learn a source hardware address of the ARP packet, the UPE2 sends
the ARP packet to a first user-facing provider edge UPE1 corresponding to the active
PW, and the UPE1 triggers a VSI of the UPE1 to learn the source hardware address of
the ARP packet so as to switch downlink traffic to the standby pseudo-wire PW
[0012] Further, the ARP proxy is configured on an access side of the active pseudo-wire
PW and the standby pseudo-wire PW, and is specifically configured on a base station
side of a cell-site gateway.
[0013] Further, the ARP monitoring module is configured on the access side of the active
pseudo-wire PW and the standby pseudo-wire PW, and is specifically configured on the
base station side of the cell-site gateway.
[0014] Further, the ARP monitoring module is configured to monitor an ARP packet from the
base station side according to a protocol type of the ARP packet and store the monitored
ARP packet in the cell-site gateway CSG of the base station.
[0015] Further, the PW redundancy switching message is sent from the faulty active PW
[0016] When the method and apparatus for controlling switching between an active PW and
a standby PW of the present invention are implemented, an ARP monitoring module always
monitors an ARP packet sent from a base station side, and stores the monitored ARP
packet; after an active PW is faulty, an ARP proxy receives a PW redundancy switching
message, and sends, according to the redundancy switching message, the stored monitored
ARP packet through a standby PW, and re-trigger a VSI of a UPE1 and a VSI of a UPE2
to learn a MAC address of the base station, so as to switch downlink traffic to the
standby PW In this way, the switching between the active PW and the standby PW is
no longer determined according to a frequency of a heartbeat packet, thereby controlling
the switching between the active PW and the standby PW and ensuring switching performance.
BRIEF DESCRIPTION OF DRAWINGS
[0017] To illustrate the technical solutions in the embodiments of the present invention
or in the prior art more clearly, the following briefly introduces the accompanying
drawings required for describing the embodiments or the prior art. Apparently, the
accompanying drawings in the following description show merely some embodiments of
the present invention, and a person of ordinary skill in the art may still derive
other drawings from these accompanying drawings without creative efforts.
FIG. 1 is a schematic flowchart of a method for controlling switching between an active
pseudo-wire and a standby pseudo-wire according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a traffic path after switching between an active
pseudo-wire and a standby pseudo-wire is controlled according to an embodiment of
the present invention; and
FIG. 3 is a schematic diagram of an apparatus for controlling switching between an
active pseudo-wire and a standby pseudo-wire according to an embodiment of the present
invention.
DESCRIPTION OF EMBODIMENTS
[0018] The following clearly and completely describes the technical solutions in the embodiments
of the present invention with reference to the accompanying drawings in the embodiments
of the present invention. Apparently, the described embodiments are merely a part
rather than all of the embodiments of the present invention. All other embodiments
obtained by a person of ordinary skill in the art based on the embodiments of the
present invention without creative efforts shall fall within the protection scope
of the present invention.
[0019] FIG. 1 is a schematic flowchart of a method for controlling switching between an
active pseudo-wire and a standby pseudo-wire according to an embodiment of the present
invention. The method includes:
S100. When the active pseudo-wire PW is faulty, an Address Resolution Protocol ARP
proxy receives a PW redundancy switching message.
S102. The ARP proxy sends, according to the PW redundancy switching message and by
using the standby pseudo-wire PW, an ARP packet monitored by an ARP monitoring module
to a second provider edge-aggregation PE-AGG2 connected with the standby pseudo-wire
PW.
S104. The PE-AGG2 sends the ARP packet to a second user-facing provider edge UPE2
connected to the PE-AGG2.
S106. The UPE2 triggers a virtual switch instance VSI of the UPE2 to learn a source
hardware address of the ARP packet.
S108. The UPE2 sends the ARP packet to a first user-facing provider edge UPE1 corresponding
to the active pseudo-wire PW.
S110. The UPE1 triggers a VSI of the UPE1 to learn the source hardware address of
the ARP packet so as to switch downlink traffic to the standby PW.
[0020] FIG. 2 is a schematic diagram of a network structure using an IP RAN technology.
On an access side of a pseudo-wire PW, a cell-site gateway CSG, by using a PW redundancy
protection technology of a PWE3, is connected to a first provider edge-aggregation
PE-AGG1 and a second provider edge-aggregation PE-AGG2 in dual-homing mode; after
terminating a PW through an Ethernet port, the PE-AGG1 and the PE-AGG2 connect to
a virtual private local area network service VPLS of a first user-facing provider
edge UPE1 and a VPLS of a second user-facing provider edge UPE2, respectively. A base
transceiver station/NodeB BTS/NB is connected to the IP RAN network through a cell-site
gateway CSG, and a base station controller/radio network controller BSC/RNC is connected
to the UPE1 and the UPE2.
[0021] In the embodiment of the present invention, the Address Resolution Protocol (Address
Resolution Protocol, ARP) proxy and the ARP monitoring module are configured on the
access side of the active pseudo-wire PW and the standby pseudo-wire PW, and are specifically
configured on the base station side of the cell-site gateway. The ARP monitoring module
always (that is, before and after the active PW is faulty) monitors the ARP packet
from the base station side according to a protocol type of the ARP packet, and stores
the monitored ARP packet in the cell-site gateway CSG of the base station, where the
protocol type may be obtained from a protocol type (Protocol Type) field in the ARP
packet. When the active pseudo-wire PW is faulty, the active pseudo-wire PW between
the cell-site gateway CSG and the first provider edge-aggregation PE-AGG1 in the network
system cannot run traffic normally upon the occurrence of the fault. The ARP proxy
receives a PW redundancy switching message. In the network structure provided in the
embodiment of the present invention, the PW includes an active pseudo-wire PW and
a standby pseudo-wire PW, and the PW redundancy switching message is a redundancy
switching message sent from the faulty active PW and is used for switching to the
standby PW.
[0022] The ARP proxy sends, according to the PW redundancy switching message and by using
the standby pseudo-wire PW, an ARP packet monitored by the ARP monitoring module to
the second provider edge-aggregation PE-AGG2 connected with the standby pseudo-wire
PW; at this time, the standby pseudo-wire PW becomes the active PW; the PE-AGG2 sends
the ARP packet to the second user-facing provider edge UPE2 connected to the PE-AGG2;
the UPE2 triggers a virtual switch instance VSI of the UPE2 to learn a source hardware
address (that is, a source MAC address) of the ARP packet, and the UPE2 sends the
ARP packet to the first user-facing provider edge UPE1 corresponding to the active
pseudo-wire PW; and the UPE1 triggers a VSI of the UPE1 to learn the source hardware
address of the ARP packet so as to switch downlink traffic to the standby pseudo-wire
PW. A traffic path upon the switching is shown in FIG. 2.
[0023] It should be noted that after the active pseudo-wire PW recovers, switching from
the standby pseudo-wire PW to the active pseudo-wire PW is similar to the foregoing
switching from the active pseudo-wire PW to the standby pseudo-wire PW, which is not
further described herein.
[0024] When the foregoing method for controlling switching between an active PW and a standby
PW is implemented, time of switching between an active PW and a standby PW and corresponding
time of packet loss of downlink traffic are no longer determined according to a frequency
of a heartbeat packet; instead, after the active pseudo-wire PW is faulty, an ARP
proxy switches the downlink traffic to the standby pseudo-wire PW, that is, imports
the downlink traffic to the standby pseudo-wire PW. In this way, traffic switching
between the active PW and the standby PW is implemented, thereby ensuring that traffic
switching time is controllable.
[0025] The method for controlling switching between an active pseudo-wire and a standby
pseudo-wire of the present invention has been described with reference to the accompany
drawings and exemplary embodiments. The following describes an apparatus for controlling
switching between an active pseudo-wire and a standby pseudo-wire of the present invention
with reference to the accompanying drawing and exemplary embodiments.
[0026] FIG. 3 is a schematic diagram of an apparatus for controlling switching between an
active pseudo-wire and a standby pseudo-wire according to an embodiment of the present
invention. The apparatus 300 for controlling switching between an active pseudo-wire
and a standby pseudo-wire includes:
an Address Resolution Protocol ARP monitoring module 302, configured to monitor an
ARP packet; and
an ARP proxy 304, configured to, when the active pseudo-wire PW is faulty, receive
a pseudo-wire PW redundancy switching message, and send, according to the PW redundancy
switching message and by using a standby pseudo-wire PW, an ARP packet monitored by
an ARP monitoring module to a second provider edge-aggregation PE-AGG2 connected with
the standby PW, so that the PE-AGG2 sends the ARP packet to a second user-facing provider
edge UPE2 connected to the PE-AGG2, the UPE2 triggers a virtual switch instance VSI
of the UPE2 to learn a source hardware address of the ARP packet, the UPE2 sends the
ARP packet to a first user-facing provider edge UPE1 corresponding to the active PW,
and the UPE1 triggers a virtual switch instance VSI of the UPE1 to learn the source
hardware address of the ARP packet so as to switch downlink traffic to the standby
pseudo-wire PW.
[0027] In the embodiment of the present invention, the ARP monitoring module 302 and the
ARP proxy are configured on an access side of the active pseudo-wire PW and the standby
pseudo-wire PW, and are specifically configured on a base station side of a cell-site
gateway. Specifically, the ARP monitoring module monitors the ARP packet sent from
the base station side according to a protocol type of the ARP packet, and stores the
monitored ARP packet in the cell-site gateway CSG of the base station, where the protocol
type is a protocol type (Protocol Type) field in an ARP packet. When the active PW
is faulty, the ARP proxy receives a PW redundancy switching message, and sends, according
to the PW redundancy switching message and by using the standby pseudo-wire PW, an
ARP packet monitored by the ARP monitoring module to the second provider edge-aggregation
PE-AGG2 connected with the standby pseudo-wire PW (at this time, the standby PW becomes
the active PW), so that the PE-AGG2 sends the ARP packet to the second user-facing
provider edge UPE2 connected to the PE-AGG2, the UPE2 triggers a virtual switch instance
VSI of the UPE2 to learn a source hardware address (that is, a source MAC address)
of the ARP packet, the UPE2 sends the ARP packet to the first user-facing provider
edge UPE1 corresponding to the active PW, and the UPE1 triggers a VSI of the UPE1
to learn the source hardware address of the ARP packet so as to switch downlink traffic
to the standby pseudo-wire PW, that is, to import the downlink traffic to the standby
pseudo-wire PW. The PW redundancy switching message is a redundancy switching message
sent from the faulty active PW and is used for switching to the standby PW.
[0028] When the method and apparatus for controlling switching between an active pseudo-wire
and a standby pseudo-wire of the present invention are implemented, switching between
an active PW and a standby PW is no longer determined according to a frequency of
a heartbeat packet; instead, when the active PW is faulty, an ARP proxy imports downlink
traffic to the standby PW after the ARP proxy receives a PW redundancy switching message.
In this way, traffic switching between the active PW and the standby PW is implemented,
thereby ensuring that switching time is controllable.
[0029] A person of ordinary skill in the art may understand that all or a part of the processes
of the methods in the foregoing embodiments may be implemented by a computer program
instructing relevant hardware. The program may be stored in a computer readable storage
medium. When the program runs, the processes of the foregoing methods in the embodiments
are performed. The storage medium may be a magnetic disk, an optical disk, a Read-Only
Memory (Read-Only Memory, ROM), or a Random Access Memory (Random Access Memory, RAM).
[0030] The above descriptions are merely exemplary embodiments of the present invention,
and those skilled in the art may make several improvements and modifications without
departing from the principle of the present invention. All such improvements and modifications
shall fall within the protection scope of the present invention.
1. A method for controlling switching between an active pseudo-wire and a standby pseudo-wire,
comprising:
when an active pseudo-wire PW is faulty, receiving, by an Address Resolution Protocol
ARP proxy, a PW redundancy switching message;
sending, by the ARP proxy, according to the PW redundancy switching message and by
using a standby pseudo-wire, an ARP packet monitored by an ARP monitoring module to
a second provider edge-aggregation PE-AGG2 connected with the standby pseudo-wire;
sending, by the PE-AGG2, the ARP packet to a second user-facing provider edge UPE2
connected to the PE-AGG2;
triggering, by the UPE2, a virtual switch instance VSI of the UPE2 to learn a source
hardware address of the ARP packet;
sending, by the UPE2, the ARP packet to a first user-facing provider edge UPE1 corresponding
to the active pseudo-wire; and
triggering, by the UPE1, a VSI of the UPE1 to learn the source hardware address of
the ARP packet so as to switch downlink traffic to the standby PW
2. The method according to claim 1, wherein the ARP proxy is configured on an access
side of the active pseudo-wire and the standby pseudo-wire, and is specifically configured
on a base station side of a cell-site gateway.
3. The method according to claim 1 or 2, wherein the ARP monitoring module is configured
on the access side of the active pseudo-wire and the standby pseudo-wire, and is specifically
configured on the base station side of the cell-site gateway.
4. The method according to any one of claims 1 to 3, wherein the step of monitoring an
ARP packet by the ARP monitoring module comprises:
monitoring the ARP packet from the base station side according to a protocol type
of the ARP packet, and storing the monitored ARP packet in the cell-site gateway CSG
of the base station.
5. The method according to any one of claims 1 to 4, wherein the PW redundancy switching
message is sent from the faulty active pseudo-wire PW.
6. An apparatus for controlling switching between an active pseudo-wire and a standby
pseudo-wire, comprising:
an Address Resolution Protocol ARP monitoring module, configured to monitor an ARP
packet; and
an ARP proxy, configured to, when an active pseudo-wire PW is faulty, receive a pseudo-wire
PW redundancy switching message, and send, according to the PW redundancy switching
message and by using a standby pseudo-wire PW, an ARP packet monitored by the ARP
monitoring module to a second provider edge-aggregation PE-AGG2 connected with the
standby pseudo-wire PW, so that the PE-AGG2 sends the ARP packet to a second user-facing
provider edge UPE2 connected to the PE-AGG2, the UPE2 triggers a virtual switch instance
VSI of the UPE2 to learn a source hardware address of the ARP packet, the UPE2 sends
the ARP packet to a first user-facing provider edge UPE1 corresponding to the active
PW, and the UPE1 triggers a VSI of the UPE1 to learn the source hardware address of
the ARP packet so as to switch downlink traffic to the standby PW
7. The apparatus according to claim 6, wherein the ARP proxy is configured on an access
side of the active pseudo-wire and the standby pseudo-wire, and is specifically configured
on a base station side of a cell-site gateway.
8. The apparatus according to claim 6 or 7, wherein the ARP monitoring module is configured
on the access side of the active pseudo-wire and the standby pseudo-wire, and is specifically
configured on the base station side of the cell-site gateway.
9. The apparatus according to any one of claims 6 to 8, wherein:
the ARP monitoring module is configured to monitor an ARP packet from the base station
side according to a protocol type of the ARP packet and store the monitored ARP packet
in the cell-site gateway CSG of the base station.
10. The apparatus according to any one of claims 6 to 9, wherein the PW redundancy switching
message is sent from the faulty active PW.