Target network segment division method and device, electronic equipment and storage medium
By automatically identifying and dividing target network segments, and using preset application bit division logic, the problem of low efficiency of artificial network segments in the existing technology is solved, and efficient network resource allocation and adjustment is achieved.
Patent Information
- Application Number
- CN202510219736.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-26
- Publication Date
- 2025-05-30
AI Technical Summary
In the prior art, the method of artificially dividing network segments is relatively low, and it is difficult to respond in a large-scale or high-speed changing network environment, resulting in low efficiency in network resource allocation and adjustment.
A method of dividing a target network segment is provided. By receiving a network segment division request from the user, the network segment parameter information is analyzed, including location area information, network area information, subnet type and subnet mask, the target network segment to be divided, and the preset application bit division logic is called to divide the target network segment to obtain the target subnet segment set.
It realizes automatic identification and division of target network segments, improves the efficiency of subnet segment segment division, solves the problem of low manual division efficiency, and can respond quickly in large-scale or high-speed changing network environments.
Smart Images

Figure CN120075133A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of cloud computing or other related technical fields. Specifically, it relates to a method and apparatus for dividing a target network segment, an electronic device, and a storage medium. Background Art
[0002] In the current era of digital transformation, cloud network infrastructure, as the cornerstone of the business development of enterprise-level users, has become increasingly important. With the wide popularization and deep integration of cloud services, the refined management and agile configuration of network resources have become the core to ensure the continuity and competitiveness of cloud services. In the network area operated by cloud service providers, building an efficient and secure virtual private cloud environment is a key step to achieve resource isolation, performance optimization, and business expansion. An important part of the network area involves the scientific division and precise configuration of subnet network segments, which not only determines the network architecture layout but also directly affects the utilization efficiency of network resources and the operation quality of services.
[0003] In related technologies, traditional network resource management methods, especially in the link of subnet division and configuration, face significant technical bottlenecks and management challenges. The method of manually dividing the target network segment to obtain reasonable subnet network segments is not only cumbersome and time-consuming but also difficult to respond in a timely manner when dealing with large-scale or rapidly changing network environments, resulting in low efficiency in the allocation and adjustment of network resources.
[0004] In view of the above problems, no effective solution has been proposed yet. Summary of the Invention
[0005] Embodiments of the present invention provide a method and apparatus for dividing a target network segment, an electronic device, and a storage medium, so as to at least solve the technical problem of low efficiency in the related technology of manually dividing subnet network segments.
[0006] According to one aspect of the embodiments of the present invention, a method for dividing a target network segment is provided, including: receiving a network segment division request from a user terminal, and parsing the network segment division request to obtain network segment parameter information, where the network segment parameter information at least includes: location area information, network area information, subnet type, and subnet mask, and the location area information is used to indicate the location area to which a target object with a network segment division requirement belongs; determining a target network segment to be divided based on the network segment parameter information; invoking a preset application bit division logic, and dividing the target network segment based on the subnet mask and the application bit division logic to obtain a set of target subnetwork segments, where the application bit division logic is a preset rule for network segment division; and returning the set of target subnetwork segments to the user interface of the user terminal.
[0007] Optionally, the step of dividing the target network segment based on the subnet mask and the application bit division logic to obtain a set of target sub-network segments includes: performing a first division on the target network segment according to the subnet mask to obtain N initial sub-network segments, where N is a positive integer greater than 1; performing a second division on the N initial sub-network segments based on the application bit division logic to obtain the set of target sub-network segments.
[0008] Optionally, the step of performing a second division on the N initial sub-network segments based on the application bit division logic includes: determining a target application bit to be divided based on the application bit division logic, and obtaining a target value of the target application bit specified by the application bit division logic; for each of the initial sub-network segments, performing a second division on the initial sub-network segment based on the target value of the target application bit specified by the application bit division logic to obtain M target sub-network segments, where M is a positive integer and M is greater than N.
[0009] Optionally, after obtaining the set of target sub-network segments, it further includes: invoking a cloud platform access interface based on a network management tool, and obtaining status data of the target network segment through the cloud platform access interface; identifying a set of sub-network segments that have been issued in the target network segment based on the status data; matching the set of target sub-network segments with the set of sub-network segments that have been issued to obtain a matching result, and in the case where the matching result indicates that any sub-network segment in the set of sub-network segments that have been issued exists in the set of target sub-network segments, removing the sub-network segment from the set of target sub-network segments.
[0010] Optionally, after returning the set of target sub-network segments to the user interface of the client, it further includes: receiving K target sub-network segments to be issued selected by the client, where K is a positive integer and K is less than or equal to M; obtaining an application identifier, a server type, and the network area information based on the network segment division request, and configuring identification information for each of the target sub-network segments based on the application identifier, the server type, and the network area information; invoking a cloud platform sub-network issuing interface based on a network management tool, transmitting the target sub-network segments and the identification information of the target sub-network segments to the cloud platform, and generating an issuing script for each of the target sub-network segments through the cloud platform, where the issuing script is used to configure network addresses in the target sub-network segments for network resources.
[0011] Optionally, before receiving a network segment division request from the client, it further includes: establishing a mapping relationship between the network area and the network segment when creating a new network area for a target object; collecting network area information of the network area, and saving the network area information and the mapping relationship between the network area and the network segment to a database.
[0012] Optionally, before receiving the network segment division request from the user terminal, it further includes: determining a target application bit for network segment division based on user requirements, and defining the binary code value of the target application bit to be divided; determining the target value of the target application bit to be divided based on the binary code value; creating the application bit division logic based on the target application bit and the target value of the target application bit, and storing the application bit division logic in the database.
[0013] According to another aspect of the embodiments of the present invention, there is also provided a device for dividing a target network segment, including: an acquisition unit, configured to receive a network segment division request from a user terminal, parse the network segment division request, and obtain network segment parameter information, where the network segment parameter information at least includes: location area information, network area information, subnet type, subnet mask, and the location area information is used to indicate the location area to which a target object with a network segment division requirement belongs; a determination unit, configured to determine a target network segment to be divided based on the network segment parameter information; a division unit, configured to call a preset application bit division logic, and divide the target network segment based on the subnet mask and the application bit division logic to obtain a set of target sub-network segments, where the application bit division logic is a preset rule for network segment division; a return unit, configured to return the set of target sub-network segments to the user interface of the user terminal.
[0014] Optionally, the division unit includes: a first division module, configured to perform a first division on the target network segment according to the subnet mask to obtain N initial sub-network segments, where N is a positive integer greater than 1; a second division module, configured to perform a second division on the N initial sub-network segments based on the application bit division logic to obtain the set of target sub-network segments.
[0015] Optionally, the second division module includes: a first acquisition sub-module, configured to determine a target application bit to be divided based on the application bit division logic, and obtain the target value of the target application bit specified by the application bit division logic; a first division sub-module, configured to, for each of the initial sub-network segments, perform a second division on the initial sub-network segment based on the target value of the target application bit specified by the application bit division logic to obtain M target sub-network segments, where M is a positive integer and M is greater than N.
[0016] Optionally, the target network segment partitioning device further includes: a first acquisition module, configured to call a cloud platform access interface based on a network management tool, and acquire status data of the target network segment through the cloud platform access interface; a first identification module, configured to identify a set of sub-network segments that have been issued in the target network segment based on the status data; a first matching module, configured to match the target sub-network segment set with the set of sub-network segments that have been issued to obtain a matching result, and in the case where the matching result indicates that any sub-network segment in the set of sub-network segments that have been issued exists in the target sub-network segment set, remove the sub-network segment from the target sub-network segment set.
[0017] Optionally, the target network segment partitioning device further includes: a first receiving module, configured to receive K target sub-network segments to be issued selected by the user terminal, where K is a positive integer and K is less than or equal to M; a first configuration module, configured to acquire an application identifier, a server type, and the network area information based on the network segment partitioning request, and configure identification information for each of the target sub-network segments based on the application identifier, the server type, and the network area information; a first generation module, configured to call a cloud platform sub-network segment issuing interface based on a network management tool, transmit the target sub-network segments and the identification information of the target sub-network segments to the cloud platform, and generate an issuing script for each of the target sub-network segments through the cloud platform, where the issuing script is used to configure network addresses in the target sub-network segments for network resources.
[0018] Optionally, the target network segment partitioning device further includes: a first establishment module, configured to establish a mapping relationship between the network area and the network segment when creating a new network area for a target object; a first storage module, configured to collect network area information of the network area, and store the network area information and the mapping relationship between the network area and the network segment in a database.
[0019] Optionally, the target network segment partitioning device further includes: a first determination module, configured to determine a target application bit for network segment partitioning based on user requirements and define a binary code value of the target application bit to be partitioned; a second determination module, configured to determine a target value of the target application bit to be partitioned based on the binary code value; a first creation module, configured to create an application bit partitioning logic based on the target application bit and the target value of the target application bit, and store the application bit partitioning logic in a database.
[0020] According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, and when the computer program runs, it controls a device where the computer-readable storage medium is located to execute any one of the above-mentioned target network segment partitioning methods.
[0021] According to another aspect of the embodiments of the present invention, an electronic device is further provided, including one or more processors and a memory for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the method for dividing any one of the above target network segments.
[0022] In the present application, through the following steps: receiving a network segment division request from a client, parsing the network segment division request to obtain network segment parameter information, where the network segment parameter information at least includes: location area information, network area information, subnet type, subnet mask, the location area information is used to indicate the location area to which the target object with the network segment division requirement belongs, and determining the target network segment to be divided based on the network segment parameter information, then calling a preset application bit division logic to divide the target network segment based on the subnet mask and the application bit division logic to obtain a set of target sub-network segments, where the application bit division logic is a preset rule for network segment division, and finally returning the set of target sub-network segments to the user interface of the client.
[0023] In the present application, based on the network segment division request of the client, the target network segment to be divided is automatically identified, and the target network segment is divided according to the subnet mask selected by the client and the preset application bit division logic to obtain a set of target sub-network segments that meet the user's requirements, achieving the purpose of automatically dividing the target network segment and reasonably allocating network resources, obtaining the technical effect of improving the efficiency of sub-network segment division, and further solving the technical problem of low efficiency in the related art by manually dividing sub-network segments. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The illustrative embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0025] Figure 1 A hardware structure block diagram of a computer terminal (or mobile device) for implementing the method for dividing a target network segment is shown;
[0026] Figure 2 is a flowchart of an optional method for dividing a target network segment according to an embodiment of the present invention;
[0027] Figure 3 is a schematic diagram of an optional process for dividing a target network segment according to an embodiment of the present invention;
[0028] Figure 4 is a schematic diagram of an optional process for automatically generating a sub-network segment according to an embodiment of the present invention;
[0029] Figure 5Schematic diagram of an optional target network segment partitioning device according to an embodiment of the present invention;
[0030] Figure 6 Hardware structure block diagram of an electronic device (or mobile device) for executing an optional target network segment partitioning method according to an embodiment of the present invention. Detailed implementation manners
[0031] In order to enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to describe a specific order or sequence. It should be understood that such used data can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order different from those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units does not necessarily need to be limited to those clearly listed steps or units, but may include other steps or units not clearly listed or inherent to these process, method, product or device.
[0033] To facilitate the understanding of the present invention by those skilled in the art, some terms or nouns involved in the embodiments of the present invention are explained below:
[0034] Virtual Private Cloud, abbreviated as VPC, is an isolated network space created in a public cloud environment.
[0035] It should be noted that the target network segment partitioning method and its device in the present application can be used in the case of automatic partitioning of network segments in the field of cloud computing technology, and can also be used in any field other than the field of cloud computing technology in the case of automatic partitioning of network segments. The application field of the target network segment partitioning method and its device in the present application is not limited.
[0036] It should be noted that the information collected in this application (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) are information and data authorized by the user or fully authorized by all parties. Moreover, for the processing of relevant data such as collection, storage, use, processing, transmission, provision, disclosure, and application, all comply with relevant laws, regulations, and standards, adopt necessary confidentiality measures, do not violate public order and good customs, and provide corresponding operation entrances for users to choose to authorize or refuse. For example, there are interfaces set between this system and relevant users or institutions to provide corresponding operation entrances for users to choose to agree or refuse the results of automated decision-making; if the user chooses to refuse, the expert decision-making process will be entered.
[0037] The following embodiments of the present invention can be applied to various target network segment division systems / applications / devices. The present invention identifies the target network segment to be divided according to the user's network segment division request, and accurately divides the target network segment according to the subnet mask selected by the user and the preset application bit logic. It has a high concurrency and can be batch-processed. Through automated subnet network segment division, the efficiency of subnet division is improved.
[0038] The present invention will be described in detail below in conjunction with each embodiment.
[0039] Embodiment 1
[0040] According to an embodiment of the present invention, an embodiment of a method for dividing a target network segment is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. And although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.
[0041] The method embodiment provided by the first embodiment of this application can be executed on a mobile terminal, a computer terminal, or a similar computing device. Figure 1 The hardware structure block diagram of a computer terminal (or mobile device) for implementing the method for dividing a target network segment is shown. As Figure 1 shown, the computer terminal 10 (or mobile device) may include one or more (shown as 102a, 102b,..., 102n in the figure) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may further include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which can be included as one of the ports of the BUS bus), a network interface, a power supply, and / or a camera. Those of ordinary skill in the art can understand, Figure 1The structure shown is only illustrative and does not limit the structure of the above-mentioned electronic device. For example, the computer terminal 10 may also include more or fewer components than those shown in Figure 1 or have a different configuration from that shown in Figure 1 .
[0042] It should be noted that one or more of the above-mentioned processors 102 and / or other data processing circuits can generally be referred to as "data processing circuits" herein. The data processing circuit can be embodied in software, hardware, firmware, or any combination thereof, in whole or in part. In addition, the data processing circuit can be a single independent processing module, or be incorporated in whole or in part into any one of the other elements in the computer terminal 10 (or mobile device). As involved in the embodiments of the present application, the data processing circuit is a kind of processor control (such as the selection of a variable resistor terminal path connected to an interface).
[0043] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage devices corresponding to the method for dividing target network segments in the embodiments of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, implements the above-mentioned method for dividing target network segments. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some instances, the memory 104 may further include a memory remotely disposed relative to the processor 102, and these remote memories can be connected to the computer terminal 10 through a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.
[0044] The transmission device 106 is used to receive or send data via a network. Specific examples of the above-mentioned network may include the wireless network provided by the communication provider of the computer terminal 10. In one instance, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station and thus communicate with the Internet. In one instance, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0045] The display can be, for example, a touch-screen liquid crystal display (LCD), which enables a user to interact with the user interface of the computer terminal 10 (or mobile device).
[0046] Under the above operating environment, the present application provides as Figure 2The method for dividing the target network segment shown, the implementation entity of this method is the target network segment division system, and the automatic division of the network segment is realized through the target network segment division system.
[0047] Figure 2 It is a flowchart of an optional method for dividing the target network segment according to an embodiment of the present invention. As Figure 2 shown, this method includes the following steps:
[0048] Step S201, receive the network segment division request from the user side, and parse the network segment division request to obtain network segment parameter information.
[0049] It should be noted that the above user side can be a department within an enterprise or organization that uses cloud network resources or the terminal of an individual user. When an enterprise or organizational user purchases network services from a cloud service provider, the cloud service provider will allocate a part of its IP address resources to the user according to the user's business scale, network requirements, and existing resource allocation policies. For example, a Class B network segment 198.166.0.0 / 16 is allocated. This network segment becomes the basis for the enterprise or organizational user to build a virtual network in the cloud environment. Then, the enterprise user can further divide this Class B network segment into multiple smaller sub-network segments, such as / 24 or smaller network segments, according to the needs of its own business, using the network management tools or API interfaces provided by the cloud platform. This division can be based on different applications, services, or security policies to achieve more efficient utilization of network resources and better isolation. For example, an enterprise user may have multiple different business systems or development environments, and each system or environment may require independent network resources. In this case, the user will divide multiple / 24 subnets from the allocated 198.166.0.0 / 16 network segment, such as 198.166.1.0 / 24, 198.166.2.0 / 24, etc., to meet the network requirements of each business system or environment.
[0050] In a large-scale network or cloud environment, in order to ensure network resource isolation among different departments, different services, or different users and improve data security, it is necessary to create independent network spaces through subnet division. For example, the finance department may require a network environment independent of other departments to protect sensitive data. When there is a subnet division requirement from a user, the user submits a network segment division request at the client side. After the system receives the network segment division request, it automatically parses the request to obtain network segment parameter information, which may include: location area information, network area information, subnet type, and subnet mask. The location area information is used to indicate the location area to which the target object with the network segment division requirement belongs. Since cloud service providers usually build independent network infrastructures and data centers in different geographical location areas, each data center will have its own private IP address segment, and these address segments are unique in the global network of the cloud service provider to avoid IP address conflicts. When a user registers for cloud services in a specific area (such as Shanghai or Beijing), they will obtain an allocable network address segment from the network resource pool allocated by the data center in that location area. Therefore, the specific network area can be located through the location area information; the network area information refers to the resource domain network area of the cloud service provider, which contains multiple network IP addresses; the subnet type is divided according to its use, such as virtual machine subnet, bare metal server subnet, etc.; the subnet mask is used to determine the range of the subnet and the number of binary digits of the network address.
[0051] Optionally, before receiving the network segment division request from the client side, it further includes: when creating a new network area for the target object, establishing a mapping relationship between the network area and the network segment; collecting the network area information of the network area, and saving the network area information and the mapping relationship between the network area and the network segment to the database.
[0052] It should be noted that after the user registers with the cloud service provider and obtains cloud service resources, the cloud service provider will create a new network area for the user's target object (such as a data center, business unit, or specific application). When creating the new network area, the following steps are executed to ensure that subsequent network segment division requests can be effectively processed: Step 1, the system will synchronize information such as the newly created network area to the internal management subsystem of the user and establish a mapping relationship between the network area and the network segment. For example, for the network area of the target object in the Shanghai park, the cloud service provider may initially allocate 192.168.0.0 / 16 as the available IP address segment for the target object. The establishment of the mapping relationship ensures that each network area has sufficient and unique address space and also provides a basis for subsequent subnet division; Step 2, collect network area information of the network area. The system further collects detailed information related to the network area, including but not limited to the name of the network area, the network segment corresponding to the network area, the network scale, VPC, VPCid, etc.; Step 3, save the network area information and the mapping relationship to the database. The collected network area information and the established mapping relationship will be saved to the database to form a centralized data storage. The information stored in the database includes but not limited to the network area name, the corresponding address segment, the network scale, VPC, VPCid, etc., providing comprehensive background information for subsequent network segment division requests.
[0053] Through the above steps, before receiving the network segment division request from the user side, by pre-saving the network area information and the mapping relationship, when the system receives the user request, it can quickly locate the relevant network area and available address segment, reducing the intervention of manual intervention in subnet division.
[0054] Optionally, before receiving the network segment division request from the user side, it further includes: determining the target application bit for network segment division based on the user's needs and defining the binary code value of the target application bit to be divided; determining the target value of the target application bit to be divided based on the binary code value; creating an application bit division logic based on the target application bit and the target value of the target application bit and storing the application bit division logic in the database.
[0055] It should be noted that before receiving the network segment division request from the user side, a preset application bit division logic is configured. The application bit division logic is a preset rule for network segment division, which is used for subsequent automatic and accurate division of subnet network segments to improve the efficiency of subnet division. The target application bit refers to the position in the IP address used for specific applications or functions. In the embodiments of the present invention, in order to ensure that the divided is a network segment rather than a single IP address, the third bit of the IP address is used as the target application bit to be divided, and the target subnet network segment is automatically divided by defining the target value of the target application bit. In a small segment of the IP address, there are eight binary digits. Some combinations (with values of 1) in the combination of the last 4 digits can be defined as the application bit division logic. For example, taking the third bit of the IP address as the target application bit, and setting the IP addresses with the last four binary digits of the target application bit being 0011 and 0111 as the application bit division logic. Then for a target network segment 192.168.0.0 / 16, that is, the address ranges with the values of the target application bit being 3 and 7 are selected as the subnet network segments required by the user, that is, 192.168.3.0 / 24 and 192.168.7.0 / 24 will be divided out as the target subnet network segments.
[0056] Step S202, determine the target network segment to be divided based on the network segment parameter information.
[0057] It should be noted that after receiving the network segment division request from the user side and obtaining the network segment parameter information, the specific network segment to be divided can be located according to the information in the parameter information, so as to achieve automatic selection of the target network segment and provide a basis for subsequent division of the subnet network segment.
[0058] Step S203, call the preset application bit division logic, and divide the target network segment based on the subnet mask and the application bit division logic to obtain a set of target subnetwork segments.
[0059] It should be noted that after determining the target network segment to be divided, the system can automatically call the preset application bit division logic, and perform two fine divisions on the target network segment according to the subnet mask and the application bit division logic selected by the user side, so as to obtain a set of target subnetwork segments that meet the user's needs. The set of target subnetwork segments contains multiple available target subnetwork segments, and the user can also screen according to their own needs in the future.
[0060] Optionally, the step of dividing the target network segment based on the subnet mask and the application bit division logic to obtain a set of target subnetwork segments includes: performing a first division on the target network segment according to the subnet mask to obtain N initial subnetwork segments, where N is a positive integer greater than 1; performing a second division on the N initial subnetwork segments based on the application bit division logic to obtain a set of target subnetwork segments.
[0061] It should be noted that when dividing the target network segment, it specifically includes the first division through the subnet mask and the second division through the application bit division logic. The subnet mask can be obtained based on user specification. Through the subnet mask (such as / 24, / 25, etc.), the given target network segment (such as the B-class network segment 192.168.0.0 / 16) can be initially divided, so as to divide the target network segment into N initial sub-network segments. N is a positive integer greater than 1, and the specific value depends on the size of the subnet mask. For example, if the mask is / 24, then a B-class network segment will be divided into 256 initial C-class sub-network segments. Thus, the entire network segment is divided into multiple options of different address space sizes to meet the specific requirements of different applications or services for network resources. By using the subnet mask, the system can automatically calculate the address range of each sub-network after division to ensure that the size of each sub-network meets the user's needs. After the first division is completed and N initial sub-network segments are obtained, the system will further call the preset application bit division logic to perform a second division on these initial sub-network segments, so as to perform a more refined sub-network division.
[0062] Optionally, the steps of performing a second division on the N initial sub-network segments based on the application bit division logic include: determining the target application bit to be divided based on the application bit division logic, and obtaining the target value of the target application bit specified by the application bit division logic; for each initial sub-network segment, performing a second division on the initial sub-network segment based on the target value of the target application bit specified by the application bit division logic to obtain M target sub-network segments, where M is a positive integer and M is greater than N.
[0063] It should be noted that when performing a refined division on the initial sub-network segments through the application bit division logic, first determine the target application bit to be divided, such as the third application bit or the fourth application bit of the IP address. Through the target value of the target application bit, select the network segments whose target application bit values meet the target value from the initial sub-network segments, so as to obtain M target sub-network segments. The value of M is greater than the value of N. For example, for an initial sub-network segment of 192.168.1.0 - 192.168.1.255, through the specific application bit division logic, 192.168.1.0 - 192.168.1.17 and 192.168.1.25 - 192.168.1.60 can be divided out as target sub-network segments.
[0064] Optionally, after obtaining the set of target sub-network segments, it further includes: calling the cloud platform access interface based on the network management tool, and obtaining the status data of the target network segment through the cloud platform access interface; identifying the set of sub-network segments that have been issued in the target network segment based on the status data; matching the set of target sub-network segments with the set of sub-network segments that have been issued to obtain a matching result. In the case where the matching result indicates that any sub-network segment in the set of sub-network segments that have been issued exists in the set of target sub-network segments, the sub-network segment is removed from the set of target sub-network segments.
[0065] It should be noted that after obtaining the set of target subnet segments, the following steps are further executed to ensure the accuracy and effectiveness of subnet segment allocation. After generating the set of target subnet segments, the system will call the access interface of the cloud platform to obtain real-time network status information. By calling the access interface, the network management tool can obtain the current status data of the target network segment (i.e., the network segment to be allocated), including existing subnet segment information, address allocation status, and network device configuration status, etc. This ensures that the newly allocated subnet segment will not conflict with the existing subnet segments, and at the same time is to check whether the subnet segments in the set of target subnet segments have been allocated or used. By obtaining the status data, the system can understand the actual situation of the network in real time, providing a decision-making basis for subsequent subnet segment allocation. According to the status data of the target network segment, identify the set of subnet segments that have been issued and used in the target network segment, avoid address overlap or conflict, and then remove the issued subnet segments from the set of target subnet segments through information matching of the subnet segments, ensuring the effectiveness of the target subnet segments in the set of target subnet segments.
[0066] Step S204, return the set of target subnet segments to the user interface of the user terminal.
[0067] It should be noted that after obtaining the set of target subnet segments, the set of target subnet segments can be returned to the user interface of the user terminal, and the user can manually filter the target subnet segments according to their own needs.
[0068] Optionally, after returning the set of target subnet segments to the user interface of the user terminal, it further includes: receiving K target subnet segments to be issued selected by the user terminal, where K is a positive integer and K is less than or equal to M; obtaining application identification, server type, and network area information based on the network segment division request, and configuring identification information for each target subnet segment based on the application identification, server type, and network area information; based on the network management tool, calling the cloud platform subnet issuance interface, transmitting the target subnet segments and the identification information of the target subnet segments to the cloud platform, and generating an issuance script for each target subnet segment through the cloud platform, where the issuance script is used to configure the network address in the target subnet segment for the network resources.
[0069] It should be noted that after the system receives the K target subnet segments to be issued selected by the user terminal, based on information such as the application identifier, server type, and network area of the target subnet segments, the system configures identification information for the target subnet segments. This facilitates subsequent identification by the system when using and issuing the target subnet segments, ensures that each subnet segment can match a specific application scenario, and also facilitates subsequent network management and fault troubleshooting. Then, through the network management tool, the subnet issuing interface of the cloud platform is called to transmit the target subnet segments with the configured identification information and their identification information to the cloud platform. After receiving this information, the cloud platform will automatically generate an issuing script for each target subnet segment. The issuing script contains specific commands and parameters for configuring the network addresses in the target subnet segment for the network resources of the target object, realizing the automation of network address issuance. Through the automatic division of network segments and the interaction between the network management tool and the cloud platform, the correct subnet segment addresses can be automatically assigned to network devices, simplifying the complexity of network configuration and improving the efficiency of network deployment.
[0070] Through the above steps, the network segment division request from the user terminal is received and parsed to obtain network segment parameter information. The network segment parameter information at least includes: location area information, network area information, subnet type, and subnet mask. The location area information is used to indicate the location area to which the target object with the network segment division requirement belongs. Based on the network segment parameter information, the target network segment to be divided is determined. Then, the preset application bit division logic is called, and the target network segment is divided based on the subnet mask and the application bit division logic to obtain a set of target subnet segments. The application bit division logic is a preset rule for network segment division. Finally, the set of target subnet segments is returned to the user interface of the user terminal.
[0071] In this embodiment, based on the network segment division request from the user terminal, the target network segment to be divided is automatically identified, and the target network segment is divided according to the subnet mask selected by the user terminal and the preset application bit division logic to obtain a set of target subnet segments that meet the user's requirements. This achieves the purpose of automatically dividing the target network segment and reasonably allocating network resources, and obtains the technical effect of improving the efficiency of subnet segment division. Furthermore, it solves the technical problem of low efficiency in the related art of manually dividing subnet segments.
[0072] The following is a detailed description in combination with another optional specific implementation manner.
[0073] Figure 3 It is a schematic diagram of an optional division process of a target network segment according to an embodiment of the present invention. As Figure 3 shown, the division process of the target network segment specifically includes:
[0074] Step 1: Determine the basic parameters of the network segment to be divided. It is necessary to determine the park to which the target object with the network segment division requirement belongs (such as Shanghai Park or Beijing Park), the network area (the network area provided by the cloud service provider), the subnet type (divided into virtual machines, bare metal, etc.), the application name (involving the naming of the subnet name), the implementation time of the change, and the reason for implementation, etc.
[0075] Step 1: Automatically divide subnet segments. The device is automatically generated through subnet segments. First, the segment status data of the cloud platform is pulled to identify the segments that have been issued. Then, according to the existing logic, the Class B segment corresponding to a network area is automatically divided into usable small segments according to the application bit division logic. The division results can be dynamically adjusted according to different subnet masks and the corresponding segments can be automatically selected in sequence, and finally the user view is returned through the user interface.
[0076] Step 3: The user terminal modifies the generated results as needed. The operation and maintenance personnel can verify the generated results with one click, and can also adjust the tool division results and submit them according to actual needs (for example, a certain application has special requirements and needs to specify the network segment).
[0077] Step 4: The network management tool calls the cloud platform interface to generate change steps. After the user submits, the network management tool calls the cloud platform subnet API to generate change steps. The cloud platform automatically issues the subnet segment based on the change steps.
[0078] Step 5: Complete the subnet segment distribution through the change steps and return the result to the user view.
[0079] Figure 4 is a schematic diagram of an optional automatic generation process of subnet segments according to an embodiment of the present invention, such as Figure 4 As shown in the figure, the automatic generation process of subnet segments specifically includes:
[0080] Step 1: The network management tool provides parameter information such as network area. When the user creates a new network area, the operation and maintenance personnel will simultaneously enter the network area and other information into the network management global subsystem. The system contains all network area information in the enterprise for operation and maintenance personnel to query and use. Parameters include network area, corresponding network segment (usually Class B), VPC, VPCid, network Europe area and other information;
[0081] Step 2: presetting the application bit division logic, that is, presetting the application bit division logic for subnet segment division;
[0082] Step 3: Automatically divide the subnet according to the subnet mask and the preset application bit division logic;
[0083] When a user requests network segmentation, he or she can select a subnet mask through the user interface. The system divides the subnet according to the mask, usually / 24 or / 25.
[0084] The subnet divided based on the subnet mask can be further refined according to the application bit division logic. According to the enterprise address allocation specification, there are 8 binary numbers in a small segment of the IP address. The application bit division logic can be set by defining certain combinations (with a value of 1) in the combination of the last 4 digits. For example, it is stipulated that 0001 and 1101 (corresponding to the 1st application bit and the 13th application bit respectively) can be used for server addresses. Then, for a C-class network segment 192.168.1.0 / 24, the available server addresses are 192.168.1.1, 192.168.1.13, 192.168.1.17, 192.168.1.29... (and so on), thus obtaining a more refined network address.
[0085] Step 4: Generate a subnet list in sequence according to the subnet division result, return to the user view, and display the subnet results that meet the conditions on the user interface for the user to finally confirm.
[0086] After generating the final target subnet network segment, parameters such as subnet identifiers are generated according to the network management tool. The network management tool can generate the identifier information corresponding to the subnet network segment according to the parameters filled in by the user on the UI interface, including information such as application name, server type (virtual machine or bare metal), and network area.
[0087] The network management tool calls the subnet distribution interface of the cloud service provider platform, transmits parameters, calls the cloud platform interface, and transmits information such as subnet name, subnet network segment, gateway address, and VPCid to the cloud platform. The cloud platform automatically generates the change steps of the subnet network segment for automatically distributing the divided subnet network segment to specific network resources.
[0088] The following is a detailed description in combination with another embodiment.
[0089] Embodiment 2
[0090] A target network segment division device provided in this embodiment includes multiple implementation units. Each implementation unit corresponds to each implementation step in Embodiment 1 above. The specific implementation manner and beneficial effects can refer to the foregoing method embodiment and will not be elaborated here.
[0091] Figure 5 It is a schematic diagram of an optional target network segment division device according to an embodiment of the present invention. As Figure 5 shown, the target network segment division device may include: an acquisition unit 51, a determination unit 52, a division unit 53, and a return unit 54, where,
[0092] An obtaining unit 51, configured to receive a network segment division request from a client, parse the network segment division request, and obtain network segment parameter information, where the network segment parameter information at least includes: location area information, network area information, subnet type, subnet mask, and the location area information is used to indicate the location area to which a target object with a network segment division requirement belongs;
[0093] A determining unit 52, configured to determine a target network segment to be divided based on the network segment parameter information;
[0094] A dividing unit 53, configured to call a preset application bit division logic, and divide the target network segment based on the subnet mask and the application bit division logic to obtain a set of target sub-network segments, where the application bit division logic is a preset rule for network segment division;
[0095] A returning unit 54, configured to return the set of target sub-network segments to the user interface of the client.
[0096] The above-mentioned network segment division device for the target network segment receives a network segment division request from a client through the obtaining unit 51, parses the network segment division request, and obtains network segment parameter information, where the network segment parameter information at least includes: location area information, network area information, subnet type, subnet mask, and the location area information is used to indicate the location area to which a target object with a network segment division requirement belongs; determines a target network segment to be divided based on the network segment parameter information through the determining unit 52; calls a preset application bit division logic through the dividing unit 53, and divides the target network segment based on the subnet mask and the application bit division logic to obtain a set of target sub-network segments, where the application bit division logic is a preset rule for network segment division; and returns the set of target sub-network segments to the user interface of the client through the returning unit 54.
[0097] In this embodiment, based on the network segment division request of the client, the target network segment to be divided is automatically identified, and the target network segment is divided according to the subnet mask selected by the client and the preset application bit division logic to obtain a set of target sub-network segments that meet the user's requirements, achieving the purpose of automatically dividing the target network segment and reasonably allocating network resources, obtaining the technical effect of improving the efficiency of subnet network segment division, and further solving the technical problem of low efficiency in the related art by manually dividing the subnet network segment.
[0098] Optionally, the dividing unit includes: a first dividing module, configured to perform a first division on the target network segment according to the subnet mask to obtain N initial sub-network segments, where N is a positive integer greater than 1; a second dividing module, configured to perform a second division on the N initial sub-network segments based on the application bit division logic to obtain a set of target sub-network segments.
[0099] Optionally, the second partitioning module includes: a first obtaining sub-module, configured to determine a target application bit to be partitioned based on an application bit partitioning logic, and obtain a target value of the target application bit specified by the application bit partitioning logic; a first partitioning sub-module, configured to perform a second partitioning on each initial subnet segment based on the target value of the target application bit specified by the application bit partitioning logic, to obtain M target subnet segments, where M is a positive integer and M is greater than N.
[0100] Optionally, the partitioning device for the target network segment further includes: a first obtaining module, configured to call a cloud platform access interface based on a network management tool, and obtain status data of the target network segment through the cloud platform access interface; a first identifying module, configured to identify a set of subnet segments that have been issued in the target network segment based on the status data; a first matching module, configured to match the set of target subnet segments with the set of subnet segments that have been issued, to obtain a matching result, and in the case where the matching result indicates that any subnet segment in the set of subnet segments that have been issued exists in the set of target subnet segments, remove the subnet segment from the set of target subnet segments.
[0101] Optionally, the partitioning device for the target network segment further includes: a first receiving module, configured to receive K target subnet segments to be issued selected by a user terminal, where K is a positive integer and K is less than or equal to M; a first configuring module, configured to obtain an application identifier, a server type, and network area information based on a network segment partitioning request, and configure identification information for each target subnet segment based on the application identifier, the server type, and the network area information; a first generating module, configured to call a cloud platform subnet issuing interface based on a network management tool, transmit the target subnet segments and the identification information of the target subnet segments to the cloud platform, and generate an issuing script for each target subnet segment through the cloud platform, where the issuing script is used to configure network addresses in the target subnet segments for network resources.
[0102] Optionally, the partitioning device for the target network segment further includes: a first establishing module, configured to establish a mapping relationship between a network area and a network segment when creating a new network area for a target object; a first saving module, configured to collect network area information of the network area, and save the network area information and the mapping relationship between the network area and the network segment to a database.
[0103] Optionally, the partitioning device for the target network segment further includes: a first determining module, configured to determine a target application bit for network segment partitioning based on user requirements, and define a binary code value of the target application bit to be partitioned; a second determining module, configured to determine a target value of the target application bit to be partitioned based on the binary code value; a first creating module, configured to create an application bit partitioning logic based on the target application bit and the target value of the target application bit, and store the application bit partitioning logic in a database.
[0104] It should be noted here that the above-mentioned acquisition unit 51, determination unit 52, division unit 53, and return unit 54 correspond to steps S201 to S204 in the first embodiment. The examples and application scenarios implemented by the above units and the corresponding steps are the same, but are not limited to the content disclosed in the first embodiment. It should be noted that the above modules or units may be hardware components or software components stored in a memory (for example, memory 104) and processed by one or more processors (for example, processors 102a, 102b,..., 102n). The above modules or units may also be part of a device and can run in the computer terminal 10 provided in the first embodiment.
[0105] The present invention will be described below in conjunction with another alternative embodiment.
[0106] Embodiment Three
[0107] The embodiment of the present invention can also provide an electronic device. Figure 6 It is a hardware structure block diagram of an electronic device (or mobile device) that optionally executes the method for dividing a target network segment according to the embodiment of the present invention, as Figure 6 shown. The electronic device may include: one or more ( Figure 6 only one is shown in the figure) processors 602, a memory 604, a storage controller, and a peripheral interface. Among them, the peripheral interface is connected to a radio frequency module, an audio module, and a display.
[0108] Among them, the memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the methods and devices in the embodiments of the present application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, to implement the above methods. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some instances, the memory may further include a memory remotely provided relative to the processor, and these remote memories may be connected to the terminal through a network. Examples of the above network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.
[0109] The processor can call the information and application programs stored in the memory through a transmission device to execute the following steps: Optionally, the step of dividing the target network segment based on the subnet mask and the application bit division logic to obtain a set of target sub-network segments includes: performing a first division on the target network segment according to the subnet mask to obtain N initial sub-network segments, where N is a positive integer greater than 1; performing a second division on the N initial sub-network segments based on the application bit division logic to obtain a set of target sub-network segments.
[0110] The processor can call the information and application programs stored in the memory through the transmission device to perform the following steps: determine the target application bits to be partitioned based on the application bit partitioning logic, and obtain the target values of the target application bits specified by the application bit partitioning logic; for each initial sub-segment, perform a second partitioning on the initial sub-segment based on the target values of the target application bits specified by the application bit partitioning logic to obtain M target sub-segments, where M is a positive integer and M is greater than N.
[0111] The processor can call the information and application programs stored in the memory through the transmission device to perform the following steps: call the cloud platform access interface based on the network management tool, and obtain the status data of the target network segment through the cloud platform access interface; identify the set of sub-segments that have been issued in the target network segment based on the status data; match the target sub-segment set with the set of sub-segments that have been issued to obtain a matching result, and in the case where the matching result indicates that any sub-segment in the set of sub-segments that have been issued exists in the target sub-segment set, remove the sub-segment from the target sub-segment set.
[0112] The processor can call the information and application programs stored in the memory through the transmission device to perform the following steps: receive K target sub-segments to be issued selected by the user terminal, where K is a positive integer and K is less than or equal to M; obtain the application identifier, server type, and network area information based on the network segment partitioning request, and configure identification information for each target sub-segment based on the application identifier, server type, and network area information; call the cloud platform sub-segment issuance interface based on the network management tool, transmit the target sub-segments and the identification information of the target sub-segments to the cloud platform, and generate an issuance script for each target sub-segment through the cloud platform, where the issuance script is used to configure the network addresses in the target sub-segments for the network resources.
[0113] The processor can call the information and application programs stored in the memory through the transmission device to perform the following steps: when creating a new network area for the target object, establish a mapping relationship between the network area and the network segment; collect the network area information of the network area, and save the network area information and the mapping relationship between the network area and the network segment to the database.
[0114] The processor can call the information and application programs stored in the memory through the transmission device to perform the following steps: determine the target application bits for network segment partitioning based on the user requirements, and define the binary code values of the target application bits to be partitioned; determine the target values of the target application bits to be partitioned based on the binary code values; create an application bit partitioning logic based on the target application bits and the target values of the target application bits, and store the application bit partitioning logic in the database.
[0115] An embodiment of the present invention provides a solution for dividing a target network segment. Through a network segment division request from a user terminal, the target network segment to be divided is automatically identified, and the target network segment is divided according to the subnet mask selected by the user terminal and the preset application bit division logic, obtaining a set of target sub-network segments that meet the user's requirements, achieving the purpose of automatically dividing the target network segment and reasonably allocating network resources, and achieving the technical effect of improving the efficiency of subnet network segment division. Furthermore, it solves the technical problem of low efficiency in the related art of manually dividing subnet network segments.
[0116] Those of ordinary skill in the art can understand that Figure 6 The structure shown is only for illustration, and the electronic device can also be a terminal device such as a smart phone, a tablet computer, a palm computer, and a Mobile Internet Device (MID), a PAD, etc. Figure 6 It does not limit the structure of the above-mentioned electronic device. For example, the electronic device may further include more or fewer components (such as a network interface, a display device, etc.) than those shown Figure 6 in the figure, or have a different configuration from that shown Figure 6 in the figure.
[0117] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the relevant hardware of the terminal device through a program, and the program can be stored in a computer-readable storage medium. The storage medium may include: a flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, etc.
[0118] The following describes the present invention in conjunction with another optional embodiment.
[0119] Embodiment 4
[0120] An embodiment of the present invention further provides a computer-readable storage medium. Optionally, in an embodiment of the present invention, the above computer-readable storage medium can be used to store the program code executed by the method for dividing a target network segment provided in the first embodiment above.
[0121] Optionally, in an embodiment of the present invention, the above storage medium can be located in any one of the computer terminals in a computer terminal group in a computer network, or in any one of the mobile terminals in a mobile terminal group.
[0122] An embodiment of the present invention also provides a computer program product. When executed on a data processing device, it is suitable for executing a program for the steps of a method for dividing a target network segment: receiving a network segment division request from a client, parsing the network segment division request, and obtaining network segment parameter information, where the network segment parameter information at least includes: location area information, network area information, subnet type, subnet mask, and the location area information is used to indicate the location area to which a target object with a network segment division requirement belongs; determining a target network segment to be divided based on the network segment parameter information; invoking a preset application bit division logic, and dividing the target network segment based on the subnet mask and the application bit division logic to obtain a set of target sub-network segments, where the application bit division logic is a preset rule for network segment division; and returning the set of target sub-network segments to the user interface of the client.
[0123] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0124] In the above embodiments of the present invention, the descriptions of the respective embodiments have their own focuses. For parts not detailed in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
[0125] In several embodiments provided in the present application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only illustrative. For example, the division of the units can be a logical function division. In actual implementation, there can be other division methods. 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 displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of units or modules can be in electrical or other forms.
[0126] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0127] In addition, in each embodiment of the present invention, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated units can be implemented in the form of hardware or in the form of software functional units.
[0128] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, read-only memories (ROMs), random access memories (RAMs), mobile hard disks, magnetic disks, or optical discs.
[0129] The above are only the preferred embodiments of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present invention.
Claims
1. A method for dividing a target network segment, characterized in that: include: Receive a network segment division request from a user terminal, and parse the network segment division request to obtain network segment parameter information, wherein the network segment parameter information at least includes: location area information, network area information, subnet type, and subnet mask, and the location area information is used to indicate the location area to which the target object with the network segment division requirement belongs; Determine the target network segment to be divided based on the network segment parameter information; Calling a preset application bit partitioning logic, partitioning the target network segment based on the subnet mask and the application bit partitioning logic, and obtaining a target sub-network segment set, wherein the application bit partitioning logic is a preset rule for performing network segment partitioning; The target subnet segment set is returned to the user interface of the user terminal.
2. The method according to claim 1, characterized in that The step of dividing the target network segment based on the subnet mask and the application bit division logic to obtain a target subnet segment set includes: Divide the target network segment for the first time according to the subnet mask to obtain N initial subnet segments, where N is a positive integer greater than 1; The N initial sub-network segments are divided for a second time based on the application bit division logic to obtain the target sub-network segment set.
3. The method according to claim 2, characterized in that The step of performing a second division of the N initial subnet segments based on the application bit division logic comprises: Determine a target application bit to be divided based on the application bit division logic, and obtain a target value of the target application bit specified by the application bit division logic; For each of the initial subnet segments, the initial subnet segment is divided for a second time based on the target value of the target application bit specified by the application bit division logic to obtain M target subnet segments, where M is a positive integer and M is greater than N.
4. The method according to claim 1, characterized in that: After obtaining the target subnet segment set, it also includes: Calling a cloud platform access interface based on a network management tool to obtain status data of the target network segment through the cloud platform access interface; Identifying a set of issued subnet segments in the target network segment based on the status data; The target subnet segment set is matched with the subnet segment set that has been issued to obtain a matching result. If the matching result indicates that any subnet segment in the subnet segment set that has been issued exists in the target subnet segment set, the subnet segment is removed from the target subnet segment set.
5. The method according to claim 1, characterized in that After returning the target subnet segment set to the user interface of the user terminal, the method further includes: Receive K target subnet segments to be sent selected by the user terminal, where K is a positive integer and K is less than or equal to M; Acquire an application identifier, a server type, and the network area information based on the network segment division request, and configure identification information for each target sub-network segment based on the application identifier, the server type, and the network area information; Based on the network management tool, the cloud platform subnet sending interface is called to transmit the target subnet segment and the identification information of the target subnet segment to the cloud platform, and a sending script is generated for each target subnet segment through the cloud platform, wherein the sending script is used to configure the network address in the target subnet segment for network resources.
6. The method according to claim 1, characterized in that Before receiving the network segment division request from the user, the following steps are also included: When creating a new network area for a target object, a mapping relationship between the network area and the network segment is established; The network area information of the network area is collected, and the network area information and the mapping relationship between the network area and the network segment are saved in a database.
7. The method according to claim 1, characterized in that Before receiving the network segment division request from the user, the following steps are also included: Determine the target application bit for network segmentation based on user needs, and define the binary code value of the target application bit to be segmented; Determine a target value of a target application bit to be divided based on the binary code value; The application bit partitioning logic is created based on the target application bit and the target value of the target application bit, and the application bit partitioning logic is stored in a database.
8. A device for dividing a target network segment, characterized in that: include: An acquisition unit, configured to receive a network segment division request from a user terminal, and parse the network segment division request to obtain network segment parameter information, wherein the network segment parameter information at least includes: location area information, network area information, subnet type, and subnet mask, and the location area information is used to indicate the location area to which the target object having the network segment division requirement belongs; A determination unit, configured to determine a target network segment to be divided based on the network segment parameter information; A partitioning unit, configured to call a preset application bit partitioning logic, partition the target network segment based on the subnet mask and the application bit partitioning logic, and obtain a target sub-network segment set, wherein the application bit partitioning logic is a preset rule for performing network segment partitioning; A returning unit is used to return the target subnet segment set to the user interface of the user terminal.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the method for dividing the target network segment according to any one of claims 1 to 7.
10. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method for dividing the target network segment as described in any one of claims 1 to 7.