A tenant isolation method, network virtual switching system and storage medium

By adding tenant identification information and processing rules to the access gateway and home cloud gateway, the problem that vCPE multi-tenant isolation is not possible in the existing technology, and multi-tenant isolation on the WAN side and more flexible network management are realized.

CN114422283BActive Publication Date: 2024-11-12CHINA TELECOM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111674468.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-31
Publication Date
2024-11-12
Estimated Expiration
2041-12-31

AI Technical Summary

Technical Problem

The existing home gateway network protocol cannot realize the business isolation of vCPE multi-tenant and cannot effectively manage and forward multi-tenant Internet traffic.

Method used

By adding tenant identification information of home broadband to the access gateway, combined with the NAT egress mapping rules of the home cloud gateway and the PPPoE protocol processing, the address conversion and processing of the packets are realized to ensure that the packets are isolated on the WAN side.

Benefits of technology

It realizes multi-tenant isolation of vCPE on the WAN side, improves network management flexibility and traffic forwarding accuracy, and supports higher bandwidth and more complex traffic rules.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114422283B_ABST
    Figure CN114422283B_ABST
Patent Text Reader

Abstract

The present invention provides a tenant isolation method, a network virtual switching system and a storage medium, and relates to the field of communication technology. The method is applied to a network virtual switching system, and the network virtual switching system includes an access gateway and a home cloud gateway. In an embodiment of the present invention, the access gateway can add tenant identification information corresponding to the home broadband to the message of the home broadband, and send the extended message to the home cloud gateway, so that the home cloud gateway can perform a series of processing on the message based on the tenant identification information carried in the message, and feed the processed message back to the access gateway, and the access gateway sends the message to the public network, thereby realizing the vCPE multi-tenant isolation of the WAN side function.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a tenant isolation method, a network virtual switching system and a storage medium. Background Art

[0002] The increasing demands of users for Internet access, such as cloud security, cloud entertainment, cloud storage, cloud IoT and other smart home services, have put forward the transformation requirements for the traffic operation and management of traditional broadband access from extensive to intensive. With the continuous maturity of cloud technology and virtualization technology, the gradual construction of edge cloud, NFV (Network Function Virtualization) and SDN (Software Defined Network) have become the hot spots and trends of technology research in edge cloud networks. In this context, vCPE (Virtualized Customer Premise Equipment) came into being. vCPE collects the three-layer capabilities of the user-side physical CPE (Customer Premise Equipment) through the cloud gateway, aggregates all Internet traffic to the cloud to realize traffic forwarding and control, and realizes fixed-point diversion according to user-related needs.

[0003] vCPE is a multi-tenant application scenario that simultaneously accesses a large number of tenants, supports higher bandwidth, and more accurate traffic forwarding rules. With the increase in home broadband users, operators need to invest huge network resources and computing resources to deploy vCPE throughout the network to provide broadband access services to users in the metropolitan area network. For multi-tenant scenarios, a single network element instance is usually used to centrally handle the Internet services of N tenants. For more flexible and convenient management, vCPE needs to support flexible lifecycle management, load-balanced service scheduling, and programmable personalized networks. External service orchestrators, unified controllers, and EMS (Element Management System) are introduced to orchestrate and manage vCPE home broadband services and the network forwarding layer.

[0004] The network protocol currently used in the traffic cloud solution is VXLAN (Virtual eXtensible Local Area Network) tunnel encapsulation technology. User messages are encapsulated in the inner layer of the tunnel and are unaware of the bearer network topology. The cloud gateway processes tunnel messages in a unified manner and forwards them to specific VNF (Virtual Network Function) instances according to user rules, such as vCPE, vDPI (Virtual Deep Packet Inspection), vFW (Virtual Firewall), etc.

[0005] However, existing home gateway WAN (Wide Area Network) side network protocols such as NAT (Network Address Translation) and PPPoE (Point-to-Point Protocol Over Ethernet) only support single-tenant traffic forwarding and cannot achieve vCPE multi-tenant service isolation. Summary of the invention

[0006] The present invention provides a tenant isolation method, a network virtual switching system and a storage medium to achieve vCPE multi-tenant isolation on the WAN side.

[0007] According to a first aspect of the present invention, a tenant isolation method is provided, which is applied to a network virtual switching system, wherein the network virtual switching system includes an access gateway and a home cloud gateway, and the method includes:

[0008] The access gateway determines the message type of the first message for the home broadband; if the message type of the first message is a public network message, adds the tenant identification information corresponding to the home broadband to the first message to obtain a second message; and sends the second message to the home cloud gateway;

[0009] The home cloud gateway determines whether there is a NAT export mapping rule that matches the tenant identification information carried in the second message; if there is a NAT export mapping rule that matches the tenant identification information, performs address translation on the second message to obtain a third message; processes the third message according to the PPPoE protocol to obtain a fourth message; and sends the fourth message to the access gateway;

[0010] The access gateway performs VXLAN encapsulation processing on the fourth message to obtain a fifth message, and sends the fifth message to the public network.

[0011] Optionally, the first message is an uplink transmission message, and performing address conversion on the second message to obtain a third message includes:

[0012] The NAT protocol processing plug-in in the home cloud gateway searches for a NAT session according to the first index value;

[0013] If there is a NAT session matching the first index value, the source address in the second message is converted into a public network address according to the NAT session to obtain an uplink third message.

[0014] Optionally, the first index value is generated according to a hash value of VNI, Qinq, source IP, source port, public port, public IP, and protocol type.

[0015] Optionally, the method further comprises:

[0016] If there is no NAT session matching the first index value, creating a NAT session according to the NAT egress mapping rule;

[0017] The source address in the second message is converted into a public network address according to the NAT session to obtain an uplink third message.

[0018] Optionally, the method further comprises:

[0019] If the home cloud gateway determines that there is no NAT egress mapping rule that matches the tenant identification information, the second message is discarded.

[0020] Optionally, the first message is a downlink transmission message, and performing address conversion on the second message to obtain a third message includes:

[0021] The home cloud gateway searches for a NAT session according to a second index value;

[0022] If there is a NAT session matching the second index value, converting the destination address in the second message into a private network address according to the NAT session to obtain a downlink third message;

[0023] If there is no NAT session matching the second index value, the second message is discarded.

[0024] Optionally, the network virtual switching system further includes a network orchestration controller, and the method further includes:

[0025] The network orchestration controller performs network orchestration on the service attributes and network identifier of the home broadband, obtains configuration parameters corresponding to the home broadband, and the configuration parameters include the VXLAN ID, PPPoE account and QinQ identifier of the home broadband; sends the configuration parameters to the access gateway and the home cloud gateway;

[0026] The home cloud gateway generates tenant identification information corresponding to the home broadband according to the VXLAN ID, PPPoE account and QinQ identifier in the configuration parameters; initiates broadband dial-up to the public network based on the tenant identification information; receives public network configuration information fed back by the Internet service provider corresponding to the public network; and generates NAT export mapping rules for the home broadband according to the tenant identification information and the public network configuration information.

[0027] Optionally, the network virtual switching system further includes an operator aggregation switch, and the method further includes:

[0028] The operator aggregation switch receives a message from the home broadband; performs VXLAN encapsulation processing on the message to obtain a VXLAN message, and sends the VXLAN message to the access gateway;

[0029] The access gateway decapsulates the VXLAN message according to the configuration parameters sent by the network orchestration controller to obtain the first message of the home broadband.

[0030] Optionally, the method further comprises:

[0031] The PPPoE protocol processing plug-in in the home gateway configures PPPoE parameters for the home broadband; and stores the PPPoE parameters of the home broadband in a hash table according to the tenant identifier.

[0032] Optionally, the processing the third message according to the PPPoE protocol to obtain a fourth message includes:

[0033] The PPPoE protocol processing plug-in in the home gateway searches the hash table for PPPoE parameters matching the tenant identification information according to the tenant identification information corresponding to the third message;

[0034] The third message is processed according to the PPPoE parameters to obtain a fourth message.

[0035] Optionally, the method further comprises:

[0036] When the access gateway determines that the message type of the first message is a service message, the access gateway sends the first message to a corresponding service gateway according to the service identifier corresponding to the first message.

[0037] According to a second aspect of the present invention, there is provided a network virtual switching system, the network virtual switching system comprising an access gateway and a home cloud gateway;

[0038] The access gateway is used to determine the message type of the first message of the home broadband; if the message type of the first message is a public network message, add the tenant identification information corresponding to the home broadband to the first message to obtain a second message; and send the second message to the home cloud gateway;

[0039] The home cloud gateway is used to determine whether there is a NAT export mapping rule matching the tenant identification information carried in the second message; if there is a NAT export mapping rule matching the tenant identification information, perform address translation on the second message to obtain a third message; process the third message according to the PPPoE protocol to obtain a fourth message; and send the fourth message to the access gateway;

[0040] The access cloud gateway is also used to perform VXLAN encapsulation processing on the fourth message to obtain a fifth message, and send the fifth message to the public network.

[0041] Optionally, the first message is an uplink transmission message, and the home cloud gateway includes a NAT protocol processing plug-in.

[0042] The NAT protocol processing plug-in is used to search for a NAT session according to a first index value; if there is a NAT session matching the first index value, the source address in the second message is converted into a public network address according to the NAT session to obtain an uplink third message.

[0043] Optionally, the first index value is generated according to a hash value of VNI, Qinq, source IP, source port, public port, public IP, and protocol type.

[0044] Optionally, the NAT protocol processing plug-in is also used to create a NAT session according to the NAT export mapping rule if there is no NAT session matching the first index value; and convert the source address in the second message into a public network address according to the NAT session to obtain an uplink third message.

[0045] Optionally, the NAT protocol processing plug-in is further used to discard the second message if it is determined that there is no NAT egress mapping rule matching the tenant identification information.

[0046] Optionally, the first message is a downlink transmission message, and the NAT protocol processing plug-in is used to search for a NAT session according to a second index value; if there is a NAT session that matches the second index value, then according to the NAT session, the destination address in the second message is converted into a private network address to obtain a downlink third message; if there is no NAT session that matches the second index value, then the second message is discarded.

[0047] Optionally, the network virtual switching system further includes a network orchestration controller.

[0048] The network orchestration controller is used to perform network orchestration on the service attributes and network identifier of the home broadband, obtain configuration parameters corresponding to the home broadband, and the configuration parameters include the VXLAN ID, PPPoE account and QinQ identifier of the home broadband; and send the configuration parameters to the access gateway and the home cloud gateway;

[0049] The home cloud gateway is used to generate tenant identification information corresponding to the home broadband according to the VXLAN ID, PPPoE account and QinQ identifier in the configuration parameters; initiate broadband dial-up to the public network based on the tenant identification information; receive public network configuration information fed back by the Internet service provider corresponding to the public network; and generate NAT export mapping rules for the home broadband according to the tenant identification information and the public network configuration information.

[0050] Optionally, the network virtual switching system further includes an operator aggregation switch,

[0051] The operator aggregation switch is used to receive a message from the home broadband; perform VXLAN encapsulation processing on the message to obtain a VXLAN message, and send the VXLAN message to the access gateway;

[0052] The access gateway is used to decapsulate the VXLAN message according to the configuration parameters sent by the network orchestration controller to obtain the first message of the home broadband.

[0053] Optionally, the PPPoE protocol processing plug-in in the home gateway is used to configure PPPoE parameters for the home broadband; and store the PPPoE parameters of the home broadband in a hash table according to the tenant identifier.

[0054] Optionally, the PPPoE protocol processing plug-in is further used to query the hash table for PPPoE parameters matching the tenant identification information according to the tenant identification information corresponding to the third message; and process the third message according to the PPPoE parameters to obtain a fourth message.

[0055] Optionally, the access gateway is further configured to, when determining that the message type of the first message is a service message, send the first message to a corresponding service gateway according to a service identifier corresponding to the first message.

[0056] According to a third aspect of the present invention, a processor-readable storage medium is provided, wherein the processor-readable storage medium stores a computer program, and the computer program is used to enable a processor to execute the aforementioned tenant isolation method.

[0057] The present invention provides a tenant isolation method, a network virtual switching system and a storage medium, which have the following technical effects:

[0058] In the embodiment of the present invention, the access gateway adds the tenant identification information corresponding to the home broadband into the message of the home broadband, and sends the extended message to the home cloud gateway, so that the home cloud gateway can perform a series of processing on the message based on the tenant identification information carried in the message, and feed back the processed message to the access gateway, which sends the message to the public network, thereby realizing the vCPE multi-tenant isolation of the WAN side function.

[0059] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0061] Figure 1 This is a flowchart of the specific steps of a tenant isolation method provided by an embodiment of the present invention;

[0062] Figure 2 It is a structural diagram of a network virtual switching system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0063] In the embodiments of the present invention, the term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent three situations: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0064] In the embodiments of the present invention, the term "plurality" refers to two or more than two, and other quantifiers are similar.

[0065] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0066] Embodiment 1

[0067] Reference Figure 1 , which shows a flowchart of the specific steps of a tenant isolation method provided in Example 1 of the present invention.

[0068] Step 101: The access gateway determines the message type of the first message for the home broadband; if the message type of the first message is a public network message, the tenant identification information corresponding to the home broadband is added to the first message to obtain a second message; and the second message is sent to the home cloud gateway.

[0069] Step 102, the home cloud gateway determines whether there is a NAT export mapping rule that matches the tenant identification information carried in the second message; if there is a NAT export mapping rule that matches the tenant identification information, the second message is addressed and converted to obtain a third message; the third message is processed according to the PPPoE protocol to obtain a fourth message; and the fourth message is sent to the access gateway.

[0070] Step 103: The access gateway performs VXLAN encapsulation processing on the fourth message to obtain a fifth message, and sends the fifth message to the public network.

[0071] It should be noted that the tenant isolation method provided in the embodiment of the present invention is applied to a network virtual switching system. Figure 2 , shows a schematic diagram of the structure of a network virtual switching system provided by an embodiment of the present invention. Figure 2As shown, the network virtual switching system includes a network orchestration controller (network orchestrator and unified controller), an access gateway, a home cloud gateway, a service gateway, an operator aggregation switch, an optical cable terminal device, and an optical network unit. Among them, the network orchestration controller is responsible for VNF life cycle management, resource allocation, service orchestration, etc., and also implements the integrated VNF control module, which is responsible for the configuration parameter issuance, monitoring and maintenance, etc. The access gateway, that is, the virtual switch (vSwitch) in the cloud, is responsible for the access contact of the traffic, and implements the functions of traffic distribution and traffic priority scheduling according to the configuration parameters. The home cloud gateway is responsible for PPPoE dial-up, user address allocation, NAT Internet access, management of the attached terminal, and scheduling of the Internet access traffic of the home broadband. The home cloud gateway also includes two functional plug-ins: a PPPoE protocol processing plug-in and a NAT protocol processing plug-in. Among them, the PPPoE protocol processing plug-in is used to implement the functions of PPPoE protocol message processing, dial-up request initiation, PPPoE session isolation, etc. The NAT protocol processing plug-in is used to implement the conversion of the intranet address and the public network address in the home broadband message, message isolation, etc. The service gateway is used for messages related to edge computing. The operator aggregation switch is responsible for aggregating the traffic of home broadband users in the metropolitan area network, and encapsulating the user traffic that meets the service rules into VXLAN messages and forwarding them to the cloud. It is the starting point of the VXLAN tunnel. The optical network unit, commonly known as the optical modem, is the border gateway device on the user side and the starting point of end-to-end services. The optical cable terminal is used to transmit the Internet traffic initiated by the optical network unit to the operator aggregation switch.

[0072] The tenant isolation method provided in the embodiment of the present invention is mainly based on the interaction between the access gateway and the home cloud gateway in the network virtual switching system to achieve multi-tenant isolation of vCPE on the WAN side. Specifically, the access gateway first determines the message type of the first message of the home broadband. If the message type of the first message is a public network message, the tenant identification information corresponding to the home broadband is added to the first message to obtain a second message, and the second message is sent to the home cloud gateway. If the message type of the first message is a business message, the first message is sent to the business gateway, and the business gateway performs corresponding processing. It should be noted that the first message is the message obtained after the access gateway decapsulates the VXLAN message sent by the operator's aggregation switch. The tenant identification information of the home broadband can be extracted from the configuration parameters issued by the network orchestration controller.

[0073] After receiving the second message, the home cloud gateway can first determine whether there is a NAT export mapping rule that matches the tenant identification information carried in the second message through the NAT protocol processing plug-in. The NAT export mapping rule is used to indicate the conversion method between the private network address and the public network address. If it is determined that there is a NAT export mapping rule that matches the tenant identification information, the second message is subjected to address conversion processing to obtain a third message.

[0074] Then, the NAT protocol processing plug-in in the home cloud gateway sends the third message after address conversion to the PPPoE protocol processing plug-in, and the PPPoE protocol processing plug-in processes the third message according to the PPPoE protocol to obtain a fourth message, and sends the fourth message to the access gateway.

[0075] The access gateway performs VXLAN encapsulation processing on the received fourth message to obtain a fifth message, and sends the fifth message to the public network.

[0076] It should be noted that the various processing processes of the message in the present invention only modify the header accordingly, and do not change the main content of the message. In other words, in the embodiment of the present invention, the main content of the first message, the second message, the third message, the fourth message, and the fifth message are the same.

[0077] In an embodiment of the present invention, the tenant identification information corresponding to the home broadband is added to the message of the home broadband through the access gateway, and the expanded message is sent to the home cloud gateway, so that the home cloud gateway can perform a series of processing on the message based on the tenant identification information carried in the message, and feed back the processed message to the access gateway, and the access gateway sends the message to the public network, thereby realizing the vCPE multi-tenant isolation of the WAN side function.

[0078] In an optional embodiment of the present invention, the network virtual switching system further includes a network orchestration controller, and the method further includes:

[0079] Step S11, the network orchestration controller performs network orchestration on the service attributes and network identifier of the home broadband, obtains configuration parameters corresponding to the home broadband, and the configuration parameters include the VXLAN ID, PPPoE account and QinQ identifier of the home broadband; and sends the configuration parameters to the access gateway and the home cloud gateway;

[0080] Step S12, the home cloud gateway generates tenant identification information corresponding to the home broadband according to the VXLAN ID, PPPoE account and QinQ identifier in the configuration parameters; initiates broadband dial-up to the public network based on the tenant identification information; receives public network configuration information fed back by the Internet service provider corresponding to the public network; and generates a NAT export mapping rule for the home broadband according to the tenant identification information and the public network configuration information.

[0081] It should be noted that before the access gateway processes the first message of the home broadband, the network orchestration controller orchestrates the service attributes and network identifier of the home broadband, obtains the configuration parameters corresponding to the home broadband, and sends the configuration parameters to the home broadband. Figure 2 The operator converges switches, access gateways and home cloud gateways in the network virtual switching system shown, so that the network elements that receive the configuration parameters perform corresponding processing according to the configuration parameters.

[0082] Among them, the configuration parameters obtained by the network orchestration controller include the VXLAN ID, PPPoE account and QinQ identifier corresponding to the home broadband. The home cloud gateway can generate the tenant identification information corresponding to the home broadband based on the VXLAN ID, PPPoE account and QinQ identifier in the configuration parameters. In addition, the home cloud gateway can also actively initiate broadband dial-up to the WAN side, that is, the public network, through the PPPoE protocol processing plug-in based on the tenant identification information of the home broadband. After receiving the broadband dial-up, the ISP (Internet Service Provider) on the WAN side will feedback the public network configuration information corresponding to the home broadband. The NAT protocol processing plug-in can generate the NAT export mapping rules corresponding to the home broadband based on the tenant identification information and public network configuration information of the home broadband.

[0083] In an optional embodiment of the present invention, the network virtual switching system further includes an operator aggregation switch, and the method further includes:

[0084] Step S21, the operator aggregation switch receives a message from the home broadband; performs VXLAN encapsulation processing on the message to obtain a VXLAN message, and sends the VXLAN message to the access gateway;

[0085] Step S22: The access gateway decapsulates the VXLAN message according to the configuration parameters sent by the network orchestration controller to obtain the first message of the home broadband.

[0086] The messages (Internet traffic) sent by home broadband are aggregated to DCSW, which performs VXLAN encapsulation on the received messages to obtain VXLAN messages and sends the VXLAN messages to the access gateway through the VXLAN tunnel.

[0087] The access gateway decapsulates the VXLAN message according to the configuration parameters sent by the network orchestration controller to obtain the first message of the home broadband.

[0088] After expanding the first message, the access gateway obtains a second message and sends the second message to the home cloud gateway, which performs address conversion on the second message. It should be noted that the processing of the home cloud gateway is different for uplink transmission messages and downlink transmission messages. The address conversion processing of the second message by the home cloud gateway will be described in detail below.

[0089] In an optional embodiment of the present invention, the first message is an uplink transmission message, and performing address conversion on the second message to obtain a third message includes:

[0090] Step S31, the NAT protocol processing plug-in in the home cloud gateway searches for a NAT session according to a first index value;

[0091] Step S32: If there is a NAT session matching the first index value, convert the source address in the second message into a public network address according to the NAT session to obtain an uplink third message.

[0092] If the first message processed by the access gateway is an uplink transmission message, the second message transmitted to the home cloud gateway is also an uplink transmission message, and the access gateway expands the message without changing the transmission direction of the message.

[0093] For the uplink transmission message, the home cloud gateway first uses the NAT protocol processing plug-in to determine whether there is a NAT export mapping rule that matches the tenant identification information carried in the second message. When it is determined that there is a NAT export mapping rule that matches the tenant identification information, it is determined whether there is a NAT session that matches it based on the first index value. The first index value is generated by the hash value of VNI, Qinq, source IP, source port, NAT port, NAT-IP, and protocol type. The NAT session includes a seven-tuple session in the outbound direction and a five-tuple session in the receiving direction.

[0094] If it is determined that there is a NAT session matching the first index value, the source address in the second message is directly converted into a public network address according to the NAT session to obtain an uplink third message.

[0095] Optionally, if there is no NAT session matching the first index value, a NAT session is created according to the NAT export mapping rule; and the source address in the second message is converted into a public network address according to the NAT session to obtain an uplink third message.

[0096] If it is determined that there is a NAT export mapping rule that matches the tenant identification information carried in the second message, but there is no NAT session that matches the first index value, the home cloud gateway can use the NAT protocol processing plug-in to create a new NAT session according to the NAT export mapping rule corresponding to the tenant identification information, and then convert the source address in the second message into a public network address based on the newly created NAT session.

[0097] It should be noted that when creating a NAT session, you need to create sessions in two directions at the same time, namely, a seven-tuple session in the outbound direction and a five-tuple session in the inbound direction. As an example, you can create a hash table consisting of VNI, Qinq, source IP, source port, NAT-IP, NAT port, and protocol type as a seven-tuple session in the outbound direction; and create a hash table consisting of destination port, destination IP, NAT-IP, NAT port, and protocol type as a five-tuple session in the inbound direction.

[0098] In an optional embodiment of the present invention, the method further includes:

[0099] If the home cloud gateway determines that there is no NAT egress mapping rule that matches the tenant identification information, the second message is discarded.

[0100] If it is determined that there is no NAT egress mapping rule that matches the tenant identification information carried in the second message, the second message can be directly discarded without being processed.

[0101] In an optional embodiment of the present invention, the first message is a downlink transmission message, and performing address conversion on the second message to obtain a third message includes:

[0102] Step S41, the home cloud gateway searches for a NAT session according to a second index value;

[0103] Step S42: If there is a NAT session matching the second index value, convert the destination address in the second message into a private network address according to the NAT session to obtain a downlink third message;

[0104] Step S43: If there is no NAT session matching the second index value, discard the second message.

[0105] If the first message is a downlink transmission message, then the second message received by the home cloud gateway is also a downlink transmission message. For the downlink transmission message, when the home cloud gateway determines that there is a NAT egress mapping rule that matches the tenant identification information carried in the second message, it further queries whether there is a NAT session that matches it according to the second index value. If so, the destination address in the second message is directly converted to a private network address according to the NAT session; if not, the second message is directly discarded without creating a NAT session.

[0106] The second index value may be generated by a hash value consisting of a destination port, a destination IP, a NAT-IP, a NAT port, and a protocol type.

[0107] In an optional embodiment of the present invention, the method further includes:

[0108] The PPPoE protocol processing plug-in in the home cloud gateway configures PPPoE parameters for the home broadband; and stores the PPPoE parameters of the home broadband in a hash table according to the tenant identifier.

[0109] The PPPoE protocol processing plug-in in the home cloud gateway can configure PPPoE parameters for home broadband, and can store PPPoE parameters such as PPPoE SESSION ID, PEER MAC, etc. in a hash table according to the tenant identification information of the home broadband, so that during the message processing, the message can be processed according to the stored PPPoE parameters.

[0110] As an example, the processing of the third message according to the PPPoE protocol includes:

[0111] Step S51: the PPPoE protocol processing plug-in in the home gateway searches the hash table for PPPoE parameters matching the tenant identification information according to the tenant identification information corresponding to the third message;

[0112] Step S52: Process the third message according to the PPPoE parameters to obtain a fourth message.

[0113] When the home cloud gateway processes the third message after the address conversion, it can use the PPPoE protocol processing plug-in to query the PPPoE parameters that match the tenant identification information in the hash table storing the PPPoE parameters according to the tenant identification information corresponding to the third message, and thus process the third message according to the queried PPPoE parameters.

[0114] In an optional embodiment of the present invention, the method further includes:

[0115] When the access gateway determines that the message type of the first message is a service message, the access gateway sends the first message to a corresponding service gateway according to the service identifier corresponding to the first message.

[0116] In an embodiment of the present invention, if the access gateway determines that the first message of the home broadband is a service message, the first message may be sent to the corresponding service gateway according to the service identifier corresponding to the first message. Specifically, the access gateway may forward the first message to the service gateway through the MECvxlan tunnel group according to the service identifier of the first message.

[0117] To summarize, the embodiment of the present invention adds the tenant identification information corresponding to the home broadband to the message of the home broadband through the access gateway, and sends the extended message to the home cloud gateway, so that the home cloud gateway can perform a series of processing on the message based on the tenant identification information carried in the message, and feed back the processed message to the access gateway, which sends the message to the public network, thereby realizing the vCPE multi-tenant isolation of the WAN side function.

[0118] Embodiment 2

[0119] Reference Figure 2 , which shows a schematic diagram of a structure of a network virtual switching system provided by Embodiment 2 of the present invention. The network virtual switching system includes an access gateway and a home cloud gateway;

[0120] The access gateway is used to determine the message type of the first message of the home broadband; if the message type of the first message is a public network message, add the tenant identification information corresponding to the home broadband to the first message to obtain a second message; and send the second message to the home cloud gateway;

[0121] The home cloud gateway is used to determine whether there is a NAT export mapping rule matching the tenant identification information carried in the second message; if there is a NAT export mapping rule matching the tenant identification information, perform address translation on the second message to obtain a third message; process the third message according to the PPPoE protocol to obtain a fourth message; and send the fourth message to the access gateway;

[0122] The access cloud gateway is also used to perform VXLAN encapsulation processing on the fourth message to obtain a fifth message, and send the fifth message to the public network.

[0123] Optionally, the first message is an uplink transmission message, and the home cloud gateway includes a NAT protocol processing plug-in.

[0124] The NAT protocol processing plug-in is used to search for a NAT session according to a first index value; if there is a NAT session matching the first index value, the source address in the second message is converted into a public network address according to the NAT session to obtain an uplink third message.

[0125] Optionally, the first index value is generated according to a hash value of VNI, Qinq, source IP, source port, public port, public IP, and protocol type.

[0126] Optionally, the NAT protocol processing plug-in is also used to create a NAT session according to the NAT export mapping rule if there is no NAT session matching the first index value; and convert the source address in the second message into a public network address according to the NAT session to obtain an uplink third message.

[0127] Optionally, the NAT protocol processing plug-in is further used to discard the second message if it is determined that there is no NAT egress mapping rule matching the tenant identification information.

[0128] Optionally, the first message is a downlink transmission message, and the NAT protocol processing plug-in is used to search for a NAT session according to a second index value; if there is a NAT session that matches the second index value, then according to the NAT session, the destination address in the second message is converted into a private network address to obtain a downlink third message; if there is no NAT session that matches the second index value, then the second message is discarded.

[0129] Optionally, the network virtual switching system further includes a network orchestration controller.

[0130] The network orchestration controller is used to perform network orchestration on the service attributes and network identifier of the home broadband, obtain configuration parameters corresponding to the home broadband, and the configuration parameters include the VXLAN ID, PPPoE account and QinQ identifier of the home broadband; and send the configuration parameters to the access gateway and the home cloud gateway;

[0131] The home cloud gateway is used to generate tenant identification information corresponding to the home broadband according to the VXLAN ID, PPPoE account and QinQ identifier in the configuration parameters; initiate broadband dial-up to the public network based on the tenant identification information; receive public network configuration information fed back by the Internet service provider corresponding to the public network; and generate NAT export mapping rules for the home broadband according to the tenant identification information and the public network configuration information.

[0132] Optionally, the network virtual switching system further includes an operator aggregation switch,

[0133] The operator aggregation switch is used to receive a message from the home broadband; perform VXLAN encapsulation processing on the message to obtain a VXLAN message, and send the VXLAN message to the access gateway;

[0134] The access gateway is used to decapsulate the VXLAN message according to the configuration parameters sent by the network orchestration controller to obtain the first message of the home broadband.

[0135] Optionally, the PPPoE protocol processing plug-in in the home gateway is used to configure PPPoE parameters for the home broadband; and store the PPPoE parameters of the home broadband in a hash table according to the tenant identifier.

[0136] Optionally, the PPPoE protocol processing plug-in is further used to query the hash table for PPPoE parameters matching the tenant identification information according to the tenant identification information corresponding to the third message; and process the third message according to the PPPoE parameters to obtain a fourth message.

[0137] Optionally, the access gateway is further configured to, when determining that the message type of the first message is a service message, send the first message to a corresponding service gateway according to a service identifier corresponding to the first message.

[0138] It should be noted that the division of modules and units in the embodiments of the present invention is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, the functional modules and functional units in the various embodiments of the present invention may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware or in the form of software functional units.

[0139] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a processor-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0140] It should be noted here that the above-mentioned system provided by the embodiment of the present invention can implement all the method steps implemented by the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects that are the same as the method embodiment in this embodiment will not be described in detail here.

[0141] An embodiment of the present invention further provides a processor-readable storage medium, wherein the processor-readable storage medium stores a computer program, and the computer program is used to enable a processor to execute the aforementioned method.

[0142] The processor-readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD)), etc.

[0143] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.

[0144] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer executable instructions. These computer executable instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0145] These processor-executable instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0146] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0147] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A tenant isolation method, characterized in that: Applied to a network virtual switching system, the network virtual switching system includes an access gateway and a home cloud gateway, the method includes: The access gateway determines the message type of the first message for the home broadband; if the message type of the first message is a public network message, adds the tenant identification information corresponding to the home broadband to the first message to obtain a second message; and sends the second message to the home cloud gateway; The home cloud gateway determines whether there is a NAT export mapping rule that matches the tenant identification information carried in the second message; if there is a NAT export mapping rule that matches the tenant identification information, performs address translation on the second message to obtain a third message; processes the third message according to the PPPoE protocol to obtain a fourth message; and sends the fourth message to the access gateway; The access gateway performs VXLAN encapsulation processing on the fourth message to obtain a fifth message, and sends the fifth message to the public network; The network virtual switching system further includes a network orchestration controller, and the method further includes: The network orchestration controller performs network orchestration on the service attributes and network identifier of the home broadband, obtains configuration parameters corresponding to the home broadband, and the configuration parameters include the VXLAN ID, PPPoE account and QinQ identifier of the home broadband; sends the configuration parameters to the access gateway and the home cloud gateway; The home cloud gateway generates tenant identification information corresponding to the home broadband according to the VXLANID, PPPoE account and QinQ identifier in the configuration parameters; initiates broadband dial-up to the public network based on the tenant identification information; receives public network configuration information fed back by the Internet service provider corresponding to the public network; and generates NAT export mapping rules for the home broadband according to the tenant identification information and the public network configuration information.

2. The method according to claim 1, characterized in that The first message is an uplink transmission message, and performing address conversion on the second message to obtain a third message includes: The NAT protocol processing plug-in in the home cloud gateway searches for a NAT session according to the first index value; If there is a NAT session matching the first index value, the source address in the second message is converted into a public network address according to the NAT session to obtain an uplink third message.

3. The method according to claim 2, characterized in that The first index value is generated according to the hash value of VNI, Qinq, source IP, source port, NAT port, NAT-IP, and protocol type.

4. The method according to claim 2, characterized in that The method further comprises: If there is no NAT session matching the first index value, creating a NAT session according to the NAT egress mapping rule; The source address in the second message is converted into a public network address according to the NAT session to obtain an uplink third message.

5. The method according to claim 2, characterized in that: The method further comprises: If the home cloud gateway determines that there is no NAT egress mapping rule that matches the tenant identification information, the second message is discarded.

6. The method according to claim 2, characterized in that The first message is a downlink transmission message, and the address conversion is performed on the second message to obtain a third message, including: The home cloud gateway searches for a NAT session according to a second index value; If there is a NAT session matching the second index value, converting the destination address in the second message into a private network address according to the NAT session to obtain a downlink third message; If there is no NAT session matching the second index value, the second message is discarded.

7. The method according to claim 1, characterized in that The network virtual switching system further includes an operator aggregation switch, and the method further includes: The operator aggregation switch receives a message from the home broadband; performs VXLAN encapsulation processing on the message to obtain a VXLAN message, and sends the VXLAN message to the access gateway; The access gateway decapsulates the VXLAN message according to the configuration parameters sent by the network orchestration controller to obtain the first message of the home broadband.

8. The method according to claim 1, characterized in that The method further comprises: The PPPoE protocol processing plug-in in the home cloud gateway configures PPPoE parameters for the home broadband; and stores the PPPoE parameters of the home broadband in a hash table according to the tenant identifier.

9. The method according to claim 8, characterized in that The processing of the third message according to the PPPoE protocol to obtain a fourth message includes: The PPPoE protocol processing plug-in in the home cloud gateway searches the hash table for PPPoE parameters that match the tenant identification information according to the tenant identification information corresponding to the third message; The third message is processed according to the PPPoE parameters to obtain a fourth message.

10. The method according to claim 1, characterized in that The method further comprises: When the access gateway determines that the message type of the first message is a service message, the access gateway sends the first message to a corresponding service gateway according to the service identifier corresponding to the first message.

11. A network virtual switching system, characterized in that: The network virtual switching system includes an access gateway and a home cloud gateway; The access gateway is used to determine the message type of the first message for the home broadband; If the message type of the first message is a public network message, adding the tenant identification information corresponding to the home broadband to the first message to obtain a second message; Sending the second message to the home cloud gateway; The home cloud gateway is used to determine whether there is a NAT export mapping rule matching the tenant identification information carried in the second message; if there is a NAT export mapping rule matching the tenant identification information, perform address translation on the second message to obtain a third message; process the third message according to the PPPoE protocol to obtain a fourth message; and send the fourth message to the access gateway; The access gateway is further used to perform VXLAN encapsulation processing on the fourth message to obtain a fifth message, and send the fifth message to the public network; The network virtual switching system also includes a network orchestration controller, The network orchestration controller is used to perform network orchestration on the service attributes and network identifier of the home broadband, obtain configuration parameters corresponding to the home broadband, and the configuration parameters include the VXLAN ID, PPPoE account and QinQ identifier of the home broadband; and send the configuration parameters to the access gateway and the home cloud gateway; The home cloud gateway is used to generate tenant identification information corresponding to the home broadband according to the VXLAN ID, PPPoE account and QinQ identifier in the configuration parameters; Initiate broadband dial-up to the public network based on the tenant identification information; Receive public network configuration information fed back by the Internet service provider corresponding to the public network; and generate a NAT export mapping rule for the home broadband according to the tenant identification information and the public network configuration information.

12. The system according to claim 11, characterized in that The first message is an uplink transmission message, and the home cloud gateway includes a NAT protocol processing plug-in. The NAT protocol processing plug-in is used to search for a NAT session according to a first index value; if there is a NAT session matching the first index value, the source address in the second message is converted into a public network address according to the NAT session to obtain an uplink third message.

13. The system according to claim 12, characterized in that The first index value is generated according to the hash value of VNI, Qinq, source IP, source port, public port, public IP, and protocol type.

14. The system according to claim 12, characterized in that The NAT protocol processing plug-in is also used to create a NAT session according to the NAT export mapping rule if there is no NAT session matching the first index value; and convert the source address in the second message into a public network address according to the NAT session to obtain an uplink third message.

15. The system according to claim 12, characterized in that The NAT protocol processing plug-in is further used to discard the second message if it is determined that there is no NAT egress mapping rule matching the tenant identification information.

16. The system according to claim 12, characterized in that The first message is a downlink transmission message, and the NAT protocol processing plug-in is used to search for a NAT session according to a second index value; if there is a NAT session matching the second index value, the destination address in the second message is converted into a private network address according to the NAT session to obtain a downlink third message; if there is no NAT session matching the second index value, the second message is discarded.

17. The system according to claim 11, characterized in that The network virtual switching system also includes an operator aggregation switch, The operator aggregation switch is used to receive a message from the home broadband; perform VXLAN encapsulation processing on the message to obtain a VXLAN message, and send the VXLAN message to the access gateway; The access gateway is used to decapsulate the VXLAN message according to the configuration parameters sent by the network orchestration controller to obtain the first message of the home broadband.

18. The system according to claim 11, characterized in that The PPPoE protocol processing plug-in in the home cloud gateway is used to configure PPPoE parameters for the home broadband; and store the PPPoE parameters of the home broadband in a hash table according to the tenant identifier.

19. The system according to claim 18, characterized in that The PPPoE protocol processing plug-in is also used to query the PPPoE parameters matching the tenant identification information in the hash table according to the tenant identification information corresponding to the third message; and process the third message according to the PPPoE parameters to obtain a fourth message.

20. The system according to claim 11, characterized in that The access gateway is further configured to send the first message to a corresponding service gateway according to a service identifier corresponding to the first message when determining that the message type of the first message is a service message.

21. A processor-readable storage medium, characterized in that: The processor-readable storage medium stores a computer program, and the computer program is used to enable a processor to execute the method according to any one of claims 1 to 10.