CN111314457A - Method and device for setting virtual private cloud - Google Patents

Method and device for setting virtual private cloud Download PDF

Info

Publication number
CN111314457A
CN111314457A CN202010089795.3A CN202010089795A CN111314457A CN 111314457 A CN111314457 A CN 111314457A CN 202010089795 A CN202010089795 A CN 202010089795A CN 111314457 A CN111314457 A CN 111314457A
Authority
CN
China
Prior art keywords
network segment
virtual private
private cloud
parameter
current
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.)
Granted
Application number
CN202010089795.3A
Other languages
Chinese (zh)
Other versions
CN111314457B (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202010089795.3A priority Critical patent/CN111314457B/en
Publication of CN111314457A publication Critical patent/CN111314457A/en
Application granted granted Critical
Publication of CN111314457B publication Critical patent/CN111314457B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • H04L63/0227Filtering policies
    • H04L63/0236Filtering by address, protocol, port number or service, e.g. IP-address or URL

Abstract

The embodiment of the application discloses a method and a device for setting a virtual private cloud. One embodiment of the above method comprises: receiving an update request aiming at a virtual private cloud, wherein the virtual private cloud comprises a main network segment and an auxiliary network segment, and the update request comprises an update parameter of the auxiliary network segment; acquiring the current parameters of the main network segment and the auxiliary network segment; and responding to the current parameters according to the updating parameters, the current parameters of the main network segment and the current parameters of the auxiliary network segment, determining that the preset conditions are met, and updating the current parameters of the auxiliary network segment according to the updating parameters. The implementation mode not only can realize the capacity expansion of the virtual private cloud, but also can realize the flexible management of the virtual private cloud.

Description

Method and device for setting virtual private cloud
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method and a device for setting a virtual private cloud.
Background
With the development of information technology, cloud computing is gradually becoming a development hotspot in the industry, and cloud management platforms of various home and abroad manufacturers are also beginning to be put into use in multiple fields of science, education, culture, sanitation, government, high-performance computing, electronic commerce, internet of things and the like. The network resources are reasonably and effectively deployed and managed, and the method is not only a core link of the current cloud computing industry, but also a bottleneck link of the cloud computing industry development in the next decades. A Virtual Private Cloud (VPC) is a Virtual network that a user can define, and a network address space is flexibly set to implement private network isolation.
Disclosure of Invention
The embodiment of the application provides a method and a device for setting a virtual private cloud.
In a first aspect, an embodiment of the present application provides a method for setting a virtual private cloud, including: receiving an update request aiming at a virtual private cloud, wherein the virtual private cloud comprises a main network segment and an auxiliary network segment, and the update request comprises an update parameter of the auxiliary network segment; acquiring the current parameters of the main network segment and the auxiliary network segment; and responding to the current parameters according to the updating parameters, the current parameters of the main network segment and the current parameters of the auxiliary network segment, determining that the preset conditions are met, and updating the current parameters of the auxiliary network segment according to the updating parameters.
In some embodiments, the updated parameter comprises an IP address field, and the current parameter comprises an IP address field; and the above method comprises: and if the IP address field included in the updating parameter is superposed with the IP address field included in the current parameter, determining that the preset condition is not met.
In some embodiments, the above method comprises: and if the auxiliary network comprises the subnet according to the current parameters of the auxiliary network segment, determining that the preset condition is not met.
In some embodiments, the obtaining the current parameter of the primary network segment and the current parameter of the secondary network segment includes: and acquiring the current parameters of the main network segment and the current parameters of the auxiliary network segment through the updated virtual private cloud interface.
In some embodiments, the above method further comprises: and responding to the situation that the preset condition is not met, and outputting error information.
In some embodiments, the above method further comprises: the updated parameters are stored in a database.
In a second aspect, an embodiment of the present application provides an apparatus for setting a virtual private cloud, including: a receiving unit configured to receive an update request for a virtual private cloud, the virtual private cloud including a primary network segment and a secondary network segment, the update request including an update parameter of the secondary network segment; an acquisition unit configured to acquire a current parameter of the primary network segment and a current parameter of the secondary network segment; and the updating unit is configured to respond to the condition that the preset condition is met according to the updating parameter, the current parameter of the main network segment and the current parameter of the auxiliary network segment, and update the current parameter of the auxiliary network segment according to the updating parameter.
In some embodiments, the updated parameter comprises an IP address field, and the current parameter comprises an IP address field; the apparatus further comprises a determination unit configured to: and if the IP address field included in the updating parameter is superposed with the IP address field included in the current parameter, determining that the preset condition is not met.
In some embodiments, the apparatus further comprises a determination unit configured to: and if the auxiliary network comprises the subnet according to the current parameters of the auxiliary network segment, determining that the preset condition is not met.
In some embodiments, the above-mentioned obtaining unit is further configured to: and acquiring the current parameters of the main network segment and the current parameters of the auxiliary network segment through the updated virtual private cloud interface.
In some embodiments, the above apparatus further comprises: an output unit configured to output error information in response to the preset condition not being satisfied.
In some embodiments, the above apparatus further comprises: and the storage unit is configured to store the updated parameters in a database.
In a third aspect, an embodiment of the present application provides a server, including: one or more processors; a storage device, on which one or more programs are stored, which, when executed by the one or more processors, cause the one or more processors to implement the method as described in any of the embodiments of the first aspect.
In a fourth aspect, the present application provides a computer-readable medium, on which a computer program is stored, which when executed by a processor implements the method as described in any one of the embodiments of the first aspect.
The method and the device for setting the virtual private cloud provided by the embodiment of the application can acquire the current parameters of the main network segment and the current parameters of the auxiliary network segment in the virtual private cloud after receiving the update request aiming at the virtual private cloud. And if the preset condition is determined to be met according to the updated parameters and the current parameters, updating the current parameters of the auxiliary network segment according to the updated parameters. According to the method, the auxiliary network segment is arranged in the virtual private cloud, so that not only can the capacity expansion of the virtual private cloud be realized, but also the flexible management of the virtual private cloud can be realized.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which one embodiment of the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method of setting up a virtual private cloud according to the present application;
fig. 3 is a schematic diagram of an application scenario of a method of setting up a virtual private cloud according to the present application;
fig. 4 is a flow diagram of another embodiment of a method of setting up a virtual private cloud according to the present application;
FIG. 5 is a flow diagram of yet another embodiment of a method of setting up a virtual private cloud according to the present application;
fig. 6 is a schematic structural diagram of an embodiment of an apparatus for setting up a virtual private cloud according to the present application;
FIG. 7 is a block diagram of a computer system suitable for use in implementing a server according to embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 illustrates an exemplary system architecture 100 to which embodiments of the method of setting up a virtual private cloud or the apparatus for setting up a virtual private cloud of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have various communication client applications installed thereon, such as a web browser application, a shopping application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices with display screens, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like. When the terminal apparatuses 101, 102, 103 are software, they can be installed in the electronic apparatuses listed above. It may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The server 105 may be a server providing various services, such as a background server providing support for update requests sent by the terminal devices 101, 102, 103. The backend server may analyze and perform other processing on the received data such as the update request, and feed back a processing result (for example, parameters of the updated virtual private cloud) to the terminal devices 101, 102, and 103.
The server 105 may be hardware or software. When the server 105 is hardware, it may be implemented as a distributed server cluster composed of a plurality of servers, or may be implemented as a single server. When the server 105 is software, it may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be noted that the method for setting up the virtual private cloud provided in the embodiment of the present application is generally performed by the server 105. Accordingly, the apparatus that sets up the virtual private cloud is generally set up in the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to fig. 2, a flow 200 of one embodiment of a method of setting up a virtual private cloud in accordance with the present application is shown. The method for setting the virtual private cloud of the embodiment comprises the following steps:
step 201, receiving an update request for a virtual private cloud.
In this embodiment, an execution subject (for example, the server 105 shown in fig. 1) of the method for setting the virtual private cloud may receive, through a wired connection manner or a wireless connection manner, an update request for the virtual private cloud, which is sent by a user through a terminal device (for example, the terminal devices 101, 102, 103 shown in fig. 1). The virtual private cloud may include a primary network segment and a secondary network segment. The main network segment refers to a network segment set when a user applies for a virtual private cloud, namely the network segment before the virtual private cloud is expanded. The auxiliary network segment refers to a network segment after the virtual private cloud is extended. It will be appreciated that if the virtual private cloud is not extended, no secondary segment is included therein, or the secondary segment is empty. The address section of the auxiliary network segment can not be overlapped with the address section of the main network segment, and different from the main network segment, a user can modify the address section of the auxiliary network segment so as to ensure that the address conflict problem caused by the overlapping of the address sections of the auxiliary network segment can not occur when two virtual private clouds are communicated. The update request may include an update parameter of the auxiliary network segment. The updated parameters may include an IP address segment involved with the secondary network segment and a parameter indicating operation of the secondary network segment. The above operations include create (create), update (update), delete (delete), and the like.
Step 202, obtaining the current parameters of the primary network segment and the current parameters of the auxiliary network segment.
After receiving the update request, the execution main body can acquire the current parameters of the main network segment and the current parameters of the auxiliary network segment. The executing agent may access a storage device (e.g., a database) through an interface of the virtual private cloud to obtain current parameters of the primary network segment and current parameters of the secondary network segment. The above interface may be different from the existing proprietary cloud interface with the database. The current parameters may include a current address segment of the main network segment, a current address segment of the auxiliary network segment, whether the auxiliary network segment includes a subnet, a CIDR (class-free Inter-Domain Routing) of the subnet, and other information.
Step 203, responding to the current parameters according to the updated parameters, the current parameters of the main network segment and the current parameters of the auxiliary network segment, determining that the preset conditions are met, and updating the current parameters of the auxiliary network segment according to the updated parameters.
After acquiring the current parameters of the main network segment, the current parameters of the auxiliary network segment and the updated parameters of the auxiliary network segment, the execution main body can judge whether the preset conditions are met currently. The preset condition may be preset by a user, or preset by a provider of the virtual private cloud. The preset conditions may include that the address field included in the update parameter does not coincide with the address field in the current parameter, that the subnet is not included in the auxiliary network segment, and so on.
If the preset condition is met, the current operation of the user on the virtual private cloud is reasonable, and the execution main body can update the current parameters of the auxiliary network segment according to the updated parameters. Such as creating, updating, deleting, etc., secondary network segments.
For example, the updated parameter is updated _ alias _ cidrs, and the current parameter is original _ alias _ cidrs. When the execution agent recognizes that the operation parameter is create (create) or update (update), when the preset condition is determined to be satisfied, the updated _ alias _ cis can be directly used to replace the original _ alias _ cis, so as to update the auxiliary network segment. When the execution subject recognizes that the operation parameter is delete (delete), the updated _ alias _ cis and the original _ alias _ cis may be compared to determine the portion to be deleted. If the part to be deleted meets the preset condition, the part to be deleted can be deleted. With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the method of setting up a virtual private cloud according to the present embodiment. In the application scenario of fig. 3, a user sends an update request for a virtual private cloud to a server 302 through a terminal 301, and the server 302 obtains a current parameter of a primary network segment and a current parameter of a secondary network segment of the virtual private cloud from a database 303 through an updated database interface. And the server 302 determines that the preset condition is met according to the updating parameters and the current parameters, and updates the auxiliary network segment.
The method for setting the virtual private cloud provided by the embodiment of the application can acquire the current parameters of the main network segment and the current parameters of the auxiliary network segment in the virtual private cloud after receiving the update request aiming at the virtual private cloud. And if the preset condition is determined to be met according to the updated parameters and the current parameters, updating the current parameters of the auxiliary network segment according to the updated parameters. According to the method, the auxiliary network segment is arranged in the virtual private cloud, so that not only can the capacity expansion of the virtual private cloud be realized, but also the flexible management of the virtual private cloud can be realized.
With continued reference to fig. 4, a flow 400 of another embodiment of a method of setting up a virtual private cloud in accordance with the present application is shown. As shown in fig. 4, the method for setting up a virtual private cloud according to this embodiment may include the following steps:
at step 401, an update request for a virtual private cloud is received.
And 402, acquiring the current parameters of the main network segment and the current parameters of the auxiliary network segment through the updated virtual private cloud interface.
In this embodiment, the current parameter may be stored in a database, and before the expansion of the main network segment of the virtual private cloud, the execution subject may obtain the parameter of the main network segment through an interface between the virtual private cloud and the database. After the main network segment of the virtual private cloud is expanded, the execution subject may update the interface. And then acquiring the current parameters of the main network segment and the current parameters of the auxiliary network segment through the updated virtual private cloud interface. Therefore, changes caused by the expansion of the virtual private cloud can be reduced, and the updated interface can be applied to other virtual private clouds, so that the change utilization rate is improved.
Step 403, if the IP address field included in the update parameter is overlapped with the IP address field included in the current parameter, it is determined that the preset condition is not satisfied.
In this embodiment, the execution body may compare the IP address field included in the update parameter with the IP address field included in the current parameter. It is understood that the comparison herein includes a comparison between the IP address field included in the update parameter and the IP address field of the primary segment, and a comparison between the IP address field included in the update parameter and the IP address field of the secondary segment. Through comparison, if the IP address field included in the updating parameter is not overlapped with the IP address field of the main network segment and the IP address field included in the updating parameter is not overlapped with the IP address field of the auxiliary network segment, the current condition is considered to be met. If the IP address field in the update parameter coincides with the IP address field in the primary or secondary network segment, address conflicts may result.
In response to the preset condition not being met, an error message is output, step 404.
In this embodiment, if the execution main body determines that the preset condition is satisfied, an error message is output, where the error message is used to prompt the user that the auxiliary network segment cannot be updated currently.
The method for setting the virtual private cloud provided by the embodiment of the application can flexibly manage the virtual private cloud and prompt a user when the preset condition is not met.
With continued reference to fig. 5, a flow 500 of another embodiment of a method of setting up a virtual private cloud in accordance with the present application is shown. As shown in fig. 5, the method for setting up a virtual private cloud according to this embodiment may include the following steps:
at step 501, an update request for a virtual private cloud is received.
And 502, acquiring the current parameters of the main network segment and the current parameters of the auxiliary network segment through the updated virtual private cloud interface.
In this embodiment, the current parameter may be stored in a database, and before the expansion of the main network segment of the virtual private cloud, the execution subject may obtain the parameter of the main network segment through an interface between the virtual private cloud and the database. After the main network segment of the virtual private cloud is expanded, the execution subject may update the interface. And then acquiring the current parameters of the main network segment and the current parameters of the auxiliary network segment through the updated virtual private cloud interface. Therefore, changes caused by the expansion of the virtual private cloud can be reduced, and the updated interface can be applied to other virtual private clouds, so that the change utilization rate is improved.
Step 503, if the auxiliary network is determined to include the subnet according to the current parameters of the auxiliary network segment, determining that the preset condition is not satisfied.
In this embodiment, the execution main body may determine whether the auxiliary network includes a subnet according to the current parameter of the auxiliary network segment. And if the subnet is included, the preset condition is not met currently. The subnet in the virtual private cloud is an independent virtual network, which may include resources such as a cloud server, a load balancing server, cloud data, a NoSql database, and the like. In this case, the execution subject considers the update of the subnet to be a very complicated work. Therefore, if the auxiliary network segment includes a subnet, the execution main body does not directly process the subnet, and directly determines that the preset condition is not satisfied currently. Therefore, on one hand, the important updating of the virtual private cloud caused by misoperation of the user can be avoided; on the other hand, errors due to complicated conditions when performing the above-described update can be avoided.
And 504, responding to the preset condition not being met, and outputting error information.
In this embodiment, if the execution main body determines that the preset condition is satisfied, an error message is output, where the error message is used to prompt the user that the auxiliary network segment cannot be updated currently.
Step 505, the update parameters are stored in a database.
In this embodiment, the execution main body may further store the update parameter in the database, so that not only the update record of the user on the auxiliary network segment may be saved, but also the latest stored update parameter may be used as the current parameter when the auxiliary network segment is set next time.
The method for setting the virtual private cloud provided by the embodiment of the application can flexibly manage the virtual private cloud and prompt a user when the preset condition is not met. With further reference to fig. 6, as an implementation of the method shown in the above-mentioned figures, the present application provides an embodiment of an apparatus for setting a virtual private cloud, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the apparatus may be specifically applied to various electronic devices.
As shown in fig. 6, the apparatus 600 for setting up a virtual private cloud according to the present embodiment includes: a receiving unit 601, an obtaining unit 602, and an updating unit 603.
A receiving unit 601 configured to receive an update request for a virtual private cloud. The virtual private cloud comprises a main network segment and an auxiliary network segment, and the updating request comprises the updating parameters of the auxiliary network segment.
An obtaining unit 602, configured to obtain a current parameter of the primary network segment and a current parameter of the secondary network segment.
An updating unit 603 configured to, in response to determining that the preset condition is satisfied according to the update parameter, the current parameter of the primary network segment, and the current parameter of the secondary network segment, update the current parameter of the secondary network segment according to the update parameter.
In some optional implementations of this embodiment, the update parameter includes an IP address field, and the current parameter includes an IP address field. The apparatus 600 may further comprise a determination unit, not shown in fig. 6, configured to: and if the IP address field included in the updating parameter is superposed with the IP address field included in the current parameter, determining that the preset condition is not met.
In some optional implementations of this embodiment, the apparatus 600 may further include a determining unit not shown in fig. 6, configured to: and if the auxiliary network comprises the sub-network according to the current parameters of the auxiliary network segment, determining that the preset condition is not met.
In some optional implementations of this embodiment, the obtaining unit 602 may be further configured to: and acquiring the current parameters of the main network segment and the current parameters of the auxiliary network segment through the updated virtual private cloud interface.
In some optional implementations of this embodiment, the apparatus may further include an output unit, not shown in fig. 6, configured to output the error information in response to the preset condition not being satisfied.
In some optional implementations of this embodiment, the apparatus may further include a storage unit, not shown in fig. 6, configured to store the update parameter in a database.
It should be understood that units 601 to 603 recited in the apparatus 600 for setting up a virtual private cloud correspond to respective steps in the method described with reference to fig. 2, respectively. Thus, the operations and features described above for the method of setting up a virtual private cloud are also applicable to the apparatus 600 and the units included therein, and are not described herein again.
Referring now to FIG. 7, a block diagram of an electronic device (e.g., the server of FIG. 1) 700 suitable for use in implementing embodiments of the present disclosure is shown. The server shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 7, electronic device 700 may include a processing means (e.g., central processing unit, graphics processor, etc.) 701 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)702 or a program loaded from storage 708 into a Random Access Memory (RAM) 703. In the RAM703, various programs and data necessary for the operation of the electronic apparatus 700 are also stored. The processing device 701, the ROM 702, and the RAM703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Generally, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 707 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 708 including, for example, magnetic tape, hard disk, etc.; and a communication device 709. The communication means 709 may allow the electronic device 700 to communicate wirelessly or by wire with other devices to exchange data. While fig. 7 illustrates an electronic device 700 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 7 may represent one device or may represent multiple devices as desired.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication means 709, or may be installed from the storage means 708, or may be installed from the ROM 702. The computer program, when executed by the processing device 701, performs the above-described functions defined in the methods of embodiments of the present disclosure. It should be noted that the computer readable medium described in the embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In embodiments of the present disclosure, however, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving an update request aiming at a virtual private cloud, wherein the virtual private cloud comprises a main network segment and an auxiliary network segment, and the update request comprises an update parameter of the auxiliary network segment; acquiring the current parameters of the main network segment and the auxiliary network segment; and determining that the preset condition is met according to the updating parameters, the current parameters of the main network segment and the current parameters of the auxiliary network segment, and updating the current parameters of the auxiliary network segment according to the updating parameters.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a receiving unit, an obtaining unit, a judging unit, and an updating unit. Where the names of these units do not in some cases constitute a limitation on the unit itself, for example, a receiving unit may also be described as a "unit that receives an update request for a virtual private cloud".
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (14)

1. A method of setting up a virtual private cloud, comprising:
receiving an update request aiming at a virtual private cloud, wherein the virtual private cloud comprises a main network segment and an auxiliary network segment, and the update request comprises an update parameter of the auxiliary network segment;
acquiring the current parameters of the main network segment and the auxiliary network segment;
and responding to the situation that the preset condition is met according to the updating parameters, the current parameters of the main network segment and the current parameters of the auxiliary network segment, and updating the current parameters of the auxiliary network segment according to the updating parameters.
2. The method of claim 1, wherein the updated parameters include an IP address field, and the current parameters include an IP address field; and
the method comprises the following steps:
and if the IP address field included in the updating parameter is coincident with the IP address field included in the current parameter, determining that the preset condition is not met.
3. The method of claim 1, wherein the method comprises:
and if the auxiliary network comprises the sub-network according to the current parameters of the auxiliary network segment, determining that the preset condition is not met.
4. The method of claim 1, wherein the obtaining current parameters of the primary network segment and current parameters of the secondary network segment comprises:
and acquiring the current parameters of the main network segment and the current parameters of the auxiliary network segment through the updated virtual private cloud interface.
5. The method of any of claims 1-4, wherein the method further comprises:
and outputting error information in response to the preset condition not being met.
6. The method of any of claims 1-4, wherein the method further comprises:
storing the updated parameters in a database.
7. An apparatus to provision a virtual private cloud, comprising:
a receiving unit configured to receive an update request for a virtual private cloud, the virtual private cloud including a primary network segment and a secondary network segment, the update request including an update parameter of the secondary network segment;
an acquisition unit configured to acquire a current parameter of the primary network segment and a current parameter of the secondary network segment;
an updating unit configured to determine that the preset condition is satisfied in response to determining that the preset condition is satisfied according to the update parameter, the current parameter of the primary network segment, and the current parameter of the secondary network segment, and update the current parameter of the secondary network segment according to the update parameter.
8. The apparatus of claim 7, wherein the update parameter comprises an IP address field, and the current parameter comprises an IP address field; and
the apparatus further comprises a determination unit configured to:
and if the IP address field included in the updating parameter is coincident with the IP address field included in the current parameter, determining that the preset condition is not met.
9. The apparatus of claim 7, wherein the apparatus further comprises a determination unit configured to:
and if the auxiliary network comprises the sub-network according to the current parameters of the auxiliary network segment, determining that the preset condition is not met.
10. The apparatus of claim 7, wherein the obtaining unit is further configured to:
and acquiring the current parameters of the main network segment and the current parameters of the auxiliary network segment through the updated virtual private cloud interface.
11. The apparatus of any of claims 7-10, wherein the apparatus further comprises:
an output unit configured to output error information in response to the preset condition not being satisfied.
12. The apparatus of any of claims 7-10, wherein the apparatus further comprises:
a storage unit configured to store the update parameter in a database.
13. A server, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
14. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-6.
CN202010089795.3A 2020-02-13 2020-02-13 Method and device for setting virtual private cloud Active CN111314457B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010089795.3A CN111314457B (en) 2020-02-13 2020-02-13 Method and device for setting virtual private cloud

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010089795.3A CN111314457B (en) 2020-02-13 2020-02-13 Method and device for setting virtual private cloud

Publications (2)

Publication Number Publication Date
CN111314457A true CN111314457A (en) 2020-06-19
CN111314457B CN111314457B (en) 2022-04-29

Family

ID=71160004

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010089795.3A Active CN111314457B (en) 2020-02-13 2020-02-13 Method and device for setting virtual private cloud

Country Status (1)

Country Link
CN (1) CN111314457B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160381114A1 (en) * 2014-02-07 2016-12-29 Kik Interactive Inc. Method and system for replicating a communication application on an auxiliary computing device
CN106331210A (en) * 2016-08-19 2017-01-11 中国银联股份有限公司 IP address allocation method and device for cloud computing network
US20180027006A1 (en) * 2015-02-24 2018-01-25 Cloudlock, Inc. System and method for securing an enterprise computing environment
CN107690800A (en) * 2015-06-16 2018-02-13 亚马逊技术有限公司 Manage dynamic IP addressing distribution
US20180077007A1 (en) * 2013-11-11 2018-03-15 Softnas Operating Inc. Redundant storage solution
CN109302302A (en) * 2017-07-25 2019-02-01 中兴通讯股份有限公司 Service scalable method, system and the computer readable storage medium of network element
US20190207812A1 (en) * 2016-11-24 2019-07-04 Tencent Technology (Shenzhen) Company Limited Hybrid cloud network configuration management
CN109995816A (en) * 2017-12-29 2019-07-09 中移(苏州)软件技术有限公司 Information introduction method, device and communication equipment based on cloud computing platform
CN110140379A (en) * 2016-11-07 2019-08-16 A9.Com公司 System and method for enhancing netted networking
CN110289982A (en) * 2019-05-17 2019-09-27 平安科技(深圳)有限公司 Expansion method, device, computer equipment and the storage medium of container application
CN110347509A (en) * 2019-07-08 2019-10-18 北京字节跳动网络技术有限公司 Business framework access system, service request processing method, equipment and medium
CN110753112A (en) * 2019-10-23 2020-02-04 北京百度网讯科技有限公司 Elastic expansion method and device of cloud service

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180077007A1 (en) * 2013-11-11 2018-03-15 Softnas Operating Inc. Redundant storage solution
US20160381114A1 (en) * 2014-02-07 2016-12-29 Kik Interactive Inc. Method and system for replicating a communication application on an auxiliary computing device
US20180027006A1 (en) * 2015-02-24 2018-01-25 Cloudlock, Inc. System and method for securing an enterprise computing environment
CN107690800A (en) * 2015-06-16 2018-02-13 亚马逊技术有限公司 Manage dynamic IP addressing distribution
CN106331210A (en) * 2016-08-19 2017-01-11 中国银联股份有限公司 IP address allocation method and device for cloud computing network
CN110140379A (en) * 2016-11-07 2019-08-16 A9.Com公司 System and method for enhancing netted networking
US20190207812A1 (en) * 2016-11-24 2019-07-04 Tencent Technology (Shenzhen) Company Limited Hybrid cloud network configuration management
CN109302302A (en) * 2017-07-25 2019-02-01 中兴通讯股份有限公司 Service scalable method, system and the computer readable storage medium of network element
CN109995816A (en) * 2017-12-29 2019-07-09 中移(苏州)软件技术有限公司 Information introduction method, device and communication equipment based on cloud computing platform
CN110289982A (en) * 2019-05-17 2019-09-27 平安科技(深圳)有限公司 Expansion method, device, computer equipment and the storage medium of container application
CN110347509A (en) * 2019-07-08 2019-10-18 北京字节跳动网络技术有限公司 Business framework access system, service request processing method, equipment and medium
CN110753112A (en) * 2019-10-23 2020-02-04 北京百度网讯科技有限公司 Elastic expansion method and device of cloud service

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
FRANCESCO SPINELLI等: "Chaining your Virtual Private Clouds with Segment Routing", 《IEEE INFOCOM 2019 - IEEE CONFERENCE ON COMPUTER COMMUNICATIONS WORKSHOPS (INFOCOM WKSHPS)》 *
姚严峰: "基于运营商容器云平台的研究", 《中国新通信》 *
杨峰等: "IaaS云资源池中VLAN划分及IP池管理分析", 《电子设计工程》 *
粟迎南: "电视台私有云的建设", 《现代电视技术》 *

Also Published As

Publication number Publication date
CN111314457B (en) 2022-04-29

Similar Documents

Publication Publication Date Title
CN110609872B (en) Method and apparatus for synchronizing node data
CN110753089B (en) Method, device, medium and electronic equipment for managing client
CN110391938B (en) Method and apparatus for deploying services
CN111679990B (en) Test data generation method and device, readable medium and electronic equipment
CN114035879A (en) Page theme color changing method and device, electronic equipment and computer readable medium
CN114938395A (en) Service response method, device, equipment and storage medium
CN111324470A (en) Method and device for generating information
CN111314457B (en) Method and device for setting virtual private cloud
CN116302271A (en) Page display method and device and electronic equipment
CN113553206B (en) Data event execution method and device, electronic equipment and computer readable medium
CN112507676B (en) Method and device for generating energy report, electronic equipment and computer readable medium
CN111626802A (en) Method and apparatus for processing information
CN114860213A (en) Application package generation method, device, equipment and medium
CN115167874A (en) Automatic driving software mirror image deployment method and device, electronic equipment and readable medium
CN114398035A (en) Method, apparatus, device and computer readable medium for providing service using component
CN113778850A (en) Data processing method and device, electronic equipment and computer readable medium
CN113472565B (en) Method, apparatus, device and computer readable medium for expanding server function
CN111309367A (en) Method, device, medium and electronic equipment for managing service discovery
CN116319322B (en) Power equipment node communication connection method, device, equipment and computer medium
CN109254847A (en) A kind of tenant's map information acquisition methods and device
CN112311833B (en) Data updating method and device
CN110633324B (en) Method, apparatus, electronic device and computer readable medium for synchronizing data
CN114253520B (en) Interface code generation method and device
CN115391358A (en) Array updating method and device, electronic equipment and computer readable medium
CN112882820A (en) Method and device for configuring resources

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