Method, device and storage medium for accessing gateway

CN116545844BActive Publication Date: 2026-09-11HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210089036.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-25
Publication Date
2026-09-11
Estimated Expiration
2042-01-25

AI Technical Summary

Technical Problem

在这种情况下,CP设备仅基于多个UP设备的当前负载为终端分配的UP设备可能为异局址的UP设备,这样,终端将会从异局址的UP设备接入vBNG,从而导致业务流量绕行

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116545844B_ABST
    Figure CN116545844B_ABST
Patent Text Reader

Abstract

The embodiment of the application discloses a method and device for accessing a gateway and a storage medium, and belongs to the field of communication. In the embodiment of the application, the access priority of a first UP device corresponding to a terminal is higher than the access priority of a second UP device, wherein the first UP device is a local UP device of the terminal, and the second UP device is a non-local UP device of the terminal. In this way, after a third UP device accessed by the terminal fails, the CP device can control the terminal to preferentially switch to the first UP device with higher priority to access, that is, to preferentially switch to the local UP device to access, thereby avoiding the service traffic of the terminal to detour.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communications, and in particular to a method, apparatus and storage medium for accessing a gateway. Background Technology

[0002] With the development of Software-Designed Networking (SDN) and Network Function Virtualization (NFV) technologies, broadband network gateways (BNGs) have achieved decoupling of forwarding and control functions, as well as software and hardware, based on SDN and NFV architectures. The BNG that implements this decoupling is called a Virtual Broadband Network Gateway (vBNG). A vBNG includes a control plane (CP) device and multiple user plane (UP) devices, with the CP device managing the multiple UP devices.

[0003] In related technologies, when a terminal accesses a vBNG, it sends online request messages to multiple UP devices. These UP devices forward the received online request messages to a CP device. Upon receiving the online request messages from the multiple UP devices, the CP device selects one UP device as the terminal's access UP device based on the current load of each UP device. Subsequently, if the UP device to which the terminal is accessing fails, the CP device selects another UP device as the terminal's access UP device based on the current load of the remaining UP devices.

[0004] However, these multiple UP devices include not only those located within the local address corresponding to the terminal (i.e., the current local address), but also UP devices located outside the local address corresponding to the terminal (i.e., different local addresses). Here, a local address can refer to a website, a data center, a city, or a region; it is often referred to as a "site." In this case, the CP device may assign a UP device to the terminal based solely on the current load of the multiple UP devices, potentially a different local address. Consequently, the terminal will access the vBNG from a different local address UP device, causing service traffic to be redirected. Summary of the Invention

[0005] This application provides a method, apparatus, and storage medium for accessing a gateway, which can ensure that terminals preferentially access the gateway from the local UP device when they come online, avoiding service traffic detours. The technical solution is as follows:

[0006] In a first aspect, a method for accessing a gateway is provided, applied to a CP device in a virtual broadband network gateway (vBNG) system where the control plane (CP) and user plane (UP) are separated. The method includes: obtaining the access priorities of a first UP device and a second UP device corresponding to a terminal, wherein the access priority of the first UP device is greater than that of the second UP device, the first UP device is the local address UP device of the terminal, and the second UP device is the remote address UP device of the terminal; in response to a failure of a third UP device accessed by the terminal, controlling the terminal to access the first UP device based on the access priority of the first UP device, wherein the first UP device, the second UP device, and the third UP device are all UP devices in a warm standby group in the vBNG system.

[0007] In this application, when the third UP device accessed by the terminal fails, the CP device can, based on the access priority of the first UP device and the second UP device corresponding to the terminal, adopt the principle of proximity and control the terminal to switch to the local UP device with higher priority for access. In this way, the service traffic of the terminal can be bypassed.

[0008] Optionally, the warm standby group includes multiple interfaces on multiple UP devices corresponding to the terminal, and the multiple UP devices include the first UP device, the second UP device, and the third UP device.

[0009] In this application, the warm standby group is the warm standby group corresponding to the terminal, which includes multiple interfaces on multiple UP devices corresponding to the terminal. In this way, after the CP device receives the terminal's online request message, it can determine the warm standby group containing the multiple interfaces based on the identifiers of the interfaces included in the multiple online request messages received, and then obtain the access priority of the UP device corresponding to the terminal based on the warm standby group.

[0010] Optionally, the access priority of the first UP device being greater than that of the second UP device includes the first UP device having a higher priority in the warm standby group than the second UP device in the warm standby group.

[0011] Since the first UP device has a higher access priority in the warm standby group than the second UP device, and the first UP device is the terminal's local address UP device while the second UP device is the terminal's external address UP device, when the terminal comes online, it can be guaranteed that the terminal will preferentially connect from the first UP device within its local address.

[0012] Optionally, the access priority of the first UP device being greater than that of the second UP device may include the access priority of the first interface on the first UP device being greater than that of the second interface on the second UP device, and the plurality of interfaces including the first interface and the second interface.

[0013] In this application, the warm standby group includes a first interface on a first UP device and a second interface on a second UP device. The access priority of the first interface is higher than that of the second interface. The access priority of the first UP device is the same as the priority of the first interface, and the access priority of the second UP device is the same as the priority of the second interface. In this way, when a terminal comes online, it can be guaranteed that the terminal will preferentially go online through the first interface on the first UP device within the local address.

[0014] Optionally, the warm standby group includes a first subgroup and a second subgroup. The first subgroup includes multiple local address UP devices of the terminal, and the second subgroup includes multiple remote address UP devices of the terminal. The access priority of the first subgroup is greater than the access priority of the second subgroup. The access priority of the first UP device is the access priority of the first subgroup, and the access priority of the second UP device is the access priority of the second subgroup.

[0015] In this application, the access priority of UP devices in the warm standby group can be set by dividing the local address UP devices and the remote address UP devices into two subgroups and then setting the access priority of the two subgroups respectively. This can improve the configuration efficiency of the access priority of UP devices in the warm standby group.

[0016] Optionally, the access priorities of at least two local address UP devices of the terminal in the warm standby group are different, and / or the access priorities of at least two different address UP devices of the terminal in the warm standby group are different.

[0017] In this application, the CP device can also set an access priority for each UP device in the warm standby group, which is a more refined and flexible setting method.

[0018] Optionally, the process of controlling the terminal to access the first UP device based on the access priority of the first UP device can be as follows: determining that the first UP device is the UP device with the highest access priority in the warm standby group; and controlling the terminal to access the first UP device.

[0019] Optionally, the process of determining the first UP device as the UP device with the highest access priority in the warm standby group is as follows: determining the first UP device as one of the multiple UP devices with the highest access priority in the warm standby group; and determining the first UP device from the multiple UP devices with the highest access priority based on the current load of the first UP device.

[0020] In this application, when the CP device determines that the first UP device is one of the multiple UP devices with the highest access priority in the warm standby group, it selects the first UP device from among the multiple UP devices with the highest access priority based on the current load of the first UP device. This load-sharing method of selecting the first UP device from among the multiple UP devices with the highest access priority can ensure that the terminal connects to a local UP device with a lower load, thereby benefiting the load balancing of the entire system.

[0021] Secondly, a method for accessing a gateway is provided, applied to a CP device in a vBNG system where the control plane (CP) and user plane (UP) are separated. The method includes: responding to an online request message from a terminal, obtaining the access priorities of a first UP device and a second UP device corresponding to the terminal, wherein the access priority of the first UP device is greater than that of the second UP device, the first UP device is the local address UP device of the terminal, and the second UP device is the remote address UP device of the terminal, and both the first UP device and the second UP device are UP devices in a warm standby group in the vBNG system; and controlling the terminal to access the first UP device based on the access priority of the first UP device.

[0022] In this embodiment, in response to a terminal's online request message, the CP device can obtain the access priorities of the first UP device and the second UP device corresponding to the terminal. The first UP device is the terminal's local address UP device, and the second UP device is the terminal's external address UP device. The access priority of the first UP device is higher than that of the second UP device. Therefore, the CP device can preferentially select the higher-priority first UP device within the local address as the UP device for accessing the terminal, ensuring that the terminal preferentially accesses from the local address UP device when going online, thus avoiding service traffic detours.

[0023] Optionally, the warm standby group includes multiple interfaces on multiple UP devices corresponding to the terminal, and the multiple UP devices include the first UP device and the second UP device.

[0024] In this application, the warm standby group is the warm standby group corresponding to the terminal. The warm standby group includes multiple interfaces on multiple UP devices corresponding to the terminal. After receiving the terminal's online request message, the CP device can determine the warm standby group containing the multiple interfaces based on the identifiers of the interfaces included in the multiple online request messages received, and then obtain the access priority of the UP device corresponding to the terminal based on the warm standby group.

[0025] Optionally, the access priority of the first UP device being greater than that of the second UP device includes the first UP device having a higher priority in the warm standby group than the second UP device in the warm standby group.

[0026] Since the first UP device has a higher access priority in the warm standby group than the second UP device, and the first UP device is the terminal's local address UP device while the second UP device is the terminal's external address UP device, when the terminal comes online, it can be guaranteed that the terminal will preferentially connect from the first UP device within its local address.

[0027] Optionally, the access priority of the first UP device being greater than that of the second UP device includes the access priority of the first interface on the first UP device being greater than that of the second interface on the second UP device, and the plurality of interfaces including the first interface and the second interface.

[0028] In this application, the warm standby group includes a first interface on a first UP device and a second interface on a second UP device. The access priority of the first interface is higher than that of the second interface. The access priority of the first UP device is the same as the priority of the first interface, and the access priority of the second UP device is the same as the priority of the second interface. In this way, when a terminal comes online, it can be guaranteed that the terminal will preferentially go online through the first interface on the first UP device within the local address.

[0029] Optionally, the warm standby group includes a first subgroup and a second subgroup. The first subgroup includes multiple local address UP devices of the terminal, and the second subgroup includes multiple remote address UP devices of the terminal. The access priority of the first subgroup is higher than the access priority of the second subgroup. The access priority of the first UP device is the access priority of the first subgroup, and the access priority of the second UP device is the access priority of the second subgroup.

[0030] In this application, the access priority of UP devices in the warm standby group can be set by dividing the local address UP devices and the remote address UP devices into two subgroups and then setting the access priority of the two subgroups respectively. This can improve the configuration efficiency of the access priority of UP devices in the warm standby group.

[0031] Optionally, the access priorities of at least two local address UP devices of the terminal in the warm standby group are different, and / or the access priorities of at least two different address UP devices of the terminal in the warm standby group are different.

[0032] In this embodiment, the CP device can also set an access priority for each UP device in the warm standby group, which is a more refined and flexible setting method.

[0033] Optionally, the process of controlling the terminal to access the first UP device based on the access priority of the first UP device is as follows: determining that the first UP device is the UP device with the highest access priority in the warm standby group; controlling the terminal to access the selected first UP device.

[0034] Optionally, the process of determining the first UP device as the UP device with the highest access priority in the warm standby group is as follows: determining the first UP device as one of the multiple UP devices with the highest access priority in the warm standby group; and determining the first UP device from the multiple UP devices with the highest access priority based on the current load of the first UP device.

[0035] In this application, when the CP device determines that the first UP device is one of the multiple UP devices with the highest access priority in the warm standby group, it selects the first UP device from among the multiple UP devices with the highest access priority based on the current load of the first UP device. This load-sharing method of selecting the first UP device from among the multiple UP devices with the highest access priority can ensure that the terminal connects to a local UP device with a lower load, thereby benefiting the load balancing of the entire system.

[0036] Thirdly, an access gateway apparatus is provided, applied to a CP device in a virtual broadband network gateway (vBNG) system where the control plane (CP) and user plane (UP) are separated, the apparatus comprising:

[0037] The acquisition module is used to acquire the access priorities of the first UP device and the second UP device corresponding to the terminal. The access priority of the first UP device is greater than that of the second UP device. The first UP device is the local address UP device of the terminal, and the second UP device is the external address UP device of the terminal.

[0038] The access module is used to respond to a failure of the third UP device accessed by the terminal, and control the terminal to access the first UP device based on the access priority of the first UP device. The first UP device, the second UP device, and the third UP device are all UP devices in the warm standby group of the vBNG system.

[0039] Optionally, the warm standby group includes multiple interfaces on multiple UP devices corresponding to the terminal, and the multiple UP devices include the first UP device, the second UP device, and the third UP device.

[0040] Optionally, the access priority of the first UP device being greater than that of the second UP device includes the first UP device having a higher priority in the warm standby group than the second UP device in the warm standby group.

[0041] Optionally, the access priority of the first UP device being greater than that of the second UP device includes the access priority of the first interface on the first UP device being greater than that of the second interface on the second UP device, and the plurality of interfaces including the first interface and the second interface.

[0042] Optionally, the warm standby group includes a first subgroup and a second subgroup. The first subgroup includes multiple local address UP devices of the terminal, and the second subgroup includes multiple remote address UP devices of the terminal. The access priority of the first subgroup is greater than the access priority of the second subgroup. The access priority of the first UP device is the access priority of the first subgroup, and the access priority of the second UP device is the access priority of the second subgroup.

[0043] Optionally, the access priorities of at least two local address UP devices of the terminal in the warm standby group are different, and / or the access priorities of at least two different address UP devices of the terminal in the warm standby group are different.

[0044] Optionally, the access module is used for:

[0045] The first UP device is determined to be the UP device with the highest access priority in the temperature standby group;

[0046] Control the terminal to connect to the first UP device.

[0047] Optionally, the access module is further configured to:

[0048] The first UP device is determined to be one of the multiple UP devices with the highest access priority in the temperature standby group;

[0049] Based on the current load of the first UP device, the first UP device is determined from among the multiple UP devices with the highest access priority.

[0050] Fourthly, an access gateway apparatus is provided, applied to a CP device in a vBNG system where the control plane (CP) and user plane (UP) are separated, the apparatus comprising:

[0051] The acquisition module is used to respond to the terminal's online request message and acquire the access priorities of the first UP device and the second UP device corresponding to the terminal. The access priority of the first UP device is greater than that of the second UP device. The first UP device is the local address UP device of the terminal, and the second UP device is the remote address UP device of the terminal. Both the first UP device and the second UP device are UP devices in the warm standby group of the vBNG system.

[0052] The access module is used to control the terminal to access the first UP device based on the access priority of the first UP device.

[0053] Optionally, the warm standby group includes multiple interfaces on multiple UP devices corresponding to the terminal, and the multiple UP devices include the first UP device and the second UP device.

[0054] Optionally, the access priority of the first UP device being greater than that of the second UP device includes the first UP device having a higher priority in the warm standby group than the second UP device in the warm standby group.

[0055] Optionally, the access priority of the first UP device being greater than that of the second UP device includes the access priority of the first interface on the first UP device being greater than that of the second interface on the second UP device, and the plurality of interfaces including the first interface and the second interface.

[0056] Optionally, the warm standby group includes a first subgroup and a second subgroup. The first subgroup includes multiple local address UP devices of the terminal, and the second subgroup includes multiple remote address UP devices of the terminal. The access priority of the first subgroup is higher than the access priority of the second subgroup. The access priority of the first UP device is the access priority of the first subgroup, and the access priority of the second UP device is the access priority of the second subgroup.

[0057] Optionally, the access priorities of at least two local address UP devices of the terminal in the warm standby group are different, and / or the access priorities of at least two different address UP devices of the terminal in the warm standby group are different.

[0058] Optionally, the access module is used for:

[0059] The first UP device is determined to be the UP device with the highest access priority in the temperature standby group;

[0060] Control the terminal to access the selected first UP device.

[0061] Optionally, the access module is further configured to:

[0062] The first UP device is determined to be one of the multiple UP devices with the highest access priority in the temperature standby group;

[0063] Based on the current load of the first UP device, the first UP device is determined from among the multiple UP devices with the highest access priority.

[0064] Fifthly, a CP (Content Provider) device is provided, comprising a processor and a memory. The memory stores programs that support the CP device in performing the methods of the access gateway provided in the first and / or second aspects, and stores data related to implementing the methods of the access gateway provided in the first and / or second aspects. The processor is configured to execute the programs stored in the memory.

[0065] In a sixth aspect, a vBNG system is provided, the vBNG system including a CP device, a first UP device, a second UP device, and a third UP device corresponding to a terminal, wherein the access priority of the first UP device is greater than the access priority of the second UP device, the first UP device is the local address UP device of the terminal, the second UP device is the remote address UP device of the terminal, and the first UP device, the second UP device, and the third UP device are all UP devices in the warm standby group of the vBNG system; the CP device is used to obtain the access priorities of the first UP device and the second UP device corresponding to the terminal; in response to a failure of the third UP device accessed by the terminal, the CP device sends the user entry information of the terminal to the first UP device based on the access priority of the first UP device; the first UP device is used to control the terminal access based on the user entry information of the terminal.

[0066] In a seventh aspect, a vBNG system is provided, the vBNG system including a CP device, a first UP device and a second UP device corresponding to a terminal, wherein the access priority of the first UP device is greater than the access priority of the second UP device, the first UP device is the local address UP device of the terminal, the second UP device is the remote address UP device of the terminal, and both the first UP device and the second UP device are UP devices in the warm standby group of the vBNG system; the CP device is used to respond to the terminal's online request message, obtain the access priorities of the first UP device and the second UP device corresponding to the terminal, and send the user table information of the terminal to the first UP device based on the access priority of the first UP device; the first UP device is used to control the terminal's access based on the user table information of the terminal.

[0067] Eighthly, a vBNG system is provided, the vBNG system including a CP device, a first UP device corresponding to a terminal, and a second UP device, wherein the access priority of the first UP device is greater than the access priority of the second UP device, the first UP device is the local address UP device of the terminal, the second UP device is the remote address UP device of the terminal, and both the first UP device and the second UP device are UP devices in the warm standby group of the vBNG system; the CP device responds to the online request message of the terminal and controls the terminal to access the first UP device based on the access priority of the first UP device.

[0068] Ninthly, a computer-readable storage medium is provided, wherein instructions are stored therein, which, when executed on a computer, cause the computer to perform the access gateway method described in the first and / or second aspects.

[0069] In a tenth aspect, a computer program product containing instructions is provided, which, when run on a computer, causes the computer to perform the access gateway method described in the first and / or second aspects above.

[0070] The technical effects achieved by the third to tenth aspects mentioned above are similar to those achieved by the corresponding technical means in the first and / or second aspects, and will not be repeated here.

[0071] The beneficial effects of the technical solutions provided in this application include at least the following:

[0072] In this embodiment, the access priority of the first UP device corresponding to the terminal is higher than that of the second UP device. The first UP device is the terminal's local address UP device, and the second UP device is the terminal's external address UP device. Thus, if the third UP device accessed by the terminal fails, the CP device can control the terminal to preferentially switch to the higher-priority first UP device for access, based on the access priorities of the first and second UP devices corresponding to the terminal. That is, it preferentially switches to the local address UP device for access, thereby avoiding service traffic detours for the terminal. Attached Figure Description

[0073] Figure 1 This is a diagram illustrating an implementation environment for the access gateway method provided in this application embodiment;

[0074] Figure 2 This is another implementation environment diagram involving the access gateway method provided in the embodiments of this application;

[0075] Figure 3 This is a schematic diagram of the structure of a network device provided in an embodiment of this application;

[0076] Figure 4 This is a flowchart of a method for accessing a gateway provided in an embodiment of this application;

[0077] Figure 5 This is a schematic diagram illustrating how an access network device sends a terminal online request message to multiple UP devices, as shown in an embodiment of this application.

[0078] Figure 6 This is a schematic diagram illustrating another access network device sending a terminal online request message to multiple UP devices, as shown in an embodiment of this application.

[0079] Figure 7 This is a schematic diagram of a temperature backup group shown in an embodiment of this application;

[0080] Figure 8 This is a flowchart of another access gateway method provided in an embodiment of this application;

[0081] Figure 9 This is a flowchart illustrating the method of various devices interacting to enable a terminal to access a gateway, as shown in the embodiments of this application.

[0082] Figure 10 This is a schematic diagram of the device structure of an access gateway provided in an embodiment of this application;

[0083] Figure 11 This is a schematic diagram of another access gateway device structure provided in an embodiment of this application. Detailed Implementation

[0084] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.

[0085] Before providing a detailed explanation of the embodiments of this application, the application scenarios of the embodiments of this application will be introduced first.

[0086] With the development of SDN and NFV technologies, BNG architecture based on SDN and NFV technologies has achieved decoupling of forwarding and control functions, as well as software and hardware. The BNG that achieves this decoupling is called a vBNG. A vBNG includes a CP device and multiple UP devices, with the CP device managing the multiple UP devices.

[0087] Currently, to improve service reliability, all or some of the UP devices in a vBNG can be grouped into a warm standby group. The UP devices within this group provide mutual fault protection and can also share load. For example, when a warm standby group includes UP1, UP2, and UP3, a terminal device can come online from any of the UP devices; specifically, it can come online from UP1. When UP1 fails, the terminal device can switch to UP2 or UP3 based on the real-time load status of UP2 and UP3.

[0088] Generally speaking, warm standby groups can be configured based on the interfaces on the UP devices. For example, a warm standby group may include a certain interface on UP1, a certain interface on UP2, and a certain interface on UP3.

[0089] Furthermore, multiple UP devices within a warm standby group can originate from the same local address or from different local addresses. For any local address, the interfaces on the UP devices within that address can form a warm standby group with the interfaces on the UP devices in other local addresses. A local address can refer to a site, a data center, a city, or a region; this embodiment does not impose such limitations. When a terminal within that local address goes online, it can do so through the interfaces included in the warm standby group corresponding to that terminal. Moreover, if the interface accessed by the terminal fails, the terminal can be switched to other interfaces within the warm standby group. The access gateway method provided in this embodiment can be used to control terminal online access or perform fault switching in the above scenarios, ensuring that terminals preferentially access through the interfaces of the UP devices at their local address, thereby avoiding service traffic detours.

[0090] The system architecture involved in the embodiments of this application will be described next.

[0091] Figure 1 This is a system architecture diagram related to the access gateway method provided in the embodiments of this application. For example... Figure 1 As shown, the system includes a terminal 101, an access network device 102, a vBNG-UP device 103, a vBNG-CP device 104, and a core router (CR) 105. The vBNG-UP device and the vBNG-CP device are the UP and CP devices within the same vBNG system.

[0092] The terminal 101 can be a user device such as a smartphone, desktop computer, portable computer, or tablet computer that is directly connected to the access network device 102.

[0093] Alternatively, terminal 101 can refer to a residential gateway (RGW). When terminal 101 refers to an RGW, the RGW can connect multiple user devices such as smartphones, desktop computers, and laptops, and these multiple user devices access the RGW. In this case, the RGW can perform Network Address Translation (NAT) processing for the accessed user devices. Additionally, the RGW can communicate with access network device 102, using point-to-point protocol over Ethernet (PPPoE) and Internet Protocol over Ethernet (IPOE) dialing to obtain an IP address from the vBNG, thereby accessing the vBNG based on the obtained IP address. In this case, after the RGW accesses the vBNG, the user devices connected to the RGW can access the vBNG through the RGW and thus perform network access.

[0094] The access network device 102 may include an optical line termination (OLT) 1021 and / or a switch (SW) 1022. When the access network device includes both OLT 1021 and SW 1022, OLT 1021 can communicate with both terminal 101 and SW 1022. For example, OLT 1021 can receive online request messages and data packets sent by terminal 101 and forward the received messages to SW 1022. Additionally, OLT 1021 can also receive information returned by SW 1022 and forward the received information to terminal 101.

[0095] There can be multiple vBNG-UP devices 103, and each of these vBNG-UP devices 103 establishes a communication connection with a vBNG-CP device 104 and an access network device 102, respectively. It should be noted that the access network device 102 can forward the online request message from the terminal 101 to the connected vBNG-UP device 103. The vBNG-UP device receiving the online request message from the terminal 101 can add an identifier of its own interface communicating with the terminal 101 to the online request message, and then forward the online request message to the vBNG-CP device 104.

[0096] The vBNG-CP device 104 pre-stores multiple warm standby groups, each group including multiple interfaces and the access priority of each vBNG-UP device to which those interfaces belong. Based on this, when the vBNG-CP device 104 receives an online request message from the terminal 101 sent by multiple vBNG-UP devices 103, it can determine the corresponding warm standby group for the terminal from its stored warm standby groups based on the identifiers of the multiple interfaces in the received online request messages. Then, based on the multiple interfaces included in the warm standby group and the access priority of each vBNG-UP device to which those interfaces belong, it selects an interface on a vBNG-UP device, thereby controlling the terminal 101 to access the corresponding vBNG-UP device through that interface.

[0097] Subsequently, when the vBNG-UP device accessed by terminal 101 fails, vBNG-CP device 104 can also select a new interface from the warm standby group according to the access priority, thereby controlling terminal 101 to switch to the newly selected interface for access.

[0098] After terminal 101 connects to the corresponding vBNG-UP device 103, terminal 101 can send service packets to the connected vBNG-UP device 103 through access network device 102. After receiving the service packets from terminal 101 forwarded by access network device 102, vBNG-UP device 103 can send the service packets from terminal 101 to CR105. After receiving the packets from the terminal sent by vBNG-UP device 103, CR105 can forward the received packets from the terminal to the Internet.

[0099] It should be noted that, in this embodiment of the application, the vBNG-CP device 104 can function as a Virtual Network Function (VNF) unit and run on a server. The vBNG-UP device 103 can function as a VNF unit and run on a server, or it can be a traditional Physical Network Function (PNF) device.

[0100] Figure 2 This is another system architecture diagram related to the access gateway method provided in the embodiments of this application. For example... Figure 2 As shown, the system includes a terminal 201, an access network device 202, a vBNG-UP device 203, a vBNG-CP device 204, a CR 205, and a spine-leaf network device 206.

[0101] Among them, terminal 201, access network device 202, vBNG-UP device 203, vBNG-CP device 204 and CR205 can refer to the terminal 101, access network device 102, vBNG-UP device 103, vBNG-CP device 104 and CR105 described above, and will not be repeated in this embodiment.

[0102] Spine-leaf network device 206 includes multiple leaf switches 2061 and one spine switch 2062. The multiple leaf switches include multiple A-leaf switches 20611 and multiple S-leaf switches 20612. Each of the A-leaf switches 20611 and S-leaf switches 20612 establishes a communication connection with the spine switch 2062. Furthermore, the A-leaf switches 20611 can also communicate with access network device 202. For example, the A-leaf switch 20611 in any local address can receive the online request message sent by the terminal 201 forwarded by the access network device 202 in that local address. Then, the A-leaf switch 20611 sends the received online request message of the terminal 201 to the spine switch 2062. After receiving the online request message, the spine switch 2062 can send the received online request message of the terminal 201 to the S-leaf switch 20612 in that local address, so that the S-leaf switch 20612 can send the dialing protocol message of the terminal 201 to the connected vBNG-UP device.

[0103] Figure 3 This is a schematic diagram of the structure of a network device provided in an embodiment of this application. Figure 1 Alternatively, the vBNG-CP device in vBNG in step 2 can be accessed via... Figure 3 This is implemented using the network device shown. See also Figure 3 The network device includes at least one processor 301, a communication bus 302, a memory 303, and at least one communication interface 304.

[0104] The processor 301 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the program of the present application.

[0105] The communication bus 302 may include a path for transmitting information between the aforementioned components.

[0106] The memory 303 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or it may be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto. The memory 303 may exist independently and be connected to the processor 301 via the communication bus 302. The memory 303 may also be integrated with the processor 301.

[0107] Communication interface 304 uses any transceiver-like device for communicating with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Networks (WLAN), etc.

[0108] In a specific implementation, as one example, processor 301 may include one or more CPUs, for example... Figure 3 CPU0 and CPU1 are shown in the diagram.

[0109] In a specific implementation, as one example, the network device may include multiple processors, for example... Figure 3 The processors 301 and 305 are shown. Each of these processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. Here, "processor" can refer to one or more devices, circuits, and / or processing cores used to process data (e.g., computer program instructions).

[0110] In some embodiments, memory 303 is used to store program code 306 that executes the scheme of this application, and processor 301 can execute the program code 306 stored in memory 303. The program code may include one or more software modules, and the network device can implement the access gateway method provided in the following embodiments through processor 301 and program code 306 in memory 303.

[0111] The aforementioned network device can be a general-purpose computer device or a special-purpose computer device. In specific implementations, the network device can be a desktop computer, a network server, a wireless terminal device, a communication device, or an embedded device. This application embodiment does not limit the type of network device.

[0112] The method for accessing the gateway provided in the embodiments of this application will be described next.

[0113] Figure 4 This application provides a method for accessing a gateway. This method can be applied to... Figure 1 or Figure 2 In the CP device shown, such as Figure 4 As shown, the method includes the following steps:

[0114] Step 401: In response to the terminal's online request message, obtain the access priorities of the first UP device and the second UP device corresponding to the terminal. The access priority of the first UP device is greater than that of the second UP device. The first UP device is the local address UP device of the terminal, and the second UP device is the remote address UP device of the terminal. Both the first UP device and the second UP device are UP devices in the warm standby group of the vBNG system.

[0115] In this embodiment, when a terminal comes online, it can send online request messages to multiple UP devices. Each UP device, upon receiving the online request message from the terminal, can forward it to a CP device. Upon receiving the terminal's online request message, the CP device obtains the access priorities of the first and second UP devices corresponding to the terminal. The access priority of the first UP device is higher than that of the second UP device. The first UP device is the terminal's local address UP device, and the second UP device is the terminal's external address UP device. Both the first and second UP devices are UP devices in the warm standby group corresponding to the terminal in the vBNG system.

[0116] For example, when a terminal comes online, it can send an online request message to the connected access network device. After receiving the terminal's online request message, the access network device can forward it to multiple UP devices with which it has established communication connections. These multiple UP devices are the UP devices in the warm standby group corresponding to the terminal, including a first UP device and a second UP device. Upon receiving the terminal's online request message, each UP device can add an identifier of its own interface that receives the message (i.e., the identifier of the interface through which it communicates with the terminal) to the received online request message. Then, the multiple UP devices forward the terminal's online request message to the CP device. Correspondingly, the CP device receives multiple online request messages sent by the multiple UP devices. These multiple online request messages include those sent by the first and second UP devices.

[0117] It should be noted that, in this embodiment of the application, the way the access network device sends the terminal online request message to the UP device varies depending on the network architecture.

[0118] Specifically, when an access network device establishes a direct connection with the multiple UP devices corresponding to a terminal, the access network device can directly broadcast the terminal's online request message. Correspondingly, the multiple UP devices that have established communication connections with the access network device receive the online request message broadcast by the access network device.

[0119] For example, Figure 5 This is a schematic diagram illustrating the process by which an access network device sends a terminal online request message to multiple UP devices, as shown in an embodiment of this application. Figure 5As shown, address 1 contains UP devices UP1 and UP2, and address 2 contains UP devices UP3 and UP4. The access network equipment (OLT / SW) in address 1 is connected to interface P1 on UP1, interface P2 on UP2, and interface P3 on UP3. The access network equipment in address 2 is connected to interface P4 on UP4, interface P5 on UP3, interface P6 on UP2, and interface P7 on UP1. Thus, when a terminal in address 1 comes online, it can send an online request message to the access network equipment in address 1. After receiving the online request message, the access network equipment in address 1 broadcasts the received message. At this time, interfaces P1, P2, and P3 connected to the access network equipment receive the terminal's online request message. After receiving the online request message from the terminal, UP1, UP2, and UP3 can add the identifiers P1, P2, and P3 of the interfaces through which they communicate with the terminal in address 1 to receive the online request message to their respective received online request messages. Then, UP1, UP2, and UP3 can send the online request message with the added interface identifiers to the CP device. Similarly, when a terminal in address 2 goes online, the online request message can be sent to the CP device using the method described above for terminals in address 1; this embodiment will not elaborate further.

[0120] Optionally, when an access network device establishes a communication connection with a UP device through a leaf-spine network device, upon receiving an online request message from a terminal within the local address, the access network device can forward the received online request message to an A-leaf switch within the local address. When an A-leaf switch within the local address receives the terminal's online request message, it forwards the received online request message to an S-leaf switch within the local address via a Spine switch. Upon receiving the terminal's online request message, the S-leaf switch broadcasts the received message to the multiple UP devices with which it has established a communication connection, i.e., the multiple UP devices included in the warm standby group corresponding to the terminal.

[0121] For example, Figure 6 This is a schematic diagram illustrating the process by which an access network device sends a terminal online request message to a UP device through a leaf-spine network device, as shown in an embodiment of this application. Figure 6As shown, the leaf-spine network device includes an A-leaf switch, a Spine switch, and an S-leaf switch. Address 1 includes an A-leaf1 switch and an S-leaf1 switch, while address 2 includes an A-leaf2 switch and an S-leaf2 switch. Therefore, when a terminal in address 1 comes online, it sends an online request message to the access network device within that address. Upon receiving the terminal's online request message, the access network device in that address forwards it to the A-leaf1 switch at that address. The A-leaf1 switch then forwards the terminal's online request message to the S-leaf1 switch in address 1 via the Spine switch. Upon receiving the online request message, the S-leaf1 switch can broadcast it. Accordingly, UP1, UP2, and UP3, connected to the S-leaf1 switch, can receive the terminal's online request message through interfaces P1, P2, and P3, respectively. Subsequently, UP1, UP2, and UP3 can refer to the aforementioned method to add the identifier of the interface through which they communicate with the terminal in address 1 to receive the online request message in the online request message, and forward the terminal's online request message to the CP device.

[0122] After receiving online request messages from multiple UP devices, the CP device can determine the access priority of the first UP device and the second UP device based on the received online request messages.

[0123] In this embodiment, the CP device can determine the corresponding warm standby group for the terminal from multiple configured warm standby groups based on the identifiers of multiple interfaces included in multiple online request messages; that is, the warm standby group containing the multiple interfaces. Then, the CP device can obtain the access priority of the first UP device and the second UP device based on this warm standby group.

[0124] It should be noted that the CP device is pre-configured with multiple warm standby groups. Each warm standby group includes multiple interfaces on multiple UP devices corresponding to the terminal in the corresponding warm standby group. These multiple interfaces are the interfaces on the multiple UP devices that communicate with the terminal. Based on this, the CP device can obtain the identifiers of multiple interfaces in the received online request messages, and then determine the warm standby group containing these multiple interfaces from the configured multiple warm standby groups based on these identifiers. At this time, the determined warm standby group is the warm standby group corresponding to the terminal.

[0125] For example, such as Figure 7As shown, the vBNG includes UP1, UP2, UP3, UP4, UP5, and UP6. Specifically, the interface on UP1 that communicates with terminals in address 1 is identified as P1, and the interface that communicates with terminals in address 2 is identified as P7. The interfaces on UP2 that communicate with terminals in address 1 are identified as P2, and the interfaces that communicate with terminals in address 2 are identified as P6. The interfaces on UP3 that communicate with terminals in address 1 are identified as P3, and the interfaces that communicate with terminals in address 2 are identified as P5. The interfaces on UP4 that communicate with terminals in address 2 are identified as P4, the interfaces on UP5 that communicate with terminals in address 1 are identified as P8, and the interfaces on UP6 that communicate with terminals in address 2 are identified as P10. Taking warm standby group 1 corresponding to a terminal in address 1 and warm standby group 2 corresponding to a terminal in address 2 as examples, warm standby group 1 configured on the CP device will include interfaces P1, P2, P3, and P8, while warm standby group 2 will include interfaces P4, P5, P6, P7, and P10. Based on this, if the CP device receives multiple online request messages from a terminal containing multiple interface identifiers P1, P2, P3, and P8, the CP device can determine warm standby group 1 containing the identifiers P1, P2, P3, and P8 from the pre-configured warm standby groups based on these interface identifiers. This warm standby group 1 is the warm standby group corresponding to the terminal. Since the terminal is located in address 1, the UP device in address 1 within warm standby group 1 is the terminal's local address UP device, and the UP device in address 2 is the terminal's out-of-address device. Of course, if the CP device receives multiple online request messages from the terminal containing multiple interface identifiers P4, P5, P6, P7, and P10, then the CP device can determine the warm standby group 2 containing the identifiers P4, P5, P6, P7, and P10 from a pre-configured set of warm standby groups based on these interface identifiers. This warm standby group 2 is the warm standby group corresponding to the terminal. Since the terminal is located within address 2, the UP devices within address 2 in warm standby group 2 are the terminal's local address UP devices, and the UP devices within address 1 are the terminal's out-of-address devices.

[0126] After determining the temperature standby group corresponding to the terminal, the CP device can obtain the access priority of the first UP device and the second UP device corresponding to the terminal based on the temperature standby group.

[0127] In one possible implementation, the CP device can obtain the access priority of multiple UP devices included in the warm standby group. The access priority of these multiple UP devices includes the access priority of the first UP device and the access priority of the second UP device. It should be noted that the access priority of these multiple UP devices refers to their access priority within the warm standby group. Within this warm standby group, the access priority of the terminal's local address UP device is higher than the access priority of the terminal's out-of-home address UP device. Therefore, when the first UP device is the terminal's local address UP device and the second UP device is the terminal's out-of-home address UP device, the access priority of the first UP device obtained by the CP device based on the warm standby group will be higher than the access priority of the second UP device. In other words, the fact that the access priority of the first UP device is higher than the access priority of the second UP device can mean that the access priority of the first UP device within the warm standby group is higher than the access priority of the second UP device within the warm standby group.

[0128] For example, the warm standby group includes a first subgroup and a second subgroup. The first subgroup includes multiple local address UP devices of the terminal, and the second subgroup includes multiple remote address UP devices of the terminal. That is, the first subgroup includes a first UP device, and the second subgroup includes a second UP device. The access priority of the first subgroup is higher than that of the second subgroup, and the access priority of each UP device in the first subgroup is the access priority of the first subgroup, and the access priority of each UP device in the second subgroup is the access priority of the second subgroup. Thus, the access priority of the first UP device is the access priority of the first subgroup, and the access priority of the second UP device is the access priority of the second subgroup; that is, the access priority of the first UP device is greater than that of the second UP device.

[0129] Among them, with Figure 7 Taking warm standby group 2 as an example, this warm standby group 2 includes interfaces P4, P5, P6, P7, and P10. UP1 (belonging to interface P7) and UP2 (belonging to interface P6) are UP devices within address 1; UP6 (belonging to interface P10) is a UP device within address 3; and UP3 (belonging to interface P5) and UP4 (belonging to interface P4) are both UP devices within address 2. Since warm standby group 2 is the warm standby group corresponding to terminals within address 2, the UP devices within address 1 and address 3 are all cross-address UP devices, meaning UP1, UP2, and UP6 are all cross-address UP devices, while the UP devices within address 2 are local address UP devices, meaning UP3 and UP4 are both local address UP devices. Based on this, in warm standby group 2, UP1, UP2, and UP6 belong to the second subgroup, and UP3 and UP4 belong to the first subgroup, with UP3 and UP4 having a higher access priority than UP1, UP2, and UP6.

[0130] Optionally, the access priority of each of the plurality of UP devices in the warm standby group can also be set individually. In this case, the access priority of the local address UP device of the terminal in the plurality of UP devices is greater than the access priority of the remote address UP device of the terminal, and the access priorities of at least two local address UP devices of the terminal in the warm standby group can be different in the warm standby group, and / or, the access priorities of at least two remote address UP devices of the terminal in the warm standby group can be different in the warm standby group. That is, when the access priority of each UP device in the warm standby group can be set individually, the access priorities of the plurality of local address UP devices in the warm standby group can all be different, all be the same, or some be the same and some are different. Similarly, the access priorities of the plurality of remote address UP devices in the warm standby group can all be different, all be the same, or some be the same and some are different.

[0131] For example, still using Figure 7 Taking the warm standby group 2 as an example, since the UP devices in local address 1 and local address 3 are cross-address UP devices, and the UP device in local address 2 is a local address UP device, the access priority of UP3 and UP4 is higher than the access priority of UP1, UP2 and UP6. For example, the access priority of UP4 is 100, the access priority of UP3 is 80, the access priority of UP2 is 60, the access priority of UP1 is 50, and the access priority of UP6 is 30.

[0132] In another possible implementation, the access priority of the UP device can be the access priority of its interfaces. In this case, the CP device can obtain the access priorities of multiple interfaces included in the warm standby group based on the warm standby group, and use the access priority of each of these interfaces as the access priority of the corresponding UP device. The access priorities of these multiple interfaces include the access priority of the first interface on the first UP device and the access priority of the second interface on the second UP device. It should be noted that in the warm standby group, the access priority of the interface on the terminal's local address UP device is greater than the access priority of the interface on the terminal's remote address UP device. Therefore, when the first UP device is the terminal's local address UP device and the second UP device is the terminal's remote address UP device, the access priority of the first interface on the first UP device obtained by the CP device based on the warm standby group will be greater than the access priority of the second interface on the second UP device. That is, the access priority on the first UP device is greater than the access priority on the second UP device.

[0133] For example, the warm standby group includes a first subgroup and a second subgroup. The first subgroup includes multiple local address interfaces from multiple interfaces, that is, interfaces on local address UP devices from multiple UP devices. The second subgroup includes multiple inter-address interfaces from multiple interfaces, that is, interfaces on inter-address UP devices from multiple UP devices. The first subgroup includes a first interface on a first UP device, and the second subgroup includes a second interface on a second UP device. Furthermore, the access priority of the first subgroup is higher than that of the second subgroup. Based on this, the CP device can obtain the access priority of the first subgroup as the access priority of each interface in the first subgroup, that is, the access priority of the UP device to which each interface belongs. Similarly, the access priority of the second subgroup is obtained as the access priority of each interface in the second subgroup, that is, the access priority of the UP device to which each interface belongs. Therefore, the access priority of the first interface on the first UP device is the access priority of the first subgroup, and the access priority of the second interface on the second UP device is the access priority of the second subgroup. In this way, the access priority of the first interface on the first UP device is higher than the access priority of the second interface on the second UP device.

[0134] Among them, with Figure 7 Taking warm standby group 1 as an example, since warm standby group 1 is the warm standby group corresponding to the terminals within address 1, the interfaces on the UP devices within address 1 are local address interfaces, while the interfaces on the UP devices within addresses 2 and 3 are inter-address interfaces. Based on this, warm standby group 1 includes a first subgroup and a second subgroup. The first subgroup includes local address interfaces P1 and P2, and the second subgroup includes inter-address interfaces P3 and P8. The access priority of the first subgroup is higher than that of the second subgroup. For example, if the access priority of the first subgroup is 100, and the access priority of the second subgroup is 80, then the access priority of interfaces P1 and P2 in the first subgroup is the same as the access priority of the first subgroup, which is 100. In other words, the access priority of the UP devices to which interfaces P1 and P2 belong is 100. Similarly, the access priority of interfaces P3 and P8 in the second subgroup is the same as the access priority of the second subgroup, which is 80. Therefore, the access priority of the UP devices to which interfaces P3 and P8 belong is 80.

[0135] Optionally, the CP device can also configure an access priority for each interface in the warm standby group, where the access priority of each interface is the access priority of the UP device to which that interface belongs. For example, at least two local interfaces among the multiple interfaces may have different access priorities, and / or at least two inter-local interfaces may have different access priorities. That is, when the access priority of each interface in the warm standby group can be set independently, the access priorities of multiple local interfaces may all be different, all be the same, or partially the same and partially different. Similarly, the access priorities of multiple inter-local interfaces in the warm standby group may all be different, all be the same, or partially the same and partially different.

[0136] For example, still using Figure 7 Taking the illustrated warm standby group 2 as an example, each interface in this group has a different access priority. Specifically, the access priority of local address interface P4 can be 100, meaning UP4 has an access priority of 100. The access priority of local address interface P5 is 80, meaning UP3 has an access priority of 80. The access priority of inter-address interface P6 is 60, meaning UP2 has an access priority of 60. The access priority of inter-address interface P7 is 50, meaning UP1 has an access priority of 60. The access priority of inter-address interface P10 is 30, meaning UP6 has an access priority of 30.

[0137] In one possible scenario, address 2 is closer to address 1, while address 3 is farther from address 1. Therefore, the priority setting method described above can ensure that in the event of a failure of address 1, terminal devices that originally accessed address 1 will preferentially access address 2.

[0138] It should be noted that, in one possible scenario, the multiple UP devices in the warm standby group corresponding to the aforementioned terminal are the first UP device and the second UP device. In this case, the access priority of the multiple UP devices obtained by the CP device is the access priority of the first UP device and the second UP device.

[0139] Step 402: Based on the access priority of the first UP device, control the terminal to access the first UP device.

[0140] After obtaining the access priorities of the first UP device and the second UP device corresponding to the terminal, the CP device can control the terminal to access the first UP device based on the access priority of the first UP device.

[0141] For example, as described above, the access priority of the first UP device is higher than that of the second UP device. Based on this, the CP device can control the terminal to access the first UP device if it determines that the first UP device is the UP device with the highest access priority in the warm standby group.

[0142] In one possible scenario, if the CP device obtains the access priority of multiple UP devices in the warm standby group, the CP device can determine whether the first UP device is the UP device with the highest access priority among the multiple UP devices based on the access priority of the first UP device in the warm standby group and the access priorities of the other UP devices in the warm standby group.

[0143] As described in step 401, the access priorities of each UP device in the warm standby group may differ. In this case, there will be one UP device with the highest access priority among the multiple UP devices. Based on this, the CP device can determine whether the first UP device is the UP device with the highest access priority among the multiple UP devices based on the access priorities of each UP device in the warm standby group. If the CP device determines that the first UP device is the UP device with the highest access priority in the warm standby group, the control terminal accesses the first UP device.

[0144] Optionally, there may be multiple UP devices with the same access priority. In this case, there may be multiple UP devices with the highest access priority. Based on this, the CP device can determine whether the first UP device is one of the multiple UP devices with the highest access priority. If the CP device determines that the first UP device is one of the multiple UP devices with the highest access priority in the warm standby group, the CP device determines the first UP device from the multiple UP devices with the highest access priority based on the current load of the first UP device.

[0145] Specifically, the CP device can determine whether the current load of the first UP device is the lowest among the multiple UP devices with the highest access priority, based on the current load of the first UP device and other UP devices with the highest access priority. If the first UP device is the lowest currently loaded among the multiple UP devices with the highest access priority, then the first UP device is determined to be the UP device that the terminal wants to access.

[0146] Optionally, the CP device may randomly determine the first UP device from among the multiple UP devices with the highest access priority; or, the CP device may determine the first UP device from among the multiple UP devices with the highest access priority based on an interface polling method. This application embodiment does not limit this.

[0147] After identifying the first UP device, the CP device can determine the first interface on the first UP device from the multiple interfaces included in the standby group, and then control the terminal to access the selected first UP device through the first interface.

[0148] For example, the CP device can send user entry information to the first UP device through the control interface between the CP device and the first UP device, so that the first UP device can forward the message based on the user entry information after receiving the message from the terminal through the first interface.

[0149] The user entry information may include the IP address assigned to the terminal, the MAC address of the terminal, and authorization information such as QoS and ACL of the terminal. This application embodiment does not limit this.

[0150] In another possible scenario, if the CP device obtains the access priority of multiple interfaces in the warm standby group, and the access priority of each interface is the access priority of the UP device to which the interface belongs, then the CP device can determine whether the first interface is the interface with the highest access priority among the multiple interfaces in the warm standby group based on the access priority of the first interface on the first UP device and the access priorities of other interfaces in the warm standby group. If the first interface is the interface with the highest access priority among the multiple interfaces, then the first UP device is determined to be the UP device with the highest access priority.

[0151] As described in step 401 above, the access priorities of each interface in the warm standby group may be different. In this case, there will be one interface with the highest access priority among the multiple interfaces. Based on this, the CP device can determine whether the first interface is the interface with the highest access priority among the multiple interfaces based on the access priorities of each interface. If the CP device determines that the first interface is the interface with the highest access priority in the warm standby group, then the first UP device to which the first interface belongs is determined to be the UP device with the highest access priority.

[0152] Optionally, among the multiple interfaces in the warm standby group, there may be interfaces with the same access priority. In this case, there may be multiple interfaces with the highest access priority. Based on this, the CP device can determine whether the first interface is one of the multiple interfaces with the highest access priority. If the CP device determines that the first interface is one of the multiple interfaces with the highest access priority in the warm standby group, it can determine that the first UP device to which the first interface belongs is one of the multiple UP devices with the highest access priority. At this time, the CP device can determine whether the current load of the first UP device is the lowest based on the current load of the first UP device. If the current load of the first UP device is the lowest, the first UP device is selected from the multiple UP devices with the highest access priority.

[0153] After the first UP device is identified, the CP device can control the terminal to access the first UP device through the first interface on the first UP device, referring to the method described above.

[0154] Optionally, in some other possible cases, the multiple UP devices corresponding to the terminal are the first UP device and the second UP device. That is, the access priority of the multiple UP devices obtained by the CP device is the access priority of the first UP device and the second UP device. In this case, since the access priority of the first UP device is higher than the access priority of the second UP device, the CP device can control the terminal to access the first UP device.

[0155] In this embodiment, in response to a terminal's online request message, the CP device can obtain the access priorities of the first UP device and the second UP device corresponding to the terminal. The first UP device is the terminal's local address UP device, and the second UP device is the terminal's external address UP device. The access priority of the first UP device is higher than that of the second UP device. Therefore, the CP device can preferentially select the higher-priority first UP device within the local address as the UP device for accessing the terminal, ensuring that the terminal preferentially accesses from the local address UP device when going online, thus avoiding service traffic detours.

[0156] Figure 8 This application provides another method for accessing a gateway, which can be applied to... Figure 1 or Figure 2 In the CP device of the vBNG system with separate CP and UP shown, such as Figure 8 As shown, the method includes the following steps:

[0157] Step 801: Obtain the access priority of the first UP device and the second UP device corresponding to the terminal. The access priority of the first UP device is greater than that of the second UP device. The first UP device is the local address UP device of the terminal, and the second UP device is the remote address UP device of the terminal. Both the first UP device and the second UP device are UP devices in the warm standby group in the vBNG system, and the warm standby group includes the third UP device accessed by the terminal.

[0158] In this embodiment, if the terminal connects via the method described in the above embodiments, the CP device can determine the fault-free local address UP device and the fault-free remote address UP device from the multiple UP devices corresponding to the terminal determined in step 401. Then, it obtains the access priorities of the fault-free local address UP device and the fault-free remote address UP device from the access priorities of the multiple UP devices corresponding to the terminal obtained in step 401. Here, "fault-free" means that the UP device has not experienced a device failure and the interface communicating with the terminal has also not failed. Furthermore, the fault-free local address UP device includes a first UP device, and the fault-free remote address UP device includes a second UP device.

[0159] Optionally, if the terminal does not go online through the method described in the above embodiments, the CP device can refer to the method described in step 401 of the above embodiments to determine the multiple UP devices corresponding to the terminal based on the terminal's online request message. Then, it can determine the non-faulty UP devices among the multiple UP devices and obtain the access priority of the non-faulty UP devices. The non-faulty UP devices include a first UP device and a second UP device, where the first UP device is the terminal's local address UP device and the second UP device is the terminal's external address UP device.

[0160] It should be noted that among the multiple UP devices corresponding to this terminal, a non-faulty terminal may have one or more local address UP devices, and a non-faulty terminal may also have one or more inter-address UP devices. Therefore, the CP device may obtain the access priorities of one or more local address UP devices and one or more inter-address UP devices. In this case, the CP device can obtain the access priority of the first UP device corresponding to the terminal from the access priorities of the one or more local address UP devices, and obtain the access priority of the second UP device corresponding to the terminal from the access priorities of the one or more inter-address UP devices.

[0161] Step 802: In response to a fault in the third UP device accessed by the terminal, control the terminal to access the first UP device based on the access priority of the first UP device.

[0162] After the terminal goes online through the third UP device, if the CP device detects that the third UP device to which the terminal is connected has a device failure or that the interface on the third UP device used to access the terminal has a failure, the CP device can control the terminal to access the first UP device based on the access priority of the first UP device obtained in step 801 above.

[0163] In this case, the CP device can refer to the method described in step 402 of the aforementioned embodiment. When it is determined that the first UP device is the UP device with the highest access priority in the warm standby group, the control terminal accesses the first UP device through the first interface on the first UP device.

[0164] It should be noted that, in this embodiment, after the CP device identifies the first UP device, it can directly send the user entry information of the terminal to the first UP device through the control interface between the CP device and the first UP device. In this way, the first UP device can subsequently forward the terminal's packets based on the user entry information, thereby achieving seamless handover of the terminal.

[0165] Additionally, in one possible scenario, none of the multiple UP devices corresponding to the terminal may be fault-free at the local address; that is, all the local UP devices corresponding to the terminal may be faulty. In this case, the CP device will control the terminal to access the second UP device based on the access priority obtained from the second UP device. In other words, if all the local UP devices are faulty, the CP device can control the terminal to access a different local UP device with a lower priority than the local UP devices.

[0166] It is worth noting that in this embodiment, the CP device may also execute step 801 after determining that the third UP device accessed by the terminal is faulty, and then control the terminal to access the first UP device based on the access priority of the first UP device. This embodiment does not limit this.

[0167] In this embodiment, the access priority of the first UP device corresponding to the terminal is higher than that of the second UP device. The first UP device is the terminal's local address UP device, and the second UP device is the terminal's external address UP device. Thus, if the third UP device accessed by the terminal fails, the CP device can control the terminal to preferentially switch to the higher-priority first UP device for access, based on the access priorities of the first and second UP devices corresponding to the terminal. That is, it preferentially switches to the local address UP device for access, thereby avoiding service traffic detours for the terminal.

[0168] According to the method described in the above embodiments, Figure 9 A flowchart is provided to illustrate how various devices interact to enable the control terminal to access the gateway. Figure 9 The terminal shown is located within address 2, meaning address 2 is the terminal's local address, and address 1 is the terminal's external address. The CP device is configured with a corresponding warm standby group for this terminal, which includes multiple UP devices corresponding to this terminal, such as... Figure 9As shown, UP1 and UP2 are located in address 1, and UP3 and UP4 are located in address 2. Since address 2 is the local address of this terminal, and address 1 is a different address, the access priority of the UP devices in address 2 is higher than that of the UP devices in address 1 in this warm standby group. That is, the access priority of UP3 and UP4 is higher than that of UP1 and UP2. See also... Figure 9 The access process includes the following steps:

[0169] Step 901: The terminal sends a point-to-point protocol over ethernet (PPPoE) dial-up message or a dynamic host configuration protocol (DHCP) dial-up message to the access network device.

[0170] The implementation process of this step can refer to the implementation method described in step 401 above.

[0171] Step 902: After receiving the PPPoE dial-up message or DHCP dial-up message from the terminal, the access network device sends the PPPoE dial-up message or DHCP dial-up message from the terminal to the corresponding UP1, UP2, UP3 and UP4.

[0172] The implementation process of this step can refer to the implementation method described in step 401 above.

[0173] Step 903: Upon receiving a PPPoE dial-up message or DHCP dial-up message from the terminal, UP1, UP2, UP3, and UP4 respectively add an identifier of the interface through which they communicate with the terminal to receive the PPPoE dial-up message or DHCP dial-up message.

[0174] The implementation process of this step can refer to the relevant implementation method described in step 401 above.

[0175] Step 904: UP1, UP2, UP3 and UP4 send PPPoE dial-up messages or DHCP dial-up messages with the interface identifier added to the CP device.

[0176] The implementation process of this step can refer to the implementation method described in step 401 above.

[0177] Step 905: After receiving PPPoE dial-up messages or DHCP dial-up messages sent by UP1, UP2, UP3 and UP4, the CP device obtains the access priority of UP1, UP2, UP3 and UP4 based on the multiple PPPoE dial-up messages or DHCP dial-up messages received.

[0178] The implementation process of this step can refer to the implementation method described in step 401 above.

[0179] Step 906: The CP device determines the UP device with the highest access priority as UP4 based on the access priorities of UP1, UP2, UP3 and UP4.

[0180] In this scenario, UP4 has an access priority of 100, UP3 has an access priority of 80, UP2 has an access priority of 60, and UP1 has an access priority of 50. Thus, the CP device selects UP4 as the UP device with the highest access priority based on the access priorities of the multiple UP devices.

[0181] Step 907: The CP device sends a PPPoE response message or a DHCP response message to UP4.

[0182] Step 908: UP4 sends a PPPOE response message or a DHCP response message to the terminal.

[0183] Step 909: The CP device sends user entry information to UP4.

[0184] The implementation method for this step can refer to the implementation method described in step 402 above.

[0185] Step 910: Terminal accesses UP4.

[0186] Step 911: If UP4 fails, the CP device determines the UP device with the highest access priority as UP3 based on the access priorities of UP1, UP2 and UP3.

[0187] Step 912: The CP device sends user entry information to UP3.

[0188] Step 913: Switch the terminal to UP3 access.

[0189] See Figure 10 This application provides an access gateway device 1000, which includes an acquisition module 1001 and an access module 1002.

[0190] The acquisition module 1001 is used to execute step 801 in the foregoing embodiments;

[0191] Access module 1002 is used to execute step 802 in the aforementioned embodiment.

[0192] Optionally, the warm standby group includes multiple interfaces on multiple UP devices corresponding to the terminal, and the multiple UP devices include a first UP device, a second UP device, and a third UP device.

[0193] Optionally, the access priority of the first UP device being higher than that of the second UP device includes the first UP device having a higher priority in the warm standby group than the second UP device in the warm standby group.

[0194] Optionally, the access priority of the first UP device being greater than that of the second UP device includes the access priority of the first interface on the first UP device being greater than that of the second interface on the second UP device, and multiple interfaces including the first interface and the second interface.

[0195] Optionally, the warm standby group includes a first subgroup and a second subgroup. The first subgroup includes multiple local address UP devices of the terminal, and the second subgroup includes multiple remote address UP devices of the terminal. The access priority of the first subgroup is higher than the access priority of the second subgroup. The access priority of the first UP device is the access priority of the first subgroup, and the access priority of the second UP device is the access priority of the second subgroup.

[0196] Optionally, at least two local address UP devices of the terminal in the warm standby group have different access priorities, and / or at least two different address UP devices of the terminal in the warm standby group have different access priorities.

[0197] Optionally, the access module 1002 is used for:

[0198] The first UP device is determined to be the UP device with the highest access priority in the warm standby group;

[0199] The control terminal is connected to the first UP device.

[0200] Optionally, the access module 1002 is also used for:

[0201] The first UP device is identified as one of the UP devices with the highest access priority in the warm standby group;

[0202] Based on the current load of the first UP device, the first UP device is determined from among the multiple UP devices with the highest access priority.

[0203] In summary, in this embodiment, the access priority of the first UP device corresponding to the terminal is higher than that of the second UP device. The first UP device is the terminal's local address UP device, and the second UP device is the terminal's external address UP device. Thus, if the third UP device accessed by the terminal fails, the CP device can control the terminal to prioritize switching to the higher-priority first UP device for access, based on the access priorities of the first and second UP devices corresponding to the terminal. That is, it prioritizes switching to the local address UP device, thereby avoiding service traffic routing for the terminal.

[0204] See Figure 11 This application provides an access gateway device 1100, which includes an acquisition module 1101 and an access module 1102.

[0205] The acquisition module 1101 is used to execute step 401 in the foregoing embodiments;

[0206] Access module 1102 is used to execute step 402 in the aforementioned embodiment.

[0207] Optionally, the warm standby group includes multiple interfaces on multiple UP devices corresponding to the terminal, and the multiple UP devices include a first UP device and a second UP device.

[0208] Optionally, the access priority of the first UP device being higher than that of the second UP device includes the first UP device having a higher priority in the warm standby group than the second UP device in the warm standby group.

[0209] Optionally, the access priority of the first UP device being greater than that of the second UP device includes the access priority of the first interface on the first UP device being greater than that of the second interface on the second UP device, and multiple interfaces including the first interface and the second interface.

[0210] Optionally, the warm standby group includes a first subgroup and a second subgroup. The first subgroup includes multiple local address UP devices of the terminal, and the second subgroup includes multiple remote address UP devices of the terminal. The access priority of the first subgroup is higher than the access priority of the second subgroup. The access priority of the first UP device is the access priority of the first subgroup, and the access priority of the second UP device is the access priority of the second subgroup.

[0211] Optionally, at least two local address UP devices of the terminal in the warm standby group have different access priorities, and / or at least two different address UP devices of the terminal in the warm standby group have different access priorities.

[0212] Optionally, the access module 1102 is used for:

[0213] The first UP device is determined to be the UP device with the highest access priority in the warm standby group;

[0214] The control terminal connects to the first selected UP device.

[0215] Optionally, the access module 1102 is also used for:

[0216] The first UP device is identified as one of the UP devices with the highest access priority in the warm standby group;

[0217] Based on the current load of the first UP device, the first UP device is determined from among the multiple UP devices with the highest access priority.

[0218] In summary, in this embodiment, in response to a terminal's online request message, the CP device can obtain the access priorities of the first UP device and the second UP device corresponding to the terminal. The first UP device is the terminal's local address UP device, and the second UP device is the terminal's external address UP device. The access priority of the first UP device is higher than that of the second UP device. Therefore, based on the access priorities of the first and second UP devices, the CP device can preferentially select the higher-priority first UP device within the local address as the UP device for accessing the terminal, thus ensuring that the terminal preferentially accesses from the local address UP device when going online, avoiding service traffic detours.

[0219] It should be noted that the access gateway device provided in the above embodiments is only illustrated by the division of the above functional modules when controlling the terminal to access the gateway. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the access gateway device and the access gateway method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.

[0220] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially as a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line, DSL) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., Digital Versatile Discs (DVDs)), or semiconductor media (e.g., Solid State Disks (SSDs)).

[0221] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0222] The above description is not intended to limit the embodiments of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the embodiments of this application should be included within the protection scope of the embodiments of this application.

Claims

1. A method for accessing a gateway, characterized in that, The method, applied to a CP device in a virtual broadband network gateway (vBNG) system with separate control plane (CP) and user plane (UP), includes: Obtain the access priorities of the first UP device and the second UP device corresponding to the terminal. The access priority of the first UP device is greater than that of the second UP device. The first UP device is the local address UP device of the terminal, and the second UP device is the remote address UP device of the terminal. In response to a failure of the third UP device accessed by the terminal, based on the access priority of the first UP device, the terminal is controlled to access the first UP device. The first UP device, the second UP device, and the third UP device are all UP devices in the warm standby group of the vBNG system.

2. The method according to claim 1, characterized in that, The temperature backup group includes multiple interfaces on multiple UP devices corresponding to the terminal, and the multiple UP devices include the first UP device, the second UP device, and the third UP device.

3. The method according to claim 2, characterized in that, The fact that the access priority of the first UP device is greater than that of the second UP device includes that the priority of the first UP device in the warm standby group is greater than that of the second UP device in the warm standby group.

4. The method according to claim 2, characterized in that, The access priority of the first UP device being greater than that of the second UP device includes the fact that the access priority of the first interface on the first UP device is greater than that of the second interface on the second UP device, and the plurality of interfaces includes the first interface and the second interface.

5. The method according to any one of claims 1-4, characterized in that, The warm standby group includes a first subgroup and a second subgroup. The first subgroup includes multiple local address UP devices of the terminal, and the second subgroup includes multiple remote address UP devices of the terminal. The access priority of the first subgroup is greater than the access priority of the second subgroup. The access priority of the first UP device is the access priority of the first subgroup, and the access priority of the second UP device is the access priority of the second subgroup.

6. The method according to any one of claims 1-4, characterized in that, The access priorities of at least two local address UP devices of the terminal in the warm standby group are different, and / or the access priorities of at least two different address UP devices of the terminal in the warm standby group are different.

7. The method according to any one of claims 1-6, characterized in that, The step of controlling the terminal to access the first UP device based on the access priority of the first UP device includes: The first UP device is determined to be the UP device with the highest access priority in the temperature standby group; Control the terminal to connect to the first UP device.

8. The method according to claim 7, characterized in that, The step of determining that the first UP device is the UP device with the highest access priority in the warm standby group includes: The first UP device is determined to be one of the multiple UP devices with the highest access priority in the temperature standby group; Based on the current load of the first UP device, the first UP device is determined from among the multiple UP devices with the highest access priority.

9. A method for accessing a gateway, characterized in that, A method for a CP device in a vBNG system with separate control plane (CP) and user plane (UP) includes: In response to the terminal's online request message, the access priorities of the first UP device and the second UP device corresponding to the terminal are obtained. The access priority of the first UP device is greater than that of the second UP device. The first UP device is the local address UP device of the terminal, and the second UP device is the remote address UP device of the terminal. Both the first UP device and the second UP device are UP devices in the warm standby group of the vBNG system. Based on the access priority of the first UP device, the terminal is controlled to access the first UP device.

10. The method according to claim 9, characterized in that, The temperature backup group includes multiple interfaces on multiple UP devices corresponding to the terminal, and the multiple UP devices include the first UP device and the second UP device.

11. The method according to claim 10, characterized in that, The fact that the access priority of the first UP device is greater than that of the second UP device includes that the priority of the first UP device in the warm standby group is greater than that of the second UP device in the warm standby group.

12. The method according to claim 10, characterized in that, The access priority of the first UP device being greater than that of the second UP device includes the fact that the access priority of the first interface on the first UP device is greater than that of the second interface on the second UP device, and the plurality of interfaces includes the first interface and the second interface.

13. The method according to any one of claims 9-12, characterized in that, The warm standby group includes a first subgroup and a second subgroup. The first subgroup includes multiple local address UP devices of the terminal, and the second subgroup includes multiple remote address UP devices of the terminal. The access priority of the first subgroup is higher than the access priority of the second subgroup. The access priority of the first UP device is the access priority of the first subgroup, and the access priority of the second UP device is the access priority of the second subgroup.

14. The method according to any one of claims 9-12, characterized in that, The access priorities of at least two local address UP devices of the terminal in the warm standby group are different, and / or the access priorities of at least two different address UP devices of the terminal in the warm standby group are different.

15. The method according to any one of claims 9-14, characterized in that, The step of controlling the terminal to access the first UP device based on the access priority of the first UP device includes: The first UP device is determined to be the UP device with the highest access priority in the temperature standby group; Control the terminal to access the selected first UP device.

16. The method according to claim 15, characterized in that, The step of determining that the first UP device is the UP device with the highest access priority in the warm standby group includes: The first UP device is determined to be one of the multiple UP devices with the highest access priority in the temperature standby group; Based on the current load of the first UP device, the first UP device is determined from among the multiple UP devices with the highest access priority.

17. A CP device, characterized in that, The CP device includes a processor and a memory, the memory being used to store a computer program, and the processor being used to execute the computer program stored in the memory to implement the access gateway method according to any one of claims 1-16.

18. A vBNG system, characterized in that, The vBNG system includes a CP device, a first UP device, a second UP device, and a third UP device corresponding to the terminal. The access priority of the first UP device is higher than that of the second UP device. The first UP device is the local address UP device of the terminal, and the second UP device is the remote address UP device of the terminal. The first UP device, the second UP device, and the third UP device are all UP devices in the warm standby group of the vBNG system. The CP device is used to obtain the access priority of the first UP device and the second UP device corresponding to the terminal; in response to the failure of the third UP device accessed by the terminal, it sends the user table information of the terminal to the first UP device based on the access priority of the first UP device. The first UP device is used to control the terminal access based on the user table information of the terminal.

19. A vBNG system, characterized in that, The vBNG system includes a CP device, a first UP device and a second UP device corresponding to the terminal, wherein the access priority of the first UP device is greater than the access priority of the second UP device, the first UP device is the local address UP device of the terminal, the second UP device is the remote address UP device of the terminal, and both the first UP device and the second UP device are UP devices in the warm standby group of the vBNG system. In response to the terminal's online request message, the CP device controls the terminal to access the first UP device based on the access priority of the first UP device.

20. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the access gateway method according to any one of claims 1-16.

Citation Information

Patent Citations

  • Address processing method and related equipment and system

    CN104486452A

  • User access method, CPE, OLT, switch, vBNG, SDN controller and metropolitan area network

    CN107517151A