Multi-user fixed IP distribution control method for cloud office system

By dynamically allocating IP addresses and sorting them according to user usage behavior and dependencies, the problem of IP address conflicts in cloud office systems is solved, and user experience and system efficiency are improved.

CN119996374AActive Publication Date: 2025-05-13GUANGZHOU QINGYUN ZHISHANG INFORMATION TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510055654.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-14
Publication Date
2025-05-13
Estimated Expiration
2045-01-14

AI Technical Summary

Technical Problem

When multiple users access simultaneously in a cloud office system, limited fixed IP addresses may lead to IP addresses conflicts, resulting in unstable network connections, interference in communications, and errors in data transmission.

Method used

By obtaining the number of IP applications and usage time of users, calculating the user's usage coefficient, sorting user level, dynamically allocating IP addresses, giving priority to meeting the needs of high-frequency and high-dependence users, and providing cross-subnet or cross-segment provision of IP resources when necessary.

Benefits of technology

It effectively reduces the probability of IP address conflicts, improves user experience, and ensures efficient operation of cloud office systems and rational use of resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996374A_ABST
    Figure CN119996374A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of IP distribution, and particularly discloses a multi-user fixed IP distribution control method for a cloud office system, and the method comprises the following steps: S1, screening out a first-level user according to the number of user applications, and calculating an average time interval; s2, calculating a mean value of the use duration, calculating a time coefficient of a first-level user, obtaining a number requirement of the first-level user, and calculating a mean value of the number requirement and a use coefficient; and S3, sorting the first-level users to obtain a use coefficient sequence, calculating a first quantity requirement in sequence, calculating the host digit meeting the constraint, and performing distribution according to the calculated host digit. In conclusion, the multi-user fixed IP allocation control method for the cloud office system is designed to reasonably allocate a limited number of IPs, so that the probability of occurrence of network conflicts is reduced, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of IP allocation, and in particular to a method for controlling the allocation of fixed IP addresses to multiple users of a cloud office system. Background Art

[0002] The design of the multi-user fixed IP allocation control method of 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 VM has an independent operating system and hardware resources, and resource isolation between users is achieved. The subnet mask can be obtained through the IP address, and the IP address is addressed. Among them, the network part is used to identify a network, representing the network to which the IP address belongs, and the host part is used to distinguish different hosts in a network, which can uniquely identify a device on the network segment. When addressing the IP address, first determine whether it is the same network, and first compare the network numbers of both parties. If the network numbers are the same, it means they are in the same range. If the network numbers are different, it means they are not in the same range. The same network numbers can ensure that devices in the same network can recognize and communicate with each other.

[0003] In the prior art, since there may be multiple users using the cloud office system at the same time, but the number of fixed IPs is limited, if the network IP addresses are not reasonably planned, IP address conflicts may occur. Network conflicts will cause the following effects: unstable network connection. IP address conflicts will cause interference in communications between devices, which will manifest as intermittent network connections and slower access speeds. Packet loss. Since the router cannot accurately identify the data packets sent by the conflicting IP addresses, these data packets may be discarded, resulting in the inability of the communicating parties to complete normal data exchange. Data transmission errors. In the event of a network conflict, data transmission may be erroneous, resulting in the inability of information to be delivered to the destination correctly. Therefore, it is necessary to design a multi-user fixed IP allocation control method for a cloud office system to reasonably allocate a limited number of IP addresses, thereby reducing the probability of network conflicts and improving user experience. Summary of the invention

[0004] The purpose of the present invention is to provide a multi-user fixed IP allocation control method for a cloud office system to solve the above 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 of multiple users in a cloud office system comprises the following steps:

[0007] S1: Obtain the number of times N that a user applies for an IP from the cloud office system, mark the user whose number N is greater than a preset number threshold Nmax as a first-level user, obtain the time point at which the first-level user applies for the IP, take it as the target time point, and calculate the average time interval ΔT between two adjacent target time points;

[0008] S2: Obtain the duration of the IP used by the first-level user, calculate the average value Dave of the duration, and calculate the time coefficient TX of the first-level user = λlog( 1+ΔT )Dave, where λ represents the preset time adjustment coefficient;

[0009] Obtain the quantity requirement of the first-level users, where the quantity requirement represents the number of devices participating in the cloud office, calculate the average value Qave of the quantity requirement, and calculate the usage coefficient S=Qave*TX;

[0010] S3: Sort the first-level users according to the usage coefficient S from high to low to obtain the usage coefficient ranking;

[0011] Starting from the first-level user X in the usage coefficient ranking, the first quantity requirement Y=Qave*B of the first-level user X is calculated, where B represents a preset high quantity requirement ratio, and the number of host bits x corresponding to the first-level user X is determined, and the number of host bits x satisfies the constraint:

[0012]

[0013] The unallocated IPs with x host bits are recorded as IPs to be allocated, and the number Z of IPs to be allocated is obtained. If the number Z of IPs to be allocated is ≠ 0 and Z>Y, the IPs to be allocated are converted into dotted decimal system and sorted in ascending order, the first Y IPs to be allocated are allocated to primary users, the primary user X is removed from the usage coefficient sorting, and the above steps are repeated until all primary users in the usage coefficient sorting are removed.

[0014] As a further solution of the present invention: in the step S1, the date Rlast of the most recent application of the IP by the first-level user from the current date R is obtained, and the date difference RC=R-Rlast is calculated. The first-level users whose date difference RC is greater than the preset judgment threshold RCmax are recorded as expired users, and the IP allocated to the expired users is recovered.

[0015] As a further solution of the present invention: in the step S3, the total number of times NX that the first-level user X applies for the IP is obtained, the number N1 of the number requirements of the first-level user X that is greater than the average value Qave of the number requirements is obtained, and the high number requirement ratio B=1+N1 / NX, wherein N1 represents the number of times the number requirement of the first-level user X is greater than the average value Qave of the number requirements, and NX represents the total number of times the first-level user X applies for the IP.

[0016] As a further solution of the present invention: in the step S1, the time interval between two adjacent target time points is calculated TCn,n+1=Tn-Tn-1. If the time interval TCn,n +1 If the value is less than the preset minimum judgment time Tmin, it is recorded as the IP described in the first application, where Tn represents the time point of the IP described in the nth application.

[0017] As a further solution of the present invention: in the step S2, the primary users with a time coefficient TX < 0 are eliminated and do not participate in the subsequent steps.

[0018] As a further solution of the present invention: in the step S3, if the number of IPs to be allocated Z≠0 and Z<Y, the IPs that are not allocated and whose host bit number is x-1 are recorded as candidate IPs, the candidate IPs are converted into dotted decimal system and sorted in ascending order, and the first Y-Z candidate IPs and Z candidate IPs are allocated to the primary user;

[0019] If the number of IPs to be allocated Z=0, the unallocated IPs with the host bit number x+1 are recorded as extended IPs, Y extended IPs are allocated to the first-level users, the extended IPs are converted into dotted decimal notation and sorted in ascending order, and the first Y extended IPs are allocated to the first-level users.

[0020] As a further solution of the present invention: in the step S4, if there is a host bit number x that satisfies Y-(2x-2)=0, the IPs with Y host bit numbers x+1 are allocated to the primary users.

[0021] As a further solution of the present invention: in step S4, the number of available IP addresses in the current cloud office system is calculated. Among them, the host bit threshold I=24-Iw, Iw represents the preset network number bit, Zi represents the number of unassigned IPs and the host bit number i, if the number of available IPs W is less than the preset lower limit Wmin, the cloud office system sends an early warning prompt.

[0022] Beneficial effects of the present invention: When designing and implementing a cloud office system, effective management and allocation of IP addresses is one of the key factors to ensure efficient operation of the system. Since IP resources are limited, unreasonable allocation strategies may lead to waste or shortage of resources, thereby affecting user experience. Therefore, it is particularly important to adopt a dynamic IP allocation mechanism based on user behavior characteristics.

[0023] First, we need to manage users in different levels to optimize the efficiency of IP resource usage. Specifically, we can divide users into different levels according to the number of times they apply for IP. We set a threshold and define users who apply for IP more than this threshold as first-level users. Because these users frequently use the cloud office system, they 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 the first-level users, we further analyze their IP application behavior patterns. The specific approach is to calculate the average time interval for each first-level user to apply for an IP. This average time interval can be used as an important indicator to measure the frequency of users using the cloud office system: the smaller the average time interval, the more frequently users use the cloud office system.

[0025] Based on this analysis, we can provide differentiated services for users with different frequencies. For example, for those first-level users whose average time interval is very short, indicating that they are almost constantly online, we can provide them with more stable and fast IP reallocation 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 their IP allocation priorities while ensuring basic service quality, so as to make more reasonable use of limited IP resources.

[0026] In order to further improve the scientificity and fairness of IP resource management, in addition to hierarchical management based on the frequency of users applying for IP, we also need to deeply analyze the actual use of IP by first-level users, especially the length of time they use IP. This indicator 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 of IP usage for each first-level user. This average duration is calculated by counting the total length of time from each time a user obtains an IP until the IP is released, and taking the average of these durations. The mean is chosen as the measurement standard to reduce the impact of a few extreme values ​​(such as abnormally short usage or long periods of non-release) on the overall evaluation results, thereby making our judgment more accurate and fair.

[0028] By analyzing the average duration of IP usage, we can more accurately identify user groups that are highly dependent on the cloud office system. These users often need to access and use cloud office resources stably for a long time due to the nature of their work or task requirements. Therefore, when the number of IPs is limited, allocating IP resources to these users first is not only a direct response to their work needs, but also a key measure to improve the service quality and user satisfaction of the entire cloud office system.

[0029] In order to more accurately manage and allocate limited IP resources and ensure that users who rely heavily on the cloud office system can obtain stable services, we have introduced a comprehensive indicator called "utilization coefficient". This coefficient is calculated by combining the average user demand for the number of IPs and the dependence on time. The calculation of the utilization coefficient S = Qave*TX;

[0030] In this formula, the mean value of quantity requirements Qave reflects the average level of demand for the number of IP addresses by first-level users. The higher this value is, the more IP resources users may need to support their work in a single session or task. The time coefficient TX is obtained by analyzing the average length of time users use IPs. It quantifies the user's dependence on the cloud office system in the time dimension. The larger the TX value is, the longer the user continues to use the cloud office system, and the stronger the dependence on the system.

[0031] The usage coefficient obtained by multiplying these two coefficients provides us with a quantitative standard for comprehensively evaluating users' overall demand and dependence on the cloud office system. Based on the calculated usage coefficient, we can sort all first-level users and prioritize IP addresses for users with higher usage coefficients. This data-driven allocation strategy can not only ensure that high-dependency users get sufficient resources and reduce the risk of work interruption due to insufficient IP, but also reasonably control resource allocation to avoid ineffective occupation or waste of resources.

[0032] In order to ensure that the allocation of IP resources is always closely matched with the actual needs of users, the first-level users are prioritized according to the usage coefficient, and an IP allocation mechanism is designed. When allocating IPs based on the sorting results, the system will first calculate the difference between the number of available IPs currently obtained by each first-level user and the amount of IPs required. When the number of available IPs is sufficient to meet the user's needs, the system will directly allocate the required IP address to the user to ensure the smooth progress of their cloud office activities. However, in actual applications, there may be a situation where the number of available IPs is not enough to meet the needs of all first-level users. At this time, our system will adopt an innovative "borrowing" strategy, that is, dynamically borrowing IP resources from a higher host number. Specifically, when the available IPs in a subnet or IP segment are not enough to meet the needs of the current highest priority user, the system will automatically check and try to borrow free IP addresses from adjacent IP segments or subnets with higher host numbers. This process will continue until the cumulative number of IPs obtained can meet the complete needs of the first-level user. In this way, we can not only effectively alleviate the problem of IP resource shortage within a single subnet, but also realize flexible allocation of IP resources across subnets or segments to a certain extent.

[0033] In summary, the present invention designs a multi-user fixed IP allocation control method for a cloud office system to reasonably allocate a limited number of IPs, thereby reducing the probability of network conflicts and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The present invention will be further described below in conjunction with the accompanying drawings.

[0035] Figure 1 It is a flow chart of a method for controlling the allocation of fixed IP addresses to multiple users in a cloud office system according to the present invention. DETAILED DESCRIPTION

[0036] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0037] See also Figure 1 As shown, the present invention is a method for controlling the allocation of fixed IP addresses of multiple users in a cloud office system, comprising the following steps:

[0038] S1: Obtain the number of times N that a user applies for an IP from the cloud office system, mark the user whose number N is greater than a preset number threshold Nmax as a first-level user, obtain the time point at which the first-level user applies for the IP, take it as the target time point, and calculate the average time interval ΔT between two adjacent target time points;

[0039] S2: Obtain the duration of the IP used by the first-level user, calculate the average value Dave of the duration, and calculate the time coefficient TX of the first-level user = λlog( 1+ΔT )Dave, where λ represents the preset time adjustment coefficient;

[0040] Obtain the quantity requirement of the first-level users, where the quantity requirement represents the number of devices participating in the cloud office, calculate the average value Qave of the quantity requirement, and calculate the usage coefficient S=Qave*TX;

[0041] S3: Sort the first-level users according to the usage coefficient S from high to low to obtain the usage coefficient ranking;

[0042] Starting from the first-level user X in the usage coefficient ranking, the first quantity requirement Y=Qave*B of the first-level user X is calculated, where B represents a preset high quantity requirement ratio, and the number of host bits x corresponding to the first-level user X is determined, and the number of host bits x satisfies the constraint:

[0043]

[0044] The unallocated IPs with x host bits are recorded as IPs to be allocated, and the number Z of IPs to be allocated is obtained. If the number Z of IPs to be allocated is ≠ 0 and Z>Y, Y IPs to be allocated are allocated to the first-level users, and the first-level user X is removed from the usage coefficient ranking. The above steps are repeated until all first-level users in the usage coefficient ranking are removed.

[0045] It should be noted that when designing and implementing a cloud office system, effective management and allocation of IP addresses is one of the key factors to ensure efficient operation of the system. Since IP resources are limited, unreasonable allocation strategies may lead to waste or shortage of resources, thus affecting user experience. Therefore, it is particularly important to adopt a dynamic IP allocation mechanism based on user behavior characteristics.

[0046] First, we need to manage users in different levels to optimize the efficiency of IP resource usage. Specifically, we can divide users into different levels according to the number of times they apply for IP. We set a threshold and define users who apply for IP more than this threshold as first-level users. Because these users frequently use the cloud office system, they 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 the first-level users, we further analyze their IP application behavior patterns. The specific approach is to calculate the average time interval for each first-level user to apply for an IP. This average time interval can be used as an important indicator to measure the frequency of users using the cloud office system: the smaller the average time interval, the more frequently users use the cloud office system.

[0048] Based on this analysis, we can provide differentiated services for users with different frequencies. For example, for those first-level users whose average time interval is very short, indicating that they are almost constantly online, we can provide them with more stable and fast IP reallocation 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 their IP allocation priorities while ensuring basic service quality, so as to make more reasonable use of limited IP resources.

[0049] In order to further improve the scientificity and fairness of IP resource management, in addition to hierarchical management based on the frequency of users applying for IP, we also need to deeply analyze the actual use of IP by first-level users, especially the length of time they use IP. This indicator 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 of IP usage for each first-level user. This average duration is calculated by counting the total length of time from each time a user obtains an IP until the IP is released, and taking the average of these durations. The mean is chosen as the measurement standard to reduce the impact of a few extreme values ​​(such as abnormally short usage or long periods of non-release) on the overall evaluation results, thereby making our judgment more accurate and fair.

[0051] By analyzing the average duration of IP usage, we can more accurately identify user groups that are highly dependent on the cloud office system. These users often need to access and use cloud office resources stably for a long time due to the nature of their work or task requirements. Therefore, when the number of IPs is limited, allocating IP resources to these users first is not only a direct response to their work needs, but also a key measure to improve the service quality and user satisfaction of the entire cloud office system.

[0052] In order to more accurately manage and allocate limited IP resources and ensure that users who rely heavily on the cloud office system can obtain stable services, we have introduced a comprehensive indicator called "utilization coefficient". This coefficient is calculated by combining the average user demand for the number of IPs and the dependence on time. The calculation of the utilization coefficient S = Qave*TX;

[0053] In this formula, the mean value of quantity requirements Qave reflects the average level of demand for the number of IP addresses by first-level users. The higher this value is, the more IP resources users may need to support their work in a single session or task. The time coefficient TX is obtained by analyzing the average length of time users use IPs. It quantifies the user's dependence on the cloud office system in the time dimension. The larger the TX value is, the longer the user continues to use the cloud office system, and the stronger the dependence on the system.

[0054] The usage coefficient obtained by multiplying these two coefficients provides us with a quantitative standard for comprehensively evaluating users' overall demand and dependence on the cloud office system. Based on the calculated usage coefficient, we can sort all first-level users and prioritize IP addresses for users with higher usage coefficients. This data-driven allocation strategy can not only ensure that high-dependency users get sufficient resources and reduce the risk of work interruption due to insufficient IP, but also reasonably control resource allocation to avoid ineffective occupation or waste of resources.

[0055] In order to ensure that the allocation of IP resources is always closely matched with the actual needs of users, the first-level users are prioritized according to the usage coefficient, and an IP allocation mechanism is designed. When allocating IPs based on the sorting results, the system will first calculate the difference between the number of available IPs currently obtained by each first-level user and the amount of IPs required. When the number of available IPs is sufficient to meet the user's needs, the system will directly allocate the required IP address to the user to ensure the smooth progress of their cloud office activities. However, in actual applications, there may be a situation where the number of available IPs is not enough to meet the needs of all first-level users. At this time, our system will adopt an innovative "borrowing" strategy, that is, dynamically borrowing IP resources from a higher host number. Specifically, when the available IPs in a subnet or IP segment are not enough to meet the needs of the current highest priority user, the system will automatically check and try to borrow free IP addresses from adjacent IP segments or subnets with higher host numbers. This process will continue until the cumulative number of IPs obtained can meet the complete needs of the first-level user. In this way, we can not only effectively alleviate the problem of IP resource shortage within a single subnet, but also realize flexible allocation of IP resources across subnets or segments to a certain extent.

[0056] In another preferred embodiment of the present invention, the date Rlast of the most recent application of the IP by the first-level user from the current date R is obtained, and the date difference RC=R-Rlast is calculated. The first-level users whose date difference RC is greater than the preset judgment threshold RCmax are recorded as expired users, and the IP allocated to the expired users is recovered.

[0057] It is worth noting that in order to further optimize IP resource management and prevent resource waste caused by long-term occupation of IP addresses, we have introduced an expired user identification and IP recovery mechanism. Specifically, when the system detects that a certain level of user has not used the IP for a preset time threshold, the user will be marked as an "expired user". Once a user is marked as an expired user, the system will automatically start the IP recovery process. This mechanism is designed to ensure that IP resources can flow more efficiently and meet the actual needs of more users.

[0058] In another preferred embodiment of the present invention, the total number of times NX that the first-level user X applies for the IP is obtained, the number N1 of the number requirements of the first-level users X that is greater than the average value Qave of the number requirements is obtained, and the high number requirement ratio B=1+N1 / NX, wherein N1 represents the number of times the number requirement of the first-level user X is greater than the average value Qave of the number requirements, and NX represents the total number of times the first-level user X applies for the IP.

[0059] It is understandable that by analyzing the IP application data of the first-level user X, especially focusing on its higher-than-average demand frequency, the user's reliance on cloud office system resources and the particularity of its usage pattern can be evaluated. This method helps to understand user needs more finely, thus providing a basis for resource allocation and service optimization.

[0060] In another preferred embodiment of the present invention, the time interval TCn between two adjacent target time points is calculated. +1 =Tn-Tn-1, if the time interval TCn, n +1 If the value is less than the preset minimum judgment time Tmin, it is recorded as the IP described in the first application, where Tn represents the time point of the IP described in the nth application.

[0061] It should be noted that by setting a time threshold Tmin to distinguish whether the user's IP application is a continuous multiple attempts or an independent single request, it is used to optimize resource allocation strategies or conduct behavior analysis. This helps to more accurately understand the user's usage pattern and avoid calculation errors caused by multiple applications in a short period of time, which affects the accuracy of the final result.

[0062] In another preferred embodiment of the present invention, the primary users with a time coefficient TX<0 are eliminated and do not participate in subsequent steps.

[0063] It should be noted that if the time coefficient TX is less than 0, continuing the backward calculation will lead to errors in the calculation results. Therefore, for the accuracy of the results, the first-level users with time coefficient TX less than 0 are eliminated and do not participate in the 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 IPs that are not allocated and whose host bit number is x-1 are recorded as candidate IPs, the candidate IPs are converted into dotted decimal system and sorted in ascending order, and the first Y-Z candidate IPs and Z candidate IPs are allocated to the primary user;

[0065] If the number of IPs to be allocated Z=0, the unallocated IPs with the host bit number x+1 are recorded as extended IPs, Y extended IPs are allocated to the first-level users, the extended IPs are converted into dotted decimal notation and sorted in ascending order, and the first Y extended IPs are allocated to the first-level users.

[0066] It can be understood that through a flexible IP allocation mechanism, the most appropriate IP is dynamically selected for allocation based on the relationship between the actual available IP resources and user needs, which takes into account 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 host bit number x satisfying Y-(2x-2)=0, Y IPs with a host bit number x+1 are allocated to the primary user.

[0068] It is worth noting that when there is a host bit x such that Y-(2x-2)=0, it means that the current IP quantity Y required can be met by adding x host bits, that is, (2x-2) equals Y. In this case, Y IP addresses with a host bit of x+1 are selected and allocated to the first-level users for the sake of future scalability and to avoid subsequent management troubles. This achieves the purpose of simplifying management. Maintaining the continuity of IP addresses helps to simplify network management and monitoring, because continuous IP addresses are easier to track and maintain.

[0069] At the same time, it is easy to expand. As user needs grow, having additional IP address space can more easily cope with future expansion needs without the need for frequent replanning and reassignment of IP addresses.

[0070] In another preferred embodiment of the present invention, the number of available IP addresses in the current cloud office system is calculated. Among them, the host bit threshold I=24-Iw, Iw represents the preset network number bit, Zi represents the number of unassigned IPs and the host bit number i, if the number of available IPs W is less than the preset lower limit Wmin, the cloud office system sends an early warning prompt.

[0071] It is worth noting that the number of IPs is limited, but user demand is increasing. No matter how IP addresses are allocated, they will be used up. When the remaining number of available IPs W is less than the preset lower limit Wmin, the cloud office system sends an early warning to inform the staff to handle it in time.

[0072] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.

Claims

1. A method for controlling the allocation of fixed IP addresses of multiple users in a cloud office system, characterized in that: The following steps are involved: S1: Obtain the number of times N that a user applies for an IP from the cloud office system, mark the user whose number N is greater than a preset number threshold Nmax as a first-level user, obtain the time point at which the first-level user applies for the IP, take it as the target time point, and calculate the average time interval ΔT between two adjacent target time points; S2: Obtain the duration of the IP used by the first-level user, calculate the average value Dave of the duration, and calculate the time coefficient TX of the first-level user = λlog( 1+ΔT )Dave, where λ represents the preset time adjustment coefficient; Obtain the quantity requirement of the first-level users, where the quantity requirement represents the number of devices participating in the cloud office, calculate the average value Qave of the quantity requirement, and calculate the usage coefficient S=Qave*TX; S3: Sort the first-level users according to the usage coefficient S from high to low to obtain the usage coefficient ranking; Starting from the first-level user X in the usage coefficient ranking, the first quantity requirement Y=Qave*B of the first-level user X is calculated, where B represents a preset high quantity requirement ratio, and the number of host bits x corresponding to the first-level user X is determined, and the number of host bits x satisfies the constraint: The unallocated IPs with x host bits are recorded as IPs to be allocated, and the number Z of IPs to be allocated is obtained. If the number Z of IPs to be allocated is ≠ 0 and Z>Y, the IPs to be allocated are converted into dotted decimal system and sorted in ascending order, the first Y IPs to be allocated are allocated to primary users, the primary user X is removed from the usage coefficient sorting, and the above steps are repeated until all primary users in the usage coefficient sorting are removed.

2. A method for controlling the allocation of fixed IP addresses of multiple users in a cloud office system according to claim 1, characterized in that: In the step S1, the date Rlast of the first-level user's most recent application for the IP from the current date R is obtained, and the date difference RC=R-Rlast is calculated. The first-level users whose date difference RC is greater than the preset judgment threshold RCmax are recorded as expired users, and the IP allocated to the expired users is recovered.

3. A method for controlling the allocation of fixed IP addresses of multiple users in a cloud office system according to claim 1, characterized in that: In the step S3, the total number of times NX that the first-level user X applies for the IP is obtained, and the number N1 of the number requirements of the first-level user X that is greater than the average value Qave of the number requirements is obtained, and the high number requirement ratio B=1+N1 / NX, wherein N1 represents the number of times the number requirement of the first-level user X is greater than the average value Qave of the number requirements, and NX represents the total number of times the first-level user X applies for the IP.

4. A method for controlling the allocation of fixed IP addresses of multiple users in a cloud office system according to claim 1, characterized in that: In step S1, the time interval between two adjacent target time points is calculated, TCn,n+1=Tn-Tn-1. If the time interval TCn,n +1 If the value is less than the preset minimum judgment time Tmin, it is recorded as the IP described in the first application, where Tn represents the time point of the IP described in the nth application.

5. A method for controlling the allocation of fixed IP addresses of multiple users in a cloud office system according to claim 1, characterized in that: In the step S2, the primary users with a time coefficient TX < 0 are eliminated and do not participate in the subsequent steps.

6. A method for controlling the allocation of fixed IP addresses of multiple users in a cloud office system according to claim 1, characterized in that: In the step S3, if the number of IPs to be allocated Z≠0 and Z<Y, the IPs that are not allocated and whose host bit number is 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 user; If the number of IPs to be allocated Z=0, the unallocated IPs with the host bit number x+1 are recorded as extended IPs, Y extended IPs are allocated to the first-level users, the extended IPs are converted into dotted decimal notation and sorted in ascending order, and the first Y extended IPs are allocated to the first-level users.

7. A method for controlling the allocation of fixed IP addresses of multiple users in a cloud office system according to claim 1, characterized in that: In step S3, if there is a host bit number x that satisfies Y-(2x-2)=0, Y IPs whose host bit number is x+1 are allocated to the primary user.

8. A method for controlling the allocation of fixed IP addresses of multiple users in a cloud office system according to claim 1, characterized in that: In step S3, the number of available IP addresses in the current cloud office system is calculated. Among them, the host bit threshold I=24-Iw, Iw represents the preset network number bit, Zi represents the number of unassigned IPs and the host bit number i, if the number of available IPs W is less than the preset lower limit Wmin, the cloud office system sends an early warning prompt.

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

  • Address allocation method of multi-motor networking control system

    CN115955460A