WO2023174339A1 - Multicast service sending method, apparatus, system and storage medium - Google Patents

Multicast service sending method, apparatus, system and storage medium Download PDF

Info

Publication number
WO2023174339A1
WO2023174339A1 PCT/CN2023/081648 CN2023081648W WO2023174339A1 WO 2023174339 A1 WO2023174339 A1 WO 2023174339A1 CN 2023081648 W CN2023081648 W CN 2023081648W WO 2023174339 A1 WO2023174339 A1 WO 2023174339A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
multicast
interface
information
migration instruction
Prior art date
Application number
PCT/CN2023/081648
Other languages
French (fr)
Chinese (zh)
Inventor
孔小桃
袁硕
牛承光
段方红
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023174339A1 publication Critical patent/WO2023174339A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • H04L5/0053Allocation of signaling, i.e. of overhead other than pilot signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5069Address allocation for group communication, multicast communication or broadcast communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/20Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2212/00Encapsulation of packets

Definitions

  • the present application relates to the field of communications, and in particular to a method, device, system and storage medium for sending multicast services.
  • Broadband gateway access systems that adopt a control plane (CP) and user plane (UP) separation scheme generally include: CP equipment and multiple UP equipment.
  • the CP device can manage multiple UP devices.
  • the CP device can control the terminal to go online from a certain UP device after authenticating the terminal through the remote authentication dial in user service (RADIUS) server. That is, the UP device can forward services belonging to the terminal to connect the terminal to the network.
  • RADIUS remote authentication dial in user service
  • the terminal can use the UP device to join the multicast group, and the UP device forwards the multicast service of the multicast source multicast corresponding to the multicast group to the terminal. However, if the UP device fails, the multicast service cannot be forwarded to the terminal.
  • This application provides a method, device, system and storage medium for sending multicast services to ensure that multicast services can be forwarded to terminals.
  • the technical solutions are as follows:
  • this application provides a method for sending multicast services.
  • the method is applied to the first user plane UP device in the virtual broadband access gateway vBNG system.
  • the vBNG system also includes a second UP device.
  • the first UP device receives a migration instruction.
  • the migration instruction is used to instruct the first terminal to migrate to the first UP device.
  • the first terminal is a terminal that is online on the second UP device.
  • the first UP device sends a query request to the first terminal based on the migration instruction.
  • the first UP device receives a query response sent by the first terminal based on the query request, where the query response includes multicast information corresponding to the first terminal.
  • the first UP device forwards the multicast service to the first terminal based on the multicast information.
  • the first UP device When the first UP device receives a migration instruction for instructing to migrate the first terminal, the first UP device sends a query request to the first terminal based on the migration instruction, and receives a query response sent by the first terminal based on the query request.
  • the query response Includes multicast information corresponding to the first terminal. That is to say, the first UP device actively queries the multicast information corresponding to the multicast group joined by the first terminal through the query request based on the migration instruction. After querying the multicast information, it forwards the multicast to the first terminal based on the multicast information. service, thereby automatically restoring the multicast service and ensuring that the multicast service can be forwarded to the first terminal normally.
  • the multicast information is multicast information corresponding to the first multicast source
  • the multicast group corresponding to the first multicast source is a multicast group joined by the first terminal. Since the multicast group corresponding to the first multicast source is a multicast group joined by the first terminal, the multicast service forwarded by the first UP device to the first terminal based on the multicast information is the service requested by the first terminal, ensuring that Automatically resume the multicast service requested by the first terminal.
  • the multicast information includes the multicast address of the first multicast source.
  • the first UP device obtains the first user entry information based on the migration instruction, The first user entry information is used to transmit services of the first terminal. Since the first UP device obtains the first user entry information, it is guaranteed that the multicast service can be successfully forwarded to the first terminal based on the first user entry information.
  • the migration instruction includes: the device identification of the second UP device, the interface identification of the first interface, or the virtual media access control layer MAC address of the first interface, and the first interface is the first interface.
  • the first UP device can obtain the first user entry information based on the device identifier of the second UP device, the interface identifier of the first interface, or the virtual MAC address of the first interface.
  • the CP device needs to migrate the second UP device.
  • a terminal is installed on the device, it is not necessary to obtain user entry information, but directly sends a migration instruction to the first UP device. Since the migration instruction does not include user entry information, the migration instruction can be sent quickly and the occupation of network resources is reduced.
  • the migration instruction includes first user entry information, and the first user entry information is used to transmit services of the first terminal. Since the migration instruction includes the first user entry information, it is convenient for the first UP device to obtain the first user entry information and the algorithm implementation complexity is simplified.
  • the first UP device receives the migration instruction sent by the CP device.
  • both the query request and the query response are messages encapsulated based on the Internet Group Management Protocol IGMP, or both the query request and the query response are messages encapsulated based on the Multicast Listener Discovery Protocol MLD.
  • IGMP Internet Group Management Protocol
  • MLD Multicast Listener Discovery Protocol
  • the first UP device and the second UP device are located in the same power supply group, or the first UP device and the second UP device are located in different power supply groups, and the power supply group includes multiple UP devices. .
  • the first UP device and the second UP device are in different power supply groups
  • the first UP device and the second UP device belong to different power supply groups
  • the first UP device and the second UP device belong to different power supply groups.
  • this application provides a method for sending multicast services, which method is applied to the first user plane UP device in the virtual broadband access gateway vBNG system.
  • the vBNG system also includes a second UP device.
  • the first UP device receives the multicast information corresponding to the first terminal sent by the second UP device, and the first terminal is a terminal online on the second UP device.
  • the first UP device receives a migration instruction, which is used to instruct the first terminal to migrate to the first UP device.
  • the first UP device forwards the multicast service to the first terminal based on the multicast information and the migration instruction.
  • the first UP device Since the first UP device receives the multicast information corresponding to the first terminal sent by the second UP device, when the first UP device receives the migration instruction for instructing to migrate the first terminal, the first UP device based on the migration instruction and the The multicast information forwards the multicast service to the first terminal, that is, the UP device on which the terminal is online actively sends the multicast information corresponding to the terminal to other UP devices, so that when the UP device fails, other UP devices can automatically restore multicast services. It is ensured that the multicast service can be forwarded to the first terminal normally.
  • the first UP device acquires first user entry information based on the migration instruction, and the first user entry information is used to transmit services of the first terminal.
  • the multicast service forwarded by the first UP device to the first terminal based on the multicast information is the service requested by the first terminal, ensuring that the multicast service requested by the first terminal is restored.
  • the migration instruction includes: the device identification of the second UP device, the interface identification of the first interface, or the virtual media access control layer MAC address of the first interface, and the first interface is the first interface.
  • the first UP device can obtain the first user entry information based on the device identifier of the second UP device, the interface identifier of the first interface, or the virtual MAC address of the first interface.
  • the CP device needs to be migrated.
  • the migration instruction is directly sent to the first UP device. Since the migration instruction does not include the user entry information, the migration instruction can be sent quickly and the number of requests to the first UP device is reduced. Usage of network resources.
  • the migration instruction includes first user entry information, and the first user entry information is used to transmit services of the first terminal. Since the migration instruction includes the first user entry information, it is convenient for the first UP device to obtain the first user entry information and the algorithm implementation complexity is simplified.
  • the first UP device sends multicast information corresponding to the second terminal to the second UP device
  • the second terminal is a terminal that is online on the first UP device. In this way, when the second terminal is migrated to the second UP device, it is convenient for the second UP device to send the multicast service to the second terminal based on the multicast information and restore the multicast service of the second terminal.
  • the first UP device and the second UP device are located in the same power supply group, or the first UP device and the second UP device are located in different power supply groups, and the power supply group includes multiple UP devices.
  • the first UP device and the second UP device are in different power supply groups
  • the first UP device and the second UP device belong to different power supply groups
  • the first UP device and the second UP device belong to different power supply groups.
  • the second UP device includes a first interface.
  • the first interface is an interface through which the first terminal goes online.
  • the first UP device includes a second interface.
  • the second interface is used when the first terminal migrates to the first terminal. After an UP device, the first terminal comes online.
  • the first interface and the second interface are two interfaces in the same warm backup group.
  • the second interface is the backup interface of the first interface for the first virtual MAC address
  • the first virtual MAC address is the address of the first interface
  • the first virtual MAC address is the same as the first virtual MAC address.
  • the first virtual MAC address is accurately bound to the second interface, making the backup relationship in the warm backup group controllable and facilitating smooth switching of the forwarding side behavior.
  • the multicast information is multicast information corresponding to the first multicast source
  • the multicast group corresponding to the first multicast source is a multicast group joined by the first terminal.
  • the multicast information of the first multicast source includes the multicast address of the first multicast source.
  • this application provides a method for sending multicast services.
  • the method is applied to a virtual broadband access gateway vBNG system.
  • the vBNG system includes a CP device, a first user plane UP device and a second UP device.
  • the second UP device sends multicast information corresponding to the first terminal to the first UP device, and the first terminal is a terminal that is online on the second UP device.
  • the CP device Based on the failure of the second UP device, sends a migration instruction to the first UP device, where the migration instruction is used to instruct the first terminal to migrate to the first UP device.
  • the first UP device forwards the multicast service to the first terminal based on the multicast information and the migration instruction.
  • the second UP device Since the second UP device sends the multicast information corresponding to the first terminal to the first UP device, when the first UP device receives the migration instruction sent by the CP device to instruct the migration of the first terminal, the first UP device based on The migration instruction and the multicast information forward the multicast service to the first terminal, that is, the UP device on which the terminal is online actively sends the multicast information corresponding to the terminal to other UP devices, so that when the UP device fails, other UP devices can automatically Restore the multicast service to ensure that the multicast service can be forwarded to the first terminal normally.
  • the second UP device sends the multicast information corresponding to the first terminal to the third UP device.
  • the third UP device it is convenient for the third UP device to send the multicast service to the first terminal based on the multicast information and restore the multicast service of the first terminal.
  • the first UP device, the second UP device and the third UP device are devices in the same warm backup group.
  • the multicast information is multicast information corresponding to the first multicast source
  • the multicast group corresponding to the first multicast source is a multicast group joined by the first terminal.
  • the multicast information of the first multicast source includes the multicast address of the first multicast source.
  • this application provides a device for sending multicast services.
  • the device is applied in a virtual broadband access gateway vBNG system.
  • the vBNG system includes the device and a second user plane UP device.
  • the device Including: receiving unit and sending unit.
  • the receiving unit is configured to receive a migration instruction, where the migration instruction is used to instruct the first terminal to migrate to the device, and the first terminal is a terminal online on the second UP device.
  • a sending unit configured to send a query request to the first terminal based on the migration instruction.
  • the receiving unit is also configured to receive a query response sent by the first terminal based on the query request, where the query response includes multicast information corresponding to the first terminal.
  • the sending unit is also configured to forward the multicast service to the first terminal based on the multicast information.
  • the sending unit sends a query request to the first terminal based on the migration instruction, and the receiving unit receives a query response sent by the first terminal based on the query request, where the query response includes the first Multicast information corresponding to a terminal. That is to say, the sending unit actively queries the multicast information corresponding to the multicast group joined by the first terminal through the query request based on the migration instruction. After querying the multicast information, the sending unit forwards the multicast to the first terminal based on the multicast information. service, thereby automatically restoring the multicast service and ensuring that the multicast service can be forwarded to the first terminal normally.
  • the multicast information is multicast information corresponding to the first multicast source
  • the multicast group corresponding to the first multicast source is a multicast group joined by the first terminal. Since the multicast group corresponding to the first multicast source is a multicast group joined by the first terminal, the multicast service forwarded by the sending unit to the first terminal based on the multicast information is the service requested by the first terminal, ensuring automatic recovery. The multicast service requested by the first terminal.
  • the multicast information includes the multicast address of the first multicast source.
  • the device further includes: a processing unit.
  • the processing unit is configured to obtain first user entry information based on the migration instruction, and the first user entry information is used to transmit services of the first terminal. Since the processing unit obtains the first user entry information, the sending unit ensures that the multicast service can be successfully forwarded to the first terminal based on the first user entry information.
  • the migration instruction includes: the device identification of the second UP device, the interface identification of the first interface, or the virtual media access control layer MAC address of the first interface, and the first interface is the first interface.
  • the processing unit can obtain the first user entry information based on the device identification of the second UP device, the interface identification of the first interface, or the virtual MAC address of the first interface.
  • the CP device needs to migrate the first user entry information on the second UP device.
  • the terminal is connected, there is no need to obtain user entry information, but directly sends a migration instruction to the device. Since the migration instruction does not include user entry information, the migration instruction can be sent quickly and the occupation of network resources can be reduced.
  • the migration instruction includes first user entry information, and the first user entry information is used to transmit services of the first terminal. Since the migration instruction includes the first user entry information, it is convenient for the device to obtain the first user entry information and the algorithm implementation complexity is simplified.
  • the receiving unit is configured to receive a migration instruction sent by the CP device.
  • both the query request and the query response are messages encapsulated based on the Internet Group Management Protocol IGMP, or both the query request and the query response are messages encapsulated based on the Multicast Listener Discovery Protocol MLD.
  • IGMP Internet Group Management Protocol
  • MLD Multicast Listener Discovery Protocol
  • the device and the second UP device are located in the same power supply group, or the device and the second UP device are located in different power supply groups, and the power supply group includes multiple UP devices.
  • the device and the second UP device are located in different power supply groups
  • the power supply group where the second UP device is located is powered off
  • the device and the second UP device belong to different power supply groups the device is located in a different power supply group. There is no power outage in the power supply group. In this way, the first terminal is migrated to the device to ensure that the first terminal can go online from the device.
  • this application provides a device for sending multicast services.
  • the device is applied in a virtual broadband access gateway vBNG system.
  • the vBNG system includes the device and a second user plane UP device.
  • the device Including: receiving unit and sending unit.
  • the receiving unit is configured to receive multicast information corresponding to the first terminal sent by the second UP device, and the first terminal is a terminal online on the second UP device.
  • the receiving unit is also configured to receive a migration instruction, where the migration instruction is used to instruct the first terminal to migrate to the device.
  • the sending unit is configured to forward the multicast service to the first terminal based on the multicast information and the migration instruction.
  • the sending unit sends a message to the first terminal based on the relocation instruction and the multicast information.
  • the terminal forwards the multicast service, that is, the UP device on which the terminal is online actively sends the multicast information corresponding to the terminal to other UP devices, so that when the UP device fails, the other UP devices can automatically restore the multicast service, ensuring that the first UP device can normally forward the multicast service to the first UP device.
  • the terminal forwards multicast services.
  • the device further includes: a processing unit.
  • the processing unit is configured to obtain first user entry information based on the migration instruction, and the first user entry information is used to transmit services of the first terminal.
  • the multicast service forwarded by the sending unit to the first terminal based on the multicast information is the service requested by the first terminal, ensuring that the multicast service requested by the first terminal is restored.
  • the migration instruction includes: the device identification of the second UP device, the interface identification of the first interface, or the virtual media access control layer MAC address of the first interface, and the first interface is the first interface.
  • the processing unit can obtain the first user entry information based on the device identification of the second UP device, the interface identification of the first interface, or the virtual MAC address of the first interface.
  • the CP device needs to migrate the first user entry information on the second UP device.
  • the terminal is connected, there is no need to obtain user entry information, but directly sends a migration instruction to the device. Since the migration instruction does not include user entry information, the migration instruction can be sent quickly and the occupation of network resources can be reduced.
  • the migration instruction includes first user entry information, and the first user entry information is used to transmit services of the first terminal. Since the migration instruction includes the first user entry information, it is convenient for the device to obtain the first user entry information and the algorithm implementation complexity is simplified.
  • the sending unit is also configured to send the multicast information corresponding to the second terminal to the second UP device, and the second terminal is a terminal that is online on the device. In this way, when the second terminal is migrated to the second UP device, it is convenient for the second UP device to send the multicast service to the second terminal based on the multicast information and restore the multicast service of the second terminal.
  • the device and the second UP device are located in the same power supply group, or the device and the second UP device are located in different power supply groups, and the power supply group includes multiple UP devices.
  • the power supply group where the second UP device is located When the power supply group is powered off, since the device and the second UP device belong to different power supply groups, no power outage occurs in the power supply group where the device is located. In this way, the first terminal is moved to the device to ensure that the device can be accessed from the device. online.
  • the second UP device includes a first interface
  • the first interface is an interface through which the first terminal goes online
  • the device includes a second interface
  • the second interface is used when the first terminal migrates to the After the installation, the first terminal comes online.
  • the first interface and the second interface are two interfaces in the same warm backup group.
  • the second interface is the backup interface of the first interface for the first virtual MAC address
  • the first virtual MAC address is the address of the first interface
  • the first virtual MAC address is the same as the first virtual MAC address.
  • the first virtual MAC address is accurately bound to the second interface, making the backup relationship in the warm backup group controllable and facilitating smooth switching of the forwarding side behavior.
  • the multicast information is multicast information corresponding to the first multicast source
  • the multicast group corresponding to the first multicast source is a multicast group joined by the first terminal.
  • the multicast information of the first multicast source includes the multicast address of the first multicast source.
  • this application provides a device for sending multicast services, where the device includes a processor and a memory.
  • the processor and the memory may be connected through internal connections.
  • the memory is used to store programs, and the processor is used to execute the programs in the memory, so that the device completes the method in the first aspect or any possible implementation of the first aspect.
  • this application provides a device for sending multicast services, where the device includes a processor and a memory.
  • the processor and the memory may be connected through internal connections.
  • the memory is used to store programs, and the processor is used to execute the programs in the memory, so that the device completes the method in the second aspect or any possible implementation of the second aspect.
  • this application provides a device for sending multicast services.
  • the device is applied in a virtual broadband access gateway vBNG system.
  • the vBNG system includes the device and a second UP device.
  • the device includes: Main control board and interface board.
  • the main control board includes: a first processor and a first memory.
  • the interface board includes: a second processor, a second memory and an interface card. The main control board and the interface board are coupled.
  • the first memory may be used to store the program code
  • the first processor is used to call the program code in the first memory to perform the following operations: receiving a migration instruction, where the migration instruction is used to instruct the first terminal to be migrated to the device, so
  • the first terminal is a terminal that is online on the second UP device and sends a query request to the first terminal based on the migration instruction; receives a query response sent by the first terminal based on the query request, and the query The response includes multicast information corresponding to the first terminal.
  • the second memory may be used to store the program code
  • the second processor is used to call the program code in the second memory to trigger the interface card to perform the following operations: forward the multicast service to the first terminal based on the multicast information.
  • an inter-process communication protocol (IPC) channel is established between the main control board and the interface board, and the main control board and the interface board communicate through the IPC channel.
  • IPC inter-process communication protocol
  • this application provides a device for sending multicast services.
  • the device is applied in a virtual broadband access gateway vBNG system.
  • the vBNG system includes the device and a second UP device.
  • the device includes: Main control board and interface board.
  • the main control board includes: a first processor and a first memory.
  • the interface board includes: a second processor, a second memory and an interface card. The main control board and the interface board are coupled.
  • the first memory may be used to store the program code
  • the first processor is used to call the program code in the first memory to perform the following operations: receive the multicast information corresponding to the first terminal sent by the second UP device, and the first terminal It is a terminal that is online on the second UP device; and receives a migration instruction, where the migration instruction is used to instruct the first terminal to migrate to the device.
  • the second memory may be used to store the program code
  • the second processor is used to call the program code in the second memory to trigger the interface card to perform the following operations: forward to the first terminal based on the multicast information and the migration instruction. Multicast service.
  • an inter-process communication protocol (IPC) channel is established between the main control board and the interface board, and the main control board and the interface board communicate through the IPC channel.
  • IPC inter-process communication protocol
  • the present application provides a computer program product.
  • the computer program product includes a computer program stored in a computer-readable storage medium, and the computing program is loaded by a processor to implement the first aspect and the third aspect.
  • the present application provides a computer-readable storage medium for storing a computer program, which is loaded by a processor to execute any possible implementation of the first aspect, the second aspect, and the first aspect. method or any possible method of implementing the second aspect.
  • the present application provides a chip, including a memory and a processor.
  • the memory is used to store computer instructions
  • the processor is used to call and run the computer instructions from the memory to execute the above-mentioned first aspect, second aspect, Any possible implementation of the first aspect or any possible implementation of the second aspect.
  • this application provides a virtual broadband access gateway vBNG system.
  • the vBNG system includes a CP device, a first user plane UP device and a second UP device.
  • the second The UP device sends the multicast information corresponding to the first terminal to the first UP device.
  • the first terminal is a terminal that is online on the second UP device.
  • the CP device Based on the failure of the second UP device, the CP device sends a migration instruction to the first UP device, where the migration instruction is used to instruct the first terminal to migrate to the first UP device.
  • the first UP device forwards the multicast service to the first terminal based on the multicast information and the migration instruction.
  • the second UP device Since the second UP device sends the multicast information corresponding to the first terminal to the first UP device, when the first UP device receives the migration instruction sent by the CP device to instruct the migration of the first terminal, the first UP device based on The migration instruction and the multicast information forward the multicast service to the first terminal, thereby automatically restoring the multicast service and ensuring that the multicast service can be forwarded to the first terminal normally.
  • the second UP device sends the multicast information corresponding to the first terminal to the third UP device.
  • the third UP device it is convenient for the third UP device to send the multicast service to the first terminal based on the multicast information and restore the multicast service of the first terminal.
  • the first UP device, the second UP device and the third UP device are devices in the same warm backup group.
  • the multicast information is multicast information corresponding to the first multicast source
  • the multicast group corresponding to the first multicast source is a multicast group joined by the first terminal.
  • the multicast information of the first multicast source includes the multicast address of the first multicast source.
  • Figure 1 is a schematic structural diagram of a vBNG system provided by an embodiment of the present application.
  • Figure 2 is a schematic structural diagram of another vBNG system provided by an embodiment of the present application.
  • Figure 3 is a flow chart of a terminal online method provided by an embodiment of the present application.
  • Figure 4 is a flow chart of a method for sending multicast services provided by an embodiment of the present application.
  • Figure 5 is a schematic diagram of a migration terminal provided by an embodiment of the present application.
  • Figure 6 is a flow chart of another method for sending multicast services provided by an embodiment of the present application.
  • Figure 7 is a schematic structural diagram of a device for sending multicast services provided by an embodiment of the present application.
  • Figure 8 is a schematic structural diagram of another device for sending multicast services provided by an embodiment of the present application.
  • Figure 9 is a schematic structural diagram of a system for sending multicast services provided by an embodiment of the present application.
  • Figure 10 is a schematic structural diagram of another device for sending multicast services provided by an embodiment of the present application.
  • Figure 11 is a schematic structural diagram of another device for sending multicast services provided by an embodiment of the present application.
  • Figure 12 is a schematic structural diagram of a device for sending multicast services provided by an embodiment of the present application.
  • Figure 13 is a schematic structural diagram of another device for sending multicast services provided by an embodiment of the present application.
  • Broadband remote access server is an access gateway for broadband network applications, also known as broadband network gateway (BNG).
  • Virtual BNG virtual BNG, vBNG
  • CU separation CP equipment and UP equipment
  • BRAS broadband network gateway
  • multiple UP devices are deployed in a distributed manner, and each UP device serves as the user plane of the BNG (or vBNG), which is used to forward service packets based on the user table entry information issued by the CP device, and to implement quality of service based on service, QoS) and access control lists (access control lists, ACL) and other technologies.
  • CP devices can be implemented using cloud technology and deployed centrally.
  • the control plane of BNG (or vBNG), it is used to control and manage terminals (also called users) and to manage multiple UP devices in a unified manner.
  • the CP device is mainly responsible for terminal online, delivery of configuration and user table information, etc.
  • the UP device can also be called a forwarding plane device, so CU separation can also be called forwarding and control separation, that is, forwarding and control separation.
  • a system deployed using this CU separation method is also called a CU-separated broadband gateway access system, or a transfer-control-separated broadband gateway access system.
  • the vBNG system 100 may include: at least one CP device 101 and multiple UP devices 102 (the first UP device 1021 and the second UP device 1022 in Figure 1).
  • Figure 1 takes a CP device 101 as an example for illustration.
  • the CP device 101 is generally deployed in the operator's data center (DC) computer room, also known as the core computer room.
  • DC operator's data center
  • Each UP device 102 can be deployed in different convergence computer rooms, also called edge computer rooms.
  • Each UP device 102 has established a communication connection with the CP device 101, and each UP device 102 can establish a communication connection with at least one terminal 104 through the first forwarding device 103 (for example, a forwarding device in a layer 2 broadcast domain), and Perform data interaction.
  • the first forwarding device 103 for example, a forwarding device in a layer 2 broadcast domain
  • the UP device 102 For each UP device 102 , the UP device 102 establishes a communication connection with the second forwarding device 105 and performs data exchange with the second forwarding device 105 .
  • the second forwarding device 105 can forward the multicast service multicast by the multicast source 106 to the UP device 102, and the UP device 102 receives the multicast service and forwards it to the terminal. 104 forwards the multicast service.
  • the terminal 104 is also called user equipment, which may be a residential gateway (residential gateway, RGW), mobile phones, laptops or desktop computers and other devices.
  • the first forwarding device 103 connected to the terminal 104 may also be called an access node (AN), which may be a switch (SW), an optical line terminal (optical line terminal, OLT) or a digital subscriber line access Multiplexer (digital subscriber line access multiplexer, DSLAM), etc.
  • AN access node
  • SW switch
  • OLT optical line terminal
  • DSLAM digital subscriber line access Multiplexer
  • the first forwarding device 103 can not only implement packet forwarding in the Layer 2 broadcast domain, but can also isolate the terminal 104 on a virtual extensible local area network (VXLAN) or QinQ.
  • VXLAN virtual extensible local area network
  • QinQ 802.1Q-in-802.1Q
  • the QinQ is a technology that expands the virtual local area network (VLAN) space, also known as stacked VLAN technology.
  • the second forwarding device 105 is closer to the multicast source 106 than the UP device 102.
  • the second forwarding device 105 is a core router (CR) or a leaf node (leaf), etc.
  • the vBNG system 100 may also include an authentication server 107 .
  • the authentication server 107 can be a RADIUS server.
  • the authentication server 107 supports the authentication, authorization and accounting (AAA) protocol.
  • AAA authentication, authorization and accounting
  • the authentication server 107 has established a communication connection with the CP device 101. After the CP device 101 completes the interaction of the dial-up protocol message (also called an access protocol message) with the terminal 104 through the target UP device among the multiple UP devices 102, it sends the authentication for the terminal 104 to the authentication server 107. ask.
  • dial-up protocol message also called an access protocol message
  • the authentication server 107 authenticates the terminal 104, and after the terminal 104 passes the authentication, allocates an address to the terminal 104, and sends an authentication response carrying the address to the CP device 101.
  • the CP device 101 can deliver the user entry information of the terminal 101 to the target UP device.
  • the target UP device can locally generate a forwarding entry for the terminal 104 based on the user entry information, perform relevant business policy execution and traffic forwarding, and publish the route for the terminal 104 to the outside.
  • the terminal 104 can then access the network through the target UP device. That is to say, the terminal 104 can access the network through the target UP device, or it can be understood that the terminal 104 can go online from the target UP device.
  • the CP device 101 may include multiple virtual machines (VMs) deployed on a physical server.
  • Each UP device 102 may be an entity physical UP (physic UP, pUP) device, or may be a virtual UP (virtual UP, vUP) device.
  • the UP device 102 may be a VM deployed on a physical server.
  • the CP device 101 is capable of managing multiple pUP devices and/or multiple vUP devices.
  • the CP device 101 and each UP device 102 can be connected through a service interface, a management interface and a control interface.
  • the service interface is also called a control packet redirect interface (CPRi), which is generally a VXLAN interface.
  • CPRi control packet redirect interface
  • VXLAN-GPE VXLAN generic protocol extension
  • the management interface (Mi) is generally a network configuration protocol (NETCONF) interface.
  • the CP device 101 can deliver configurations to each UP device 102 through the management interface.
  • Each UP device 102 can deliver configurations to each UP device 102 through the management interface.
  • the CP device 101 reports the running status.
  • the control interface is also called a state control interface (state control interface, SCi), which is generally a control plane and user plane separated protocol (CUSP) interface.
  • SCi state control interface
  • CUSP control plane and user plane separated protocol
  • the user entry information corresponding to the terminal 104 is also called a session entry, which generally includes the user information, virtual MAC address, routing information and quality of service (Quality of Service) corresponding to the terminal 104. Service, QoS) and other information.
  • the user information includes information such as the address and/or user account of the terminal 104.
  • the virtual MAC address is the address of a certain interface on the UP device 102, and the terminal 104 goes online from this interface.
  • each UP device 102 managed by the CP device 101 can form a UP pool. Furthermore, in order to improve the reliability of the broadband remote access system, for any UP device 102, an N+1 warm backup group can be configured for each interface on the UP device 102. Among them, N is an integer greater than or equal to 1.
  • the N+1 warm backup group indicates that the interface corresponds to N backup interfaces, and indicates that the interface corresponds to N backup UP devices.
  • the N backup interfaces are the same as the N backup UP devices.
  • the N backup interfaces are respectively located on the N backup UP devices. Wherein, N is an integer greater than or equal to 1.
  • the warm backup group indicates that the CP device 101 can migrate the terminal online from the interface to the backup interface on at least one backup UP device.
  • the N backup UP devices include the at least A backup UP device.
  • the CP device 101 can migrate multiple terminals 104 online 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 uses their respective backup interfaces to forward the multiple terminals 104 .
  • Terminal business can migrate multiple terminals 104 online 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 uses their respective backup interfaces to forward the multiple terminals 104 . Terminal business.
  • the UP device 102 in the vBNG system 100 includes UP device 1, UP device 2, UP device 3, UP device 4, etc.
  • interface 21 on UP device 2 has a corresponding 3+1 warm backup group.
  • the 3+1 warm backup group represents the three backup interfaces corresponding to interface 21.
  • the three backup interfaces are respectively interface 11 on UP device 1. , interface 31 on UP device 3 and interface 41 on UP device 4.
  • interface 22 in UP device 2 also has a corresponding 2+1 warm backup group. This 2+1 warm backup group is used to indicate the two backup interfaces corresponding to interface 22.
  • the two backup interfaces are respectively on UP device 1.
  • CP device 101 will migrate multiple terminals 104 online from interface 21 to UP device 1, UP device 3 and/or UP device through the load sharing policy. 4 on.
  • the UP device 1 forwards the service of the at least one terminal through the interface 11; for at least one terminal that migrates to the UP device 3, the UP device 3 forwards the at least one terminal through the interface 31 The terminal's services; and/or, for at least one terminal that is migrated to the UP device 4, the UP device 4 forwards the at least one terminal's services through the interface 41.
  • the CP device 101 migrates multiple terminals 104 online from the interface 22 to the UP device 1 and/or the UP device 3 through the load sharing policy. In this way, for at least one terminal that migrates to the UP device 1, the UP device 1 forwards the service of the at least one terminal through the interface 12; for at least one terminal that migrates to the UP device 3, the UP device 3 receives the service of the CP device 101 through the interface 32 Forward the service of the at least one terminal.
  • the CP device stores a first correspondence relationship.
  • the first correspondence relationship is used to store the correspondence relationship between primary device information and backup device information.
  • the primary device information includes a device identification of a UP device and the device ID of the UP device.
  • the backup device information includes the device identifiers of the N backup UP devices corresponding to the interface and the interface identifiers of the backup interfaces corresponding to the interface on the N backup UP devices.
  • the first record of the first correspondence includes primary device information and backup device information.
  • the primary device information includes the device identifier Device2 of UP device 2 and the interface identifier Interface21 of interface 21.
  • the backup device information includes the device identifier Device1 of the backup UP device (UP device 1) corresponding to interface 21 and the backup interface (Interface 11).
  • the second record of the first correspondence relationship includes primary device information and backup device information.
  • the primary device information includes the device identifier Device2 of UP device 2 and the interface identifier Interface22 of interface 22.
  • the backup device information includes the device identifier Device1 of the backup UP device (UP device 1) corresponding to interface 22 and the backup interface (Interface 12).
  • the UP device saves a second correspondence relationship.
  • the second correspondence relationship is used to save interface identifiers and backup device information.
  • the record includes the interface of an interface on the UP device.
  • the backup device information includes the device identifiers of the N backup UP devices corresponding to the interface and the interface identifiers of the backup interfaces corresponding to the interface on the N backup UP devices.
  • the first record of the second corresponding relationship includes the interface identifier Interface21 of the interface 21 of UP device 2 and the backup device information.
  • the backup device information includes the device identification Device1 of the backup UP device (UP device 1) corresponding to interface 21 and the interface identification Interface11 of the backup interface (interface 11).
  • the device identification Device3 of the backup UP device (UP device 3) corresponding to interface 21 and the interface identifier Interface31 of the backup interface (interface 31), the device identifier Device4 of the backup UP device (UP device 4) corresponding to interface 21, and the interface identifier Interface41 of the backup interface (interface 41).
  • the second record of the second correspondence relationship includes the interface identifier Interface22 of the interface 22 of the UP device 2 and the backup device information.
  • the backup device information includes the device identification Device1 of the backup UP device (UP device 1) corresponding to interface 22, the interface identification Interface12 of the backup interface (interface 12), and the device identification of the backup UP device (UP device 3) corresponding to interface 22.
  • one or more virtual MAC addresses may be configured for an interface on the UP device 102 (ie, the interface used for the terminal 104 to go online). Divide the terminals online from this interface into multiple user groups, and each user group corresponds to a virtual MAC address. For any user group and the virtual MAC address corresponding to the user group, the terminals included in the user group use the virtual MAC address to interact with the UP device 102 for services.
  • the CP device 101 migrates the terminal 104 online from the interface to other UP devices, the migration can be performed with the virtual MAC address of the interface as the granularity. That is, for any virtual MAC address of the interface, the CP device 101 can migrate the user group corresponding to the virtual MAC address from the interface to a backup UP device corresponding to the interface.
  • virtual MAC address 1, virtual MAC address 2 and virtual MAC address 3 are configured for interface 21 on UP device 2. That is to say, the terminals that come online from interface 21 are divided into user group 1 corresponding to virtual MAC address 1, user group 2 corresponding to virtual MAC address 2, and user group 3 corresponding to virtual MAC address 3. Assuming that UP device 2 fails, CP device 101 migrates at least one terminal included in user group 1 corresponding to virtual MAC address 1 to UP device 1, and migrates at least one terminal included in user group 2 corresponding to virtual MAC address 2 to the UP device.
  • UP device 1 forwards the service of at least one terminal included in user group 1 through interface 11; UP device 3 forwards the service of at least one terminal included in user group 2 through interface 31; and/or UP device 4 forwards the user service through interface 41.
  • Group 3 includes the services of at least one terminal.
  • CP device 101 migrates at least one terminal included in user group 4 corresponding to virtual MAC address 4 to UP device 1, and migrates at least one terminal included in user group 5 corresponding to virtual MAC address 5 to the UP device. 3 on.
  • the UP device 1 forwards the service of at least one terminal included in the user group 4 through the interface 12; the UP device 3 forwards the service of at least one terminal included in the user group 5 through the interface 32.
  • the terminal is called the first terminal.
  • the first terminal needs to go online on a certain UP device in the vBNG system 100, and then the UP device Only then can the service of the first terminal be transmitted.
  • an embodiment of the present application provides a method 300 for a terminal to go online. The method 300 includes the following steps.
  • Step 301 The first terminal sends an access protocol message to the CP device.
  • the access protocol message is used to request the first terminal to access the network.
  • the first terminal sends the access protocol message to a UP device in the vBNG system, and the UP device sends the access protocol message to the CP device.
  • the UP device may be a UP device near the first terminal, or may be a default UP device set on the first terminal in advance.
  • the access protocol message includes information such as the user account and user password of the first terminal.
  • Step 302 The CP device receives the access protocol message, authenticates the first terminal through the authentication server, and obtains the user entry information of the first terminal when the first terminal passes the authentication.
  • the user entry information of the first terminal is used to transmit services of the first terminal.
  • the first terminal is authenticated and the user entry information of the first terminal is obtained through the following operations 3021-3025, which are respectively.
  • the CP device sends an authentication request for the first terminal to the authentication server.
  • the authentication request includes information such as the user account and user password corresponding to the first terminal.
  • the authentication server receives the authentication request, authenticates the first terminal, and after passing the authentication of the first terminal, allocates an address to the first terminal, and sends an authentication response carrying the address to the CP device.
  • the authentication server authenticates the first terminal based on the user account and user password corresponding to the first terminal included in the authentication request.
  • the address allocated to the first terminal includes an Internet protocol (Internet protocol, IP) address and/or a media access control layer (media access control, MAC) address, etc.
  • the CP device receives the authentication response and selects the UP device for the first terminal to go online from the UP devices included in the vBNG system.
  • the selected UP device is called the second UP device.
  • the CP device may directly select the UP device that sends the access protocol message, or select the UP device with the least load, or select the UP device closest to the first terminal, etc.
  • the CP device selects an interface from the interfaces included in the second UP device.
  • the selected interface is called the first interface
  • a user group is selected from at least one user group of the first interface.
  • the CP device stores the interface identifier of any interface in the second UP device, at least one virtual MAC address of the interface, and the terminals included in the user group corresponding to each virtual MAC.
  • the CP device selects an interface from the interfaces on the second UP device as the first interface based on the load balancing policy, and selects a user group from the user group corresponding to each virtual MAC address of the first interface.
  • the CP device generates user entry information of the first terminal.
  • the user entry information includes user information corresponding to the first terminal, the first virtual MAC address, the first downlink routing information, etc.
  • the first virtual MAC address is the virtual MAC address corresponding to the selected user group.
  • the user information corresponding to the first terminal includes the address of the first terminal, and may also include information such as the user account of the first terminal.
  • the first downlink routing information includes a destination address and first next hop information.
  • the destination address is the address of the first terminal.
  • the next hop device indicated by the first next hop information is the first forwarding device communicating with the first terminal. .
  • the first interface on the second UP device corresponds to N backup interfaces, and the N backup interfaces are located on the N backup UP devices.
  • each virtual MAC address on the first interface corresponds to a backup interface.
  • the CP device stores a third correspondence relationship.
  • the third correspondence relationship is used to store the correspondence relationship between the primary device information and the backup device information.
  • the primary device information includes a second UP.
  • the backup device information includes the device ID of a backup UP device corresponding to the first interface and the virtual MAC address and the device ID of the backup UP device.
  • the interface label of the backup interface knowledge the CP device saves any one of the above-mentioned first correspondence relationship and the third correspondence relationship.
  • the three backup interfaces corresponding to interface 21 include the interfaces on UP device 1. 11. Interface 31 on UP device 3 and interface 41 on UP device 4. Virtual MAC address 1 corresponds to interface 11 on UP device 1, virtual MAC address 2 corresponds to interface 31 on UP device, and virtual MAC address 3 corresponds to interface 41 on UP device 4.
  • the CP device stores the following third correspondence.
  • the first record of the third correspondence (the record with serial number 1) includes primary device information and backup device information.
  • the primary device information includes the device of UP device 1. Identifies Device2, the interface identifier Interface21 of interface 21, and the virtual MAC address 1.
  • the device information includes the device identifier Device1 of UP device 1 and the interface identifier Interface11 of interface 11.
  • the second record of the third correspondence relationship (the record with serial number 2) includes primary device information and backup device information.
  • the primary device information includes the device identifier Device2 of UP device 2, the interface identifier Interface21 of interface 21, and the virtual MAC address 2.
  • the device information includes the device identifier Device3 of UP device 3 and the interface identifier Interface31 of interface 31.
  • Other records in the third correspondence relationship shown in Table 3 will not be listed one by one here.
  • the UP device stores a fourth correspondence.
  • the fourth correspondence is used to store the correspondence between interface identifiers, virtual MAC addresses, and backup device information.
  • the record includes the interface identifier, virtual MAC address, and backup device information.
  • the interface identifier is the interface identifier of an interface on the UP device
  • the virtual MAC address is a virtual MAC address of the interface.
  • the UP device saves any one of the above-mentioned second correspondence relationship and the fourth correspondence relationship.
  • UP device 2 saves the fourth correspondence relationship as shown in Table 4 below.
  • the first record of the fourth correspondence relationship (the record with serial number 1) includes the interface identifier of interface 21 Interface21, virtual MAC address 1, and backup device information.
  • the backup device information includes the device identifier Device1 of UP device 1 and the interface identifier Interface11 of interface 11.
  • the second record of the fourth correspondence relationship (the record with serial number 2) includes the interface identifier interface21 of interface 21, virtual MAC address 2 and backup device information.
  • the backup device information includes the device identifier Device3 of UP device 3 and the interface of interface 31. Identifies Interface31.
  • the other records in the fourth correspondence relationship shown in Table 4 are not listed one by one here.
  • the backup UP device corresponding to the virtual MAC address and the second UP device are in the same power supply group, or the backup UP device corresponding to the virtual MAC address and the second UP device are in the same power supply group.
  • UP devices are located in different power supply groups.
  • UP devices located in the same computer room can be called a power supply group, or UP devices located in the same rack can be called a power supply group, or UP devices with the same power supply can be called a power supply group.
  • the backup UP device corresponding to the virtual MAC address and the second UP device are in different power supply groups, in this way, when the power supply group where the second UP device is located suffers a power outage or other fault, the virtual MAC address on the second UP device can be Terminals in the corresponding user group are migrated to the backup UP device corresponding to the virtual MAC address. Since the backup UP device and the second UP device belong to different power supply groups, the power supply group where the backup UP device is located may not experience power outages or other faults, so that each terminal in the user group can successfully go online on the backup UP device.
  • the CP device generates the user entry information of the first terminal and sends the user entry information corresponding to the first terminal to the backup UP device corresponding to the first virtual MAC address.
  • the CP device combines the device identification of the second UP device, the interface identification of the first interface and the first virtual MAC address into the primary device information, and obtains the corresponding backup device information from the third corresponding relationship based on the primary device information.
  • the obtained backup device The information includes the device ID of a backup UP device and the interface ID of the backup interface on the backup UP device.
  • the CP device sends the first information and the user entry information of the first terminal to the backup UP device.
  • the first information includes the device identification of the second UP device, the interface identification of the first interface and the One or more of a virtual MAC address.
  • the backup UP device receives the interface identifier of the backup interface, the first information and the user entry information of the first terminal, composes the first information and the user entry information of the first terminal into a record and saves the record in the fifth corresponding in relationship.
  • the CP device uses the device identifier of the second UP device, Device2, the interface identifier of the first interface, Interface21, and virtual MAC address 1 to form the master device information.
  • the master device information is as follows:
  • the corresponding backup device information is obtained in the third correspondence relationship shown in Table 3.
  • the obtained backup device information includes the device identification Device1 of the backup UP device and the interface identification Interface11 of the backup interface.
  • the CP device sends the first information and the user entry information of the first terminal to the first UP device.
  • the first information includes the device identifier Device2 of the second UP device and the interface identifier of the first interface.
  • the first UP device receives the first information and the user entry information of the first terminal, combines the first information and the user entry information of the first terminal into a record, and saves the record in the fifth correspondence shown in Table 5. middle.
  • Step 303 The CP device sends the user entry information of the first terminal to the second UP device.
  • the CP device stores the correspondence between the device identification of the second UP device, the interface identification of the first interface, the first virtual MAC address and the user entry information of the first terminal in the sixth correspondence. .
  • the CP device combines the device identifier Device2 of the second UP device, the interface identifier Interface21 of the first interface, the first virtual MAC address (virtual MAC address 1) and the first terminal's
  • the correspondence between user entry information is stored in the sixth correspondence shown in Table 6 below.
  • Step 304 The second UP device receives the user entry information of the first terminal and sends an access response message to the first terminal.
  • the access response message includes the user information of the first terminal and the first virtual MAC address.
  • the information includes the address of the first terminal.
  • the second UP device after receiving the user entry information of the first terminal, the second UP device associates the user entry information with the first interface corresponding to the first virtual MAC address based on the first virtual MAC address in the user entry information.
  • the CP device may not send the user entry information of the first terminal to the backup UP device.
  • the second UP device After receiving the user entry information of the first terminal, the second UP device sends the user entry information of the first terminal to the backup UP device.
  • the second UP device Based on the device identification of the backup UP device, the second UP device sends the interface identification of the backup interface, the first information and the user entry information of the first terminal to the backup UP device.
  • the first information includes the device identification of the second UP device. , one or more of the interface identifier of the first interface and the first virtual MAC address.
  • the backup UP device receives the interface identifier of the backup interface, the first information and the user entry information of the first terminal, combines the interface identification of the backup interface, the first information and the user entry information of the first terminal into a record and records This record is saved in the fifth correspondence.
  • Step 305 The first terminal receives the address of the first terminal and the first virtual MAC address, and sends a first service request to the second UP device.
  • the first service request includes the user information of the first terminal, the first virtual MAC address and the request to be requested. Business information for the business.
  • the first terminal After the first terminal receives the address of the first terminal and the first virtual MAC address, the first terminal can request a service.
  • the service information of the service to be requested by the first terminal includes an address corresponding to the service to be requested.
  • the user information of the first terminal includes the address of the first terminal, and may also include the user account of the first terminal and other contents.
  • the address of the service to be requested is the multicast address of the first multicast source, and the first multicast source is the multicast source corresponding to the multicast service.
  • the first service request It is a multicast join request, and the service information of the service to be requested is multicast information, and the multicast information includes the multicast address.
  • the address of the service to be requested is the address of the server where the service to be requested is located.
  • the first terminal sends the first service request to the first forwarding device, the first forwarding device receives the first service request, and sends the first service to the second UP device based on the first virtual MAC address included in the first service request. ask.
  • Step 306 The second UP device receives the first service request and sends a second service request to the second forwarding device.
  • the second service request includes the user information of the first terminal and the service information of the service to be requested.
  • the second UP device receives the first service request through the first interface.
  • the service to be requested in the first service request may be a multicast service or a non-multicast service.
  • the second UP device If the service to be requested is a non-multicast service, the second UP device generates the first uplink routing information corresponding to the first terminal.
  • the first uplink routing information includes the destination address and the second next hop information.
  • the destination address is the address of the service to be requested. (the address of the server), the next hop device indicated by the second next hop information is the second forwarding device, and the first uplink routing information is added to the user table entry information of the first terminal.
  • the second UP device also sends an update request to the CP device.
  • the update request includes the user information of the first terminal and the first uplink routing information.
  • the CP device receives the update request and obtains user entry information including the user information.
  • the user table The entry information is the user entry information of the first terminal, and the first uplink routing information is added to the user entry information of the first terminal.
  • the second UP device also sends an update request to the backup UP device corresponding to the first virtual MAC address, where the update request includes the user information of the first terminal and the first uplink routing information.
  • the backup UP device receives the update request, obtains user entry information including the user information, the user entry information is the user entry information of the first terminal, and adds the first uplink routing information to the user entry information of the first terminal.
  • the CP device sends an update request to the backup UP device corresponding to the first virtual MAC address.
  • the backup UP device receives the update request, obtains user entry information including the user information, the user entry information is the user entry information of the first terminal, and adds the first uplink routing information to the user entry information of the first terminal.
  • the second UP device combines the multicast information of the service to be requested and the user information of the first terminal into a record and saves the record in the seventh correspondence relationship.
  • the second UP device sends the multicast information of the service to be requested and the user information of the first terminal to the first UP device.
  • the first UP device is a backup UP device corresponding to the first interface.
  • the first UP device receives the multicast information and the user information of the first terminal, composes the multicast information and the user information of the first terminal into a record, and stores the record in the seventh correspondence relationship.
  • the first UP device is a backup UP device corresponding to the first interface and the first virtual MAC address.
  • the second UP device Based on the interface identifier of the first interface, the second UP device obtains the device identifiers of the N backup UP devices corresponding to the first interface from the second correspondence relationship, and based on the device identifier of each backup UP device, sends a message to each backup UP device. Each backup UP device then combines the multicast information and the user information of the first terminal into a record and stores the record in the seventh correspondence relationship.
  • the UP device 2 receives the first service request through the interface 21, composes the multicast information in the first service request and the user information of the first terminal into a record, and saves the record in the seventh correspondence relationship.
  • the interface identifier interface21 of interface 21 three backup UPs corresponding to interface 21 are obtained from the second correspondence relationship shown in Table 2, which are UP device 1, UP device 3 and UP device 4 respectively.
  • the UP device 1, UP device 3 or UP device 4 combines the multicast information and the user information of the first terminal into a record and saves the record in the seventh correspondence relationship. or,
  • the second UP device Based on the first interface and the first virtual MAC address, the second UP device obtains the device identification of a backup UP device corresponding to the first interface and the first virtual MAC address from the fourth correspondence relationship, and based on the device identification of the backup UP device , sending the multicast information and the user information of the first terminal to the backup UP device, and the backup UP device then combines the multicast information and the user information of the first terminal into a record and saves the record in the seventh correspondence relationship.
  • the UP device 2 receives a first service request through the interface 21. It is assumed that the first service request includes the user information of the first terminal, the virtual MAC address 1 and the multicast information. The multicast information in the first service request and the user information of the first terminal are combined into one record, and the record is saved in the seventh correspondence relationship. Based on the interface identifier interface21 and virtual MAC address 1 of interface 21, the backup UP device 1 corresponding to interface 21 and virtual MAC address 1 is obtained from the fourth correspondence relationship shown in Table 4. The multicast information and the user information of the first terminal are sent to the UP device 1. The UP device 1 combines the multicast information and the user information of the first terminal into a record and saves the record in the seventh correspondence relationship.
  • Step 307 The second forwarding device receives the second service request, generates routing information corresponding to the first terminal, and requests the service to be requested based on the address of the service to be requested included in the second service request.
  • step 307 when the service to be requested is a multicast service, the address of the service to be requested is a multicast address, and the second forwarding device adds the first terminal to the multicast group based on the multicast address and the address of the first terminal.
  • the multicast group is the multicast group of the first multicast source corresponding to the multicast address. Routing information corresponding to the first terminal is generated.
  • the routing information includes second downlink routing information.
  • the second downlink routing information includes the multicast address. and the third next hop information.
  • the next hop device indicated by the third next hop information is the second UP device.
  • the second forwarding device can then send the multicast service of the multicast source to the first terminal.
  • the implementation process is as follows:
  • the second forwarding device receives the first service message multicast by the multicast source based on the multicast address.
  • the first service message is a message belonging to the multicast service.
  • the first service message includes multicast information.
  • the group The broadcast information includes the multicast address, obtains the second downlink routing information including the multicast address, obtains the third next hop information from the second downlink routing information, and sends a request to the second UP device (such as UP device 2) sends the first service message.
  • the second UP device (such as UP device 2) receives the first service message, and based on the multicast information included in the first service message, obtains the user information of the first terminal from the seventh correspondence relationship, and obtains the user entry information from the saved user entry information. Obtain user entry information including the user information, and the user entry information is the user entry information of the first terminal. A second service message is sent to the first terminal based on the user entry information, and the second service message is obtained based on the first service message.
  • the user entry information includes first downlink routing information and a first virtual MAC address (such as virtual MAC address 1), and the next hop device indicated by the first next hop information in the first downlink routing information.
  • the second UP device eg, UP device 2
  • the first forwarding device receives the second service message and sends the second service message to the first terminal.
  • the address of the service to be requested is the address of the server where the service to be requested is located, and the second forwarding device generates routing information corresponding to the first terminal and sends the second service to the server.
  • the routing information includes second downlink routing information and second uplink routing information.
  • the second downlink routing information includes a destination address and third next hop information, where the destination address is the address of the first terminal, and the next hop device indicated by the third next hop information is the second UP device.
  • the second uplink routing information includes a destination address and fourth next-hop information.
  • the destination address is the address of the server.
  • the next-hop device indicated by the fourth next-hop information is the server.
  • the next-hop device includes a capable arrive Routing information to reach the server.
  • the second forwarding device can then transmit the requested service to the first terminal.
  • the implementation process is as follows:
  • the second forwarding device receives the third service message sent by the server.
  • the third service message is a message belonging to the service to be requested, and the destination address of the third service message is the address of the first terminal.
  • the second forwarding device obtains the second downlink routing information including the address of the first terminal, obtains the third next hop information from the second downlink routing information, and forwards the information to the second UP device (such as the UP device) indicated by the third next hop information. 2) Send the third service message.
  • the second UP device receives the third service message, and based on the address of the first terminal, obtains user entry information including the address of the first terminal from the saved user entry information.
  • the user entry information is the user of the first terminal. Table item information.
  • a fourth service message is sent to the first terminal based on the user entry information, and the fourth service message is obtained based on the third service message.
  • the user entry information includes a first virtual MAC address (such as virtual MAC address 1) and first downlink routing information, and the next hop device indicated by the first next hop information in the first downlink routing information.
  • the second UP device eg, UP device 2
  • the first forwarding device receives the fourth service message and sends the fourth service message to the first terminal.
  • the first terminal sends the fifth service message to the first interface of the second UP device (such as the interface 21 of UP device 2) based on the first virtual MAC address (such as virtual MAC address 1).
  • the message includes the address of the first terminal and the address of the server.
  • the address of the server is the destination address of the fifth service message.
  • the second UP device receives the fifth service message through the first interface (such as interface 21), and obtains user entry information including the address of the first terminal.
  • the user entry information includes first uplink routing information, and first uplink routing information.
  • the next hop device indicated by the second next hop information in is the second forwarding device.
  • the second UP device sends a sixth service message to the second forwarding device.
  • the sixth service message is obtained based on the fifth service message.
  • the destination address of the sixth service message is the address of the server.
  • the second forwarding device receives the sixth service message, obtains the second uplink routing information whose destination address is the address of the server, and sends the sixth service message to the server based on the second uplink routing information.
  • the first terminal sends a fifth service packet to the first forwarding device, and the fifth service packet further includes the first virtual MAC address (such as virtual MAC address 1).
  • the first forwarding device receives the fifth service message and sends the fifth service message to the first interface of the second UP device (eg, interface 21 of UP device 2) based on the first virtual MAC address included in the fifth service message.
  • this embodiment of the present application provides a method 400 for sending multicast services.
  • the method 400 is applied to the vBNG system 100 shown in Figure 1.
  • the vBNG system 100 includes a CP device, a first UP device and a second UP device, the method 400 includes the following steps.
  • Step 401 The first UP device receives a migration instruction, which is used to instruct the first terminal to migrate to the first UP device.
  • the first terminal is a terminal that is online on the second UP device.
  • the first terminal is a terminal that goes online on the first interface on the second UP device.
  • the first UP device receives the migration instruction sent by the CP device.
  • the CP device when the CP device senses that the second UP device is faulty, it needs to migrate the online terminals from each interface on the second UP device to other UP devices.
  • the first interface is any terminal on the second UP device. an interface.
  • the second UP device when the first interface of the second UP device fails, the second UP device sends fault notification information to the CP device.
  • the fault notification information includes the interface identifier of the first interface, and the CP device receives the fault notification information, At this time, the CP device needs to migrate the terminals online on the first interface on the second UP device to other UP devices.
  • the CP device determines the first UP device in the following two ways, and sends a migration message to the first UP device. Shift instructions, the two methods are respectively.
  • the CP device determines N backup UP devices corresponding to the first interface, and each backup UP device includes a backup interface corresponding to the first interface. Based on at least one virtual MAC address of the first interface and the device identification of the second UP device, the CP device obtains the user group corresponding to each virtual MAC address of the first interface, and selects a user group for each user group from the N backup UP devices. Corresponding backup UP devices, the N backup UP devices include the first UP device. Based on the device identification of the first UP device, a migration instruction is sent to the first UP device.
  • the migration instruction includes the interface identification of the second interface and the user table entry information corresponding to each terminal in the first user group.
  • the first user group is For the user group selected by the first UP device, the user entry information of each terminal in the first user group includes a first virtual MAC address, and the first virtual MAC address is a virtual MAC address corresponding to the first user group.
  • the second interface is a backup interface corresponding to the first interface on the first UP device, and the first user group includes the first terminal.
  • the second UP device and the N backup UP devices belong to the same warm backup group.
  • the CP device stores the first correspondence relationship and the sixth correspondence relationship, and the CP device obtains the correspondence with the first interface from the first correspondence relationship based on the device identification of the second UP device and the interface identification of the first interface.
  • the device identifiers of the N backup UP devices and the interface identifiers of the backup interfaces on the N backup UP devices.
  • the CP device obtains the user table of each terminal included in at least one user group corresponding to the first interface from the sixth correspondence relationship item information. Based on the load sharing policy, the corresponding backup UP device is selected for each user group from N backup UP devices.
  • the CP device stores the first correspondence relationship as shown in Table 1.
  • the CP device senses a fault of the UP device 2.
  • the UP device 2 includes an interface 21 and an interface 22.
  • the CP device obtains the device identifications of the corresponding three backup UP devices and the three backups from the first correspondence relationship shown in Table 1.
  • the virtual MAC address of interface 21 includes virtual MAC address 1, virtual MAC address 2 and virtual MAC address 3. Select the corresponding backup UP device as UP device 1 for user group 1 corresponding to virtual MAC address 1, and send a migration command to UP device 1.
  • Migration instruction 1 includes the interface identifier Interface11 of interface 11, virtual MAC address 1, and user table entry information corresponding to each terminal in user group 1.
  • Migration instruction 2 includes the interface identifier Interface31 of interface 31, virtual MAC address 2, and user group 2. User entry information corresponding to each terminal. Select the corresponding backup UP device for user group 3 corresponding to virtual MAC address 3 as UP device 4, and send migration instruction 3 to UP device 4.
  • Migration instruction 3 includes the interface identifier Interface41 of interface 41, virtual MAC address 3, and user group 3. User entry information corresponding to each terminal. For the interface 22 on the UP device 2, refer to the above-mentioned processing of the interface 21, and the details will not be repeated here.
  • the CP device when the CP device needs to migrate a terminal that comes online from the first interface, the CP device selects a virtual MAC address from at least one virtual MAC address of the first interface as the first virtual MAC address, based on the second UP device's The device identifier, the interface identifier of the first interface and the first virtual MAC address, and obtaining the device identifier of the backup UP device corresponding to the first interface and the first virtual MAC address from the third correspondence relationship, and the backup device on the backup UP device.
  • the interface ID of the interface, and the backup UP device is used as the first UP device.
  • the backup UP device corresponding to the first interface and the first virtual MAC address and the interface identification of the backup interface on the backup UP device are obtained from the third correspondence relationship, that is to say, the backup The interface is accurately bound to the first virtual MAC address, making the backup relationship in the warm backup group controllable and facilitating smooth switching of the forwarding side behavior.
  • the migration instruction when the first UP device stores user table entry information corresponding to each terminal in the first user group, the migration instruction includes the second interface
  • the interface identifier and the first information include one or more of the interface identifier of the first interface, the device identifier of the second UP device, and the first virtual MAC address.
  • the migration instruction when the first UP device does not save the user table entry information corresponding to each terminal in the first user group, the migration instruction includes the interface identifier of the second interface, the first virtual MAC address and each terminal in the first user group. User entry information corresponding to each terminal.
  • the CP device stores the third corresponding relationship as shown in Table 3.
  • the CP device senses a fault of the UP device 2.
  • the UP device 2 includes an interface 21 and an interface 22.
  • the virtual MAC address of interface 21 includes virtual MAC address 1, virtual MAC address 2, and virtual MAC address 3.
  • the CP device is based on the device identifier Device2 of UP device 2, the interface identifier Interface21 of interface 21, and virtual MAC address 1. From As shown in the third correspondence relationship shown in Table 3, the corresponding device identifier Device1 of UP device 1 and the interface identifier Interface11 of interface 11 are obtained, and migration instruction 1 is sent to UP device 1.
  • Migration instruction 1 includes the interface identifier Interface11 of interface 11, virtual MAC address 1 and user table entry information corresponding to each terminal in user group 1, or migration instruction 1 includes the interface identifier Interface11 of interface 11 and first information, and the first information includes virtual MAC address 1.
  • the CP device Based on the device identifier Device2 of UP device 2, the interface identifier Interface21 of interface 21, and the virtual MAC address 2, the CP device obtains the corresponding device identifier Device3 of UP device 3 and the interface of interface 31 from the third correspondence relationship shown in Table 3. Identify Interface31, and send migration instruction 2 to UP device 3.
  • Migration instruction 2 includes the interface identifier Interface31 of interface 31, virtual MAC address 2, and user table entry information corresponding to each terminal in user group 2, or migration instruction 2 includes interface 31.
  • the interface identification Interface31 and the first information, the first information includes virtual MAC address 2.
  • the CP device Based on the device identifier Device2 of UP device 2, the interface identifier Interface21 of interface 21, and the virtual MAC address 3, the CP device obtains the corresponding device identifier Device4 of UP device 4 and the interface of interface 41 from the third correspondence relationship shown in Table 3. Identify Interface41, and send migration instruction 3 to UP device 4.
  • Migration instruction 3 includes the interface identifier Interface41 of interface 41, virtual MAC address 3, and user table entry information corresponding to each terminal in user group 3, or migration instruction 3 includes interface 41.
  • the interface identification Interface41 and the first information, the first information includes virtual MAC address 3.
  • Step 402 The first UP device sends a query request to the first terminal based on the migration instruction.
  • the first UP device may send a query request to the first terminal through the following operations 4021-4022, which are respectively.
  • the first UP device obtains the user information of the first terminal based on the migration instruction.
  • the migration instruction includes user entry information corresponding to each terminal in the first user group, the first user group includes the first terminal, and the user entry information of the first terminal includes user information of the first terminal.
  • the first UP device randomly selects the user entry information of one terminal as the user entry information of the first terminal from the user entry information of each terminal in the first user group included in the migration instruction. Read the user information of the first terminal from the user entry information of the first terminal.
  • the first UP device Since the migration instruction includes the user entry information of each terminal, the first UP device directly obtains the user entry information from the migration instruction, which facilitates the first UP device to obtain the user entry information and simplifies the algorithm implementation complexity.
  • the first UP device After receiving the migration instruction, uses the first virtual MAC address as a virtual MAC address of the second interface based on the interface identifier of the second interface, and saves the user table of each terminal in the first user group. item information.
  • a virtual MAC address is added to the second interface.
  • the second interface has three virtual MAC addresses, and the first virtual MAC address is added to the second interface.
  • the second interface has four virtual MAC addresses.
  • the migration instruction includes the interface identifier of the second interface and the first information.
  • the first UP device obtains the first user group in the first user group from the fifth correspondence based on the first information and the interface identifier of the second interface.
  • User entry information for each terminal Select the user entry information of one terminal from the user entry information of each terminal in the first user group as the user entry information of the first terminal. Read the user information of the first terminal from the user entry information of the first terminal.
  • Migration instruction 1 includes the interface identifier Interface11 of interface 11 and first information.
  • the first information includes virtual MAC address 1.
  • the user entry information of each terminal in the first user group is obtained from the fifth correspondence relationship shown in Table 5.
  • the obtained user entry information includes the user entry information of the first terminal. From the Obtain the user information of the first terminal from the user entry information.
  • the first UP device uses the first virtual MAC address as a virtual MAC address of the second interface based on the interface identifier of the second interface.
  • the first UP device sends a query request to the first terminal based on the user information of the first terminal.
  • Step 403 The first UP device receives a query response sent by the first terminal based on the query request, where the query response includes multicast information corresponding to the first terminal.
  • the first terminal after the first terminal receives the query request, if the first terminal joins a certain multicast group, the first terminal sends the multicast information corresponding to the first terminal to the first UP device, and the multicast information is the first multicast group.
  • the multicast information of the source, the multicast group corresponding to the first multicast source is the multicast group joined by the first terminal. If the first terminal does not join any multicast group, the first terminal sends a rejection response to the first UP device.
  • the first UP device combines the user information of the first terminal and the multicast information into a record and saves the record in the seventh correspondence relationship.
  • the above query request and query response are both based on Internet group management protocol (internet group management protocol, IGMP) encapsulated messages, or the above query request and query response are based on multicast listener discovery protocol (IGMP). multicast listener discover, MLD) encapsulated message.
  • IGMP Internet group management protocol
  • MLD multicast listener discover
  • Step 404 The first UP device forwards the multicast service to the first terminal based on the multicast information.
  • the multicast service is a multicast service multicast by the first multicast source, and the multicast group corresponding to the first multicast source is a multicast group joined by the first terminal.
  • the multicast service is high speed internet (HSI) or IP TV/Internet protocol TV (IPTV).
  • the first UP device sends a third service request to the second forwarding device.
  • the third service request includes the multicast information, and the multicast information includes the multicast address.
  • the second forwarding device receives the third service request. If the second forwarding device has received the multicast service corresponding to the multicast information, it generates third downlink routing information.
  • the third downlink routing information includes the multicast address and the fifth next hop. Information, the next hop device indicated by the fifth next hop information is the first UP device. If the second forwarding device does not receive the multicast service corresponding to the multicast information, it receives the multicast service of the first multicast source multicast based on the multicast address included in the multicast information, and generates the third downlink routing information.
  • the downlink routing information includes the multicast address and fifth next hop information.
  • the next hop device indicated by the fifth next hop information is the first UP device.
  • the multicast service is next sent to the first terminal.
  • the sending process is: the second forwarding device receives the seventh service message multicast by the first multicast source based on the multicast address.
  • the seventh service message is For messages belonging to the multicast service, the seventh service message includes multicast information, and the multicast information includes the multicast address.
  • the third downlink routing information including the multicast address is obtained from the third downlink routing information.
  • the fifth next hop information is used to send the seventh service message to the first UP device (such as UP device 1) based on the fifth next hop information.
  • the first UP device (such as UP device 1) receives the seventh service message, and based on the multicast information included in the seventh service message, obtains the user information of the first terminal from the seventh correspondence relationship, and obtains the user entry information from the saved user entry information. Obtain user entry information including the user information, and the user entry information is the user entry information of the first terminal. An eighth service message is sent to the first terminal based on the user entry information, and the eighth service message is obtained based on the seventh service message.
  • the user entry information includes first downlink routing information and a first virtual MAC address (such as virtual MAC address 1), and the next hop device indicated by the first next hop information in the first downlink routing information.
  • the first UP device eg, UP device 1
  • the second interface eg, interface 11
  • the first forwarding device receives the eighth service message and sends the eighth service message to the first terminal.
  • the first UP device receives a migration instruction sent by the CP device.
  • the migration instruction is used to instruct the first terminal to migrate from the second UP device to the first UP device.
  • the first UP device is based on the migration instruction.
  • Send a query request to the first terminal and receive a query response sent by the first terminal based on the query request, where the query response includes multicast information corresponding to the first terminal. That is to say, the first UP device actively queries the multicast information corresponding to the multicast group joined by the first terminal through the query request based on the migration instruction. After querying the multicast information, it forwards the multicast to the first terminal based on the multicast information.
  • the first UP device since the first UP device queries the first terminal for multicast information corresponding to the first terminal, the first UP device does not need to save data used to obtain the multicast information, thereby saving resources of the first UP device, and because no Users are required to manually restore multicast services to improve user experience.
  • an embodiment of the present application provides a method 600 for sending multicast services.
  • the method 600 is applied to the vBNG system 100 shown in Figure 1.
  • the vBNG system 100 includes a CP device, a first UP device and a second UP device, the method 600 includes the following steps.
  • Step 601 The first UP device receives the multicast information corresponding to the first terminal sent by the second UP device.
  • the first terminal is a terminal online on the second UP device.
  • the second UP device sends the multicast information of the service to be requested by the first terminal and the user information of the first terminal to the first UP device.
  • the first UP device receives the multicast information and the user information of the first terminal, forms a record of the multicast information and the user information of the first terminal, and stores it in the seventh correspondence relationship.
  • step 601 if the second UP device fails or the first interface on the second UP device fails, and the first interface is any interface on the second UP device, perform the following operations of steps 602-603.
  • Step 602 The first UP device receives a migration instruction, which is used to instruct the first terminal to migrate to the first UP device.
  • the first UP device receives the migration instruction sent by the CP device.
  • the CP device uses the first method or the second method introduced in step 401 to send a migration instruction to the first UP device.
  • the migration instruction includes an interface identifier of the second interface and user entry information corresponding to each terminal in the first user group.
  • the migration instruction includes the interface identifier of the second interface and first information, and the first information includes one or more of the device identifier of the second UP device, the interface identifier of the first interface, and the first virtual MAC address.
  • the first user group is a user group corresponding to the first interface on the first UP device, and each user group in the first user group
  • the user entry information of the terminal includes a first virtual MAC address, the first virtual MAC address is a virtual MAC address corresponding to the first user group, and the second interface is a backup interface corresponding to the first interface.
  • Step 603 The first UP device forwards the multicast service to the first terminal based on the multicast information and the migration instruction.
  • step 603 the first UP device forwards the multicast service to the first terminal through the following operations 6031-6033, which are respectively.
  • the first UP device obtains the first user entry information based on the migration instruction.
  • the first user entry information is used to transmit the service of the first terminal, and obtains the user information of the first terminal from the first user entry information.
  • the migration instruction includes user entry information corresponding to each terminal in the first user group, the first user group includes the first terminal, and the user entry information of the first terminal includes user information of the first terminal. .
  • the migration instruction includes the interface identifier of the second interface and the first information.
  • the first UP device obtains the first user group in the first user group from the fifth correspondence based on the first information and the interface identifier of the second interface.
  • User entry information for each terminal Select the user entry information of one terminal from the user entry information of each terminal in the first user group as the user entry information of the first terminal. Read the user information of the first terminal from the user entry information of the first terminal.
  • the first UP device obtains the multicast information corresponding to the first terminal from the seventh correspondence relationship based on the user information of the first terminal.
  • the first UP device forwards the multicast service to the first terminal based on the multicast information.
  • step 404 of the method 400 shown in Figure 4 For the detailed implementation process of the first UP device forwarding the multicast service to the first terminal based on the multicast information, please refer to the relevant content in step 404 of the method 400 shown in Figure 4, which will not be described in detail here.
  • the first UP device receives the multicast information corresponding to the first terminal sent by the second UP device, and the first terminal is a terminal that is online on the second UP device.
  • the first UP device receives a migration instruction, which is used to instruct the first terminal to migrate to the first UP device.
  • the first UP device forwards the multicast service to the first terminal based on the multicast information and the migration instruction. Since the first UP device receives the multicast information corresponding to the first terminal sent by the second UP device, when the first UP device receives a migration instruction for instructing to migrate the first terminal, the first UP device can quickly base on the migration instruction.
  • the multicast information forwards the multicast service to the first terminal, that is, the UP device on which the terminal is online actively sends the multicast information corresponding to the terminal to other UP devices, so that when the UP device fails, other UP devices can quickly and automatically restore the group.
  • broadcast service ensuring that the multicast service can be forwarded to the first terminal normally, and also improving the efficiency of restoring the multicast service. Since users are not required to manually restore multicast services, user experience is improved.
  • an embodiment of the present application provides a device 700 for sending multicast services.
  • the device 700 is applied in a virtual broadband access gateway vBNG system.
  • the vBNG system includes the device 700 and a second user plane UP. equipment.
  • the device 700 may be deployed on the first UP device 1021 in the vBNG system 100 shown in Figure 1, the UP device 1 in the system shown in Figure 2 or Figure 5, or the first UP in the method 400 shown in Figure 4 on the device.
  • the device 700 includes:
  • the receiving unit 701 is configured to receive a migration instruction, which is used to instruct the migration of the first terminal to the device 700.
  • the first terminal is a terminal online on the second UP device;
  • the sending unit 702 is configured to send a query request to the first terminal based on the migration instruction
  • the receiving unit 701 is also configured to receive a query response sent by the first terminal based on the query request, where the query response includes multicast information corresponding to the first terminal;
  • the sending unit 702 is also configured to forward the multicast service to the first terminal based on the multicast information.
  • step 401 of the method 400 shown in Figure 4 please refer to the relevant content in step 401 of the method 400 shown in Figure 4, which will not be described in detail here.
  • step 404 of the method 400 shown in Figure 4 please refer to the relevant content in step 404 of the method 400 shown in Figure 4, which will not be described in detail here.
  • the multicast information is multicast information corresponding to the first multicast source
  • the multicast group corresponding to the first multicast source is a multicast group joined by the first terminal.
  • the multicast information includes the multicast address of the first multicast source.
  • the device 700 also includes:
  • the processing unit 703 is configured to obtain first user entry information based on the migration instruction, and the first user entry information is used to transmit services of the first terminal.
  • the migration instruction includes: the device identification of the second UP device, the interface identification of the first interface, or the virtual media access control layer MAC address of the first interface.
  • the first interface is the first terminal in the second UP.
  • the migration instruction includes first user entry information, and the first user entry information is used to transmit services of the first terminal.
  • the receiving unit 701 is used to receive the migration instruction sent by the CP device.
  • both the query request and the query response are messages encapsulated based on the Internet Group Management Protocol IGMP, or both the query request and the query response are messages encapsulated based on the Multicast Listener Discovery Protocol MLD.
  • IGMP Internet Group Management Protocol
  • MLD Multicast Listener Discovery Protocol
  • the device 700 and the second UP device are located in the same power supply group, or the device 700 and the second UP device are located in different power supply groups, and the power supply group includes multiple UP devices.
  • the sending unit when the receiving unit receives the migration instruction for instructing to migrate the first terminal, sends a query request to the first terminal based on the migration instruction, and the receiving unit receives the query request sent by the first terminal based on the query request.
  • the query response includes multicast information corresponding to the first terminal. That is to say, the sending unit actively queries the multicast information corresponding to the multicast group joined by the first terminal through the query request based on the migration instruction. After querying the multicast information, it forwards the multicast service to the first terminal based on the multicast information. Thus, the multicast service is automatically restored, ensuring that the multicast service can be forwarded to the first terminal normally and improving the user experience.
  • an embodiment of the present application provides a device 800 for sending multicast services.
  • the device 800 is applied in a virtual broadband access gateway vBNG system.
  • the vBNG system includes the device 800 and a second user plane UP. equipment.
  • the device 800 may be deployed on the first UP device 1021 in the vBNG system 100 shown in Figure 1, the UP device 1 in the system shown in Figure 2 or Figure 5, or the first UP in the method 600 shown in Figure 6 on the device.
  • the device 800 includes:
  • the receiving unit 801 is configured to receive multicast information corresponding to the first terminal sent by the second UP device.
  • the first terminal is a terminal online on the second UP device;
  • the receiving unit 801 is also configured to receive a migration instruction, which is used to instruct the first terminal to migrate to the device 800;
  • the sending unit 802 is configured to forward the multicast service to the first terminal based on the multicast information and the migration instruction.
  • the device 800 also includes:
  • the processing unit 803 is configured to obtain first user entry information based on the migration instruction, and the first user entry information is used to transmit services of the first terminal.
  • the migration instruction includes: the device identifier of the second UP device, the interface identifier of the first interface, or the virtual media access control layer MAC address of the first interface, and the first interface is where the first terminal is located in the second UP device.
  • the migration instruction includes first user entry information, and the first user entry information is used to transmit services of the first terminal.
  • the sending unit 802 is also used to:
  • the second terminal is a terminal online on the device 800 .
  • the device 800 and the second UP device are located in the same power supply group, or the device 800 and the second UP device are located in different power supply groups, and the power supply group includes multiple UP devices.
  • the second UP device includes a first interface.
  • the first interface is an interface through which the first terminal goes online.
  • the device 800 includes a second interface.
  • the second interface is the first interface after the first terminal migrates to the device 800.
  • the first interface and the second interface are two interfaces in the same warm backup group.
  • the second interface is a backup interface of the first interface for the first virtual MAC address
  • the first virtual MAC address is the address of the first interface
  • the first virtual MAC address corresponds to the first terminal.
  • the multicast information is multicast information corresponding to the first multicast source
  • the multicast group corresponding to the first multicast source is a multicast group joined by the first terminal.
  • the multicast information of the first multicast source includes the multicast address of the first multicast source.
  • the receiving unit receives multicast information corresponding to the first terminal sent by the second UP device.
  • the first terminal is a terminal online on the second UP device, and receives a migration instruction.
  • the migration instruction is used to indicate Migrate the first terminal to the first UP device.
  • the sending unit forwards the multicast service to the first terminal based on the multicast information and the migration instruction. Since the receiving unit receives the multicast information corresponding to the first terminal sent by the second UP device, when the receiving unit receives the relocation instruction for instructing to migrate the first terminal, the sending unit sends a message to the first terminal based on the relocation instruction and the multicast information.
  • the terminal forwards the multicast service, that is, the UP device on which the terminal is online actively sends the multicast information corresponding to the terminal to other UP devices, so that when the UP device fails, the other UP devices can automatically restore the multicast service, ensuring that the first UP device can normally forward the multicast service to the first UP device.
  • the terminal forwards multicast services.
  • an embodiment of the present application provides a virtual broadband access gateway vBNG system 900.
  • the vBNG system includes a CP device 901, a first user plane UP device 902 and a second UP device 903.
  • the vBNG system 900 can It is the vBNG system shown in Figure 1, the vBNG system 100 to which the method 300 shown in Figure 3 is applied, or the vBNG system 100 to which the method 600 shown in Figure 6 is applied.
  • the vBNG system 900 includes:
  • the second UP device 903 is used to send multicast information corresponding to the first terminal to the first UP device.
  • the first terminal is a terminal that is online on the second UP device 903;
  • the CP device 901 is configured to send a migration instruction to the first UP device 902 based on the failure of the second UP device 903.
  • the migration instruction is used to instruct the first terminal to migrate to the first UP device 902;
  • the first UP device 902 is configured to forward the multicast service to the first terminal based on the multicast information and the migration instruction.
  • the second UP device 903 sending the multicast information corresponding to the first terminal to the first UP device, please refer to the relevant content in step 601 of the method 600 shown in Figure 6, which will not be described in detail here.
  • the second UP device 903 is also configured to send multicast information corresponding to the first terminal to the third UP device.
  • the first UP device, the second UP device and the third UP device are devices in the same warm backup group.
  • the multicast information is multicast information corresponding to the first multicast source
  • the multicast group corresponding to the first multicast source is a multicast group joined by the first terminal.
  • the multicast information of the first multicast source includes the multicast address of the first multicast source.
  • the first UP device since the second UP device sends the multicast information corresponding to the first terminal to the first UP device, the first UP device receives the migration instruction sent by the CP device to instruct the migration of the first terminal. At that time, the first UP device forwards the multicast service to the first terminal based on the migration instruction and the multicast information. That is, the UP device on which the terminal is online actively sends the multicast information corresponding to the terminal to other UP devices, so that when the UP device fails, , other UP devices can automatically restore multicast services to ensure that multicast services can be forwarded to the first terminal normally.
  • an embodiment of the present application provides a schematic diagram of a device 1000 for sending service messages.
  • the device 1000 may be the first UP device provided in any of the above embodiments.
  • the device 1000 may be the first UP device 1021 in the vBNG 100 shown in Figure 1, or the first UP device in the method 300 shown in Figure 3. device or the first UP device in the method 400 shown in FIG. 4 .
  • the device 1000 includes at least one processor 1001, internal connections 1002, memory 1003 and at least one transceiver 1004.
  • the device 1000 is a device with a hardware structure and can be used to implement the functional modules in the device 800 shown in FIG. 8 .
  • the corresponding functions of the receiving unit 801, the sending unit 802 and the processing unit 803 in the device 800 shown in FIG. 8 can be implemented by calling the code in the memory 1003 by the at least one processor 1001.
  • the device 1000 can also be used to implement the function of the first UP device in any of the above embodiments.
  • the above-mentioned processor 1001 may be a general central processing unit (CPU), a network processor (NP), a microprocessor, an application-specific integrated circuit (ASIC), or a or A plurality of integrated circuits used to control the execution of the program of this application.
  • CPU central processing unit
  • NP network processor
  • ASIC application-specific integrated circuit
  • the internal connection 1002 may include a path for transmitting information between the components.
  • the internal connection 1002 may be a single board or a bus, etc.
  • the above-mentioned at least one transceiver 1004 is used to communicate with other devices or communication networks.
  • the above-mentioned memory 1003 can be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM) or other types that can store information and instructions.
  • type of dynamic storage device which can also be electrically erasable programmable read-only memory (electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.) , disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto.
  • the memory can exist independently and be connected to the processor through a bus. Memory can also be integrated with the processor.
  • the memory 1003 is used to store the application code for executing the solution of the present application, and the processor 1001 controls the execution.
  • the processor 1001 is used to execute the application code stored in the memory 1003, and cooperate with at least one transceiver 1004, so that the device 1000 implements the functions in the patent method.
  • the processor 1001 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 10 .
  • the device 1000 may include multiple processors, such as the processor 1001 and the processor 1007 in Figure 10 .
  • processors may be a single-CPU processor or a multi-CPU processor.
  • a processor here may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • an embodiment of the present application provides a schematic diagram of a device 1100 for sending service messages.
  • the device 1100 may be the first UP device provided in any of the above embodiments.
  • the device 1100 may be the first UP device 1121 in the vBNG 110 shown in Figure 1 , or the first UP device in the method 300 shown in Figure 3 device or the first UP device in the method 600 shown in FIG. 6 .
  • the device 1100 includes at least one processor 1101, internal connections 1102, memory 1103 and at least one transceiver 1104.
  • the device 1100 is a device with a hardware structure and can be used to implement the functional modules in the device 900 shown in FIG. 9 .
  • the corresponding functions of the receiving unit 901, the sending unit 902 and the processing unit 903 in the device 900 shown in FIG. 9 can be implemented by calling the code in the memory 1103 by the at least one processor 1101.
  • the device 1100 can also be used to implement the function of the first UP device in any of the above embodiments.
  • the above-mentioned processor 1101 may be a general central processing unit (CPU), a network processor (NP), a microprocessor, an application-specific integrated circuit (ASIC), or a or A plurality of integrated circuits used to control the execution of the program of this application.
  • CPU central processing unit
  • NP network processor
  • ASIC application-specific integrated circuit
  • the internal connection 1102 may include a path for transmitting information between the components.
  • the internal connection 1102 may be a single board or a bus, etc.
  • the above-mentioned at least one transceiver 1104 is used to communicate with other devices or communication networks.
  • the above-mentioned memory 1103 can be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM) or other types that can store information and instructions.
  • ROM read-only memory
  • RAM random access memory
  • dynamic storage device it can also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disk storage, optical disc Storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store the desired program code in the form of instructions or data structures and can be used by Any other media accessible by a computer, but not limited to this.
  • the memory can exist independently and be connected to the processor through a bus. Memory can also be integrated with the processor.
  • the memory 1103 is used to store the application program code for executing the solution of the present application, and is controlled by the processor 1101 implement.
  • the processor 1101 is used to execute the application program code stored in the memory 1103, and cooperate with at least one transceiver 1104, so that the device 1100 implements the functions in the patent method.
  • the processor 1101 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 11 .
  • the device 1100 may include multiple processors, such as the processor 1101 and the processor 1107 in FIG. 11 .
  • processors may be a single-CPU processor or a multi-CPU processor.
  • a processor here may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • Figure 12 shows a schematic structural diagram of a device 1200 for sending service messages provided by an exemplary embodiment of the present application.
  • the device 1200 is the first UP device of any of the above embodiments.
  • the device 1200 is the first UP device 1021 in the vBNG 100 shown in Figure 1, or the first UP device in the method 300 shown in Figure 3, or the first UP device in the method 400 shown in Figure 4, or Figure 7 Device 700 is shown, or device 1000 is described in Figure 10.
  • the first UP device in the method 300 shown in FIG. 3 or the method 400 shown in FIG. 4 can be implemented by the device 1200 shown in FIG. 12 .
  • device 1200 includes: a main control board 1201 and an interface board 1202.
  • the main control board 1201 is also called the main processing unit (MPU) or the route processor card.
  • the main control board 1201 is used to control and manage each component in the device 1200, including route calculation and device management. , equipment maintenance, protocol processing functions.
  • the main control board 1201 includes: a central processing unit 12011 and a memory 12012.
  • the interface board 1202 is also called a line processing unit (LPU), line card or service board.
  • the interface board 1202 is used to provide various service interfaces and implement data packet forwarding.
  • Business interfaces include but are not limited to Ethernet interfaces, POS (Packet over SONET/SDH) interfaces, etc.
  • Ethernet interfaces are, for example, Flexible Ethernet Clients (FlexE Clients).
  • the interface board 1202 includes: a central processor 12021, a network processor 12022, a forwarding entry memory 12023, and a physical interface card (physical interface card, PIC) 12024.
  • the central processor 12021 on the interface board 1202 is used to control and manage the interface board 1202 and communicate with the central processor 12011 on the main control board 1201.
  • the network processor 12022 is used to implement packet forwarding processing.
  • the network processor 12022 may be in the form of a forwarding chip.
  • the forwarding chip can be a network processor (NP).
  • the forwarding chip can be implemented through an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA).
  • ASIC application-specific integrated circuit
  • FPGA field programmable gate array
  • the network processor 12022 is used to forward the received message based on the forwarding table stored in the forwarding table memory 12023.
  • the processing of uplink packets may include: processing of the packet incoming interface, forwarding table search; and the processing of downlink packets may include: forwarding table search, etc.
  • the central processing unit can also perform the function of the forwarding chip, such as implementing software forwarding based on a general-purpose CPU, so that there is no need for a forwarding chip in the interface board.
  • the physical interface card 12023 is used to implement the docking function of the physical layer.
  • the original traffic enters the interface board 1202 through this, and the processed packets are sent out from the physical interface card 1202.
  • the physical interface card 12023 is also called a daughter card and can be installed on the interface board 1202. It is responsible for converting photoelectric signals into messages and checking the validity of the messages before forwarding them to the network processor 12022. reason.
  • the central processor can also perform the functions of the network processor 12022, such as implementing software forwarding based on a general-purpose CPU, so that the network processor 12022 is not required in the physical interface card 12023.
  • the device 1200 includes multiple interface boards.
  • the device 1200 also includes an interface board 1203.
  • the interface board 1203 includes: a central processor 12031, a network processor 12032, a forwarding entry memory 12033, and a physical interface card 12034.
  • the functions and implementation methods of each component in the interface board 1203 are the same as or similar to those of the interface board 1202, and will not be described again here.
  • the device 1200 also includes a switching network board 1204.
  • the switching fabric unit 1204 may also be called a switching fabric unit (switch fabric unit, SFU).
  • SFU switching fabric unit
  • the switching network board 1204 is used to complete data exchange between the interface boards.
  • the interface board 1202 and the interface board 1203 can communicate through the switching network board 1204.
  • the main control board 1201 and the interface board 1202 are coupled.
  • the main control board 1201, the interface board 1202, the interface board 1203, and the switching network board 1204 are connected to the system backplane through a system bus to achieve intercommunication.
  • an inter-process communication protocol (IPC) channel is established between the main control board 1201 and the interface board 1202, and the main control board 1201 and the interface board 1202 communicate through the IPC channel.
  • IPC inter-process communication protocol
  • Logically, device 1200 includes a control plane and a forwarding plane.
  • the control plane includes a main control board 1201 and a central processor.
  • the forwarding plane includes various components that perform forwarding, such as forwarding entry memory 12023, physical interface card 12024, and network processor 12022. .
  • the control plane executes functions such as router, generates forwarding tables, processes signaling and protocol messages, configures and maintains the status of devices.
  • the control plane sends the generated forwarding tables to the forwarding plane.
  • the network processor 12022 is based on the control plane.
  • the delivered forwarding table looks up the packets received by physical interface card 12024 and forwards them.
  • the forwarding table delivered by the control plane can be stored in the forwarding table item storage 12023. In some embodiments, the control plane and forwarding plane may be completely separate and not on the same device.
  • main control boards 1201 there may be one or more main control boards 1201, and when there are multiple main control boards, they may include a main main control board and a backup main control board.
  • the device 1200 does not need a switching network board, and the interface board is responsible for processing the service data of the entire system.
  • the device 1200 can have at least one switching network board 1204.
  • the switching network board 1204 implements data exchange between multiple interface boards and provides large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of the distributed architecture device 1200 are greater than those of the centralized architecture device.
  • the device 1200 can also be in the form of only one board, that is, there is no switching network board.
  • the functions of the interface board and the main control board are integrated on this board.
  • the central processor and the main control board on the interface board The central processor on the board can be combined into one central processor on this board to perform the superimposed functions of the two.
  • This form of equipment has low data exchange and processing capabilities (for example, low-end switches or routers and other networks equipment).
  • the specific architecture used depends on the specific networking deployment scenario and is not limited here.
  • Figure 13 shows a schematic structural diagram of a device 1300 for sending service messages provided by an exemplary embodiment of the present application.
  • the device 1300 is the first UP device of any of the above embodiments.
  • the device 1300 is the first UP device 1021 in the vBNG 100 shown in Figure 1, or the first UP device in the method 300 shown in Figure 3, or the first UP device in the method 600 shown in Figure 6, or Figure 8 Device 800 is shown, or device 1100 is described in Figure 11.
  • the first UP device in the method 300 shown in FIG. 3 or the method 600 shown in FIG. 6 can be implemented by the device 1300 shown in FIG. 13 .
  • device 1300 includes: a main control board 1301 and an interface board 1302.
  • the main control board 1301 is also called a main processing unit (MPU) or a route processor card.
  • the main control board 1301 is used to control and manage various components in the device 1300, including route calculation and device management. , Equipment maintenance and protocol processing functions.
  • the main control board 1301 includes: a central processing unit 13011 and a memory 13012.
  • the interface board 1302 is also called a line interface unit card (line processing unit, LPU), line card (line card) or service board.
  • the interface board 1302 is used to provide various service interfaces and implement data packet forwarding.
  • Business interfaces include but are not limited to Ethernet interfaces, POS (Packet over SONET/SDH) interfaces, etc.
  • Ethernet interfaces are, for example, Flexible Ethernet Clients (FlexE Clients).
  • the interface board 1302 includes: a central processor 13021, a network processor 13022, a forwarding entry memory 13023, and a physical interface card (physical interface card, PIC) 13024.
  • the central processor 13021 on the interface board 1302 is used to control and manage the interface board 1302 and communicate with the central processor 13011 on the main control board 1301.
  • the network processor 13022 is used to implement packet forwarding processing.
  • the network processor 13022 may be in the form of a forwarding chip.
  • the forwarding chip can be a network processor (NP).
  • the forwarding chip can be implemented through an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA).
  • ASIC application-specific integrated circuit
  • FPGA field programmable gate array
  • the network processor 13022 is used to forward the received message based on the forwarding table stored in the forwarding table memory 13023.
  • the processing of uplink packets may include: processing of the packet incoming interface, forwarding table search; and the processing of downlink packets may include: forwarding table search, etc.
  • the central processing unit can also perform the function of the forwarding chip, such as implementing software forwarding based on a general-purpose CPU, so that there is no need for a forwarding chip in the interface board.
  • the physical interface card 13023 is used to implement the docking function of the physical layer.
  • the original traffic enters the interface board 1302 through this, and the processed packets are sent out from the physical interface card 1302.
  • the physical interface card 13023 is also called a daughter card and can be installed on the interface board 1302. It is responsible for converting photoelectric signals into messages and checking the validity of the messages before forwarding them to the network processor 13022 for processing.
  • the central processor can also perform the functions of the network processor 13022, such as implementing software forwarding based on a general-purpose CPU, so that the network processor 13022 is not required in the physical interface card 13023.
  • the device 1300 includes multiple interface boards.
  • the device 1300 also includes an interface board 1303.
  • the interface board 1303 includes: a central processor 13031, a network processor 13032, a forwarding entry memory 13033, and a physical interface card 13034.
  • the functions and implementation methods of each component in the interface board 1303 are the same as or similar to those of the interface board 1302, and will not be described again here.
  • the device 1300 also includes a switching network board 1304.
  • the switching fabric unit 1304 may also be called a switching fabric unit (switch fabric unit, SFU).
  • SFU switching fabric unit
  • the switching network board 1304 is used to complete data exchange between the interface boards.
  • the interface board 1302 and the interface board 1303 can communicate through the switching network board 1304.
  • the main control board 1301 and the interface board 1302 are coupled.
  • the main control board 1301, the interface board 1302, the interface board 1303, and the switching network board 1304 are connected to the system backplane through a system bus to achieve intercommunication.
  • an inter-process communication protocol (IPC) channel is established between the main control board 1301 and the interface board 1302, and the main control board 1301 and the interface board 1302 communicate through the IPC channel.
  • IPC inter-process communication protocol
  • Logically, device 1300 includes a control plane and a forwarding plane.
  • the control plane includes a main control board 1301 and a central processor.
  • the forwarding plane includes various components that perform forwarding, such as forwarding entry memory 13023, physical interface card 13024, and network processor 13022. .
  • the control plane executes functions such as router, generates forwarding tables, processes signaling and protocol messages, configures and maintains device status.
  • the control plane sends the generated forwarding tables to the forwarding plane.
  • the network processor 13022 is based on the control plane.
  • the delivered forwarding table looks up the table and forwards the packets received by the physical interface card 13024.
  • the forwarding table delivered by the control plane can be stored in the forwarding table item storage 13023. In some embodiments, the control plane and forwarding plane may be completely separate and not on the same device.
  • main control boards 1301 there may be one or more main control boards 1301, and when there are multiple main control boards, they may include a main main control board and a backup main control board.
  • the device 1300 does not need a switching network board, and the interface board is responsible for processing the service data of the entire system.
  • the device 1300 can have at least one switching network board 1304.
  • the switching network board 1304 implements data exchange between multiple interface boards and provides large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of the distributed architecture device 1300 are greater than those of the centralized architecture device.
  • the device 1300 can also be in the form of only one board, that is, there is no switching network board.
  • the functions of the interface board and the main control board are integrated on this board.
  • the central processor and the main control board on the interface board The central processor on the board can be combined into one central processor on this board to perform the superimposed functions of the two.
  • This form of equipment has low data exchange and processing capabilities (for example, low-end switches or routers and other networks equipment).
  • the specific architecture used depends on the specific networking deployment scenario and is not limited here.

Abstract

The present application belongs to the field of communications. Disclosed are a multicast service sending method, an apparatus, a system and a storage medium. The method comprises: a first UP device receiving a migration instruction, the migration instruction being used for giving an instruction to migrate a first terminal to the first UP device, the first terminal being a terminal getting online on a second UP device; on the basis of the migration instruction, the first UP device sending a query request to the first terminal; the first UP device receiving a query response sent by the first terminal on the basis of the query request, the query response comprising multicast information corresponding to the first terminal; and on the basis of the multicast information, the first UP device forwarding a multicast service to the first terminal. The present application ensures that the multicast service can be forwarded to the terminal.

Description

发送组播业务的方法、装置、系统及存储介质Methods, devices, systems and storage media for sending multicast services
本申请要求于2022年3月18日提交的申请号为202210273189.6、发明名称为“发送组播业务的方法、装置、系统及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application with application number 202210273189.6 and the invention title "Method, device, system and storage medium for transmitting multicast services" submitted on March 18, 2022, the entire content of which is incorporated by reference in in this application.
技术领域Technical field
本申请涉及通信领域,特别涉及一种发送组播业务的方法、装置、系统及存储介质。The present application relates to the field of communications, and in particular to a method, device, system and storage medium for sending multicast services.
背景技术Background technique
采用控制面(controller plane,CP)和用户面(user plane,UP)分离方案的宽带网关接入系统一般包括:CP设备和多个UP设备。CP设备可以对该多个UP设备进行管理。Broadband gateway access systems that adopt a control plane (CP) and user plane (UP) separation scheme generally include: CP equipment and multiple UP equipment. The CP device can manage multiple UP devices.
其中,CP设备在通过远程用户拨号认证服务(remote authentication dial in user service,RADIUS)服务器对终端进行认证后,可以控制终端从某个UP设备上线。也即是,可以由该UP设备转发属于终端的业务,以将终端接入网络。Among them, the CP device can control the terminal to go online from a certain UP device after authenticating the terminal through the remote authentication dial in user service (RADIUS) server. That is, the UP device can forward services belonging to the terminal to connect the terminal to the network.
终端可以使用该UP设备加入组播组,该UP设备向终端转发该组播组对应的组播源组播的组播业务。但是,如果该UP设备出现故障,则会导致无法向终端转发该组播业务。The terminal can use the UP device to join the multicast group, and the UP device forwards the multicast service of the multicast source multicast corresponding to the multicast group to the terminal. However, if the UP device fails, the multicast service cannot be forwarded to the terminal.
发明内容Contents of the invention
本申请提供了一种发送组播业务的方法、装置、系统及存储介质,以保证能够向终端转发组播业务。所述技术方案如下:This application provides a method, device, system and storage medium for sending multicast services to ensure that multicast services can be forwarded to terminals. The technical solutions are as follows:
第一方面,本申请提供了一种发送组播业务的方法,所述方法应用于虚拟宽带接入网关vBNG系统中的第一用户面UP设备,vBNG系统还包括第二UP设备,在所述方法中,第一UP设备接收迁移指令,该迁移指令用于指示将第一终端迁移至第一UP设备上,第一终端是在第二UP设备上上线的终端。第一UP设备基于该迁移指令向第一终端发送查询请求。第一UP设备接收第一终端基于该查询请求发送的查询响应,该查询响应包括第一终端对应的组播信息。第一UP设备基于该组播信息,向第一终端转发组播业务。In a first aspect, this application provides a method for sending multicast services. The method is applied to the first user plane UP device in the virtual broadband access gateway vBNG system. The vBNG system also includes a second UP device. In the In the method, the first UP device receives a migration instruction. The migration instruction is used to instruct the first terminal to migrate to the first UP device. The first terminal is a terminal that is online on the second UP device. The first UP device sends a query request to the first terminal based on the migration instruction. The first UP device receives a query response sent by the first terminal based on the query request, where the query response includes multicast information corresponding to the first terminal. The first UP device forwards the multicast service to the first terminal based on the multicast information.
由于第一UP设备接收用于指示迁移第一终端的迁移指令时,第一UP设备基于该迁移指令向第一终端发送查询请求,接收第一终端基于该查询请求发送的查询响应,该查询响应包括第一终端对应的组播信息。也就是说,第一UP设备基于迁移指令主动通过该查询请求查询第一终端加入的组播组对应的组播信息,在查询到组播信息,基于该组播信息向第一终端转发组播业务,从而自动恢复组播业务,保证能够正常向第一终端转发组播业务。When the first UP device receives a migration instruction for instructing to migrate the first terminal, the first UP device sends a query request to the first terminal based on the migration instruction, and receives a query response sent by the first terminal based on the query request. The query response Includes multicast information corresponding to the first terminal. That is to say, the first UP device actively queries the multicast information corresponding to the multicast group joined by the first terminal through the query request based on the migration instruction. After querying the multicast information, it forwards the multicast to the first terminal based on the multicast information. service, thereby automatically restoring the multicast service and ensuring that the multicast service can be forwarded to the first terminal normally.
在一种可能的实现方式中,该组播信息是第一组播源对应的组播信息,第一组播源对应的组播组是第一终端加入的组播组。由于第一组播源对应的组播组是第一终端加入的组播组,所以第一UP设备基于该组播信息向第一终端转发的组播业务是第一终端已请求的业务,保证自动恢复第一终端已请求的组播业务。In a possible implementation manner, the multicast information is multicast information corresponding to the first multicast source, and the multicast group corresponding to the first multicast source is a multicast group joined by the first terminal. Since the multicast group corresponding to the first multicast source is a multicast group joined by the first terminal, the multicast service forwarded by the first UP device to the first terminal based on the multicast information is the service requested by the first terminal, ensuring that Automatically resume the multicast service requested by the first terminal.
在另一种可能的实现方式中,该组播信息包括第一组播源的组播地址。In another possible implementation manner, the multicast information includes the multicast address of the first multicast source.
在另一种可能的实现方式中,第一UP设备基于该迁移指令,获取第一用户表项信息, 第一用户表项信息用于传输第一终端的业务。由于第一UP设备获取到第一用户表项信息,这样基于第一用户表项信息,保证能够成功向第一终端转发组播业务。In another possible implementation, the first UP device obtains the first user entry information based on the migration instruction, The first user entry information is used to transmit services of the first terminal. Since the first UP device obtains the first user entry information, it is guaranteed that the multicast service can be successfully forwarded to the first terminal based on the first user entry information.
在另一种可能的实现方式中,该迁移指令包括:第二UP设备的设备标识、第一接口的接口标识、或者,第一接口的虚拟媒体接入控制层MAC地址,第一接口是第一终端在第二UP设备上上线的接口。这样第一UP设备基于第二UP设备的设备标识、第一接口的接口标识、或者,第一接口的虚拟MAC地址,能够获取到第一用户表项信息,如此CP设备需要迁移第二UP设备上的终端时,不需要获取用户表项信息,而是直接向第一UP设备发送迁移指令,由于该迁移指令不包括用户表项信息,能够快速发送该迁移指令以及减少对网络资源的占用。In another possible implementation, the migration instruction includes: the device identification of the second UP device, the interface identification of the first interface, or the virtual media access control layer MAC address of the first interface, and the first interface is the first interface. The interface through which a terminal goes online on the second UP device. In this way, the first UP device can obtain the first user entry information based on the device identifier of the second UP device, the interface identifier of the first interface, or the virtual MAC address of the first interface. In this case, the CP device needs to migrate the second UP device. When a terminal is installed on the device, it is not necessary to obtain user entry information, but directly sends a migration instruction to the first UP device. Since the migration instruction does not include user entry information, the migration instruction can be sent quickly and the occupation of network resources is reduced.
在另一种可能的实现方式中,该迁移指令包括第一用户表项信息,第一用户表项信息用于传输所述第一终端的业务。由于迁移指令包括第一用户表项信息,便于第一UP设备得到第一用户表项信息,简化算法实现复杂度。In another possible implementation manner, the migration instruction includes first user entry information, and the first user entry information is used to transmit services of the first terminal. Since the migration instruction includes the first user entry information, it is convenient for the first UP device to obtain the first user entry information and the algorithm implementation complexity is simplified.
在另一种可能的实现方式中,第一UP设备接收所述CP设备发送的迁移指令。In another possible implementation, the first UP device receives the migration instruction sent by the CP device.
在另一种可能的实现方式中,查询请求和查询响应均是基于因特网组管理协议IGMP封装的报文,或者,查询请求和查询响应均是基于组播监听者发现协议MLD封装的报文。In another possible implementation manner, both the query request and the query response are messages encapsulated based on the Internet Group Management Protocol IGMP, or both the query request and the query response are messages encapsulated based on the Multicast Listener Discovery Protocol MLD.
在另一种可能的实现方式中,第一UP设备和所述第二UP设备位于同一供电组,或者,第一UP设备和第二UP设备位于不同的供电组,供电组包括多个UP设备。In another possible implementation, the first UP device and the second UP device are located in the same power supply group, or the first UP device and the second UP device are located in different power supply groups, and the power supply group includes multiple UP devices. .
其中,对于第一UP设备和第二UP设备位于不同的供电组的情况,在第二UP设备所在的供电组断电时,由于第一UP设备和第二UP设备属于不同供电组,第一UP设备所在供电组没有断电情况发生,这样将第一终端迁移到第一UP设备,保证第一终端能够从第一UP设备上上线。Among them, for the situation where the first UP device and the second UP device are in different power supply groups, when the power supply group where the second UP device is located is powered off, since the first UP device and the second UP device belong to different power supply groups, the first UP device and the second UP device belong to different power supply groups. There is no power outage in the power supply group where the UP device is located. In this way, the first terminal is migrated to the first UP device to ensure that the first terminal can go online from the first UP device.
第二方面,本申请提供了一种发送组播业务的方法,所述方法应用于虚拟宽带接入网关vBNG系统中的第一用户面UP设备,该vBNG系统还包括第二UP设备,在所述方法中,第一UP设备接收第二UP设备发送的第一终端对应的组播信息,第一终端是在第二UP设备上上线的终端。第一UP设备接收迁移指令,该迁移指令用于指示将第一终端迁移至第一UP设备上。第一UP设备基于该组播信息和该迁移指令,向第一终端转发组播业务。In the second aspect, this application provides a method for sending multicast services, which method is applied to the first user plane UP device in the virtual broadband access gateway vBNG system. The vBNG system also includes a second UP device. In the above method, the first UP device receives the multicast information corresponding to the first terminal sent by the second UP device, and the first terminal is a terminal online on the second UP device. The first UP device receives a migration instruction, which is used to instruct the first terminal to migrate to the first UP device. The first UP device forwards the multicast service to the first terminal based on the multicast information and the migration instruction.
由于第一UP设备接收第二UP设备发送的第一终端对应的组播信息,这样在第一UP设备接收用于指示迁移第一终端的迁移指令时,第一UP设备基于该迁移指令和该组播信息向第一终端转发组播业务,即终端上线的UP设备主动将终端对应的组播信息发送给其他UP设备,从而在该UP设备故障时,其他UP设备能够自动恢复组播业务,保证能够正常向第一终端转发组播业务。Since the first UP device receives the multicast information corresponding to the first terminal sent by the second UP device, when the first UP device receives the migration instruction for instructing to migrate the first terminal, the first UP device based on the migration instruction and the The multicast information forwards the multicast service to the first terminal, that is, the UP device on which the terminal is online actively sends the multicast information corresponding to the terminal to other UP devices, so that when the UP device fails, other UP devices can automatically restore multicast services. It is ensured that the multicast service can be forwarded to the first terminal normally.
在一种可能的实现方式中,第一UP设备基于迁移指令,获取第一用户表项信息,第一用户表项信息用于传输第一终端的业务。这样第一UP设备基于该组播信息向第一终端转发的组播业务是第一终端已请求的业务,保证恢复第一终端已请求的组播业务。In a possible implementation manner, the first UP device acquires first user entry information based on the migration instruction, and the first user entry information is used to transmit services of the first terminal. In this way, the multicast service forwarded by the first UP device to the first terminal based on the multicast information is the service requested by the first terminal, ensuring that the multicast service requested by the first terminal is restored.
在另一种可能的实现方式中,该迁移指令包括:第二UP设备的设备标识、第一接口的接口标识、或者,第一接口的虚拟媒体接入控制层MAC地址,第一接口是第一终端在第二UP设备上上线的接口。这样第一UP设备基于第二UP设备的设备标识、第一接口的接口标识、或者,第一接口的虚拟MAC地址,能够获取到第一用户表项信息,如此CP设备需要迁 移第二UP设备上的终端时,不需要获取用户表项信息,而是直接向第一UP设备发送迁移指令,由于该迁移指令不包括用户表项信息,能够快速发送该迁移指令以及减少对网络资源的占用。In another possible implementation, the migration instruction includes: the device identification of the second UP device, the interface identification of the first interface, or the virtual media access control layer MAC address of the first interface, and the first interface is the first interface. The interface through which a terminal goes online on the second UP device. In this way, the first UP device can obtain the first user entry information based on the device identifier of the second UP device, the interface identifier of the first interface, or the virtual MAC address of the first interface. In this case, the CP device needs to be migrated. When moving the terminal on the second UP device, there is no need to obtain the user entry information. Instead, the migration instruction is directly sent to the first UP device. Since the migration instruction does not include the user entry information, the migration instruction can be sent quickly and the number of requests to the first UP device is reduced. Usage of network resources.
在另一种可能的实现方式中,该迁移指令包括第一用户表项信息,第一用户表项信息用于传输第一终端的业务。由于迁移指令包括第一用户表项信息,便于第一UP设备得到第一用户表项信息,简化算法实现复杂度。In another possible implementation manner, the migration instruction includes first user entry information, and the first user entry information is used to transmit services of the first terminal. Since the migration instruction includes the first user entry information, it is convenient for the first UP device to obtain the first user entry information and the algorithm implementation complexity is simplified.
在另一种可能的实现方式中,第一UP设备向第二UP设备发送第二终端对应的组播信息,第二终端是在第一UP设备上上线的终端。这样在将第二终端迁移到第二UP设备上,便于第二UP设备基于该组播信息,向第二终端发送组播业务,恢复第二终端的组播业务。In another possible implementation manner, the first UP device sends multicast information corresponding to the second terminal to the second UP device, and the second terminal is a terminal that is online on the first UP device. In this way, when the second terminal is migrated to the second UP device, it is convenient for the second UP device to send the multicast service to the second terminal based on the multicast information and restore the multicast service of the second terminal.
在另一种可能的实现方式中,第一UP设备和第二UP设备位于同一供电组,或者,第一UP设备和第二UP设备位于不同的供电组,供电组包括多个UP设备。In another possible implementation, the first UP device and the second UP device are located in the same power supply group, or the first UP device and the second UP device are located in different power supply groups, and the power supply group includes multiple UP devices.
其中,对于第一UP设备和第二UP设备位于不同的供电组的情况,在第二UP设备所在的供电组断电时,由于第一UP设备和第二UP设备属于不同供电组,第一UP设备所在供电组没有断电情况发生,这样将第一终端迁移到第一UP设备,保证能够从第一UP设备上上线。Among them, for the situation where the first UP device and the second UP device are in different power supply groups, when the power supply group where the second UP device is located is powered off, since the first UP device and the second UP device belong to different power supply groups, the first UP device and the second UP device belong to different power supply groups. There is no power outage in the power supply group where the UP device is located. In this way, the first terminal is migrated to the first UP device to ensure that it can go online from the first UP device.
在另一种可能的实现方式中,第二UP设备包括第一接口,第一接口是第一终端上线的接口,第一UP设备包括第二接口,第二接口是在第一终端迁移至第一UP设备后第一终端上线的接口,第一接口和第二接口是同一温备份组中的两个接口。In another possible implementation, the second UP device includes a first interface. The first interface is an interface through which the first terminal goes online. The first UP device includes a second interface. The second interface is used when the first terminal migrates to the first terminal. After an UP device, the first terminal comes online. The first interface and the second interface are two interfaces in the same warm backup group.
在另一种可能的实现方式中,在温备份组中第二接口是第一接口针对第一虚拟MAC地址的备份接口,第一虚拟MAC地址是第一接口的地址且第一虚拟MAC地址与第一终端相对应。这样将第一虚拟MAC地址与第二接口精确绑定,使得温备份组中的备份关系可控,便于实现转发侧行为的平滑切换。In another possible implementation, in the warm backup group, the second interface is the backup interface of the first interface for the first virtual MAC address, the first virtual MAC address is the address of the first interface, and the first virtual MAC address is the same as the first virtual MAC address. Corresponds to the first terminal. In this way, the first virtual MAC address is accurately bound to the second interface, making the backup relationship in the warm backup group controllable and facilitating smooth switching of the forwarding side behavior.
在另一种可能的实现方式中,组播信息是第一组播源对应的组播信息,第一组播源对应的组播组是第一终端加入的组播组。这样第一UP设备基于该组播信息向第一终端转发的组播业务是第一终端已请求的业务,保证恢复第一终端已请求的组播业务。In another possible implementation manner, the multicast information is multicast information corresponding to the first multicast source, and the multicast group corresponding to the first multicast source is a multicast group joined by the first terminal. In this way, the multicast service forwarded by the first UP device to the first terminal based on the multicast information is the service requested by the first terminal, ensuring that the multicast service requested by the first terminal is restored.
在另一种可能的实现方式中,第一组播源的组播信息包括第一组播源的组播地址。In another possible implementation manner, the multicast information of the first multicast source includes the multicast address of the first multicast source.
第三方面,本申请提供了一种发送组播业务的方法,所述方法应用于虚拟宽带接入网关vBNG系统,该vBNG系统包括CP设备、第一用户面UP设备和第二UP设备,在所述方法中,第二UP设备向第一UP设备发送第一终端对应的组播信息,第一终端是在第二UP设备上上线的终端。基于第二UP设备故障,CP设备向第一UP设备发送迁移指令,该迁移指令用于指示将第一终端迁移至第一UP设备上。第一UP设备基于该组播信息和该迁移指令,向第一终端转发组播业务。In the third aspect, this application provides a method for sending multicast services. The method is applied to a virtual broadband access gateway vBNG system. The vBNG system includes a CP device, a first user plane UP device and a second UP device. In the method, the second UP device sends multicast information corresponding to the first terminal to the first UP device, and the first terminal is a terminal that is online on the second UP device. Based on the failure of the second UP device, the CP device sends a migration instruction to the first UP device, where the migration instruction is used to instruct the first terminal to migrate to the first UP device. The first UP device forwards the multicast service to the first terminal based on the multicast information and the migration instruction.
由于第二UP设备向第一UP设备发送的第一终端对应的组播信息,这样在第一UP设备接收到CP设备发送的用于指示迁移第一终端的迁移指令时,第一UP设备基于该迁移指令和该组播信息向第一终端转发组播业务,即终端上线的UP设备主动将终端对应的组播信息发送给其他UP设备,从而在该UP设备故障时,其他UP设备能够自动恢复组播业务,保证能够正常向第一终端转发组播业务。Since the second UP device sends the multicast information corresponding to the first terminal to the first UP device, when the first UP device receives the migration instruction sent by the CP device to instruct the migration of the first terminal, the first UP device based on The migration instruction and the multicast information forward the multicast service to the first terminal, that is, the UP device on which the terminal is online actively sends the multicast information corresponding to the terminal to other UP devices, so that when the UP device fails, other UP devices can automatically Restore the multicast service to ensure that the multicast service can be forwarded to the first terminal normally.
在一种可能的实现方式中,第二UP设备向第三UP设备发送第一终端对应的组播信息。这样在将第一终端迁移到第三UP设备上,便于第三UP设备基于该组播信息,向第一终端发送组播业务,恢复第一终端的组播业务。 In a possible implementation manner, the second UP device sends the multicast information corresponding to the first terminal to the third UP device. In this way, when the first terminal is migrated to the third UP device, it is convenient for the third UP device to send the multicast service to the first terminal based on the multicast information and restore the multicast service of the first terminal.
在另一种可能的实现方式中,述第一UP设备、第二UP设备和第三UP设备是同一温备份组中的设备。In another possible implementation, the first UP device, the second UP device and the third UP device are devices in the same warm backup group.
在另一种可能的实现方式中,该组播信息是第一组播源对应的组播信息,第一组播源对应的组播组是第一终端加入的组播组。这样第一UP设备基于该组播信息向第一终端转发的组播业务是第一终端已请求的业务,保证恢复第一终端已请求的组播业务。In another possible implementation manner, the multicast information is multicast information corresponding to the first multicast source, and the multicast group corresponding to the first multicast source is a multicast group joined by the first terminal. In this way, the multicast service forwarded by the first UP device to the first terminal based on the multicast information is the service requested by the first terminal, ensuring that the multicast service requested by the first terminal is restored.
在另一种可能的实现方式中,第一组播源的组播信息包括第一组播源的组播地址。In another possible implementation manner, the multicast information of the first multicast source includes the multicast address of the first multicast source.
第四方面,本申请提供了一种发送组播业务的装置,所述装置应用于虚拟宽带接入网关vBNG系统中,所述vBNG系统包括所述装置和第二用户面UP设备,所述装置包括:接收单元和发送单元。In the fourth aspect, this application provides a device for sending multicast services. The device is applied in a virtual broadband access gateway vBNG system. The vBNG system includes the device and a second user plane UP device. The device Including: receiving unit and sending unit.
其中,接收单元,用于接收迁移指令,该迁移指令用于指示将第一终端迁移至所述装置上,第一终端是在第二UP设备上上线的终端。发送单元,用于基于该迁移指令向第一终端发送查询请求。接收单元,还用于接收第一终端基于该查询请求发送的查询响应,该查询响应包括第一终端对应的组播信息。发送单元,还用于基于该组播信息,向所述第一终端转发组播业务。Wherein, the receiving unit is configured to receive a migration instruction, where the migration instruction is used to instruct the first terminal to migrate to the device, and the first terminal is a terminal online on the second UP device. A sending unit, configured to send a query request to the first terminal based on the migration instruction. The receiving unit is also configured to receive a query response sent by the first terminal based on the query request, where the query response includes multicast information corresponding to the first terminal. The sending unit is also configured to forward the multicast service to the first terminal based on the multicast information.
由于接收单元接收用于指示迁移第一终端的迁移指令时,发送单元基于该迁移指令向第一终端发送查询请求,接收单元接收第一终端基于该查询请求发送的查询响应,该查询响应包括第一终端对应的组播信息。也就是说,发送单元基于迁移指令主动通过该查询请求查询第一终端加入的组播组对应的组播信息,在查询到组播信息,发送单元基于该组播信息向第一终端转发组播业务,从而自动恢复组播业务,保证能够正常向第一终端转发组播业务。When the receiving unit receives the migration instruction for instructing to migrate the first terminal, the sending unit sends a query request to the first terminal based on the migration instruction, and the receiving unit receives a query response sent by the first terminal based on the query request, where the query response includes the first Multicast information corresponding to a terminal. That is to say, the sending unit actively queries the multicast information corresponding to the multicast group joined by the first terminal through the query request based on the migration instruction. After querying the multicast information, the sending unit forwards the multicast to the first terminal based on the multicast information. service, thereby automatically restoring the multicast service and ensuring that the multicast service can be forwarded to the first terminal normally.
在一种可能的实现方式中,该组播信息是第一组播源对应的组播信息,第一组播源对应的组播组是第一终端加入的组播组。由于第一组播源对应的组播组是第一终端加入的组播组,所以发送单元基于该组播信息向第一终端转发的组播业务是第一终端已请求的业务,保证自动恢复第一终端已请求的组播业务。In a possible implementation manner, the multicast information is multicast information corresponding to the first multicast source, and the multicast group corresponding to the first multicast source is a multicast group joined by the first terminal. Since the multicast group corresponding to the first multicast source is a multicast group joined by the first terminal, the multicast service forwarded by the sending unit to the first terminal based on the multicast information is the service requested by the first terminal, ensuring automatic recovery. The multicast service requested by the first terminal.
在另一种可能的实现方式中,该组播信息包括第一组播源的组播地址。In another possible implementation manner, the multicast information includes the multicast address of the first multicast source.
在另一种可能的实现方式中,所述装置还包括:处理单元。处理单元,用于基于该迁移指令,获取第一用户表项信息,第一用户表项信息用于传输第一终端的业务。由于处理单元获取到第一用户表项信息,这样发送单元基于第一用户表项信息,保证能够成功向第一终端转发组播业务。In another possible implementation, the device further includes: a processing unit. The processing unit is configured to obtain first user entry information based on the migration instruction, and the first user entry information is used to transmit services of the first terminal. Since the processing unit obtains the first user entry information, the sending unit ensures that the multicast service can be successfully forwarded to the first terminal based on the first user entry information.
在另一种可能的实现方式中,该迁移指令包括:第二UP设备的设备标识、第一接口的接口标识、或者,第一接口的虚拟媒体接入控制层MAC地址,第一接口是第一终端在第二UP设备上上线的接口。这样处理单元基于第二UP设备的设备标识、第一接口的接口标识、或者,第一接口的虚拟MAC地址,能够获取到第一用户表项信息,如此CP设备需要迁移第二UP设备上的终端时,不需要获取用户表项信息,而是直接向所述装置发送迁移指令,由于该迁移指令不包括用户表项信息,能够快速发送该迁移指令以及减少对网络资源的占用。In another possible implementation, the migration instruction includes: the device identification of the second UP device, the interface identification of the first interface, or the virtual media access control layer MAC address of the first interface, and the first interface is the first interface. The interface through which a terminal goes online on the second UP device. In this way, the processing unit can obtain the first user entry information based on the device identification of the second UP device, the interface identification of the first interface, or the virtual MAC address of the first interface. In this case, the CP device needs to migrate the first user entry information on the second UP device. When the terminal is connected, there is no need to obtain user entry information, but directly sends a migration instruction to the device. Since the migration instruction does not include user entry information, the migration instruction can be sent quickly and the occupation of network resources can be reduced.
在另一种可能的实现方式中,该迁移指令包括第一用户表项信息,第一用户表项信息用于传输第一终端的业务。由于迁移指令包括第一用户表项信息,便于所述装置得到第一用户表项信息,简化算法实现复杂度。In another possible implementation manner, the migration instruction includes first user entry information, and the first user entry information is used to transmit services of the first terminal. Since the migration instruction includes the first user entry information, it is convenient for the device to obtain the first user entry information and the algorithm implementation complexity is simplified.
在另一种可能的实现方式中,接收单元,用于接收CP设备发送的迁移指令。 In another possible implementation, the receiving unit is configured to receive a migration instruction sent by the CP device.
在另一种可能的实现方式中,查询请求和查询响应均是基于因特网组管理协议IGMP封装的报文,或者,查询请求和查询响应均是基于组播监听者发现协议MLD封装的报文。In another possible implementation manner, both the query request and the query response are messages encapsulated based on the Internet Group Management Protocol IGMP, or both the query request and the query response are messages encapsulated based on the Multicast Listener Discovery Protocol MLD.
在另一种可能的实现方式中,所述装置和第二UP设备位于同一供电组,或者,所述装置和第二UP设备位于不同的供电组,供电组包括多个UP设备。In another possible implementation, the device and the second UP device are located in the same power supply group, or the device and the second UP device are located in different power supply groups, and the power supply group includes multiple UP devices.
其中,对于所述装置和第二UP设备位于不同的供电组的情况,在第二UP设备所在的供电组断电时,由于所述装置和第二UP设备属于不同供电组,所述装置所在供电组没有断电情况发生,这样将第一终端迁移到所述装置,保证第一终端能够从所述装置上上线。Wherein, for the situation where the device and the second UP device are located in different power supply groups, when the power supply group where the second UP device is located is powered off, since the device and the second UP device belong to different power supply groups, the device is located in a different power supply group. There is no power outage in the power supply group. In this way, the first terminal is migrated to the device to ensure that the first terminal can go online from the device.
第五方面,本申请提供了一种发送组播业务的装置,所述装置应用于虚拟宽带接入网关vBNG系统中,所述vBNG系统包括所述装置和第二用户面UP设备,所述装置包括:接收单元和发送单元。In the fifth aspect, this application provides a device for sending multicast services. The device is applied in a virtual broadband access gateway vBNG system. The vBNG system includes the device and a second user plane UP device. The device Including: receiving unit and sending unit.
其中,接收单元,用于接收第二UP设备发送的第一终端对应的组播信息,第一终端是在第二UP设备上上线的终端。接收单元,还用于接收迁移指令,该迁移指令用于指示将第一终端迁移至所述装置上。发送单元,用于基于该组播信息和该迁移指令,向第一终端转发组播业务。The receiving unit is configured to receive multicast information corresponding to the first terminal sent by the second UP device, and the first terminal is a terminal online on the second UP device. The receiving unit is also configured to receive a migration instruction, where the migration instruction is used to instruct the first terminal to migrate to the device. The sending unit is configured to forward the multicast service to the first terminal based on the multicast information and the migration instruction.
由于接收单元接收第二UP设备发送的第一终端对应的组播信息,这样在接收单元接收用于指示迁移第一终端的迁移指令时,发送单元基于该迁移指令和该组播信息向第一终端转发组播业务,即终端上线的UP设备主动将终端对应的组播信息发送给其他UP设备,从而在该UP设备故障时,其他UP设备能够自动恢复组播业务,保证能够正常向第一终端转发组播业务。Since the receiving unit receives the multicast information corresponding to the first terminal sent by the second UP device, when the receiving unit receives the relocation instruction for instructing to migrate the first terminal, the sending unit sends a message to the first terminal based on the relocation instruction and the multicast information. The terminal forwards the multicast service, that is, the UP device on which the terminal is online actively sends the multicast information corresponding to the terminal to other UP devices, so that when the UP device fails, the other UP devices can automatically restore the multicast service, ensuring that the first UP device can normally forward the multicast service to the first UP device. The terminal forwards multicast services.
在一种可能的实现方式中,所述装置还包括:处理单元。处理单元,用于基于该迁移指令,获取第一用户表项信息,第一用户表项信息用于传输第一终端的业务。这样发送单元基于该组播信息向第一终端转发的组播业务是第一终端已请求的业务,保证恢复第一终端已请求的组播业务。In a possible implementation, the device further includes: a processing unit. The processing unit is configured to obtain first user entry information based on the migration instruction, and the first user entry information is used to transmit services of the first terminal. In this way, the multicast service forwarded by the sending unit to the first terminal based on the multicast information is the service requested by the first terminal, ensuring that the multicast service requested by the first terminal is restored.
在另一种可能的实现方式中,该迁移指令包括:第二UP设备的设备标识、第一接口的接口标识、或者,第一接口的虚拟媒体接入控制层MAC地址,第一接口是第一终端在第二UP设备上上线的接口。这样处理单元基于第二UP设备的设备标识、第一接口的接口标识、或者,第一接口的虚拟MAC地址,能够获取到第一用户表项信息,如此CP设备需要迁移第二UP设备上的终端时,不需要获取用户表项信息,而是直接向所述装置发送迁移指令,由于该迁移指令不包括用户表项信息,能够快速发送该迁移指令以及减少对网络资源的占用。In another possible implementation, the migration instruction includes: the device identification of the second UP device, the interface identification of the first interface, or the virtual media access control layer MAC address of the first interface, and the first interface is the first interface. The interface through which a terminal goes online on the second UP device. In this way, the processing unit can obtain the first user entry information based on the device identification of the second UP device, the interface identification of the first interface, or the virtual MAC address of the first interface. In this case, the CP device needs to migrate the first user entry information on the second UP device. When the terminal is connected, there is no need to obtain user entry information, but directly sends a migration instruction to the device. Since the migration instruction does not include user entry information, the migration instruction can be sent quickly and the occupation of network resources can be reduced.
在另一种可能的实现方式中,该迁移指令包括第一用户表项信息,第一用户表项信息用于传输第一终端的业务。由于迁移指令包括第一用户表项信息,便于所述装置得到第一用户表项信息,简化算法实现复杂度。In another possible implementation manner, the migration instruction includes first user entry information, and the first user entry information is used to transmit services of the first terminal. Since the migration instruction includes the first user entry information, it is convenient for the device to obtain the first user entry information and the algorithm implementation complexity is simplified.
在另一种可能的实现方式中,发送单元,还用于向第二UP设备发送第二终端对应的组播信息,第二终端是在所述装置上上线的终端。这样在将第二终端迁移到第二UP设备上,便于第二UP设备基于该组播信息,向第二终端发送组播业务,恢复第二终端的组播业务。In another possible implementation manner, the sending unit is also configured to send the multicast information corresponding to the second terminal to the second UP device, and the second terminal is a terminal that is online on the device. In this way, when the second terminal is migrated to the second UP device, it is convenient for the second UP device to send the multicast service to the second terminal based on the multicast information and restore the multicast service of the second terminal.
在另一种可能的实现方式中,所述装置和第二UP设备位于同一供电组,或者,所述装置和第二UP设备位于不同的供电组,供电组包括多个UP设备。In another possible implementation, the device and the second UP device are located in the same power supply group, or the device and the second UP device are located in different power supply groups, and the power supply group includes multiple UP devices.
其中,对于所述装置和第二UP设备位于不同的供电组的情况,在第二UP设备所在的供 电组断电时,由于所述装置和第二UP设备属于不同供电组,所述装置所在供电组没有断电情况发生,这样将第一终端迁移到所述装置,保证能够从所述装置上上线。Wherein, for the situation where the device and the second UP device are located in different power supply groups, the power supply group where the second UP device is located When the power supply group is powered off, since the device and the second UP device belong to different power supply groups, no power outage occurs in the power supply group where the device is located. In this way, the first terminal is moved to the device to ensure that the device can be accessed from the device. online.
在另一种可能的实现方式中,第二UP设备包括第一接口,第一接口是第一终端上线的接口,所述装置包括第二接口,第二接口是在第一终端迁移至所述装置后第一终端上线的接口,第一接口和第二接口是同一温备份组中的两个接口。In another possible implementation, the second UP device includes a first interface, the first interface is an interface through which the first terminal goes online, the device includes a second interface, and the second interface is used when the first terminal migrates to the After the installation, the first terminal comes online. The first interface and the second interface are two interfaces in the same warm backup group.
在另一种可能的实现方式中,在温备份组中第二接口是第一接口针对第一虚拟MAC地址的备份接口,第一虚拟MAC地址是第一接口的地址且第一虚拟MAC地址与第一终端相对应。这样将第一虚拟MAC地址与第二接口精确绑定,使得温备份组中的备份关系可控,便于实现转发侧行为的平滑切换。In another possible implementation, in the warm backup group, the second interface is the backup interface of the first interface for the first virtual MAC address, the first virtual MAC address is the address of the first interface, and the first virtual MAC address is the same as the first virtual MAC address. Corresponds to the first terminal. In this way, the first virtual MAC address is accurately bound to the second interface, making the backup relationship in the warm backup group controllable and facilitating smooth switching of the forwarding side behavior.
在另一种可能的实现方式中,组播信息是第一组播源对应的组播信息,第一组播源对应的组播组是第一终端加入的组播组。这样发送单元基于该组播信息向第一终端转发的组播业务是第一终端已请求的业务,保证恢复第一终端已请求的组播业务。In another possible implementation manner, the multicast information is multicast information corresponding to the first multicast source, and the multicast group corresponding to the first multicast source is a multicast group joined by the first terminal. In this way, the multicast service forwarded by the sending unit to the first terminal based on the multicast information is the service requested by the first terminal, ensuring that the multicast service requested by the first terminal is restored.
在另一种可能的实现方式中,第一组播源的组播信息包括第一组播源的组播地址。In another possible implementation manner, the multicast information of the first multicast source includes the multicast address of the first multicast source.
第六方面,本申请提供了一种发送组播业务的装置,所述装置包括处理器和存储器。其中,所述处理器以及所述存储器之间可以通过内部连接相连。所述存储器用于存储程序,所述处理器用于执行所述存储器中的程序,使得所述装置完成第一方面或第一方面的任意可能的实现方式中的方法。In a sixth aspect, this application provides a device for sending multicast services, where the device includes a processor and a memory. The processor and the memory may be connected through internal connections. The memory is used to store programs, and the processor is used to execute the programs in the memory, so that the device completes the method in the first aspect or any possible implementation of the first aspect.
第七方面,本申请提供了一种发送组播业务的装置,所述装置包括处理器和存储器。其中,所述处理器以及所述存储器之间可以通过内部连接相连。所述存储器用于存储程序,所述处理器用于执行所述存储器中的程序,使得所述装置完成第二方面或第二方面的任意可能的实现方式中的方法。In a seventh aspect, this application provides a device for sending multicast services, where the device includes a processor and a memory. The processor and the memory may be connected through internal connections. The memory is used to store programs, and the processor is used to execute the programs in the memory, so that the device completes the method in the second aspect or any possible implementation of the second aspect.
第八方面,本申请提供了一种发送组播业务的装置,所述装置应用于虚拟宽带接入网关vBNG系统中,所述vBNG系统包括所述装置和第二UP设备,所述装置包括:主控板和接口板。主控板包括:第一处理器和第一存储器。接口板包括:第二处理器、第二存储器和接口卡。主控板和接口板耦合。In an eighth aspect, this application provides a device for sending multicast services. The device is applied in a virtual broadband access gateway vBNG system. The vBNG system includes the device and a second UP device. The device includes: Main control board and interface board. The main control board includes: a first processor and a first memory. The interface board includes: a second processor, a second memory and an interface card. The main control board and the interface board are coupled.
第一存储器可以用于存储程序代码,第一处理器用于调用第一存储器中的程序代码执行如下操作:接收迁移指令,所述迁移指令用于指示将第一终端迁移至所述装置上,所述第一终端是在所述第二UP设备上上线的终端基于所述迁移指令向所述第一终端发送查询请求;接收所述第一终端基于所述查询请求发送的查询响应,所述查询响应包括所述第一终端对应的组播信息。The first memory may be used to store the program code, and the first processor is used to call the program code in the first memory to perform the following operations: receiving a migration instruction, where the migration instruction is used to instruct the first terminal to be migrated to the device, so The first terminal is a terminal that is online on the second UP device and sends a query request to the first terminal based on the migration instruction; receives a query response sent by the first terminal based on the query request, and the query The response includes multicast information corresponding to the first terminal.
第二存储器可以用于存储程序代码,第二处理器用于调用第二存储器中的程序代码,触发接口卡执行如下操作:基于该组播信息,向第一终端转发组播业务。The second memory may be used to store the program code, and the second processor is used to call the program code in the second memory to trigger the interface card to perform the following operations: forward the multicast service to the first terminal based on the multicast information.
在一种可能的实现方式中,主控板和接口板之间建立进程间通信协议(inter-process communication,IPC)通道,主控板和接口板之间通过IPC通道进行通信。In a possible implementation, an inter-process communication protocol (IPC) channel is established between the main control board and the interface board, and the main control board and the interface board communicate through the IPC channel.
第九方面,本申请提供了一种发送组播业务的装置,所述装置应用于虚拟宽带接入网关vBNG系统中,所述vBNG系统包括所述装置和第二UP设备,所述装置包括:主控板和接口板。主控板包括:第一处理器和第一存储器。接口板包括:第二处理器、第二存储器和接口卡。主控板和接口板耦合。 In a ninth aspect, this application provides a device for sending multicast services. The device is applied in a virtual broadband access gateway vBNG system. The vBNG system includes the device and a second UP device. The device includes: Main control board and interface board. The main control board includes: a first processor and a first memory. The interface board includes: a second processor, a second memory and an interface card. The main control board and the interface board are coupled.
第一存储器可以用于存储程序代码,第一处理器用于调用第一存储器中的程序代码执行如下操作:接收所述第二UP设备发送的第一终端对应的组播信息,所述第一终端是在所述第二UP设备上上线的终端;接收迁移指令,所述迁移指令用于指示将所述第一终端迁移至所述装置上。The first memory may be used to store the program code, and the first processor is used to call the program code in the first memory to perform the following operations: receive the multicast information corresponding to the first terminal sent by the second UP device, and the first terminal It is a terminal that is online on the second UP device; and receives a migration instruction, where the migration instruction is used to instruct the first terminal to migrate to the device.
第二存储器可以用于存储程序代码,第二处理器用于调用第二存储器中的程序代码,触发接口卡执行如下操作:基于所述组播信息和所述迁移指令,向所述第一终端转发组播业务。The second memory may be used to store the program code, and the second processor is used to call the program code in the second memory to trigger the interface card to perform the following operations: forward to the first terminal based on the multicast information and the migration instruction. Multicast service.
在一种可能的实现方式中,主控板和接口板之间建立进程间通信协议(inter-process communication,IPC)通道,主控板和接口板之间通过IPC通道进行通信。In a possible implementation, an inter-process communication protocol (IPC) channel is established between the main control board and the interface board, and the main control board and the interface board communicate through the IPC channel.
第十方面,本申请提供了一种计算机程序产品,所述计算机程序产品包括在计算机可读存储介质中存储的计算机程序,并且所述计算程序通过处理器进行加载来实现上述第一方面、第二方面、第一方面任意可能的实现方式或第二方面任意可能的实现方式的方法。In a tenth aspect, the present application provides a computer program product. The computer program product includes a computer program stored in a computer-readable storage medium, and the computing program is loaded by a processor to implement the first aspect and the third aspect. Two aspects, any possible implementation method of the first aspect or any possible implementation method of the second aspect.
第十一方面,本申请提供了一种计算机可读存储介质,用于存储计算机程序,所述计算机程序通过处理器进行加载来执行上述第一方面、第二方面、第一方面任意可能的实现方式或第二方面任意可能的实现方式的方法。In an eleventh aspect, the present application provides a computer-readable storage medium for storing a computer program, which is loaded by a processor to execute any possible implementation of the first aspect, the second aspect, and the first aspect. method or any possible method of implementing the second aspect.
第十二方面,本申请提供了一种芯片,包括存储器和处理器,存储器用于存储计算机指令,处理器用于从存储器中调用并运行该计算机指令,以执行上述第一方面、第二方面、第一方面任意可能的实现方式或第二方面任意可能的实现方式的方法。In a twelfth aspect, the present application provides a chip, including a memory and a processor. The memory is used to store computer instructions, and the processor is used to call and run the computer instructions from the memory to execute the above-mentioned first aspect, second aspect, Any possible implementation of the first aspect or any possible implementation of the second aspect.
第十三方面,本申请提供了本申请提供了一种虚拟宽带接入网关vBNG系统,该vBNG系统包括CP设备、第一用户面UP设备和第二UP设备,在所述系统中,第二UP设备向第一UP设备发送第一终端对应的组播信息,第一终端是在第二UP设备上上线的终端。基于第二UP设备故障,CP设备向第一UP设备发送迁移指令,该迁移指令用于指示将第一终端迁移至第一UP设备上。第一UP设备基于该组播信息和该迁移指令,向第一终端转发组播业务。In a thirteenth aspect, this application provides a virtual broadband access gateway vBNG system. The vBNG system includes a CP device, a first user plane UP device and a second UP device. In the system, the second The UP device sends the multicast information corresponding to the first terminal to the first UP device. The first terminal is a terminal that is online on the second UP device. Based on the failure of the second UP device, the CP device sends a migration instruction to the first UP device, where the migration instruction is used to instruct the first terminal to migrate to the first UP device. The first UP device forwards the multicast service to the first terminal based on the multicast information and the migration instruction.
由于第二UP设备向第一UP设备发送的第一终端对应的组播信息,这样在第一UP设备接收到CP设备发送的用于指示迁移第一终端的迁移指令时,第一UP设备基于该迁移指令和该组播信息向第一终端转发组播业务,从而自动恢复组播业务,保证能够正常向第一终端转发组播业务。Since the second UP device sends the multicast information corresponding to the first terminal to the first UP device, when the first UP device receives the migration instruction sent by the CP device to instruct the migration of the first terminal, the first UP device based on The migration instruction and the multicast information forward the multicast service to the first terminal, thereby automatically restoring the multicast service and ensuring that the multicast service can be forwarded to the first terminal normally.
在一种可能的实现方式中,第二UP设备向第三UP设备发送第一终端对应的组播信息。这样在将第一终端迁移到第三UP设备上,便于第三UP设备基于该组播信息,向第一终端发送组播业务,恢复第一终端的组播业务。In a possible implementation manner, the second UP device sends the multicast information corresponding to the first terminal to the third UP device. In this way, when the first terminal is migrated to the third UP device, it is convenient for the third UP device to send the multicast service to the first terminal based on the multicast information and restore the multicast service of the first terminal.
在另一种可能的实现方式中,述第一UP设备、第二UP设备和第三UP设备是同一温备份组中的设备。In another possible implementation, the first UP device, the second UP device and the third UP device are devices in the same warm backup group.
在另一种可能的实现方式中,该组播信息是第一组播源对应的组播信息,第一组播源对应的组播组是第一终端加入的组播组。这样第一UP设备基于该组播信息向第一终端转发的组播业务是第一终端已请求的业务,保证恢复第一终端已请求的组播业务。In another possible implementation manner, the multicast information is multicast information corresponding to the first multicast source, and the multicast group corresponding to the first multicast source is a multicast group joined by the first terminal. In this way, the multicast service forwarded by the first UP device to the first terminal based on the multicast information is the service requested by the first terminal, ensuring that the multicast service requested by the first terminal is restored.
在另一种可能的实现方式中,第一组播源的组播信息包括第一组播源的组播地址。In another possible implementation manner, the multicast information of the first multicast source includes the multicast address of the first multicast source.
附图说明Description of the drawings
图1是本申请实施例提供的一种vBNG系统的结构示意图;Figure 1 is a schematic structural diagram of a vBNG system provided by an embodiment of the present application;
图2是本申请实施例提供的另一种vBNG系统的结构示意图; Figure 2 is a schematic structural diagram of another vBNG system provided by an embodiment of the present application;
图3是本申请实施例提供的一种终端上线的方法流程图;Figure 3 is a flow chart of a terminal online method provided by an embodiment of the present application;
图4是本申请实施例提供的一种发送组播业务的方法流程图;Figure 4 is a flow chart of a method for sending multicast services provided by an embodiment of the present application;
图5是本申请实施例提供的一种迁移终端的示意图;Figure 5 is a schematic diagram of a migration terminal provided by an embodiment of the present application;
图6是本申请实施例提供的另一种发送组播业务的方法流程图;Figure 6 is a flow chart of another method for sending multicast services provided by an embodiment of the present application;
图7是本申请实施例提供的一种发送组播业务的装置结构示意图;Figure 7 is a schematic structural diagram of a device for sending multicast services provided by an embodiment of the present application;
图8是本申请实施例提供的另一种发送组播业务的装置结构示意图;Figure 8 is a schematic structural diagram of another device for sending multicast services provided by an embodiment of the present application;
图9是本申请实施例提供的一种发送组播业务的系统结构示意图;Figure 9 is a schematic structural diagram of a system for sending multicast services provided by an embodiment of the present application;
图10是本申请实施例提供的另一种发送组播业务的装置结构示意图;Figure 10 is a schematic structural diagram of another device for sending multicast services provided by an embodiment of the present application;
图11是本申请实施例提供的另一种发送组播业务的装置结构示意图;Figure 11 is a schematic structural diagram of another device for sending multicast services provided by an embodiment of the present application;
图12是本申请实施例提供的一种发送组播业务的设备结构示意图;Figure 12 is a schematic structural diagram of a device for sending multicast services provided by an embodiment of the present application;
图13是本申请实施例提供的另一种发送组播业务的设备结构示意图。Figure 13 is a schematic structural diagram of another device for sending multicast services provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图对本申请实施方式作进一步地详细描述。The embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
宽带远程接入服务器(broadband remote access server,BRAS)是面向宽带网络应用的接入网关,也称为宽带网络网关(broadband network gateway,BNG)。虚拟BNG(virtual BNG,vBNG)是BRAS的一种实现形式,采用CP设备和UP设备分离(CU分离)的方式进行部署,因此也可以称为CU分离部署的BRAS。其中,多个UP设备分散部署,每个UP设备作为BNG(或者vBNG)的用户平面,用于基于CP设备下发的用户表项信息实现业务报文的转发,以及实现基于服务质量(quality of service,QoS)和访问控制列表(access control lists,ACL)等技术的流量策略。CP设备可以采用云化技术实现并集中部署,其作为BNG(或者vBNG)的控制平面,用于实现对终端(也可以称为用户)的控制与管理,以及对多个UP设备的统一管理。例如,CP设备主要负责终端的上线、下发配置和用户表项信息等。其中,UP设备也可以称为转发面设备,因此CU分离也可以称为转发和控制分离,即转控分离。采用该CU分离的方式进行部署的系统也称为CU分离的宽带网关接入系统,或者转控分离的宽带网关接入系统。Broadband remote access server (BRAS) is an access gateway for broadband network applications, also known as broadband network gateway (BNG). Virtual BNG (virtual BNG, vBNG) is an implementation form of BRAS. It is deployed by separating CP equipment and UP equipment (CU separation). Therefore, it can also be called BRAS with CU separation deployment. Among them, multiple UP devices are deployed in a distributed manner, and each UP device serves as the user plane of the BNG (or vBNG), which is used to forward service packets based on the user table entry information issued by the CP device, and to implement quality of service based on service, QoS) and access control lists (access control lists, ACL) and other technologies. CP devices can be implemented using cloud technology and deployed centrally. As the control plane of BNG (or vBNG), it is used to control and manage terminals (also called users) and to manage multiple UP devices in a unified manner. For example, the CP device is mainly responsible for terminal online, delivery of configuration and user table information, etc. Among them, the UP device can also be called a forwarding plane device, so CU separation can also be called forwarding and control separation, that is, forwarding and control separation. A system deployed using this CU separation method is also called a CU-separated broadband gateway access system, or a transfer-control-separated broadband gateway access system.
参见图1,本申请实施例提供的一种vBNG系统100的结构示意图。如图1所示,该vBNG系统100可以包括:至少一个CP设备101和多个UP设备102(如图1中的第一UP设备1021和第二UP设备1022)。Referring to Figure 1, a schematic structural diagram of a vBNG system 100 provided by an embodiment of the present application is shown. As shown in Figure 1, the vBNG system 100 may include: at least one CP device 101 and multiple UP devices 102 (the first UP device 1021 and the second UP device 1022 in Figure 1).
其中,至少一个是指一个或多个,多个是指两个或两个以上。图1以一个CP设备101为例进行示意。该CP设备101一般部署在运营商的数据中心(data center,DC)机房,也称为核心机房。各个UP设备102可以分散部署在不同的汇聚机房,也称为边缘机房。每个UP设备102均与CP设备101建立有通信连接,且每个UP设备102能够通过第一转发设备103(例如为二层广播域中的转发设备)与至少一个终端104建立通信连接,并进行数据交互。Among them, at least one refers to one or more, and multiple refers to two or more. Figure 1 takes a CP device 101 as an example for illustration. The CP device 101 is generally deployed in the operator's data center (DC) computer room, also known as the core computer room. Each UP device 102 can be deployed in different convergence computer rooms, also called edge computer rooms. Each UP device 102 has established a communication connection with the CP device 101, and each UP device 102 can establish a communication connection with at least one terminal 104 through the first forwarding device 103 (for example, a forwarding device in a layer 2 broadcast domain), and Perform data interaction.
对于每个UP设备102,该UP设备102与第二转发设备105建立通信连接,并与第二转发设备105进行数据交互。例如,对于终端104加入的组播组对应的组播源106,第二转发设备105可以向UP设备102转发组播源106组播的组播业务,UP设备102接收该组播业务并向终端104转发该组播业务。For each UP device 102 , the UP device 102 establishes a communication connection with the second forwarding device 105 and performs data exchange with the second forwarding device 105 . For example, for the multicast source 106 corresponding to the multicast group that the terminal 104 joins, the second forwarding device 105 can forward the multicast service multicast by the multicast source 106 to the UP device 102, and the UP device 102 receives the multicast service and forwards it to the terminal. 104 forwards the multicast service.
在一些实施例中,终端104也称为用户设备,其可以为家庭网关(residential gateway, RGW)、手机、笔记本电脑或者台式电脑等设备。终端104所连接的第一转发设备103也可以称为接入节点(access node,AN),其可以为交换机(switch,SW)、光线路终端(optical line terminal,OLT)或者数字用户线路接入复用器(digital subscriber line access multiplexer,DSLAM)等。In some embodiments, the terminal 104 is also called user equipment, which may be a residential gateway (residential gateway, RGW), mobile phones, laptops or desktop computers and other devices. The first forwarding device 103 connected to the terminal 104 may also be called an access node (AN), which may be a switch (SW), an optical line terminal (optical line terminal, OLT) or a digital subscriber line access Multiplexer (digital subscriber line access multiplexer, DSLAM), etc.
在一些实施例中,第一转发设备103不仅能够实现二层广播域的报文转发,还能够对终端104进行虚拟可扩展局域网(virtual extensible local area network,VXLAN)或QinQ的隔离。该QinQ(802.1Q-in-802.1Q)是一种扩展虚拟局域网(virtual local area network,VLAN)空间的技术,也称为堆叠(stacked)VLAN技术。In some embodiments, the first forwarding device 103 can not only implement packet forwarding in the Layer 2 broadcast domain, but can also isolate the terminal 104 on a virtual extensible local area network (VXLAN) or QinQ. The QinQ (802.1Q-in-802.1Q) is a technology that expands the virtual local area network (VLAN) space, also known as stacked VLAN technology.
在一些实施例中,对于与UP设备102通信的第二转发设备105,第二转发设备105相比UP设备102,更靠近组播源106。可选地,第二转发设备105为核心路由器(core router,CR)或叶子节点(leaf)等。In some embodiments, for the second forwarding device 105 communicating with the UP device 102, the second forwarding device 105 is closer to the multicast source 106 than the UP device 102. Optionally, the second forwarding device 105 is a core router (CR) or a leaf node (leaf), etc.
继续参考图1,该vBNG系统100还可以包括认证服务器107。该认证服务器107可以为RADIUS服务器。该认证服务器107支持验证、授权和计费(authentication authorization accounting,AAA)协议。如图1所示,该认证服务器107与CP设备101建立有通信连接。CP设备101在通过多个UP设备102中的目标UP设备完成与终端104的拨号协议报文(也可以称为接入协议报文)的交互后,向认证服务器107发送针对该终端104的认证请求。Continuing to refer to FIG. 1 , the vBNG system 100 may also include an authentication server 107 . The authentication server 107 can be a RADIUS server. The authentication server 107 supports the authentication, authorization and accounting (AAA) protocol. As shown in Figure 1, the authentication server 107 has established a communication connection with the CP device 101. After the CP device 101 completes the interaction of the dial-up protocol message (also called an access protocol message) with the terminal 104 through the target UP device among the multiple UP devices 102, it sends the authentication for the terminal 104 to the authentication server 107. ask.
认证服务器107对该终端104进行认证,并在对该终端104认证通过后,为该终端104分配地址,并向CP设备101发送携带该地址的认证响应。CP设备101接收到该认证响应后,可以向目标UP设备下发该终端101的用户表项信息。目标UP设备可以基于该用户表项信息,在本地生成该终端104的转发表项,进行相关的业务策略执行和流量转发,并向外发布该终端104的路由。终端104进而可以通过目标UP设备访问网络。也即是,终端104可以通过该目标UP设备接入网络,或者可以理解为,终端104可以从该目标UP设备上线。The authentication server 107 authenticates the terminal 104, and after the terminal 104 passes the authentication, allocates an address to the terminal 104, and sends an authentication response carrying the address to the CP device 101. After receiving the authentication response, the CP device 101 can deliver the user entry information of the terminal 101 to the target UP device. The target UP device can locally generate a forwarding entry for the terminal 104 based on the user entry information, perform relevant business policy execution and traffic forwarding, and publish the route for the terminal 104 to the outside. The terminal 104 can then access the network through the target UP device. That is to say, the terminal 104 can access the network through the target UP device, or it can be understood that the terminal 104 can go online from the target UP device.
在本申请实施例中,该CP设备101可以包括部署在物理服务器上的多个虚拟机(virtual machine,VM)。每个UP设备102可以为实体的物理UP(physic UP,pUP)设备,或者也可以为虚拟UP(virtual UP,vUP)设备,例如,UP设备102可以为部署在物理服务器上的VM。该CP设备101能够管理多个pUP设备和/或多个vUP设备。In this embodiment of the present application, the CP device 101 may include multiple virtual machines (VMs) deployed on a physical server. Each UP device 102 may be an entity physical UP (physic UP, pUP) device, or may be a virtual UP (virtual UP, vUP) device. For example, the UP device 102 may be a VM deployed on a physical server. The CP device 101 is capable of managing multiple pUP devices and/or multiple vUP devices.
该CP设备101和每个UP设备102之间可以通过业务接口、管理接口和控制接口连接。其中,该业务接口也称为控制报文重定向接口(control packet redirect interface,CPRi),其一般为VXLAN接口,例如可以是VXLAN通用协议扩展(VXLAN generic protocol extension,VXLAN-GPE)接口。UP设备102接收到终端104发送的报文(例如接入协议报文和业务报文等)后,可以通过该业务接口上送至CP设备101进行处理。The CP device 101 and each UP device 102 can be connected through a service interface, a management interface and a control interface. The service interface is also called a control packet redirect interface (CPRi), which is generally a VXLAN interface. For example, it can be a VXLAN generic protocol extension (VXLAN-GPE) interface. After receiving the packets (such as access protocol packets and service packets) sent by the terminal 104, the UP device 102 can send them to the CP device 101 for processing through the service interface.
该管理接口(management interface,Mi)一般为网络配置协议(network configuration,NETCONF)接口,CP设备101可以通过该管理接口向各个UP设备102下发配置,每个UP设备102可以通过该管理接口向CP设备101上报运行状态。The management interface (Mi) is generally a network configuration protocol (NETCONF) interface. The CP device 101 can deliver configurations to each UP device 102 through the management interface. Each UP device 102 can deliver configurations to each UP device 102 through the management interface. The CP device 101 reports the running status.
该控制接口也称为状态控制接口(state control interface,SCi),其一般为转控分离协议(control plane and user plane separated protocol,CUSP)接口。CP设备101处理完成终端104发送的接入协议报文并完成终端104的上线后,可以通过该控制接口向对应的UP设备102下发终端104对应的用户表项信息。终端104对应的用户表项信息也称为会话(session)表项,其一般包括终端104对应的用户信息、虚拟MAC地址、路由信息和服务质量(Quality of  Service,QoS)等信息。该用户信息包括终端104的地址和/或用户账号等信息,该虚拟MAC地址是UP设备102上的某个接口的地址,终端104从该接口上上线。The control interface is also called a state control interface (state control interface, SCi), which is generally a control plane and user plane separated protocol (CUSP) interface. After the CP device 101 processes the access protocol message sent by the terminal 104 and completes the online access of the terminal 104, it can deliver the user entry information corresponding to the terminal 104 to the corresponding UP device 102 through the control interface. The user entry information corresponding to the terminal 104 is also called a session entry, which generally includes the user information, virtual MAC address, routing information and quality of service (Quality of Service) corresponding to the terminal 104. Service, QoS) and other information. The user information includes information such as the address and/or user account of the terminal 104. The virtual MAC address is the address of a certain interface on the UP device 102, and the terminal 104 goes online from this interface.
在CU分离的宽带网关接入系统中,CP设备101所管理的各个UP设备102可以组成一个UP池。并且,为了提高宽带远程接入系统的可靠性,对于任一个UP设备102,可以为该UP设备102上的每个接口配置N+1温备份组。其中,N为大于或等于1的整数,N+1温备份组表示该接口对应N个备份接口,以及表示该接口对应N个备份UP设备,该N个备份接口与该N个备份UP设备一一对应,该N个备份接口分别位于该N个备份UP设备上。其中,N为大于或等于1的整数,该温备份组表示CP设备101可以将从该接口上上线的终端迁移到至少一个备份UP设备上的备份接口上,该N个备份UP设备包括该至少一个备份UP设备。In a CU-separated broadband gateway access system, each UP device 102 managed by the CP device 101 can form a UP pool. Furthermore, in order to improve the reliability of the broadband remote access system, for any UP device 102, an N+1 warm backup group can be configured for each interface on the UP device 102. Among them, N is an integer greater than or equal to 1. The N+1 warm backup group indicates that the interface corresponds to N backup interfaces, and indicates that the interface corresponds to N backup UP devices. The N backup interfaces are the same as the N backup UP devices. Correspondingly, the N backup interfaces are respectively located on the N backup UP devices. Wherein, N is an integer greater than or equal to 1. The warm backup group indicates that the CP device 101 can migrate the terminal online from the interface to the backup interface on at least one backup UP device. The N backup UP devices include the at least A backup UP device.
当该UP设备102故障,为了便于说明,将该UP设备102上的任一个接口称为第一接口,或者,当该UP设备102的某个接口故障,为了便于说明,将该故障接口称为第一接口。CP设备101可以将从第一接口上上线的多个终端104通过负载分担策略迁移到第一接口对应的至少一个备份UP设备,以便由该至少一个备份UP设备使用各自的备份接口转发该多个终端的业务。When the UP device 102 fails, for the convenience of explanation, any interface on the UP device 102 is called the first interface. Or, when an interface of the UP device 102 fails, for the convenience of explanation, the faulty interface is called the first interface. First interface. The CP device 101 can migrate multiple terminals 104 online 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 uses their respective backup interfaces to forward the multiple terminals 104 . Terminal business.
例如,参见图2,该vBNG系统100中的UP设备102包括UP设备1,UP设备2,UP设备3和UP设备4等。假设,UP设备2上的接口21有对应的3+1温备份组,该3+1温备份组表示接口21对应的三个备份接口,该三个备份接口分别为UP设备1上的接口11,UP设备3上的接口31和UP设备4上的接口41。还假设,UP设备2中的接口22也有对应的2+1温备份组,该2+1温备份组用于指示接口22对应的两个备份接口,该两个备份接口分别为UP设备1上的接口12和UP设备3上的接口32。For example, referring to Figure 2, the UP device 102 in the vBNG system 100 includes UP device 1, UP device 2, UP device 3, UP device 4, etc. Assume that interface 21 on UP device 2 has a corresponding 3+1 warm backup group. The 3+1 warm backup group represents the three backup interfaces corresponding to interface 21. The three backup interfaces are respectively interface 11 on UP device 1. , interface 31 on UP device 3 and interface 41 on UP device 4. It is also assumed that interface 22 in UP device 2 also has a corresponding 2+1 warm backup group. This 2+1 warm backup group is used to indicate the two backup interfaces corresponding to interface 22. The two backup interfaces are respectively on UP device 1. interface 12 and interface 32 on UP device 3.
假设UP设备2故障,对于UP设备2上的接口21,CP设备101将从接口21上上线的多个终端104,通过负载分担策略迁移到UP设备1上,UP设备3上和/或UP设备4上。这样,对于迁移到UP设备1上的至少一个终端,UP设备1通过接口11转发该至少一个终端的业务;对于迁移到UP设备3上的至少一个终端,UP设备3通过接口31转发该至少一个终端的业务;和/或,对于迁移到UP设备4上的至少一个终端,UP设备4通过接口41转发该至少一个终端的业务。Assume that UP device 2 fails. For interface 21 on UP device 2, CP device 101 will migrate multiple terminals 104 online from interface 21 to UP device 1, UP device 3 and/or UP device through the load sharing policy. 4 on. In this way, for at least one terminal that migrates to the UP device 1, the UP device 1 forwards the service of the at least one terminal through the interface 11; for at least one terminal that migrates to the UP device 3, the UP device 3 forwards the at least one terminal through the interface 31 The terminal's services; and/or, for at least one terminal that is migrated to the UP device 4, the UP device 4 forwards the at least one terminal's services through the interface 41.
对于UP设备2上的接口22,CP设备101将从接口22上上线的多个终端104,通过负载分担策略迁移到UP设备1上和/或UP设备3上。这样,对于迁移到UP设备1上的至少一个终端,UP设备1通过接口12转发该至少一个终端的业务;对于迁移到UP设备3上的至少一个终端,UP设备3接收CP设备101通过接口32转发该至少一个终端的业务。For the interface 22 on the UP device 2, the CP device 101 migrates multiple terminals 104 online from the interface 22 to the UP device 1 and/or the UP device 3 through the load sharing policy. In this way, for at least one terminal that migrates to the UP device 1, the UP device 1 forwards the service of the at least one terminal through the interface 12; for at least one terminal that migrates to the UP device 3, the UP device 3 receives the service of the CP device 101 through the interface 32 Forward the service of the at least one terminal.
在一些实施例中,CP设备保存第一对应关系,第一对应关系用于保存主设备信息与备设备信息之间的对应关系,主设备信息包括一个UP设备的设备标识和该UP设备上的接口的接口标识,该备设备信息包括与该接口相对应的N个备份UP设备的设备标识和该N个备份UP设备上与该接口相对应的备份接口的接口标识。In some embodiments, the CP device stores a first correspondence relationship. The first correspondence relationship is used to store the correspondence relationship between primary device information and backup device information. The primary device information includes a device identification of a UP device and the device ID of the UP device. The interface identifier of the interface. The backup device information includes the device identifiers of the N backup UP devices corresponding to the interface and the interface identifiers of the backup interfaces corresponding to the interface on the N backup UP devices.
例如,参见下表1所示的第一对应关系,第一对应关系的第一条记录(序号为1的记录)包括主设备信息和备设备信息。该主设备信息包括UP设备2的设备标识Device2和接口21的接口标识Interface21,该备设备信息包括与接口21对应的备份UP设备(UP设备1)的设备标识Device1和备份接口(接口11)的接口标识Interface11,与接口21对应的备份UP设备(UP设备3)的设备标识Device3和备份接口(接口31)的接口标识Interface31,与接口 21对应的备份UP设备(UP设备4)的设备标识Device4和备份接口(接口41)的接口标识Interface41。For example, see the first correspondence shown in Table 1 below. The first record of the first correspondence (the record with serial number 1) includes primary device information and backup device information. The primary device information includes the device identifier Device2 of UP device 2 and the interface identifier Interface21 of interface 21. The backup device information includes the device identifier Device1 of the backup UP device (UP device 1) corresponding to interface 21 and the backup interface (Interface 11). The interface identifier Interface11, the device identifier Device3 of the backup UP device (UP device 3) corresponding to interface 21, and the interface identifier Interface31 of the backup interface (interface 31), and the interface 21 corresponds to the device identifier Device4 of the backup UP device (UP device 4) and the interface identifier Interface41 of the backup interface (interface 41).
第一对应关系的第二条记录(序号为2的记录)包括主设备信息和备设备信息。该主设备信息包括UP设备2的设备标识Device2和接口22的接口标识Interface22,该备设备信息包括与接口22对应的备份UP设备(UP设备1)的设备标识Device1和备份接口(接口12)的接口标识Interface12,与接口22对应的备份UP设备(UP设备3)的设备标识Device3和备份接口(接口32)的接口标识32。The second record of the first correspondence relationship (the record with serial number 2) includes primary device information and backup device information. The primary device information includes the device identifier Device2 of UP device 2 and the interface identifier Interface22 of interface 22. The backup device information includes the device identifier Device1 of the backup UP device (UP device 1) corresponding to interface 22 and the backup interface (Interface 12). The interface identifier Interface12, the device identifier Device3 of the backup UP device (UP device 3) corresponding to the interface 22, and the interface identifier 32 of the backup interface (interface 32).
表1
Table 1
在一些实施例中,UP设备保存第二对应关系,第二对应关系用于保存接口标识与备设备信息,对于第二对应关系中的任一条记录,该记录包括UP设备上的一个接口的接口标识和备设备信息,该备设备信息包括与该接口相对应的N个备份UP设备的设备标识和该N个备份UP设备上与该接口相对应的备份接口的接口标识。In some embodiments, the UP device saves a second correspondence relationship. The second correspondence relationship is used to save interface identifiers and backup device information. For any record in the second correspondence relationship, the record includes the interface of an interface on the UP device. Identity and backup device information. The backup device information includes the device identifiers of the N backup UP devices corresponding to the interface and the interface identifiers of the backup interfaces corresponding to the interface on the N backup UP devices.
例如,参见下表2,UP设备2保存有第二对应关系,第二对应关系的第一条记录(序号为1的记录)包括UP设备2的接口21的接口标识Interface21和备设备信息,该备设备信息包括与接口21对应的备份UP设备(UP设备1)的设备标识Device1和备份接口(接口11)的接口标识Interface11,与接口21对应的备份UP设备(UP设备3)的设备标识Device3和备份接口(接口31)的接口标识Interface31,与接口21对应的备份UP设备(UP设备4)的设备标识Device4和备份接口(接口41)的接口标识Interface41。For example, see Table 2 below, UP device 2 saves a second corresponding relationship. The first record of the second corresponding relationship (record with serial number 1) includes the interface identifier Interface21 of the interface 21 of UP device 2 and the backup device information. The backup device information includes the device identification Device1 of the backup UP device (UP device 1) corresponding to interface 21 and the interface identification Interface11 of the backup interface (interface 11). The device identification Device3 of the backup UP device (UP device 3) corresponding to interface 21 and the interface identifier Interface31 of the backup interface (interface 31), the device identifier Device4 of the backup UP device (UP device 4) corresponding to interface 21, and the interface identifier Interface41 of the backup interface (interface 41).
第二对应关系的第二条记录(序号为2的记录)包括UP设备2的接口22的接口标识Interface22和备设备信息。该备设备信息包括与接口22对应的备份UP设备(UP设备1)的设备标识Device1和备份接口(接口12)的接口标识Interface12,与接口22对应的备份UP设备(UP设备3)的设备标识Device3和备份接口(接口32)的接口标识32。 The second record of the second correspondence relationship (the record with serial number 2) includes the interface identifier Interface22 of the interface 22 of the UP device 2 and the backup device information. The backup device information includes the device identification Device1 of the backup UP device (UP device 1) corresponding to interface 22, the interface identification Interface12 of the backup interface (interface 12), and the device identification of the backup UP device (UP device 3) corresponding to interface 22. The interface identifier 32 of Device3 and the backup interface (interface 32).
表2
Table 2
在一些实施例中,对于vBNG系统100中的每个UP设备102,可以为该UP设备102上的一个接口(即用于终端104上线的接口)配置一个或多个虚拟MAC地址。将从该接口上上线的终端划分成多个用户组,每个用户组对应一个虚拟MAC地址。对于任一个用户组和该用户组对应的虚拟MAC地址,该用户组包括的终端使用该虚拟MAC地址与该UP设备102交互业务。CP设备101在将从该接口上线的终端104迁移至其他UP设备时,能够以该接口的虚拟MAC地址为粒度进行迁移。也即是,对于该接口的任一个虚拟MAC地址,CP设备101可以将该虚拟MAC地址对应的用户组从该接口迁移至该接口对应一个备份UP设备上。In some embodiments, for each UP device 102 in the vBNG system 100, one or more virtual MAC addresses may be configured for an interface on the UP device 102 (ie, the interface used for the terminal 104 to go online). Divide the terminals online from this interface into multiple user groups, and each user group corresponds to a virtual MAC address. For any user group and the virtual MAC address corresponding to the user group, the terminals included in the user group use the virtual MAC address to interact with the UP device 102 for services. When the CP device 101 migrates the terminal 104 online from the interface to other UP devices, the migration can be performed with the virtual MAC address of the interface as the granularity. That is, for any virtual MAC address of the interface, the CP device 101 can migrate the user group corresponding to the virtual MAC address from the interface to a backup UP device corresponding to the interface.
例如,仍以图2为例,对于UP设备2上的接口21对应的3+1温备份组,为UP设备2上的接口21配置虚拟MAC地址1,虚拟MAC地址2和虚拟MAC地址3。也就是说从接口21上上线的终端被划分成虚拟MAC地址1对应的用户组1,虚拟MAC地址2对应的用户组2和虚拟MAC地址3对应的用户组3。假设UP设备2故障,CP设备101将虚拟MAC地址1对应的用户组1包括的至少一个终端迁移到UP设备1上,将虚拟MAC地址2对应的用户组2包括的至少一个终端迁移到UP设备3上,将虚拟MAC地址3对应的用户组3包括的至少一个终端迁移到UP设备4上。这样,UP设备1通过接口11转发用户组1包括的至少一个终端的业务;UP设备3通过接口31转发用户组2包括的至少一个终端的业务;和/或,UP设备4通过接口41转发用户组3包括至少一个的终端的业务。For example, still taking Figure 2 as an example, for the 3+1 warm backup group corresponding to interface 21 on UP device 2, virtual MAC address 1, virtual MAC address 2 and virtual MAC address 3 are configured for interface 21 on UP device 2. That is to say, the terminals that come online from interface 21 are divided into user group 1 corresponding to virtual MAC address 1, user group 2 corresponding to virtual MAC address 2, and user group 3 corresponding to virtual MAC address 3. Assuming that UP device 2 fails, CP device 101 migrates at least one terminal included in user group 1 corresponding to virtual MAC address 1 to UP device 1, and migrates at least one terminal included in user group 2 corresponding to virtual MAC address 2 to the UP device. 3, migrate at least one terminal included in the user group 3 corresponding to the virtual MAC address 3 to the UP device 4. In this way, UP device 1 forwards the service of at least one terminal included in user group 1 through interface 11; UP device 3 forwards the service of at least one terminal included in user group 2 through interface 31; and/or UP device 4 forwards the user service through interface 41. Group 3 includes the services of at least one terminal.
对于UP设备2上的接口22对应的2+1温备份组,为UP设备2上的接口22配置虚拟MAC地址4和虚拟MAC地址5。也就是说从接口22上上线的终端被划分成虚拟MAC地址4对应的用户组4和虚拟MAC地址5对应的用户组5。假设UP设备2故障,CP设备101将虚拟MAC地址4对应的用户组4包括的至少一个终端迁移到UP设备1上,将虚拟MAC地址5对应的用户组5包括的至少一个终端迁移到UP设备3上。这样,UP设备1通过接口12转发用户组4包括的至少一个终端的业务;UP设备3通过接口32转发用户组5包括的至少一个终端的业务。For the 2+1 warm backup group corresponding to interface 22 on UP device 2, configure virtual MAC address 4 and virtual MAC address 5 for interface 22 on UP device 2. That is to say, the terminals that come online from interface 22 are divided into user group 4 corresponding to virtual MAC address 4 and user group 5 corresponding to virtual MAC address 5. Assuming that UP device 2 fails, CP device 101 migrates at least one terminal included in user group 4 corresponding to virtual MAC address 4 to UP device 1, and migrates at least one terminal included in user group 5 corresponding to virtual MAC address 5 to the UP device. 3 on. In this way, the UP device 1 forwards the service of at least one terminal included in the user group 4 through the interface 12; the UP device 3 forwards the service of at least one terminal included in the user group 5 through the interface 32.
对于图1所示vBNG系统100中的任一个终端102,为了便于说明,将该终端称为第一终端,第一终端需要在上述vBNG系统100中的某个UP设备上上线,然后该UP设备才可以传输第一终端的业务。参见图3,本申请实施例提供了一种终端上线的方法300,该方法300包括如下步骤。For any terminal 102 in the vBNG system 100 shown in Figure 1, for the convenience of explanation, the terminal is called the first terminal. The first terminal needs to go online on a certain UP device in the vBNG system 100, and then the UP device Only then can the service of the first terminal be transmitted. Referring to Figure 3, an embodiment of the present application provides a method 300 for a terminal to go online. The method 300 includes the following steps.
步骤301:第一终端向CP设备发送接入协议报文,该接入协议报文用于请求将第一终端接入网络。 Step 301: The first terminal sends an access protocol message to the CP device. The access protocol message is used to request the first terminal to access the network.
在一些实施例中,第一终端向vBNG系统中的一个UP设备发送接入协议报文,该UP设备向CP设备发送该接入协议报文。该UP设备可能是第一终端附近的UP设备,或者,是事先设置在第一终端上默认的UP设备。In some embodiments, the first terminal sends the access protocol message to a UP device in the vBNG system, and the UP device sends the access protocol message to the CP device. The UP device may be a UP device near the first terminal, or may be a default UP device set on the first terminal in advance.
可选地,该接入协议报文包括第一终端的用户账号和用户密码等信息。Optionally, the access protocol message includes information such as the user account and user password of the first terminal.
步骤302:CP设备接收该接入协议报文,通过认证服务器对第一终端进行认证,并在对第一终端认证通过时,获取第一终端的用户表项信息。Step 302: The CP device receives the access protocol message, authenticates the first terminal through the authentication server, and obtains the user entry information of the first terminal when the first terminal passes the authentication.
第一终端的用户表项信息用于传输第一终端的业务。The user entry information of the first terminal is used to transmit services of the first terminal.
在一些实施例中,通过如下3021-3025的操作对第一终端进行认证并获取第一终端的用户表项信息,该3021-3025的操作分别为。In some embodiments, the first terminal is authenticated and the user entry information of the first terminal is obtained through the following operations 3021-3025, which are respectively.
3021:CP设备向认证服务器发送针对第一终端的认证请求。3021: The CP device sends an authentication request for the first terminal to the authentication server.
在一些实施例中,该认证请求包括第一终端对应的用户账号和用户密码等信息。In some embodiments, the authentication request includes information such as the user account and user password corresponding to the first terminal.
3022:认证服务器接收该认证请求,对第一终端进行认证,在对第一终端认证通过后,为第一终端分配地址,向CP设备发送携带该地址的认证响应。3022: The authentication server receives the authentication request, authenticates the first terminal, and after passing the authentication of the first terminal, allocates an address to the first terminal, and sends an authentication response carrying the address to the CP device.
在一些实施例中,认证服务器基于该认证请求包括的第一终端对应的用户账号和用户密码等信息,对第一终端进行认证。可选地,为第一终端分配的地址包括网际互连协议(internet protocol,IP)地址和/或媒体介入控制层(media access control,MAC)地址等。In some embodiments, the authentication server authenticates the first terminal based on the user account and user password corresponding to the first terminal included in the authentication request. Optionally, the address allocated to the first terminal includes an Internet protocol (Internet protocol, IP) address and/or a media access control layer (media access control, MAC) address, etc.
3023:CP设备接收该认证响应,从vBNG系统包括的UP设备中选择用于第一终端上线的UP设备,为了便于说明,将选择的UP设备称为第二UP设备。3023: The CP device receives the authentication response and selects the UP device for the first terminal to go online from the UP devices included in the vBNG system. For convenience of explanation, the selected UP device is called the second UP device.
在一些实施例中,CP设备可能直接选择发送该接入协议报文的UP设备,或者,选择负载最少的UP设备,或者,选择离第一终端最近的UP设备等。In some embodiments, the CP device may directly select the UP device that sends the access protocol message, or select the UP device with the least load, or select the UP device closest to the first terminal, etc.
3024:CP设备从第二UP设备包括的接口中选择一个接口,为了便于说明,将选择的接口称为第一接口,从第一接口的至少一个用户组中选择一个用户组。3024: The CP device selects an interface from the interfaces included in the second UP device. For convenience of explanation, the selected interface is called the first interface, and a user group is selected from at least one user group of the first interface.
在一些实施例中,CP设备保存有第二UP设备中的任一个接口的接口标识,该接口的至少一个虚拟MAC地址和每个虚拟MAC对应的用户组包括的终端。在3024中,CP设备基于负载均担策略,从第二UP设备上的接口中选择一个接口作为第一接口,从第一接口的每个虚拟MAC地址对应的用户组中选择一个用户组。In some embodiments, the CP device stores the interface identifier of any interface in the second UP device, at least one virtual MAC address of the interface, and the terminals included in the user group corresponding to each virtual MAC. In 3024, the CP device selects an interface from the interfaces on the second UP device as the first interface based on the load balancing policy, and selects a user group from the user group corresponding to each virtual MAC address of the first interface.
3025:CP设备生成第一终端的用户表项信息,该用户表项信息包括第一终端对应的用户信息、第一虚拟MAC地址和第一下行路由信息等。3025: The CP device generates user entry information of the first terminal. The user entry information includes user information corresponding to the first terminal, the first virtual MAC address, the first downlink routing information, etc.
其中,第一虚拟MAC地址为选择的用户组对应的虚拟MAC地址。第一终端对应的用户信息包括第一终端的地址,还可以包括第一终端的用户账号等信息。第一下行路由信息包括目的地址和第一下一跳信息,该目的地址为第一终端的地址,第一下一跳信息指示的下一跳设备为与第一终端通信的第一转发设备。The first virtual MAC address is the virtual MAC address corresponding to the selected user group. The user information corresponding to the first terminal includes the address of the first terminal, and may also include information such as the user account of the first terminal. The first downlink routing information includes a destination address and first next hop information. The destination address is the address of the first terminal. The next hop device indicated by the first next hop information is the first forwarding device communicating with the first terminal. .
在一些实施例中,对于第二UP设备上的第一接口,第一接口对应N个备份接口,该N个备份接口位于N个备份UP设备上,对于第一接口上的至少一个虚拟MAC地址,每个虚拟MAC地址对应一个备份接口。In some embodiments, for the first interface on the second UP device, the first interface corresponds to N backup interfaces, and the N backup interfaces are located on the N backup UP devices. For at least one virtual MAC address on the first interface , each virtual MAC address corresponds to a backup interface.
在一些实施例中,CP设备保存有第三对应关系,第三对应关系用于保存主设备信息与备设备信息之间的对应关系,相比第一对应关系,该主设备信息包括第二UP设备的设备标识,第一接口的接口标识和第一接口的一个虚拟MAC地址,该备设备信息包括与第一接口和该虚拟MAC地址对应的一个备份UP设备的设备标识和该备份UP设备上的备份接口的接口标 识。可选地,CP设备保存上述第一对应关系和第三对应关系中的任一个。In some embodiments, the CP device stores a third correspondence relationship. The third correspondence relationship is used to store the correspondence relationship between the primary device information and the backup device information. Compared with the first correspondence relationship, the primary device information includes a second UP. The device ID of the device, the interface ID of the first interface and a virtual MAC address of the first interface. The backup device information includes the device ID of a backup UP device corresponding to the first interface and the virtual MAC address and the device ID of the backup UP device. The interface label of the backup interface knowledge. Optionally, the CP device saves any one of the above-mentioned first correspondence relationship and the third correspondence relationship.
例如,参见图2,对于UP设备2上的接口21,接口21有对应的虚拟MAC地址1,虚拟MAC地址2和虚拟MAC地址3,接口21对应的三个备份接口包括UP设备1上的接口11、UP设备3上的接口31和UP设备4上的接口41。虚拟MAC地址1与UP设备1上的接口11相对应,虚拟MAC地址2与UP设备上的接口31相对应,虚拟MAC地址3与UP设备4上的接口41相对应。参见下表3,CP设备中保存有如下第三对应关系,第三对应关系的第一条记录(序号为1的记录)包括主设备信息和备设备信息,主设备信息包括UP设备1的设备标识Device2,接口21的接口标识Interface21和虚拟MAC地址1,该备设备信息包括UP设备1的设备标识Device1和接口11的接口标识Interface11。第三对应关系的第二条记录(序号为2的记录)包括主设备信息和备设备信息,主设备信息包括UP设备2的设备标识Device2,接口21的接口标识Interface21和虚拟MAC地址2,该备设备信息包括UP设备3的设备标识Device3和接口31的接口标识Interface31。对于表3所示的第三对应关系中的其他记录在此不再一一列举。For example, see Figure 2. For interface 21 on UP device 2, interface 21 has corresponding virtual MAC address 1, virtual MAC address 2 and virtual MAC address 3. The three backup interfaces corresponding to interface 21 include the interfaces on UP device 1. 11. Interface 31 on UP device 3 and interface 41 on UP device 4. Virtual MAC address 1 corresponds to interface 11 on UP device 1, virtual MAC address 2 corresponds to interface 31 on UP device, and virtual MAC address 3 corresponds to interface 41 on UP device 4. Referring to Table 3 below, the CP device stores the following third correspondence. The first record of the third correspondence (the record with serial number 1) includes primary device information and backup device information. The primary device information includes the device of UP device 1. Identifies Device2, the interface identifier Interface21 of interface 21, and the virtual MAC address 1. The device information includes the device identifier Device1 of UP device 1 and the interface identifier Interface11 of interface 11. The second record of the third correspondence relationship (the record with serial number 2) includes primary device information and backup device information. The primary device information includes the device identifier Device2 of UP device 2, the interface identifier Interface21 of interface 21, and the virtual MAC address 2. The device information includes the device identifier Device3 of UP device 3 and the interface identifier Interface31 of interface 31. Other records in the third correspondence relationship shown in Table 3 will not be listed one by one here.
表3
table 3
在一些实施例中,UP设备保存有第四对应关系,第四对应关系用于保存接口标识、虚拟MAC地址与备设备信息之间的对应关系,对于第四对应关系中保存的每一条记录,该记录包括接口标识、虚拟MAC地址和备设备信息,该接口标识是UP设备上的一个接口的接口标识,该虚拟MAC地址是该接口的一个虚拟MAC地址。可选地,UP设备保存上述第二对应关系和第四对应关系中的任一个。In some embodiments, the UP device stores a fourth correspondence. The fourth correspondence is used to store the correspondence between interface identifiers, virtual MAC addresses, and backup device information. For each record saved in the fourth correspondence, The record includes the interface identifier, virtual MAC address, and backup device information. The interface identifier is the interface identifier of an interface on the UP device, and the virtual MAC address is a virtual MAC address of the interface. Optionally, the UP device saves any one of the above-mentioned second correspondence relationship and the fourth correspondence relationship.
例如,参见图2,对于UP设备2,UP设备2保存有如下下表4所示的第四对应关系,第四对应关系的第一条记录(序号为1的记录)包括接口21的接口标识Interface21、虚拟MAC地址1和备设备信息,该备设备信息包括UP设备1的设备标识Device1和接口11的接口标识Interface11。第四对应关系的第二条记录(序号为2的记录)包括接口21的接口标识interface21,虚拟MAC地址2和备设备信息,该备设备信息包括UP设备3的设备标识Device3和接口31的接口标识Interface31。对于表4所示的第四对应关系中的其他记录在此不再一一列举。 For example, referring to Figure 2, for UP device 2, UP device 2 saves the fourth correspondence relationship as shown in Table 4 below. The first record of the fourth correspondence relationship (the record with serial number 1) includes the interface identifier of interface 21 Interface21, virtual MAC address 1, and backup device information. The backup device information includes the device identifier Device1 of UP device 1 and the interface identifier Interface11 of interface 11. The second record of the fourth correspondence relationship (the record with serial number 2) includes the interface identifier interface21 of interface 21, virtual MAC address 2 and backup device information. The backup device information includes the device identifier Device3 of UP device 3 and the interface of interface 31. Identifies Interface31. The other records in the fourth correspondence relationship shown in Table 4 are not listed one by one here.
表4
Table 4
在一些实施例中,对于第一接口的任一个虚拟MAC地址,该虚拟MAC地址对应的备份UP设备和第二UP设备位于同一供电组,或者,该虚拟MAC地址对应的备份UP设备和第二UP设备位于不同供电组。可选的,可以将位于同一机房的UP设备称为一个供电组,或者,将位于同一机架上的UP设备称为一个供电组,或者,将供电电源相同的UP设备称为一个供电组。In some embodiments, for any virtual MAC address of the first interface, the backup UP device corresponding to the virtual MAC address and the second UP device are in the same power supply group, or the backup UP device corresponding to the virtual MAC address and the second UP device are in the same power supply group. UP devices are located in different power supply groups. Optionally, UP devices located in the same computer room can be called a power supply group, or UP devices located in the same rack can be called a power supply group, or UP devices with the same power supply can be called a power supply group.
在该虚拟MAC地址对应的备份UP设备和第二UP设备位于不同供电组时,这样在第二UP设备所在的供电组出现断电等故障时,可以将第二UP设备上的该虚拟MAC地址对应的用户组中的终端迁移到该虚拟MAC地址对应的备份UP设备上。由于备份UP设备和第二UP设备属于不同的供电组,这样备份UP设备所在的供电组可能没有出现断电等故障,使得该用户组中的每个终端能够成功在备份UP设备上上线。When the backup UP device corresponding to the virtual MAC address and the second UP device are in different power supply groups, in this way, when the power supply group where the second UP device is located suffers a power outage or other fault, the virtual MAC address on the second UP device can be Terminals in the corresponding user group are migrated to the backup UP device corresponding to the virtual MAC address. Since the backup UP device and the second UP device belong to different power supply groups, the power supply group where the backup UP device is located may not experience power outages or other faults, so that each terminal in the user group can successfully go online on the backup UP device.
在一些实施例中,CP设备在生成第一终端的用户表项信息,向第一虚拟MAC地址对应的备份UP设备发送第一终端对应的用户表项信息。在实现时:In some embodiments, the CP device generates the user entry information of the first terminal and sends the user entry information corresponding to the first terminal to the backup UP device corresponding to the first virtual MAC address. When implemented:
CP设备将第二UP设备的设备标识、第一接口的接口标识和第一虚拟MAC地址组成主设备信息,基于该主设备信息从第三对应关系中获取对应的备设备信息,获取的备设备信息包括一个备份UP设备的设备标识和该备份UP设备上的备份接口的接口标识。CP设备基于该备份UP设备的设备标识,向该备份UP设备发送第一信息和第一终端的用户表项信息,第一信息包括第二UP设备的设备标识、第一接口的接口标识和第一虚拟MAC地址中的一个或多个。该备份UP设备接收该备份接口的接口标识、第一信息和第一终端的用户表项信息,将第一信息和第一终端的用户表项信息组成一条记录并将该记录保存在第五对应关系中。The CP device combines the device identification of the second UP device, the interface identification of the first interface and the first virtual MAC address into the primary device information, and obtains the corresponding backup device information from the third corresponding relationship based on the primary device information. The obtained backup device The information includes the device ID of a backup UP device and the interface ID of the backup interface on the backup UP device. Based on the device identification of the backup UP device, the CP device sends the first information and the user entry information of the first terminal to the backup UP device. The first information includes the device identification of the second UP device, the interface identification of the first interface and the One or more of a virtual MAC address. The backup UP device receives the interface identifier of the backup interface, the first information and the user entry information of the first terminal, composes the first information and the user entry information of the first terminal into a record and saves the record in the fifth corresponding in relationship.
例如,假设第一虚拟MAC地址为虚拟MAC地址1,CP设备将第二UP设备的设备标识Device2,第一接口的接口标识Interface21、虚拟MAC地址1组成主设备信息,基于该主设备信息从如表3所示的第三对应关系中获取对应的备设备信息,获取的备设备信息包括备份UP设备的设备标识Device1和备份接口的接口标识Interface11。CP设备基于该备份UP设备的设备标识Device1,向第一UP设备发送第一信息和第一终端的用户表项信息,第一信息包括第二UP设备的设备标识Device2,第一接口的接口标识Interface21和虚拟MAC地址1中的一个或多个。第一UP设备接收第一信息和第一终端的用户表项信息,将第一信息和第一终端的用户表项信息组成一条记录并将该记录保存在如表5所示的第五对应关系中。 For example, assuming that the first virtual MAC address is virtual MAC address 1, the CP device uses the device identifier of the second UP device, Device2, the interface identifier of the first interface, Interface21, and virtual MAC address 1 to form the master device information. Based on the master device information, the master device information is as follows: The corresponding backup device information is obtained in the third correspondence relationship shown in Table 3. The obtained backup device information includes the device identification Device1 of the backup UP device and the interface identification Interface11 of the backup interface. Based on the device identifier Device1 of the backup UP device, the CP device sends the first information and the user entry information of the first terminal to the first UP device. The first information includes the device identifier Device2 of the second UP device and the interface identifier of the first interface. One or more of Interface21 and Virtual MAC Address 1. The first UP device receives the first information and the user entry information of the first terminal, combines the first information and the user entry information of the first terminal into a record, and saves the record in the fifth correspondence shown in Table 5. middle.
表5
table 5
步骤303:CP设备向第二UP设备发送第一终端的用户表项信息。Step 303: The CP device sends the user entry information of the first terminal to the second UP device.
在一些实施例中,CP设备将第二UP设备的设备标识、第一接口的接口标识、第一虚拟MAC地址和第一终端的用户表项信息之间的对应关系保存在第六对应关系中。In some embodiments, the CP device stores the correspondence between the device identification of the second UP device, the interface identification of the first interface, the first virtual MAC address and the user entry information of the first terminal in the sixth correspondence. .
例如,参见下表6所示的第六对应关系,CP设备将第二UP设备的设备标识Device2、第一接口的接口标识Interface21、第一虚拟MAC地址(虚拟MAC地址1)和第一终端的用户表项信息之间的对应关系保存在如下表6所示的第六对应关系中。For example, referring to the sixth correspondence shown in Table 6 below, the CP device combines the device identifier Device2 of the second UP device, the interface identifier Interface21 of the first interface, the first virtual MAC address (virtual MAC address 1) and the first terminal's The correspondence between user entry information is stored in the sixth correspondence shown in Table 6 below.
表6
Table 6
步骤304:第二UP设备接收第一终端的用户表项信息,向第一终端发送接入响应报文,该接入响应报文包括第一终端的用户信息和第一虚拟MAC地址,该用户信息包括第一终端的地址。Step 304: The second UP device receives the user entry information of the first terminal and sends an access response message to the first terminal. The access response message includes the user information of the first terminal and the first virtual MAC address. The information includes the address of the first terminal.
其中,第二UP设备接收第一终端的用户表项信息后,基于该用户表项信息中的第一虚拟MAC地址,将该用户表项信息与第一虚拟MAC地址对应的第一接口关联。Wherein, after receiving the user entry information of the first terminal, the second UP device associates the user entry information with the first interface corresponding to the first virtual MAC address based on the first virtual MAC address in the user entry information.
在一些实施例中,在第一接口的每个虚拟MAC地址对应一个备份UP设备上的备份接口的情况,CP设备也可以不向该备份UP设备发送第一终端的用户表项信息,而是由第二UP设备接收第一终端的用户表项信息后,向该备份UP设备发送第一终端的用户表项信息。在实现时:In some embodiments, when each virtual MAC address of the first interface corresponds to a backup interface on the backup UP device, the CP device may not send the user entry information of the first terminal to the backup UP device. After receiving the user entry information of the first terminal, the second UP device sends the user entry information of the first terminal to the backup UP device. When implemented:
第二UP设备基于该备份UP设备的设备标识,向该备份UP设备发送该备份接口的接口标识、第一信息和第一终端的用户表项信息,第一信息包括第二UP设备的设备标识、第一一接口的接口标识和第一虚拟MAC地址中的一个或多个。该备份UP设备接收该备份接口的接口标识、第一信息和第一终端的用户表项信息,将该备份接口的接口标识、第一信息和第一终端的用户表项信息组成一条记录并将该记录保存在第五对应关系中。Based on the device identification of the backup UP device, the second UP device sends the interface identification of the backup interface, the first information and the user entry information of the first terminal to the backup UP device. The first information includes the device identification of the second UP device. , one or more of the interface identifier of the first interface and the first virtual MAC address. The backup UP device receives the interface identifier of the backup interface, the first information and the user entry information of the first terminal, combines the interface identification of the backup interface, the first information and the user entry information of the first terminal into a record and records This record is saved in the fifth correspondence.
步骤305:第一终端接收第一终端的地址和第一虚拟MAC地址,向第二UP设备发送第一业务请求,第一业务请求包括第一终端的用户信息、第一虚拟MAC地址和待请求业务的业务信息。Step 305: The first terminal receives the address of the first terminal and the first virtual MAC address, and sends a first service request to the second UP device. The first service request includes the user information of the first terminal, the first virtual MAC address and the request to be requested. Business information for the business.
在第一终端接收第一终端的地址和第一虚拟MAC地址,第一终端可以请求业务。第一终端待请求业务的业务信息包括待请求业务对应的地址。第一终端的用户信息包括第一终端的地址,还可能包括第一终端的用户账号等内容。 After the first terminal receives the address of the first terminal and the first virtual MAC address, the first terminal can request a service. The service information of the service to be requested by the first terminal includes an address corresponding to the service to be requested. The user information of the first terminal includes the address of the first terminal, and may also include the user account of the first terminal and other contents.
如果第一终端待请求的业务是组播业务,则待请求业务的地址为第一组播源的组播地址,第一组播源是该组播业务对应的组播源,第一业务请求为组播加入请求,待请求业务的业务信息为组播信息,该组播信息包括该组播地址。如果第一终端待请求的业务是非组播业务,则待请求业务的地址是待请求的业务所在服务器的地址。If the service to be requested by the first terminal is a multicast service, the address of the service to be requested is the multicast address of the first multicast source, and the first multicast source is the multicast source corresponding to the multicast service. The first service request It is a multicast join request, and the service information of the service to be requested is multicast information, and the multicast information includes the multicast address. 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.
可选地,第一终端向第一转发设备发送第一业务请求,第一转发设备接收第一业务请求,基于第一业务请求包括的第一虚拟MAC地址,向第二UP设备发送第一业务请求。Optionally, the first terminal sends the first service request to the first forwarding device, the first forwarding device receives the first service request, and sends the first service to the second UP device based on the first virtual MAC address included in the first service request. ask.
步骤306:第二UP设备接收第一业务请求,向第二转发设备发送第二业务请求,第二业务请求包括第一终端的用户信息和待请求业务的业务信息。Step 306: The second UP device receives the first service request and sends a second service request to the second forwarding device. The second service request includes the user information of the first terminal and the service information of the service to be requested.
在步骤306中,第二UP设备通过第一接口接收第一业务请求,第一业务请求中的待请求业务可能是组播业务,也可能是非组播业务。In step 306, the second UP device receives the first service request through the first interface. The service to be requested in the first service request may be a multicast service or a non-multicast service.
如果待请求业务是非组播业务,第二UP设备生成第一终端对应的第一上行路由信息,第一上行路由信息包括目的地址和第二下一跳信息,该目的地址为待请求业务的地址(服务器的地址),第二下一跳信息指示的下一跳设备为第二转发设备,将第一上行路由信息添加到第一终端的用户表项信息。If the service to be requested is a non-multicast service, the second UP device generates the first uplink routing information corresponding to the first terminal. The first uplink routing information includes the destination address and the second next hop information. The destination address is the address of the service to be requested. (the address of the server), the next hop device indicated by the second next hop information is the second forwarding device, and the first uplink routing information is added to the user table entry information of the first terminal.
第二UP设备还向CP设备发送更新请求,该更新请求包括第一终端的用户信息和第一上行路由信息,CP设备接收该更新请求,获取包括该用户信息的用户表项信息,该用户表项信息为第一终端的用户表项信息,向第一终端的用户表项信息添加第一上行路由信息。The second UP device also sends an update request to the CP device. The update request includes the user information of the first terminal and the first uplink routing information. The CP device receives the update request and obtains user entry information including the user information. The user table The entry information is the user entry information of the first terminal, and the first uplink routing information is added to the user entry information of the first terminal.
在一些实施例中,第二UP设备还向第一虚拟MAC地址对应的备份UP设备发送更新请求,该更新请求包括第一终端的用户信息和第一上行路由信息。该备份UP设备接收该更新请求,获取包括该用户信息的用户表项信息,该用户表项信息为第一终端的用户表项信息,向第一终端的用户表项信息添加第一上行路由信息。或者,CP设备接收该更新请求后,向第一虚拟MAC地址对应的备份UP设备发送更新请求。该备份UP设备接收该更新请求,获取包括该用户信息的用户表项信息,该用户表项信息为第一终端的用户表项信息,向第一终端的用户表项信息添加第一上行路由信息。In some embodiments, the second UP device also sends an update request to the backup UP device corresponding to the first virtual MAC address, where the update request includes the user information of the first terminal and the first uplink routing information. The backup UP device receives the update request, obtains user entry information including the user information, the user entry information is the user entry information of the first terminal, and adds the first uplink routing information to the user entry information of the first terminal. . Alternatively, after receiving the update request, the CP device sends an update request to the backup UP device corresponding to the first virtual MAC address. The backup UP device receives the update request, obtains user entry information including the user information, the user entry information is the user entry information of the first terminal, and adds the first uplink routing information to the user entry information of the first terminal. .
如果待请求业务是组播业务,第二UP设备将待请求业务的组播信息和第一终端的用户信息组成一条记录并将该条记录保存第七对应关系中。If the service to be requested is a multicast service, the second UP device combines the multicast information of the service to be requested and the user information of the first terminal into a record and saves the record in the seventh correspondence relationship.
在一些实施例中,第二UP设备向第一UP设备发送待请求业务的组播信息和第一终端的用户信息,第一UP设备是与第一接口对应的一个备份UP设备,第一UP设备接收该组播信息和第一终端的用户信息,将该组播信息和第一终端的用户信息组成一条记录并将该记录保存在第七对应关系中。可选地,第一UP设备是与第一接口和第一虚拟MAC地址对应的一个备份UP设备。在实现时:In some embodiments, the second UP device sends the multicast information of the service to be requested and the user information of the first terminal to the first UP device. The first UP device is a backup UP device corresponding to the first interface. The first UP device The device receives the multicast information and the user information of the first terminal, composes the multicast information and the user information of the first terminal into a record, and stores the record in the seventh correspondence relationship. Optionally, the first UP device is a backup UP device corresponding to the first interface and the first virtual MAC address. When implemented:
第二UP设备基于第一接口的接口标识,从第二对应关系中获取第一接口对应的N个备份UP设备的设备标识,基于每个备份UP设备的设备标识,向每个备份UP设备发送该组播信息和第一终端的用户信息,每个备份UP设备再将该组播信息和第一终端的用户组成一条记录并将该记录保存在第七对应关系中。Based on the interface identifier of the first interface, the second UP device obtains the device identifiers of the N backup UP devices corresponding to the first interface from the second correspondence relationship, and based on the device identifier of each backup UP device, sends a message to each backup UP device. Each backup UP device then combines the multicast information and the user information of the first terminal into a record and stores the record in the seventh correspondence relationship.
例如,参见图2,UP设备2通过接口21接收第一业务请求,将第一业务请求中的组播信息和第一终端的用户信息组成一条记录并将该记录保存在第七对应关系中。基于接口21的接口标识interface21,从如表2所示的第二对应关系中,获取接口21对应的3个备份UP,分别为UP设备1,UP设备3和UP设备4。分别向UP设备1,UP设备3和UP设备4发送 该组播信息和第一终端的用户信息,UP设备1,UP设备3或UP设备4将该组播信息和第一终端的用户信息组成一条记录并将该记录保存在第七对应关系中。或者,For example, referring to Figure 2, the UP device 2 receives the first service request through the interface 21, composes the multicast information in the first service request and the user information of the first terminal into a record, and saves the record in the seventh correspondence relationship. Based on the interface identifier interface21 of interface 21, three backup UPs corresponding to interface 21 are obtained from the second correspondence relationship shown in Table 2, which are UP device 1, UP device 3 and UP device 4 respectively. Send to UP device 1, UP device 3 and UP device 4 respectively The UP device 1, UP device 3 or UP device 4 combines the multicast information and the user information of the first terminal into a record and saves the record in the seventh correspondence relationship. or,
第二UP设备基于第一接口和第一虚拟MAC地址,从第四对应关系获取与第一接口和第一虚拟MAC地址相对应的一个备份UP设备的设备标识,基于该备份UP设备的设备标识,向该备份UP设备发送该组播信息和第一终端的用户信息,该备份UP设备再将该组播信息和第一终端的用户组成一条记录并将该记录保存在第七对应关系中。Based on the first interface and the first virtual MAC address, the second UP device obtains the device identification of a backup UP device corresponding to the first interface and the first virtual MAC address from the fourth correspondence relationship, and based on the device identification of the backup UP device , sending the multicast information and the user information of the first terminal to the backup UP device, and the backup UP device then combines the multicast information and the user information of the first terminal into a record and saves the record in the seventh correspondence relationship.
例如,参见图2,UP设备2通过接口21接收第一业务请求,假设第一业务请求包括第一终端的用户信息,虚拟MAC地址1和组播信息。将第一业务请求中的组播信息和第一终端的用户信息组成一条记录并将该记录保存在第七对应关系中。基于接口21的接口标识interface21和虚拟MAC地址1,从如表4所示的第四对应关系中,获取与接口21和虚拟MAC地址1对应的备份UP设备1。向UP设备1发送该组播信息和第一终端的用户信息,UP设备1将该组播信息和第一终端的用户信息组成一条记录并将该记录保存在第七对应关系中。For example, referring to Figure 2, the UP device 2 receives a first service request through the interface 21. It is assumed that the first service request includes the user information of the first terminal, the virtual MAC address 1 and the multicast information. The multicast information in the first service request and the user information of the first terminal are combined into one record, and the record is saved in the seventh correspondence relationship. Based on the interface identifier interface21 and virtual MAC address 1 of interface 21, the backup UP device 1 corresponding to interface 21 and virtual MAC address 1 is obtained from the fourth correspondence relationship shown in Table 4. The multicast information and the user information of the first terminal are sent to the UP device 1. The UP device 1 combines the multicast information and the user information of the first terminal into a record and saves the record in the seventh correspondence relationship.
步骤307:第二转发设备接收第二业务请求,生成第一终端对应的路由信息,以及基于第二业务请求包括的待请求业务的地址请求待请求业务。Step 307: The second forwarding device receives the second service request, generates routing information corresponding to the first terminal, and requests the service to be requested based on the address of the service to be requested included in the second service request.
在步骤307中,在待请求业务为组播业务时,待请求业务的地址为组播地址,第二转发设备基于该组播地址和第一终端的地址将第一终端添加组播组中,该组播组是该组播地址对应的第一组播源的组播组,生成第一终端对应的路由信息,该路由信息包括第二下行路由信息,第二下行路由信息包括该组播地址和第三下一跳信息,第三下一跳信息指示的下一跳设备是第二UP设备。In step 307, when the service to be requested is a multicast service, the address of the service to be requested is a multicast address, and the second forwarding device adds the first terminal to the multicast group based on the multicast address and the address of the first terminal. The multicast group is the multicast group of the first multicast source corresponding to the multicast address. Routing information corresponding to the first terminal is generated. The routing information includes second downlink routing information. The second downlink routing information includes the multicast address. and the third next hop information. The next hop device indicated by the third next hop information is the second UP device.
参见图2,接下来第二转发设备可以向第一终端发送该组播源组播的组播业务,实现过程如下:Referring to Figure 2, the second forwarding device can then send the multicast service of the multicast source to the first terminal. The implementation process is as follows:
第二转发设备基于该组播地址接收该组播源组播的第一业务报文,第一业务报文是属于该组播业务的报文,第一业务报文包括组播信息,该组播信息包括该组播地址,获取包括该组播地址的第二下行路由信息,从第二下行路由信息中获取第三下一跳信息,基于第三下一跳信息向第二UP设备(如UP设备2)发送第一业务报文。The second forwarding device receives the first service message multicast by the multicast source based on the multicast address. The first service message is a message belonging to the multicast service. The first service message includes multicast information. The group The broadcast information includes the multicast address, obtains the second downlink routing information including the multicast address, obtains the third next hop information from the second downlink routing information, and sends a request to the second UP device (such as UP device 2) sends the first service message.
第二UP设备(如UP设备2)接收第一业务报文,基于第一业务报文包括的组播信息,从第七对应关系中获取第一终端的用户信息,从保存的用户表项信息中获取包括该用户信息的用户表项信息,该用户表项信息是第一终端的用户表项信息。基于该用户表项信息向第一终端发送第二业务报文,第二业务报文是基于第一业务报文得到的。The second UP device (such as UP device 2) receives the first service message, and based on the multicast information included in the first service message, obtains the user information of the first terminal from the seventh correspondence relationship, and obtains the user entry information from the saved user entry information. Obtain user entry information including the user information, and the user entry information is the user entry information of the first terminal. A second service message is sent to the first terminal based on the user entry information, and the second service message is obtained based on the first service message.
可选地,该用户表项信息包括第一下行路由信息和第一虚拟MAC地址(如虚拟MAC地址1),第一下行路由信息中的第一下一跳信息指示的下一跳设备为第一转发设备,第二UP设备(如UP设备2)通过第一虚拟MAC地址对应的第一接口(如接口21)向第一转发设备发送第二业务报文。第一转发设备接收第二业务报文,向第一终端发送第二业务报文。Optionally, the user entry information includes first downlink routing information and a first virtual MAC address (such as virtual MAC address 1), and the next hop device indicated by the first next hop information in the first downlink routing information. As the first forwarding device, the second UP device (eg, UP device 2) sends the second service packet to the first forwarding device through the first interface (eg, interface 21) corresponding to the first virtual MAC address. The first forwarding device receives the second service message and sends the second service message to the first terminal.
在步骤307中,在待请求业务为非组播业务时,待请求业务的地址为待请求业务所在服务器的地址,第二转发设备生成第一终端对应的路由信息并向该服务器发送第二业务请求,该路由信息包括第二下行路由信息和第二上行路由信息。其中,第二下行路由信息包括目的地址和第三下一跳信息,该目的地址为第一终端的地址,第三下一跳信息指示的下一跳设备是第二UP设备。第二上行路由信息包括目的地址和第四下一跳信息,该目的地址为该服务器的地址,第四下一跳信息指示的下一跳设备为该服务器,或者,该下一跳设备包括能够到 达该服务器的路由信息。In step 307, when the service to be requested 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 the second forwarding device generates routing information corresponding to the first terminal and sends the second service to the server. request, the routing information includes second downlink routing information and second uplink routing information. The second downlink routing information includes a destination address and third next hop information, where the destination address is the address of the first terminal, and the next hop device indicated by the third next hop information is the second UP device. The second uplink routing information includes a destination address and fourth next-hop information. The destination address is the address of the server. The next-hop device indicated by the fourth next-hop information is the server. Alternatively, the next-hop device includes a capable arrive Routing information to reach the server.
参见图2,接下来第二转发设备可以向第一终端传输待请求业务,实现过程如下:Referring to Figure 2, the second forwarding device can then transmit the requested service to the first terminal. The implementation process is as follows:
对于下行传输方向,第二转发设备接收该服务器发送的第三业务报文,第三业务报文是属于待请求业务的报文,第三业务报文的目的地址为第一终端的地址。第二转发设备获取包括第一终端的地址的第二下行路由信息,从第二下行路由信息中获取第三下一跳信息,向第三下一跳信息指示的第二UP设备(如UP设备2)发送第三业务报文。第二UP设备接收第三业务报文,基于第一终端的地址,从保存的用户表项信息中获取包括第一终端的地址的用户表项信息,该用户表项信息为第一终端的用户表项信息。基于该用户表项信息向第一终端发送第四业务报文,第四业务报文是基于第三业务报文得到的。For the downlink transmission direction, the second forwarding device receives the third service message sent by the server. The third service message is a message belonging to the service to be requested, and the destination address of the third service message is the address of the first terminal. The second forwarding device obtains the second downlink routing information including the address of the first terminal, obtains the third next hop information from the second downlink routing information, and forwards the information to the second UP device (such as the UP device) indicated by the third next hop information. 2) Send the third service message. The second UP device receives the third service message, and based on the address of the first terminal, obtains user entry information including the address of the first terminal from the saved user entry information. The user entry information is the user of the first terminal. Table item information. A fourth service message is sent to the first terminal based on the user entry information, and the fourth service message is obtained based on the third service message.
可选地,该用户表项信息包括第一虚拟MAC地址(如虚拟MAC地址1)和第一下行路由信息,第一下行路由信息中的第一下一跳信息指示的下一跳设备为第一转发设备,第二UP设备(如UP设备2)通过第一虚拟MAC地址对应的第一接口(如接口21)向第一转发设备发送第四业务报文。第一转发设备接收第四业务报文,向第一终端发送第四业务报文。Optionally, the user entry information includes a first virtual MAC address (such as virtual MAC address 1) and first downlink routing information, and the next hop device indicated by the first next hop information in the first downlink routing information. As the first forwarding device, the second UP device (eg, UP device 2) sends the fourth service packet to the first forwarding device through the first interface (eg, interface 21) corresponding to the first virtual MAC address. The first forwarding device receives the fourth service message and sends the fourth service message to the first terminal.
对于上行传输方向,第一终端基于第一虚拟MAC地址(如虚拟MAC地址1),向第二UP设备的第一接口(如UP设备2的接口21)发送第五业务报文,第五业务报文包括第一终端的地址和该服务器的地址,服务器的地址为第五业务报文的目的地址。第二UP设备通过第一接口(如接口21)接收第五业务报文,获取包括第一终端的地址的用户表项信息,该用户表项信息包括第一上行路由信息,第一上行路由信息中的第二下一跳信息指示的下一跳设备为第二转发设备。第二UP设备向第二转发设备发送第六业务报文,第六业务报文是基于第五业务报文得到的,第六业务报文的目的地址为该服务器的地址。第二转发设备接收第六业务报文,获取目的地址为该服务器的地址的第二上行路由信息,基于第二上行路由信息向服务器发送第六业务报文。For the uplink transmission direction, the first terminal sends the fifth service message to the first interface of the second UP device (such as the interface 21 of UP device 2) based on the first virtual MAC address (such as virtual MAC address 1). The message includes the address of the first terminal and the address of the server. The address of the server is the destination address of the fifth service message. The second UP device receives the fifth service message through the first interface (such as interface 21), and obtains user entry information including the address of the first terminal. The user entry information includes first uplink routing information, and first uplink routing information. The next hop device indicated by the second next hop information in is the second forwarding device. The second UP device sends a sixth service message to the second forwarding device. The sixth service message is obtained based on the fifth service message. The destination address of the sixth service message is the address of the server. The second forwarding device receives the sixth service message, obtains the second uplink routing information whose destination address is the address of the server, and sends the sixth service message to the server based on the second uplink routing information.
可选地,第一终端向第一转发设备发送第五业务报文,第五业务报文还包括第一虚拟MAC地址(如虚拟MAC地址1)。第一转发设备接收第五业务报文,基于第五业务报文包括的第一虚拟MAC地址向第二UP设备的第一接口(如UP设备2的接口21)发送第五业务报文。Optionally, the first terminal sends a fifth service packet to the first forwarding device, and the fifth service packet further includes the first virtual MAC address (such as virtual MAC address 1). The first forwarding device receives the fifth service message and sends the fifth service message to the first interface of the second UP device (eg, interface 21 of UP device 2) based on the first virtual MAC address included in the fifth service message.
参见图4,本申请实施例提供了一种发送组播业务的方法400,所述方法400应用于图1所示的vBNG系统100,该vBNG系统100包括CP设备、第一UP设备和第二UP设备,所述方法400包括如下步骤。Referring to Figure 4, this embodiment of the present application provides a method 400 for sending multicast services. The method 400 is applied to the vBNG system 100 shown in Figure 1. The vBNG system 100 includes a CP device, a first UP device and a second UP device, the method 400 includes the following steps.
步骤401:第一UP设备接收迁移指令,该迁移指令用于指示将第一终端迁移至第一UP设备上,第一终端是在第二UP设备上上线的终端。Step 401: The first UP device receives a migration instruction, which is used to instruct the first terminal to migrate to the first UP device. The first terminal is a terminal that is online on the second UP device.
其中,第一终端是在第二UP设备上的第一接口上上线的终端。在步骤401中,第一UP设备接收CP设备发送的迁移指令。Wherein, the first terminal is a terminal that goes online on the first interface on the second UP device. In step 401, the first UP device receives the migration instruction sent by the CP device.
在一些实施例中,CP设备感知到第二UP设备故障时,需要将从第二UP设备上的每个接口上上线的终端迁移到其他UP设备,第一接口是第二UP设备上的任一个接口。In some embodiments, when the CP device senses that the second UP device is faulty, it needs to migrate the online terminals from each interface on the second UP device to other UP devices. The first interface is any terminal on the second UP device. an interface.
在一些实施例中,在第二UP设备的第一接口故障时,第二UP设备向CP设备发送故障通知信息,该故障通知信息包括第一接口的接口标识,CP设备接收该故障通知信息,此时CP设备需要将从第二UP设备上的第一接口上上线的终端迁移到其他UP设备。In some embodiments, when the first interface of the second UP device fails, the second UP device sends fault notification information to the CP device. The fault notification information includes the interface identifier of the first interface, and the CP device receives the fault notification information, At this time, the CP device needs to migrate the terminals online on the first interface on the second UP device to other UP devices.
在步骤401中,CP设备采用如下两种方式确定第一UP设备,并向第一UP设备发送迁 移指令,该两种方式分别为。In step 401, the CP device determines the first UP device in the following two ways, and sends a migration message to the first UP device. Shift instructions, the two methods are respectively.
第一方式,在CP设备需要迁移从第一接口上上线的终端时,CP设备确定第一接口对应的N个备份UP设备,每个备份UP设备上包括与第一接口相对应的备份接口。CP设备基于第一接口的至少一个虚拟MAC地址和第二UP设备的设备标识,获取第一接口的每个虚拟MAC地址对应的用户组,从该N个备份UP设备中为每个用户组选择对应的备份UP设备,该N个备份UP设备包括第一UP设备。基于第一UP设备的设备标识,向第一UP设备发送迁移指令,该迁移指令包括第二接口的接口标识,第一用户组中的每个终端对应的用户表项信息,第一用户组是为第一UP设备选择的用户组,第一用户组中的每个终端的用户表项信息包括第一虚拟MAC地址,第一虚拟MAC地址是第一用户组对应的虚拟MAC地址。In the first method, when the CP device needs to migrate a terminal that comes online from the first interface, the CP device determines N backup UP devices corresponding to the first interface, and each backup UP device includes a backup interface corresponding to the first interface. Based on at least one virtual MAC address of the first interface and the device identification of the second UP device, the CP device obtains the user group corresponding to each virtual MAC address of the first interface, and selects a user group for each user group from the N backup UP devices. Corresponding backup UP devices, the N backup UP devices include the first UP device. Based on the device identification of the first UP device, a migration instruction is sent to the first UP device. The migration instruction includes the interface identification of the second interface and the user table entry information corresponding to each terminal in the first user group. The first user group is For the user group selected by the first UP device, the user entry information of each terminal in the first user group includes a first virtual MAC address, and the first virtual MAC address is a virtual MAC address corresponding to the first user group.
其中,第二接口是第一UP设备上与第一接口相对应的备份接口,第一用户组包括第一终端。The second interface is a backup interface corresponding to the first interface on the first UP device, and the first user group includes the first terminal.
其中,第二UP设备与该N个备份UP设备属于同一个温备份组。Among them, the second UP device and the N backup UP devices belong to the same warm backup group.
在一些实施例中,CP设备保存有第一对应关系和第六对应关系,CP设备基于第二UP设备的设备标识和第一接口的接口标识,从第一对应关系中获取与第一接口对应的N个备份UP设备的设备标识和该N个备份UP设备上的备份接口的接口标识。CP设备基于第一接口的至少一个虚拟MAC地址、第一接口的接口和第二UP设备的设备标识,从第六对应关系中获取第一接口对应的至少一个用户组包括的各终端的用户表项信息。基于负载分担策略,从N个备份UP设备中为每个用户组选择对应的备份UP设备。In some embodiments, the CP device stores the first correspondence relationship and the sixth correspondence relationship, and the CP device obtains the correspondence with the first interface from the first correspondence relationship based on the device identification of the second UP device and the interface identification of the first interface. The device identifiers of the N backup UP devices and the interface identifiers of the backup interfaces on the N backup UP devices. Based on at least one virtual MAC address of the first interface, the interface of the first interface and the device identification of the second UP device, the CP device obtains the user table of each terminal included in at least one user group corresponding to the first interface from the sixth correspondence relationship item information. Based on the load sharing policy, the corresponding backup UP device is selected for each user group from N backup UP devices.
例如,假设CP设备保存有如表1所示的第一对应关系,参见图2,CP设备感知UP设备2故障,UP设备2包括接口21和接口22。对于接口21,CP设备基于UP设备2的设备标识Device2和接口21的接口标识Interface21,从如表1所示的第一对应关系中获取对应的三个备份UP设备的设备标识和该三个备份UP设备上的备份接口的接口标识。即获取到UP设备1的设备标识Device1和接口11的接口标识Interface11,UP设备3的设备标识Device3和接口31的接口标识Interface31,UP设备4的设备标识Device4和接口41的接口标识Interface41。接口21的虚拟MAC地址包括虚拟MAC地址1、虚拟MAC地址2和虚拟MAC地址3,为虚拟MAC地址1对应的用户组1选择对应的备份UP设备为UP设备1,向UP设备1发送迁移指令1,迁移指令1包括接口11的接口标识Interface11、虚拟MAC地址1和用户组1中的各终端对应的用户表项信息。为虚拟MAC地址2对应的用户组2选择对应的备份UP设备为UP设备3,向UP设备3发送迁移指令2,迁移指令2包括接口31的接口标识Interface31、虚拟MAC地址2和用户组2中的各终端对应的用户表项信息。为虚拟MAC地址3对应的用户组3选择对应的备份UP设备为UP设备4,向UP设备4发送迁移指令3,迁移指令3包括接口41的接口标识Interface41、虚拟MAC地址3和用户组3中的各终端对应的用户表项信息。对于UP设备2上的接口22,参照上述对接口21的处理,在此不再详细。For example, assume that the CP device stores the first correspondence relationship as shown in Table 1. Referring to Figure 2, the CP device senses a fault of the UP device 2. The UP device 2 includes an interface 21 and an interface 22. For interface 21, based on the device identification Device2 of UP device 2 and the interface identification Interface21 of interface 21, the CP device obtains the device identifications of the corresponding three backup UP devices and the three backups from the first correspondence relationship shown in Table 1. The interface ID of the backup interface on the UP device. That is, the device identifier Device1 of UP device 1 and the interface identifier Interface11 of interface 11 are obtained, the device identifier Device3 of UP device 3 and the interface identifier Interface31 of interface 31 are obtained, the device identifier Device4 of UP device 4 and the interface identifier Interface41 of interface 41 are obtained. The virtual MAC address of interface 21 includes virtual MAC address 1, virtual MAC address 2 and virtual MAC address 3. Select the corresponding backup UP device as UP device 1 for user group 1 corresponding to virtual MAC address 1, and send a migration command to UP device 1. 1. Migration instruction 1 includes the interface identifier Interface11 of interface 11, virtual MAC address 1, and user table entry information corresponding to each terminal in user group 1. Select the corresponding backup UP device for user group 2 corresponding to virtual MAC address 2 as UP device 3, and send migration instruction 2 to UP device 3. Migration instruction 2 includes the interface identifier Interface31 of interface 31, virtual MAC address 2, and user group 2. User entry information corresponding to each terminal. Select the corresponding backup UP device for user group 3 corresponding to virtual MAC address 3 as UP device 4, and send migration instruction 3 to UP device 4. Migration instruction 3 includes the interface identifier Interface41 of interface 41, virtual MAC address 3, and user group 3. User entry information corresponding to each terminal. For the interface 22 on the UP device 2, refer to the above-mentioned processing of the interface 21, and the details will not be repeated here.
第二方式,在CP设备需要迁移从第一接口上上线的终端时,CP设备从第一接口的至少一个虚拟MAC地址中选择一个虚拟MAC地址作为第一虚拟MAC地址,基于第二UP设备的设备标识、第一接口的接口标识和第一虚拟MAC地址,从第三对应关系中获取与第一接口和第一虚拟MAC地址对应的备份UP设备的设备标识,以及该备份UP设备上的备份接口的接口标识,将该备份UP设备作为第一UP设备。基于第一UP设备的设备标识向第一UP设备发送迁移指令。 In the second method, when the CP device needs to migrate a terminal that comes online from the first interface, the CP device selects a virtual MAC address from at least one virtual MAC address of the first interface as the first virtual MAC address, based on the second UP device's The device identifier, the interface identifier of the first interface and the first virtual MAC address, and obtaining the device identifier of the backup UP device corresponding to the first interface and the first virtual MAC address from the third correspondence relationship, and the backup device on the backup UP device. The interface ID of the interface, and the backup UP device is used as the first UP device. Send a migration instruction to the first UP device based on the device identification of the first UP device.
在第二方式中,由于从第三对应关系中获取与第一接口和第一虚拟MAC地址对应的备份UP设备的设备标识,以及该备份UP设备上的备份接口的接口标识,也是说该备份接口与第一虚拟MAC地址精确绑定,使得温备份组中的备份关系可控,便于实现转发侧行为的平滑切换。In the second method, since the device identification of the backup UP device corresponding to the first interface and the first virtual MAC address and the interface identification of the backup interface on the backup UP device are obtained from the third correspondence relationship, that is to say, the backup The interface is accurately bound to the first virtual MAC address, making the backup relationship in the warm backup group controllable and facilitating smooth switching of the forwarding side behavior.
在一些实施例中,对于第一虚拟MAC地址对应的第一用户组,在第一UP设备保存有第一用户组中的每个终端对应的用户表项信息时,该迁移指令包括第二接口的接口标识和第一信息,第一信息包括第一接口的接口标识、第二UP设备的设备标识和第一虚拟MAC地址中的一个或多个。或者,在第一UP设备没有保存第一用户组中的每个终端对应的用户表项信息时,该迁移指令包括第二接口的接口标识、第一虚拟MAC地址和第一用户组中的每个终端对应的用户表项信息。In some embodiments, for the first user group corresponding to the first virtual MAC address, when the first UP device stores user table entry information corresponding to each terminal in the first user group, the migration instruction includes the second interface The interface identifier and the first information include one or more of the interface identifier of the first interface, the device identifier of the second UP device, and the first virtual MAC address. Or, when the first UP device does not save the user table entry information corresponding to each terminal in the first user group, the migration instruction includes the interface identifier of the second interface, the first virtual MAC address and each terminal in the first user group. User entry information corresponding to each terminal.
例如,假设CP设备保存有如表3所示的第三对应关系,参见图2,CP设备感知UP设备2故障,UP设备2包括接口21和接口22。对于接口21,接口21的虚拟MAC地址包括虚拟MAC地址1、虚拟MAC地址2和虚拟MAC地址3,CP设备基于UP设备2的设备标识Device2、接口21的接口标识Interface21和虚拟MAC地址1,从如表3所示的第三对应关系中获取对应的UP设备1的设备标识Device1和接口11的接口标识Interface11,向UP设备1发送迁移指令1,迁移指令1包括接口11的接口标识Interface11、虚拟MAC地址1和用户组1中的各终端对应的用户表项信息,或者,迁移指令1包括接口11的接口标识Interface11和第一信息,第一信息包括虚拟MAC地址1。CP设备基于UP设备2的设备标识Device2、接口21的接口标识Interface21和虚拟MAC地址2,从如表3所示的第三对应关系中获取对应的UP设备3的设备标识Device3和接口31的接口标识Interface31,向UP设备3发送迁移指令2,迁移指令2包括接口31的接口标识Interface31、虚拟MAC地址2和用户组2中的各终端对应的用户表项信息,或者,迁移指令2包括接口31的接口标识Interface31和第一信息,第一信息包括虚拟MAC地址2。CP设备基于UP设备2的设备标识Device2、接口21的接口标识Interface21和虚拟MAC地址3,从如表3所示的第三对应关系中获取对应的UP设备4的设备标识Device4和接口41的接口标识Interface41,向UP设备4发送迁移指令3,迁移指令3包括接口41的接口标识Interface41、虚拟MAC地址3和用户组3中的各终端对应的用户表项信息,或者,迁移指令3包括接口41的接口标识Interface41和第一信息,第一信息包括虚拟MAC地址3。For example, assume that the CP device stores the third corresponding relationship as shown in Table 3. Referring to Figure 2, the CP device senses a fault of the UP device 2. The UP device 2 includes an interface 21 and an interface 22. For interface 21, the virtual MAC address of interface 21 includes virtual MAC address 1, virtual MAC address 2, and virtual MAC address 3. The CP device is based on the device identifier Device2 of UP device 2, the interface identifier Interface21 of interface 21, and virtual MAC address 1. From As shown in the third correspondence relationship shown in Table 3, the corresponding device identifier Device1 of UP device 1 and the interface identifier Interface11 of interface 11 are obtained, and migration instruction 1 is sent to UP device 1. Migration instruction 1 includes the interface identifier Interface11 of interface 11, virtual MAC address 1 and user table entry information corresponding to each terminal in user group 1, or migration instruction 1 includes the interface identifier Interface11 of interface 11 and first information, and the first information includes virtual MAC address 1. Based on the device identifier Device2 of UP device 2, the interface identifier Interface21 of interface 21, and the virtual MAC address 2, the CP device obtains the corresponding device identifier Device3 of UP device 3 and the interface of interface 31 from the third correspondence relationship shown in Table 3. Identify Interface31, and send migration instruction 2 to UP device 3. Migration instruction 2 includes the interface identifier Interface31 of interface 31, virtual MAC address 2, and user table entry information corresponding to each terminal in user group 2, or migration instruction 2 includes interface 31. The interface identification Interface31 and the first information, the first information includes virtual MAC address 2. Based on the device identifier Device2 of UP device 2, the interface identifier Interface21 of interface 21, and the virtual MAC address 3, the CP device obtains the corresponding device identifier Device4 of UP device 4 and the interface of interface 41 from the third correspondence relationship shown in Table 3. Identify Interface41, and send migration instruction 3 to UP device 4. Migration instruction 3 includes the interface identifier Interface41 of interface 41, virtual MAC address 3, and user table entry information corresponding to each terminal in user group 3, or migration instruction 3 includes interface 41. The interface identification Interface41 and the first information, the first information includes virtual MAC address 3.
步骤402:第一UP设备基于该迁移指令向第一终端发送查询请求。Step 402: The first UP device sends a query request to the first terminal based on the migration instruction.
在步骤402中,第一UP设备可以通过如下4021-4022的操作向第一终端发送查询请求,该4021-4022的操作分别为。In step 402, the first UP device may send a query request to the first terminal through the following operations 4021-4022, which are respectively.
4021:第一UP设备基于该迁移指令,获取第一终端的用户信息。4021: The first UP device obtains the user information of the first terminal based on the migration instruction.
在一些实施例中,该迁移指令包括第一用户组中的每个终端对应的用户表项信息,第一用户组包括第一终端,第一终端的用户表项信息包括第一终端的用户信息。在4021中,第一UP设备从该迁移指令包括的第一用户组中的各终端的用户表项信息中,随机选择一个终端的用户表项信息作为第一终端的用户表项信息。从第一终端的用户表项信息中读取第一终端的用户信息。In some embodiments, the migration instruction includes user entry information corresponding to each terminal in the first user group, the first user group includes the first terminal, and the user entry information of the first terminal includes user information of the first terminal. . In 4021, the first UP device randomly selects the user entry information of one terminal as the user entry information of the first terminal from the user entry information of each terminal in the first user group included in the migration instruction. Read the user information of the first terminal from the user entry information of the first terminal.
由于该迁移指令包括各终端的用户表项信息,这样第一UP设备直接从该迁移指令获取到用户表项信息,便于第一UP设备得到用户表项信息,简化算法实现复杂度。 Since the migration instruction includes the user entry information of each terminal, the first UP device directly obtains the user entry information from the migration instruction, which facilitates the first UP device to obtain the user entry information and simplifies the algorithm implementation complexity.
其中,第一UP设备接收该迁移指令后,基于第二接口的接口标识,将第一虚拟MAC地址作为第二接口的一个虚拟MAC地址,并保存第一用户组中的每个终端的用户表项信息。其中,需要说明的是:在将第一虚拟MAC地址作为第二接口的一个虚拟MAC地址后,第二接口增加了一个虚拟MAC地址,例如,第二接口有三个虚拟MAC地址,在将第一虚拟MAC地址作为第二接口的一个虚拟MAC地址后,第二接口有四个虚拟MAC地址。After receiving the migration instruction, the first UP device uses the first virtual MAC address as a virtual MAC address of the second interface based on the interface identifier of the second interface, and saves the user table of each terminal in the first user group. item information. Among them, it should be noted that after the first virtual MAC address is used as a virtual MAC address of the second interface, a virtual MAC address is added to the second interface. For example, the second interface has three virtual MAC addresses, and the first virtual MAC address is added to the second interface. After the virtual MAC address is used as a virtual MAC address for the second interface, the second interface has four virtual MAC addresses.
在一些实施例中,该迁移指令包括第二接口的接口标识和第一信息,第一UP设备基于第一信息和第二接口的接口标识,从第五对应关系中获取第一用户组中的各终端的用户表项信息。从第一用户组中的各终端的用户表项信息中选择一个终端的用户表项信息作为第一终端的用户表项信息。从第一终端的用户表项信息中读取第一终端的用户信息。In some embodiments, the migration instruction includes the interface identifier of the second interface and the first information. The first UP device obtains the first user group in the first user group from the fifth correspondence based on the first information and the interface identifier of the second interface. User entry information for each terminal. Select the user entry information of one terminal from the user entry information of each terminal in the first user group as the user entry information of the first terminal. Read the user information of the first terminal from the user entry information of the first terminal.
例如,参见图2,假设第一UP设备为UP设备1,UP设备1接收迁移指令1,迁移指令1包括接口11的接口标识Interface11和第一信息,第一信息包括虚拟MAC地址1。基于第一信息从如表5所示的第五对应关系中获取第一用户组中的各终端的用户表项信息,获取的用户表项信息中包括第一终端的用户表项信息,从该用户表项信息中获取第一终端的用户信息。For example, referring to Figure 2, assume that the first UP device is UP device 1, and UP device 1 receives migration instruction 1. Migration instruction 1 includes the interface identifier Interface11 of interface 11 and first information. The first information includes virtual MAC address 1. Based on the first information, the user entry information of each terminal in the first user group is obtained from the fifth correspondence relationship shown in Table 5. The obtained user entry information includes the user entry information of the first terminal. From the Obtain the user information of the first terminal from the user entry information.
其中,第一UP设备在获取第一用户组中的各终端的用户表项信息后,基于第二接口的接口标识,将第一虚拟MAC地址作为第二接口的一个虚拟MAC地址。Wherein, after acquiring the user table entry information of each terminal in the first user group, the first UP device uses the first virtual MAC address as a virtual MAC address of the second interface based on the interface identifier of the second interface.
4022:第一UP设备基于第一终端的用户信息,向第一终端发送查询请求。4022: The first UP device sends a query request to the first terminal based on the user information of the first terminal.
步骤403:第一UP设备接收第一终端基于该查询请求发送的查询响应,该查询响应包括第一终端对应的组播信息。Step 403: The first UP device receives a query response sent by the first terminal based on the query request, where the query response includes multicast information corresponding to the first terminal.
其中,在第一终端接收该查询请求后,如果第一终端加入某个组播组,第一终端向第一UP设备发送第一终端对应的组播信息,该组播信息为第一组播源的组播信息,第一组播源对应的组播组是第一终端加入的组播组。如果第一终端没有加入任一组播组,第一终端向第一UP设备发送拒绝响应。Wherein, after the first terminal receives the query request, if the first terminal joins a certain multicast group, the first terminal sends the multicast information corresponding to the first terminal to the first UP device, and the multicast information is the first multicast group. The multicast information of the source, the multicast group corresponding to the first multicast source is the multicast group joined by the first terminal. If the first terminal does not join any multicast group, the first terminal sends a rejection response to the first UP device.
在一些实施例中,第一UP设备将第一终端的用户信息和该组播信息组成一条记录并将该记录保存在第七对应关系中。In some embodiments, the first UP device combines the user information of the first terminal and the multicast information into a record and saves the record in the seventh correspondence relationship.
在一些实施例中,上述查询请求和查询响应均是基于因特网组管理协议(internet group management protocol,IGMP)封装的报文,或者,上述查询请求和查询响应均是基于组播监听者发现协议(multicast listener discover,MLD)封装的报文。In some embodiments, the above query request and query response are both based on Internet group management protocol (internet group management protocol, IGMP) encapsulated messages, or the above query request and query response are based on multicast listener discovery protocol (IGMP). multicast listener discover, MLD) encapsulated message.
步骤404:第一UP设备基于该组播信息,向第一终端转发组播业务。Step 404: The first UP device forwards the multicast service to the first terminal based on the multicast information.
该组播业务是第一组播源组播的组播业务,第一组播源对应的组播组是第一终端加入的组播组。可选地,该组播业务为高速上网(high speed interner,HSI)或IP电视/网络电视(internet protocol TV,IPTV)。The multicast service is a multicast service multicast by the first multicast source, and the multicast group corresponding to the first multicast source is a multicast group joined by the first terminal. Optionally, the multicast service is high speed internet (HSI) or IP TV/Internet protocol TV (IPTV).
在步骤404中,第一UP设备向第二转发设备发送第三业务请求,第三业务请求包括该组播信息,该组播信息包括组播地址。第二转发设备接收第三业务请求,如果第二转发设备已接收该组播信息对应的组播业务,生成第三下行路由信息,第三下行路由信息包括该组播地址和第五下一跳信息,第五下一跳信息指示的下一跳设备为第一UP设备。如果第二转发设备未接收该组播信息对应的组播业务,基于该组播信息包括的组播地址,接收第一组播源组播的组播业务,生成第三下行路由信息,第三下行路由信息包括该组播地址和第五下一跳信息,第五下一跳信息指示的下一跳设备为第一UP设备。 In step 404, the first UP device sends a third service request to the second forwarding device. The third service request includes the multicast information, and the multicast information includes the multicast address. The second forwarding device receives the third service request. If the second forwarding device has received the multicast service corresponding to the multicast information, it generates third downlink routing information. The third downlink routing information includes the multicast address and the fifth next hop. Information, the next hop device indicated by the fifth next hop information is the first UP device. If the second forwarding device does not receive the multicast service corresponding to the multicast information, it receives the multicast service of the first multicast source multicast based on the multicast address included in the multicast information, and generates the third downlink routing information. The downlink routing information includes the multicast address and fifth next hop information. The next hop device indicated by the fifth next hop information is the first UP device.
参见图5,接下来向第一终端发送组播业务,发送的过程为:第二转发设备基于该组播地址接收第一组播源组播的第七业务报文,第七业务报文是属于该组播业务的报文,第七业务报文包括组播信息,该组播信息包括该组播地址,获取包括该组播地址的第三下行路由信息,从第三下行路由信息中获取第五下一跳信息,基于第五下一跳信息向第一UP设备(如UP设备1)发送第七业务报文。Referring to Figure 5, the multicast service is next sent to the first terminal. The sending process is: the second forwarding device receives the seventh service message multicast by the first multicast source based on the multicast address. The seventh service message is For messages belonging to the multicast service, the seventh service message includes multicast information, and the multicast information includes the multicast address. The third downlink routing information including the multicast address is obtained from the third downlink routing information. The fifth next hop information is used to send the seventh service message to the first UP device (such as UP device 1) based on the fifth next hop information.
第一UP设备(如UP设备1)接收第七业务报文,基于第七业务报文包括的组播信息,从第七对应关系中获取第一终端的用户信息,从保存的用户表项信息中获取包括该用户信息的用户表项信息,该用户表项信息是第一终端的用户表项信息。基于该用户表项信息向第一终端发送第八业务报文,第八业务报文是基于第七业务报文得到的。The first UP device (such as UP device 1) receives the seventh service message, and based on the multicast information included in the seventh service message, obtains the user information of the first terminal from the seventh correspondence relationship, and obtains the user entry information from the saved user entry information. Obtain user entry information including the user information, and the user entry information is the user entry information of the first terminal. An eighth service message is sent to the first terminal based on the user entry information, and the eighth service message is obtained based on the seventh service message.
可选地,该用户表项信息包括第一下行路由信息和第一虚拟MAC地址(如虚拟MAC地址1),第一下行路由信息中的第一下一跳信息指示的下一跳设备为第一转发设备,第一UP设备(如UP设备1)通过第一虚拟MAC地址对应的第二接口(如接口11)向第一转发设备发送第八业务报文。第一转发设备接收第八业务报文,向第一终端发送第八业务报文。Optionally, the user entry information includes first downlink routing information and a first virtual MAC address (such as virtual MAC address 1), and the next hop device indicated by the first next hop information in the first downlink routing information. As the first forwarding device, the first UP device (eg, UP device 1) sends the eighth service packet to the first forwarding device through the second interface (eg, interface 11) corresponding to the first virtual MAC address. The first forwarding device receives the eighth service message and sends the eighth service message to the first terminal.
在本申请实施例中,第一UP设备接收CP设备发送的迁移指令,该迁移指令用于指示将第一终端从第二UP设备迁移到第一UP设备上,第一UP设备基于该迁移指令向第一终端发送查询请求,接收第一终端基于该查询请求发送的查询响应,该查询响应包括第一终端对应的组播信息。也就是说,第一UP设备基于迁移指令主动通过该查询请求查询第一终端加入的组播组对应的组播信息,在查询到组播信息,基于该组播信息向第一终端转发组播业务,从而自动恢复组播业务,保证能够正常向第一终端转发组播业务。另外,由于第一UP设备向第一终端查询第一终端对应的组播信息,第一UP设备不需要保存用于获取该组播信息的数据,从而节省第一UP设备的资源,又由于不需要用户手动恢复组播业务,提高用户体验。In this embodiment of the present application, the first UP device receives a migration instruction sent by the CP device. The migration instruction is used to instruct the first terminal to migrate from the second UP device to the first UP device. The first UP device is based on the migration instruction. Send a query request to the first terminal, and receive a query response sent by the first terminal based on the query request, where the query response includes multicast information corresponding to the first terminal. That is to say, the first UP device actively queries the multicast information corresponding to the multicast group joined by the first terminal through the query request based on the migration instruction. After querying the multicast information, it forwards the multicast to the first terminal based on the multicast information. service, thereby automatically restoring the multicast service and ensuring that the multicast service can be forwarded to the first terminal normally. In addition, since the first UP device queries the first terminal for multicast information corresponding to the first terminal, the first UP device does not need to save data used to obtain the multicast information, thereby saving resources of the first UP device, and because no Users are required to manually restore multicast services to improve user experience.
参见图6,本申请实施例提供了一种发送组播业务的方法600,所述方法600应用于图1所示的vBNG系统100,该vBNG系统100包括CP设备、第一UP设备和第二UP设备,所述方法600包括如下步骤。Referring to Figure 6, an embodiment of the present application provides a method 600 for sending multicast services. The method 600 is applied to the vBNG system 100 shown in Figure 1. The vBNG system 100 includes a CP device, a first UP device and a second UP device, the method 600 includes the following steps.
步骤601:第一UP设备接收第二UP设备发送的第一终端对应的组播信息,第一终端是在第二UP设备上上线的终端。Step 601: The first UP device receives the multicast information corresponding to the first terminal sent by the second UP device. The first terminal is a terminal online on the second UP device.
参见图3所示的方法300的步骤306,第二UP设备向第一UP设备发送第一终端待请求业务的组播信息和第一终端的用户信息。第一UP设备接收该的组播信息和第一终端的用户信息,将的组播信息和第一终端的用户信息组成一条记录并保存在第七对应关系中。Referring to step 306 of the method 300 shown in Figure 3, the second UP device sends the multicast information of the service to be requested by the first terminal and the user information of the first terminal to the first UP device. The first UP device receives the multicast information and the user information of the first terminal, forms a record of the multicast information and the user information of the first terminal, and stores it in the seventh correspondence relationship.
在步骤601之后,如果第二UP设备故障或第二UP设备上的第一接口故障,第一接口是第二UP设备上的任一个接口,执行如下步骤602-603的操作。After step 601, if the second UP device fails or the first interface on the second UP device fails, and the first interface is any interface on the second UP device, perform the following operations of steps 602-603.
步骤602:第一UP设备接收迁移指令,该迁移指令用于指示将第一终端迁移至第一UP设备上。Step 602: The first UP device receives a migration instruction, which is used to instruct the first terminal to migrate to the first UP device.
第一UP设备接收CP设备发送的迁移指令。参见图4所示方法400的步骤401,CP设备采用步骤401中介绍的第一方式或第二方式向第一UP设备发送迁移指令。The first UP device receives the migration instruction sent by the CP device. Referring to step 401 of the method 400 shown in Figure 4, the CP device uses the first method or the second method introduced in step 401 to send a migration instruction to the first UP device.
在一些实施例中,该迁移指令包括第二接口的接口标识,第一用户组中的每个终端对应的用户表项信息。或者,该迁移指令包括第二接口的接口标识和第一信息,第一信息包括第二UP设备的设备标识、第一接口的接口标识和第一虚拟MAC地址中的一个或多个。In some embodiments, the migration instruction includes an interface identifier of the second interface and user entry information corresponding to each terminal in the first user group. Alternatively, the migration instruction includes the interface identifier of the second interface and first information, and the first information includes one or more of the device identifier of the second UP device, the interface identifier of the first interface, and the first virtual MAC address.
其中,第一用户组是为第一UP设备上的第一接口对应的用户组,第一用户组中的每个 终端的用户表项信息包括第一虚拟MAC地址,第一虚拟MAC地址是第一用户组对应的虚拟MAC地址,第二接口是第一接口对应的备份接口。Wherein, the first user group is a user group corresponding to the first interface on the first UP device, and each user group in the first user group The user entry information of the terminal includes a first virtual MAC address, the first virtual MAC address is a virtual MAC address corresponding to the first user group, and the second interface is a backup interface corresponding to the first interface.
步骤603:第一UP设备基于该组播信息和该迁移指令,向第一终端转发组播业务。Step 603: The first UP device forwards the multicast service to the first terminal based on the multicast information and the migration instruction.
在步骤603中,第一UP设备通如下6031-6033的操作向第一终端转发组播业务,该6031-6033的操作分别为。In step 603, the first UP device forwards the multicast service to the first terminal through the following operations 6031-6033, which are respectively.
6031:第一UP设备基于该迁移指令,获取第一用户表项信息,第一用户表项信息用于传输第一终端的业务,从第一用户表项信息中获取第一终端的用户信息。6031: The first UP device obtains the first user entry information based on the migration instruction. The first user entry information is used to transmit the service of the first terminal, and obtains the user information of the first terminal from the first user entry information.
在一些实施例中,该迁移指令包括第一用户组中的每个终端对应的用户表项信息,第一用户组包括第一终端,第一终端的用户表项信息包括第一终端的用户信息。In some embodiments, the migration instruction includes user entry information corresponding to each terminal in the first user group, the first user group includes the first terminal, and the user entry information of the first terminal includes user information of the first terminal. .
在一些实施例中,该迁移指令包括第二接口的接口标识和第一信息,第一UP设备基于第一信息和第二接口的接口标识,从第五对应关系中获取第一用户组中的各终端的用户表项信息。从第一用户组中的各终端的用户表项信息中选择一个终端的用户表项信息作为第一终端的用户表项信息。从第一终端的用户表项信息中读取第一终端的用户信息。In some embodiments, the migration instruction includes the interface identifier of the second interface and the first information. The first UP device obtains the first user group in the first user group from the fifth correspondence based on the first information and the interface identifier of the second interface. User entry information for each terminal. Select the user entry information of one terminal from the user entry information of each terminal in the first user group as the user entry information of the first terminal. Read the user information of the first terminal from the user entry information of the first terminal.
6032:第一UP设备基于第一终端的用户信息,从第七对应关系中获取第一终端对应的组播信息。6032: The first UP device obtains the multicast information corresponding to the first terminal from the seventh correspondence relationship based on the user information of the first terminal.
6033:第一UP设备基于该组播信息,向第一终端转发组播业务。6033: The first UP device forwards the multicast service to the first terminal based on the multicast information.
其中,第一UP设备基于该组播信息向第一终端转发组播业务的详细实现过程,参见图4所示方法400的步骤404中的相关内容,在此不再详细说明。For the detailed implementation process of the first UP device forwarding the multicast service to the first terminal based on the multicast information, please refer to the relevant content in step 404 of the method 400 shown in Figure 4, which will not be described in detail here.
在本申请实施例中,第一UP设备接收第二UP设备发送的第一终端对应的组播信息,第一终端是在第二UP设备上上线的终端。第一UP设备接收迁移指令,该迁移指令用于指示将第一终端迁移至第一UP设备上。第一UP设备基于该组播信息和该迁移指令,向第一终端转发组播业务。由于第一UP设备接收第二UP设备发送的第一终端对应的组播信息,这样在第一UP设备接收用于指示迁移第一终端的迁移指令时,第一UP设备可以快速基于该迁移指令和该组播信息向第一终端转发组播业务,即终端上线的UP设备主动将终端对应的组播信息发送给其他UP设备,从而在该UP设备故障时,其他UP设备能够快速自动恢复组播业务,保证能够正常向第一终端转发组播业务,还提高了恢复组播业务的效率。由于不需要用户手动恢复组播业务,提高用户体验。In this embodiment of the present application, the first UP device receives the multicast information corresponding to the first terminal sent by the second UP device, and the first terminal is a terminal that is online on the second UP device. The first UP device receives a migration instruction, which is used to instruct the first terminal to migrate to the first UP device. The first UP device forwards the multicast service to the first terminal based on the multicast information and the migration instruction. Since the first UP device receives the multicast information corresponding to the first terminal sent by the second UP device, when the first UP device receives a migration instruction for instructing to migrate the first terminal, the first UP device can quickly base on the migration instruction. and the multicast information forwards the multicast service to the first terminal, that is, the UP device on which the terminal is online actively sends the multicast information corresponding to the terminal to other UP devices, so that when the UP device fails, other UP devices can quickly and automatically restore the group. broadcast service, ensuring that the multicast service can be forwarded to the first terminal normally, and also improving the efficiency of restoring the multicast service. Since users are not required to manually restore multicast services, user experience is improved.
参见图7,本申请实施例提供了一种发送组播业务的装置700,所述装置700应用于虚拟宽带接入网关vBNG系统中,所述vBNG系统包括所述装置700和第二用户面UP设备。所述装置700可以部署在如图1所示的vBNG系统100中的第一UP设备1021,图2或图5所示系统中的UP设备1上或图4所示方法400中的第一UP设备上。所述装置700包括:Referring to Figure 7, an embodiment of the present application provides a device 700 for sending multicast services. The device 700 is applied in a virtual broadband access gateway vBNG system. The vBNG system includes the device 700 and a second user plane UP. equipment. The device 700 may be deployed on the first UP device 1021 in the vBNG system 100 shown in Figure 1, the UP device 1 in the system shown in Figure 2 or Figure 5, or the first UP in the method 400 shown in Figure 4 on the device. The device 700 includes:
接收单元701,用于接收迁移指令,该迁移指令用于指示将第一终端迁移至所述装置700上,第一终端是在第二UP设备上上线的终端;The receiving unit 701 is configured to receive a migration instruction, which is used to instruct the migration of the first terminal to the device 700. The first terminal is a terminal online on the second UP device;
发送单元702,用于基于该迁移指令向第一终端发送查询请求;The sending unit 702 is configured to send a query request to the first terminal based on the migration instruction;
接收单元701,还用于接收第一终端基于该查询请求发送的查询响应,该查询响应包括第一终端对应的组播信息;The receiving unit 701 is also configured to receive a query response sent by the first terminal based on the query request, where the query response includes multicast information corresponding to the first terminal;
发送单元702,还用于基于该组播信息,向第一终端转发组播业务。The sending unit 702 is also configured to forward the multicast service to the first terminal based on the multicast information.
可选地,接收单元701接收迁移指令的详细实现过程,参见图4所示方法400的步骤401中的相关内容,在此不再详细说明。 Optionally, for the detailed implementation process of receiving the migration instruction by the receiving unit 701, please refer to the relevant content in step 401 of the method 400 shown in Figure 4, which will not be described in detail here.
可选地,发送单元702发送查询请求的详细实现过程,参见图4所示方法400的步骤402中的相关内容,在此不再详细说明。Optionally, for the detailed implementation process of sending the query request by the sending unit 702, please refer to the relevant content in step 402 of the method 400 shown in Figure 4, which will not be described in detail here.
可选地,接收单元701接收查询响应的详细实现过程,参见图4所示方法400的步骤403中的相关内容,在此不再详细说明。Optionally, for the detailed implementation process of receiving the query response by the receiving unit 701, please refer to the relevant content in step 403 of the method 400 shown in Figure 4, which will not be described in detail here.
可选地,发送单元702向第一终端转发组播业务的详细实现过程,参见图4所示方法400的步骤404中的相关内容,在此不再详细说明。Optionally, for the detailed implementation process of the sending unit 702 forwarding the multicast service to the first terminal, please refer to the relevant content in step 404 of the method 400 shown in Figure 4, which will not be described in detail here.
可选地,该组播信息是第一组播源对应的组播信息,第一组播源对应的组播组是第一终端加入的组播组。Optionally, the multicast information is multicast information corresponding to the first multicast source, and the multicast group corresponding to the first multicast source is a multicast group joined by the first terminal.
可选地,该组播信息包括第一组播源的组播地址。Optionally, the multicast information includes the multicast address of the first multicast source.
可选地,所述装置700还包括:Optionally, the device 700 also includes:
处理单元703,用于基于该迁移指令,获取第一用户表项信息,第一用户表项信息用于传输所述第一终端的业务。The processing unit 703 is configured to obtain first user entry information based on the migration instruction, and the first user entry information is used to transmit services of the first terminal.
可选地,处理单元703获取第一用户表项信息的详细实现过程,参见图4所示方法400的步骤4021中的相关内容,在此不再详细说明。Optionally, for the detailed implementation process of the processing unit 703 obtaining the first user entry information, please refer to the relevant content in step 4021 of the method 400 shown in Figure 4, which will not be described in detail here.
可选地,该迁移指令包括:第二UP设备的设备标识、第一接口的接口标识、或者,第一接口的虚拟媒体接入控制层MAC地址,第一接口是第一终端在第二UP设备上上线的接口。Optionally, the migration instruction includes: the device identification of the second UP device, the interface identification of the first interface, or the virtual media access control layer MAC address of the first interface. The first interface is the first terminal in the second UP. The online interface on the device.
可选地,该迁移指令包括第一用户表项信息,第一用户表项信息用于传输第一终端的业务。Optionally, the migration instruction includes first user entry information, and the first user entry information is used to transmit services of the first terminal.
可选地,接收单元701,用于接收CP设备发送的迁移指令。Optionally, the receiving unit 701 is used to receive the migration instruction sent by the CP device.
可选地,该查询请求和查询响应均是基于因特网组管理协议IGMP封装的报文,或者,该查询请求和查询响应均是基于组播监听者发现协议MLD封装的报文。Optionally, both the query request and the query response are messages encapsulated based on the Internet Group Management Protocol IGMP, or both the query request and the query response are messages encapsulated based on the Multicast Listener Discovery Protocol MLD.
可选地,所述装置700和第二UP设备位于同一供电组,或者,所述装置700和第二UP设备位于不同的供电组,该供电组包括多个UP设备。Optionally, the device 700 and the second UP device are located in the same power supply group, or the device 700 and the second UP device are located in different power supply groups, and the power supply group includes multiple UP devices.
在本申请实施例中,由于在接收单元接收用于指示迁移第一终端的迁移指令时,发送单元基于该迁移指令向第一终端发送查询请求,接收单元接收第一终端基于该查询请求发送的查询响应,该查询响应包括第一终端对应的组播信息。也就是说,发送单元基于迁移指令主动通过该查询请求查询第一终端加入的组播组对应的组播信息,在查询到组播信息,基于该组播信息向第一终端转发组播业务,从而自动恢复组播业务,保证能够正常向第一终端转发组播业务,提高用户体验。In the embodiment of the present application, when the receiving unit receives the migration instruction for instructing to migrate the first terminal, the sending unit sends a query request to the first terminal based on the migration instruction, and the receiving unit receives the query request sent by the first terminal based on the query request. Query response, the query response includes multicast information corresponding to the first terminal. That is to say, the sending unit actively queries the multicast information corresponding to the multicast group joined by the first terminal through the query request based on the migration instruction. After querying the multicast information, it forwards the multicast service to the first terminal based on the multicast information. Thus, the multicast service is automatically restored, ensuring that the multicast service can be forwarded to the first terminal normally and improving the user experience.
参见图8,本申请实施例提供了一种发送组播业务的装置800,所述装置800应用于虚拟宽带接入网关vBNG系统中,所述vBNG系统包括所述装置800和第二用户面UP设备。所述装置800可以部署在如图1所示的vBNG系统100中的第一UP设备1021,图2或图5所示系统中的UP设备1上或图6所示方法600中的第一UP设备上。所述装置800包括:Referring to Figure 8, an embodiment of the present application provides a device 800 for sending multicast services. The device 800 is applied in a virtual broadband access gateway vBNG system. The vBNG system includes the device 800 and a second user plane UP. equipment. The device 800 may be deployed on the first UP device 1021 in the vBNG system 100 shown in Figure 1, the UP device 1 in the system shown in Figure 2 or Figure 5, or the first UP in the method 600 shown in Figure 6 on the device. The device 800 includes:
接收单元801,用于接收第二UP设备发送的第一终端对应的组播信息,第一终端是在第二UP设备上上线的终端;The receiving unit 801 is configured to receive multicast information corresponding to the first terminal sent by the second UP device. The first terminal is a terminal online on the second UP device;
接收单元801,还用于接收迁移指令,该迁移指令用于指示将第一终端迁移至所述装置800上;The receiving unit 801 is also configured to receive a migration instruction, which is used to instruct the first terminal to migrate to the device 800;
发送单元802,用于基于该组播信息和该迁移指令,向第一终端转发组播业务。The sending unit 802 is configured to forward the multicast service to the first terminal based on the multicast information and the migration instruction.
可选地,接收单元801接收第一终端对应的组播信息的详细实现过程,参见图6所示方 法600的步骤601中的相关内容,在此不再详细说明。Optionally, for the detailed implementation process of the receiving unit 801 receiving the multicast information corresponding to the first terminal, please refer to the method shown in Figure 6 The relevant content in step 601 of method 600 will not be described in detail here.
可选地,接收单元801接收迁移指令的详细实现过程,参见图6所示方法600的步骤602中的相关内容,在此不再详细说明。Optionally, for the detailed implementation process of receiving the migration instruction by the receiving unit 801, please refer to the relevant content in step 602 of the method 600 shown in Figure 6, which will not be described in detail here.
可选地,发送单元802向第一终端转发组播业务的详细实现过程,参见图6所示方法600的步骤603中的相关内容,在此不再详细说明。Optionally, for the detailed implementation process of the sending unit 802 forwarding the multicast service to the first terminal, please refer to the relevant content in step 603 of the method 600 shown in Figure 6, which will not be described in detail here.
可选地,所述装置800还包括:Optionally, the device 800 also includes:
处理单元803,用于基于所述迁移指令,获取第一用户表项信息,所述第一用户表项信息用于传输所述第一终端的业务。The processing unit 803 is configured to obtain first user entry information based on the migration instruction, and the first user entry information is used to transmit services of the first terminal.
可选地,处理单元803获取第一用户表项信息的详细实现过程,参见图6所示方法600的步骤602中的相关内容,在此不再详细说明。Optionally, for the detailed implementation process of the processing unit 803 obtaining the first user entry information, please refer to the relevant content in step 602 of the method 600 shown in FIG. 6, which will not be described in detail here.
可选地,迁移指令包括:第二UP设备的设备标识、第一接口的接口标识、或者,第一接口的虚拟媒体接入控制层MAC地址,第一接口是所述第一终端在第二UP设备上上线的接口。Optionally, the migration instruction includes: the device identifier of the second UP device, the interface identifier of the first interface, or the virtual media access control layer MAC address of the first interface, and the first interface is where the first terminal is located in the second UP device. The online interface on the UP device.
可选地,迁移指令包括第一用户表项信息,第一用户表项信息用于传输第一终端的业务。Optionally, the migration instruction includes first user entry information, and the first user entry information is used to transmit services of the first terminal.
可选地,发送单元802,还用于:Optionally, the sending unit 802 is also used to:
向第二UP设备发送第二终端对应的组播信息,第二终端是在所述装置800上上线的终端。Send multicast information corresponding to the second terminal to the second UP device. The second terminal is a terminal online on the device 800 .
可选地,所述装置800和第二UP设备位于同一供电组,或者,所述装置800和第二UP设备位于不同的供电组,供电组包括多个UP设备。Optionally, the device 800 and the second UP device are located in the same power supply group, or the device 800 and the second UP device are located in different power supply groups, and the power supply group includes multiple UP devices.
可选地,第二UP设备包括第一接口,第一接口是第一终端上线的接口,所述装置800包括第二接口,第二接口是在第一终端迁移至所述装置800后第一终端上线的接口,第一接口和第二接口是同一温备份组中的两个接口。Optionally, the second UP device includes a first interface. The first interface is an interface through which the first terminal goes online. The device 800 includes a second interface. The second interface is the first interface after the first terminal migrates to the device 800. The interface for the terminal to go online. The first interface and the second interface are two interfaces in the same warm backup group.
可选地,在温备份组中第二接口是第一接口针对第一虚拟MAC地址的备份接口,第一虚拟MAC地址是第一接口的地址且第一虚拟MAC地址与第一终端相对应。Optionally, in the warm backup group, the second interface is a backup interface of the first interface for the first virtual MAC address, the first virtual MAC address is the address of the first interface, and the first virtual MAC address corresponds to the first terminal.
可选地,该组播信息是第一组播源对应的组播信息,第一组播源对应的组播组是第一终端加入的组播组。Optionally, the multicast information is multicast information corresponding to the first multicast source, and the multicast group corresponding to the first multicast source is a multicast group joined by the first terminal.
可选地,第一组播源的组播信息包括第一组播源的组播地址。Optionally, the multicast information of the first multicast source includes the multicast address of the first multicast source.
在本申请实施例中,接收单元接收第二UP设备发送的第一终端对应的组播信息,第一终端是在第二UP设备上上线的终端,以及接收迁移指令,该迁移指令用于指示将第一终端迁移至第一UP设备上。发送单元基于该组播信息和该迁移指令,向第一终端转发组播业务。由于接收单元接收第二UP设备发送的第一终端对应的组播信息,这样在接收单元接收用于指示迁移第一终端的迁移指令时,发送单元基于该迁移指令和该组播信息向第一终端转发组播业务,即终端上线的UP设备主动将终端对应的组播信息发送给其他UP设备,从而在该UP设备故障时,其他UP设备能够自动恢复组播业务,保证能够正常向第一终端转发组播业务。In this embodiment of the present application, the receiving unit receives multicast information corresponding to the first terminal sent by the second UP device. The first terminal is a terminal online on the second UP device, and receives a migration instruction. The migration instruction is used to indicate Migrate the first terminal to the first UP device. The sending unit forwards the multicast service to the first terminal based on the multicast information and the migration instruction. Since the receiving unit receives the multicast information corresponding to the first terminal sent by the second UP device, when the receiving unit receives the relocation instruction for instructing to migrate the first terminal, the sending unit sends a message to the first terminal based on the relocation instruction and the multicast information. The terminal forwards the multicast service, that is, the UP device on which the terminal is online actively sends the multicast information corresponding to the terminal to other UP devices, so that when the UP device fails, the other UP devices can automatically restore the multicast service, ensuring that the first UP device can normally forward the multicast service to the first UP device. The terminal forwards multicast services.
参见图9,本申请实施例提供了一种虚拟宽带接入网关vBNG系统900,所述vBNG系统包括CP设备901、第一用户面UP设备902和第二UP设备903,所述vBNG系统900可以为图1所示的vBNG系统,图3所示方法300应用的vBNG系统100,或者,图6所示方法600应用的vBNG系统100。所述vBNG系统900包括: Referring to Figure 9, an embodiment of the present application provides a virtual broadband access gateway vBNG system 900. The vBNG system includes a CP device 901, a first user plane UP device 902 and a second UP device 903. The vBNG system 900 can It is the vBNG system shown in Figure 1, the vBNG system 100 to which the method 300 shown in Figure 3 is applied, or the vBNG system 100 to which the method 600 shown in Figure 6 is applied. The vBNG system 900 includes:
第二UP设备903,用于向第一UP设备发送第一终端对应的组播信息,第一终端是在第二UP设备903上上线的终端;The second UP device 903 is used to send multicast information corresponding to the first terminal to the first UP device. The first terminal is a terminal that is online on the second UP device 903;
CP设备901,用于基于第二UP设备903故障,向第一UP设备902发送迁移指令,该迁移指令用于指示将第一终端迁移至第一UP设备902上;The CP device 901 is configured to send a migration instruction to the first UP device 902 based on the failure of the second UP device 903. The migration instruction is used to instruct the first terminal to migrate to the first UP device 902;
第一UP设备902,用于基于该组播信息和所述迁移指令,向第一终端转发组播业务。The first UP device 902 is configured to forward the multicast service to the first terminal based on the multicast information and the migration instruction.
可选地,第二UP设备903向第一UP设备发送第一终端对应的组播信息的详细实现过程,参见图6所示方法600的步骤601中的相关内容,在此不再详细说明。Optionally, for the detailed implementation process of the second UP device 903 sending the multicast information corresponding to the first terminal to the first UP device, please refer to the relevant content in step 601 of the method 600 shown in Figure 6, which will not be described in detail here.
可选地,CP设备901向第一UP设备902发送迁移指令的详细实现过程,参见图6所示方法600的步骤602中的相关内容,在此不再详细说明。Optionally, for the detailed implementation process of the CP device 901 sending the migration instruction to the first UP device 902, please refer to the relevant content in step 602 of the method 600 shown in Figure 6, which will not be described in detail here.
可选地第一UP设备902向第一终端转发组播业务的详细实现过程,参见图6所示方法600的步骤603中的相关内容,在此不再详细说明。Optionally, for the detailed implementation process of the first UP device 902 forwarding the multicast service to the first terminal, please refer to the relevant content in step 603 of the method 600 shown in Figure 6, which will not be described in detail here.
可选地,第二UP设备903,还用于向第三UP设备发送第一终端对应的组播信息。Optionally, the second UP device 903 is also configured to send multicast information corresponding to the first terminal to the third UP device.
可选地,第一UP设备、第二UP设备和第三UP设备是同一温备份组中的设备。Optionally, the first UP device, the second UP device and the third UP device are devices in the same warm backup group.
可选地,该组播信息是第一组播源对应的组播信息,第一组播源对应的组播组是第一终端加入的组播组。Optionally, the multicast information is multicast information corresponding to the first multicast source, and the multicast group corresponding to the first multicast source is a multicast group joined by the first terminal.
可选地,第一组播源的组播信息包括第一组播源的组播地址。Optionally, the multicast information of the first multicast source includes the multicast address of the first multicast source.
在本申请实施例中,由于第二UP设备向第一UP设备发送的第一终端对应的组播信息,这样在第一UP设备接收到CP设备发送的用于指示迁移第一终端的迁移指令时,第一UP设备基于该迁移指令和该组播信息向第一终端转发组播业务,即终端上线的UP设备主动将终端对应的组播信息发送给其他UP设备,从而在该UP设备故障时,其他UP设备能够自动恢复组播业务,保证能够正常向第一终端转发组播业务。In this embodiment of the present application, since the second UP device sends the multicast information corresponding to the first terminal to the first UP device, the first UP device receives the migration instruction sent by the CP device to instruct the migration of the first terminal. At that time, the first UP device forwards the multicast service to the first terminal based on the migration instruction and the multicast information. That is, the UP device on which the terminal is online actively sends the multicast information corresponding to the terminal to other UP devices, so that when the UP device fails, , other UP devices can automatically restore multicast services to ensure that multicast services can be forwarded to the first terminal normally.
参见图10,本申请实施例提供了一种发送业务报文的装置1000示意图。所述装置1000可以是上述任意实施例提供的第一UP设备,例如,所述装置1000可以是图1所示vBNG100中的第一UP设备1021,或图3所示方法300中的第一UP设备或图4所示方法400中的第一UP设备。所述装置1000包括至少一个处理器1001,内部连接1002,存储器1003以及至少一个收发器1004。Referring to Figure 10, an embodiment of the present application provides a schematic diagram of a device 1000 for sending service messages. The device 1000 may be the first UP device provided in any of the above embodiments. For example, the device 1000 may be the first UP device 1021 in the vBNG 100 shown in Figure 1, or the first UP device in the method 300 shown in Figure 3. device or the first UP device in the method 400 shown in FIG. 4 . The device 1000 includes at least one processor 1001, internal connections 1002, memory 1003 and at least one transceiver 1004.
所述装置1000是一种硬件结构的装置,可以用于实现图8所述的装置800中的功能模块。例如,本领域技术人员可以想到图8所示的装置800中的接收单元801、发送单元802和处理单元803对应的功能可以通过该至少一个处理器1001调用存储器1003中的代码来实现。The device 1000 is a device with a hardware structure and can be used to implement the functional modules in the device 800 shown in FIG. 8 . For example, those skilled in the art can imagine that the corresponding functions of the receiving unit 801, the sending unit 802 and the processing unit 803 in the device 800 shown in FIG. 8 can be implemented by calling the code in the memory 1003 by the at least one processor 1001.
所述装置1000还可以用于实现上述任一实施例中的第一UP设备的功能。The device 1000 can also be used to implement the function of the first UP device in any of the above embodiments.
上述处理器1001可以是一个通用中央处理器(central processing unit,CPU),网络处理器(network processor,NP),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。The above-mentioned processor 1001 may be a general central processing unit (CPU), a network processor (NP), a microprocessor, an application-specific integrated circuit (ASIC), or a or A plurality of integrated circuits used to control the execution of the program of this application.
上述内部连接1002可包括一通路,在上述组件之间传送信息。内部连接1002可以为单板或总线等。The internal connection 1002 may include a path for transmitting information between the components. The internal connection 1002 may be a single board or a bus, etc.
上述至少一个收发器1004,用于与其他设备或通信网络通信。The above-mentioned at least one transceiver 1004 is used to communicate with other devices or communication networks.
上述存储器1003可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically  erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过总线与处理器相连接。存储器也可以和处理器集成在一起。The above-mentioned memory 1003 can be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM) or other types that can store information and instructions. type of dynamic storage device, which can also be electrically erasable programmable read-only memory (electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.) , disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto. The memory can exist independently and be connected to the processor through a bus. Memory can also be integrated with the processor.
其中,存储器1003用于存储执行本申请方案的应用程序代码,并由处理器1001来控制执行。处理器1001用于执行存储器1003中存储的应用程序代码,以及配合至少一个收发器1004,从而使得所述装置1000实现本专利方法中的功能。Among them, the memory 1003 is used to store the application code for executing the solution of the present application, and the processor 1001 controls the execution. The processor 1001 is used to execute the application code stored in the memory 1003, and cooperate with at least one transceiver 1004, so that the device 1000 implements the functions in the patent method.
在具体实现中,作为一种实施例,处理器1001可以包括一个或多个CPU,例如图10中的CPU0和CPU1。In specific implementation, as an embodiment, the processor 1001 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 10 .
在具体实现中,作为一种实施例,所述装置1000可以包括多个处理器,例如图10中的处理器1001和处理器1007。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。In specific implementation, as an embodiment, the device 1000 may include multiple processors, such as the processor 1001 and the processor 1007 in Figure 10 . Each of these processors may be a single-CPU processor or a multi-CPU processor. A processor here may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
参见图11,本申请实施例提供了一种发送业务报文的装置1100示意图。所述装置1100可以是上述任意实施例提供的第一UP设备,例如,所述装置1100可以是图1所示vBNG110中的第一UP设备1121,或图3所示方法300中的第一UP设备或图6所示方法600中的第一UP设备。所述装置1100包括至少一个处理器1101,内部连接1102,存储器1103以及至少一个收发器1104。Referring to Figure 11, an embodiment of the present application provides a schematic diagram of a device 1100 for sending service messages. The device 1100 may be the first UP device provided in any of the above embodiments. For example, the device 1100 may be the first UP device 1121 in the vBNG 110 shown in Figure 1 , or the first UP device in the method 300 shown in Figure 3 device or the first UP device in the method 600 shown in FIG. 6 . The device 1100 includes at least one processor 1101, internal connections 1102, memory 1103 and at least one transceiver 1104.
所述装置1100是一种硬件结构的装置,可以用于实现图9所述的装置900中的功能模块。例如,本领域技术人员可以想到图9所示的装置900中的接收单元901、发送单元902和处理单元903对应的功能可以通过该至少一个处理器1101调用存储器1103中的代码来实现。The device 1100 is a device with a hardware structure and can be used to implement the functional modules in the device 900 shown in FIG. 9 . For example, those skilled in the art can imagine that the corresponding functions of the receiving unit 901, the sending unit 902 and the processing unit 903 in the device 900 shown in FIG. 9 can be implemented by calling the code in the memory 1103 by the at least one processor 1101.
所述装置1100还可以用于实现上述任一实施例中的第一UP设备的功能。The device 1100 can also be used to implement the function of the first UP device in any of the above embodiments.
上述处理器1101可以是一个通用中央处理器(central processing unit,CPU),网络处理器(network processor,NP),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。The above-mentioned processor 1101 may be a general central processing unit (CPU), a network processor (NP), a microprocessor, an application-specific integrated circuit (ASIC), or a or A plurality of integrated circuits used to control the execution of the program of this application.
上述内部连接1102可包括一通路,在上述组件之间传送信息。内部连接1102可以为单板或总线等。The internal connection 1102 may include a path for transmitting information between the components. The internal connection 1102 may be a single board or a bus, etc.
上述至少一个收发器1104,用于与其他设备或通信网络通信。The above-mentioned at least one transceiver 1104 is used to communicate with other devices or communication networks.
上述存储器1103可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过总线与处理器相连接。存储器也可以和处理器集成在一起。The above-mentioned memory 1103 can be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM) or other types that can store information and instructions. Type of dynamic storage device, it can also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disk storage, optical disc Storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store the desired program code in the form of instructions or data structures and can be used by Any other media accessible by a computer, but not limited to this. The memory can exist independently and be connected to the processor through a bus. Memory can also be integrated with the processor.
其中,存储器1103用于存储执行本申请方案的应用程序代码,并由处理器1101来控制 执行。处理器1101用于执行存储器1103中存储的应用程序代码,以及配合至少一个收发器1104,从而使得所述装置1100实现本专利方法中的功能。Among them, the memory 1103 is used to store the application program code for executing the solution of the present application, and is controlled by the processor 1101 implement. The processor 1101 is used to execute the application program code stored in the memory 1103, and cooperate with at least one transceiver 1104, so that the device 1100 implements the functions in the patent method.
在具体实现中,作为一种实施例,处理器1101可以包括一个或多个CPU,例如图11中的CPU0和CPU1。In specific implementation, as an embodiment, the processor 1101 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 11 .
在具体实现中,作为一种实施例,所述装置1100可以包括多个处理器,例如图11中的处理器1101和处理器1107。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。In specific implementation, as an embodiment, the device 1100 may include multiple processors, such as the processor 1101 and the processor 1107 in FIG. 11 . Each of these processors may be a single-CPU processor or a multi-CPU processor. A processor here may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
参见图12,图12示出了本申请一个示例性实施例提供的发送业务报文的设备1200的结构示意图,可选地,该设备1200为上述任意实施例的第一UP设备。例如,该设备1200为是图1所示vBNG100中的第一UP设备1021,或图3所示方法300中的第一UP设备或图4所示方法400中的第一UP设备,或图7所示装置700,或图10所述装置1000。换句话说,上述图3所示的方法300或图4所示的方法400中的第一UP设备可以通过图12所示的设备1200实现。Referring to Figure 12, Figure 12 shows a schematic structural diagram of a device 1200 for sending service messages provided by an exemplary embodiment of the present application. Optionally, the device 1200 is the first UP device of any of the above embodiments. For example, the device 1200 is the first UP device 1021 in the vBNG 100 shown in Figure 1, or the first UP device in the method 300 shown in Figure 3, or the first UP device in the method 400 shown in Figure 4, or Figure 7 Device 700 is shown, or device 1000 is described in Figure 10. In other words, the first UP device in the method 300 shown in FIG. 3 or the method 400 shown in FIG. 4 can be implemented by the device 1200 shown in FIG. 12 .
如图12所示,设备1200包括:主控板1201和接口板1202。As shown in Figure 12, device 1200 includes: a main control board 1201 and an interface board 1202.
主控板1201也称为主处理单元(main processing unit,MPU)或路由处理卡(route processor card),主控板1201用于对设备1200中各个组件的控制和管理,包括路由计算、设备管理、设备维护、协议处理功能。主控板1201包括:中央处理器12011和存储器12012。The main control board 1201 is also called the main processing unit (MPU) or the route processor card. The main control board 1201 is used to control and manage each component in the device 1200, including route calculation and device management. , equipment maintenance, protocol processing functions. The main control board 1201 includes: a central processing unit 12011 and a memory 12012.
接口板1202也称为线路接口单元卡(line processing unit,LPU)、线卡(line card)或业务板。接口板1202用于提供各种业务接口并实现数据包的转发。业务接口包括而不限于以太网接口、POS(Packet over SONET/SDH)接口等,以太网接口例如是灵活以太网业务接口(Flexible Ethernet Clients,FlexE Clients)。接口板1202包括:中央处理器12021、网络处理器12022、转发表项存储器12023和物理接口卡(physical interface card,PIC)12024。The interface board 1202 is also called a line processing unit (LPU), line card or service board. The interface board 1202 is used to provide various service interfaces and implement data packet forwarding. Business interfaces include but are not limited to Ethernet interfaces, POS (Packet over SONET/SDH) interfaces, etc. Ethernet interfaces are, for example, Flexible Ethernet Clients (FlexE Clients). The interface board 1202 includes: a central processor 12021, a network processor 12022, a forwarding entry memory 12023, and a physical interface card (physical interface card, PIC) 12024.
接口板1202上的中央处理器12021用于对接口板1202进行控制管理并与主控板1201上的中央处理器12011进行通信。The central processor 12021 on the interface board 1202 is used to control and manage the interface board 1202 and communicate with the central processor 12011 on the main control board 1201.
网络处理器12022用于实现报文的转发处理。网络处理器12022的形态可以是转发芯片。转发芯片可以是网络处理器(network processor,NP)。在一些实施例中,转发芯片可以通过专用集成电路(application-specific integrated circuit,ASIC)或现场可编程门阵列(field programmable gate array,FPGA)实现。具体而言,网络处理器12022用于基于转发表项存储器12023保存的转发表转发接收到的报文,如果报文的目的地址为设备1200的地址,则将该报文上送至CPU(如中央处理器12021)处理;如果报文的目的地址不是设备1200的地址,则根据该目的地址从转发表中查找到该目的地址对应的下一跳和出接口,将该报文转发到该目的地址对应的出接口。其中,上行报文的处理可以包括:报文入接口的处理,转发表查找;下行报文的处理可以包括:转发表查找等等。在一些实施例中,中央处理器也可执行转发芯片的功能,比如基于通用CPU实现软件转发,从而接口板中不需要转发芯片。The network processor 12022 is used to implement packet forwarding processing. The network processor 12022 may be in the form of a forwarding chip. The forwarding chip can be a network processor (NP). In some embodiments, the forwarding chip can be implemented through an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA). Specifically, the network processor 12022 is used to forward the received message based on the forwarding table stored in the forwarding table memory 12023. If the destination address of the message is the address of the device 1200, then upload the message to the CPU (such as The central processor 12021) processes; if the destination address of the message is not the address of the device 1200, the next hop and outgoing interface corresponding to the destination address are found from the forwarding table based on the destination address, and the message is forwarded to the destination. The outbound interface corresponding to the address. Among them, the processing of uplink packets may include: processing of the packet incoming interface, forwarding table search; and the processing of downlink packets may include: forwarding table search, etc. In some embodiments, the central processing unit can also perform the function of the forwarding chip, such as implementing software forwarding based on a general-purpose CPU, so that there is no need for a forwarding chip in the interface board.
物理接口卡12023用于实现物理层的对接功能,原始的流量由此进入接口板1202,以及处理后的报文从该物理接口卡1202发出。物理接口卡12023也称为子卡,可安装在接口板1202上,负责将光电信号转换为报文并对报文进行合法性检查后转发给网络处理器12022处 理。在一些实施例中,中央处理器也可执行网络处理器12022的功能,比如基于通用CPU实现软件转发,从而物理接口卡12023中不需要网络处理器12022。The physical interface card 12023 is used to implement the docking function of the physical layer. The original traffic enters the interface board 1202 through this, and the processed packets are sent out from the physical interface card 1202. The physical interface card 12023 is also called a daughter card and can be installed on the interface board 1202. It is responsible for converting photoelectric signals into messages and checking the validity of the messages before forwarding them to the network processor 12022. reason. In some embodiments, the central processor can also perform the functions of the network processor 12022, such as implementing software forwarding based on a general-purpose CPU, so that the network processor 12022 is not required in the physical interface card 12023.
可选地,设备1200包括多个接口板,例如设备1200还包括接口板1203,接口板1203包括:中央处理器12031、网络处理器12032、转发表项存储器12033和物理接口卡12034。接口板1203中各部件的功能和实现方式与接口板1202相同或相似,在此不再赘述。Optionally, the device 1200 includes multiple interface boards. For example, the device 1200 also includes an interface board 1203. The interface board 1203 includes: a central processor 12031, a network processor 12032, a forwarding entry memory 12033, and a physical interface card 12034. The functions and implementation methods of each component in the interface board 1203 are the same as or similar to those of the interface board 1202, and will not be described again here.
可选地,设备1200还包括交换网板1204。交换网板1204也可以称为交换网板单元(switch fabric unit,SFU)。在设备1200有多个接口板的情况下,交换网板1204用于完成各接口板之间的数据交换。例如,接口板1202和接口板1203之间可以通过交换网板1204通信。Optionally, the device 1200 also includes a switching network board 1204. The switching fabric unit 1204 may also be called a switching fabric unit (switch fabric unit, SFU). When the device 1200 has multiple interface boards, the switching network board 1204 is used to complete data exchange between the interface boards. For example, the interface board 1202 and the interface board 1203 can communicate through the switching network board 1204.
主控板1201和接口板1202耦合。例如。主控板1201、接口板1202和接口板1203,以及交换网板1204之间通过系统总线与系统背板相连实现互通。在一种可能的实现方式中,主控板1201和接口板1202之间建立进程间通信协议(inter-process communication,IPC)通道,主控板1201和接口板1202之间通过IPC通道进行通信。The main control board 1201 and the interface board 1202 are coupled. For example. The main control board 1201, the interface board 1202, the interface board 1203, and the switching network board 1204 are connected to the system backplane through a system bus to achieve intercommunication. In a possible implementation, an inter-process communication protocol (IPC) channel is established between the main control board 1201 and the interface board 1202, and the main control board 1201 and the interface board 1202 communicate through the IPC channel.
在逻辑上,设备1200包括控制面和转发面,控制面包括主控板1201和中央处理器,转发面包括执行转发的各个组件,比如转发表项存储器12023、物理接口卡12024和网络处理器12022。控制面执行路由器、生成转发表、处理信令和协议报文、配置与维护设备的状态等功能,控制面将生成的转发表下发给转发面,在转发面,网络处理器12022基于控制面下发的转发表对物理接口卡12024收到的报文查表转发。控制面下发的转发表可以保存在转发表项存储器12023中。在有些实施例中,控制面和转发面可以完全分离,不在同一设备上。Logically, device 1200 includes a control plane and a forwarding plane. The control plane includes a main control board 1201 and a central processor. The forwarding plane includes various components that perform forwarding, such as forwarding entry memory 12023, physical interface card 12024, and network processor 12022. . The control plane executes functions such as router, generates forwarding tables, processes signaling and protocol messages, configures and maintains the status of devices. The control plane sends the generated forwarding tables to the forwarding plane. On the forwarding plane, the network processor 12022 is based on the control plane. The delivered forwarding table looks up the packets received by physical interface card 12024 and forwards them. The forwarding table delivered by the control plane can be stored in the forwarding table item storage 12023. In some embodiments, the control plane and forwarding plane may be completely separate and not on the same device.
值得说明的是,主控板1201可能有一块或多块,有多块的时候可以包括主用主控板和备用主控板。接口板可能有一块或多块,设备1200的数据处理能力越强,提供的接口板越多。接口板上的物理接口卡也可以有一块或多块。交换网板1204可能没有,也可能有一块或多块,有多块的时候可以共同实现负荷分担冗余备份。在集中式转发架构下,设备1200可以不需要交换网板,接口板承担整个系统的业务数据的处理功能。在分布式转发架构下,设备1200可以有至少一块交换网板1204,通过交换网板1204实现多块接口板之间的数据交换,提供大容量的数据交换和处理能力。所以,分布式架构的设备1200的数据接入和处理能力要大于集中式架构的设备。可选地,设备1200的形态也可以是只有一块板卡,即没有交换网板,接口板和主控板的功能集成在该一块板卡上,此时接口板上的中央处理器和主控板上的中央处理器在该一块板卡上可以合并为一个中央处理器,执行两者叠加后的功能,这种形态设备的数据交换和处理能力较低(例如,低端交换机或路由器等网络设备)。具体采用哪种架构,取决于具体的组网部署场景,此处不做任何限定。It is worth noting that there may be one or more main control boards 1201, and when there are multiple main control boards, they may include a main main control board and a backup main control board. There may be one or more interface boards. The stronger the data processing capability of the device 1200, the more interface boards are provided. There can also be one or more physical interface cards on the interface board. There may be no switching network board 1204, or there may be one or more switching network boards. When there are multiple switching network boards, load sharing and redundant backup can be realized together. Under the centralized forwarding architecture, the device 1200 does not need a switching network board, and the interface board is responsible for processing the service data of the entire system. Under the distributed forwarding architecture, the device 1200 can have at least one switching network board 1204. The switching network board 1204 implements data exchange between multiple interface boards and provides large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of the distributed architecture device 1200 are greater than those of the centralized architecture device. Optionally, the device 1200 can also be in the form of only one board, that is, there is no switching network board. The functions of the interface board and the main control board are integrated on this board. In this case, the central processor and the main control board on the interface board The central processor on the board can be combined into one central processor on this board to perform the superimposed functions of the two. This form of equipment has low data exchange and processing capabilities (for example, low-end switches or routers and other networks equipment). The specific architecture used depends on the specific networking deployment scenario and is not limited here.
参见图13,图13示出了本申请一个示例性实施例提供的发送业务报文的设备1300的结构示意图,可选地,该设备1300为上述任意实施例的第一UP设备。例如,该设备1300为是图1所示vBNG100中的第一UP设备1021,或图3所示方法300中的第一UP设备或图6所示方法600中的第一UP设备,或图8所示装置800,或图11所述装置1100。换句话说,上述图3所示的方法300或图6所示的方法600中的第一UP设备可以通过图13所示的设备1300实现。Referring to Figure 13, Figure 13 shows a schematic structural diagram of a device 1300 for sending service messages provided by an exemplary embodiment of the present application. Optionally, the device 1300 is the first UP device of any of the above embodiments. For example, the device 1300 is the first UP device 1021 in the vBNG 100 shown in Figure 1, or the first UP device in the method 300 shown in Figure 3, or the first UP device in the method 600 shown in Figure 6, or Figure 8 Device 800 is shown, or device 1100 is described in Figure 11. In other words, the first UP device in the method 300 shown in FIG. 3 or the method 600 shown in FIG. 6 can be implemented by the device 1300 shown in FIG. 13 .
如图13所示,设备1300包括:主控板1301和接口板1302。As shown in Figure 13, device 1300 includes: a main control board 1301 and an interface board 1302.
主控板1301也称为主处理单元(main processing unit,MPU)或路由处理卡(route processor card),主控板1301用于对设备1300中各个组件的控制和管理,包括路由计算、设备管理、 设备维护、协议处理功能。主控板1301包括:中央处理器13011和存储器13012。The main control board 1301 is also called a main processing unit (MPU) or a route processor card. The main control board 1301 is used to control and manage various components in the device 1300, including route calculation and device management. , Equipment maintenance and protocol processing functions. The main control board 1301 includes: a central processing unit 13011 and a memory 13012.
接口板1302也称为线路接口单元卡(line processing unit,LPU)、线卡(line card)或业务板。接口板1302用于提供各种业务接口并实现数据包的转发。业务接口包括而不限于以太网接口、POS(Packet over SONET/SDH)接口等,以太网接口例如是灵活以太网业务接口(Flexible Ethernet Clients,FlexE Clients)。接口板1302包括:中央处理器13021、网络处理器13022、转发表项存储器13023和物理接口卡(physical interface card,PIC)13024。The interface board 1302 is also called a line interface unit card (line processing unit, LPU), line card (line card) or service board. The interface board 1302 is used to provide various service interfaces and implement data packet forwarding. Business interfaces include but are not limited to Ethernet interfaces, POS (Packet over SONET/SDH) interfaces, etc. Ethernet interfaces are, for example, Flexible Ethernet Clients (FlexE Clients). The interface board 1302 includes: a central processor 13021, a network processor 13022, a forwarding entry memory 13023, and a physical interface card (physical interface card, PIC) 13024.
接口板1302上的中央处理器13021用于对接口板1302进行控制管理并与主控板1301上的中央处理器13011进行通信。The central processor 13021 on the interface board 1302 is used to control and manage the interface board 1302 and communicate with the central processor 13011 on the main control board 1301.
网络处理器13022用于实现报文的转发处理。网络处理器13022的形态可以是转发芯片。转发芯片可以是网络处理器(network processor,NP)。在一些实施例中,转发芯片可以通过专用集成电路(application-specific integrated circuit,ASIC)或现场可编程门阵列(field programmable gate array,FPGA)实现。具体而言,网络处理器13022用于基于转发表项存储器13023保存的转发表转发接收到的报文,如果报文的目的地址为设备1300的地址,则将该报文上送至CPU(如中央处理器13021)处理;如果报文的目的地址不是设备1300的地址,则根据该目的地址从转发表中查找到该目的地址对应的下一跳和出接口,将该报文转发到该目的地址对应的出接口。其中,上行报文的处理可以包括:报文入接口的处理,转发表查找;下行报文的处理可以包括:转发表查找等等。在一些实施例中,中央处理器也可执行转发芯片的功能,比如基于通用CPU实现软件转发,从而接口板中不需要转发芯片。The network processor 13022 is used to implement packet forwarding processing. The network processor 13022 may be in the form of a forwarding chip. The forwarding chip can be a network processor (NP). In some embodiments, the forwarding chip can be implemented through an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA). Specifically, the network processor 13022 is used to forward the received message based on the forwarding table stored in the forwarding table memory 13023. If the destination address of the message is the address of the device 1300, then upload the message to the CPU (such as The central processor 13021) processes; if the destination address of the message is not the address of the device 1300, the next hop and outgoing interface corresponding to the destination address are found from the forwarding table based on the destination address, and the message is forwarded to the destination. The outbound interface corresponding to the address. Among them, the processing of uplink packets may include: processing of the packet incoming interface, forwarding table search; and the processing of downlink packets may include: forwarding table search, etc. In some embodiments, the central processing unit can also perform the function of the forwarding chip, such as implementing software forwarding based on a general-purpose CPU, so that there is no need for a forwarding chip in the interface board.
物理接口卡13023用于实现物理层的对接功能,原始的流量由此进入接口板1302,以及处理后的报文从该物理接口卡1302发出。物理接口卡13023也称为子卡,可安装在接口板1302上,负责将光电信号转换为报文并对报文进行合法性检查后转发给网络处理器13022处理。在一些实施例中,中央处理器也可执行网络处理器13022的功能,比如基于通用CPU实现软件转发,从而物理接口卡13023中不需要网络处理器13022。The physical interface card 13023 is used to implement the docking function of the physical layer. The original traffic enters the interface board 1302 through this, and the processed packets are sent out from the physical interface card 1302. The physical interface card 13023 is also called a daughter card and can be installed on the interface board 1302. It is responsible for converting photoelectric signals into messages and checking the validity of the messages before forwarding them to the network processor 13022 for processing. In some embodiments, the central processor can also perform the functions of the network processor 13022, such as implementing software forwarding based on a general-purpose CPU, so that the network processor 13022 is not required in the physical interface card 13023.
可选地,设备1300包括多个接口板,例如设备1300还包括接口板1303,接口板1303包括:中央处理器13031、网络处理器13032、转发表项存储器13033和物理接口卡13034。接口板1303中各部件的功能和实现方式与接口板1302相同或相似,在此不再赘述。Optionally, the device 1300 includes multiple interface boards. For example, the device 1300 also includes an interface board 1303. The interface board 1303 includes: a central processor 13031, a network processor 13032, a forwarding entry memory 13033, and a physical interface card 13034. The functions and implementation methods of each component in the interface board 1303 are the same as or similar to those of the interface board 1302, and will not be described again here.
可选地,设备1300还包括交换网板1304。交换网板1304也可以称为交换网板单元(switch fabric unit,SFU)。在设备1300有多个接口板的情况下,交换网板1304用于完成各接口板之间的数据交换。例如,接口板1302和接口板1303之间可以通过交换网板1304通信。Optionally, the device 1300 also includes a switching network board 1304. The switching fabric unit 1304 may also be called a switching fabric unit (switch fabric unit, SFU). When the device 1300 has multiple interface boards, the switching network board 1304 is used to complete data exchange between the interface boards. For example, the interface board 1302 and the interface board 1303 can communicate through the switching network board 1304.
主控板1301和接口板1302耦合。例如。主控板1301、接口板1302和接口板1303,以及交换网板1304之间通过系统总线与系统背板相连实现互通。在一种可能的实现方式中,主控板1301和接口板1302之间建立进程间通信协议(inter-process communication,IPC)通道,主控板1301和接口板1302之间通过IPC通道进行通信。The main control board 1301 and the interface board 1302 are coupled. For example. The main control board 1301, the interface board 1302, the interface board 1303, and the switching network board 1304 are connected to the system backplane through a system bus to achieve intercommunication. In a possible implementation, an inter-process communication protocol (IPC) channel is established between the main control board 1301 and the interface board 1302, and the main control board 1301 and the interface board 1302 communicate through the IPC channel.
在逻辑上,设备1300包括控制面和转发面,控制面包括主控板1301和中央处理器,转发面包括执行转发的各个组件,比如转发表项存储器13023、物理接口卡13024和网络处理器13022。控制面执行路由器、生成转发表、处理信令和协议报文、配置与维护设备的状态等功能,控制面将生成的转发表下发给转发面,在转发面,网络处理器13022基于控制面下发的转发表对物理接口卡13024收到的报文查表转发。控制面下发的转发表可以保存在转发表项存储器13023中。在有些实施例中,控制面和转发面可以完全分离,不在同一设备上。 Logically, device 1300 includes a control plane and a forwarding plane. The control plane includes a main control board 1301 and a central processor. The forwarding plane includes various components that perform forwarding, such as forwarding entry memory 13023, physical interface card 13024, and network processor 13022. . The control plane executes functions such as router, generates forwarding tables, processes signaling and protocol messages, configures and maintains device status. The control plane sends the generated forwarding tables to the forwarding plane. On the forwarding plane, the network processor 13022 is based on the control plane. The delivered forwarding table looks up the table and forwards the packets received by the physical interface card 13024. The forwarding table delivered by the control plane can be stored in the forwarding table item storage 13023. In some embodiments, the control plane and forwarding plane may be completely separate and not on the same device.
值得说明的是,主控板1301可能有一块或多块,有多块的时候可以包括主用主控板和备用主控板。接口板可能有一块或多块,设备1300的数据处理能力越强,提供的接口板越多。接口板上的物理接口卡也可以有一块或多块。交换网板1304可能没有,也可能有一块或多块,有多块的时候可以共同实现负荷分担冗余备份。在集中式转发架构下,设备1300可以不需要交换网板,接口板承担整个系统的业务数据的处理功能。在分布式转发架构下,设备1300可以有至少一块交换网板1304,通过交换网板1304实现多块接口板之间的数据交换,提供大容量的数据交换和处理能力。所以,分布式架构的设备1300的数据接入和处理能力要大于集中式架构的设备。可选地,设备1300的形态也可以是只有一块板卡,即没有交换网板,接口板和主控板的功能集成在该一块板卡上,此时接口板上的中央处理器和主控板上的中央处理器在该一块板卡上可以合并为一个中央处理器,执行两者叠加后的功能,这种形态设备的数据交换和处理能力较低(例如,低端交换机或路由器等网络设备)。具体采用哪种架构,取决于具体的组网部署场景,此处不做任何限定。It is worth noting that there may be one or more main control boards 1301, and when there are multiple main control boards, they may include a main main control board and a backup main control board. There may be one or more interface boards. The stronger the data processing capability of the device 1300, the more interface boards are provided. There can also be one or more physical interface cards on the interface board. There may be no switching network board 1304, or there may be one or more switching network boards. When there are multiple switching network boards, load sharing and redundant backup can be realized together. Under the centralized forwarding architecture, the device 1300 does not need a switching network board, and the interface board is responsible for processing the service data of the entire system. Under the distributed forwarding architecture, the device 1300 can have at least one switching network board 1304. The switching network board 1304 implements data exchange between multiple interface boards and provides large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of the distributed architecture device 1300 are greater than those of the centralized architecture device. Optionally, the device 1300 can also be in the form of only one board, that is, there is no switching network board. The functions of the interface board and the main control board are integrated on this board. In this case, the central processor and the main control board on the interface board The central processor on the board can be combined into one central processor on this board to perform the superimposed functions of the two. This form of equipment has low data exchange and processing capabilities (for example, low-end switches or routers and other networks equipment). The specific architecture used depends on the specific networking deployment scenario and is not limited here.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps to implement the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program. The program can be stored in a computer-readable storage medium. The above-mentioned The storage media mentioned can be read-only memory, magnetic disks or optical disks, etc.
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。 The above are only optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application shall be included in the protection scope of the present application. Inside.

Claims (33)

  1. 一种发送组播业务的方法,所述方法应用于虚拟宽带接入网关vBNG系统中的第一用户面UP设备,所述vBNG系统还包括第二UP设备,其特征在于,所述方法包括:A method for sending multicast services, the method is applied to the first user plane UP device in the virtual broadband access gateway vBNG system, the vBNG system also includes a second UP device, characterized in that the method includes:
    所述第一UP设备接收迁移指令,所述迁移指令用于指示将第一终端迁移至所述第一UP设备上,所述第一终端是在所述第二UP设备上上线的终端;The first UP device receives a migration instruction, the migration instruction is used to instruct the first terminal to migrate to the first UP device, and the first terminal is a terminal online on the second UP device;
    所述第一UP设备基于所述迁移指令向所述第一终端发送查询请求;The first UP device sends a query request to the first terminal based on the migration instruction;
    所述第一UP设备接收所述第一终端基于所述查询请求发送的查询响应,所述查询响应包括所述第一终端对应的组播信息;The first UP device receives a query response sent by the first terminal based on the query request, where the query response includes multicast information corresponding to the first terminal;
    所述第一UP设备基于所述组播信息,向所述第一终端转发组播业务。The first UP device forwards the multicast service to the first terminal based on the multicast information.
  2. 如权利要求1所述的方法,其特征在于,所述组播信息是第一组播源对应的组播信息,所述第一组播源对应的组播组是所述第一终端加入的组播组。The method of claim 1, wherein the multicast information is the multicast information corresponding to the first multicast source, and the multicast group corresponding to the first multicast source is joined by the first terminal. Multicast group.
  3. 如权利要求2所述的方法,其特征在于,所述组播信息包括所述第一组播源的组播地址。The method of claim 2, wherein the multicast information includes the multicast address of the first multicast source.
  4. 如权利要求1-3任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-3, characterized in that the method further includes:
    所述第一UP设备基于所述迁移指令,获取第一用户表项信息,所述第一用户表项信息用于传输所述第一终端的业务。The first UP device acquires first user entry information based on the migration instruction, and the first user entry information is used to transmit services of the first terminal.
  5. 如权利要求1-4任一项所述的方法,其特征在于,所述迁移指令包括:所述第二UP设备的设备标识、第一接口的接口标识、或者,第一接口的虚拟媒体接入控制层MAC地址,所述第一接口是所述第一终端在所述第二UP设备上上线的接口。The method according to any one of claims 1 to 4, characterized in that the migration instruction includes: a device identifier of the second UP device, an interface identifier of the first interface, or a virtual media interface of the first interface. Enter the control layer MAC address, and the first interface is the interface through which the first terminal goes online on the second UP device.
  6. 如权利要求1-3任一项所述的方法,其特征在于,所述迁移指令包括所述第一用户表项信息,所述第一用户表项信息用于传输所述第一终端的业务。The method according to any one of claims 1 to 3, characterized in that the migration instruction includes the first user entry information, and the first user entry information is used to transmit services of the first terminal. .
  7. 如权利要求1-6任一项所述的方法,其特征在于,所述vBNG系统还包括控制面CP设备,所述第一UP设备接收迁移指令,包括:The method according to any one of claims 1 to 6, characterized in that the vBNG system further includes a control plane CP device, and the first UP device receives a migration instruction, including:
    所述第一UP设备接收所述CP设备发送的所述迁移指令。The first UP device receives the migration instruction sent by the CP device.
  8. 如权利要求1-7任一项所述的方法,其特征在于,所述查询请求和所述查询响应均是基于因特网组管理协议IGMP封装的报文,或者,所述查询请求和所述查询响应均是基于组播监听者发现协议MLD封装的报文。The method according to any one of claims 1 to 7, characterized in that the query request and the query response are both messages encapsulated based on Internet Group Management Protocol IGMP, or the query request and the query response The responses are all packets encapsulated based on the multicast listener discovery protocol MLD.
  9. 如权利要求1-8任一项所述的方法,其特征在于,所述第一UP设备和所述第二UP设备位于同一供电组,或者,所述第一UP设备和所述第二UP设备位于不同的供电组,所述供电组包括多个UP设备。The method according to any one of claims 1 to 8, characterized in that the first UP device and the second UP device are located in the same power supply group, or the first UP device and the second UP device The devices are located in different power supply groups, and the power supply groups include multiple UP devices.
  10. 一种发送组播业务的方法,所述方法应用于虚拟宽带接入网关vBNG系统中的第一用户面UP设备,所述vBNG系统还包括第二UP设备,其特征在于,所述方法包括:A method for sending multicast services, the method is applied to the first user plane UP device in the virtual broadband access gateway vBNG system, the vBNG system also includes a second UP device, characterized in that the method includes:
    所述第一UP设备接收所述第二UP设备发送的第一终端对应的组播信息,所述第一终端是在所述第二UP设备上上线的终端;The first UP device receives the multicast information corresponding to the first terminal sent by the second UP device, and the first terminal is a terminal online on the second UP device;
    所述第一UP设备接收迁移指令,所述迁移指令用于指示将所述第一终端迁移至所述第一UP设备上;The first UP device receives a migration instruction, where the migration instruction is used to instruct the first terminal to migrate to the first UP device;
    所述第一UP设备基于所述组播信息和所述迁移指令,向所述第一终端转发组播业务。 The first UP device forwards the multicast service to the first terminal based on the multicast information and the migration instruction.
  11. 如权利要求10所述的方法,其特征在于,所述方法还包括:The method of claim 10, further comprising:
    所述第一UP设备基于所述迁移指令,获取第一用户表项信息,所述第一用户表项信息用于传输所述第一终端的业务。The first UP device acquires first user entry information based on the migration instruction, and the first user entry information is used to transmit services of the first terminal.
  12. 如权利要求10或11所述的方法,其特征在于,所述迁移指令包括:所述第二UP设备的设备标识、第一接口的接口标识、或者,第一接口的虚拟媒体接入控制层MAC地址,所述第一接口是所述第一终端在所述第二UP设备上上线的接口。The method according to claim 10 or 11, characterized in that the migration instruction includes: the device identification of the second UP device, the interface identification of the first interface, or the virtual media access control layer of the first interface. MAC address, and the first interface is the interface through which the first terminal goes online on the second UP device.
  13. 如权利要求10所述的方法,其特征在于,所述迁移指令包括第一用户表项信息,所述第一用户表项信息用于传输所述第一终端的业务。The method of claim 10, wherein the migration instruction includes first user entry information, and the first user entry information is used to transmit services of the first terminal.
  14. 如权利要求10-13任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 10-13, characterized in that the method further includes:
    所述第一UP设备向所述第二UP设备发送第二终端对应的组播信息,所述第二终端是在所述第一UP设备上上线的终端。The first UP device sends multicast information corresponding to a second terminal to the second UP device. The second terminal is a terminal that is online on the first UP device.
  15. 如权利要求10-14任一项所述的方法,其特征在于,所述第一UP设备和所述第二UP设备位于同一供电组,或者,所述第一UP设备和所述第二UP设备位于不同的供电组,所述供电组包括多个UP设备。The method according to any one of claims 10 to 14, characterized in that the first UP device and the second UP device are located in the same power supply group, or the first UP device and the second UP device The devices are located in different power supply groups, and the power supply groups include multiple UP devices.
  16. 如权利要求10-15任一项所述的方法,其特征在于,所述第二UP设备包括第一接口,所述第一接口是所述第一终端上线的接口,所述第一UP设备包括第二接口,所述第二接口是在所述第一终端迁移至所述第一UP设备后所述第一终端上线的接口,所述第一接口和所述第二接口是同一温备份组中的两个接口。The method according to any one of claims 10 to 15, characterized in that the second UP device includes a first interface, the first interface is an interface for the first terminal to go online, and the first UP device Including a second interface, the second interface is the interface through which the first terminal goes online after the first terminal migrates to the first UP device, and the first interface and the second interface are the same temperature backup Two interfaces in the group.
  17. 如权利要求16所述的方法,其特征在于,在所述温备份组中所述第二接口是所述第一接口针对第一虚拟MAC地址的备份接口,所述第一虚拟MAC地址是所述第一接口的地址且所述第一虚拟MAC地址与所述第一终端相对应。The method of claim 16, wherein the second interface in the warm backup group is the backup interface of the first interface for the first virtual MAC address, and the first virtual MAC address is the backup interface of the first virtual MAC address. The address of the first interface and the first virtual MAC address correspond to the first terminal.
  18. 如权利要求10-17任一项所述的方法,其特征在于,所述组播信息是第一组播源对应的组播信息,所述第一组播源对应的组播组是所述第一终端加入的组播组。The method according to any one of claims 10 to 17, characterized in that the multicast information is multicast information corresponding to the first multicast source, and the multicast group corresponding to the first multicast source is the The multicast group that the first terminal joins.
  19. 如权利要求18所述的方法,其特征在于,所述第一组播源的组播信息包括所述第一组播源的组播地址。The method of claim 18, wherein the multicast information of the first multicast source includes a multicast address of the first multicast source.
  20. 一种发送组播业务的方法,所述方法应用于虚拟宽带接入网关vBNG系统,所述vBNG系统包括CP设备、第一用户面UP设备和第二UP设备,其特征在于,所述方法包括:A method for sending multicast services, the method is applied to a virtual broadband access gateway vBNG system, the vBNG system includes a CP device, a first user plane UP device and a second UP device, characterized in that the method includes :
    所述第二UP设备向所述第一UP设备发送第一终端对应的组播信息,所述第一终端是在所述第二UP设备上上线的终端;The second UP device sends the multicast information corresponding to the first terminal to the first UP device, and the first terminal is a terminal online on the second UP device;
    基于所述第二UP设备故障,所述CP设备向所述第一UP设备发送迁移指令,所述迁移指令用于指示将所述第一终端迁移至所述第一UP设备上;Based on the failure of the second UP device, the CP device sends a migration instruction to the first UP device, where the migration instruction is used to instruct the first terminal to migrate to the first UP device;
    所述第一UP设备基于所述组播信息和所述迁移指令,向所述第一终端转发组播业务。The first UP device forwards the multicast service to the first terminal based on the multicast information and the migration instruction.
  21. 如权利要求20所述的方法,其特征在于,所述方法还包括:The method of claim 20, further comprising:
    所述第二UP设备向所述第三UP设备发送所述第一终端对应的组播信息。The second UP device sends the multicast information corresponding to the first terminal to the third UP device.
  22. 如权利要求21所述的方法,其特征在于,所述第一UP设备、所述第二UP设备和所述第三UP设备是同一温备份组中的设备。The method of claim 21, wherein the first UP device, the second UP device and the third UP device are devices in the same warm backup group.
  23. 如权利要求20-22任一项所述的方法,其特征在于,所述组播信息是第一组播源对应的组播信息,所述第一组播源对应的组播组是所述第一终端加入的组播组。 The method according to any one of claims 20 to 22, characterized in that the multicast information is multicast information corresponding to the first multicast source, and the multicast group corresponding to the first multicast source is the The multicast group that the first terminal joins.
  24. 如权利要求23所述的方法,其特征在于,所述第一组播源的组播信息包括所述第一组播源的组播地址。The method of claim 23, wherein the multicast information of the first multicast source includes a multicast address of the first multicast source.
  25. 一种虚拟宽带接入网关vBNG系统,所述vBNG系统包括CP设备、第一用户面UP设备和第二UP设备,其特征在于,A virtual broadband access gateway vBNG system, the vBNG system includes a CP device, a first user plane UP device and a second UP device, characterized by:
    所述第二UP设备,用于向所述第一UP设备发送第一终端对应的组播信息,所述第一终端是在所述第二UP设备上上线的终端;The second UP device is configured to send multicast information corresponding to a first terminal to the first UP device, and the first terminal is a terminal online on the second UP device;
    所述CP设备,用于基于所述第二UP设备故障,向所述第一UP设备发送迁移指令,所述迁移指令用于指示将所述第一终端迁移至所述第一UP设备上;The CP device is configured to send a migration instruction to the first UP device based on a failure of the second UP device, where the migration instruction is used to instruct the first terminal to migrate to the first UP device;
    所述第一UP设备,用于基于所述组播信息和所述迁移指令,向所述第一终端转发组播业务。The first UP device is configured to forward multicast services to the first terminal based on the multicast information and the migration instruction.
  26. 如权利要求25所述的系统,其特征在于,所述第二UP设备,还用于向所述第三UP设备发送所述第一终端对应的组播信息。The system of claim 25, wherein the second UP device is further configured to send the multicast information corresponding to the first terminal to the third UP device.
  27. 如权利要求26所述的系统,其特征在于,所述第一UP设备、所述第二UP设备和所述第三UP设备是同一温备份组中的设备。The system of claim 26, wherein the first UP device, the second UP device and the third UP device are devices in the same warm backup group.
  28. 如权利要求25-27任一项所述的系统,其特征在于,所述组播信息是第一组播源对应的组播信息,所述第一组播源对应的组播组是所述第一终端加入的组播组。The system according to any one of claims 25 to 27, wherein the multicast information is multicast information corresponding to the first multicast source, and the multicast group corresponding to the first multicast source is the The multicast group that the first terminal joins.
  29. 如权利要求28所述的系统,其特征在于,所述第一组播源的组播信息包括所述第一组播源的组播地址。The system of claim 28, wherein the multicast information of the first multicast source includes a multicast address of the first multicast source.
  30. 一种发送组播业务的装置,其特征在于,所述装置包括:A device for sending multicast services, characterized in that the device includes:
    处理器和存储器,所述存储器用于存储程序,所述处理器用于执行所述存储器中的程序,使得所述装置完成如权利要求1-9任一项所述的方法。A processor and a memory, the memory is used to store programs, the processor is used to execute the programs in the memory, so that the device completes the method according to any one of claims 1-9.
  31. 一种发送组播业务的装置,其特征在于,所述装置包括:A device for sending multicast services, characterized in that the device includes:
    处理器和存储器,所述存储器用于存储程序,所述处理器用于执行所述存储器中的程序,使得所述装置完成如权利要求10-19任一项所述的方法。A processor and a memory, the memory is used to store programs, the processor is used to execute the programs in the memory, so that the device completes the method according to any one of claims 10-19.
  32. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被计算机执行时,实现如权利要求1-19任一项所述的方法。A computer-readable storage medium on which a computer program is stored, characterized in that when the computer program is executed by a computer, the method according to any one of claims 1-19 is implemented.
  33. 一种计算机程序产品,其特征在于,所述计算机程序产品包括在计算机可读存储介质中存储的计算机程序,并且所述计算程序通过处理器进行加载来实现如权利要求1-19任一项所述的方法。 A computer program product, characterized in that the computer program product includes a computer program stored in a computer-readable storage medium, and the computing program is loaded by a processor to implement any one of claims 1-19 method described.
PCT/CN2023/081648 2022-03-18 2023-03-15 Multicast service sending method, apparatus, system and storage medium WO2023174339A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210273189.6 2022-03-18
CN202210273189.6A CN116806011A (en) 2022-03-18 2022-03-18 Method, device, system and storage medium for transmitting multicast service

Publications (1)

Publication Number Publication Date
WO2023174339A1 true WO2023174339A1 (en) 2023-09-21

Family

ID=88022359

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/081648 WO2023174339A1 (en) 2022-03-18 2023-03-15 Multicast service sending method, apparatus, system and storage medium

Country Status (2)

Country Link
CN (1) CN116806011A (en)
WO (1) WO2023174339A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108234358A (en) * 2017-12-29 2018-06-29 新华三技术有限公司 A kind of multicast message transmission method, device and machine readable storage medium
CN110999233A (en) * 2017-08-10 2020-04-10 华为技术有限公司 Method, device and network equipment for managing multicast program
CN114026834A (en) * 2019-04-30 2022-02-08 英特尔公司 Multi-entity resource, security, and service management in edge computing deployments

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110999233A (en) * 2017-08-10 2020-04-10 华为技术有限公司 Method, device and network equipment for managing multicast program
CN108234358A (en) * 2017-12-29 2018-06-29 新华三技术有限公司 A kind of multicast message transmission method, device and machine readable storage medium
CN114026834A (en) * 2019-04-30 2022-02-08 英特尔公司 Multi-entity resource, security, and service management in edge computing deployments

Also Published As

Publication number Publication date
CN116806011A (en) 2023-09-26

Similar Documents

Publication Publication Date Title
KR100680888B1 (en) Virtual multicast routing for a cluster having state synchronization
US8943490B1 (en) Intelligent non-stop software upgrade
US8213336B2 (en) Distributed data center access switch
US7751394B2 (en) Multicast packet relay device adapted for virtual router
US11398956B2 (en) Multi-Edge EtherChannel (MEEC) creation and management
EP1788758B1 (en) Network device which intelligently filters redundant data streams within computer networks
US10404773B2 (en) Distributed cluster processing system and packet processing method thereof
JP2019526983A (en) Separation of control plane function and transfer plane function of broadband remote access server
US11336573B2 (en) Service chaining in multi-fabric cloud networks
EP3493483A1 (en) Virtual broadband access method, controller, and system
US11546267B2 (en) Method for determining designated forwarder (DF) of multicast flow, device, and system
WO2020114017A1 (en) Data center traffic exchange method and apparatus, device and storage medium
WO2018068588A1 (en) Method and software-defined networking (sdn) controller for providing multicast service
US20230171223A1 (en) Communication Method, CP Device, and NAT Device
WO2023174339A1 (en) Multicast service sending method, apparatus, system and storage medium
EP4325800A1 (en) Packet forwarding method and apparatus
WO2022063065A1 (en) Routing information transmission method and apparatus
CN116668368A (en) Message forwarding method, device and system
CN112751766B (en) Message forwarding method and system, related equipment and chip
Dell
CN116938693A (en) User migration method, device, system and storage medium
WO2022012383A1 (en) Packet transmission method, apparatus, and system, and storage medium
WO2022213822A1 (en) Method and apparatus for controlling user equipment to access network, and device
WO2024051294A1 (en) Access method, apparatus and system for client device
WO2022143572A1 (en) Message processing method and related device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23769841

Country of ref document: EP

Kind code of ref document: A1