A method for controlling the allocation of fixed IP addresses for multiple users in a cloud office system
By analyzing user behavior characteristics and adopting a dynamic IP allocation mechanism, the allocation of IP resources in the cloud office system was optimized, which solved the network conflict problem caused by the limited number of fixed IPs and improved user experience and system efficiency.
Patent Information
- Application Number
- CN202510055654.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-14
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2045-01-14
AI Technical Summary
In cloud office systems, the limited number of fixed IP addresses makes it impossible for existing technologies to allocate them effectively and reasonably, leading to frequent network conflicts that affect network connection stability and user experience.
By analyzing user behavior characteristics and adopting a dynamic IP allocation mechanism, the usage coefficient is calculated based on the number of times a user applies for an IP, the time interval, and the duration of use. IPs are prioritized for high-frequency and high-dependency users. Combined with host number allocation strategies, differentiated services and resource optimization are achieved.
It reduced the probability of network conflicts, improved user experience and system efficiency, ensured stable access for highly dependent users, and made reasonable use of limited IP resources.
Smart Images

Figure CN119996374B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of IP allocation technology, and specifically to a method for controlling the allocation of fixed IP addresses to multiple users in a cloud office system. Background Technology
[0002] The design of the multi-user fixed IP allocation control method in the cloud office system aims to ensure that each user can obtain a stable network connection during concurrent access, while optimizing resource utilization and ensuring security. Through virtualization technology, physical resources are divided into multiple virtual machines, each with its own independent operating system and hardware resources, achieving resource isolation between users. The subnet mask can be obtained from the IP address. IP address addressing involves two parts: the network part identifies a network, representing the network to which the IP address belongs, and the host part distinguishes different hosts within a network, uniquely identifying a device on a network segment. During IP address addressing, the system first checks if the devices are on the same network. If the network numbers are the same, they are within the same range; if they are different, they are not. Matching network numbers ensures that devices within the same network can recognize and communicate with each other.
[0003] In existing technologies, cloud office systems may have multiple users simultaneously, but the number of fixed IP addresses is limited. Without proper network IP address planning, IP address conflicts can occur, leading to the following consequences: unstable network connections (interference in communication between devices, resulting in intermittent network connections and slower access speeds); packet loss (routers may discard packets from conflicting IP addresses, preventing normal data exchange); and data transmission errors (in the event of a network conflict, data transmission may fail to reach its destination correctly). Therefore, it is necessary to design a multi-user fixed IP address allocation control method for cloud office systems to rationally allocate the limited number of IP addresses, thereby reducing the probability of network conflicts and improving the user experience. Summary of the Invention
[0004] The purpose of this invention is to provide a method for controlling the allocation of fixed IP addresses for multiple users in a cloud office system, thereby solving the above-mentioned technical problems.
[0005] The purpose of the present invention can be achieved through the following technical solutions:
[0006] A method for controlling the allocation of fixed IP addresses for multiple users in a cloud office system includes the following steps:
[0007] S1: Obtain the number N of times the user requests an IP address from the cloud office system, and set the number N to be greater than the preset threshold N. maxThe user is marked as a first-level user. The time point when the first-level user applied for the IP is obtained and used as the target time point. The average time interval ΔT between two adjacent target time points is calculated.
[0008] S2: Obtain the duration of time the IP address was used by first-level users, and calculate the average duration D. ave Calculate the time coefficient for Level 1 users: TX = λlog( 1+ΔT )D ave Where λ represents the preset time adjustment coefficient;
[0009] The required number of Level 1 users is determined, where the required number represents the number of devices participating in cloud-based office work. The average value Q of the required number is then calculated. ave Calculate the coefficient S = Q ave *TX;
[0010] S3: Sort the first-level users in descending order of their usage coefficient S to obtain the usage coefficient sorting;
[0011] Starting with the first-level user X in the usage coefficient ranking, calculate the first quantity requirement Y = Q for the first-level user X. ave *B, where B represents a preset high quantity requirement ratio, determines the host bit length x corresponding to the first-level user X, and the host bit length x satisfies the following constraints:
[0012]
[0013] The unassigned IP with host bit length x is denoted as the IP to be assigned. The number of IPs to be assigned is Z. If the number of IPs to be assigned is Z≠0 and Z>Y, the IPs to be assigned are converted into dotted decimal notation and sorted in ascending order. The first Y IPs to be assigned are assigned to first-level users. First-level users X are removed from the usage coefficient sort. The above steps are repeated until all first-level users in the usage coefficient sort have been removed.
[0014] As a further aspect of the present invention: in step S1, the date R of the most recent IP application by the first-level user, which is closest to the current date R, is obtained. last Calculate the date difference RC = RR last The date difference RC is greater than the preset judgment threshold RC max Level 1 users are marked as expired users, and IPs already assigned to expired users are reclaimed.
[0015] As a further aspect of the present invention: in step S3, the total number of times Level 1 user X requests the IP address is obtained (NX), and the average number of requests for Level 1 user X is greater than the required number (Q). aveThe quantity N1, the high quantity requirement ratio B = 1 + N1 / NX, where N1 represents the quantity requirement of Level 1 users X being greater than the average quantity requirement Q. ave The number of times NX represents the total number of times Level 1 user X requests an IP address.
[0016] As a further aspect of the present invention: in step S1, the time interval TC between two adjacent target time points is calculated. n,n+1 =T n -T n-1 If the time interval TC n,n+1 The value is less than the preset minimum judgment time T. min Then it is recorded as the IP address mentioned in the application, where T n This represents the time point of the nth IP application.
[0017] As a further aspect of the present invention: in step S2, first-level users with a time coefficient TX < 0 are excluded and do not participate in subsequent steps.
[0018] As a further aspect of the present invention: In step S3, if the number of IPs to be allocated Z≠0 and Z<Y, the IPs that have not been allocated and have a host bit length of x-1 are recorded as candidate IPs. The candidate IPs are converted into dotted decimal notation and sorted in ascending order. The first Y-Z candidate IPs and Z pending IPs are allocated to first-level users.
[0019] If the number of IPs to be allocated is Z=0, the unallocated IPs with a host bit length of x+1 are denoted as extended IPs. Y extended IPs are allocated to first-level users. The extended IPs are converted into dotted decimal notation and sorted in ascending order. The first Y extended IPs are allocated to first-level users.
[0020] As a further aspect of the present invention: In step S4, if there exists a condition satisfying Y-(2) x Given a host bit length x of -2) = 0, assign Y IP addresses with a host bit length of x+1 to first-level users.
[0021] As a further aspect of the present invention: in step S4, the number of available IPs in the current cloud office system is calculated. Wherein, the host bit threshold I = 24 - I w I w Z represents the preset number of network bits. i This represents the number of IPs that have not been allocated and whose host bit length is i. If the number of available IPs W is less than a preset minimum limit W... min At that time, the cloud office system sends an early warning notification.
[0022] The beneficial effects of this invention are as follows: Effective management and allocation of IP addresses is a key factor in ensuring the efficient operation of a cloud office system. Since IP resources are limited, an unreasonable allocation strategy can lead to resource waste or insufficiency, thereby affecting user experience. Therefore, adopting a dynamic IP allocation mechanism based on user behavior characteristics is particularly important.
[0023] First, we need to implement tiered user management to optimize IP resource utilization. Specifically, we can categorize users based on the frequency of their IP requests. We can set a threshold, defining users who request more IPs than this threshold as Level 1 users. These users, due to their frequent use of the cloud office system, have higher requirements for the stability and inclusiveness of IP allocation. By identifying and prioritizing the needs of these high-frequency users, we can significantly improve overall user satisfaction and system efficiency.
[0024] Next, for Level 1 users, we further analyze their IP request behavior patterns. Specifically, we calculate the average time interval between each Level 1 user's IP requests. This average time interval can serve as an important indicator of how frequently a user uses the cloud office system: the shorter the average time interval, the more frequently the user uses the cloud office system.
[0025] Based on this analysis, we can provide differentiated services to users with different usage frequencies. For example, for Tier 1 users who have very short average time intervals, indicating almost continuous online activity, we can provide them with more stable and faster IP reassignment services, and even consider reserving fixed IP addresses for them to reduce the inconvenience caused by IP changes. For users with relatively low usage frequency, we can appropriately adjust the priority of their IP allocation while ensuring basic service quality, thereby making more rational use of limited IP resources.
[0026] To further improve the scientific rigor and fairness of IP resource management, in addition to tiered management based on the frequency of user IP requests, we also need to conduct in-depth analysis of the actual usage of IPs by tier-one users, especially the duration of their IP usage. This metric can directly reflect the degree of user dependence on the cloud office system and the importance of their work needs.
[0027] Specifically, we need to calculate the average duration for which an IP address is occupied by each Tier 1 user. This average duration is calculated by averaging the total time from when a user acquires an IP address until it is released. Choosing the average as the benchmark is to reduce the impact of a few extreme cases (such as unusually short periods of use or prolonged periods of non-release) on the overall evaluation results, thus making our judgment more accurate and fair.
[0028] By analyzing the average duration of IP usage, we can more accurately identify user groups who are highly dependent on cloud-based office systems. These users often require stable access to and use of cloud office resources for extended periods due to the nature of their work or task requirements. Therefore, given the limited number of IPs, prioritizing the allocation of IP resources to these users is not only a direct response to their work needs but also a key measure to improve the overall service quality and user satisfaction of the cloud-based office system.
[0029] To more accurately manage and allocate limited IP resources and ensure stable service for users heavily reliant on cloud-based office systems, we introduced a comprehensive metric called "usage coefficient." This coefficient is calculated by combining the average user demand for IP addresses with time-related dependencies. The usage coefficient is calculated as S = Q. ave *TX;
[0030] In this formula, the required quantity is the mean Q. ave This reflects the average demand for IP addresses from Tier 1 users. The higher the value, the more IP resources a user may need to support their work in a single session or task. The time coefficient (TX) is derived by analyzing the average duration of IP usage by users. It quantifies the user's dependence on the cloud office system over time. The larger the TX value, the longer the user continuously uses the cloud office system, and the stronger their dependence on the system.
[0031] Multiplying these two coefficients yields a usage coefficient, providing a quantitative standard for comprehensively assessing users' overall needs and dependence on the cloud office system. Based on the calculated usage coefficient, we can rank all primary users and prioritize allocating IP addresses to those with higher usage coefficients. This data-driven allocation strategy not only ensures that highly dependent users receive sufficient resources, reducing the risk of work interruptions due to insufficient IP addresses, but also rationally controls resource allocation, avoiding ineffective resource occupation or waste.
[0032] To ensure that IP resource allocation always closely matches users' actual needs, a priority ranking system for Tier 1 users is implemented, and an IP allocation mechanism is designed. When allocating IPs based on the ranking, the system first calculates the difference between the number of available IPs currently acquired by each Tier 1 user and their required number. When the number of available IPs is sufficient to meet the user's needs, the system directly allocates the required IP address to the user, ensuring the smooth operation of their cloud-based office activities. However, in practical applications, there may be situations where the number of available IPs is insufficient to meet the needs of all Tier 1 users. In this case, our system adopts an innovative "borrowing" strategy, dynamically borrowing IP resources from a higher-priority IP segment. Specifically, when the available IPs within a subnet or IP range are insufficient to meet the needs of the highest-priority user, the system automatically checks and attempts to borrow free IP addresses from adjacent IP ranges or subnets with a higher-priority host number. This process continues until the accumulated number of acquired IPs can fully meet the needs of that Tier 1 user. In this way, we can not only effectively alleviate the problem of IP resource scarcity within a single subnet but also achieve flexible allocation of IP resources across subnets or segments to a certain extent.
[0033] In summary, this invention designs a multi-user fixed IP allocation control method for cloud office systems to reasonably allocate a limited number of IPs, thereby reducing the probability of network conflicts and improving the user experience. Attached Figure Description
[0034] The invention will now be further described with reference to the accompanying drawings.
[0035] Figure 1 This is a flowchart illustrating a multi-user fixed IP allocation control method for a cloud office system according to the present invention. Detailed Implementation
[0036] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0037] Please see Figure 1 As shown, this invention is a method for controlling the allocation of fixed IP addresses for multiple users in a cloud office system, comprising the following steps:
[0038] S1: Obtain the number N of times the user requests an IP address from the cloud office system, and set the number N to be greater than the preset threshold N. maxThe user is marked as a first-level user. The time point when the first-level user applied for the IP is obtained and used as the target time point. The average time interval ΔT between two adjacent target time points is calculated.
[0039] S2: Obtain the duration of time the IP address was used by first-level users, and calculate the average duration D. ave Calculate the time coefficient for Level 1 users: TX = λlog( 1+ΔT )D ave Where λ represents the preset time adjustment coefficient;
[0040] The required number of Level 1 users is determined, where the required number represents the number of devices participating in cloud-based office work. The average value Q of the required number is then calculated. ave Calculate the coefficient S = Q ave *TX;
[0041] S3: Sort the first-level users in descending order of their usage coefficient S to obtain the usage coefficient sorting;
[0042] Starting with the first-level user X in the usage coefficient ranking, calculate the first quantity requirement Y = Q for the first-level user X. ave *B, where B represents a preset high quantity requirement ratio, determines the host bit length x corresponding to the first-level user X, and the host bit length x satisfies the following constraints:
[0043]
[0044] Record the unassigned IP with host bit length x as the IP to be assigned. Obtain the number of IPs to be assigned Z. If the number of IPs to be assigned Z ≠ 0 and Z > Y, assign Y IPs to the first-level users. Remove the first-level users X from the usage coefficient sorting. Repeat the above steps until all first-level users in the usage coefficient sorting have been removed.
[0045] It is important to note that effective management and allocation of IP addresses is a key factor in ensuring the efficient operation of a cloud office system during its design and implementation. Since IP resources are limited, an inappropriate allocation strategy can lead to resource waste or shortage, thereby impacting user experience. Therefore, adopting a dynamic IP allocation mechanism based on user behavior characteristics is particularly crucial.
[0046] First, we need to implement tiered user management to optimize IP resource utilization. Specifically, we can categorize users based on the frequency of their IP requests. We can set a threshold, defining users who request more IPs than this threshold as Level 1 users. These users, due to their frequent use of the cloud office system, have higher requirements for the stability and inclusiveness of IP allocation. By identifying and prioritizing the needs of these high-frequency users, we can significantly improve overall user satisfaction and system efficiency.
[0047] Next, for Level 1 users, we further analyze their IP request behavior patterns. Specifically, we calculate the average time interval between each Level 1 user's IP requests. This average time interval can serve as an important indicator of how frequently a user uses the cloud office system: the shorter the average time interval, the more frequently the user uses the cloud office system.
[0048] Based on this analysis, we can provide differentiated services to users with different usage frequencies. For example, for Tier 1 users who have very short average time intervals, indicating almost continuous online activity, we can provide them with more stable and faster IP reassignment services, and even consider reserving fixed IP addresses for them to reduce the inconvenience caused by IP changes. For users with relatively low usage frequency, we can appropriately adjust the priority of their IP allocation while ensuring basic service quality, thereby making more rational use of limited IP resources.
[0049] To further improve the scientific rigor and fairness of IP resource management, in addition to tiered management based on the frequency of user IP requests, we also need to conduct in-depth analysis of the actual usage of IPs by tier-one users, especially the duration of their IP usage. This metric can directly reflect the degree of user dependence on the cloud office system and the importance of their work needs.
[0050] Specifically, we need to calculate the average duration for which an IP address is occupied by each Tier 1 user. This average duration is calculated by averaging the total time from when a user acquires an IP address until it is released. Choosing the average as the benchmark is to reduce the impact of a few extreme cases (such as unusually short periods of use or prolonged periods of non-release) on the overall evaluation results, thus making our judgment more accurate and fair.
[0051] By analyzing the average duration of IP usage, we can more accurately identify user groups who are highly dependent on cloud-based office systems. These users often require stable access to and use of cloud office resources for extended periods due to the nature of their work or task requirements. Therefore, given the limited number of IPs, prioritizing the allocation of IP resources to these users is not only a direct response to their work needs but also a key measure to improve the overall service quality and user satisfaction of the cloud-based office system.
[0052] To more accurately manage and allocate limited IP resources and ensure stable service for users heavily reliant on cloud-based office systems, we introduced a comprehensive metric called "usage coefficient." This coefficient is calculated by combining the average user demand for IP addresses with time-related dependencies. The usage coefficient is calculated as S = Q. ave *TX;
[0053] In this formula, the required quantity is the mean Q. ave This reflects the average demand for IP addresses from Tier 1 users. The higher the value, the more IP resources a user may need to support their work in a single session or task. The time coefficient (TX) is derived by analyzing the average duration of IP usage by users. It quantifies the user's dependence on the cloud office system over time. The larger the TX value, the longer the user continuously uses the cloud office system, and the stronger their dependence on the system.
[0054] Multiplying these two coefficients yields a usage coefficient, providing a quantitative standard for comprehensively assessing users' overall needs and dependence on the cloud office system. Based on the calculated usage coefficient, we can rank all primary users and prioritize allocating IP addresses to those with higher usage coefficients. This data-driven allocation strategy not only ensures that highly dependent users receive sufficient resources, reducing the risk of work interruptions due to insufficient IP addresses, but also rationally controls resource allocation, avoiding ineffective resource occupation or waste.
[0055] To ensure that IP resource allocation always closely matches users' actual needs, a priority ranking system for Tier 1 users is implemented, and an IP allocation mechanism is designed. When allocating IPs based on the ranking, the system first calculates the difference between the number of available IPs currently acquired by each Tier 1 user and their required number. When the number of available IPs is sufficient to meet the user's needs, the system directly allocates the required IP address to the user, ensuring the smooth operation of their cloud-based office activities. However, in practical applications, there may be situations where the number of available IPs is insufficient to meet the needs of all Tier 1 users. In this case, our system adopts an innovative "borrowing" strategy, dynamically borrowing IP resources from a higher-priority IP segment. Specifically, when the available IPs within a subnet or IP range are insufficient to meet the needs of the highest-priority user, the system automatically checks and attempts to borrow free IP addresses from adjacent IP ranges or subnets with a higher-priority host number. This process continues until the accumulated number of acquired IPs can fully meet the needs of that Tier 1 user. In this way, we can not only effectively alleviate the problem of IP resource scarcity within a single subnet but also achieve flexible allocation of IP resources across subnets or segments to a certain extent.
[0056] In another preferred embodiment of the present invention, the date R of the most recent IP application by a Level 1 user is obtained, which is the date R from the current date R. last Calculate the date difference RC = RR last The date difference RC is greater than the preset judgment threshold RC max Level 1 users are marked as expired users, and IPs already assigned to expired users are reclaimed.
[0057] It's worth noting that, to further optimize IP resource management and prevent resource waste caused by prolonged IP address occupation, we have introduced an expired user identification and IP reclamation mechanism. Specifically, when the system detects that a user at a certain level has not used an IP address for a preset duration threshold, that user will be marked as an "expired user." Once a user is marked as expired, the system will automatically initiate the IP reclamation process. This mechanism aims to ensure that IP resources can be circulated more efficiently, meeting the actual needs of more users.
[0058] In another preferred embodiment of the present invention, the total number of times Level 1 user X requests the IP address is obtained (NX), and the number of Level 1 users X is required to be greater than the average number requirement (Q). ave The quantity N1, the high quantity requirement ratio B = 1 + N1 / NX, where N1 represents the quantity requirement of Level 1 users X being greater than the average quantity requirement Q. ave The number of times NX represents the total number of times Level 1 user X requests an IP address.
[0059] Understandably, analyzing the IP request data of Tier 1 user X, particularly focusing on their above-average frequency of requests, helps assess the user's dependence on cloud office system resources and the specificity of their usage patterns. This approach contributes to a more refined understanding of user needs, thereby providing a basis for resource allocation and service optimization.
[0060] In another preferred embodiment of the present invention, the time interval TC between two adjacent target time points is calculated. n,n+1 =T n -T n-1 If the time interval TC n,n+1 The value is less than the preset minimum judgment time T. min Then it is recorded as the IP address mentioned in the application, where T n This represents the time point of the nth IP application.
[0061] It is important to note that by setting a time threshold T min This allows us to differentiate between multiple consecutive IP requests and independent single requests, enabling us to optimize resource allocation strategies or perform behavioral analysis. It helps us understand user patterns more accurately and avoids calculation errors caused by multiple requests within a short period, thus ensuring the accuracy of the final results.
[0062] In another preferred embodiment of the present invention, first-level users with a time coefficient TX < 0 are excluded and do not participate in subsequent steps.
[0063] It should be noted that if the time coefficient TX < 0, continuing the calculation will lead to errors in the results. Therefore, for the sake of accuracy, first-level users with a time coefficient TX < 0 are excluded from subsequent steps.
[0064] In another preferred embodiment of the present invention, if the number of IPs to be allocated Z≠0 and Z<Y, the unallocated IPs with a host bit length of x-1 are recorded as candidate IPs, the candidate IPs are converted into dotted decimal notation and sorted in ascending order, and the first Y-Z candidate IPs and Z candidate IPs are allocated to the first-level users.
[0065] If the number of IPs to be allocated is Z=0, the unallocated IPs with a host bit length of x+1 are denoted as extended IPs. Y extended IPs are allocated to first-level users. The extended IPs are converted into dotted decimal notation and sorted in ascending order. The first Y extended IPs are allocated to first-level users.
[0066] Understandably, by using a flexible IP allocation mechanism, the most suitable IP can be dynamically selected and allocated based on the relationship between the actual amount of available IP resources and user needs. This approach considers both the efficient use of resources and the maximum satisfaction of user needs.
[0067] In another preferred embodiment of the present invention, if there exists a condition satisfying Y-(2) x Given a host bit length x of -2) = 0, assign Y IP addresses with a host bit length of x+1 to first-level users.
[0068] It is worth noting that when there exists a host bit length x such that Y-(2 x When -2) = 0, it means that the current required number of IPs Y can be met by increasing the number of host bits by x, i.e., (2 x -2) equals Y. In this case, choosing Y IP addresses with x+1 bits each for the first-level users is for future scalability and to avoid subsequent management problems. This simplifies management, and maintaining the continuity of IP addresses helps simplify network management and monitoring because consecutive IP addresses are easier to track and maintain.
[0069] It also facilitates expansion. As user demand grows, having additional IP address space makes it easier to cope with future expansion needs without the need for frequent replanning and allocation of IP addresses.
[0070] In another preferred embodiment of the present invention, the number of available IPs in the current cloud office system is calculated. Wherein, the host bit threshold I = 24 - I w I w Z represents the preset number of network bits. i This represents the number of IPs that have not been allocated and whose host bit length is i. If the number of available IPs W is less than a preset minimum limit W... min At that time, the cloud office system sends an early warning notification.
[0071] It is worth noting that the number of IP addresses is limited, but user demand is increasing daily. No matter how IP addresses are allocated, they will eventually run out. When the remaining number of available IP addresses W is less than a preset minimum limit W... min In such cases, the cloud-based office system sends out early warning alerts to promptly inform staff to take appropriate action.
[0072] The foregoing has provided a detailed description of one embodiment of the present invention, but this description is merely a preferred embodiment and should not be construed as limiting the scope of the invention. All equivalent variations and modifications made within the scope of the claims of this invention should still fall within the patent coverage of this invention.
Claims
1. A method for controlling the allocation of fixed IP addresses for multiple users in a cloud office system, characterized in that, Includes the following steps: S1: Obtain the number N of times the user requests an IP address from the cloud office system, and set the number N to be greater than the preset threshold N. max The user is marked as a first-level user. The time point when the first-level user applied for the IP is obtained and used as the target time point. The average time interval ΔT between two adjacent target time points is calculated. S2: Obtain the duration of time the IP address was used by first-level users, and calculate the average duration D. ave Calculate the time coefficient for Level 1 users: TX = λlog( 1+ΔT )D ave Where λ represents the preset time adjustment coefficient; The required number of Level 1 users is determined, where the required number represents the number of devices participating in cloud-based office work. The average value Q of the required number is then calculated. ave Calculate the coefficient S = Q ave *TX; S3: Sort the first-level users in descending order of their usage coefficient S to obtain the usage coefficient sorting; Starting with the first-level user X in the usage coefficient ranking, calculate the first quantity requirement Y = Q for the first-level user X. ave *B, where B represents a preset high quantity requirement ratio, determines the host bit length x corresponding to the first-level user X, and the host bit length x satisfies the following constraints: The unassigned IP with host bit length x is denoted as the IP to be assigned. The number of IPs to be assigned is Z. If the number of IPs to be assigned is Z≠0 and Z>Y, the IPs to be assigned are converted into dotted decimal notation and sorted in ascending order. The first Y IPs to be assigned are assigned to first-level users. First-level users X are removed from the usage coefficient sort. The above steps are repeated until all first-level users in the usage coefficient sort have been removed.
2. The method for multi-user fixed IP allocation and control in a cloud office system according to claim 1, characterized in that, In step S1, the date R of the most recent IP application by the Level 1 user is obtained from the current date R. last Calculate the date difference RC = RR last The date difference RC is greater than the preset judgment threshold RC max Level 1 users are marked as expired users, and IPs already assigned to expired users are reclaimed.
3. The method for multi-user fixed IP allocation and control in a cloud office system according to claim 1, characterized in that, In step S3, the total number of times Level 1 user X requests the IP address is obtained (NX), and the average number of requests for Level 1 user X is greater than the required number (Q). ave The quantity N1, the high quantity requirement ratio B = 1 + N1 / NX, where N1 represents the quantity requirement of Level 1 users X being greater than the average quantity requirement Q. ave The number of times NX represents the total number of times Level 1 user X requests an IP address.
4. The multi-user fixed IP allocation control method for a cloud office system according to claim 1, characterized in that, In step S1, the time interval TC between two adjacent target time points is calculated. n,n+1 =T n -T n-1 If the time interval TC n,n+1 The value is less than the preset minimum judgment time T. min Then it is recorded as the IP address mentioned in the application, where T n This represents the time point of the nth IP application.
5. The method for multi-user fixed IP allocation and control in a cloud office system according to claim 1, characterized in that, In step S2, first-level users with a time coefficient TX < 0 are removed and do not participate in subsequent steps.
6. The method for multi-user fixed IP allocation and control in a cloud office system according to claim 1, characterized in that, In step S3, if the number of IPs to be allocated Z≠0 and Z<Y, the unallocated IPs with a host bit length of x-1 are recorded as candidate IPs. The candidate IPs are converted into dotted decimal notation and sorted in ascending order. The first Y-Z candidate IPs and Z pending IPs are allocated to the first-level users. If the number of IPs to be allocated is Z=0, the unallocated IPs with a host bit length of x+1 are denoted as extended IPs. Y extended IPs are allocated to first-level users. The extended IPs are converted into dotted decimal notation and sorted in ascending order. The first Y extended IPs are allocated to first-level users.
7. The method for multi-user fixed IP allocation and control in a cloud office system according to claim 1, characterized in that, In step S3, if there exists a condition satisfying Y-(2) x Given a host bit length x of -2) = 0, assign Y IP addresses with a host bit length of x+1 to first-level users.
8. The method for multi-user fixed IP allocation and control in a cloud office system according to claim 1, characterized in that, In step S3, the number of available IPs in the current cloud office system is calculated. Wherein, the host bit threshold I = 24 - I w I w Z represents the preset number of network bits. i This represents the number of IPs that have not been allocated and whose host bit length is i. If the number of available IPs W is less than a preset minimum limit W... min At that time, the cloud office system sends an early warning notification.
Citation Information
Patent Citations
Method, system and trunk equipment for assigning multiple server addresses
CN101951417A
Terminal networking time determination method and device, electronic equipment and storage medium
CN114173396A