CN117376240A - Method, device, equipment, system and storage medium for switching back multicast service - Google Patents

Method, device, equipment, system and storage medium for switching back multicast service Download PDF

Info

Publication number
CN117376240A
CN117376240A CN202210775497.9A CN202210775497A CN117376240A CN 117376240 A CN117376240 A CN 117376240A CN 202210775497 A CN202210775497 A CN 202210775497A CN 117376240 A CN117376240 A CN 117376240A
Authority
CN
China
Prior art keywords
terminal
multicast
multicast information
equipment
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210775497.9A
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202210775497.9A priority Critical patent/CN117376240A/en
Publication of CN117376240A publication Critical patent/CN117376240A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/16Multipoint routing
    • 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/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements

Abstract

The application discloses a method, a device, equipment, a system and a storage medium for switching back multicast service, and relates to the technical field of communication. The method is applied to a first UP device in a BNG system, and the BNG system further comprises a CP device and a second UP device; when the first UP equipment is in fault recovery, the first UP equipment receives first multicast information of a first terminal and a back switching instruction, wherein the back switching instruction instructs to switch multicast service of the first terminal back to the first UP equipment, and the first terminal is switched to a terminal of a second UP equipment by the first UP equipment when the first UP equipment is in fault; and the first UP equipment sends the multicast service corresponding to the first multicast information to the first terminal based on the first multicast information and the back switching instruction. The first UP equipment can receive the first multicast information in the back switching process, so that the first terminal can automatically recover the multicast service without adding groups again, smooth back switching of the multicast service of the terminal is realized, and the reliability of the back switching is higher.

Description

Method, device, equipment, system and storage medium for switching back multicast service
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, a system, and a storage medium for switching back a multicast service.
Background
In a broadband network gateway (broadband network gateway, BNG) system, a Control Plane (CP) device and a User Plane (UP) device are separately deployed, and the CP device can manage a plurality of UP devices. The CP device may control the terminal to be on-line from a certain UP device, so that the UP device forwards the service belonging to the terminal, so as to access the terminal to the network. When any one of the UP devices fails, the CP device can switch the terminal on line with the UP device to the spare UP device which does not fail. When any one of the UP devices is failed to recover, the CP device may switch the terminal switched to the non-failed backup UP device back to the any one of the UP devices.
In the related art, the CP device issues a switch-back instruction to the any UP device to switch back the terminal to the any UP device, and because the terminal is a multicast group added by the UP device, the switch-back process can result in the loss of information of the multicast group added by the terminal on the UP device, so that the terminal needs to join the multicast group again by the any UP device to recover the multicast service, thereby realizing switch-back of the multicast service.
However, the method for switching back the multicast service in the related art may cause the multicast drop phenomenon to occur.
Disclosure of Invention
The application provides a method, a device, equipment, a system and a storage medium for switching back multicast service, which are used for smoothly switching back the multicast service of a terminal.
In a first aspect, a method for switching back multicast service is provided, where the method is applied to a first UP device in a BNG system, and the BNG system further includes a CP device and a second UP device; in the method, a first terminal is switched to a second UP device by a first UP device when the first UP device fails, and when the first UP device is recovered, the first UP device receives first multicast information of the first terminal and a back switching instruction, wherein the back switching instruction is used for indicating that multicast service of the first terminal is switched back to the first UP device; and the first UP equipment sends the multicast service corresponding to the first multicast information to the first terminal based on the first multicast information and the back switching instruction.
Because the first UP device has received the first multicast information of the first terminal when the first UP device performs the back switching according to the back switching instruction, when the first terminal is on line in the first UP device, the first UP device can automatically send the multicast service corresponding to the first multicast information to the first terminal, so that the first terminal can automatically recover the multicast service without adding a group again, smooth back switching of the multicast service of the terminal is realized, and the reliability of the back switching is higher.
In a possible implementation manner, the first multicast information of the first terminal is sent by the second UP device, the handover command is sent by the CP device, that is, the first UP device receives the first multicast information sent by the second UP device, and the first UP device receives the handover command sent by the CP device. Since the multicast service of the first terminal is forwarded by the second UP device before the failure recovery of the first UP device, the second UP device includes first multicast information of the first terminal, and the first multicast information includes at least one of dynamic multicast information or static multicast information. The second UP device sends the first multicast information to the first UP device, so that the first UP device can acquire the first multicast information before switching back the multicast service of the first terminal.
In a possible implementation manner, in the case that the second UP device sends the first multicast information and the CP device sends the back-cut instruction, the back-cut instruction includes first user table entry information, where the first user table entry information is used to indicate a path for sending the multicast service to the first terminal, and the first UP device is capable of sending, based on the back-cut instruction, the multicast service corresponding to the first multicast information to the first terminal based on the path indicated by the first user table entry information. Therefore, the path for transmitting the multicast service to the first terminal can be determined through the first user table entry information in the back-cut instruction, so that the multicast service can be ensured to be successfully transmitted to the first terminal.
In one possible implementation manner, the first multicast information and the handover command of the first terminal are both sent by the CP device, that is, the first UP device receives the first multicast information and the handover command sent by the CP device. In this case, the first multicast information sent by the CP device and received by the first UP device is static multicast information, because the first multicast information of the first terminal included in the CP device is static multicast information, that is, the CP device does not include dynamic multicast information of the first terminal. The static multicast information is also sent when the CP device sends a handover command to the first UP device, so that the first UP device can send the multicast service corresponding to the static multicast information to the first terminal.
In one possible implementation, the first multicast information includes an address of a multicast group to which the first terminal joins. The first UP equipment can send the multicast service corresponding to the multicast group to the first terminal according to the address of the multicast group.
In one possible implementation, the loop-back instruction includes a first virtual media intervention control layer (media access control, MAC) address, the first virtual MAC address corresponding to the first terminal, the first virtual MAC address being an address of a first interface, the first interface being an interface of the first terminal on-line with the first UP device. And the virtual MAC address is used as granularity to carry out the back switching of the terminal, and corresponds to the terminal, so that the back switching result of the multicast service of the terminal is more accurate.
In a possible implementation manner, the back-switching instruction is further used for indicating that the second terminal is switched back to the first UP device, and the second terminal is another terminal switched to the second UP device by the first UP device when the first UP device fails, and in this case, the first UP device further receives second multicast information of the second terminal, and sends multicast services corresponding to the second multicast information to the second terminal based on the second multicast information and the back-switching instruction. The method can realize smooth switching of the multicast service of a plurality of terminals switched to the same UP equipment, and improves the comprehensiveness of switching of the multicast service.
In a possible implementation manner, the BNG system further includes a third UP device, the third terminal is a terminal that is switched to the third UP device by the first UP device when the first UP device fails, and the back-switching instruction is further used for indicating that the third terminal is back-switched to the first UP device, in this case, the first UP device receives third multicast information of the third terminal, and sends multicast services corresponding to the third multicast information to the third terminal based on the third multicast information and the back-switching instruction. The method can realize smooth switching back of the multicast service of a plurality of terminals switched to different UP devices, and further improves the comprehensiveness of switching back the multicast service.
In a second aspect, a method for switching back multicast service is provided, where the method is applied to a CP device in a BNG system, and the BNG system further includes a first UP device and a second UP device; in the method, when the first UP device is in fault recovery, the CP device determines a first terminal to be switched back to the first UP device, and the first terminal is a terminal switched from the first UP device to the second UP device when the first UP device is in fault.
Then, the CP equipment sends a first backup instruction to the second UP equipment, wherein the first backup instruction is used for the second UP equipment to send first multicast information of the first terminal to the first UP equipment, the first multicast information is used for the first UP equipment to send multicast service corresponding to the first multicast information to the first terminal, and the first multicast information comprises at least one of dynamic multicast information or static multicast information; and the CP equipment transmits a back-cut instruction to the first UP equipment, wherein the back-cut instruction is used for indicating that the multicast service of the first terminal is back-cut to the first UP equipment, so that the reliability of the back-cut is higher.
Or the CP device issues first multicast information and a switching-back instruction of the first terminal to the first UP device, where the first multicast information is used for the first UP device to send multicast service corresponding to the first multicast information to the first terminal, the first multicast information includes static multicast information, and the switching-back instruction is used for instructing switching-back of the multicast service of the first terminal to the first UP device.
The CP equipment not only sends the back-switching instruction to the first UP equipment, but also sends the first backup instruction to the second UP equipment, or also sends the first multicast information of the first terminal to the first UP equipment, so that the first UP equipment can receive the first multicast information of the first terminal sent by the second UP equipment or the CP equipment, therefore, when the first terminal is on line in the first UP equipment, the first UP equipment can send the multicast service corresponding to the first multicast information to the first terminal, and the multicast service of the first terminal can be automatically recovered without the first terminal being added again, thereby realizing smooth back-switching of the multicast service of the terminal.
In a possible implementation manner, the first terminal is a terminal on-line with the first UP device, when the first UP device fails, the CP device sends a tangent instruction and static multicast information of the first terminal to the second UP device, the tangent instruction is used for indicating that the first terminal is switched to the second UP device, and the static multicast information of the first terminal is used for the second UP device to send multicast services corresponding to the static multicast information to the first terminal.
Because the CP device includes the static multicast information of the first terminal, and also sends the static multicast information of the first terminal when sending the tangent instruction to the second UP device, when the first terminal is tangent to the second UP device, the second UP device can send the multicast service corresponding to the static multicast information to the first terminal, thereby realizing smooth tangent of the static multicast service.
In one possible implementation, the first multicast information includes an address of a multicast group to which the first terminal joins.
In one possible implementation manner, the loop-back instruction and the first backup instruction each include a first virtual MAC address, where the first virtual MAC address corresponds to the first terminal, and the first virtual MAC address is an address of a first interface, where the first interface is an interface on which the first terminal is on the first UP device.
In a possible implementation manner, the terminal to be switched back to the first UP device further includes a second terminal, and the second terminal is another terminal switched to the second UP device by the first UP device when the first UP device fails;
the first backup instruction is further used for sending second multicast information of the second terminal to the first UP device by the second UP device, the second multicast information is used for sending multicast service corresponding to the second multicast information to the second terminal by the first UP device, and the second multicast information comprises at least one of dynamic multicast information or static multicast information; the back-cut instruction is also used for indicating to back-cut the second terminal to the first UP equipment;
or the CP device further transmits second multicast information of the second terminal to the first UP device, where the second multicast information is used for the first UP device to send multicast services corresponding to the second multicast information to the second terminal, the second multicast information includes static multicast information, and the back-cut instruction is further used for instructing to back-cut the second terminal to the first UP device. The method can realize smooth switching of the multicast service of a plurality of terminals switched to the same UP equipment, and further improves the comprehensiveness of switching of the multicast service.
In a possible implementation manner, the BNG system further includes a third UP device, and the terminal to be switched back to the first UP device further includes a third terminal, where the third terminal is a terminal that is switched from the first UP device to the third UP device when the first UP device fails;
the CP device further sends a second backup instruction to the third UP device, where the second backup instruction is used for sending, by the second UP device, third multicast information of the third terminal to the first UP device, where the third multicast information is used for sending, by the first UP device, multicast services corresponding to the third multicast information to the third terminal, where the third multicast information includes at least one of dynamic multicast information and static multicast information; the back-cut instruction is also used for indicating to back-cut the third terminal to the first UP equipment;
or the CP device further transmits third multicast information of a third terminal to the first UP device, where the third multicast information is used for the first UP device to send multicast services corresponding to the third multicast information to the third terminal, the third multicast information includes static multicast information, and the loop-back instruction is further used for instructing to loop-back the third terminal to the first UP device. The method can realize smooth switching back of the multicast service of a plurality of terminals switched to different UP devices, and further improves the comprehensiveness of switching back the multicast service.
In a third aspect, a method for switching back multicast service is provided, where the method is applied to a second UP device in a BNG system, where the BNG system further includes a first UP device and a CP device, and in the method, when the first UP device fails to recover, the second UP device receives a backup instruction sent by the CP device; the second UP equipment sends first multicast information of a first terminal to the first UP equipment based on a backup instruction, the first terminal is a terminal switched to the second UP equipment by the first UP equipment when the first UP equipment fails, the first multicast information is used for the first UP equipment to send multicast service corresponding to the first multicast information to the first terminal, and the first multicast information comprises at least one of dynamic multicast information and static multicast information.
Because the second UP device can backup the first multicast information of the first terminal to the first UP device based on the backup instruction issued by the CP device, in the back-cut process of the multicast service of the first terminal, the first UP device can acquire the first multicast information of the first terminal and send the multicast service corresponding to the first multicast information to the first terminal, so that the first terminal can automatically recover the multicast service without adding groups again, smooth back-cut of the multicast service of the terminal is realized, and the reliability of the back-cut is higher.
In a possible implementation manner, the first terminal is a terminal on line of the first UP device, and when the first UP device fails, the second UP device receives a tangent instruction sent by the CP device and static multicast information of the first terminal; and the second UP equipment sends the multicast service corresponding to the static multicast information to the first terminal based on the tangent instruction and the static multicast information of the first terminal.
When the first terminal is tangent to the second UP equipment, the second UP equipment can acquire the static multicast information of the first terminal, so that the second UP equipment can send the multicast service corresponding to the static multicast information to the first terminal, smooth tangent of the static multicast service is realized, and tangent efficiency of the static multicast service is improved.
In one possible implementation, the first multicast information includes an address of a multicast group to which the first terminal joins.
In one possible implementation, the backup instruction includes a first virtual MAC address, where the first virtual MAC address corresponds to the first terminal, and the first virtual MAC address is an address of a first interface, where the first interface is an interface of the first terminal on the first UP device.
In a possible implementation manner, the second UP device further sends second multicast information of the second terminal to the first UP device based on the backup instruction, where the second terminal is another terminal that is switched to the second UP device by the first UP device when the first UP device fails, the second multicast information is used by the first UP device to send multicast services corresponding to the second multicast information to the second terminal, and the second multicast information includes at least one of dynamic multicast information or static multicast information.
In a fourth aspect, the present application provides a device for switching back multicast service, where the device is applied to a first UP device in a BNG system, and the BNG system further includes a CP device and a second UP device, where the device includes:
the receiving module is used for receiving first multicast information and a switching-back instruction of the first terminal when the first UP equipment is in fault recovery, wherein the first terminal is a terminal switched from the first UP equipment to the second UP equipment when the first UP equipment is in fault, and the switching-back instruction is used for indicating switching-back multicast service of the first terminal to the first UP equipment;
and the sending module is used for sending the multicast service corresponding to the first multicast information to the first terminal based on the first multicast information and the back switching instruction.
In a possible implementation manner, a receiving module is configured to receive the first multicast information sent by the second UP device, where the first multicast information includes at least one of dynamic multicast information or static multicast information; and the receiving module is used for receiving the back switching instruction sent by the CP equipment.
In a possible implementation manner, the back switching instruction includes first user table item information, where the first user table item information is used to indicate a path for sending the multicast service to the first terminal;
And the sending module is used for sending the multicast service to the first terminal through a path indicated by the first user table entry information based on the back switching instruction.
In a possible implementation manner, the receiving module is configured to receive the first multicast information and the back-switching instruction sent by the CP device, where the first multicast information includes static multicast information.
In one possible implementation, the first multicast information includes an address of a multicast group to which the first terminal joins.
In a possible implementation manner, the back-cut instruction includes a first virtual MAC address, where the first virtual MAC address corresponds to the first terminal, and the first virtual MAC address is an address of a first interface, and the first interface is an interface that the first terminal is on-line on the first UP device.
In a possible implementation manner, the back-switching instruction is further used for indicating to switch back a second terminal to the first UP device, where the second terminal is another terminal that is switched to the second UP device by the first UP device when the first UP device fails;
the receiving module is further used for receiving second multicast information of the second terminal;
And the sending module is further used for sending the multicast service corresponding to the second multicast information to the second terminal based on the second multicast information and the back switching instruction.
In a possible implementation manner, the BNG system further includes a third UP device, and the back-switching instruction is further configured to instruct to back-switch a third terminal to the first UP device, where the third terminal is a terminal that is switched to the third UP device by the first UP device when the first UP device fails;
the receiving module is further used for receiving third multicast information of the third terminal;
and the sending module is further used for sending the multicast service corresponding to the third multicast information to the third terminal based on the third multicast information and the back switching instruction.
In a fifth aspect, the present application provides a device for switching back multicast service, where the device is applied to a CP device in a BNG system, and the BNG system further includes a first UP device and a second UP device, where the device includes:
the determining module is used for determining a first terminal to be switched back to the first UP equipment when the first UP equipment is in fault recovery, wherein the first terminal is a terminal switched from the first UP equipment to the second UP equipment when the first UP equipment is in fault;
The first sending module is used for sending a first backup instruction to the second UP equipment, the first backup instruction is used for sending first multicast information of the first terminal to the first UP equipment by the second UP equipment, the first multicast information is used for sending multicast service corresponding to the first multicast information to the first terminal by the first UP equipment, and the first multicast information comprises at least one of dynamic multicast information or static multicast information;
the second sending module is configured to send a back-switching instruction to the first UP device, where the back-switching instruction is configured to instruct to back-switch the multicast service of the first terminal to the first UP device, or is configured to send first multicast information of the first terminal and a back-switching instruction to the first UP device, where the first multicast information is used for the first UP device to send the multicast service corresponding to the first multicast information to the first terminal, the first multicast information includes static multicast information, and the back-switching instruction is configured to instruct to back-switch the multicast service of the first terminal to the first UP device.
In one possible embodiment, the apparatus further comprises:
and the third sending module is used for sending a tangent instruction and static multicast information of the first terminal to the second UP equipment when the first UP equipment fails, wherein the tangent instruction is used for indicating the first terminal to be switched to the second UP equipment, the first terminal is a terminal on line of the first UP equipment, and the static multicast information of the first terminal is used for sending multicast service corresponding to the static multicast information to the first terminal by the second UP equipment.
In one possible implementation, the first multicast information includes an address of a multicast group to which the first terminal joins.
In a possible implementation manner, the back-cut instruction and the first backup instruction each include a first virtual MAC address, where the first virtual MAC address corresponds to the first terminal, and the first virtual MAC address is an address of a first interface, and the first interface is an interface that the first terminal is on-line on the first UP device.
In a possible implementation manner, the terminal to be switched back to the first UP device further includes a second terminal, where the second terminal is another terminal that is switched from the first UP device to the second UP device when the first UP device fails;
the first backup instruction is further configured to send, by the second UP device, second multicast information of the second terminal to the first UP device, where the second multicast information is used for sending, by the first UP device, multicast services corresponding to the second multicast information to the second terminal, and the second multicast information includes at least one of dynamic multicast information and static multicast information; the back-cut instruction is further used for indicating to back-cut the second terminal to the first UP device;
Or the second sending module is further configured to send second multicast information of the second terminal to the first UP device, where the second multicast information is used for the first UP device to send multicast services corresponding to the second multicast information to the second terminal, the second multicast information includes static multicast information, and the back-cut instruction is further configured to instruct the second terminal to be back-cut to the first UP device.
In a possible implementation manner, the BNG system further comprises a third UP device, and the terminal to be switched back to the first UP device further comprises a third terminal, wherein the third terminal is a terminal switched to the third UP device by the first UP device when the first UP device fails;
the first sending module is further configured to send a second backup instruction to the third UP device, where the second backup instruction is used for sending, by the second UP device, third multicast information of the third terminal to the first UP device, where the third multicast information is used for sending, by the first UP device, multicast services corresponding to the third multicast information to the third terminal, where the third multicast information includes at least one of dynamic multicast information and static multicast information; the back-cut instruction is further used for indicating to back-cut the third terminal to the first UP device;
Or the second sending module is further configured to send third multicast information of the third terminal to the first UP device, where the third multicast information is used for the first UP device to send multicast services corresponding to the third multicast information to the third terminal, the third multicast information includes static multicast information, and the back-cut instruction is further configured to instruct the third terminal to be back-cut to the first UP device.
In a sixth aspect, the present application provides a device for switching back multicast service, where the device is applied to a second UP device in a BNG system, and the BNG system further includes a first UP device and a CP device, where the device includes:
the first receiving module is used for receiving a backup instruction sent by the CP equipment when the first UP equipment is in fault recovery;
the first sending module is configured to send, based on the backup instruction, first multicast information of a first terminal to the first UP device, where the first terminal is a terminal that is switched from the first UP device to the second UP device when the first UP device fails, where the first multicast information is used for the first UP device to send, to the first terminal, multicast services corresponding to the first multicast information, where the first multicast information includes at least one of dynamic multicast information and static multicast information.
In one possible embodiment, the apparatus further comprises:
the second receiving module is used for receiving a tangent instruction sent by the CP equipment and static multicast information of the first terminal when the first UP equipment fails, wherein the first terminal is a terminal on line of the first UP equipment;
and the second sending module is used for sending the multicast service corresponding to the static multicast information to the first terminal based on the tangent instruction and the static multicast information of the first terminal.
In one possible implementation, the first multicast information includes an address of a multicast group to which the first terminal joins.
In a possible implementation manner, the backup instruction includes a first virtual MAC address, where the first virtual MAC address corresponds to the first terminal, and the first virtual MAC address is an address of a first interface, and the first interface is an interface on which the first terminal is on line in the first UP device.
In a possible implementation manner, the first sending module is further configured to send, based on the backup instruction, second multicast information of a second terminal to the first UP device, where the second terminal is another terminal that is switched to the second UP device by the first UP device when the first UP device fails, the second multicast information is used for the first UP device to send, to the second terminal, multicast services corresponding to the second multicast information, where the second multicast information includes at least one of dynamic multicast information and static multicast information.
In a seventh aspect, there is provided a network device comprising: and a processor coupled to a memory, the memory storing at least one program instruction or code, the at least one program instruction or code loaded and executed by the processor to cause the network device to implement a method for switching back multicast traffic as described in any of the first aspect or the second aspect above.
Optionally, the processor is one or more, and the memory is one or more.
Alternatively, the memory may be integrated with the processor or the memory may be separate from the processor.
In a specific implementation process, the memory may be a non-transient (non-transitory) memory, for example, a Read Only Memory (ROM), which may be integrated on the same chip as the processor, or may be separately disposed on different chips, where the type of the memory and the manner of disposing the memory and the processor are not limited in this application.
In an eighth aspect, there is provided a communication apparatus comprising: a transceiver, a memory, and a processor. Wherein the transceiver, the memory and the processor are in communication with each other via an internal connection path, the memory is configured to store instructions, the processor is configured to execute the instructions stored by the memory to control the transceiver to receive signals and to control the transceiver to transmit signals, and when the processor executes the instructions stored by the memory, the processor is configured to cause the communication device to perform the method of the first aspect or any one of the possible implementations of the first aspect, or to perform the method of the second aspect or any one of the possible implementations of the second aspect, or to perform the method of the third aspect or any one of the possible implementations of the third aspect.
A ninth aspect provides a BNG system comprising a first UP device, a CP device, and a second UP device;
the first UP device is configured to perform the method according to the first aspect or any of the possible implementations of the first aspect, the CP device is configured to perform the method according to the second aspect or any of the possible implementations of the second aspect, and the second UP device is configured to perform the method according to the third aspect or any of the possible implementations of the third aspect.
In a tenth aspect, there is provided a computer readable storage medium having stored therein at least one instruction that is loaded and executed by a processor to cause a computer to implement the method of the first aspect or any of the possible implementations of the first aspect, or to implement the method of the second aspect or any of the possible implementations of the second aspect, or to implement the method of the third aspect or any of the possible implementations of the third aspect.
In an eleventh aspect, there is provided a computer program (product), the computer program (product) comprising: computer program code which, when run by a computer, causes the computer to perform the methods of the above aspects.
In a twelfth aspect, there is provided a chip comprising a processor for calling from a memory and executing instructions stored in said memory, so that a communication device on which said chip is mounted performs the method of the above aspects.
In a thirteenth aspect, there is provided another chip comprising: the system comprises an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected through an internal connection path, the processor is used for executing codes in the memory, and when the codes are executed, the processor is used for executing the method in each aspect.
It should be appreciated that the technical solutions of the fourth aspect to the thirteenth aspect and the corresponding possible embodiments of the present application may refer to the technical effects of the first aspect to the third aspect and the corresponding possible embodiments thereof, which are not described herein.
Drawings
Fig. 1 is a schematic structural diagram of a vBNG system according to an embodiment of the present application;
fig. 2 is a schematic diagram of an UP device receiving multicast information according to an embodiment of the present application;
fig. 3 is a schematic diagram of another UP device receiving multicast information according to an embodiment of the present application;
Fig. 4 is an interaction schematic diagram of a method for switching back a multicast service according to an embodiment of the present application;
fig. 5 is an interaction schematic diagram of another method for switching back a multicast service according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a switching device for multicast service according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a switching device of another multicast service according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a switching device of another multicast service according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a network device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of another network device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Broadband remote access servers (broadband remote access server, BRAS) are access gateways for broadband network applications, also known as BNGs, virtual BNGs (vBNG) being one implementation of BRAS. In the embodiment of the application, the access gateway is deployed in a manner of separating the CP device from the UP device (CU separation), so that the access gateway can also be called a BRAS in CU separation deployment. Alternatively, the application scenario of the embodiment of the present application may be BNG or vBNG.
Taking the vBNG as an example, the CP device is used as a control plane of the vBNG, and is used for realizing control and management of a terminal (also referred to as a user) and unified management of a plurality of UP devices. For example, the CP device is mainly responsible for the on-line or off-line configuration of the terminal, user entry information, and the like. The UP device is used as a user plane of the vBNG and is used for realizing the forwarding of service messages based on user table entry information issued by the CP device and realizing flow strategies based on technologies such as service quality (quality of service, qoS) and access control list (access control lists, ACL). Thus, CP devices may also be referred to as control plane devices, UP devices may also be referred to as forwarding plane devices, and CU separation may also be referred to as forwarding and control separation, i.e., steering separation.
Referring to fig. 1, a schematic structure diagram of a vBNG system is provided in an embodiment of the present application. As shown in fig. 1, the vBNG system 100 may include: at least one CP device 101 and a plurality of UP devices 102 (first UP device 1021, second UP device 1022, third UP device 1023, fourth UP device 1024 as shown in fig. 1). Each UP device 102 may be a physical UP (pUP) device or a virtual UP (vcup) device, and load balancing is performed between the UP devices 102.
Wherein each UP device 102 establishes a communication connection with CP device 101. Alternatively, the CP device 101 and each UP device 102 may be connected through a service interface, a management interface, and a control interface. Wherein the service interface is also called a control message redirection interface (control packet redirect interface, CPRi), through which the UP device 102 sends UP access protocol messages and service messages to the CP device 101; the management interface (management interface, mi) is typically a network configuration protocol (network configuration, netcon f) interface, through which the CP device 101 may issue a configuration to each UP device 102, and through which each UP device 102 may report an operation status to the CP device 101; this control interface is also referred to as a status control interface (state control interface, SCi), through which the CP device 101 issues user entry information to the corresponding UP device 102.
In the embodiment of the present application, each UP device 102 also establishes a communication connection with at least one terminal (not shown in fig. 1) and at least one multicast source (not shown in fig. 1), and performs data interaction. Alternatively, the terminal needs to be on-line with a certain UP device of the plurality of UP devices 102, and then the UP device can transmit the service of the terminal. Illustratively, taking the terminal on-line with the first UP device 1021 as an example, for the multicast service of the terminal, the multicast source corresponding to the multicast group added by the terminal may forward the multicast service of the multicast source to the first UP device 1021. The first UP device 1021 receives the multicast service and forwards the multicast service to the terminal, whereby the terminal can receive the multicast service. Alternatively, the terminal may be a home gateway (residential gateway, RGW), a mobile phone, a notebook computer, or a desktop computer, which is also referred to as a user equipment.
The vBNG system 100 is a broadband gateway access system separately deployed by a CU, and for any UP device 102, the cp device 101 may configure an n+1 temperature backup group for each interface on the UP device 102, where N is an integer greater than 0, so as to improve the reliability of the broadband remote access system. The n+1 temperature backup group indicates that the interface corresponds to N backup interfaces, the N backup interfaces are respectively located on the N backup UP devices, and the N backup interfaces are in one-to-one correspondence with the N backup UP devices. In this embodiment of the present application, the warm backup group indicates that the CP device 101 may switch from a terminal on line of any interface to a backup interface of at least one backup UP device of N backup UP devices corresponding to the any interface.
Illustratively, taking the first interface on the first UP device 1021 as an example, when the first UP device 1021 fails, or when the first interface on the first UP device 1021 fails, the CP device 101 may switch the plurality of terminals that are on line from the first interface to at least one backup UP device corresponding to the first interface through a load sharing policy, so that the at least one backup UP device forwards the traffic of the plurality of terminals using the backup interfaces corresponding to the respective first interfaces. Optionally, the at least one backup UP device may include a second UP device 1022, a third UP device 1023, and a fourth UP device 1024, in which case the first interface on the first UP device 1021 has a corresponding 3+1 warm backup group, the 3+1 warm backup group representing three backup interfaces corresponding to the first interface, the three backup interfaces being the second interface on the second UP device 1022, the third interface on the third UP device 1023, and the fourth interface on the fourth UP device 1024, respectively.
In embodiments of the present application, for each UP device 102 in the vBNG system 100, one or more MAC addresses may be configured for interfaces on that UP device 102. The terminals that are brought on line from the interface are divided into a plurality of user groups, each user group corresponding to a virtual MAC address. For any one of the user groups and the virtual MAC address corresponding to the user group, the terminal included in the user group uses the virtual MAC address to interact with the UP device 102. The CP device 101 can switch with the virtual MAC address of the interface as granularity when switching from a terminal on line to another UP device. That is, for any virtual MAC address of the interface, the CP device 101 may switch the user group corresponding to the virtual MAC address from the interface to a backup UP device corresponding to the interface.
For example, taking a 3+1 warm standby corresponding to the first interface on the first UP device 1021 as an example, the first virtual MAC address, the second virtual MAC address, and the third virtual MAC address are configured for the first interface on the first UP device 1021. That is, the terminal that is on-line from the first interface is divided into a first user group corresponding to the first virtual MAC address, a second user group corresponding to the second virtual MAC address, and a third user group corresponding to the third virtual MAC address. When the first UP device 1021 fails, the CP device 101 switches at least one terminal included in the first user group corresponding to the first virtual MAC address to the second UP device 1022, switches at least one terminal included in the second user group corresponding to the second virtual MAC address to the third UP device 1023, and switches at least one terminal included in the third user group corresponding to the third virtual MAC address to the fourth UP device 1024. In this way, the second UP device 1022 forwards the service of at least one terminal included in the first user group through the second interface; third UP device 1023 forwards the service of at least one terminal included in the second user group through a third interface; the fourth UP device 1024 forwards the traffic of the terminal of at least one of the terminals included in the third user group through the fourth interface.
In this embodiment of the present application, when any one UP device fails, a process of switching a terminal on the failed UP device to a corresponding backup UP device is called tangent, and when the UP device on the terminal fails, the service of the terminal can be forwarded through the backup UP device through the tangent process, where the service includes a unicast service and a multicast service. After the tangent is completed, when the UP device is failed back, a process in which the terminal that has been switched to the UP device is migrated back to the UP device is called a loop back.
Taking the first UP device 1021 as an example, when the first UP device 1021 is failed to recover, at least one terminal included in a first user group corresponding to a first virtual MAC address on a second UP device 1022 is migrated back to the first UP device 1021, at least one terminal included in a second user group corresponding to a second virtual MAC address on a third UP device 1023 is migrated back to the first UP device 1021, and at least one terminal included in a third user group corresponding to a third virtual MAC address on a fourth UP device 1024 is migrated back to the first UP device 1021. In this way, the first UP device 1021 forwards, through the first interface, traffic of at least one terminal included in the first user group, traffic of at least one terminal included in the second user group, and traffic of at least one terminal included in the third user group.
Based on the vBNG system 100 shown in fig. 1, taking a terminal as a first terminal as an example, an online process of a certain UP device, a tangent process after the UP device fails, and a back-cut process after the UP device fails in the vBNG system 100 of the first terminal will be described.
Step 1, a first terminal sends an access protocol message to a CP device, where the access protocol message is used to request the first terminal to access a network.
In one possible implementation, the first terminal sends an access protocol packet to an UP device in the vBNG system, and the UP device sends the access protocol packet to the CP device. The UP device may be a UP device in the vicinity of the first terminal or a default UP device set in advance on the first terminal. Optionally, the access protocol packet includes information such as a user account number and a user password of the first terminal.
And 2, the CP equipment receives an access protocol message sent by the first terminal, authenticates the first terminal through an authentication server, and acquires user table entry information of the first terminal when the authentication of the first terminal is passed.
In a possible implementation manner, the CP device sends an authentication request for the first terminal to the authentication server, where the authentication request includes information such as a user account number and a user password corresponding to the first terminal; the authentication server authenticates the first terminal based on the authentication request, after the authentication of the first terminal is passed, an address is allocated to the first terminal, and an authentication response carrying the address is sent to the CP equipment; the CP device receives the authentication response, and selects an UP device for the first terminal to be on-line from UP devices included in the vBNG system based on a load balancing strategy, for example, the first UP device; the CP equipment selects one interface, such as a first interface, from interfaces included in the first UP equipment based on a load balancing strategy, and selects one user group, such as a first user group, from at least one user group of the first interface, wherein the first user group corresponds to a first virtual MAC address; the CP equipment generates user table entry information of the first terminal, wherein the user table entry information comprises user information corresponding to the first terminal, a first virtual MAC address, first route information and the like.
The first virtual MAC address is a virtual MAC address corresponding to the selected first user group. The user information corresponding to the first terminal includes an address of the first terminal, and may also include information such as a user account of the first terminal. The first routing information includes a destination address, which is an address of the first terminal, and next hop information indicating a next hop device addressed to the first terminal. Optionally, the user entry information of the first terminal is used for transmitting the service of the first terminal.
And step 3, the CP equipment sends the user table information of the first terminal to the first UP equipment.
And 4, the first UP equipment sends an access response message to the first terminal based on the received user table entry information of the first terminal, wherein the access response message comprises the user information of the first terminal and the first virtual MAC address.
Optionally, after receiving the user entry information of the first terminal, the first UP device associates the user entry information with a first interface corresponding to the first virtual MAC address based on a first virtual MAC address in the user entry information, and optionally, stores a corresponding relationship between the user entry information and the first interface corresponding to the first virtual MAC address.
And step 5, the first terminal sends a first service request to the first UP equipment based on the address of the first terminal and the first virtual MAC address in the received access response message, wherein the first service request comprises the user information of the first terminal, the first virtual MAC address and the service information of the service to be requested.
In this embodiment of the present application, if the service to be requested by the first terminal is a multicast service, the address of the service to be requested is a multicast address of a first multicast source, and the first multicast source is a multicast source corresponding to the multicast service. That is, when the first service request is a multicast joining request, service information of a service to be requested is multicast information, and the multicast information includes a multicast address of the first multicast source. If the service to be requested by the first terminal is a non-multicast service, the address of the service to be requested is the address of the server where the service to be requested is located.
And 6, the first UP equipment receives the first service request and forwards the service of the first terminal to the first terminal based on the first service request.
In this embodiment of the present application, the first UP device receives, through the first interface, a first service request, where a service to be requested in the first service request may be a multicast service or a non-multicast service.
If the service to be requested is a multicast service, the first UP device stores the corresponding relation between the multicast information of the service to be requested and the user information of the first terminal. Optionally, the first UP device establishes communication connection with a first forwarding device, where the first forwarding device is configured to forward a multicast service of a first multicast source corresponding to the service to be requested. The first UP device sends the user information of the first terminal and the multicast information of the service to be requested to the first forwarding device, and the first forwarding device adds the first terminal to the multicast group of the first multicast source based on the multicast address and the user information of the first terminal to send the multicast service of the first multicast source to the first UP device because the multicast information comprises the multicast address of the first multicast source.
Because the multicast group of the first multicast source is actively requested to join by the first terminal, the multicast service of the first multicast source is a dynamic multicast service of the first terminal, and the multicast information can be called dynamic multicast information. In the embodiment of the present application, in addition to the above active request of the dynamic multicast service by the first terminal, the CP device may actively configure and issue the static multicast service for the first terminal. In this case, the first terminal includes corresponding dynamic multicast information and static multicast information.
In this embodiment of the present application, static multicast refers to implementing transmission of multicast service in a metropolitan area network or a bearer network through static configuration, that is, sending a multicast address of a multicast source to a service access control point according to a multicast tree path configured statically, where the service access control point is, for example, a CP device in this embodiment of the present application. In an exemplary embodiment, the CP device receives static multicast information, where the static multicast information includes a multicast address of the second multicast source, and in step 3, the CP device sends, in addition to user entry information of the first terminal to the first UP device, the static multicast information to the first UP device, so that the first UP device forwards, to the first terminal, multicast services of the second multicast source corresponding to the static multicast information based on the static multicast information.
If the service to be requested is a non-multicast service, the first UP device generates second routing information corresponding to the first terminal, wherein the second routing information comprises a destination address and next hop information, the destination address is an address of the service to be requested (an address of a server), the next hop information indicates the next hop device sent to the server, and the second routing information is added into user table entry information of the first terminal.
Optionally, the first UP device further sends an update request to the CP device, where the update request includes user information of the first terminal and the second routing information, the CP device receives the update request, obtains user table entry information corresponding to the user information, where the user table entry information corresponding to the user information is the user table entry information of the first terminal, and adds the second routing information in the user table entry information of the first terminal.
Therefore, the first terminal finishes the online through the first interface on the first UP equipment, so that the first UP equipment can forward the service of the first terminal to the first terminal through the user list item information and the multicast information of the first terminal, the service of the first terminal comprises non-multicast service or multicast service, and the multicast service comprises dynamic multicast service or static multicast service.
In the embodiment of the application, the first UP device and the N backup UP devices belong to the same warm backup group, and the first UP device stores the backup UP device and the backup interface corresponding to each virtual MAC address on each interface on the first UP device. Illustratively, the first UP Device stores a backup relationship as shown in table 1 below, where a first record (record with serial number 1) of the backup relationship includes an Interface identifier Interface11 of the first Interface, a first virtual MAC address, and UP Device information, where the UP Device information includes a Device identifier Device2 of the second UP Device and an Interface identifier Interface21 of the second Interface. Other records in the backup relationship shown in table 1 are not listed here.
TABLE 1
Thus, the first UP device can acquire the backup UP device and the backup interface corresponding to the first virtual MAC address of the first interface on the first terminal on line based on the backup relationship shown in table 1.
In a possible implementation manner, the first UP device determines that the corresponding backup UP device is the second UP device based on the first virtual MAC address of the first interface, sends the user information and the multicast information of the first terminal to the second UP device, and the second UP device stores the correspondence between the user information and the multicast information of the first terminal in the main control board of the second UP device.
It can be understood that, through the steps 1 to 6, the second terminal may complete the online through the first interface on the first UP device, where the second terminal corresponds to the second virtual MAC address of the first interface, and the first UP device may backup the user information and the multicast information of the second terminal to the third UP device; the third terminal can finish the online through a first interface on the first UP device, the third terminal corresponds to a third virtual MAC address of the first interface, and the first UP device can backup user information and multicast information of the third terminal to the fourth UP device.
In the embodiment of the application, the CP device stores the online condition of each terminal at each UP device. Illustratively, the CP device stores a correspondence between the device identifier of the first UP device, the interface identifier of the first interface, the first virtual MAC address, and the user entry information of the first terminal, stores a correspondence between the device identifier of the first UP device, the interface identifier of the first interface, the second virtual MAC address, and the user entry information of the second terminal, and stores a correspondence between the device identifier of the first UP device, the interface identifier of the first interface, the third virtual MAC address, and the user entry information of the third terminal.
Next, an example will be described in which the terminal on-line with the first UP device includes a first terminal, a second terminal, and a third terminal.
And 7, responding to the fault of the first UP equipment, and switching the terminal on line of the first UP equipment to the corresponding standby UP equipment by the CP equipment based on the granularity of the virtual MAC address.
In the embodiment of the application, the CP device may configure an n+1 temperature backup group for each interface on each UP device, where the CP device stores a backup relationship between the primary device information and the quality of the backup UP device. Illustratively, the CP Device stores a backup relationship as shown in table 2 below, where a first record (record with serial number 1) of the backup relationship includes main Device information including Device identifier Device1 of the first UP Device, interface identifier 11 of the first Interface, and a first virtual MAC address, and backup UP Device information including Device identifier Device2 of the second UP Device, and Interface identifier Interface21 of the second Interface. Other records in the backup relationship shown in table 2 are not listed here.
TABLE 2
Therefore, the CP device can obtain the device identifier of the backup UP device corresponding to the online terminal and the interface identifier of the backup interface on the backup UP device from the backup relationship shown in table 2, and because the backup interface has a binding relationship corresponding to the virtual MAC address one by one, the backup relationship in the warm backup group is controllable, so that the smooth tangent and the smooth back-cut of the forwarding side can be conveniently realized.
Optionally, the CP device sends a switching instruction of the first terminal to the second UP device, where the switching instruction is used to instruct to switch the first terminal to the first UP device, and the switching instruction includes an interface identifier of the second interface and user entry information of the first terminal; the CP equipment sends a switching instruction of the second terminal to the third UP equipment, wherein the switching instruction is used for indicating the second terminal to be switched to the third UP equipment, and comprises an interface identifier of a third interface and user table entry information of the second terminal; the CP device sends a switching instruction of the third terminal to the fourth UP device, where the switching instruction is used to instruct to switch the third terminal to the fourth UP device, and the switching instruction includes an interface identifier of the fourth interface and user entry information of the third terminal.
Taking the second UP device as an example, it can be known from the foregoing that the second UP device stores the correspondence between the user information of the first terminal and the multicast information. After the second UP device receives the handover command of the first terminal, the second UP device can determine multicast information corresponding to the first terminal because the handover command includes user entry information of the first terminal and the user entry information of the first terminal includes user information of the first terminal. Therefore, the second UP device can forward the service of the first terminal to the first terminal through the user table entry information and the multicast information of the first terminal, the phenomena of disconnection, multicast disconnection and the like of the first terminal are not caused, and the smooth tangent of the first terminal when the UP device fails is realized.
And 8, responding to the fault recovery of the first UP device, and switching the terminal on line of the first UP device back to the first UP device by the CP device based on the granularity of the virtual MAC address.
Alternatively, after the first UP device fails back, the CP device first needs to determine which of the plurality of terminals to be switched back to the first UP device, e.g., determine the plurality of terminals to be switched back to the first UP device based on the virtual MAC address granularity. As can be seen from the content in step 6, the CP device stores the online condition of each terminal on each UP device, so that the CP device can determine a plurality of virtual MAC addresses that are online on the first UP device, and acquire a terminal corresponding to each virtual MAC address in the plurality of virtual MAC addresses, for example, a first virtual MAC address corresponds to a first terminal, a second virtual MAC address corresponds to a second terminal, and a third virtual MAC address corresponds to a third terminal. It should be understood that any virtual MAC address may correspond to a plurality of terminals, and in this embodiment of the present application, a virtual MAC address corresponds to one terminal is described as an example. Thereby, it is determined that the plurality of terminals to be switched back to the first UP device are the first terminal, the second terminal, and the third terminal, respectively.
In the embodiment of the present application, the CP device may determine the backup UP device and the backup interface corresponding to the first UP device according to the backup relationship between the main device information and the backup UP device information shown in table 2. Therefore, the CP device can determine the standby UP device and the standby interface respectively corresponding to the first terminal, the second terminal and the third terminal. For example, the first terminal corresponds to a first virtual MAC address, the backup UP device corresponding to the first virtual MAC address is a second UP device, the backup interface is a second interface, the second terminal corresponds to a second virtual MAC address, the backup UP device corresponding to the second virtual MAC address is a third UP device, the backup interface is a third interface, the third terminal corresponds to a third virtual MAC address, the backup UP device corresponding to the third virtual MAC address is a fourth UP device, and the backup interface is a fourth interface.
Optionally, taking the terminal on line of the first UP device as the first terminal, the second terminal and the third terminal as examples, the CP device sends a back-switching instruction to the first UP device in a manner that the first terminal, the second terminal and the third terminal are back-switched to the first UP device. The switching instruction comprises first user list information corresponding to the first terminal, second user list information corresponding to the second terminal and third user list information corresponding to the third terminal, so that the first UP device forwards unicast service belonging to the first terminal based on the first user list information, forwards unicast service belonging to the second terminal based on the second user list information, forwards unicast service belonging to the third terminal based on the third user list information, and smooth switching of unicast services of the first terminal, the second terminal and the third terminal is realized. However, when the first terminal, the second terminal and the third terminal have multicast services, the multicast information corresponding to the first terminal, the second terminal and the third terminal respectively is lost, and the multicast services are dropped.
Based on the above, the method for switching back the multicast service provided by the embodiment of the application can realize smooth switching back of the multicast service. In the method, the first UP device can acquire the multicast information of the terminal, so that when the terminal is switched back to the first UP device, the first UP device can forward the multicast service corresponding to the multicast information to the terminal according to the acquired multicast information of the terminal. Optionally, the embodiment of the present application does not limit a manner in which the first UP device obtains the multicast information of the terminal, including but not limited to the following two manners.
In the first mode, the CP device controls backup of multicast information between the UP devices before the multicast service is switched back.
In a possible implementation manner, taking an example that the backup UP device includes a second UP device, a third UP device and a fourth UP device, the CP device sends backup instructions to the second UP device, the third UP device and the fourth UP device, so that the second UP device, the third UP device and the fourth UP device backup multicast information of a corresponding terminal to be switched back to the first UP device, respectively, thereby enabling the first UP device to obtain the multicast information corresponding to the first terminal, the second terminal and the third terminal, respectively.
Still taking the vBNG100 system shown in fig. 1 as an example, referring to fig. 2, fig. 2 is a schematic diagram of an UP device receiving multicast information according to an embodiment of the present application. The backup UP device corresponding to the first virtual MAC address is a second UP device 1022, the backup UP device corresponding to the second virtual MAC address is a third UP device 1023, and the backup UP device corresponding to the third virtual MAC address is a fourth UP device 1024. With the virtual MAC address as granularity, the CP device 101 issues a first backup instruction to the second UP device 1022, where the first backup instruction includes the first virtual MAC address and a device identifier of the first UP device 1021, and the second UP device 1022 sends, to the first UP device 1021, first multicast information of the first terminal corresponding to the first virtual MAC address based on the first backup instruction; the CP device 101 issues a second backup instruction to the third UP device 1023, where the second backup instruction includes a second virtual MAC address and a device identifier of the first UP device 1021, and the third UP device 1023 sends, to the first UP device 1021, second multicast information of a second terminal corresponding to the second virtual MAC address based on the second backup instruction; the CP device 101 issues a third backup instruction to the fourth UP device 1024, where the third backup instruction includes a third virtual MAC address and a device identifier of the first UP device 1021, and the fourth UP device 1024 sends third multicast information of a third terminal corresponding to the third virtual MAC address to the first UP device 1021 based on the third backup instruction. Thereby, the first UP device 1021 is backed UP with the first multicast information of the first terminal, the second multicast information of the second terminal, and the third multicast information of the third terminal.
Taking the first terminal as an example, before the first UP device fails to recover, the second UP device forwards the multicast service of the first terminal, so that the second UP device includes first multicast information of the first terminal, and the first multicast information includes at least one of dynamic multicast information or static multicast information. The second UP device sends the first multicast information to the first UP device so that the first UP device can acquire the first multicast information before switching back to the first terminal.
In a possible implementation manner, after the first UP device is backed UP with the first multicast information of the first terminal, the second multicast information of the second terminal and the third multicast information of the third terminal, the CP device issues a back-cut instruction to the first UP device, where the back-cut instruction is used to instruct to back-cut the first terminal, the second terminal and the third terminal to the first UP device, where the back-cut instruction includes first user table entry information corresponding to the first terminal, second user table entry information corresponding to the second terminal and second user table entry information corresponding to the third terminal, and then the first UP device couples the first multicast information with the first user table entry information to implement sending, to the first terminal, a multicast service corresponding to the first multicast information; the first UP equipment couples the second multicast information with the second user table information so as to realize the multicast service corresponding to the second multicast information sent to the second terminal; the first UP device couples the third multicast information with the third user entry information to implement sending, to the third terminal, a multicast service corresponding to the third multicast information.
In the second mode, the CP device directly re-transmits the static multicast information to the first UP device.
In the second mode, since the CP device includes static multicast information of each terminal but does not include dynamic multicast information of each terminal, the first UP device directly re-transmits the static multicast information of the terminal to be switched back to the first UP device. For example, still taking the vBNG100 system shown in fig. 1 as an example, referring to fig. 3, the cp device 101 issues, to the first UP device 1021, first multicast information of the first terminal, second multicast information of the second terminal, and third multicast information of the third terminal, where the first multicast information, the second multicast information, and the third multicast information are all static multicast information. Therefore, the first UP device 1021 obtains the static multicast information corresponding to the first terminal, the second terminal and the third terminal respectively, so as to realize smooth back-cut of the static multicast information.
In a possible implementation manner, the CP device sends a back-cut instruction to the first UP device, where the back-cut instruction is used to instruct to back-cut the first terminal, the second terminal, and the third terminal to the first UP device, and the back-cut instruction includes first user table information corresponding to the first terminal, second user table information corresponding to the second terminal, and second user table information corresponding to the third terminal, and then the first UP device sends, according to the back-cut instruction, a multicast service corresponding to the first multicast information to the first terminal, a multicast service corresponding to the second multicast information to the second terminal, and a multicast service corresponding to the third multicast information to the third terminal.
In this embodiment of the present application, besides the foregoing CP device issuing the back-cut instruction and the static multicast information to the first UP device at the same time, the CP device may also issue the static multicast information to the first UP device first and then issue the back-cut instruction to the first UP device.
Therefore, through the first mode or the second mode, when the first UP equipment switches the terminal to be switched back to the first UP equipment according to the switching back instruction, the first UP equipment already receives the multicast information of the terminal to be switched back, so that the first UP equipment can directly send the multicast service corresponding to the multicast information to the terminal to be switched back, automatic recovery of the static multicast service and the dynamic multicast service of the terminal is realized, namely, the effect that the terminal can smoothly recover the multicast service without adding groups again when the UP equipment fails to recover is realized, and the reliability of switching back is higher.
Referring to fig. 4, an embodiment of the present application provides a method 400 for switching back multicast traffic, where the method 400 may be applied to a BNG system, where the BNG system includes a CP device, a first UP device, and a second UP device, and optionally, the BNG system may be a vBNG system, and the method 400 includes the following steps.
In step 401, when the first UP device fails to recover, the CP device determines a first terminal to be switched back to the first UP device, where the first terminal is a terminal switched from the first UP device to the second UP device when the first UP device fails.
The first terminal is a terminal which is on line on a first interface of the first UP device, the first terminal corresponds to a first virtual MAC address, and the first virtual MAC address is an address of the first interface. In the embodiment of the present application, when the first UP device fails, the CP device needs to switch the terminal on line from each interface of the first UP device to the other UP device, and the first interface is any interface on the first UP device. Optionally, the first virtual MAC address is a virtual MAC address corresponding to a first user group, and the first user group includes the first terminal.
In one possible implementation manner, the first UP device and the N backup UP devices belong to the same warm backup group, and the virtual MAC address is precisely bound to the backup interface of the backup UP device. In an exemplary embodiment, when the first UP device fails, the CP device determines, according to the relationship of the warm backup group, to switch the terminal corresponding to the first virtual MAC address to the second interface of the second UP device, that is, to switch the first terminal to the second interface of the second UP device. Since the first terminal is on-line at the second interface of the second UP device, the second UP device takes the first virtual MAC address as one virtual MAC address of the second interface.
In this embodiment of the present application, the CP device stores terminal information of each interface on the first UP device and a backup relationship corresponding to a virtual MAC address of each interface, or the CP device stores a switching record of switching, when the first UP device fails, the terminal of each interface on the first UP device to a backup interface of the backup UP device. Thus, the CP device can determine a first terminal to be switched back to the first UP device, and can determine a second interface through which the first terminal is switched from the first UP device to the second UP device upon failure of the first UP device.
In step 402, the cp device issues a first backup command to the second UP device, where the first backup command is used for the second UP device to send first multicast information of the first terminal to the first UP device.
In the embodiment of the application, after the CP device determines that the first terminal to be switched back to the first UP device is obtained, a first backup instruction is issued to the second UP device, so that the second UP device backs UP the first multicast information of the first terminal to the first UP device.
In step 403, the second UP device sends the first multicast information of the first terminal to the first UP device based on the received first backup instruction.
In one possible implementation, the first backup instruction includes a first virtual MAC address and a device identification of the first UP device. The second UP device searches first multicast information of the first terminal based on a first virtual MAC address in the first backup instruction, and sends the first multicast information of the first terminal to the first UP device based on a device identifier of the first UP device in the first backup instruction. Optionally, the first multicast information includes at least one of dynamic multicast information or static multicast information.
In the embodiment of the present application, the first multicast information includes an address of a multicast group to which the first terminal joins. The multicast group added by the first terminal may be a multicast group corresponding to the first multicast source, and the multicast service corresponding to the first multicast information is a multicast service of the first multicast source multicast. Alternatively, the multicast service may be high-speed internet surfing (high speed interner, HSI) or IP television/internet television (internet protocol TV, IPTV).
Therefore, the first UP equipment receives the first multicast information of the first terminal sent by the second UP equipment, and the backup of the first multicast information of the first terminal on the first UP equipment is realized. In one possible implementation manner, after the first UP device receives the first multicast information of the first terminal sent by the second UP device, the first UP device stores the first multicast information of the first terminal in a main control board of the second UP device.
Optionally, the second UP device sends the first multicast information of the first terminal to the first UP device and sends the first virtual MAC address to the first UP device, and the first UP device stores the correspondence between the first virtual MAC address of the first terminal and the first multicast information in a main control board of the second UP device; or the second UP equipment also sends the user information corresponding to the first terminal to the first UP equipment, and the first UP equipment stores the corresponding relation between the user information corresponding to the first terminal and the first multicast information in a main control board of the second UP equipment.
In step 404, the cp device issues a back-cut instruction to the first UP device, where the back-cut instruction is used to instruct to back-cut the multicast service of the first terminal to the first UP device.
In this embodiment of the present application, the back-switching instruction is used to instruct to back-switch the first terminal to the first UP device, that is, switch the first terminal to be on-line through the first UP device, and because the first terminal includes the multicast service, the back-switching instruction is used to instruct to back-switch the multicast service of the first terminal to the first UP device. Optionally, the switch-back instruction includes first user entry information, where the first user entry information is used to indicate a path for sending the multicast service to the first terminal. Optionally, the first user table item information includes first routing information, a next hop device of the first routing information is a first terminal, and the first routing information is used for indicating a path for sending the multicast service to the first terminal.
In a possible implementation manner, in the case that the second UP device sends the first multicast information and the CP device sends the back-cut instruction, the back-cut instruction includes first user table entry information, where the first user table entry information is used to indicate a path for sending the multicast service to the first terminal, and the first UP device is capable of sending, based on the back-cut instruction, the multicast service corresponding to the first multicast information to the first terminal based on the path indicated by the first user table entry information. Therefore, the path for transmitting the multicast service to the first terminal can be determined through the first user table entry information in the back-cut instruction, so that the multicast service can be ensured to be successfully transmitted to the first terminal.
In this embodiment of the present application, the first user table information includes user information or a first virtual MAC address of the first terminal, and the first multicast information also includes user information or a first virtual MAC address of the first terminal, so that the first UP device may couple the received first user table information with the first multicast information stored in the main control board, that is, determine that the first multicast information corresponds to the first user table information, and further enable the first UP device to send, to the first terminal, a multicast service corresponding to the first multicast information based on a path indicated by the first user table information.
In step 405, the first UP device sends, to the first terminal, a multicast service corresponding to the first multicast information based on the first multicast information and the callback instruction.
In the embodiment of the application, the first UP device switches back the multicast service of the first terminal to the first interface of the first UP device according to the switch back instruction, and sends the multicast service corresponding to the first multicast information to the first terminal based on the first multicast information. Optionally, the first UP device establishes communication connection with a second forwarding device, where the second forwarding device is configured to forward, to the first UP device, a multicast service corresponding to the first multicast information.
In one possible implementation manner, the process that the first UP device sends, to the first terminal, the multicast service corresponding to the first multicast information based on the first multicast information may be that the first UP device sends, to the second forwarding device, a service request, where the service request includes the first multicast information, and the first multicast information includes an address of a multicast group. The second forwarding device receives the service request, and if the second forwarding device has received the multicast service corresponding to the first multicast information, generates first downlink routing information, where the first downlink routing information includes an address of the multicast group and first next-hop information, and the next-hop device indicated by the first next-hop information is a first UP device. If the second forwarding device does not receive the multicast service corresponding to the first multicast information, receiving the multicast service of the multicast group based on the address of the multicast group included in the first multicast information, and generating first downlink routing information, wherein the first downlink routing information includes the address of the multicast group and first next-hop information, and the next-hop device indicated by the first next-hop information is a first UP device.
The procedure of sending the multicast service to the first terminal by the address of the multicast group is described next, the second forwarding device receives a first service packet based on the address of the multicast group, where the first service packet is a packet belonging to the multicast service, the first service packet includes first multicast information, the first multicast information includes the address of the multicast group, obtains first downlink routing information including the address of the multicast group, obtains first next hop information from the first downlink routing information, and sends the first service packet to the first UP device based on the first next hop information. The first UP equipment receives the first service message, and because the first multicast information is coupled with the first user list information, the first user list information of the first terminal is obtained based on the first multicast information included in the first service message, and the second service message is sent to the first terminal based on the first user list information, and the second service message is obtained based on the first service message.
Optionally, the first user table item information includes second downlink routing information and a first virtual MAC address, a next-hop device indicated by second next-hop information in the second downlink routing information is a third forwarding device, and the first UP device sends a second service packet to the third forwarding device through a first interface corresponding to the first virtual MAC address. And the third forwarding equipment receives the second service message and sends the third service message to the first terminal. The third forwarding device establishes communication connection with the first terminal, and is used for sending a forwarding message to the first terminal.
It may be understood that, when the first UP device fails, the second terminal is another terminal that is switched to the second UP device by the first UP device, and then the back-switching instruction is further used to instruct to back-switch the multicast service of the second terminal to the first UP device, in this case, the first backup instruction is further used to instruct the second UP device to send second multicast information of the second terminal to the first UP device, that is, the first UP device further receives the second multicast information of the second terminal sent by the second UP device, and based on the second multicast information and the back-switching instruction, sends the multicast service corresponding to the second multicast information to the second terminal. The smooth switching back of the multicast service of a plurality of terminals switched to the same UP equipment can be realized, and the comprehensiveness of the switching back of the multicast service is improved.
In a possible implementation manner, the BNG system further includes a third UP device, for the third terminal, where the third terminal is a terminal that is switched from the first UP device to the third UP device when the first UP device fails, the back-switching instruction is further used to instruct the third terminal to switch back to the first UP device, in this case, the CP device further sends a second backup instruction to the third UP device, and the third UP device sends third multicast information of the third terminal to the first UP device according to the second backup instruction, that is, the first UP device further receives third multicast information of the third terminal sent by the second UP device, and sends, based on the third multicast information and the back-switching instruction, a multicast service corresponding to the third multicast information to the third terminal. The smooth switching back of the multicast service of a plurality of terminals switched to different UP devices can be realized, and the comprehensiveness of the switching back of the multicast service is further improved.
In the embodiment of the application, because the first UP device has received the first multicast information of the first terminal in the back switching process, the first UP device can automatically send the multicast service corresponding to the first multicast information to the first terminal, so that the first terminal can automatically recover the multicast service without adding groups again, the group dropping phenomenon of the multicast service of the first terminal is not caused, and the smooth back switching of the multicast service of the terminal is realized.
Referring to fig. 5, an embodiment of the present application provides a method 500 for switching back multicast traffic, where the method 500 may be applied to a BNG system, where the BNG system includes a CP device, a first UP device, and a second UP device, and optionally, the BNG system may be a vBNG system, and the method 500 includes the following steps.
In step 501, when the first UP device fails to recover, the CP device determines a first terminal to be switched back to the first UP device, where the first terminal is a terminal switched from the first UP device to the second UP device when the first UP device fails.
This part of the content may be referred to in step 401, and will not be described here again.
In step 502, the cp device issues first multicast information of the first terminal and a back-cut instruction to the first UP device, where the back-cut instruction is used to instruct to back-cut the multicast service of the first terminal to the first UP device.
In this case, the first multicast information sent by the CP device and received by the first UP device is static multicast information, because the first multicast information of the first terminal included in the CP device is static multicast information, that is, the CP device does not include dynamic multicast information of the first terminal. The static multicast information is also sent when the CP equipment sends a switching instruction to the first UP equipment, so that the first UP equipment can send the multicast service corresponding to the static multicast information to the first terminal, and the multicast service is the static multicast service.
For static multicast traffic. In a possible implementation manner, when the first UP device changes from normal to failure, the CP device sends a tangent instruction and static multicast information of the first terminal to the second UP device, where the tangent instruction is used to instruct the first terminal to switch to the second UP device; the second UP equipment receives a tangent instruction sent by the CP equipment and static multicast information of the first terminal; and the second UP equipment sends the multicast service corresponding to the static multicast information to the first terminal based on the tangent instruction and the static multicast information of the first terminal.
The CP device includes the static multicast information of the first terminal, and when sending the tangent instruction to the second UP device, the second UP device can send the multicast service corresponding to the static multicast information to the first terminal when the first terminal is tangent to the second UP device, so that smooth tangent of the static multicast service is realized, and tangent efficiency of the static multicast service is improved.
In step 503, the first UP device sends, to the first terminal, a multicast service corresponding to the first multicast information based on the first multicast information and the callback instruction.
This part of the content may be referred to in step 405, and will not be described here again.
It may be understood that, for the second terminal, the second terminal is another terminal that is switched to the second UP device by the first UP device when the first UP device fails, the back-switching instruction is further used to instruct to switch back the second terminal to the first UP device, in this case, the first UP device further receives second multicast information of the second terminal sent by the CP device, and sends, based on the second multicast information and the back-switching instruction, multicast services corresponding to the second multicast information to the second terminal. Wherein the second multicast information is static multicast information. The smooth switching back of the multicast service of a plurality of terminals switched to the same UP equipment can be realized, and the comprehensiveness of the switching back of the multicast service is improved.
In a possible implementation manner, the BNG system further includes a third UP device, for the third terminal, where the third terminal is a terminal that is switched to the third UP device by the first UP device when the first UP device fails, the back switch instruction is further used to instruct to switch the third terminal back to the first UP device, in this case, the first UP device further receives third multicast information of the third terminal sent by the CP device, and sends, based on the third multicast information and the back switch instruction, multicast services corresponding to the third multicast information to the third terminal. Wherein the third multicast information is static multicast information. The smooth switching back of the multicast service of a plurality of terminals switched to different UP devices can be realized, and the comprehensiveness of the switching back of the multicast service is further improved.
In the embodiment of the present application, since the first UP device receives the first multicast information of the first terminal while receiving the callback instruction, the first multicast information is static multicast information. Therefore, after the multicast service of the first terminal is switched back to the first UP device, the first UP device can send the multicast service corresponding to the static multicast information to the first terminal, so that the static multicast service of the first terminal is automatically recovered, the group dropping phenomenon of the static multicast service of the first terminal is not caused, the smooth switching back of the static multicast service of the terminal is realized, and the reliability of the switching back is higher.
The foregoing introduces a method for switching back the multicast service according to the embodiment of the present application, and the embodiment of the present application further provides a device for switching back the multicast service corresponding to the foregoing method. Fig. 6 is a schematic structural diagram of a switching device for multicast service according to an embodiment of the present application, where the device is applied to a first UP device in a BNG system, and the BNG system further includes a CP device and a second UP device, where the first UP device is the first UP device shown in fig. 1-3. The switching back device for the multicast service shown in fig. 6 can perform all or part of the operations performed by the first UP device based on the following modules shown in fig. 6. It should be understood that the apparatus may include additional modules than those shown or omit some of the modules shown therein, which is not limiting in this embodiment of the application. As shown in fig. 6, the apparatus includes:
A receiving module 601, configured to receive, when a first UP device fails to recover, first multicast information and a back-switching instruction of a first terminal, where the first terminal is a terminal that is switched from the first UP device to a second UP device when the first UP device fails, and the back-switching instruction is configured to instruct to back-switch a multicast service of the first terminal to the first UP device;
and the sending module 602 is configured to send, to the first terminal, a multicast service corresponding to the first multicast information based on the first multicast information and the back switch instruction.
In a possible implementation manner, the receiving module 601 is configured to receive first multicast information sent by the second UP device, where the first multicast information includes at least one of dynamic multicast information or static multicast information; and the receiving module 601 is configured to receive a loop-back instruction sent by the CP device.
In one possible implementation, the loop-back instruction includes first user entry information, where the first user entry information is used to indicate a path for sending the multicast service to the first terminal;
and the sending module 602 is configured to send the multicast service to the first terminal through the path indicated by the first user entry information based on the back switch instruction.
In a possible implementation manner, the receiving module 601 is configured to receive first multicast information and a back-switching instruction sent by the CP device, where the first multicast information includes static multicast information.
In one possible implementation, the first multicast information includes an address of a multicast group to which the first terminal joins.
In one possible implementation, the back-cut instruction includes a first virtual MAC address, where the first virtual MAC address corresponds to the first terminal, and the first virtual MAC address is an address of a first interface, where the first interface is an interface of the first terminal on the first UP device.
In a possible implementation manner, the back-switching instruction is further used for indicating to switch back the second terminal to the first UP device, where the second terminal is another terminal that is switched to the second UP device by the first UP device when the first UP device fails;
the receiving module 601 is further configured to receive second multicast information of a second terminal;
the sending module 602 is further configured to send, to the second terminal, a multicast service corresponding to the second multicast information based on the second multicast information and the back switch instruction.
In a possible implementation manner, the BNG system further includes a third UP device, and the back-switching instruction is further configured to instruct that the third terminal is switched back to the first UP device, where the third terminal is a terminal that is switched from the first UP device to the third UP device when the first UP device fails;
the receiving module 601 is further configured to receive third multicast information of a third terminal;
The sending module 602 is further configured to send, to the third terminal, a multicast service corresponding to the third multicast information based on the third multicast information and the back switch instruction.
According to the back switching device for the multicast service, since the first UP device receives the first multicast information of the first terminal when switching back according to the back switching instruction, after the first terminal is on line in the first UP device, the first UP device can automatically send the multicast service corresponding to the first multicast information to the first terminal, so that the first terminal can automatically recover the multicast service without adding groups again, smooth back switching of the multicast service of the terminal is realized, and the reliability of the back switching is higher.
Fig. 7 is a schematic structural diagram of another apparatus for switching back multicast service according to an embodiment of the present application, where the apparatus is applied to a CP device in a BNG system, and the BNG system further includes a first UP device and a second UP device, where the CP device is the CP device shown in fig. 1-3. The switching back device of the multicast service shown in fig. 7 can perform all or part of operations performed by the CP device based on the following modules shown in fig. 7. It should be understood that the apparatus may include additional modules than those shown or omit some of the modules shown therein, which is not limiting in this embodiment of the application. As shown in fig. 7, the apparatus includes:
A determining module 701, configured to determine, when the first UP device fails to recover, a first terminal to be switched back to the first UP device, where the first terminal is a terminal switched from the first UP device to the second UP device when the first UP device fails;
a first sending module 702, configured to send a first backup instruction to a second UP device, where the first backup instruction is used for sending, by the second UP device, first multicast information of a first terminal to the first UP device, where the first multicast information is used for sending, by the first UP device, multicast services corresponding to the first multicast information to the first terminal, where the first multicast information includes at least one of dynamic multicast information and static multicast information;
a second sending module 703, configured to send a back-switching instruction to the first UP device, where the back-switching instruction is used to instruct to back-switch the multicast service of the first terminal to the first UP device; or the first multicast information is used for sending the multicast service corresponding to the first multicast information to the first terminal, the first multicast information comprises static multicast information, and the back-cut instruction is used for indicating that the multicast service of the first terminal is back-cut to the first UP device.
In one possible embodiment, the apparatus further comprises:
and the third sending module is used for sending a tangent instruction and static multicast information of the first terminal to the second UP equipment when the first UP equipment fails, wherein the tangent instruction is used for indicating the first terminal to be switched to the second UP equipment, the first terminal is a terminal on line of the first UP equipment, and the static multicast information of the first terminal is used for sending multicast services corresponding to the static multicast information to the first terminal by the second UP equipment.
In one possible implementation, the first multicast information includes an address of a multicast group to which the first terminal joins.
In one possible implementation manner, the loop-back instruction and the first backup instruction each include a first virtual MAC address, where the first virtual MAC address corresponds to the first terminal, and the first virtual MAC address is an address of a first interface, where the first interface is an interface on which the first terminal is on the first UP device.
In a possible implementation manner, the terminal to be switched back to the first UP device further includes a second terminal, and the second terminal is another terminal switched to the second UP device by the first UP device when the first UP device fails;
the first backup instruction is further used for sending second multicast information of the second terminal to the first UP device by the second UP device, the second multicast information is used for sending multicast service corresponding to the second multicast information to the second terminal by the first UP device, and the second multicast information comprises at least one of dynamic multicast information or static multicast information; the back-cut instruction is also used for indicating to back-cut the second terminal to the first UP equipment;
Or the second sending module 703 is further configured to send second multicast information of the second terminal to the first UP device, where the second multicast information is used for the first UP device to send multicast service corresponding to the second multicast information to the second terminal, the second multicast information includes static multicast information, and the back-cut instruction is further used for indicating that the second terminal is back-cut to the first UP device.
In a possible implementation manner, the BNG system further includes a third UP device, and the terminal to be switched back to the first UP device further includes a third terminal, where the third terminal is a terminal that is switched from the first UP device to the third UP device when the first UP device fails;
the first sending module 702 is further configured to send a second backup instruction to a third UP device, where the second backup instruction is used for sending, by the second UP device, third multicast information of a third terminal to the first UP device, where the third multicast information is used for sending, by the first UP device, multicast services corresponding to the third multicast information to the third terminal, where the third multicast information includes at least one of dynamic multicast information and static multicast information; the back-cut instruction is also used for indicating to back-cut the third terminal to the first UP equipment;
or the second sending module 703 is further configured to send third multicast information of a third terminal to the first UP device, where the third multicast information is used for the first UP device to send a multicast service corresponding to the third multicast information to the third terminal, the third multicast information includes static multicast information, and the loop back instruction is further used for instructing to loop back the third terminal to the first UP device.
According to the back-cut device for the multicast service, the CP equipment not only sends the back-cut instruction to the first UP equipment, but also sends the first backup instruction to the second UP equipment, or also sends the first multicast information of the first terminal to the first UP equipment, so that the first UP equipment can receive the first multicast information of the first terminal sent by the second UP equipment or the CP equipment, and therefore, after the first terminal is on line with the first UP equipment, the first UP equipment can send the multicast service corresponding to the first multicast information to the first terminal, the multicast service of the first terminal can be automatically recovered without the need of the first terminal to add groups again, smooth back-cut of the multicast service of the terminal is realized, and the reliability of the back-cut is higher.
Fig. 8 is a schematic structural diagram of another apparatus for switching back multicast service according to an embodiment of the present application, where the apparatus is applied to a second UP device in a BNG system, and the BNG system further includes a first UP device and a CP device, where the second UP device is the second UP device shown in fig. 1-3. The switching back means of the multicast service shown in fig. 8 can perform all or part of the operations performed by the second UP device based on the following modules shown in fig. 8. It should be understood that the apparatus may include additional modules than those shown or omit some of the modules shown therein, which is not limiting in this embodiment of the application. As shown in fig. 8, the apparatus includes:
A first receiving module 801, configured to receive a backup instruction sent by a CP device when a first UP device fails to recover;
a first sending module 802, configured to send, based on a backup instruction, first multicast information of a first terminal to a first UP device, where the first terminal is a terminal that is switched from the first UP device to a second UP device when the first UP device fails, where the first multicast information is used by the first UP device to send, to the first terminal, multicast services corresponding to the first multicast information, where the first multicast information includes at least one of dynamic multicast information and static multicast information.
In one possible embodiment, the apparatus further comprises:
the second receiving module is used for receiving a tangent instruction sent by the CP equipment and static multicast information of the first terminal when the first UP equipment fails, wherein the first terminal is a terminal on line of the first UP equipment;
and the second sending module is used for sending the multicast service corresponding to the static multicast information to the first terminal based on the tangent instruction and the static multicast information of the first terminal.
In one possible implementation, the first multicast information includes an address of a multicast group to which the first terminal joins.
In one possible implementation, the backup instruction includes a first virtual MAC address, where the first virtual MAC address corresponds to the first terminal, and the first virtual MAC address is an address of a first interface, where the first interface is an interface of the first terminal on the first UP device.
In a possible implementation manner, the first sending module 802 is further configured to send, based on the backup instruction, second multicast information of the second terminal to the first UP device, where the second terminal is another terminal that is switched to the second UP device by the first UP device when the first UP device fails, the second multicast information is used by the first UP device to send, to the second terminal, multicast services corresponding to the second multicast information, where the second multicast information includes at least one of dynamic multicast information and static multicast information.
According to the back-cut device for the multicast service, the second UP device can back UP the first multicast information of the first terminal to the first UP device based on the backup instruction issued by the CP device, so that in the back-cut process of the multicast service of the first terminal, the first UP device can acquire the first multicast information of the first terminal and send the multicast service corresponding to the first multicast information to the first terminal, the first terminal can automatically recover the multicast service without adding a group again, smooth back-cut of the multicast service of the terminal is realized, and the reliability of the back-cut is higher.
It should be understood that the apparatus provided in fig. 6-8 above is merely illustrative of the division of the functional modules when implementing the functions thereof, and in practical applications, the functional modules may be allocated to different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and the method embodiments provided in the foregoing embodiments belong to the same concept, and specific implementation processes of the apparatus and the method embodiments are detailed in the method embodiments and are not repeated herein.
Referring to fig. 9, fig. 9 illustrates a schematic structure of a network device 2000 according to an exemplary embodiment of the present application. The network device 2000 shown in fig. 9 is configured to perform the operations related to the method for switching back the multicast service shown in fig. 4 or 5. The network device 2000 is, for example, a switch, a router, etc., and the network device 2000 may be implemented by a general bus architecture.
As shown in fig. 9, the network device 2000 includes at least one processor 2001, a memory 2003, and at least one communication interface 2004.
The processor 2001 is, for example, a general central processing unit (central processing unit, CPU), a digital signal processor (digital signal processor, DSP), a network processor (network processer, NP), a graphics processor (Graphics Processing Unit, GPU), a neural-network processor (neural-network processing units, NPU), a data processing unit (Data Processing Unit, DPU), a microprocessor, or one or more integrated circuits for implementing the aspects of the present application. For example, the processor 2001 includes an application-specific integrated circuit (ASIC), a programmable logic device (programmable logic device, PLD) or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. PLDs are, for example, complex programmable logic devices (complex programmable logic device, CPLD), field-programmable gate arrays (field-programmable gate array, FPGA), general-purpose array logic (generic array logic, GAL), or any combination thereof. Which may implement or perform the various logical blocks, modules, and circuits described in connection with the disclosure of embodiments of the invention. The processor may also be a combination that performs the function of a computation, e.g., including one or more microprocessors, a combination of a DSP and a microprocessor, and so forth.
Optionally, the network device 2000 also includes a bus. The bus is used to transfer information between the components of the network device 2000. The bus may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, only one thick line is shown in fig. 9, but not only one bus or one type of bus.
The Memory 2003 is, for example, but not limited to, a read-only Memory (ROM) or other type of static storage device that can store static information and instructions, as well as a random access Memory (random access Memory, RAM) or other type of dynamic storage device that can store information and instructions, as well as an electrically erasable programmable read-only Memory (electrically erasable programmable read-only Memory, EEPROM), compact disc read-only Memory (compact disc read-only Memory) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media, or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory 2003 is, for example, independent and is connected to the processor 2001 via a bus. Memory 2003 may also be integrated with processor 2001.
The communication interface 2004 uses any transceiver-like means for communicating with other devices or communication networks, which may be ethernet, radio access network (radio access network, RAN) or wireless local area network (wireless local area networks, WLAN), etc. Communication interface 2004 may include a wired communication interface, and may also include a wireless communication interface. Specifically, the communication interface 2004 may be an Ethernet (Fast Ethernet) interface, a Fast Ethernet (FE) interface, a Gigabit Ethernet (GE) interface, an asynchronous transfer mode (Asynchronous Transfer Mode, ATM) interface, a wireless local area network (wireless local area networks, WLAN) interface, a cellular network communication interface, or a combination thereof. The ethernet interface may be an optical interface, an electrical interface, or a combination thereof. In the present embodiment, the communication interface 2004 may be used for the network device 2000 to communicate with other devices.
In a particular implementation, the processor 2001 may include one or more CPUs, such as CPU0 and CPU1 shown in FIG. 9, as an example. Each of these processors may be a single-core (single-core CPU) processor or may be a multi-core (multi-core CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
In a particular implementation, as one embodiment, the network device 2000 may include multiple processors, such as processor 2001 and processor 2005 shown in fig. 9. Each of these processors may be a single-Core Processor (CPU) or a multi-core processor (multi-core CPU). A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
In a specific implementation, the network device 2000 may also include output devices and input devices, as one embodiment. The output device communicates with the processor 2001, which can display information in a variety of ways. For example, the output device may be a liquid crystal display (liquid crystal display, LCD), a light emitting diode (light emitting diode, LED) display device, a Cathode Ray Tube (CRT) display device, or a projector (projector), or the like. The input device(s) and processor 2001 are in communication and may receive input from a user in a variety of ways. For example, the input device may be a mouse, a keyboard, a touch screen device, a sensing device, or the like.
In some embodiments, memory 2003 is used to store program code 2010 for performing aspects of the present application, and processor 2001 may execute program code 2010 stored in memory 2003. That is, the network device 2000 may implement the method for switching back the multicast service provided by the method embodiment through the processor 2001 and the program code 2010 in the memory 2003. One or more software modules may be included in program code 2010. Optionally, the processor 2001 itself may also store program code or instructions for performing the present aspects.
In a specific embodiment, the network device 2000 of the embodiment of the present application may correspond to the first network device in the above-described method embodiments, and the processor 2001 in the network device 2000 reads the instructions in the memory 2003, so that the network device 2000 shown in fig. 9 can perform all or part of the operations performed by the first UP device.
Specifically, the processor 2001 is configured to receive, when the first UP device fails to recover, first multicast information and a switch-back instruction of the first terminal, where the first terminal is a terminal that is switched from the first UP device to the second UP device when the first UP device fails, and the switch-back instruction is configured to instruct switching back a multicast service of the first terminal to the first UP device; and sending the multicast service corresponding to the first multicast information to the first terminal based on the first multicast information and the back switching instruction.
Other optional embodiments are not described here again for brevity.
For another example, the network device 2000 of the embodiment of the present application may correspond to the second network device in the above-described respective method embodiments, and the processor 2001 in the network device 2000 reads the instructions in the memory 2003, so that the network device 2000 shown in fig. 9 can perform all or part of the operations performed by the CP device.
Specifically, the processor 2001 is configured to determine, when the first UP device fails to recover, a first terminal to be switched back to the first UP device, where the first terminal is a terminal switched from the first UP device to the second UP device when the first UP device fails; the method comprises the steps that a first backup instruction is sent to a second UP device, the first backup instruction is used for sending first multicast information of a first terminal to the first UP device by the second UP device, the first multicast information is used for sending multicast service corresponding to the first multicast information to the first terminal by the first UP device, and the first multicast information comprises at least one of dynamic multicast information and static multicast information; issuing a back-cut instruction to the first UP device, wherein the back-cut instruction is used for indicating to back-cut the multicast service of the first terminal to the first UP device; or the first multicast information is used for sending the multicast service corresponding to the first multicast information to the first terminal, the first multicast information comprises static multicast information, and the back-cut instruction is used for indicating that the multicast service of the first terminal is back-cut to the first UP device.
Other optional embodiments are not described here again for brevity.
For another example, the network device 2000 of the embodiment of the present application may correspond to the second network device in the above-described respective method embodiments, and the processor 2001 in the network device 2000 reads the instructions in the memory 2003, so that the network device 2000 shown in fig. 9 can perform all or part of the operations performed by the second UP device.
Specifically, the processor 2001 is configured to receive a backup instruction sent by the CP device when the first UP device fails to recover; and sending first multicast information of the first terminal to the first UP equipment based on the backup instruction, wherein the first terminal is a terminal switched to the second UP equipment by the first UP equipment when the first UP equipment fails, the first multicast information is used for sending multicast service corresponding to the first multicast information to the first terminal by the first UP equipment, and the first multicast information comprises at least one of dynamic multicast information and static multicast information.
Other optional embodiments are not described here again for brevity.
The network device 2000 may also correspond to the above-described switching back device for multicast service shown in fig. 6-8, where each functional module in the switching back device for multicast service is implemented by using software of the network device 2000. In other words, the functional module included in the switching-back device of the multicast service is generated after the processor 2001 of the network device 2000 reads the program code 2010 stored in the memory 2003.
The steps of the method for switching back the multicast service shown in fig. 4 or 5 are completed by an integrated logic circuit of hardware or an instruction in a software form in a processor of the network device 2000. The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in the processor for execution. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor reads information in the memory, and in combination with its hardware, performs the steps of the above method, which will not be described in detail here to avoid repetition.
Referring to fig. 10, fig. 10 is a schematic structural diagram of a network device 2100 according to another exemplary embodiment of the present application, where the network device 2100 shown in fig. 10 is configured to perform all or part of the operations related to the method for switching back the multicast service shown in fig. 4 or 5. The network device 2100 is, for example, a switch, router, etc., and the network device 2100 may be implemented by a general bus architecture.
As shown in fig. 10, the network device 2100 includes: a main control board 2110 and an interface board 2130.
The main control board is also called a main processing unit (main processing unit, MPU) or a routing processing card (route processor card), and the main control board 2110 is used for controlling and managing various components in the network device 2100, including routing computation, device management, device maintenance, and protocol processing functions. The main control board 2110 includes: a central processor 2111 and a memory 2112.
The interface board 2130 is also referred to as a line interface unit (line processing unit, LPU), line card, or service board. The interface board 2130 is used to provide various service interfaces and to enable forwarding of data packets. The service interfaces include, but are not limited to, ethernet interfaces, such as flexible ethernet service interfaces (Flexible Ethernet Clients, flexE Clients), POS (Packet over SONET/SDH) interfaces, etc. The interface board 2130 includes: central processor 2131 network processor 2132, forwarding table entry memory 2134, and physical interface cards (physical interface card, PIC) 2133.
The central processor 2131 on the interface board 2130 is used to control and manage the interface board 2130 and communicate with the central processor 2111 on the main control board 2110.
The network processor 2132 is used to implement forwarding processing of the message. The network processor 2132 may be in the form of a forwarding chip. The forwarding chip may be a network processor (network processor, NP). In some embodiments, the forwarding chip may be implemented by an application-specific integrated circuit (ASIC) or a field programmable gate array (field programmable gate array, FPGA). Specifically, the network processor 2132 is configured to forward the received message based on the forwarding table stored in the forwarding table entry memory 2134, and if the destination address of the message is the address of the network device 2100, upload the message to the CPU (e.g. the central processor 2131) for processing; if the destination address of the message is not the address of the network device 2100, the next hop and the egress interface corresponding to the destination address are found from the forwarding table according to the destination address, and the message is forwarded to the egress interface corresponding to the destination address. The processing of the uplink message may include: processing a message input interface and searching a forwarding table; the processing of the downlink message may include: forwarding table lookup, etc. In some embodiments, the central processor may also perform the function of a forwarding chip, such as implementing software forwarding based on a general purpose CPU, so that no forwarding chip is needed in the interface board.
The physical interface card 2133 is used to implement the docking function of the physical layer, from which the original traffic enters the interface board 2130, and from which processed messages are sent out from the physical interface card 2133. The physical interface card 2133, also referred to as a daughter card, may be mounted on the interface board 2130 and is responsible for converting the photoelectric signals into messages and forwarding the messages to the network processor 2132 for processing after performing validity check on the messages. In some embodiments, the central processor 2131 may also perform the functions of the network processor 2132, such as implementing software forwarding based on a general purpose CPU, such that the network processor 2132 is not required in the physical interface card 2133.
Optionally, the network device 2100 includes a plurality of interface boards, for example, the network device 2100 further includes an interface board 2140, the interface board 2140 including: central processor 2141, network processor 2142, forwarding table entry store 2144, and physical interface card 2143. The function and implementation of the various components in interface board 2140 are the same or similar to interface board 2130 and are not described in detail herein.
Optionally, network device 2100 also includes a switch web 2120. Switch board 2120 may also be referred to as a switch board unit (switch fabric unit, SFU). In the case of network device 2100 having multiple interface boards, switch web 2120 is used to complete the exchange of data between the interface boards. For example, interface board 2130 and interface board 2140 may communicate with each other via switch web 2120.
The main control board 2110 is coupled to the interface board. For example. Main control board 2110, interface board 2130 and interface board 2140 are connected to the system backplane via a system bus to achieve interworking between the switch fabric 2120 and the system backplane. In one possible implementation, an inter-process communication protocol (inter-process communication, IPC) channel is established between the main control board 2110 and the interface boards 2130 and 2140, and communication is performed between the main control board 2110 and the interface boards 2130 and 2140 through the IPC channel.
Logically, network device 2100 includes a control plane that includes a main control board 2110 and a central processor 2111, and a forwarding plane that includes various components that perform forwarding, such as a forwarding table entry memory 2134, a physical interface card 2133, and a network processor 2132. The control plane performs the functions of router, generating forwarding table, processing signaling and protocol messages, configuring and maintaining the state of the network device, etc., and the control plane issues the generated forwarding table to the forwarding plane, where the network processor 2132 forwards the message received by the physical interface card 2133 based on the forwarding table issued by the control plane. The forwarding table issued by the control plane may be stored in forwarding table entry memory 2134. In some embodiments, the control plane and the forwarding plane may be completely separate and not on the same network device.
It should be noted that the main control board may have one or more blocks, and the main control board and the standby main control board may be included when there are multiple blocks. The interface boards may have one or more, the more data processing capabilities the network device is, the more interface boards are provided. The physical interface card on the interface board may also have one or more pieces. The switching network board may not be provided, or may be provided with one or more blocks, and load sharing redundancy backup can be jointly realized when the switching network board is provided with the plurality of blocks. Under the centralized forwarding architecture, the network device may not need to exchange network boards, and the interface board bears the processing function of the service data of the whole system. Under the distributed forwarding architecture, the network device may have at least one switching fabric, through which data exchange between multiple interface boards is implemented, providing high-capacity data exchange and processing capabilities. Therefore, the data access and processing power of the network device of the distributed architecture is greater than that of the network device of the centralized architecture. Alternatively, the network device may have a configuration in which only one board card is provided, that is, there is no switching network board, the functions of the interface board and the main control board are integrated on the one board card, and the central processor on the interface board and the central processor on the main control board may be combined into one central processor on the one board card, so as to perform the functions after stacking the two, where the network device has low data exchange and processing capabilities (for example, network devices such as a low-end switch or a router). The specific architecture employed is not limited in any way herein, depending on the specific networking deployment scenario.
In a specific embodiment, the network device 2100 corresponds to the above-described switching apparatus of the multicast service applied to the first UP device shown in fig. 6. In some embodiments, the receiving module 601 and the transmitting module 602 in the switching apparatus of the multicast service shown in fig. 6 correspond to the physical interface card 2133 in the network device 2100.
In some embodiments, the network device 2100 also corresponds to the above-described switching back apparatus of the multicast service applied to the CP device shown in fig. 7. In some embodiments, the determining module 701 in the apparatus for back-cutting multicast service shown in fig. 7 corresponds to the central processor 2111 or the network processor 2132 in the network device 2100, and the first sending module 702 and the second sending module 703 correspond to the physical interface card 2133 in the network device 2100.
In some embodiments, the network device 2100 also corresponds to the above-described switching back apparatus of the multicast service applied to the second UP device shown in fig. 8. In some embodiments, the first receiving module 801 and the first transmitting module 802 in the switching apparatus of the multicast service shown in fig. 8 correspond to the physical interface card 2133 in the network device 2100.
Based on the network devices shown in fig. 9 and fig. 10, the embodiment of the present application further provides a BNG system, where the BNG system includes a first UP device, a CP device, and a second UP device; the first UP device is used for executing any method executed by the first UP device, the CP device is used for executing any method executed by the CP device, and the second UP device is used for executing any method executed by the second UP device. For example, the first UP device, the CP device, and the second UP device may be the network device 2000 shown in fig. 9 or the network device 2100 shown in fig. 10. The method for switching back the multicast service executed by the first UP device, the CP device, and the second UP device may be referred to the related description of the embodiment shown in fig. 4 or 5, which is not described herein.
The embodiment of the application also provides a communication device, which comprises: a transceiver, a memory, and a processor. The transceiver, the memory and the processor are in communication with each other through an internal connection path, the memory is used for storing instructions, the processor is used for executing the instructions stored in the memory to control the transceiver to receive signals and control the transceiver to send signals, and when the processor executes the instructions stored in the memory, the processor is caused to execute a method required to be executed by the first network device.
The embodiment of the application also provides a communication device, which comprises: a transceiver, a memory, and a processor. The transceiver, the memory and the processor are in communication with each other through an internal connection path, the memory is used for storing instructions, the processor is used for executing the instructions stored in the memory to control the transceiver to receive signals and control the transceiver to send signals, and when the processor executes the instructions stored in the memory, the processor is caused to execute a method required to be executed by a remote server.
The embodiment of the application also provides a communication device, which comprises: a transceiver, a memory, and a processor. The transceiver, the memory and the processor are in communication with each other through an internal connection path, the memory is used for storing instructions, the processor is used for executing the instructions stored in the memory to control the transceiver to receive signals and control the transceiver to send signals, and when the processor executes the instructions stored in the memory, the processor is caused to execute a method required to be executed by the second network device.
It should be appreciated that the processor described above may be a CPU, but may also be other general purpose processors, digital signal processors (digital signal processing, DSP), application specific integrated circuits (application specific integrated circuit, ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or any conventional processor or the like. It is noted that the processor may be a processor supporting an advanced reduced instruction set machine (advanced RISC machines, ARM) architecture.
Further, in an alternative embodiment, the memory may include read only memory and random access memory, and provide instructions and data to the processor. The memory may also include non-volatile random access memory. For example, the memory may also store information of the device type.
The memory may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. The volatile memory may be random access memory (random access memory, RAM) which acts as an external cache. By way of example, and not limitation, many forms of RAM are available. For example, static RAM (SRAM), dynamic RAM (dynamic random access memory, DRAM), synchronous DRAM (SDRAM), double data rate synchronous DRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous DRAM (SLDRAM), and direct memory bus RAM (DR RAM).
The embodiment of the application also provides a computer readable storage medium, wherein at least one instruction is stored in the storage medium, and the instruction is loaded and executed by a processor, so that a computer realizes the method for switching back the multicast service.
The present application also provides a computer program (product) which, when executed by a computer, can cause a processor or a computer to perform the respective steps and/or flows corresponding to the above-described method embodiments.
The embodiment of the application also provides a chip, which comprises a processor, wherein the processor is used for calling and running the instructions stored in the memory from the memory, so that the communication equipment provided with the chip executes the method for switching back the multicast service.
The embodiment of the application also provides another chip, which comprises: the system comprises an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected through an internal connection path, the processor is used for executing codes in the memory, and when the codes are executed, the processor is used for executing the back-cut method of the multicast service.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk), etc.
Those of ordinary skill in the art will appreciate that the various method steps and modules described in connection with the embodiments disclosed herein may be implemented as software, hardware, firmware, or any combination thereof, and that the steps and components of the various embodiments have been generally described in terms of functionality in the foregoing description to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Those of ordinary skill in the art may implement the described functionality using different approaches for each particular application, but such implementation is not to be considered as beyond the scope of the present application.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the above storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer program instructions. By way of example, the methods of embodiments of the present application may be described in the context of machine-executable instructions, such as program modules, being included in devices on a real or virtual processor of a target. Generally, program modules include routines, programs, libraries, objects, classes, components, data structures, etc. that perform particular tasks or implement particular abstract data types. In various embodiments, the functionality of the program modules may be combined or split between described program modules. Machine-executable instructions for program modules may be executed within local or distributed devices. In a distributed device, program modules may be located in both local and remote memory storage media.
Computer program code for carrying out methods of embodiments of the present application may be written in one or more programming languages. These computer program code may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the computer or other programmable data processing apparatus, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the computer, partly on the computer, as a stand-alone software package, partly on the computer and partly on a remote computer or entirely on the remote computer or server.
In the context of embodiments of the present application, computer program code or related data may be carried by any suitable carrier to enable an apparatus, device or processor to perform the various processes and operations described above. Examples of carriers include signals, computer readable media, and the like.
Examples of signals may include electrical, optical, radio, acoustical or other form of propagated signals, such as carrier waves, infrared signals, etc.
A machine-readable medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination thereof. More detailed examples of a machine-readable storage medium include an electrical connection with one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical storage device, a magnetic storage device, or any suitable combination thereof.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system, apparatus and module may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, e.g., the division of the modules is merely a logical function division, and there may be additional divisions of actual implementation, e.g., multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices, or modules, or may be an electrical, mechanical, or other form of connection.
The modules illustrated as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, i.e., may be located in one place, or may be distributed over multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purposes of the embodiments of the present application.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method in the various embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The terms "first," "second," and the like in this application are used to distinguish between identical or similar items that have substantially the same function and function, and it should be understood that there is no logical or chronological dependency between the "first," "second," and "nth" terms, nor is it limited to the number or order of execution. It will be further understood that, although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another element. For example, a first image may be referred to as a second image, and similarly, a second image may be referred to as a first image, without departing from the scope of the various described examples. The first image and the second image may both be images, and in some cases may be separate and distinct images.
It should also be understood that, in the embodiments of the present application, the sequence number of each process does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not constitute any limitation on the implementation process of the embodiments of the present application.
The term "at least one" in this application means one or more, the term "plurality" in this application means two or more, for example, a plurality of second messages means two or more second messages. The terms "system" and "network" are often used interchangeably herein.
It is to be understood that the terminology used in the description of the various examples described herein is for the purpose of describing particular examples only and is not intended to be limiting. As used in the description of the various described examples and in the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It will also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items. The term "and/or" is an association relationship describing an associated object, and means that there may be three relationships, for example, a and/or B, and may mean: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" in the present application generally indicates that the front-rear association object is an or relationship.
It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the terms "if" and "if" may be interpreted to mean "when" ("white" or "upon") or "in response to a determination" or "in response to detection. Similarly, the phrase "if determined" or "if [ a stated condition or event ] is detected" may be interpreted to mean "upon determination" or "in response to determination" or "upon detection of [ a stated condition or event ] or" in response to detection of [ a stated condition or event ] "depending on the context.
It should be appreciated that determining B from a does not mean determining B from a alone, but may also determine B from a and/or other information.
It should be further understood that reference throughout this specification to "one embodiment," "an embodiment," "one possible implementation," means that a particular feature, structure, or characteristic described in connection with the embodiment or implementation is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment," "one possible implementation" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
The foregoing description is only of alternative embodiments of the present application and is not intended to limit the present application, but any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application are intended to be included within the scope of the present application.

Claims (25)

1. A method for switching back multicast service, which is applied to a first user plane UP device in a broadband network gateway BNG system, the BNG system further comprising a control plane CP device and a second UP device, the method comprising:
when the first UP equipment is in fault recovery, the first UP equipment receives first multicast information and a back switching instruction of a first terminal, wherein the first terminal is a terminal switched to the second UP equipment by the first UP equipment when the first UP equipment is in fault, and the back switching instruction is used for indicating to switch back multicast service of the first terminal to the first UP equipment;
and the first UP equipment sends multicast service corresponding to the first multicast information to the first terminal based on the first multicast information and the back switching instruction.
2. The method of claim 1 wherein the first UP device receiving the first multicast information and the handover back instruction for the first terminal comprises:
The first UP equipment receives the first multicast information sent by the second UP equipment, wherein the first multicast information comprises at least one of dynamic multicast information or static multicast information;
and the first UP equipment receives the back switching instruction sent by the CP equipment.
3. The method according to claim 2, wherein the cut-back instruction includes first user entry information indicating a path for transmitting the multicast service to the first terminal;
the first UP device sends, to the first terminal, a multicast service corresponding to the first multicast information based on the first multicast information and the back switch instruction, including:
and the first UP equipment sends the multicast service to the first terminal through a path indicated by the first user table entry information based on the back switching instruction.
4. The method of claim 1 wherein the first UP device receiving the first multicast information and the handover back instruction for the first terminal comprises:
the first UP device receives the first multicast information and the back switching instruction sent by the CP device, wherein the first multicast information comprises static multicast information.
5. The method according to any of claims 1-4, wherein the first multicast information comprises an address of a multicast group to which the first terminal is joining.
6. The method of any of claims 1-5 wherein the back-cut instruction includes a first virtual media intervention control layer, MAC, address, the first virtual MAC address corresponding to the first terminal, the first virtual MAC address being an address of a first interface, the first interface being an interface of the first terminal on-line with the first UP device.
7. The method according to any of claims 1-6, wherein the back-switching instruction is further configured to instruct a second terminal to be switched back to the first UP device, where the second terminal is another terminal that is switched to the second UP device by the first UP device when the first UP device fails; the method further comprises the steps of:
the first UP equipment receives second multicast information of the second terminal;
and the first UP equipment sends multicast service corresponding to the second multicast information to the second terminal based on the second multicast information and the back switching instruction.
8. The method according to any of claims 1-7, wherein the BNG system further comprises a third UP device, the back-switch instruction further for instructing a third terminal to be back-switched to the first UP device, the third terminal being a terminal that is switched to the third UP device by the first UP device when the first UP device fails; the method further comprises the steps of:
The first UP equipment receives third multicast information of the third terminal;
and the first UP equipment sends the multicast service corresponding to the third multicast information to the third terminal based on the third multicast information and the back switching instruction.
9. A method for switching back multicast service, which is applied to a control plane CP device in a broadband network gateway BNG system, the BNG system further comprising a first user plane UP device and a second UP device, the method comprising:
when the first UP equipment is in fault recovery, the CP equipment determines a first terminal to be switched back to the first UP equipment, wherein the first terminal is a terminal switched from the first UP equipment to the second UP equipment when the first UP equipment is in fault;
the CP equipment sends a first backup instruction to the second UP equipment, wherein the first backup instruction is used for sending first multicast information of the first terminal to the first UP equipment by the second UP equipment, the first multicast information is used for sending multicast service corresponding to the first multicast information to the first terminal by the first UP equipment, and the first multicast information comprises at least one of dynamic multicast information or static multicast information; the CP equipment transmits a back-cut instruction to the first UP equipment, wherein the back-cut instruction is used for indicating to back-cut the multicast service of the first terminal to the first UP equipment;
Or the CP device issues first multicast information and a switch-back instruction of the first terminal to the first UP device, where the first multicast information is used for the first UP device to send multicast service corresponding to the first multicast information to the first terminal, the first multicast information includes static multicast information, and the switch-back instruction is used for instructing to switch back the multicast service of the first terminal to the first UP device.
10. The method according to claim 9, wherein the method further comprises:
when the first UP equipment fails, the CP equipment sends a tangent instruction and static multicast information of the first terminal to the second UP equipment, wherein the tangent instruction is used for indicating the first terminal to be switched to the second UP equipment, the first terminal is a terminal on line of the first UP equipment, and the static multicast information of the first terminal is used for sending multicast service corresponding to the static multicast information to the first terminal by the second UP equipment.
11. The method according to any of claims 9 or 10, wherein the first multicast information comprises an address of a multicast group to which the first terminal is joining.
12. The method of any of claims 9-11 wherein the back-office instruction and the first backup instruction each include a first virtual media access control layer, MAC, address, the first virtual MAC address corresponding to the first terminal, the first virtual MAC address being an address of a first interface, the first interface being an interface of the first terminal on-line with the first UP device.
13. The method according to any of the claims 9-12, characterized in that the terminal to be switched back to the first UP device further comprises a second terminal, which is another terminal to be switched by the first UP device to the second UP device when the first UP device fails;
the first backup instruction is further configured to send, by the second UP device, second multicast information of the second terminal to the first UP device, where the second multicast information is used for sending, by the first UP device, multicast services corresponding to the second multicast information to the second terminal, and the second multicast information includes at least one of dynamic multicast information and static multicast information; the back-cut instruction is further used for indicating to back-cut the second terminal to the first UP device;
Alternatively, the method further comprises: the CP device issues second multicast information of the second terminal to the first UP device, the second multicast information is used for the first UP device to send multicast service corresponding to the second multicast information to the second terminal, the second multicast information comprises static multicast information, and the back-cut instruction is also used for indicating that the second terminal is back-cut to the first UP device.
14. The method according to any of claims 9-13, wherein the BNG system further comprises a third UP device, the terminal to be switched back to the first UP device further comprises a third terminal, the third terminal being a terminal switched to the third UP device by the first UP device upon failure of the first UP device; the method further comprises the steps of:
the CP equipment sends a second backup instruction to the third UP equipment, wherein the second backup instruction is used for sending third multicast information of the third terminal to the first UP equipment by the second UP equipment, the third multicast information is used for sending multicast service corresponding to the third multicast information to the third terminal by the first UP equipment, and the third multicast information comprises at least one of dynamic multicast information or static multicast information; the back-cut instruction is further used for indicating to back-cut the third terminal to the first UP device;
Or the CP device issues third multicast information of the third terminal to the first UP device, where the third multicast information is used for the first UP device to send multicast services corresponding to the third multicast information to the third terminal, the third multicast information includes static multicast information, and the loop-back instruction is further used for instructing to loop-back the third terminal to the first UP device.
15. A method for switching back multicast service, which is applied to a second user plane UP device in a broadband network gateway BNG system, the BNG system further includes a first UP device and a control plane CP device, the method comprising:
when the first UP equipment is recovered from faults, the second UP equipment receives a backup instruction sent by the CP equipment;
the second UP device sends first multicast information of the first terminal to the first UP device based on the backup instruction, the first terminal is a terminal switched to the second UP device by the first UP device when the first UP device fails, the first multicast information is used for the first UP device to send multicast service corresponding to the first multicast information to the first terminal, and the first multicast information comprises at least one of dynamic multicast information and static multicast information.
16. The method of claim 15, wherein the method further comprises:
when the first UP equipment fails, the second UP equipment receives a tangent instruction sent by the CP equipment and static multicast information of the first terminal, wherein the first terminal is a terminal on line of the first UP equipment;
and the second UP equipment sends the multicast service corresponding to the static multicast information to the first terminal based on the tangent instruction and the static multicast information of the first terminal.
17. The method according to any of claims 15 or 16, wherein the first multicast information comprises an address of a multicast group to which the first terminal is joining.
18. The method of any of claims 15-17 wherein the backup instruction includes a first virtual media intervention control layer, MAC, address, the first virtual MAC address corresponding to the first terminal, the first virtual MAC address being an address of a first interface, the first interface being an interface of the first terminal on-line with the first UP device.
19. The method according to any one of claims 15-18, further comprising:
The second UP device sends second multicast information of a second terminal to the first UP device based on the backup instruction, the second terminal is another terminal switched to the second UP device by the first UP device when the first UP device fails, the second multicast information is used for the first UP device to send multicast service corresponding to the second multicast information to the second terminal, and the second multicast information comprises at least one of dynamic multicast information and static multicast information.
20. A switching back device for multicast service, which is applied to a first user plane UP device in a broadband network gateway BNG system, the BNG system further includes a control plane CP device and a second UP device, the device includes:
the receiving module is used for receiving first multicast information and a back-cut instruction of a first terminal when the first UP equipment is in fault recovery, wherein the first terminal is a terminal switched to the second UP equipment by the first UP equipment when the first UP equipment is in fault, and the back-cut instruction is used for indicating to back-cut multicast service of the first terminal to the first UP equipment;
and the sending module is used for sending the multicast service corresponding to the first multicast information to the first terminal based on the first multicast information and the back switching instruction.
21. A switching back device for multicast service, which is applied to a control plane CP device in a broadband network gateway BNG system, the BNG system further includes a first user plane UP device and a second UP device, the device includes:
the determining module is used for determining a first terminal to be switched back to the first UP equipment when the first UP equipment is in fault recovery, wherein the first terminal is a terminal switched from the first UP equipment to the second UP equipment when the first UP equipment is in fault;
a first sending module, configured to send a first backup instruction to the second UP device, where the first backup instruction is used for sending, by the second UP device, first multicast information of the first terminal to the first UP device, where the first multicast information is used for sending, by the first UP device, multicast services corresponding to the first multicast information to the first terminal, where the first multicast information includes at least one of dynamic multicast information and static multicast information;
the second sending module is used for sending a back-switching instruction to the first UP device, wherein the back-switching instruction is used for indicating to back-switch the multicast service of the first terminal to the first UP device; or, the first multicast information is used for sending the multicast service corresponding to the first multicast information to the first terminal by the first UP device, the first multicast information comprises static multicast information, and the back-cut instruction is used for indicating that the multicast service of the first terminal is back-cut to the first UP device.
22. A device for switching back multicast service, which is applied to a second user plane UP device in a broadband network gateway BNG system, the BNG system further includes a first UP device and a control plane CP device, the device includes:
the first receiving module is used for receiving a backup instruction sent by the CP equipment when the first UP equipment is in fault recovery;
the second sending module is configured to send, based on the backup instruction, first multicast information of the first terminal to the first UP device, where the first terminal is a terminal that is switched from the first UP device to the second UP device when the first UP device fails, where the first multicast information is used by the first UP device to send, to the first terminal, multicast services corresponding to the first multicast information, where the first multicast information includes at least one of dynamic multicast information and static multicast information.
23. A network device, the network device comprising: a processor coupled to a memory, the memory having stored therein at least one program instruction or code that is loaded and executed by the processor to cause the network device to implement the method of switching back the multicast service according to any one of claims 1-8, or to cause the network device to implement the method of switching back the multicast service according to any one of claims 9-14, or to cause the network device to implement the method of switching back the multicast service according to any one of claims 15-19.
24. A broadband network gateway, BNG, system comprising a first user plane, UP, device, a control plane, CP, device and a second UP device;
the first UP device is configured to perform the method for switching back the multicast service according to any one of claims 1 to 8, the CP device is configured to perform the method for switching back the multicast service according to any one of claims 9 to 14, and the second UP device is configured to perform the method for switching back the multicast service according to any one of claims 15 to 19.
25. A computer readable storage medium, wherein at least one instruction is stored in the computer storage medium, and the at least one instruction is loaded and executed by a processor, so that a computer implements the method for back-cutting multicast service according to any one of claims 1 to 8, or so that a computer implements the method for back-cutting multicast service according to any one of claims 9 to 14, or so that a computer implements the method for back-cutting multicast service according to any one of claims 15 to 19.
CN202210775497.9A 2022-07-01 2022-07-01 Method, device, equipment, system and storage medium for switching back multicast service Pending CN117376240A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210775497.9A CN117376240A (en) 2022-07-01 2022-07-01 Method, device, equipment, system and storage medium for switching back multicast service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210775497.9A CN117376240A (en) 2022-07-01 2022-07-01 Method, device, equipment, system and storage medium for switching back multicast service

Publications (1)

Publication Number Publication Date
CN117376240A true CN117376240A (en) 2024-01-09

Family

ID=89395225

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210775497.9A Pending CN117376240A (en) 2022-07-01 2022-07-01 Method, device, equipment, system and storage medium for switching back multicast service

Country Status (1)

Country Link
CN (1) CN117376240A (en)

Similar Documents

Publication Publication Date Title
US7729350B2 (en) Virtual multicast routing for a cluster having state synchronization
US9774932B2 (en) Method and apparatus for data packet switching, access switch and switching system
US10404773B2 (en) Distributed cluster processing system and packet processing method thereof
CN111510379A (en) EVPN message processing method, device and system
IL230406A (en) Method and cloud computing system for implementing a 3g packet core in a cloud computer with openflow data and control planes
US7307945B2 (en) Methods for providing a reliable server architecture using a multicast topology in a communications network
WO2018108149A1 (en) Data-link switching method and apparatus and data-link switching device
CN113472646B (en) Data transmission method, node, network manager and system
CN101820606B (en) Authentication and authorization charging server and message processing method
CN110519079B (en) Data forwarding method and device, network board, network equipment and storage medium
CN113489640B (en) Message forwarding method, device and gateway system
US20230106597A1 (en) High Availability Network Function Architecture for a Hybrid Cellular Network
EP4325800A1 (en) Packet forwarding method and apparatus
CN117376240A (en) Method, device, equipment, system and storage medium for switching back multicast service
CN102045259B (en) Packet switching equipment and method for managing customer service
WO2023174339A1 (en) Multicast service sending method, apparatus, system and storage medium
WO2024027194A1 (en) Message forwarding method, device and system, and storage medium
CN112751766A (en) Message forwarding method and device and computer storage medium
CN113595915A (en) Method for forwarding message and related equipment
CN112887201A (en) VRRP (virtual router redundancy protocol) -based interface updating method and device and storage medium
CN112751768A (en) Service message forwarding method, device and computer storage medium
JP7273130B2 (en) Communication method and device
WO2023065750A1 (en) State synchronization method and apparatus, and device
WO2023040783A1 (en) Method, apparatus and system for acquiring capability, method, apparatus and system for sending capability information, and storage medium
WO2022194193A1 (en) Method and apparatus for acquiring path

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication