Network creation method, device, computer equipment and storage medium in cloud service
By providing multiple optional network segment selection ranges and controls, users can simply and efficiently select the appropriate network segment, solving the network creation problem caused by users' lack of professional knowledge and achieving efficient and secure private network creation.
Patent Information
- Application Number
- CN202311199410.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-15
- Publication Date
- 2025-09-12
- Estimated Expiration
- 2043-09-15
AI Technical Summary
When users create a private network in a cloud service, they need to select an appropriate network segment. However, lack of expertise may result in incorrect network segments or segments that do not meet requirements, leading to poor network scalability, difficulty in management, and low security.
Provides multiple optional network segment selection ranges, and displays the target network segment selection control through the network segment selection control. Users only need to select the corresponding address block to complete the private network creation.
It simplifies the process of creating a private network, improves creation efficiency, and ensures the accuracy of network segment selection and the scalability and security of the network.
Smart Images

Figure CN117201495B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a network creation method, apparatus, computer equipment, and storage medium in a cloud service. Background Art
[0002] Cloud services refer to computing, storage, databases, networks, and other computing resources provided over the internet. In a cloud computing environment, cloud services can be deployed within a private network to enhance security and integrate with an organization's internal resources. To deploy cloud services, users typically need to first establish a private network. When designing a private network, selecting the appropriate network segment is crucial, as it directly impacts network scalability, management, and security.
[0003] Typically, users need to pre-select a network segment and then enter it on the network creation page. However, selecting a network segment requires specialized knowledge. Uninformed users may enter an incorrect segment or a segment that is insufficient for their needs, resulting in poor scalability, difficulty in management, and low security in the private network they create. Summary of the Invention
[0004] The embodiments of the present disclosure at least provide a network creation method, apparatus, computer equipment, and storage medium in a cloud service.
[0005] In a first aspect, an embodiment of the present disclosure provides a network creation method in a cloud service, comprising:
[0006] In response to a request to create a private network, display a private network creation page; the private network creation page indicates multiple network segment selection ranges;
[0007] In response to a trigger operation on a target network segment selection range, displaying a first network segment selection control corresponding to the target network segment selection range; the first network segment selection control displays a plurality of first address blocks, each of the first address blocks corresponding to a first network segment in the target network segment selection range;
[0008] In response to a selection operation on at least one first address block, determining a target first network segment associated with the selected first address block;
[0009] The target first network segment is used as the network segment of the private network; the target first network segment is used to provide a network address for any service to be deployed in the private network.
[0010] In an optional implementation, a switching control is also displayed in the private network creation page;
[0011] The method further comprises:
[0012] In response to a triggering operation on the switching control, a second network segment selection control corresponding to the target network segment selection range is displayed; the second network segment selection control displays a plurality of second address blocks, each second address block corresponding to a second network segment in the target network segment selection range;
[0013] The number of network addresses corresponding to the second network segment is different from the number of network addresses corresponding to the first network segment, and the size of the second address block is different from the size of the first address block.
[0014] In an optional implementation, the switch control includes a first switch control and a second switch control;
[0015] The first switching control is used to increase the number of network addresses corresponding to each network segment and increase the size of the address block; the second switching control is used to reduce the number of network addresses corresponding to each network segment and reduce the size of the address block.
[0016] In an optional implementation, in response to a selection operation on at least one first address block, after determining a target first network segment associated with the selected first address block, the method further includes:
[0017] Displaying a third network segment selection control corresponding to the target first network segment, wherein the third network segment selection control displays multiple sub-address blocks; each sub-address block corresponds to a sub-network segment obtained by dividing the target first network segment;
[0018] In response to a selection operation on at least one sub-address block, determining a target subnet segment associated with the selected sub-address block;
[0019] Creating a target network partition in the private network, and using the target subnet segment as a network segment of the target network partition;
[0020] The target subnet segment is used to provide a network address for any service to be deployed in the target network partition.
[0021] In an optional implementation, the displaying of the third network segment selection control corresponding to the target first network segment includes:
[0022] Classifying each of the sub-address blocks based on the network segments corresponding to each network partition in the private network;
[0023] Determining the display effect of each sub-address block according to the type of each sub-address block;
[0024] The third network segment selection control is displayed according to the display effects of the respective sub-address blocks.
[0025] In an optional implementation, classifying each of the sub-address blocks based on the network segments corresponding to each network partition in the private network includes:
[0026] When all network segments of the subnet segment corresponding to the sub-address block overlap with the network segment corresponding to any network partition, determining that the type of the sub-address block is the first type;
[0027] When part of the network segment of the sub-network segment corresponding to the sub-address block overlaps with the network segment corresponding to any network partition, determining that the type of the sub-address block is the second type;
[0028] In a case where there is no overlap between the sub-network segment corresponding to the sub-address block and the network segment corresponding to any network partition, it is determined that the type of the sub-address block is the third type.
[0029] In an optional implementation, the method further includes:
[0030] In response to a detail viewing operation for any of the first address blocks, the network segment information corresponding to the first address block is displayed; the network segment information indicates a first network segment corresponding to the first address block, and / or the number of network addresses contained in the first network segment.
[0031] In an optional implementation, a selection indicator is further displayed in the first network segment selection control;
[0032] The selection operation is used to control the coverage area of the selection indicator in the first network segment selection control; the selected first address block is the first address block located in the coverage area.
[0033] In an optional implementation manner, after using the target first network segment as the network segment of the private network, the method further includes:
[0034] In response to a triggering operation on the details page of the private network, the details page of the private network is displayed; the details page displays a network segment distribution control corresponding to the private network; the network segment distribution control displays multiple sub-address blocks; each sub-address block corresponds to a sub-network segment obtained by dividing the target first network segment; the display effect of the sub-network segment is determined based on the type of the sub-address block.
[0035] In a second aspect, an embodiment of the present disclosure further provides a network creation device in a cloud service, comprising:
[0036] A first display module is configured to display a private network creation page in response to a private network creation request; the private network creation page indicates multiple network segment selection ranges;
[0037] a second display module, configured to display, in response to a trigger operation on a target network segment selection range, a first network segment selection control corresponding to the target network segment selection range; wherein the first network segment selection control displays a plurality of first address blocks, each of the first address blocks corresponding to a first network segment in the target network segment selection range;
[0038] a selection module, configured to, in response to a selection operation on at least one first address block, determine a target first network segment associated with the selected first address block;
[0039] An input module is used to use the target first network segment as the network segment of the private network; the target first network segment is used to provide a network address for any service to be deployed in the private network.
[0040] In an optional implementation, a switching control is also displayed in the private network creation page;
[0041] The second display module is further used for:
[0042] In response to a triggering operation on the switching control, a second network segment selection control corresponding to the target network segment selection range is displayed; the second network segment selection control displays a plurality of second address blocks, each second address block corresponding to a second network segment in the target network segment selection range;
[0043] The number of network addresses corresponding to the second network segment is different from the number of network addresses corresponding to the first network segment, and the size of the second address block is different from the size of the first address block.
[0044] In an optional implementation, the switch control includes a first switch control and a second switch control;
[0045] The first switching control is used to increase the number of network addresses corresponding to each network segment and increase the size of the address block; the second switching control is used to reduce the number of network addresses corresponding to each network segment and reduce the size of the address block.
[0046] In an optional embodiment, the device further includes a third display module, configured to:
[0047] Displaying a third network segment selection control corresponding to the target first network segment, wherein the third network segment selection control displays multiple sub-address blocks; each sub-address block corresponds to a sub-network segment obtained by dividing the target first network segment;
[0048] In response to a selection operation on at least one sub-address block, determining a target subnet segment associated with the selected sub-address block;
[0049] Creating a target network partition in the private network, and using the target subnet segment as a network segment of the target network partition;
[0050] The target subnet segment is used to provide a network address for any service to be deployed in the target network partition.
[0051] In an optional implementation, when displaying the third network segment selection control corresponding to the target first network segment, the third display module is configured to:
[0052] Classifying each of the sub-address blocks based on the network segments corresponding to each network partition in the private network;
[0053] Determining the display effect of each sub-address block according to the type of each sub-address block;
[0054] The third network segment selection control is displayed according to the display effects of the respective sub-address blocks.
[0055] In an optional embodiment, when the third display module classifies each of the sub-address blocks based on the network segments corresponding to each network partition in the private network, it is configured to:
[0056] When all network segments of the subnet segment corresponding to the sub-address block overlap with the network segment corresponding to any network partition, determining that the type of the sub-address block is the first type;
[0057] When part of the network segment of the sub-network segment corresponding to the sub-address block overlaps with the network segment corresponding to any network partition, determining that the type of the sub-address block is the second type;
[0058] In a case where there is no overlap between the sub-network segment corresponding to the sub-address block and the network segment corresponding to any network partition, it is determined that the type of the sub-address block is the third type.
[0059] In an optional embodiment, the device further includes a fourth display module, configured to:
[0060] In response to a detail viewing operation for any of the first address blocks, the network segment information corresponding to the first address block is displayed; the network segment information indicates a first network segment corresponding to the first address block, and / or the number of network addresses contained in the first network segment.
[0061] In an optional implementation, a selection indicator is further displayed in the first network segment selection control;
[0062] The selection operation is used to control the coverage area of the selection indicator in the first network segment selection control; the selected first address block is the first address block located in the coverage area.
[0063] In an optional embodiment, the device further includes a fifth display module, configured to:
[0064] In response to a triggering operation on the details page of the private network, the details page of the private network is displayed; the details page displays a network segment distribution control corresponding to the private network; the network segment distribution control displays multiple sub-address blocks; each sub-address block corresponds to a sub-network segment obtained by dividing the target first network segment; the display effect of the sub-network segment is determined based on the type of the sub-address block.
[0065] In a third aspect, an optional implementation of the present disclosure further provides a computer device, a processor, and a memory, wherein the memory stores machine-readable instructions executable by the processor, and the processor is used to execute the machine-readable instructions stored in the memory. When the machine-readable instructions are executed by the processor, the machine-readable instructions perform the steps of the above-mentioned first aspect, or any possible implementation of the first aspect.
[0066] In a fourth aspect, an optional implementation of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed, it executes the steps of the above-mentioned first aspect or any possible implementation of the first aspect.
[0067] For a description of the effects of the network creation device, computer equipment, and computer-readable storage medium in the above-mentioned cloud service, please refer to the description of the network creation method in the above-mentioned cloud service, which will not be repeated here.
[0068] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions of the present disclosure.
[0069] The network creation method, apparatus, computer equipment, and storage medium in the cloud service provided by the embodiments of the present disclosure can provide multiple optional network segment selection ranges when a user creates a private network in the cloud service, and display the first network segment selection control of the triggered target network segment selection range. The user only needs to select the first address block in the first network segment selection control to use the target first network segment corresponding to the first address block as the network segment of the private network, thereby completing the creation of the private network. The creation method is simple and efficient.
[0070] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following briefly introduces the drawings required for use in the embodiments. The drawings herein are incorporated into and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and, together with the specification, are used to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For those of ordinary skill in the art, other relevant drawings can be obtained based on these drawings without inventive effort.
[0072] Figure 1 A flowchart of a network creation method in a cloud service provided by some embodiments of the present disclosure is shown;
[0073] Figure 2 One of the schematic diagrams of a private network creation page provided by some embodiments of the present disclosure is shown;
[0074] Figure 3 A second schematic diagram of a private network creation page provided in some embodiments of the present disclosure is shown;
[0075] Figure 4 A schematic diagram of a network partition creation page provided by some embodiments of the present disclosure is shown;
[0076] Figure 5 A schematic diagram illustrating a details page of a private network provided in some embodiments of the present disclosure is shown;
[0077] Figure 6 A schematic diagram showing a network creation device in a cloud service provided by some embodiments of the present disclosure is shown;
[0078] Figure 7 A schematic diagram of a computer device provided by some embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0079] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure is not intended to limit the scope of the present disclosure for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present disclosure.
[0080] Research has found that when creating a private network, users must pre-select a network segment and then enter it on the network creation page. However, selecting a network segment requires specialized knowledge. Uninformed users may enter an incorrect segment or one that doesn't meet their needs. This can also lead to drawbacks such as poor scalability, difficulty managing, and low security.
[0081] Based on the above research, the present disclosure provides a network creation method, device, computer equipment and storage medium in a cloud service, which can provide multiple optional network segment selection ranges when a user needs to create a private network in a cloud service, and display the first network segment selection control of the triggered target network segment selection range. The user only needs to select the first address block in the first network segment selection control to use the target first network segment corresponding to the first address block as the network segment of the private network, thereby completing the creation of the private network. The creation method is simple and efficient.
[0082] The defects in the above solutions are the results obtained by the inventors after practice and careful research. Therefore, the process of discovering the above problems and the solutions proposed by this disclosure for the above problems below should be the contributions made by the inventors to this disclosure during the disclosure process.
[0083] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings.
[0084] To facilitate understanding of this embodiment, we first provide a detailed introduction to a method for establishing a network in a cloud service disclosed in this embodiment. The method is typically executed by a computer device with sufficient computing power. In some possible implementations, this method can be implemented by a processor invoking computer-readable instructions stored in a memory.
[0085] The network creation method in the cloud service provided by the embodiment of the present disclosure is described below by taking the execution subject as a terminal device as an example.
[0086] See also Figure 1 FIG. 1 is a flowchart of a method for creating a network in a cloud service according to an embodiment of the present disclosure, wherein the method includes steps S101 to S104, wherein:
[0087] S101. In response to a request to create a private network, display a private network creation page; the private network creation page indicates multiple network segment selection ranges.
[0088] The disclosed embodiments can be applied to cloud service scenarios. Cloud services refer to computing, storage, database, network, and other computing resource services provided over the internet. Users can deploy services in the cloud, where the cloud service provider maintains the hardware, providing a convenient experience. Before deploying services in the cloud, users must first establish a private network in the cloud.
[0089] A private network is a secure network configuration typically used to connect computing devices and resources within an organization. It can be isolated from the public internet and only allows communication between authorized internal users or devices.
[0090] In a cloud computing environment, organizations can deploy their cloud services within a private network to increase security and enable integration with internal resources. This configuration, often referred to as a "Virtual Private Cloud (VPC)" or "Private Cloud," allows organizations to establish a protected, controlled network environment in the cloud while leveraging the flexibility and scalability of cloud services. Private networks play an important role in ensuring the security of sensitive data and applications while allowing organizations to access the public internet as needed.
[0091] When designing a private network, selecting the appropriate network segment is crucial. In computer networking, a network segment is the process of dividing a large IP address range into smaller, more manageable subnetworks. This process involves dividing a set of IP addresses into one or more subnets, each with a specific set of IP addresses, to more efficiently allocate and manage network resources. When creating a private network, users can divide a large IP address range into a suitable network segment based on their needs and use this segment as the network segment for the private network.
[0092] An IP address (Internet Protocol Address) is a digital identifier used to uniquely identify and locate a device or host in a computer network.
[0093] A network segment can correspond to an IP address range, which is a group of consecutive IP addresses, usually represented by a starting address and an ending address. For example, the IPv4 address range may be from 192.168.0.1 to 192.168.0.254.
[0094] An IP address range is a group of consecutive IP addresses, usually represented by a starting address and an ending address. For example, the IPv4 address range may be from 192.168.0.1 to 192.168.0.254.
[0095] A subnet mask is a number used with an IP address to indicate which parts of the IP address identify the network and which parts identify the host. It consists of a string of binary digits, usually followed by a slash mark after the IP address, for example, 192.168.0.0 / 24, where " / 24" is the subnet mask. In this case, a 24-bit subnet mask is included. Each subnet within this address range can be distinguished by the last eight binary bits. In this case, the last eight binary bits are reserved for host identification, so there can be 2^8 (or 256) different subnets. The host range for these subnets will be from 0 to 255.
[0096] When entering a network segment for a private network, you need to determine the IP address range for the segment, specifically the starting IP address and the number of IP addresses. The number of IP addresses can be determined based on the subnet mask. Therefore, the data you typically need to enter includes the starting IP address and the subnet mask.
[0097] However, configuring an appropriate network segment requires certain professional knowledge. Otherwise, the user may enter an invalid network segment, rendering the private network unusable. Alternatively, the network segment entered by the user may not meet the user's needs, making it difficult to maintain and use.
[0098] To this end, in an embodiment of the present disclosure, multiple network segment selection ranges can be displayed on the private network creation page.
[0099] Typically, private networks can deploy IPv4 addresses. Due to the limited IPv4 address space, when selecting the IP address range for a private network, a specially reserved private IP address segment is usually used. Since private address segments are reserved for internal use, these addresses will not be routed to the public Internet.
[0100] The reserved private IP address segments above correspond to different network segment selection ranges, such as 10.0.0.0 to 10.255.255.255 (CIDR notation: 10.0.0.0 / 8), 172.16.0.0 to 172.31.255.255 (CIDR notation: 172.16.0.0 / 12), and 192.168.0.0 to 192.168.255.255 (CIDR notation: 192.168.0.0 / 16).
[0101] CIDR (Classless Inter-Domain Routing) is a technology for IP address allocation and routing that can more efficiently allocate IP address space. In short, it represents a continuous range of network IP addresses.
[0102] The aforementioned network segment selection ranges can correspond to pre-reserved private IP address segments, meaning that several broad network segments can be pre-provided for user selection. In specific application scenarios, identifiers can be used to represent different network segment selection ranges. For example, "10.0.0.0 / 8" can be identified as "Type A," "172.16.0.0 / 12" can be identified as "Type B," and "192.168.0.0 / 16" can be identified as "Type C."
[0103] S102. In response to a trigger operation for a target network segment selection range, a first network segment selection control corresponding to the target network segment selection range is displayed; a plurality of first address blocks are displayed in the first network segment selection control, and each first address block corresponds to a first network segment in the target network segment selection range.
[0104] Since the above network segment selection range includes a large number of IP addresses, the private network does not need such a large network segment range. In this case, you can split the selected network segment selection range, select a part of the network segments from the network segment selection range, and enter them into the private network.
[0105] To this end, the embodiment of the present disclosure can display a first network segment selection control corresponding to the target network segment selection range when the target network segment selection range is triggered (e.g., selected). The first network segment selection control can display multiple first address blocks, each first address block corresponding to a first network segment in the target network segment selection range.
[0106] After the first network segment selection control is displayed, the user can select an address block in the first network segment selection control to select a suitable network segment for the private network.
[0107] The first address block in the first network segment selection control may be part of the target network segment selection range. The first network segment may divide the target network segment selection range according to a preset division method. The first address blocks may be arranged in the order of corresponding network segments.
[0108] For example, if 192.168.0.0 / 16 is divided into 256 first network segments, each of which contains 256 IP addresses, then the first network segment corresponding to the first first address block is 192.168.1.0 / 24, the first network segment corresponding to the second first address block can be 192.168.2.0 / 24, ..., and the first network segment corresponding to the last first address block can be 192.168.255.0 / 24. If 192.168.0.0 / 16 is divided into 16 first network segments, each of which can contain 4096 IP addresses, then the first network segment corresponding to the first first address block is 192.168.0.0 / 20, the first network segment corresponding to the second first address block can be 192.168.16.0 / 20, ..., and the first network segment corresponding to the last first address block can be 192.168.240.0 / 20.
[0109] During the specific implementation process, a default segmentation method may be preset, and the target network segment selection range may be segmented using the default segmentation method to obtain first network segments corresponding to respective first address blocks.
[0110] In a possible implementation, the user may need a first network segment to include more or fewer IP addresses. To this end, the user may switch the displayed network segment selection control from the first network segment selection control to a second network segment selection control.
[0111] Specifically, a switch control may be displayed on the private network creation page. The user may switch the first network segment selection control to the second network segment selection control by triggering the switch control.
[0112] After detecting the trigger operation for the switching control, a second network segment selection control corresponding to the target network segment selection range can be displayed, and multiple second address blocks are displayed in the second network segment selection control, each address block corresponding to a second network segment in the target network segment selection range.
[0113] Among them, the above-mentioned second network segment can be obtained by using different segmentation methods from the target network segment selection range. Since the segmentation methods corresponding to the first network segment and the second network segment are different, the number of network addresses corresponding to the second network segment is different from the number of network addresses corresponding to the first network segment.
[0114] In order to visually show that the number of network addresses in the first network segment is different from that in the second network segment, the sizes of the address blocks may be differentiated, that is, the size of the second address block is different from that of the first address block.
[0115] For example, taking the target network segment selection range of 192.168.0.0 / 16 as an example, if the first network segment corresponding to the first address block is 192.168.1.0 / 24, and the second network segment corresponding to the second address block is 192.168.0.0 / 20, the size of the second address block is larger than the size of the first address block.
[0116] Specifically, the switch control may include a first switch control and a second switch control. The first switch control can be used to increase the number of network addresses corresponding to each network segment and increase the size of the address block; the second switch control can be used to reduce the number of network addresses corresponding to each network segment and reduce the size of the address block.
[0117] See also Figure 2 and Figure 3 , which are respectively schematic diagrams 1 and 2 of a private network creation page provided in an embodiment of the present disclosure. Figure 2 1 , a plurality of network segment selection ranges 21, a first network segment selection control 22, a first switching control 23, and a second switching control 24 are displayed. A first address block 221 is displayed in the first network segment selection control 22. Figure 3 , multiple network segment selection ranges 21, a second network segment selection control 31, a first switching control 23, and a second switching control 24 are displayed. A second address block 311 is displayed in the second network segment selection control 31.
[0118] The triggering operations for selecting the target network segment range and switching the control may be click, touch, select, drag, double-click, and the like.
[0119] For example, when displaying the second network segment selection control, the first network segment selection control can be hidden and the second network segment selection control can be displayed. The second network segment selection control can then be used as the new first network segment selection control. In this way, the switch control can use the new first network segment selection control as the switch target, and when triggered, the new second network segment selection control can be displayed. When the user operates the second network segment selection control, the second network segment selection control can be used as the new first network segment selection control and respond to the user's operation.
[0120] In a possible implementation, in order to allow users to understand the detailed information of each first address block, network segment information can be configured for the first address block. The network segment information can indicate the first network segment corresponding to the first address block and / or the number of network addresses included in the first network segment. Figure 2 As shown, Figure 2 The network segment information 25 is also included.
[0121] Exemplarily, the above-mentioned detail viewing operation may be a cursor hovering operation, a clicking operation, etc.
[0122] For example, the network segment information may include: 192.168.1.0 / 24, which includes 256 IP addresses.
[0123] The network segment information can be displayed when a detail viewing operation of any first address block is detected. The displayed network segment information corresponds to the first address block on which the detail viewing operation is performed.
[0124] It is worth noting that the second address block may also be configured with corresponding network segment information. When the user performs a detailed view operation on the second address block, the network segment information corresponding to the second address block may be displayed.
[0125] S103: In response to a selection operation on at least one first address block, determine a target first network segment associated with the selected first address block.
[0126] In this step, the user can select one or more first address blocks based on the number of IP addresses required. When selecting a first address block, the first network segment corresponding to the first address block can be directly used as the target first network segment. When selecting multiple first address blocks, the first network segments corresponding to the selected address blocks can be merged and the merged network segment can be used as the target first network segment.
[0127] In a specific implementation process, if the currently displayed network segment selection control is the second network segment selection control, and the second address block in the second network segment selection control is selected, it can be determined that the network segment associated with the selected second address block is the target first network segment.
[0128] In one possible implementation, a selection indicator may be displayed in the network segment selection control. The selection indicator may be used to indicate a selected address block. The selection operation may be used to control the coverage area of the selection indicator in the first network segment selection control. The first address block selected is the first address block located in the coverage area, that is, the address block in the coverage area is the selected address block.
[0129] See also Figure 2 As shown, Figure 2 The device also includes a selection indicator 26. Both sides of the selection indicator 26 can be controlled by a selection operation to select the first address block within the coverage range. Figure 2 , the selected first address block includes the first address block 2211.
[0130] S104: Use the target first network segment as the network segment of the private network; the target first network segment is used to provide a network address for any service to be deployed in the private network.
[0131] In this step, the target first network segment may be used as the network segment of the private network. When the user needs to deploy a service in the private network, a network address may be selected from the target first network segment and provided to the service to be deployed.
[0132] The above-mentioned services to be deployed can be oriented towards public networks or private networks, and can be used to implement specific functions, such as login, storage, network card, gateway, etc.
[0133] Illustratively, after selecting the first address block, the user may perform a confirmation operation. After the confirmation operation is triggered, the terminal device may use the target first network segment corresponding to the first address block as the network segment of the private network.
[0134] To better manage and deploy services, you can create network partitions in a private network. Different network partitions can be isolated as needed. Alternatively, you can use network partitions to create a backup of a set of services so that the two sets of services are in different network partitions.
[0135] When creating a network partition, it is necessary to allocate a network segment for the network partition from the network segments of the private network. Therefore, when it is necessary to create a network partition, a third network segment selection control corresponding to the target first network segment may be displayed.
[0136] In the third network segment selection control, multiple sub-address blocks may be displayed. Similar to the first address block, each sub-address block corresponds to a sub-network segment obtained by dividing the target first network segment.
[0137] The above-mentioned sub-address blocks can also be selected. The user can perform a selection operation on at least one sub-address block, and the network segment associated with the selected sub-address block can be determined as the target sub-network segment.
[0138] After obtaining the target subnet segment, you can create a target network partition in the private network and use the target subnet segment as the network segment of the target network partition.
[0139] The target subnet segment can be used to provide a network address for any service to be deployed in the target network partition.
[0140] The third network segment selection control has similar functions to the first and second network segment selection controls, and is used to select a network segment. Therefore, the third network segment selection control may also be provided with corresponding switching controls, selection indicators, and network segment information.
[0141] For example, the third network segment selection control can also be affected by the corresponding switching control and switched to the fourth network segment selection control. Multiple sub-address blocks can be displayed in the fourth network segment selection control, and each sub-address block corresponds to a sub-network segment in the target first network segment; in the third network segment selection control, the number of network addresses corresponding to the sub-network segment corresponding to the sub-address block is different from the number of network addresses corresponding to the sub-network segment corresponding to the sub-address block in the fourth network segment selection control, and the size of the sub-address block is different.
[0142] When creating a network partition, there may already be existing network partitions. A network segment assigned to one network partition cannot be assigned to another. Therefore, there may be unassignable network segments within the target first network segment. In this case, the sub-address block display can be differentiated to identify whether a sub-address block can be assigned to the new network partition.
[0143] Specifically, the sub-address blocks can be classified based on the network segments corresponding to the existing network partitions in the private network; then, the display effect of each sub-address block can be determined according to the type of each sub-address block; and then, the third network segment selection control can be displayed based on the display effect of each sub-address block.
[0144] In this way, different display effects are used for different types of sub-address blocks, which can be visually distinguished. The type of sub-address block is determined based on the network segment of the existing network partition, which can indicate whether the address block can be allocated to a new network partition.
[0145] Exemplarily, the sub-address blocks may be classified by the following steps:
[0146] When all network segments of the subnet segment corresponding to the sub-address block overlap with the network segment corresponding to any network partition, determining that the type of the sub-address block is the first type;
[0147] When part of the subnet segment corresponding to the sub-address block overlaps with the network segment corresponding to any network partition, determining that the type of the sub-address block is the second type;
[0148] When there is no overlap between the sub-network segment corresponding to the sub-address block and the network segment corresponding to any network partition, the type of the sub-address block is determined to be the third type.
[0149] When displaying the third network segment selection control, prompt information corresponding to each type can also be displayed, and the prompt information can include type prompt information and display effect prompt information. For example, the display effect corresponding to a type can be used to display the prompt information of the type.
[0150] The third network segment selection control can be displayed on the network partition creation page. This page can be part of the private network creation page or a standalone page. When a user successfully identifies the target first network segment when accessing the private network creation page, the third network segment selection control can be displayed on the network partition creation page. Alternatively, when a user needs to create a network partition, they can directly access the network partition creation page to create the network partition.
[0151] See also Figure 4 , which is a schematic diagram of a network partition creation page provided in an embodiment of the present disclosure. Figure 4 A third network segment selection control 41 , a sub-address block 42 , a first switching control 43 , a second switching control 44 and prompt information 45 are displayed.
[0152] It is worth noting that in some possible implementations, when creating a private network, there may also be network segments occupied by other private networks in the target network segment selection range. Therefore, a method similar to the third network segment selection control can be used to use the network segments corresponding to the existing private networks to classify the address blocks in the first network segment selection control or the second network segment selection control, thereby adopting different display effects for different types of address blocks.
[0153] After creating a private network, users can access its details page to learn about it or its usage. Users can enter a trigger action for the private network details page. Upon detecting the trigger action, the terminal device displays the private network details page.
[0154] Specifically, the private network details page may display a network segment distribution control corresponding to the private network, wherein the network segment distribution control may display multiple sub-address blocks, each sub-address block corresponding to a sub-network segment obtained by dividing the target first network segment of the private network.
[0155] In one possible implementation, the method for dividing the target first network segment in the network segment selection control can be used to obtain multiple sub-network segments, and each of them can be used as the sub-network segment corresponding to each sub-address block in the network segment distribution control. In actual application scenarios, different types of sub-address blocks in the above-mentioned network segment distribution control can adopt different display effects. For example, the method for classifying sub-address blocks in the network segment selection control can be used to classify the sub-address blocks in the network segment distribution control, and the sub-address blocks can be displayed using a display effect that matches the type. The type of sub-address block can be, for example, an available network segment, an unavailable network segment, and an allocated network segment.
[0156] Furthermore, the network segment distribution control can also deploy corresponding switching controls to control the size of the sub-address block in the network segment distribution control and the number of network addresses of the corresponding sub-network segment.
[0157] See also Figure 5 , which is a schematic diagram of a details page of a private network provided by an embodiment of the present disclosure. Figure 5 The control includes a network segment distribution control 51, a sub-address block 52 in the network segment distribution control, a first switching control 53, a second switching control 54, and type prompt information 55.
[0158] In one possible implementation, the target first network segment can be divided according to the network segments of each network partition to obtain multiple sub-address blocks. For example, a sub-address block in the network segment distribution control can correspond to a network segment of a network partition, and a continuous network segment not assigned to a network partition can correspond to a separate sub-address block.
[0159] The sub-address blocks in the above-mentioned network segment distribution control may also be provided with corresponding network segment information. Users may view details of the sub-address blocks in the network segment distribution control, and the terminal device may display the network segment information corresponding to the address block.
[0160] The above network segment information may indicate not only the network segment and the number of network addresses, but also the name of the network partition corresponding to the network segment.
[0161] The network creation method in the cloud service provided by the embodiment of the present disclosure can provide multiple optional network segment selection ranges when the user creates a private network in the cloud service, and display the first network segment selection control of the triggered target network segment selection range. The user only needs to select the first address block in the first network segment selection control to use the target first network segment corresponding to the first address block as the network segment of the private network, thereby completing the creation of the private network. The creation method is simple and efficient.
[0162] Those skilled in the art will understand that in the above-mentioned method of the specific implementation method, the writing order of each step does not mean a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.
[0163] Based on the same inventive concept, the embodiments of the present disclosure also provide a network creation device in the cloud service corresponding to the network creation method in the cloud service. Since the principle of solving the problem by the device in the embodiments of the present disclosure is similar to the network creation method in the cloud service in the above-mentioned embodiments of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0164] Reference Figure 6 FIG. 1 is a schematic diagram of a network creation device in a cloud service provided by an embodiment of the present disclosure, wherein the device includes:
[0165] A first display module 610 is configured to display a private network creation page in response to a private network creation request; the private network creation page indicates multiple network segment selection ranges;
[0166] A second display module 620 is configured to display a first network segment selection control corresponding to the target network segment selection range in response to a trigger operation on the target network segment selection range; the first network segment selection control displays a plurality of first address blocks, each of the first address blocks corresponding to a first network segment in the target network segment selection range;
[0167] A selection module 630 is configured to, in response to a selection operation on at least one first address block, determine a target first network segment associated with the selected first address block;
[0168] The input module 640 is configured to use the target first network segment as the network segment of the private network; the target first network segment is used to provide a network address for any service to be deployed in the private network.
[0169] In an optional implementation, a switching control is also displayed in the private network creation page;
[0170] The second display module 620 is further configured to:
[0171] In response to a triggering operation on the switching control, a second network segment selection control corresponding to the target network segment selection range is displayed; the second network segment selection control displays a plurality of second address blocks, each second address block corresponding to a second network segment in the target network segment selection range;
[0172] The number of network addresses corresponding to the second network segment is different from the number of network addresses corresponding to the first network segment, and the size of the second address block is different from the size of the first address block.
[0173] In an optional implementation, the switch control includes a first switch control and a second switch control;
[0174] The first switching control is used to increase the number of network addresses corresponding to each network segment and increase the size of the address block; the second switching control is used to reduce the number of network addresses corresponding to each network segment and reduce the size of the address block.
[0175] In an optional embodiment, the device further includes a third display module, configured to:
[0176] Displaying a third network segment selection control corresponding to the target first network segment, wherein the third network segment selection control displays multiple sub-address blocks; each sub-address block corresponds to a sub-network segment obtained by dividing the target first network segment;
[0177] In response to a selection operation on at least one sub-address block, determining a target subnet segment associated with the selected sub-address block;
[0178] Creating a target network partition in the private network, and using the target subnet segment as a network segment of the target network partition;
[0179] The target subnet segment is used to provide a network address for any service to be deployed in the target network partition.
[0180] In an optional implementation, when displaying the third network segment selection control corresponding to the target first network segment, the third display module is configured to:
[0181] Classifying each of the sub-address blocks based on the network segments corresponding to each network partition in the private network;
[0182] Determining the display effect of each sub-address block according to the type of each sub-address block;
[0183] The third network segment selection control is displayed according to the display effects of the respective sub-address blocks.
[0184] In an optional embodiment, when the third display module classifies each of the sub-address blocks based on the network segments corresponding to each network partition in the private network, it is configured to:
[0185] When all network segments of the subnet segment corresponding to the sub-address block overlap with the network segment corresponding to any network partition, determining that the type of the sub-address block is the first type;
[0186] When part of the network segment of the sub-network segment corresponding to the sub-address block overlaps with the network segment corresponding to any network partition, determining that the type of the sub-address block is the second type;
[0187] In a case where there is no overlap between the sub-network segment corresponding to the sub-address block and the network segment corresponding to any network partition, it is determined that the type of the sub-address block is the third type.
[0188] In an optional embodiment, the device further includes a fourth display module, configured to:
[0189] In response to a detail viewing operation for any of the first address blocks, the network segment information corresponding to the first address block is displayed; the network segment information indicates a first network segment corresponding to the first address block, and / or the number of network addresses contained in the first network segment.
[0190] In an optional implementation, a selection indicator is further displayed in the first network segment selection control;
[0191] The selection operation is used to control the coverage area of the selection indicator in the first network segment selection control; the selected first address block is the first address block located in the coverage area.
[0192] In an optional embodiment, the device further includes a fifth display module, configured to:
[0193] In response to a triggering operation on the details page of the private network, the details page of the private network is displayed; the details page displays a network segment distribution control corresponding to the private network; the network segment distribution control displays multiple sub-address blocks; each sub-address block corresponds to a sub-network segment obtained by dividing the target first network segment; the display effect of the sub-network segment is determined based on the type of the sub-address block.
[0194] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference can be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.
[0195] The present disclosure also provides a computer device, such as Figure 7 FIG. 1 is a schematic diagram of a computer device structure provided by an embodiment of the present disclosure, including:
[0196] Processor 71 and memory 72; the memory 72 stores machine-readable instructions executable by the processor 71, and the processor 71 is configured to execute the machine-readable instructions stored in the memory 72. When the machine-readable instructions are executed by the processor 71, the processor 71 performs the following steps:
[0197] In response to a request to create a private network, display a private network creation page; the private network creation page indicates multiple network segment selection ranges;
[0198] In response to a trigger operation on a target network segment selection range, displaying a first network segment selection control corresponding to the target network segment selection range; the first network segment selection control displays a plurality of first address blocks, each of the first address blocks corresponding to a first network segment in the target network segment selection range;
[0199] In response to a selection operation on at least one first address block, determining a target first network segment associated with the selected first address block;
[0200] The target first network segment is used as the network segment of the private network; the target first network segment is used to provide a network address for any service to be deployed in the private network.
[0201] The above-mentioned memory 72 includes internal memory 721 and external memory 722; the memory 721 here is also called internal memory, which is used to temporarily store the calculation data in the processor 71 and the data exchanged with the external memory 722 such as the hard disk. The processor 71 exchanges data with the external memory 722 through the internal memory 721.
[0202] The specific execution process of the above instructions can refer to the steps of the network creation method in the cloud service described in the embodiment of the present disclosure, which will not be repeated here.
[0203] The present disclosure also provides a computer-readable storage medium having a computer program stored thereon. When executed by a processor, the computer program executes the steps of the cloud service network creation method described in the above method embodiment. The storage medium may be a volatile or non-volatile computer-readable storage medium.
[0204] The embodiments of the present disclosure also provide a computer program product, which carries program code. The instructions included in the program code can be used to execute the steps of the network creation method in the cloud service described in the above method embodiment. For details, please refer to the above method embodiment and will not be repeated here.
[0205] The computer program product may be implemented in hardware, software, or a combination thereof. In one embodiment, the computer program product is implemented as a computer storage medium. In another embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).
[0206] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems and devices described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0207] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0208] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0209] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0210] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The scope of protection of the present disclosure is not limited thereto. Although the present disclosure has been described in detail with reference to the above-described embodiments, those skilled in the art should understand that any person skilled in the art can modify or easily conceive of changes to the technical solutions described in the above-described embodiments within the technical scope disclosed in the present disclosure, or replace some of the technical features therein with equivalents. Such modifications, changes, or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the scope of protection of the present disclosure. Therefore, the scope of protection of the present disclosure shall be subject to the scope of protection of the claims.
Claims
1. A network creation method in a cloud service, characterized in that: include: In response to a request to create a private network, display a private network creation page; The private network creation page indicates that there are multiple network segment selection ranges; In response to a triggering operation on a target network segment selection range, displaying a first network segment selection control corresponding to the target network segment selection range; The first network segment selection control displays a plurality of first address blocks, each of the first address blocks corresponding to a first network segment in the target network segment selection range; In response to a selection operation on at least one first address block, determining a target first network segment associated with the selected first address block; The target first network segment is used as the network segment of the private network; the target first network segment is used to provide a network address for any service to be deployed in the private network, The private network creation page also displays a switching control, and the method further includes: In response to the triggering operation of the switching control, a second network segment selection control corresponding to the target network segment selection range is displayed; multiple second address blocks are displayed in the second network segment selection control, and each second address block corresponds to a second network segment in the target network segment selection range; wherein the number of network addresses corresponding to the second network segment is different from the number of network addresses corresponding to the first network segment, and the size of the second address block is different from the size of the first address block.
2. The method according to claim 1, characterized in that The switching control includes a first switching control and a second switching control; The first switching control is used to increase the number of network addresses corresponding to each network segment and increase the size of the address block; the second switching control is used to reduce the number of network addresses corresponding to each network segment and reduce the size of the address block.
3. The method according to claim 1 or 2, characterized in that In response to a selection operation on at least one first address block, after determining a target first network segment associated with the selected first address block, the method further includes: Displaying a third network segment selection control corresponding to the target first network segment, wherein the third network segment selection control displays multiple sub-address blocks; each sub-address block corresponds to a sub-network segment obtained by dividing the target first network segment; In response to a selection operation on at least one sub-address block, determining a target subnet segment associated with the selected sub-address block; Creating a target network partition in the private network, and using the target subnet segment as a network segment of the target network partition; The target subnet segment is used to provide a network address for any service to be deployed in the target network partition.
4. The method according to claim 3, characterized in that The displaying of the third network segment selection control corresponding to the target first network segment includes: Classifying each of the sub-address blocks based on the network segments corresponding to each network partition in the private network; Determining the display effect of each sub-address block according to the type of each sub-address block; The third network segment selection control is displayed according to the display effects of the respective sub-address blocks.
5. The method according to claim 4, characterized in that The classifying each of the sub-address blocks based on the network segments corresponding to each network partition in the private network includes: When all network segments of the subnet segment corresponding to the sub-address block overlap with the network segment corresponding to any network partition, determining that the type of the sub-address block is the first type; When part of the network segment of the sub-network segment corresponding to the sub-address block overlaps with the network segment corresponding to any network partition, determining that the type of the sub-address block is the second type; In a case where there is no overlap between the sub-network segment corresponding to the sub-address block and the network segment corresponding to any network partition, it is determined that the type of the sub-address block is the third type.
6. The method according to claim 1, characterized in that The method further comprises: In response to a detail viewing operation for any of the first address blocks, the network segment information corresponding to the first address block is displayed; the network segment information indicates a first network segment corresponding to the first address block, and / or the number of network addresses contained in the first network segment.
7. The method according to claim 1, characterized in that A selection indicator is also displayed in the first network segment selection control; The selection operation is used to control the coverage area of the selection indicator in the first network segment selection control; the selected first address block is the first address block located in the coverage area.
8. The method according to claim 1, characterized in that After using the target first network segment as the network segment of the private network, the method further includes: In response to a triggering operation on the details page of the private network, the details page of the private network is displayed; the details page displays a network segment distribution control corresponding to the private network; the network segment distribution control displays multiple sub-address blocks; each sub-address block corresponds to a sub-network segment obtained by dividing the target first network segment; the display effect of the sub-network segment is determined based on the type of the sub-address block.
9. A network creation device in a cloud service, characterized in that: include: A first display module, configured to display a private network creation page in response to a private network creation request; The private network creation page indicates that there are multiple network segment selection ranges; A second display module is configured to display a first network segment selection control corresponding to the target network segment selection range in response to a trigger operation on the target network segment selection range; The first network segment selection control displays a plurality of first address blocks, each of the first address blocks corresponding to a first network segment in the target network segment selection range; a selection module, configured to, in response to a selection operation on at least one first address block, determine a target first network segment associated with the selected first address block; An input module is used to use the target first network segment as the network segment of the private network; the target first network segment is used to provide a network address for any service to be deployed in the private network, The private network creation page also displays a switching control, and the device further includes: A third display module is used to display a second network segment selection control corresponding to the target network segment selection range in response to a trigger operation on the switching control; a plurality of second address blocks are displayed in the second network segment selection control, and each second address block corresponds to a second network segment in the target network segment selection range; wherein the number of network addresses corresponding to the second network segment is different from the number of network addresses corresponding to the first network segment, and the size of the second address block is different from the size of the first address block.
10. A computer device, characterized in that: include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and the processor is configured to execute the machine-readable instructions stored in the memory. When the machine-readable instructions are executed by the processor, the processor executes the steps of the network creation method in the cloud service according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program. When the computer program is executed by a computer device, the computer device executes the steps of the network creation method in the cloud service according to any one of claims 1 to 8.
Citation Information
Patent Citations
Virtual private cloud network address allocation method and device, electronic equipment and medium
CN114500462A