CN111327531B - VDC-based routing configuration method, device, equipment and readable storage medium - Google Patents

VDC-based routing configuration method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN111327531B
CN111327531B CN201811546880.7A CN201811546880A CN111327531B CN 111327531 B CN111327531 B CN 111327531B CN 201811546880 A CN201811546880 A CN 201811546880A CN 111327531 B CN111327531 B CN 111327531B
Authority
CN
China
Prior art keywords
network
vdc
routing
public network
strategy
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811546880.7A
Other languages
Chinese (zh)
Other versions
CN111327531A (en
Inventor
沈世元
袁俊
蒋天超
何俊蕾
张丹丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201811546880.7A priority Critical patent/CN111327531B/en
Priority to PCT/CN2019/120285 priority patent/WO2020125320A1/en
Publication of CN111327531A publication Critical patent/CN111327531A/en
Application granted granted Critical
Publication of CN111327531B publication Critical patent/CN111327531B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2521Translation architectures other than single NAT servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2557Translation policies or rules

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a route configuration method, a device, equipment and a readable storage medium based on VDC, wherein the method comprises the following steps: establishing a public network and a virtual route through a virtual platform on an operation management interface, and adding a subnet to be communicated into the virtual route; obtaining a public network policy through an NAT plug-in of a virtual platform, automatically logging in a gateway device, and issuing the public network policy to the gateway device; acquiring private network routing information configured on an operation interface through an NAT plug-in, generating a private network routing strategy based on the private network routing information, and issuing the private network strategy to the gateway equipment; and sending the public network strategy and the private network strategy to an SDN controller, and issuing a routing flow table to the gateway equipment through the SDN controller based on the public network strategy and the private network strategy so that the gateway equipment can select a routing line to enter a public network or a private network according to the routing flow table. According to the scheme, manual login to the gateway equipment is not needed for configuration, the configuration process is simple, and unified maintenance is facilitated.

Description

VDC-based routing configuration method, device, equipment and readable storage medium
Technical Field
The present invention relates to the field of routing configuration technologies, and in particular, to a method, an apparatus, a device, and a readable storage medium for routing configuration based on VDC.
Background
A Virtual Data Center (VDC) is a novel Data Center form that applies a cloud computing concept to an IDC (Internet Data Center), and at present, in a Virtual Data Center, because there are many involved network elements, such as a cloud management platform, an SDN network element, a virtualization platform, a VTEP gateway device, etc., when a Virtual machine goes out of a public network and a private network, it is necessary to manually configure a route, and it is very complicated to configure a whole route flow, and a slight error may cause network paralysis and is not convenient for uniform maintenance.
Disclosure of Invention
The invention mainly aims to provide a routing configuration method, a device, equipment and a readable storage medium based on VDC (direct current digital control), and aims to solve the problems that in the prior art, when a virtual machine goes out of a public network and a private network, the routing configuration needs to be carried out manually, the flow is complex, and the unified maintenance is inconvenient.
In order to achieve the above object, the present invention provides a VDC-based routing configuration method, including the steps of:
establishing a public network and a virtual route through a virtual platform on an operation management interface, and adding a subnet to be communicated into the virtual route;
obtaining a public network policy through the NAT plug-in of the virtual platform, automatically logging in a gateway device, and issuing the public network policy to the gateway device;
acquiring private network routing information configured on an operation interface through the NAT plug-in, generating a private network routing strategy based on the private network routing information, and issuing the private network strategy to the gateway equipment;
and sending the public network strategy and the private network strategy to an SDN controller, and issuing a routing flow table to the gateway equipment through the SDN controller based on the public network strategy and the private network strategy so that the gateway equipment can select a routing line to enter a public network or a private network according to the routing flow table.
In addition, to achieve the above object, the present invention also provides a processing device for VDC-based routing configuration, comprising:
the establishing module is used for establishing a public network and a virtual route through a virtual platform on an operation management interface and adding a subnet to be communicated into the virtual route;
the first strategy issuing module is used for acquiring a public network strategy through the NAT plug-in of the virtual platform, automatically logging in gateway equipment and issuing the public network strategy to the gateway equipment;
the second strategy issuing module is used for acquiring private network routing information configured on an operation interface through the NAT plug-in, generating a private network routing strategy based on the private network routing information, and issuing the private network strategy to the gateway equipment;
and the flow table issuing module is used for sending the public network strategy and the private network strategy to an SDN controller, and issuing a routing flow table to the gateway equipment through the SDN controller based on the public network strategy and the private network strategy so that the gateway equipment can select a routing line to enter a public network or a private network according to the routing flow table.
In addition, to achieve the above object, the present invention also provides a VDC-based routing configuration device comprising a processor, a memory, and a VDC-based routing configuration program stored on the memory and executable by the processor, wherein the VDC-based routing configuration program, when executed by the processor, implements the steps of the VDC-based routing configuration method as described above.
In addition, to achieve the above object, the present invention also provides a readable storage medium having a VDC-based routing configuration program stored thereon, wherein the VDC-based routing configuration program, when executed by a processor, implements the steps of the VDC-based routing configuration method as described above.
The invention provides a route configuration method, a device, equipment and a readable storage medium based on VDC, the invention establishes a public network and a virtual route through a virtual platform on an operation management interface, adds a subnet to be communicated into the virtual route, then obtaining a public network policy through the NAT plug-in of the virtual platform, automatically logging in a gateway device, issuing the public network policy to the gateway device, then, acquiring private network routing information configured on an operation interface through the NAT plug-in, generating a private network routing strategy based on the private network routing information, issuing the private network strategy to the gateway equipment, finally sending the public network strategy and the private network strategy to an SDN controller, and issuing a routing flow table to the gateway equipment through the SDN controller based on the public network strategy and the private network strategy so that the gateway equipment can select a routing line to enter a public network or a private network according to the routing flow table; the method and the device realize direct issuing of the routing information of the public network and the private network to the gateway equipment through the operation management interface without manually logging in the gateway equipment for configuration, and have simple configuration flow and convenient unified maintenance.
Drawings
FIG. 1 is a diagram illustrating a hardware configuration of a VDC-based routing configuration device according to various embodiments of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a VDC-based routing configuration method of the present invention;
fig. 3 is a functional block diagram of a first embodiment of the VDC-based routing configuration apparatus of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic diagram of a hardware structure of a VDC-based routing configuration device according to an embodiment of the present invention. In an embodiment of the present invention, the VDC-based routing configuration device may include a processor 1001 (e.g., a Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used for realizing connection communication among the components; the user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface); the memory 1005 may be a high-speed RAM memory, or may be a non-volatile memory (e.g., a magnetic disk memory), and optionally, the memory 1005 may be a storage device independent of the processor 1001. Those skilled in the art will appreciate that the hardware configuration depicted in FIG. 1 is not intended to be limiting of the present invention, and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
With continued reference to fig. 1, the memory 1005 of fig. 1, which is one type of storage medium, may include an operating system, a network communication module, and a VDC-based routing configuration program. In fig. 1, the network communication module is mainly used for connecting to a server and performing data communication with the server; and the processor 1001 may call the VDC-based routing configuration program stored in the memory 1005 and perform the VDC-based routing configuration method provided by the embodiments of the present invention.
The embodiment of the invention provides a routing configuration method based on VDC.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of the VDC-based routing configuration method of the present invention.
In this embodiment, an execution subject of the VDC-based routing configuration method is a routing configuration system (hereinafter, referred to as a system), and the system includes an SDN submodule, an NAT plugin, a VDC operation management system submodule, a VTEP gateway device, and the like, where the SDN submodule is configured to separate control rights on network devices, and is managed by a centralized controller, and does not need to rely on an underlying network device (a router, a switch, a firewall), and differences from the underlying network device are shielded. The control right is completely open, and the user can customize any network routing and transmission rule strategy to be realized, so that the method is more flexible and intelligent. The NAT plug-in is used for realizing communication of a two-layer network and a three-layer network in virtual data, is used as a middleware of an operation management interface and a VTEP (virtual terminal equipment) to realize strategy issuing of public network and private network routes, and is also used as a middleware of an SDN gateway and a VTEP gateway to realize relevant flow table issuing of the public network and private network routes. The management system management portal submodule of the VDC is used for providing centralized, elastic and high-reliability resources such as calculation, storage, network and the like for the VDC, and uniformly managing, distributing and renting services according to requirements. VTEP gateway device the device gateway for supporting OF protocol must be able to handle all traffic from the access layer devices and provide uplink to the core layer, mainly a three layer switch, operating at the network layer, which is higher grade and more enhanced than a second layer switch, because it operates at the network layer OF the OSI/RM model, it has a routing function, which is to provide IP address information to the network path selection, and the northbound interface OF the gateway device is opened to the SDN controller for it to issue a routing flow table.
The VDC (Virtual Data Center) is a novel Data Center model that applies a cloud computing concept to the IDC (Internet Data Center). By combining the traditional IDC service and the cloud computing technology, a unified innovative VDC operation management system is built, virtualization, automatic deployment and other technologies are applied, a telescopic virtualization infrastructure is built, and an infrastructure IT (information technology) facility scheme and service of one-point acceptance and full-network service are provided for users by adopting a centralized management and distributed service mode. VDC is mainly distinguished from traditional IDC in that the infrastructure is provided as a service by technical means; physical resources are abstractly integrated through a virtualization technology, service capacity is enhanced, and resource utilization capacity and service reliability are improved through dynamic resource allocation and scheduling; the method has the advantages that automatic service opening capacity is provided, operation and maintenance cost is reduced, and convenient user experience is provided; more security mechanisms and reliability mechanisms are provided, and the security standard of enterprise-level application is met.
The VDC-based routing configuration method comprises the following steps:
step S10, a public network and a virtual route are established on the operation management interface through the virtual platform, and the sub-network to be communicated is added into the virtual route;
in this embodiment, a user triggers a creation request on an operation management Interface, the operation management Interface creates an Application Programming Interface (API) Interface, sends the creation request to a virtual platform, and the virtual platform creates a public network and a virtual route by calling a RESTful Interface and adds a subnet to be communicated to the virtual route, where REST (Representational State Transfer) refers to a set of architectural constraints and principles, and an Application or a design that meets the constraints and principles is RESTful.
The method comprises the following steps that a public network and a virtual route are established on an operation management interface through a virtual platform, and a subnet to be communicated is added into the virtual route, wherein the steps comprise:
step S11, a public network and a virtual route are established on an operation management interface through a virtual platform, key attributes of the virtual route are obtained, and whether the key attributes are correct or not is determined;
and step S12, if the key attribute is correct, adding the subnet to be communicated into the virtual route.
In this embodiment, the key attributes include an interface address and a gateway address in the virtual route, determining whether the key attributes are correct by using the NAT plug-in includes determining whether the interface address in the virtual route is duplicated and determining whether the gateway address in the virtual route is correct, when the operation interface creates a public network and a virtual route through the virtual platform, the interface address in the virtual route may be duplicated and the gateway address may have an error, so that it is necessary to determine the key attributes such as the gateway address and the interface address, for example, determine whether the interface address in the current virtual route is duplicated, if so, it is necessary to reconfigure a new interface address, and if not, it is determined that the interface address is correct, and the subnet to be communicated is added to the virtual route.
Step S20, obtaining a public network policy through the NAT plug-in of the virtual platform, automatically logging in a gateway device, and issuing the public network policy to the gateway device;
in this embodiment, the virtual platform runs an NAT plugin, and listens to and acquires Message passing of the virtual platform through an RPC (Remote Procedure call) service, and the NAT plugin starts a thread to process an action of each vruter (virtual route) in an MQ (Message queue) by using a preset function, and acquires network information such as network addresses, names, IDs, and the like of a public network, a virtual route, and a subnet, thereby automatically logging in to a VTEP gateway device to issue policies of SNAT and DNAT, where a routing policy is to change a result of route discovery by changing a parameter affecting route issuance, reception, or route selection in a policy according to some rules, and finally, what is changed is the content of a routing table. Is active in route discovery.
Specifically, the step of obtaining the public network policy through the NAT plug-in of the virtual platform and automatically logging in the gateway device includes:
step S21, a preset function is called through the NAT plug-in to obtain the network information in the message queue, the network information is stored in a submodule of the NAT plug-in, and a public network strategy is generated based on the network information;
in this embodiment, when the NAT plugin operates on a virtualization platform, a plurality of Workers obtain network information from an MQ (Message queue) when the NAT plugin is started, then place the network information in a submodule of the NAT plugin, and at the same time, the NAT plugin also starts a loop thread to obtain the network information, and after a router-related operation occurs, call _ process _ routers _ loop to process the obtained network information. The network information includes network addresses, names, IDs of the public networks, subnets, virtual routes, gateway addresses of the gateway devices, and the like, and generates a public network policy according to the network information.
Step S22, obtaining an operation instruction of a user on a relevant operation of an operation management interface, obtaining the network information in the sub-module, and calling a driver corresponding to the operation instruction to execute an operation corresponding to the operation instruction based on the network information;
in this embodiment, the related operations include creating a route, editing a route, deleting a route, and the like, and if the related operations of the user on the operation management interface are detected, an operation instruction of the related operations is acquired, network information is acquired in a sub-module of the NAT plug-in according to the operation instruction, and a driver corresponding to the operation instruction is called according to the network information to complete a corresponding operation, for example, operations such as creating a route, editing a route, deleting a route, and the like are completed according to the driver corresponding to the operation instruction.
And step S23, acquiring the gateway address in the network information, and logging in the gateway equipment through the NAT plug-in based on the gateway address.
In this embodiment, the gateway address is an address corresponding to the gateway device, and the NAT plugin acquires the gateway address in the network information, automatically logs in the gateway device according to the gateway address, and issues policies of the SNAT and the DNAT.
After step S20, the method further includes:
step S30, obtaining private network routing information configured on an operation interface through the NAT plug-in, generating a private network routing strategy based on the private network routing information, and issuing the private network strategy to the gateway device;
in this embodiment, the private network routing information of the private network includes address information of the private network, the monitoring submodule of the NAT plug-in acquires the private network routing information configured on the operation management interface, generates a private network policy, logs in the gateway device according to the gateway address of the gateway device, and issues the private network policy to the gateway device, and specifically, the step of acquiring the private network routing information configured on the operation interface through the NAT plug-in includes:
step S31, receiving a setting request for setting a private network sent by an operation management interface through a NAT plug-in, and detecting whether the virtual route has an updating operation according to the setting request;
step S32, if it is detected that the virtual route has an update operation, a route update interface is invoked to obtain private network route information.
In this embodiment, after receiving a setting request for setting a private network route through an operation management interface, the NAT plug-in starts a thread again, detects whether an update operation exists on the Virtual route, and if it is detected that the update operation related to the Virtual route exists, calls an update router (update route) interface to obtain private network route information from an MQ, and automatically logs in the gateway device through the NAT plug-in again to configure and issue a private network route policy to the gateway device under the same VRF (Virtual Routing Forwarding table).
After step S30, the method further includes:
and step S40, acquiring routing flow tables of the public network and the private network, and issuing the routing flow tables to the gateway equipment through the SDN controller so that the gateway equipment can select a routing line to enter the public network or the private network according to the routing flow tables.
In this embodiment, after acquiring relevant routing data (including a routing address, a routing name, and the like OF a virtual route) from the MQ, the NAT plug-in sends the relevant routing data to the SDN sub-module, and formulates a relevant protocol, such as OpenFlow, OVSDB, or OF-Config, where if the SDN sub-module receives a restful request, the SDN sub-module issues a relevant routing flow table to the gateway device, where the flow table includes a public network egress flow table and a private network egress flow table, and the routing flow table includes information such as a flow table priority, a source address, a destination address, and a next hop address. When the virtual machine realizes the north-south function, the gateway device selects the public network or private network route to go out according to the corresponding flow table, so that the situation that the public network and the private network route coexist on the gateway device is realized, the route information of the public network and the private network can be directly sent to the gateway device from the management system interface of the VDC through the steps, manual login to the gateway device for configuration is not needed, the management and maintenance system of the VDC is simplified, and the flow is greatly simplified for the subsequent network maintenance operation of the whole VDC.
In the routing configuration method based on the VDC, a public network and a virtual route are created through a virtual platform on an operation management interface, a subnet to be communicated is added into the virtual route, then a gateway device is logged in through an NAT plugin of the virtual platform, a public network policy is generated, the public network policy is issued to the gateway device, then the gateway device is logged in through the NAT plugin, private network routing information of a private network is acquired, a private network policy is generated based on the private network routing information, the private network policy is issued to the gateway device, finally a routing flow table of the public network and the private network is acquired, and the routing flow table is issued to the gateway device through an SDN controller so that the gateway device can select a routing line to enter the public network or the private network according to the routing flow table; the method and the device realize direct issuing of the routing information of the public network and the private network to the gateway equipment through the operation management interface without manually logging in the gateway equipment for configuration, and have simple configuration flow and convenient unified maintenance.
Based on the first embodiment, a second embodiment of the VDC-based routing configuration method of the present invention is proposed, where after step S20, the method further includes:
and step S50, generating RT and RD based on the preset rules of the NAT plug-in and the gateway equipment, and sending the RT and RD to the gateway equipment.
In this embodiment, the NAT plugin automatically logs in to the gateway device to issue a policy of a public network outlet, and generates an RD (Route-differentiation Route identifier) according to a preset rule between the NAT plugin and the gateway device, where the RD is used to mark different tenants on the gateway device, and the RD mainly serves to implement address multiplexing between the tenants, and meanwhile, the NAT plugin may create another important attribute RT (Route-Target Route Target) on the gateway device, and the RT determines sending or receiving of routes of different tenants, so as to ensure isolation of routes between the tenants, and the gateway device distinguishes NAT policies of different tenants depending on the attributes of the RT.
According to the routing configuration method based on VDC provided by the embodiment, the RT and the RD are generated through a preset rule based on the NAT plug-in and the gateway equipment, and are sent to the gateway equipment; the method and the device realize that the strategy can be issued to the gateway equipment of the corresponding tenant according to the RD and the RT.
Based on the first embodiment, a third embodiment of the VDC-based routing configuration method of the present invention is proposed, where after step S10, the method further includes:
step S60, acquiring the network data of the public network, the virtual route and the subnet, and storing the network data into a database in a correlation manner;
and step S70, creating a remote procedure call service, and transmitting the network data to the NAT plug-in through the remote procedure call service.
In this embodiment, an operation management Interface architecture creation request is sent to a virtual platform through an API (Application Programming Interface), the virtual platform is requested to create a public network, a subnet, and a virtual route, the public network, the subnet, and the virtual route are created on the virtual platform, network data of the public network, the subnet, and the virtual route are obtained, the network data includes network addresses, names, and IDs of the public network, the subnet, and the virtual route, when the network data is obtained, the network data is stored in a database in an associated manner, an RPC (Remote Procedure call) -server is created, and the network data is transmitted to an NAT plugin through the RPC-server.
In the routing configuration method based on the VDC, network data of the public network, the virtual route and the subnet are acquired, the network data is stored in a database in a correlated manner, then a remote procedure call service is created, and the network data is transmitted to the NAT plug-in through the remote procedure call service; the network data are transmitted to the NAT plug-in unit, so that the NAT plug-in unit can log in the gateway equipment according to the network data to issue a public network strategy.
Based on the first embodiment, a fourth embodiment of the VDC-based routing configuration method of the present invention is proposed, where after step S70, the method further includes:
step S80, receiving a binding request of a user on an operation management interface through a NAT plug-in, and acquiring the IP of a public network and the IP of a newly-built virtual machine in the network data according to the binding request;
and step S90, binding the IP of the newly-built virtual machine with the IP of the public network.
In this embodiment, a user creates a virtual machine on an operation management interface, binds the virtual machine with a public network, triggers a binding instruction, receives a binding request of the user on the operation management interface through an NAT plugin, obtains an IP of the newly created virtual machine and an IP of the public network according to the binding request, binds the newly created virtual machine with the public network, when the NAT plugin receives a RESTful request for binding the IP of the public network on the operation management interface, first calls a circulation function to obtain an interface address and a gateway address of the interface network from an MQ, stores the obtained data, records and stores relevant information (network address and log information), and simultaneously instructs a relevant driver (driver) to execute a specific routing operation, such as: creating routes, editing routes, deleting routes, etc
In the routing configuration method based on VDC provided in this embodiment, a binding request of a user on an operation management interface is received through an NAT plug-in, an IP of a public network and an IP of a newly-built virtual machine in the network data are obtained according to the binding request, and then the IP of the newly-built virtual machine is bound with the IP of the public network; the method and the device realize the issuing of the public network routing strategy according to the IP of the public network.
In addition, the embodiment of the invention also provides a routing configuration device based on VDC.
Referring to fig. 3, fig. 3 is a functional block diagram of a first embodiment of the VDC-based routing configuration apparatus of the present invention.
The VDC-based routing configuration apparatus of the present invention is a virtual device stored in the memory 1005 of the VDC-based routing configuration device shown in fig. 1 for implementing all functions of the VDC-based routing configuration program: establishing a public network and a virtual route through a virtual platform on an operation management interface, and adding a subnet to be communicated into the virtual route; obtaining a public network policy through the NAT plug-in of the virtual platform, automatically logging in a gateway device, and issuing the public network policy to the gateway device; acquiring private network routing information configured on an operation interface through the NAT plug-in, generating a private network routing strategy based on the private network routing information, and issuing the private network strategy to the gateway equipment; and sending the public network strategy and the private network strategy to an SDN controller, and issuing a routing flow table to the gateway equipment through the SDN controller based on the public network strategy and the private network strategy so that the gateway equipment can select a routing line to enter a public network or a private network according to the routing flow table.
Specifically, in this embodiment, the VDC-based routing configuration apparatus includes:
the establishing module is used for establishing a public network and a virtual route through a virtual platform on an operation management interface and adding a subnet to be communicated into the virtual route;
the first strategy issuing module is used for acquiring a public network strategy through the NAT plug-in of the virtual platform, automatically logging in gateway equipment and issuing the public network strategy to the gateway equipment;
the second strategy issuing module is used for acquiring private network routing information configured on an operation interface through the NAT plug-in, generating a private network routing strategy based on the private network routing information, and issuing the private network strategy to the gateway equipment;
and the flow table downloading module is used for sending the public network strategy and the private network strategy to an SDN controller, and issuing a routing flow table to the gateway equipment through the SDN controller based on the public network strategy and the private network strategy so that the gateway equipment can select a routing line to enter a public network or a private network according to the routing flow table.
Further, the creating module 101 is further configured to:
establishing a public network and a virtual route through a virtual platform on an operation management interface, acquiring key attributes of the virtual route, and determining whether the key attributes are correct or not;
and if the key attribute is correct, adding the sub-networks to be communicated into the virtual route.
Further, the first policy issuing module 102 is further configured to:
calling a preset function through an NAT plug-in to obtain network information in a message queue, storing the network information into a submodule of the NAT plug-in, and generating a public network strategy based on the network information;
acquiring an operation instruction of a user on a relevant operation of an operation management interface, acquiring the network information in the sub-module, and calling a driver corresponding to the operation instruction to execute an operation corresponding to the operation instruction based on the network information;
and acquiring a gateway address in network information, logging in the gateway equipment through an NAT plug-in unit based on the gateway address, and sending the public network strategy to the gateway equipment.
Further, the first policy issuing module 102 is further configured to:
receiving a setting request for setting a private network sent by an operation management interface through an NAT plug-in, and detecting whether the virtual route has updating operation or not according to the setting request;
and if the virtual route is detected to have updating operation, calling a route updating interface to acquire the private network route information.
Further, the second policy 103 issuing module is further configured to:
and generating an RT and an RD based on the preset rules of the NAT plug-in and the gateway equipment, and sending the RT and the RD to the gateway equipment.
Further, the VDC-based routing configuration means further comprises:
the acquisition module is used for acquiring the network data of the public network, the virtual router and the subnet and storing the network data to a database in a correlation manner;
and the transfer module is used for creating a remote procedure call service and transferring the network data to the NAT plug-in unit through the remote procedure call service.
Further, the VDC-based routing configuration apparatus further comprises a binding module for:
receiving a binding request of a user on an operation management interface through an NAT plug-in, and acquiring the IP of a public network and the IP of a newly-built virtual machine in the network data according to the binding request;
and binding the IP of the newly-built virtual machine with the IP of the public network.
The function implementation of each module in the processing device for VDC-based routing configuration corresponds to each step in the embodiment of the VDC-based routing configuration method, and the function and implementation process are not described in detail herein.
In addition, the embodiment of the invention also provides a readable storage medium.
The readable storage medium of the present invention has stored thereon a VDC-based routing configuration program, wherein the VDC-based routing configuration program, when executed by a processor, implements the steps of the VDC-based routing configuration method as described above.
The method implemented when the processing program for VDC-based routing configuration is executed may refer to various embodiments of the processing method for VDC-based routing configuration of the present invention, and will not be described herein again.
The present invention provides a readable storage medium storing one or more programs which are also executable by one or more processors for implementing the steps in the embodiments of the VDC-based routing configuration method described above.
It should also be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a readable storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above, and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A routing configuration method based on a VDC virtual data center is characterized by comprising the following steps:
establishing a public network and a virtual route through a virtual platform on an operation management interface, and adding a subnet to be communicated into the virtual route;
obtaining a public network policy through the NAT plug-in of the virtual platform, automatically logging in a gateway device, and issuing the public network policy to the gateway device;
acquiring private network routing information configured on an operation interface through the NAT plug-in, generating a private network routing strategy based on the private network routing information, and issuing the private network routing strategy to the gateway equipment;
and sending the public network strategy and the private network routing strategy to an SDN controller, and issuing a routing flow table to the gateway device through the SDN controller based on the public network strategy and the private network routing strategy so that the gateway device can select a routing line to enter a public network or a private network according to the routing flow table.
2. The VDC-based routing configuration method of claim 1, wherein the step of creating a public network and a virtual route through a virtual platform in the operation management interface, and adding the subnet to be connected to the virtual route comprises:
establishing a public network and a virtual route through a virtual platform on an operation management interface, acquiring a key attribute of the virtual route, and determining whether the key attribute is correct;
and if the key attribute is correct, adding the sub-networks to be communicated into the virtual route.
3. The VDC-based routing configuration method according to claim 1, wherein said step of obtaining public network policies via a NAT plug-in of said virtual platform and automatically logging into a gateway device comprises:
calling a preset function through an NAT plug-in to obtain network information in a message queue, storing the network information into a submodule of the NAT plug-in, and generating a public network strategy based on the network information;
acquiring an operation instruction of a user on a relevant operation of an operation management interface, acquiring the network information in the sub-module, and calling a driver corresponding to the operation instruction to execute an operation corresponding to the operation instruction based on the network information;
and acquiring a gateway address in the network information, and logging in the gateway equipment through an NAT plug-in based on the gateway address.
4. The VDC-based routing configuration method according to claim 1, wherein said step of obtaining private network routing information configured at an operator interface through said NAT plug-in comprises:
receiving a setting request for setting a private network sent by an operation management interface through an NAT plug-in, and detecting whether the virtual route has updating operation or not according to the setting request;
and if the virtual route is detected to have updating operation, calling a route updating interface to acquire the private network route information.
5. The method for VDC-based routing configuration according to claim 1, wherein after said step of obtaining a public network policy by a NAT plug-in of said virtual platform and automatically logging in a gateway device and issuing said public network policy to said gateway device, said method for VDC-based routing configuration further comprises:
and generating an RT and an RD based on the preset rules of the NAT plug-in and the gateway equipment, and sending the RT and the RD to the gateway equipment.
6. The VDC-based routing configuration method of claim 1, wherein after the step of creating a public network and a virtual route through the virtual platform and adding the subnet to be connected to the virtual route by the operation management interface, the VDC-based routing configuration method further comprises:
acquiring network data of the public network, the virtual router and the subnet, and storing the network data in a database in a correlation manner;
and creating a remote procedure call service, and transmitting the network data to the NAT plug-in unit through the remote procedure call service.
7. The VDC-based routing configuration method of claim 6, wherein after the step of creating RPC, passing the network data to a NAT plug-in via RPC, the VDC-based routing configuration method further comprises:
receiving a binding request of a user on an operation management interface through an NAT plug-in, and acquiring the IP of a public network and the IP of a newly-built virtual machine in the network data according to the binding request;
and binding the IP of the newly-built virtual machine with the IP of the public network.
8. A VDC-based routing configuration apparatus, said VDC-based routing configuration apparatus comprising:
the establishing module is used for establishing a public network and a virtual route through a virtual platform on an operation management interface and adding a subnet to be communicated into the virtual route;
the first strategy issuing module is used for acquiring a public network strategy through the NAT plug-in of the virtual platform, automatically logging in gateway equipment and issuing the public network strategy to the gateway equipment;
the second strategy issuing module is used for acquiring private network routing information configured on an operation interface through the NAT plug-in, generating a private network routing strategy based on the private network routing information, and issuing the private network routing strategy to the gateway equipment;
and the flow table issuing module is used for sending the public network strategy and the private network routing strategy to an SDN controller, and issuing a routing flow table to the gateway device through the SDN controller based on the public network strategy and the private network routing strategy so that the gateway device can select a routing line to enter a public network or a private network according to the routing flow table.
9. A VDC-based routing configuration device, comprising a processor, a memory, and a VDC-based routing configuration program stored on the memory and executable by the processor, wherein the VDC-based routing configuration program, when executed by the processor, performs the steps of the VDC-based routing configuration method of any of claims 1-7.
10. A readable storage medium having a VDC-based routing configuration program stored thereon, wherein the VDC-based routing configuration program, when executed by a processor, performs the steps of the VDC-based routing configuration method of any of claims 1-7.
CN201811546880.7A 2018-12-17 2018-12-17 VDC-based routing configuration method, device, equipment and readable storage medium Active CN111327531B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811546880.7A CN111327531B (en) 2018-12-17 2018-12-17 VDC-based routing configuration method, device, equipment and readable storage medium
PCT/CN2019/120285 WO2020125320A1 (en) 2018-12-17 2019-11-22 Vdc-based route configuration method and apparatus, and device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811546880.7A CN111327531B (en) 2018-12-17 2018-12-17 VDC-based routing configuration method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111327531A CN111327531A (en) 2020-06-23
CN111327531B true CN111327531B (en) 2022-08-02

Family

ID=71100191

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811546880.7A Active CN111327531B (en) 2018-12-17 2018-12-17 VDC-based routing configuration method, device, equipment and readable storage medium

Country Status (2)

Country Link
CN (1) CN111327531B (en)
WO (1) WO2020125320A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112929210B (en) * 2021-01-25 2023-04-18 城云科技(中国)有限公司 Method and system for gateway routing application plug-in built on WebFlux framework and application of gateway routing application plug-in
CN113328942B (en) * 2021-04-14 2022-04-01 新华三大数据技术有限公司 Configuration issuing method and device and computer equipment
CN114039813B (en) * 2021-11-08 2023-07-04 北京天融信网络安全技术有限公司 Virtual route configuration method and device
CN114301665A (en) * 2021-12-27 2022-04-08 山石网科通信技术股份有限公司 Data processing method and device
CN114301838B (en) * 2021-12-31 2023-07-21 锐捷网络股份有限公司 Flow table optimization and message forwarding methods, network, equipment and storage medium
CN114844855B (en) * 2022-04-24 2024-05-17 京东科技信息技术有限公司 Method and device for generating network intercommunication access policy

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103746997A (en) * 2014-01-10 2014-04-23 浪潮电子信息产业股份有限公司 Network security solution for cloud computing center
CN106411735A (en) * 2016-10-18 2017-02-15 杭州华三通信技术有限公司 Routing configuration method and device
CN106487695A (en) * 2015-08-25 2017-03-08 华为技术有限公司 A kind of data transmission method, virtual network managing device and data transmission system
CN107104871A (en) * 2016-02-22 2017-08-29 中兴通讯股份有限公司 Subnet interoperability methods and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7631086B2 (en) * 2003-09-30 2009-12-08 Onlex Technologies, Inc. Virtual dedicated connection system and method
CN100518138C (en) * 2005-04-12 2009-07-22 华为技术有限公司 Method for realizing virtual special network
CN105610675B (en) * 2016-01-28 2019-05-10 浪潮(北京)电子信息产业有限公司 A kind of creation method and device of virtual vpn gateway
CN108737272B (en) * 2017-04-19 2020-10-30 江南大学 High-performance route forwarding method in cloud computing
CN108880844B (en) * 2017-05-12 2022-02-22 中兴通讯股份有限公司 Method and device for constructing network topology

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103746997A (en) * 2014-01-10 2014-04-23 浪潮电子信息产业股份有限公司 Network security solution for cloud computing center
CN106487695A (en) * 2015-08-25 2017-03-08 华为技术有限公司 A kind of data transmission method, virtual network managing device and data transmission system
CN107104871A (en) * 2016-02-22 2017-08-29 中兴通讯股份有限公司 Subnet interoperability methods and device
CN106411735A (en) * 2016-10-18 2017-02-15 杭州华三通信技术有限公司 Routing configuration method and device

Also Published As

Publication number Publication date
CN111327531A (en) 2020-06-23
WO2020125320A1 (en) 2020-06-25

Similar Documents

Publication Publication Date Title
CN111327531B (en) VDC-based routing configuration method, device, equipment and readable storage medium
CN109104318B (en) Method for realizing cluster self-adaptive deployment
US11563602B2 (en) Method and apparatus for providing a point-to-point connection over a network
US11128705B2 (en) Application function management using NFV MANO system framework
CN106936857B (en) Connection management method of hybrid cloud, SDN controller and hybrid cloud system
EP3152865B1 (en) Provisioning and managing slices of a consumer premises equipment device
US20030033379A1 (en) Intelligent central directory for soft configuration of IP services
CN107104871B (en) Subnet intercommunication method and device
JP2011081809A (en) Apparatus for managing network resources
US10630508B2 (en) Dynamic customer VLAN identifiers in a telecommunications network
WO2018006704A1 (en) Public network ip allocation method and apparatus, and virtual data center system
CN113746760B (en) Communication method, network controller, and computer-readable storage medium
CN109688241B (en) IPv4/IPv6 dual-stack conversion method and system based on SDN
CN106302320A (en) For the method that the business of user is authorized, Apparatus and system
US10708083B2 (en) Traffic engineering service mapping
US20230061080A1 (en) Creating roles and controlling access within a computer network
JP2019519146A (en) Routing establishment, packet transmission
WO2016065920A1 (en) Method and system for providing virtual network service
EP3836487A1 (en) Internet access behavior management system, device and method
JP2024518157A (en) Method, system and computer readable medium for platform firewall management by a network function (NF) repository function (NRF) or service communication proxy (SCP) - Patents.com
US11968269B1 (en) Hybrid tag based virtual private network with scalable next hop convergence
US11916775B1 (en) Multi-tenant cloud native control plane system
US20230094033A1 (en) Decentralized software upgrade image distribution for network device upgrades
WO2023099343A1 (en) Establishing local connectivity between devices and applications in private cloud environment
CN115955707A (en) Device communication method, device, terminal device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant