Service message processing method and network equipment
By deploying business VPCs and public VPCs in cloud computing node CVKs, and utilizing virtual firewalls and virtual machine instances to process business packets, the problem of insufficient flexibility and scalability of hardware firewalls in cloud environments is solved. This achieves decoupling of security services from hardware, improving system flexibility and maintenance efficiency.
Patent Information
- Application Number
- CN202410679038.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-11-22
AI Technical Summary
In existing technologies, hardware firewalls lack flexibility and scalability in cloud environments, and are deeply coupled with tenant business operations, leading to maintenance difficulties and conflict risks.
Deploy business VPCs, virtual firewalls, and public VPCs in cloud computing node CVK. Process business packets through virtual firewalls and use virtual machine instances and virtual network cards to forward and manage packets, building a primary and backup VFW to provide flexible protection services.
It decouples the virtual firewall from the hardware firewall, provides flexible security services, avoids interference from the hardware firewall on tenant services, and improves the scalability and ease of maintenance of the system.
Smart Images

Figure CN119011178A_ABST
Abstract
Description
Technical Field
[0001] The present specification relates to the field of communication technology, and in particular to a method for processing a service message and a network device. Background Art
[0002] FW: Firewall, firewall;
[0003] VFW: Virtual Firewall, a firewall in the form of a virtual machine;
[0004] VPC: Virtual Private Cloud. VPC allows users to create a logically isolated private network environment in a public cloud. Users can start virtual machines, store data, configure networks, and set network access control, security policies, and subnet division as needed.
[0005] CVK: Cloud Virtual Kernel, a computing node in the cloud platform that carries virtual machines, virtual networks, etc.
[0006] Currently, cloud computing has become mainstream. For the security protection of north-south business traffic of tenants in the cloud, firewalls are an option considered in most cases. Figure 1 As shown, the tenant's business is carried in the VM, and the trend of the tenant's business traffic is shown as the curve in the figure. For example, the business VPC sends the business traffic to the border switch Border through the virtual router VR, thereby realizing the outbound transmission of the business traffic.
[0007] At present, the hardware FW is managed in the cloud management platform, the tenant's north-south firewall service instance A is opened, the hardware FW is associated with the service instance A, and the business VPN information in the hardware firewall is queried through the business VPC ID. The cloud platform sends firewall protection rules to the business VPN to realize the north-south traffic protection of the tenant's business. Summary of the invention
[0008] To overcome the problems existing in the related art, this specification provides a method and a network device for deploying a virtual firewall.
[0009] According to a first aspect of an embodiment of this specification, a method for processing a service message is provided, the method being applied to a cloud computing node CVK, wherein a service virtual private cloud VPC, a virtual firewall, and a public virtual private cloud VPC are deployed in the CVK, and the service VPC is connected to the public VPC through the virtual firewall, the method comprising:
[0010] The service VPC obtains the service message to be forwarded, and sends the service message to be forwarded to the virtual firewall;
[0011] After processing the service message to be forwarded, the virtual firewall sends the service message to be forwarded to the public VPC;
[0012] The public VPC sends the service message to be forwarded to the border switching device according to the routing information of the service message to be forwarded.
[0013] The service VPC obtains the service message to be forwarded and sends the service message to be forwarded to the virtual firewall, including:
[0014] The service VPC sends the service message to be forwarded to the first virtual network card of the virtual firewall according to the VLAN ID.
[0015] The sending of the service message to be forwarded to the public VPC includes:
[0016] The virtual firewall sends the service message to the public VPC through the second virtual network card.
[0017] The method of configuring the virtual firewall includes:
[0018] Create a virtual machine instance for enabling the virtual firewall through the cloud platform;
[0019] A first virtual network card, a second virtual network card and a third virtual network card are allocated to the virtual machine instance, the first virtual network card is used to receive the business message to be forwarded from the business VPC, the second virtual network card is used to send the business message to be forwarded to the public VPC, and the third virtual network card is used to communicate with the management network.
[0020] The third virtual network card is used to communicate with the management platform, including:
[0021] Obtaining an unoccupied first address from the management network address segment;
[0022] The first address is loaded into the third virtual network card to realize the communication between the virtual firewall and the management network.
[0023] Wherein, the method further comprises:
[0024] Create two or more virtual machine instances for enabling the virtual firewall through the cloud platform;
[0025] Enable the active virtual firewall and the standby virtual firewall through two or more virtual machine instances.
[0026] The active virtual firewall and the standby virtual firewall construct an aggregate link.
[0027] It can be seen from the above embodiments that the business VPC, virtual firewall and public VPC are configured in CVK. The business VPC is used to send the business messages to be forwarded to the virtual firewall, and to forward the business messages to be forwarded outward through the public VPC, thereby realizing the implementation of the north-south virtual firewall and solving the problems of lack of flexibility and scalability caused by relying solely on hardware firewalls.
[0028] According to a second aspect of an embodiment of this specification, a network device is provided, wherein a cloud computing node CVK is deployed in the network device, a business private cloud VPC, a virtual firewall and a public VPC are deployed in the CVK, and the business VPC is connected to the public VPC through the virtual firewall. The network device includes a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the following method when executing the program:
[0029] The service VPC obtains the service message to be forwarded, and sends the service message to be forwarded to the virtual firewall;
[0030] After processing the service message to be forwarded, the virtual firewall sends the service message to be forwarded to the public VPC;
[0031] The public VPC sends the service message to be forwarded to the border switching device according to the routing information of the service message to be forwarded.
[0032] According to a third aspect of an embodiment of this specification, a network device is provided, wherein the network device is deployed with a cloud computing node CVK, wherein a business private cloud VPC unit, a virtual firewall unit and a public VPC unit are deployed in the CVK, and the business VPC unit is connected to the public VPC unit through the virtual firewall unit;
[0033] The service VPC unit is used to obtain the service message to be forwarded and send the service message to be forwarded to the virtual firewall unit;
[0034] The virtual firewall unit is used to send the service message to be forwarded to the public VPC unit after processing the service message to be forwarded;
[0035] The public VPC unit is used to send the service message to be forwarded to the edge switching device according to the routing information of the service message to be forwarded.
[0036] The service VPC unit is specifically configured to send the service message to be forwarded to the first virtual network card of the virtual firewall according to the VLAN ID.
[0037] Wherein, the network device further comprises: a configuration unit;
[0038] The configuration unit is used to create a virtual machine instance for enabling a virtual firewall, and to allocate a first virtual network card, a second virtual network card, and a third virtual network card to the virtual machine instance, wherein the first virtual network card is used to receive a service message to be forwarded from a service VPC, the second virtual network card is used to send the service message to be forwarded to a public VPC, and the third virtual network card is used to communicate with a management network.
[0039] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present specification. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the specification and, together with the description, serve to explain the principles of the specification.
[0041] Figure 1 It is a schematic diagram of a north-south network architecture shown in this specification according to an exemplary embodiment.
[0042] Figure 2 This is a flowchart of a method for processing a service message according to an exemplary embodiment of this specification.
[0043] Figure 3 The diagram is a schematic diagram of an architecture of a primary and standby VFW according to an exemplary embodiment of the present specification.
[0044] Figure 4 It is a schematic diagram of a north-south network architecture shown in this specification according to an exemplary embodiment. DETAILED DESCRIPTION
[0045] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this specification. Instead, they are merely examples of devices and methods consistent with some aspects of this specification as detailed in the appended claims.
[0046] The terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit this specification. The singular forms "a", "the" and "the" used in this specification and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0047] It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0048] like Figure 1 As shown in the figure, when forwarding north-south traffic (as shown in the curve in the figure), the defense processing of the message is mainly achieved through the hardware firewall FW. In the specific implementation, it is necessary to manage the hardware FW into the cloud management platform, open the tenant's north-south firewall service instance A, associate the hardware FW with the service instance A, query the business VPN information in the hardware firewall through the ID of the business VPC, and the cloud platform sends firewall protection rules to the business VPN to achieve tenant business north-south traffic protection.
[0049] However, due to the deep coupling between tenant security services and the underlying hardware, there is a lack of flexibility and scalability. At the same time, the hardware FW itself carries VPC services, NAT services, and tenant firewall services. There is a risk of conflict among multiple services. Once a problem occurs, it is difficult to troubleshoot and maintain.
[0050] In order to solve the above technical problems, the present disclosure provides a method for processing a service message, such as Figure 2 As shown, the method includes:
[0051] S201 The service VPC obtains the service message to be forwarded and sends the service message to be forwarded to the virtual firewall;
[0052] S202 After processing the service message to be forwarded, the virtual firewall sends the service message to be forwarded to the public VPC;
[0053] S203 The public VPC sends the service message to be forwarded to the edge switching device according to the routing information of the service message to be forwarded.
[0054] In this embodiment, in order to implement the solution in this application, it is necessary to configure two VPCs in the cloud computing node CVK, one is a business VPC for users, which can obtain the user's sent and received business messages; the other is a public VPC, which is used to provide routing and forwarding functions for business messages; a virtual firewall is configured between the business VPC and the public VPC, which is used to protect the business messages.
[0055] It should be noted that, under normal circumstances, a virtual firewall does not have a routing function. Therefore, the messages detected and processed by the virtual firewall are routed and forwarded through the public VPC. In other embodiments, the public VPC and the virtual firewall can be functionally integrated, and the integrated virtual firewall still falls within the protection scope of this application.
[0056] In step S301, the service VPC may include: virtual machine VM, virtual switch VS, virtual router VR and other devices. The user interacts with the virtual machine VM, and the generated service message to be forwarded is sent to the virtual firewall through the virtual router VR.
[0057] In this embodiment, the cloud platform calls the computing module interface, uses the VFW virtual machine template to create a VFW virtual machine instance A, allocates three virtual network cards to the virtual machine instance, namely the first virtual network card, the second virtual network card and the third virtual network card, wherein the third virtual network card is connected to the management network (a management platform may be deployed in the management network), obtains an unoccupied first address from the management network address segment, and loads the first address into the third virtual network card (for example, by mounting a network information file in the virtual CD-ROM of the virtual machine, loading the first address into the third virtual network card) to realize communication between the virtual firewall and the management network.
[0058] In this embodiment, when the cloud platform creates a VFW virtual machine, it can choose to create two VFW virtual machine instances A and VFW virtual machine instances B to configure the active and standby VFW. Figure 3 As shown, network card 1, network card 2 and network card 3 may correspond to the first virtual network card, the second virtual network card and the third virtual network card mentioned above.
[0059] After configuring the first address for network card 3 (assuming that the first address configured for VFW virtual machine instance A is C, and the first address configured for VFW virtual machine instance A is D), the association between virtual machine A, virtual machine B and address C, address D can be stored in the database of the cloud platform, so that the cloud platform can set up and manage VFW by calling the association in the database.
[0060] For example, the cloud platform sends HA configuration to FW through management addresses C and D respectively, so that the two VFWs form a master-slave relationship.
[0061] The cloud platform queries the VLAN ID value E of the business VPC based on the ID of the business VPC, and allocates three addresses F, G, and Z from the business VPC; the cloud platform configures the two VFWs through the management addresses C and D, and creates VPNs X and Y in the two VFWs, respectively, and the VPNs are named as the value of E. Subinterfaces H and K are created on the network card 1 of the two VFWs, and subinterfaces M and N are created on the network card 2 of the two VFWs, respectively. The four subinterfaces are named as the value of E, and subinterfaces H and M are bound to VPN X, and subinterfaces K and N are bound to VPN Y. Set address F to subinterface H, and address G to subinterface K. Continue to send configurations, build subinterfaces H and K into VRRP redundancy, and use address Z as the VIP of VRRP. The above steps are used to implement the configuration of the master VFW and the slave VFW.
[0062] In order to enable the business VPC to send the packets to be forwarded to the VFW, the cloud platform can call the computing module to associate sub-interfaces H and K with the business VPC. Call the network module to modify the egress gateway of the business VPC to address Z.
[0063] In step S202, the public VPC mainly performs routing forwarding. Usually, the VFW does not have a routing function. The messages flowing out of the VFW can be sent out through the public VPC. Figure 4 As shown, the cloud platform calls the network module to create a VPC P, which is a Public VPC (public VPC) for forwarding business VPC traffic packets, and modifies the hardware FW and Border switch configurations so that the Public VPN upstream traffic of the Border switch is forwarded to the business VPN of the hardware FW, and the downstream traffic of the hardware FW business VPN is forwarded to the Public VPN of the Border switch. Three addresses Q, R, and S are allocated from VPC P. Configurations are issued to the two VFWs through the management address, and address Q is set to sub-interface M and address R is set to sub-interface N. Continue to issue configurations to build sub-interfaces M and N into VRRP redundancy, and address S is used as the VIP of VRRP.
[0064] The cloud platform calls the computing module to associate sub-interfaces M and N with the Public VPC.
[0065] Users send protection rules to the FW through the cloud platform.
[0066] It can be seen from the above embodiments that by configuring business VPC, public VPC and VFW, the protection processing and routing forwarding functions of the forwarded messages can be realized. At the same time, the tenant firewall is realized in the form of a virtual machine, achieving the effect of decoupling the security service from the underlying hardware. It prevents the hardware firewall from affecting the tenant firewall service, and provides the tenant firewall service with independent virtual resources, avoiding the mutual interference between the tenant firewall service and other services of the cloud platform.
[0067] In combination with the above embodiments, the embodiments of the present disclosure further provide a network device, wherein a cloud computing node CVK is deployed in the network device, a business private cloud VPC, a virtual firewall and a public VPC are deployed in the CVK, the business VPC is connected to the public VPC through the virtual firewall, and the network device includes a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the following method when executing the program:
[0068] The service VPC obtains the service message to be forwarded, and sends the service message to be forwarded to the virtual firewall;
[0069] After processing the service message to be forwarded, the virtual firewall sends the service message to be forwarded to the public VPC;
[0070] The public VPC sends the service message to be forwarded to the border switching device according to the routing information of the service message to be forwarded.
[0071] In combination with the above embodiments, the embodiment of the present disclosure further provides a network device, wherein the network device is deployed with a cloud computing node CVK, wherein a business private cloud VPC unit, a virtual firewall unit and a public VPC unit are deployed in the CVK, and the business VPC unit is connected to the public VPC unit through the virtual firewall unit;
[0072] The service VPC unit is used to obtain the service message to be forwarded and send the service message to be forwarded to the virtual firewall unit;
[0073] The virtual firewall unit is used to send the service message to be forwarded to the public VPC unit after processing the service message to be forwarded;
[0074] The public VPC unit is used to send the service message to be forwarded to the edge switching device according to the routing information of the service message to be forwarded.
[0075] The service VPC unit is specifically configured to send the service message to be forwarded to the first virtual network card of the virtual firewall according to the VLAN ID.
[0076] Wherein, the network device further comprises: a configuration unit;
[0077] The configuration unit is used to create a virtual machine instance for enabling a virtual firewall, and to allocate a first virtual network card, a second virtual network card, and a third virtual network card to the virtual machine instance, wherein the first virtual network card is used to receive a service message to be forwarded from a service VPC, the second virtual network card is used to send the service message to be forwarded to a public VPC, and the third virtual network card is used to communicate with a management network.
[0078] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. A person of ordinary skill in the art can understand and implement it without paying creative labor.
[0079] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0080] Those skilled in the art will readily appreciate other embodiments of the specification after considering the specification and practicing the invention claimed herein. The specification is intended to cover any variations, uses or adaptations of the specification that follow the general principles of the specification and include common knowledge or customary techniques in the art that are not claimed in the specification. The specification and examples are to be considered exemplary only, and the true scope and spirit of the specification are indicated by the following claims.
[0081] It should be understood that the present description is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.
[0082] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.
Claims
1. A method for processing a service message, characterized in that: The method is applied to a cloud computing node CVK, in which a business virtual private cloud VPC, a virtual firewall and a public virtual private cloud VPC are deployed, and the business VPC is connected to the public VPC through the virtual firewall. The method includes: The service VPC obtains the service message to be forwarded, and sends the service message to be forwarded to the virtual firewall; After processing the service message to be forwarded, the virtual firewall sends the service message to be forwarded to the public VPC; The public VPC sends the service message to be forwarded to the border switching device according to the routing information of the service message to be forwarded.
2. The method according to claim 1, characterized in that The service VPC obtains the service message to be forwarded, and sends the service message to be forwarded to the virtual firewall, including: The service VPC sends the service message to be forwarded to the first virtual network card of the virtual firewall according to the VLAN ID.
3. The method according to claim 1, characterized in that The sending the service message to be forwarded to the public VPC includes: The virtual firewall sends the service message to the public VPC through the second virtual network card.
4. The method according to claim 1, characterized in that: Methods for configuring a virtual firewall include: Create a virtual machine instance for enabling the virtual firewall through the cloud platform; A first virtual network card, a second virtual network card and a third virtual network card are allocated to the virtual machine instance, the first virtual network card is used to receive the business message to be forwarded from the business VPC, the second virtual network card is used to send the business message to be forwarded to the public VPC, and the third virtual network card is used to communicate with the management network.
5. The method according to claim 4, characterized in that The third virtual network card is used to communicate with the management platform, including: Obtaining an unoccupied first address from the management network address segment; The first address is loaded into the third virtual network card to realize the communication between the virtual firewall and the management network.
6. The method according to claim 4, characterized in that The method further comprises: Create two or more virtual machine instances for enabling the virtual firewall through the cloud platform; Enable the active virtual firewall and the standby virtual firewall through two or more virtual machine instances.
7. The method according to claim 6, characterized in that The method further comprises: The active virtual firewall and the standby virtual firewall construct an aggregate link.
8. A network device, characterized in that: The network device is deployed with a cloud computing node CVK, the CVK is deployed with a business private cloud VPC, a virtual firewall and a public VPC, the business VPC is connected to the public VPC through the virtual firewall, the network device includes a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the following method when executing the program: The service VPC obtains the service message to be forwarded, and sends the service message to be forwarded to the virtual firewall; After processing the service message to be forwarded, the virtual firewall sends the service message to be forwarded to the public VPC; The public VPC sends the service message to be forwarded to the border switching device according to the routing information of the service message to be forwarded.
9. A network device, characterized in that: The network device is deployed with a cloud computing node CVK, in which a business private cloud VPC unit, a virtual firewall unit and a public VPC unit are deployed, and the business VPC unit is connected to the public VPC unit through the virtual firewall unit; The service VPC unit is used to obtain the service message to be forwarded and send the service message to be forwarded to the virtual firewall unit; The virtual firewall unit is used to send the service message to be forwarded to the public VPC unit after processing the service message to be forwarded; The public VPC unit is used to send the service message to be forwarded to the edge switching device according to the routing information of the service message to be forwarded.
10. The network device according to claim 9, characterized in that: The service VPC unit is specifically configured to send the service message to be forwarded to the first virtual network card of the virtual firewall according to the VLAN ID.
11. The network device according to claim 9, characterized in that: The network device further includes: a configuration unit; The configuration unit is used to create a virtual machine instance for enabling a virtual firewall, and to allocate a first virtual network card, a second virtual network card, and a third virtual network card to the virtual machine instance, wherein the first virtual network card is used to receive a service message to be forwarded from a service VPC, the second virtual network card is used to send the service message to be forwarded to a public VPC, and the third virtual network card is used to communicate with a management network.
Citation Information
Cited By
Message forwarding method, electronic equipment and storage medium
CN119603369A
Data transmission method and device, computer equipment and storage medium
CN119743289A
