Slave gateway access method, electronic device and computer program product

By creating virtual home gateways and user identifiers, the method addresses the high hardware and configuration management costs in FTTR-H networks by enabling unified management of multiple from-gateways under a single main gateway, thus reducing costs and simplifying network deployment.

CN120321064AActive Publication Date: 2025-07-15ZTE CORP
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510807698.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-17
Publication Date
2025-07-15
Estimated Expiration
2045-06-17

AI Technical Summary

Technical Problem

In the FTTR-H all-optical networking scenario, each home user needs to deploy the main gateway separately, resulting in high hardware maintenance costs and complex configuration management.

Method used

By creating multiple virtual home gateways and corresponding virtual user packet identifier IDs, the main gateway binds multiple slave gateways according to the virtual user packet ID, realizing unified management and configuration, reducing the repeated installation configuration of the main gateway.

Benefits of technology

It reduces hardware maintenance costs, simplifies network configuration management, realizes plug-and-play from gateways, and improves network configuration efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120321064A_ABST
    Figure CN120321064A_ABST
Patent Text Reader

Abstract

Provided in an embodiment of the present application are a slave gateway access method, an electronic device and a computer program product, the method comprising: for different users, creating a plurality of different virtual home gateways and corresponding virtual user group identifiers (IDs), one virtual user group ID corresponding to one virtual home gateway, and one virtual user group ID corresponding to one virtual home gateway; one virtual home gateway corresponds to a plurality of slave gateways under one home user; and according to the plurality of virtual user group IDs, binding a plurality of slave gateways of each home user with the corresponding virtual user group IDs, so that the plurality of slave gateways are accessed to the corresponding virtual home gateways. Therefore, through the embodiment of the invention, the problems of high hardware maintenance cost and complex configuration management caused by the fact that each home user needs to independently deploy the main gateway in a traditional FTTR-H all-optical networking scene can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technologies, and more specifically, to a method for accessing a slave gateway, an electronic device, and a computer program product. Background Art

[0002] FTTR-H (Fiber To The Room - Home Edition) can achieve functions such as seamless roaming throughout the user's indoor area and wireless sensing handover through ultra-gigabit bandwidth, and has become the infrastructure for multiple home users to build a leading home information network.

[0003] In the traditional FTTR-H scenario, networking is usually based on optical fiber media. It is necessary to deploy a master gateway at the home distribution box or the home center position. Taking the master gateway as the core, a home optical fiber network is constructed. Then, the master gateway connects to the OLT (Optical Line Terminal) upward through XGPON (10Gigabit-capable Passive Optical Network) or 10G EPON (10Gigabit Ethernet Passive Optical Network), and connects to multiple slave gateways downward through optical fiber interfaces. The multiple slave gateways support gigabit Ethernet ports, WiFi6, and WiFi7, and enter each room through optical fiber to provide wired and wireless gigabit network coverage for each room.

[0004] In the above-mentioned FTTR-H all-optical gateway networking method, each home user needs to install a master gateway and multiple slave gateways. Taking the master gateway as the home network center, unified management and configuration of all slave gateways are realized. However, since the master gateway of each home user needs to be installed, deployed, and configured separately, the hardware maintenance cost is high and the configuration management is complex.

[0005] Therefore, in the related technologies, there is an urgent need for a solution that simplifies the networking configuration of the master and slave gateways of multiple home users and realizes the plug-and-play of the slave gateway. Summary of the Invention

[0006] The embodiments of the present application provide a method for accessing a slave gateway, an electronic device, and a computer program product, so as to at least solve the problems of high hardware maintenance cost and complex configuration management caused by the need for each home user to separately deploy a master gateway in the traditional FTTR-H all-optical networking scenario.

[0007] According to an embodiment of the present application, a method for accessing a slave gateway is provided, including: for different users, creating a plurality of different virtual home gateways and corresponding virtual user group identifiers ID, where one virtual user group ID corresponds to one virtual home gateway, and one virtual home gateway corresponds to a plurality of slave gateways under one home user; according to the plurality of virtual user group IDs, binding the plurality of slave gateways of each home user to the corresponding virtual user group ID, so that the plurality of slave gateways are accessed into the corresponding virtual home gateway.

[0008] According to another embodiment of the present application, a computer-readable storage medium is further provided. A computer program is stored in the computer-readable storage medium, where the computer program is configured to execute the steps in any one of the above method embodiments when running.

[0009] According to another embodiment of the present application, an electronic device is further provided, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in the above method embodiments.

[0010] According to another embodiment of the present application, a computer program product is further provided, including a computer program, where the computer program implements the steps in the above method embodiments when executed by a processor.

[0011] Through the above embodiments of the present application, a method for accessing a slave gateway is provided. For different users, a plurality of different virtual home gateways and corresponding virtual user group identifiers ID are created. Among them, one virtual user group ID corresponds to one virtual home gateway, that is, there is no need to install a main gateway for each home. The main gateway can create virtual home gateways and corresponding virtual user group IDs for multiple home users as needed. According to the plurality of virtual user group IDs, the plurality of slave gateways of each home user are bound to the corresponding virtual user group ID, so that the plurality of slave gateways are accessed into the corresponding virtual home gateway, enabling the virtual home gateway to access multiple slave gateways at the same time, and the main gateway uniformly manages the slave gateways accessed by different home users. Therefore, through the embodiments of the present application, the problems of high hardware maintenance cost and complex configuration management caused by the need to separately deploy a main gateway for each home user in the traditional FTTR-H all-optical networking scenario can be solved, achieving the effects of reducing hardware costs and improving network configuration efficiency. Description of the Drawings

[0012] Figure 1 is a hardware structure block diagram of a computer terminal for the method of accessing a slave gateway according to an embodiment of the present application;

[0013] Figure 2 is a schematic diagram of the main-slave gateway networking access in the FTTR-H scenario in the related art;

[0014] Figure 3 It is a schematic diagram of the main - slave gateway networking access in the FTTR - H scenario according to an embodiment of the present application;

[0015] Figure 4 It is a flowchart of the access method of the slave gateway according to an embodiment of the present application;

[0016] Figure 5 It is a flowchart of the configuration of the main gateway service components according to an embodiment of the present application;

[0017] Figure 6 It is a schematic diagram of the process of installing and registering the slave gateway according to an embodiment of the present application;

[0018] Figure 7 It is a schematic diagram of extracting the virtual user group ID from the PON driver to the user - mode process according to an embodiment of the present application;

[0019] Figure 8 It is a schematic diagram of the two - dimensional relationship table of the main - slave gateway home user grouping according to an embodiment of the present application;

[0020] Figure 9 It is a schematic diagram of the process of the main gateway performing address allocation and policy routing through the virtual user group ID according to an embodiment of the present application;

[0021] Figure 10 It is a schematic diagram of the process of the slave gateway forwarding the PC - connected Internet packets according to an embodiment of the present application. Detailed implementation manners

[0022] In the following, embodiments of the present application will be described in detail with reference to the accompanying drawings and in conjunction with the embodiments.

[0023] It should be noted that the terms "first", "second", etc. in the specification, claims and above - mentioned drawings of the present application are used to distinguish similar objects, and do not necessarily describe a specific order or sequence.

[0024] The method embodiments provided in the embodiments of the present application can be executed on a mobile terminal, a computer terminal or a similar computing device. Taking running on a computer terminal as an example, Figure 1 It is a hardware structure block diagram of a computer terminal for the access method of the slave gateway according to an embodiment of the present application. As Figure 1 shown, the computer terminal may include one or more ( Figure 1Only one processor 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data are shown. Among them, the above computer terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those of ordinary skill in the art can understand that Figure 1 The structure shown is only schematic and does not limit the structure of the above computer terminal. For example, the computer terminal may further include more or fewer components than Figure 1 shown, or have a different configuration from Figure 1 shown.

[0025] The memory 104 can be used to store computer programs. For example, software programs and modules of application software, such as the computer program corresponding to the method of accessing from the gateway in the embodiments of the present application. The processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, that is, implements the above method. The memory 104 may include a high-speed random access memory and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memories. In some instances, the memory 104 may further include a memory remotely set relative to the processor 102, and these remote memories can be connected to the computer terminal through a network. Examples of the above network include, but are not limited to, the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.

[0026] The transmission device 106 is used to receive or send data via a network. Specific examples of the above network may include a wireless network provided by the communication provider of the computer terminal. In one instance, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station and thus communicate with the Internet. In one instance, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0027] Currently, Figure 2 is a schematic diagram of the master-slave gateway networking access in the FTTR-H scenario in the related art. As Figure 2 shown, in the related art, a mode of independently deploying a master gateway and multiple slave gateways in each household for master-slave gateway networking access is adopted. The following is Figure 2 the description of each component in

[0028] BRAS (Broadband Remote Access Server): The core device in the broadband access network, responsible for access control, user authentication and authorization, and connected to the OLT (Optical Line Terminal) through the corresponding network;

[0029] IPTV (Internet Protocol Television): Provides television services based on the Internet protocol and is connected to the OLT through the corresponding network;

[0030] ITMS (Integrated Terminal Management System) and FTTR Application Management Platform: ITMS is an integrated terminal management system for remotely managing, configuring, and monitoring home network devices. The FTTR Application Management Platform is used to manage and control devices and services in the FTTR network, such as the configuration and maintenance of master and slave gateways;

[0031] OLT: The core device of PON (Passive Optical Network), responsible for communicating with multiple ONUs (Optical Network Units) and providing access services;

[0032] Splitter 1: An outdoor primary splitter for distributing the optical signals of the OLT to multiple ONUs;

[0033] Master Gateway ONU: Deployed indoors, it is the central device of the home network, responsible for communicating with the OLT through Splitter 1 and providing network services to devices inside the home via wired or wireless means;

[0034] Splitter 2: An indoor secondary splitter for further distributing the optical signals of the Master Gateway ONU to each Slave Gateway ONU inside the home;

[0035] Slave Gateway ONU 1, Slave Gateway ONU 2,..., Slave Gateway ONU N: Responsible for providing network coverage for specific rooms inside the home, connected to the Master Gateway ONU through optical fibers, and providing network access services to terminal devices via wired or wireless means.

[0036] Through the above embodiments, the traditional FTTR-H master-slave gateway networking access mainly requires a separate master gateway to be deployed for each home user. Taking the master gateway as the home network center, multiple slave gateways are then accessed through an optical splitter. Each slave gateway can access multiple wired or wireless terminal devices to achieve unified management and configuration of all slave gateways. However, since the master gateway of each home user needs to be separately installed and configured, it will lead to problems of high hardware maintenance costs and complex networking installation and configuration.

[0037] In view of the above problems, in the embodiments of the present application, aiming at the problem of complex networking configuration management of the master-slave gateway under the existing FTTR-H all-optical networking, a new networking method for a FTTR-H master gateway to access multiple slave gateways according to a virtual home user identifier (Identifier, ID) is proposed. Figure 3 It is a schematic diagram of the networking access of the master-slave gateway in the FTTR-H scenario according to the embodiments of the present application. As Figure 3 shown, the master gateway ONU is deployed in the corridor or public area to implement the corridor-type gateway function. It is connected to the OLT through the optical splitter 1 and connected to multiple home information boxes ODN (Optical Distribution Network) through the optical splitter 2. The slave gateway ONUs are accessed in the ratio of 1:N. For example, 1 master gateway accesses N = 16 slave gateway ONUs. The master gateway manages the slave gateways of multiple home users for unified configuration and maintenance, without the need to install a master gateway for each home, so as to effectively save the hardware cost.

[0038] In this embodiment, multiple home users share a master gateway. Multiple virtual home user IDs are created on the master gateway and bound to the corresponding virtual home user IDs according to the GPON-SN (Gigabit Passive Optical Network - Serial Number) or logical identifier (Logical Identifier, LOID) of the slave gateway to achieve the networking access of the master-slave gateway under the new FTTR-H all-optical networking. In addition, the isolation of the Internet access plane services of different home users is performed on the master gateway. Moreover, for multicast services, the multiplexing method of the IPTV multicast channel is adopted.

[0039] Specifically, the master gateway can configure multiple virtual home user IDs as needed through WEB (Web Server) or ITMS network management. Each virtual home user ID corresponds to a virtual home gateway (vHGW). The vHGW can connect to multiple slave gateways simultaneously. The GPON-SN or LOID of the slave gateway is used to bind to the corresponding virtual home user ID to form a home network. Each home user has an independent WAN (Wide Area Network) connection for Internet access and a shared IPTV multicast service channel.

[0040] Therefore, the master-slave gateway networking access method under the FTTR-H all-optical networking provided by the embodiments of the present application reduces the repeated installation and configuration of the master gateway. The corridor-type master gateway is used to uniformly configure and manage multiple slave gateways of different home users, thereby reducing the complexity of network deployment, facilitating the network expansion of home users, enabling the slave gateways of different home users to be quickly accessed with zero configuration, and achieving plug-and-play.

[0041] Figure 4 It is a flowchart of the slave gateway access method according to the embodiments of the present application. As Figure 4 shown, the slave gateway access process of the embodiments of the present application includes the following steps:

[0042] Step S402: For different users, create multiple different virtual home gateways and corresponding virtual user group identifiers ID. Among them, one virtual user group ID corresponds to one virtual home gateway, and one virtual home gateway corresponds to multiple slave gateway virtual user group IDs under one home user;

[0043] In some embodiments, for different home users, create multiple different vHGW virtual home gateways and corresponding virtual user group IDs (virtual home user IDs). One home user corresponds to one vHGW virtual home gateway and one virtual user group ID. One virtual user group ID corresponds to one vHGW virtual home gateway, and one virtual home gateway corresponds to multiple slave gateways under one home user.

[0044] The master gateway adds a home user management module. The home user management module receives the virtual user group ID created by the WEB or ITMS network management, and binds multiple slave gateways of different home users to the corresponding virtual user group ID according to the networking needs. One virtual user group ID corresponds to one vHGW virtual home gateway, that is, the effect that the vHGW virtual home gateway can connect to multiple slave gateways simultaneously is achieved. The virtual user group ID is identified through the GPON-SN or LOID of the slave gateway and bound to the corresponding virtual user group ID to form a home network.

[0045] In this embodiment, it is not only necessary to create multiple different virtual home gateways and corresponding virtual identifier IDs, but also necessary to configure the main gateway service component. Figure 5 is a flowchart for configuring the main gateway service component according to an embodiment of the present application. As Figure 5 shown, the main gateway service component configuration process includes the following steps:

[0046] Step 1: Create a new DHCP address pool according to the needs of newly added home users;

[0047] Specifically, according to the needs of newly added home users, a new DHCP address pool and virtual user grouping ID are created through ITMS or WEB. The virtual user grouping ID includes the home user name and the virtual user grouping ID index. The DHCP (Dynamic Host Configuration Protocol) address pool includes different DHCPv4 address segments, as well as the local DHCPv6 address segment and the RA (Router Advertisement) prefix. Different DHCP address segments and RA prefixes are allocated according to different virtual user grouping IDs. Among them, the number of newly added home users can be divided according to the total number of slave gateways that the main gateway can access;

[0048] Step 2: Create a new Internet WAN connection according to the needs of newly added home users;

[0049] Specifically, according to the needs of newly added home users, a new Internet WAN connection supported by each home user is created through ITMS or WEB, and the MAC (Media Access Control) capacity is synchronously expanded when the main gateway is connected to the WAN;

[0050] Step 3: The home user management module creates new home users and adds bindings of the DHCP address pool, Internet WAN, and slave gateway;

[0051] Specifically, adding the bindings of the DHCP address pool, Internet WAN, and slave gateway specifically includes the following:

[0052] Step 3.1: The DHCP module adds the binding of the home user and the DHCP address pool;

[0053] Step 3.2: The WAN routing module adds the binding of the home user and the Internet WAN;

[0054] Step 3.3: The PON driver management module adds the GPON-SN or LOID information of the slave gateway for the home user.

[0055] Through the above embodiments, each household user is configured with an independent DHCP address pool and bound to different Internet access WAN connections, etc. The method of configuration and management according to household users greatly simplifies the deployment and maintenance of the FTTR-H all-optical home network, while ensuring the independence and security of network resources for each household user.

[0056] Step S404: According to the multiple virtual user group IDs, bind multiple slave gateways of each household user to the corresponding virtual user group IDs, so that the multiple slave gateways access the virtual user group IDs in the corresponding virtual home gateway.

[0057] In some embodiments, the binding of multiple slave gateways of each household user to the corresponding virtual user group IDs so that the multiple slave gateways access the corresponding virtual home gateway includes: binding the multiple slave gateways to the corresponding virtual user group IDs according to the pre-configured serial number or logical identifier of the slave gateway, so that the multiple slave gateways access the corresponding virtual home gateway.

[0058] In this embodiment, each virtual user group ID supports binding multiple slave gateways, which are bound according to the GPON-SN or LOID of the slave gateway. Among them, the GPON-SN or LOID of the slave gateway can be pre-configured. The master gateway creates a corresponding vHGW virtual home gateway according to each virtual user group ID, and binds the GPON-SN or LOID of the corresponding household user's slave gateway to form a home network, so that multiple slave gateways access the corresponding vHGW virtual home gateway, and the networks within the home network are interconnected, and the networks between different home networks are isolated, which can effectively reduce the hardware cost and reduce the repeated installation and configuration of the master gateway.

[0059] In some embodiments, the binding of the multiple slave gateways to the corresponding virtual user group IDs according to the pre-configured serial number or logical identifier of the slave gateway includes: binding the multiple slave gateways to the corresponding virtual user group IDs according to the mapping relationship between the pre-set serial number and the virtual user group ID and the pre-configured serial number of the slave gateway; or binding the multiple slave gateways to the corresponding virtual user group IDs according to the mapping relationship between the pre-set logical identifier and the virtual user group ID and the pre-configured logical identifier of the slave gateway.

[0060] In this embodiment, when a user's service is activated, the master gateway binds multiple slave gateways to the corresponding virtual user group ID according to the preset mapping relationship between the virtual user group ID and the GPON-SN or the preset mapping relationship between the virtual user group ID and the LOID. At the same time, this information is synchronously configured to the PON driver module and the kernel protocol stack module. Meanwhile, the QoS (Quality of Service) module in the master gateway can perform balanced scheduling on the Internet WAN connection traffic of each home user to avoid excessive bandwidth occupation by a single home user's Internet service.

[0061] In some embodiments, Figure 6 is a schematic diagram of the installation and registration process of the slave gateway according to the embodiment of the present application. As Figure 6 shown, the FTTR slave gateway installation and registration process includes the following steps:

[0062] Step S601: The user applies to activate the FTTR service;

[0063] Step S602: Bind the GPON SN or LOID to the corresponding virtual user group ID to form a home network;

[0064] Step S603: The user or the installer binds the virtual user group IDs on the slave gateway and the master gateway through a mobile phone or other devices;

[0065] Step S604: The installation of the slave gateway is completed, realizing plug and play.

[0066] In some embodiments, after creating multiple different virtual home gateways and corresponding virtual user group identifier IDs, the method further includes: in the initialization configuration stage, pre-configuring multiple independent Dynamic Host Configuration Protocol (DHCP) address pools; configuring at least one DHCP address pool for each of the virtual user group IDs; where each DHCP address pool corresponds to a continuous range of IP addresses for address allocation of terminal devices in the corresponding network environment.

[0067] In some embodiments, after binding multiple slave gateways of each home user to the corresponding virtual user group ID, the method further includes: when receiving a DHCP request from any slave gateway, obtaining the target virtual user group ID from the skb data structure of the socket buffer, where the target virtual user group ID corresponds to the serial number or logical identifier of the slave gateway; repackaging the target virtual user group ID, the source media access control (MAC) address of the second layer of the slave gateway, and the virtual local area network (VLAN) information of the slave gateway, and passing it to the user-mode process by appending the target virtual user group ID to the tail of the user datagram protocol (UDP) packet or filling the target virtual user group ID in the UDP socket extended option; the user-mode process selects the DHCP address pool corresponding to the target virtual user group ID according to the target virtual user group ID appended to the tail of the UDP packet or filled in the UDP socket extended option for IP address allocation.

[0068] In some embodiments, the master gateway allocates different DHCPv4 and DHCPv6 address pools and different RA prefixes according to the virtual user group ID. Multiple DHCP Server address pools can be preconfigured according to different home users, that is, different DHCP Server address pools are configured according to the vHGW virtual home users, and the DHCP-related parameters on the local area network (LAN) side of the home user can be set according to the needs of the home user. When the PON driver management module receives a request message from the slave gateway, it tags different virtual user group IDs for the skb (socket buffer) according to the preset mapping relationship between the virtual user group ID and the GPON-SN. The virtual user group ID information added to the skb is obtained by matching the virtual user group information preconfigured by the PON driver layer according to the GPON SN or LOID serial number reported by the slave gateway and the medium. And when receiving a UDP (User Datagram Protocol) packet, the source MAC address of the second layer, the VLAN (Virtual Local Area Network) of the slave gateway, and the target virtual user group ID information are appended to the tail of the UDP packet or the target virtual user group ID information is filled in the private field defined in the UDP socket extended option. When the user-mode process receives the packet, the corresponding target virtual user group ID information is obtained. When the local DHCP Server Socket receives the packet, it selects the corresponding DHCPv4 or DHCPv6 address pool according to the target virtual user group ID and allocates the corresponding IP (Internet Protocol) address.

[0069] In the embodiments of the present application, different WAN connections are bound according to the virtual user group ID. The PON driver management module selects the corresponding WAN connection policy routing according to the virtual user group ID marked on the skb packet and the WAN connection binding mapping relationship. When forwarding the downstream packet, the GEMPORT (Generalized Ethernet over Passive Optical Network) is found according to the destination MAC to determine the specific slave gateway.

[0070] In this embodiment, Figure 7 is a schematic diagram of extracting the virtual user group ID from the PON driver to the user space process according to the embodiments of the present application. As Figure 7 shown, the extraction of the virtual user group ID (i.e., virtual ID) from the PON driver to the user space process includes the following steps:

[0071] Step 1: The PON driver adds skb information according to the slave gateway GPON-SN or LOID information, and the skb carries the virtual user group ID information;

[0072] Specifically, when the PON driver of the master gateway receives an upstream data packet, it identifies which slave gateway of the virtual user group ID the data packet belongs to according to the GPON-SN or LOID information in the data packet header, and attaches this virtual user group ID to the skb. The skb is a structure used by the PON driver to transfer data between the network layer and the transport layer.

[0073] Step 2: The virtual user group ID information is appended through the socket socket option or through the UDP packet tail, and extracted to the user space process;

[0074] Specifically, when the data packet reaches the UDP layer of the kernel protocol stack, the virtual user group ID is copied to the end of the UDP packet payload or added to the packet through the extended option of the socket socket, so that when the user space process receives the packet, it can directly obtain the virtual user group ID information;

[0075] Step 3: The user space process performs address allocation and policy routing according to the virtual user group ID.

[0076] Specifically, when the user space process receives the UDP packet, it reads the virtual user group ID information. Based on this virtual user group ID information, the user space process can judge the home user corresponding to the UDP packet, allocate an IP address from the DHCP address pool configured by the home user, or select the correct DNS server for request forwarding, or send the RA prefix information to the slave gateway device to ensure that each home user obtains independent network services.

[0077] In some embodiments, after creating a plurality of different virtual home gateways and corresponding virtual user group identifiers ID, the method further includes: configuring a corresponding wide area network (WAN) connection for each type of network service or service requirement, wherein the WAN connection is a connection dynamically adjusted according to the service requirement; binding each virtual user group ID to the WAN connection and the service type, wherein the WAN connection is one or more, and the service type includes at least one of the following services: Internet access service, voice service, Internet Protocol Television (IPTV) multicast service.

[0078] In this embodiment, the WAN connection service types of home users may include services such as TR069 management channel, Internet access service (INTERNET), IPTV multicast service, voice service (VOIP), etc. Among them, each home user corresponds to one WAN connection for Internet access service and voice service, and different home users can share one WAN connection for TR069 management channel and IPTV multicast.

[0079] In this embodiment, to meet network service and service requirements (such as high-speed Internet access, high-definition video on demand, Wi-Fi coverage, etc.), the master gateway needs to configure multiple WAN connections. The WAN connection can be dynamically adjusted according to the specific service requirements of home users. For example, some users may require higher bandwidth allocation to support online games or cloud storage services, while some users may be more concerned about the clarity of video calls. The master gateway can create and adjust the corresponding WAN connection according to the needs of each home user through ITMS or WEB to optimize their specific network experience.

[0080] Through the virtual user group ID, the WAN connection and the service type configuration can be bound, such as the device interconnection and optimization strategy provided for voice service and Internet access service.

[0081] Figure 8 It is a schematic diagram of a two-dimensional relationship table of master-slave gateway home user grouping according to an embodiment of the present application, as Figure 8 shown, different home users are grouped according to GPON-SN or LOID (for example: user ID1, user ID2, etc.). At the same time, each home user is configured with a DHCP address pool (for example: DHCP address pool 1, DHCP address pool 2, etc.), PPPoE Internet access (for example: Internet access WAN connection 1, Internet access WAN connection 2, etc.), voice service, IPTV multicast service and other different user service plane division strategies. Different WAN connections can be bound to each virtual user group ID and different DHCP address pools can be allocated to support different virtual user group IDs to obtain different address network segments and meet different Internet access service plane requirements.

[0082] In some embodiments, after binding each virtual user group ID to a WAN connection and a service type, the method further includes: selecting a corresponding WAN connection according to the virtual user group ID and determining WAN prefix information; and allocating the split WAN prefix information to the slave gateway according to the WAN prefix information.

[0083] In this embodiment, for the scenario of a PC obtaining an address statelessly for RA prefix distribution, one is that the PC actively initiates an RS (Router Solicit) request message, and the master gateway replies with RA response information. The other is that the slave gateway actively sends RA in a multicast manner (without PC request). By selecting the WAN connection prefix bound to the virtual user group ID and splitting it into a 64-bit prefix, it is then distributed to the slave gateway of the corresponding home user.

[0084] For the scenario of a PC obtaining an address statefully with DHCPv6, similar to DHCPv4, different DHCP address pools are preset, and corresponding configurations are selected according to the virtual user group ID information.

[0085] In this embodiment, for the distribution of the RA prefix, according to the virtual user group ID in the RS request message, the prefix obtained by selecting the corresponding WAN connection is split and then distributed to implement the routing of IPv6 service packets for different home users. In addition, the DNS (Domain Name System Server) request message of the slave gateway also carries virtual user group ID grouping information. When the master gateway DNS proxy module receives a socket packet, it selects the DNS Server obtained by the corresponding WAN connection according to the virtual user group ID for forwarding.

[0086] In some embodiments, Figure 9 is a schematic flow diagram of the master gateway performing address allocation and policy routing through the virtual user group ID according to the embodiments of the present application, as Figure 9 shown, mainly including the following steps:

[0087] Step 1: The master gateway pre-configures multiple DHCP address pools;

[0088] Specifically, the master gateway ITMS or WEB pre-configures multiple DHCP address pools according to network deployment.

[0089] Step 2: The master gateway configures the DHCP address pool association index corresponding to each virtual user group ID;

[0090] Step 3: Obtain the corresponding virtual user group ID information when the user-mode process receives a packet;

[0091] Specifically, when the main gateway receives packets in kernel mode, the UDP packet receiving adds the layer 2 source MAC address, VLANID, skb->vhgw_id identifier to the end of the DHCP message payload or adds the virtual user group ID information through the socket extension option, and obtains the corresponding virtual user group ID information when the user mode process receives packets;

[0092] Step 4: The main gateway DHCP server allocates addresses and delivers other local services according to the virtual user group ID;

[0093] Specifically, when the DHCP Server receives a packet, it selects a different DHCP address pool according to the virtual user group ID, that is, it searches for the address pool index DhcpsPoolId associated with the vHGW virtual home gateway table according to the virtual user group ID, i.e. skb->vhgw_id, and further searches for the corresponding DHCPSVhgwPool address pool instance, and selects an idle IP address from the corresponding IP address segment. For the delivery of information such as DHCPv6 and RA prefix from the gateway, the corresponding LAN side RA prefix information can be delivered according to the content obtained from the WAN connection bound to the virtual user group ID;

[0094] Step 5: The main gateway performs policy routing based on the virtual user group ID;

[0095] Specifically, when the main gateway forwards upstream, it performs policy routing according to the virtual user group ID. When receiving packets downstream, it selects the corresponding WAN connection according to the destination MAC and VLAN. The PON driver further queries the GEMPORT based on the MAC to determine the corresponding slave gateway.

[0096] In some embodiments, Figure 10 1 is a flow chart of forwarding Internet access messages from a PC connected to a gateway according to an embodiment of the present application, such as Figure 10 As shown in the figure, the process of forwarding Internet access messages from a PC (Personal Computer) connected to the gateway includes the following steps:

[0097] Step 1: Send a request message from the gateway through the bridged WAN connection;

[0098] The slave gateway (such as slave gateway ONU1, slave gateway ONU2, ..., slave gateway ONUN) receives network requests from home terminal devices (such as personal computers PC), such as DHCP requests, web browsing requests or video streaming requests, etc. These request messages are transmitted to the PON interface of the main gateway through the bridged WAN connection.

[0099] Step 2: The main gateway driver layer adds the virtual user group ID information of skb;

[0100] After the PON driver layer of the main gateway receives the request message from the gateway device, it identifies the home user to which the request message belongs based on the GPON-SN or LOID information in the request message, and tags the skb message with the virtual user group ID so that subsequent service components (such as DHCP Server) can identify and process this message.

[0101] Step 3: Select the corresponding policy routing according to the skb virtual user group ID;

[0102] The main gateway selects the corresponding policy routing according to the skb virtual user group ID, which includes the following:

[0103] Step 3.1: Kernel protocol stack UDP packet receiving and processing;

[0104] In the kernel protocol stack of the main gateway, the UDP packet receiving module will further process the information in skb, copy the virtual user group ID information to the specified position of the UDP message, or add it through the extended option of the socket to ensure that the user state process can obtain the virtual user group ID information.

[0105] Step 3.2: The user state process allocates addresses according to the virtual user group ID;

[0106] After the user-state process receives the DHCP request message carrying the virtual user group ID, it searches for the corresponding home user configuration information based on the virtual user group ID, and then selects a free IP address from the DHCP address pool pre-configured for the home user and assigns it to the requesting terminal device. At the same time, it sends other local service configuration information, such as the DNS server address.

[0107] Step 3.3: Issue the RA prefix according to the virtual user group ID;

[0108] Regarding the delivery of RA prefixes, the prefix obtained from the corresponding WAN connection is selected and split according to the virtual user group ID in the RS request message, so as to realize the routing of IPv6 service messages of different home users.

[0109] Step 3.4: Primary gateway policy routing selection;

[0110] The main gateway performs policy routing based on the virtual user group ID information. The uplink data packet selects the WAN connection policy routing outbound interface based on the virtual user group ID, while the downlink data packet selects the appropriate GEMPORT based on the destination MAC address and VLAN tag, and then determines the specific slave gateway to ensure that the data is forwarded to the destination home user.

[0111] In the embodiments of the present application for multicast services, multiple slave gateways can use the common multicast VLAN channel used by the master gateway. The master gateway's IGMP Snooping / Proxy (Internet Group Management Protocol Snooping; Internet Group Management Protocol Proxy) module matches the forwarding rules based on the forwarding rule information learned from the upstream multicast group protocol packets and the downstream multicast data stream, copies the corresponding multicast service to the corresponding slave gateways, and the slave gateways then multicast it to the corresponding wired or wireless ports according to the multicast group information. The master gateway reports the VOIP (Voice Over IP) VLAN transparent transmission based on the reports from the slave gateways. The voice dialing parameter configuration of each slave gateway can be issued with relevant configurations through the ITMS network management or the master gateway.

[0112] Through the above embodiments, the embodiments of the present application access multiple slave gateways of different home users according to different virtual user grouping IDs, enabling the master gateway to uniformly configure and manage the slave gateways of different home users, effectively reducing the hardware cost, reducing the complexity of network deployment, and facilitating the network expansion of users.

[0113] Through the above embodiments of the present application, a method for accessing a slave gateway is provided. For different users, multiple different virtual home gateways and corresponding virtual identifiers IDs are created. Among them, one virtual user grouping ID corresponds to one virtual home gateway, that is, there is no need to install a master gateway for each home. The master gateway can create virtual home gateways and corresponding virtual user grouping IDs for multiple home users as needed. According to multiple virtual user grouping IDs, multiple slave gateways of each user are bound to the corresponding virtual user grouping IDs, enabling multiple slave gateways to access the corresponding virtual home gateways, so that the virtual home gateway can access multiple slave gateways at the same time, and the master gateway uniformly manages the slave gateways accessed by different home users. Therefore, through the embodiments of the present application, the problems of high hardware maintenance cost and complex configuration management caused by the need to separately deploy a master gateway for each home user in the traditional FTTR-H all-optical networking scenario can be solved, achieving the effects of reducing the hardware cost and improving the network configuration efficiency.

[0114] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases, the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to enable a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.

[0115] It should be noted that the above-mentioned various modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to this: the above-mentioned modules are all located in the same processor; or, the above-mentioned various modules are respectively located in different processors in any combination form.

[0116] The embodiments of the present application also provide a computer-readable storage medium, in which a computer program is stored. Among them, the computer program is set to execute the steps in any one of the above method embodiments when running.

[0117] In an exemplary embodiment, the above computer-readable storage medium may include, but is not limited to: USB flash drive, read-only memory (abbreviated as ROM), random access memory (abbreviated as RAM), mobile hard disk, magnetic disk or optical disk and other various media that can store computer programs.

[0118] The embodiments of the present application also provide an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is set to run the computer program to execute the steps in any one of the above method embodiments.

[0119] In an exemplary embodiment, the above electronic device may further include a transmission device and an input / output device. Among them, the transmission device is connected to the above processor, and the input / output device is connected to the above processor.

[0120] According to another embodiment of the present disclosure, there is also provided a computer program product, including a computer program, and the steps of the methods described in various embodiments of the present disclosure are implemented when the computer program is executed by a processor.

[0121] The specific examples in this embodiment can refer to the examples described in the above embodiments and exemplary embodiments, and this embodiment will not be elaborated here.

[0122] Obviously, those skilled in the art should understand that the various modules or steps of the present application described above can be implemented by a general-purpose computing device. They can be centralized on a single computing device or distributed over a network composed of multiple computing devices. They can be implemented by program codes executable by the computing device. Thus, they can be stored in a storage device and executed by the computing device. And in some cases, the steps shown or described can be executed in a sequence different from that here, or they can be separately fabricated into individual integrated circuit modules, or multiple modules or steps among them can be fabricated into a single integrated circuit module for implementation. In this way, the present application is not limited to any specific combination of hardware and software.

[0123] The above are only the preferred embodiments of the present application and are not used to limit the present application. For those skilled in the art, the present application can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the principle of the present application shall be included within the protection scope of the present application.

Claims

1. A gateway access method, characterized in that Including: For different users, create multiple different virtual home gateways and corresponding virtual user group identifiers ID, where one virtual user group ID corresponds to one virtual home gateway, and one virtual home gateway corresponds to multiple slave gateways under one home user; According to multiple virtual user group IDs, bind multiple slave gateways of each home user to the corresponding virtual user group IDs, so that the multiple slave gateways are connected to the corresponding virtual home gateways.

2. The method according to claim 1, wherein The step of binding multiple slave gateways of each home user to the corresponding virtual user group IDs so that the multiple slave gateways are connected to the corresponding virtual home gateways includes: According to the pre-configured serial number of the slave gateway or the logical identifier of the slave gateway, bind the multiple slave gateways to the corresponding virtual user group IDs, so that the multiple slave gateways are connected to the corresponding virtual home gateways.

3. The method according to claim 2, wherein The step of binding the multiple slave gateways to the corresponding virtual user group IDs according to the pre-configured serial number of the slave gateway or the logical identifier of the slave gateway includes: According to the mapping relationship between the pre-set serial number and the virtual user group ID, and the pre-configured serial number of the slave gateway, bind the multiple slave gateways to the corresponding virtual user group IDs; or, According to the mapping relationship between the pre-set logical identifier and the virtual user group ID, and the pre-configured logical identifier of the slave gateway, bind the multiple slave gateways to the corresponding virtual user group IDs.

4. The method according to claim 1, characterized in that, After creating multiple different virtual home gateways and corresponding virtual user group identifiers ID, the method further includes: In the initialization configuration stage, pre-configure multiple independent Dynamic Host Configuration Protocol (DHCP) address pools; Configure at least one DHCP address pool for each virtual user group ID; where each DHCP address pool corresponds to a continuous IP address range for address allocation of terminal devices in the corresponding network environment.

5. The method according to claim 1, wherein After binding multiple slave gateways of each home user to the corresponding virtual user group IDs, the method further includes: When receiving a DHCP request from any slave gateway, obtain the target virtual user group ID from the socket buffer skb data structure, where the target virtual user group ID corresponds to the serial number or logical identifier of the slave gateway; Repackage the target virtual user group ID, the source Media Access Control (MAC) address of the second layer of the slave gateway, and the Virtual Local Area Network (VLAN) ID information of the slave gateway, by appending the target virtual user group ID to the tail of the User Datagram Protocol (UDP) packet or filling the target virtual user group ID in the UDP socket extended option and passing it to the user space process; The user space process selects the DHCP address pool corresponding to the target virtual user group ID for IP address allocation according to the target virtual user group ID appended to the tail of the UDP packet or the target virtual user group ID filled in the UDP socket extended option.

6. The method according to claim 1, wherein After creating a plurality of different virtual home gateways and corresponding virtual user group identifiers ID, the method further includes: For each type of network service or service requirement, configure a corresponding wide area network (WAN) connection; wherein, the WAN connection is a connection dynamically adjusted according to the service requirement; Bind each virtual user group ID to the WAN connection and the service type, wherein the WAN connection is one or more, and the service type includes at least one of the following services: Internet access service, voice service, Internet Protocol Television (IPTV) multicast service.

7. The method according to claim 6, characterized in that, After binding each virtual user group ID to the WAN connection and the service type, the method further includes: Select a corresponding WAN connection according to the virtual user group ID and determine the WAN prefix information; According to the WAN prefix information, allocate the split WAN prefix information to the slave gateway.

8. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium, wherein when the computer program is executed by a processor, the steps of the method described in any one of claims 1-7 are implemented.

9. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, the steps of the method described in any one of claims 1-7 are implemented.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, the steps of the method described in any one of claims 1-7 are implemented.

Citation Information

Patent Citations

  • Systems and methods for placing virtual serving gateways for mobility management

    CN107005848A

  • Container-based virtual home gateway implementation method and system

    CN110224902A

  • Internet of Things system

    CN116368355A

  • Slave gateway configuration method, electronic equipment and computer readable storage medium

    CN117675555A

  • Control method and control device of intelligent equipment and server

    CN117978729A