CN109495595A - IP address distribution method, device, communication system and storage medium - Google Patents

IP address distribution method, device, communication system and storage medium Download PDF

Info

Publication number
CN109495595A
CN109495595A CN201710819594.2A CN201710819594A CN109495595A CN 109495595 A CN109495595 A CN 109495595A CN 201710819594 A CN201710819594 A CN 201710819594A CN 109495595 A CN109495595 A CN 109495595A
Authority
CN
China
Prior art keywords
address
user
classification
block
user group
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710819594.2A
Other languages
Chinese (zh)
Other versions
CN109495595B (en
Inventor
王海宁
雷波
李晨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201710819594.2A priority Critical patent/CN109495595B/en
Publication of CN109495595A publication Critical patent/CN109495595A/en
Application granted granted Critical
Publication of CN109495595B publication Critical patent/CN109495595B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/30Managing network names, e.g. use of aliases or nicknames
    • H04L61/3015Name registration, generation or assignment

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of IP address distribution method, device, communication system and storage medium, method therein includes: the behavioural characteristic extracted user in secondary IP address usage history data and use IP address;Classified according to behavioural characteristic to user, determines user group's classification that user is belonged to;The userbase for determining user group's classification determines the corresponding IP address scale of user group's classification according to userbase;IP address Pre-Allocation Policies are generated according to user group's classification and IP address scale, carry out IP address distribution based on IP address Pre-Allocation Policies.Method, apparatus, communication system and storage medium of the invention, can intelligent adaptive adjust user's block size, reduce the time loss of user's block resource adjustment, strong operability, practicability is high;The distribution of IP address is dynamically adapted, request can be focused on, the reallocation of IP address block resource is adaptive strong, and utilization rate is high, and the period of reallocating is short.

Description

IP address distribution method, device, communication system and storage medium
Technical field
The present invention relates to field of communication technology more particularly to a kind of IP address distribution method, device, analysis system and deposit Storage media.
Background technique
Intelligent dynamic IP allocation strategy be network intelligence engine in terms of one of important application, for example, in Metropolitan Area Network (MAN) IPv4 address resource carry out intelligent classification, then United Dispatching management is carried out by VBRAS.Currently, for existing IPv4's There are the following problems: IPv4 Address Run Short using upper, remaining address dispersion;The address IPv4 utilization rate is low, and (home address utilizes Rate is low, such as by tidal effect);Equipment room does not share address, using inadequate etc..Currently by manually carrying out pipe to the address IPv4 Reason can not preferably solve the above problems, and there are configuration process it is complicated, the configuration period is long the problems such as.Accordingly, it is desirable to provide A kind of novel IP address distribution method.
Summary of the invention
In view of this, the invention solves a technical problem be to provide a kind of IP address distribution method, device and point Analysis system.
According to an aspect of the present invention, a kind of IP address distribution method is provided, comprising: the IP address for obtaining user uses Historical data;The behavioural characteristic that user uses IP address is extracted from the IP address usage history data;According to the behavior Feature classifies to user, determines user group's classification that user is belonged to;Determine user's rule of user group's classification Mould determines the corresponding IP address scale of user group's classification according to the userbase;According to user group's classification and IP address scale generates IP address Pre-Allocation Policies, carries out IP address distribution based on the IP address Pre-Allocation Policies.
Optionally, described that IP address Pre-Allocation Policies packet is generated according to user group's classification and IP address scale It includes: generating at least one IP address block corresponding with user group's classification.
Optionally, described to carry out IP address to distribute including: to receive user's transmission based on the IP address Pre-Allocation Policies Address assignment request;Determine user group's classification belonging to user;From IP address block corresponding with this user group's classification It obtains the IP address being in idle condition and is allocated to user, set use state for this IP address after configuration successful.
Optionally, user group's classification that the determining user is belonged to includes: setting and user group's classification phase Corresponding class label;Using the class label to the user for belonging to user group's classification and with the user group The corresponding IP address block of classification is identified.
Optionally, described to obtain the IP address being in idle condition from IP address block corresponding with this user group's classification And it is allocated to user further include: determine the corresponding class label of user;Based on class label determination and this user group's class Not corresponding IP address block.
Optionally, described to obtain the IP address being in idle condition from IP address block corresponding with this user group's classification And be allocated to user and comprise determining that the highest IP address being in idle condition of frequency of use in IP address block, by this IP address It is allocated to user.
Optionally it is determined that the IP address for whether thering is this user to have used in IP address block, if there is and determine this IP address is in idle condition, then this IP address is preferentially distributed to this user.
Optionally, an IP address block is chosen from multiple IP address blocks corresponding with user group's classification as distribution Block obtains the IP address being in idle condition from distribution block and is allocated to user;The IP of idle state in judgement distribution block Whether the quantity of location is less than or equal to reallocation activation threshold value;If it is, being chosen from the multiple IP address block idle IP address block obtains the IP address being in idle condition from secondary ip address block and is allocated to use as secondary ip address block Family.
Optionally, when determining whole IP address in IP address block is all idle state, whether judge this IP address block For secondary ip address block, if it is not, then being recycled to the IP address in this IP address block.
Optionally, if within the preset period, determine that the address need of user is not matched that with the IP address being configured Number reach preset distribution adjustment activation threshold value, then classify again to user and determine the user group that user is belonged to Body classification.
Optionally, it is described according to the behavioural characteristic to user carry out classification include: according to the behavioural characteristic to user The algorithm for carrying out classification use includes: K-means clustering algorithm.
Optionally, the behavioural characteristic includes: the time of IP address requesting, the time of online, online duration, online frequency Rate.
Optionally, the IP address usage history data for obtaining user include: acquisition journal file, according to the log IP address usage history data described in file acquisition.
According to another aspect of the present invention, a kind of IP address distributor is provided, comprising: data acquisition module, for obtaining Take the IP address usage history data at family;Data analysis module is used for extracting from the IP address usage history data Family uses the behavioural characteristic of IP address;User's categorization module is determined and is used for being classified according to the behavioural characteristic to user User group's classification that family is belonged to;Strategy establishes module, for determining the userbase of user group's classification, according to institute It states userbase and determines the corresponding IP address scale of user group's classification, according to user group's classification and IP address scale Generate IP address Pre-Allocation Policies;Address assignment module, for carrying out IP address distribution based on the IP address Pre-Allocation Policies.
Optionally, the strategy establishes module, for generating at least one IP corresponding with user group's classification Location block.
Optionally, the address assignment module determines belonging to user for receiving the address assignment request of user's transmission User group's classification, obtain the IP address being in idle condition from IP address block corresponding with this user group's classification and match It sets to user, sets use state for this IP address after configuration successful.
Optionally, user's categorization module, for class label corresponding with user group's classification, benefit to be arranged The user for belonging to user group's classification is identified with the class label;The strategy establishes module, for utilizing The class label pair IP address block corresponding with user group's classification is identified.
Optionally, the address assignment module, it is true based on the class label for determining the corresponding class label of user Fixed IP address block corresponding with this user group's classification.
Optionally, the address assignment module is in idle condition for determining in IP address block that frequency of use is highest IP address, this IP address is allocated to user.
Optionally, the address assignment module, for determining the IP for whether thering is this user to have used in IP address block Address, if there is and determine this IP address be in idle condition, then this IP address is preferentially distributed into this user.
Optionally, the address assignment module, for being chosen from multiple IP address blocks corresponding with user group's classification One IP address block obtains the IP address being in idle condition from distribution block and is allocated to user as distribution block;Judgement point Whether the quantity with the IP address of idle state in block is less than or equal to reallocation activation threshold value;If it is, from the multiple Idle IP address block is chosen in IP address block as secondary ip address block, is obtained and is in idle condition from secondary ip address block IP address and be allocated to user.
Optionally, address recycling module, for sentencing when determining whole IP address in IP address block is all idle state Whether this IP address block that breaks is secondary ip address block, if it is not, then recycling to the IP address in this IP address block.
Optionally, user's categorization module, if for determining the address need and quilt of user within the preset period The number that the IP address of configuration does not match that reaches preset distribution adjustment activation threshold value, then classify simultaneously really to user again Determine user group's classification that user is belonged to.
Optionally, user's categorization module, for carrying out the algorithm of classification use to user according to the behavioural characteristic It include: K-means clustering algorithm.
Optionally, the behavioural characteristic includes: the time of IP address requesting, the time of online, online duration, online frequency Rate.
Optionally, the data acquisition module, for obtaining journal file, with obtaining the IP according to the journal file Location usage history data.
According to another aspect of the invention, a kind of communication system is provided, comprising: as described in any one of claim 14 to 26 IP address distributor.
Optionally, further includes: virtualization Broadband Remote Access Server VBRAS, the address of the IP address distributor Distribution module is arranged in the VBRAS.
Also one side according to the present invention, provides a kind of IP address distributor, comprising: memory;And it is coupled to institute The processor of memory is stated, the processor is configured to the instruction based on storage in the memory, executes as above any IP address distribution method described in.
In accordance with a further aspect of the present invention, a kind of computer readable storage medium, the computer-readable storage medium are provided Matter is stored with computer instruction, and as above described in any item IP address distribution methods are realized when described instruction is executed by processor.
IP address distribution method, device, analysis system and storage medium of the invention, secondary IP address usage history data The middle behavioural characteristic extracted user and use IP address determines user group's classification and corresponding IP address rule that user is belonged to Mould generates IP address Pre-Allocation Policies according to the division of user group's classification and IP address scale, carries out IP address distribution;Place Real-time dynamic requests are managed, the address IPv4 is recycled or reallocated in time, the user's energy to change to behavior state It is enough to make adjustment in time;Can intelligent adaptive adjust user's block size, reduce user's block resource adjustment time loss;To IP The distribution of address is dynamically adapted, and can focus on request, efficient administration, the reallocation of IP address block resource is adaptive strong, benefit With rate height, the period of reallocating is short.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only Some embodiments of the present invention, for those of ordinary skill in the art, without any creative labor, also Other drawings may be obtained according to these drawings without any creative labor.
Fig. 1 is the flow diagram of one embodiment of IP address distribution method according to the present invention;
Fig. 2 is showing the process that user classifies in one embodiment of IP address distribution method according to the present invention It is intended to;
Fig. 3 is to carry out IP address distribution to user in one embodiment of IP address distribution method according to the present invention Flow diagram;
Fig. 4 is the process recycled to IP address in one embodiment of IP address distribution method according to the present invention Schematic diagram;
Fig. 5 is the module diagram of one embodiment of IP address distributor according to the present invention;
Fig. 6 is the module diagram of another embodiment of IP address distributor according to the present invention.
Specific embodiment
With reference to the accompanying drawings to invention is more fully described, wherein illustrating exemplary embodiment of the present invention.Under Face will combine the attached drawing in the embodiment of the present invention, and technical scheme in the embodiment of the invention is clearly and completely described, show So, described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Based on the reality in the present invention Example is applied, every other embodiment obtained by those of ordinary skill in the art without making creative efforts all belongs to In the scope of protection of the invention.
Fig. 1 is the flow diagram of one embodiment of IP address distribution method according to the present invention, as shown in Figure 1:
Step 101, the IP address usage history data of user are obtained.The IP address usage history data for obtaining user can be with There are many methods, such as obtain journal file, obtain IP address usage history data according to journal file.
Step 102, the behavioural characteristic that user uses IP address is extracted in secondary IP address usage history data.
Step 103, classified according to behavioural characteristic to user, determine user group's classification that user is belonged to.
Step 104, the userbase for determining user group's classification determines that user group's classification is corresponding according to userbase IP address scale.
Step 105, IP address Pre-Allocation Policies are generated according to user group's classification and IP address scale, is based on IP address Pre-Allocation Policies carry out IP address distribution.Generating IP address Pre-Allocation Policies includes: that generation is corresponding with user group's classification extremely Few IP address block etc..
In one embodiment, many algorithms can be used by being classified according to behavioural characteristic to user.For example, according to row It is characterized that user classify and model is established using K-means clustering algorithm.K-means algorithm is data point to certain of prototype Objective function of the kind distance as optimization obtains the adjustment rule of interative computation using the method that function seeks extreme value.K-means is calculated Method can seek corresponding a certain initial cluster center vector V optimal classification, so that evaluation index using Euclidean distance as similarity measure J is minimum.User uses the time, the time of online, online duration, online that the behavioural characteristic of IP address includes: IP address requesting Frequency etc..Model can be established using existing a variety of modeling methods based on K-means clustering algorithm, according to behavioural characteristic pair User classifies.
Receive user transmission address assignment request, determine user group's classification belonging to user, from this user group The IP address being in idle condition is obtained in the corresponding IP address block of body classification and is allocated to user, by this IP after configuration successful Address is set as use state.Class label corresponding with user group's classification can be set, using class label to belonging to The user of user group's classification and IP address block corresponding with user group's classification are identified.When receive user transmission When address assignment request, the corresponding class label of user is determined, it is corresponding with this user group's classification based on class label determination IP address block obtains the IP address being in idle condition from this IP address block and is allocated to user.
It determines the highest IP address being in idle condition of frequency of use in IP address block, this IP address is allocated to use Family.The IP address for whether having this user to have used in IP address block determined, if there is and determine this IP address be in sky This IP address is then preferentially distributed to this user by not busy state, i.e., " IP address being in idle condition having used " is preferential It is allocated with " the highest IP address being in idle condition of frequency of use in IP address block ".
Fig. 2 is showing the process that user classifies in one embodiment of IP address distribution method according to the present invention It is intended to, as shown in Figure 2:
Step 201, journal file is obtained, IP address usage history data are obtained according to journal file.
Backstage crawl is carried out to the data of IP address history service condition, can be obtained by the inquiry to journal file It takes.IP address usage history data can have multiple data, such as user uses the time of IP address earliest daily, and user is daily Surf time uses the total duration of IP address for user one week, and user is in the upper of peak period (such as 8 points to 10 points at night) in one week Net number of days, online number of days etc. of the user in peak period in January.
Step 202, IP address usage history data are deposited into customer data base.
Step 203, IP address usage history data are read from customer data base, carry out data cleansing and data preparation
For example, customer data base is hive database, qualified data are screened with MySQL language (such as User's price bidding of specific date, qualifications are then date) log database and input inquiry sentence: SELECT* FROM user_IP_info WHERE date=' 2017-09-09 ' is used the data filtered out as the IP address needed Historical data.
Data cleansing and data preparation are carried out to IP address usage history data, carry out the pretreatment work of data, finally Data format is such as: user equipment ID, ground Field Number, daily IP address demand period, festivals or holidays IP address service condition, working day And weekend IP address service condition.IP address usage history data generate user using IP after data cleansing and arranging The behavioural characteristic data of location.
Step 204, building model is carried out using K-means clustering algorithm.
Carry out building model using K-means clustering algorithm, according to user use IP address behavioural characteristic, by user into Row cluster classification, the user different to IP address demand carry out label setting.For example, Behavior-based control feature, wide according to virtualization Quantity with remote access server adjusts mass center number, the data of input is aggregated into according to the similarity degree of feature different The library sk-learn in Python can be used in cluster, that is, the classification of the user divided.For example, result such as the following table 1 of user's classification It is shown:
User ID User group's classification of ownership
0001 A
0002 B
0003 A
0004 C
The result table of table 1- user classification
In table 1, the category feature of A are as follows: daily 16:00-21:00 high frequency is surfed the Internet using IP address;The category feature of B Are as follows: daily 20:00-23:00 high frequency is surfed the Internet using IP address;The category feature of C are as follows: daily 00:00-02:00 high frequency uses IP address online.
In one embodiment, according to the scale of each user group's classification, the scale of IP address block is formulated.Such as: belong to X people is shared in the user of user group's classification, the IP address quantity for including in settable IP address block is α × x, and α is system, can To increase by 10% or so amount of redundancy on the number of users for belonging to each user group's classification so that elasticity handles actual conditions.According to The dividing condition and IP address block size of user group's classification, formulate preliminary IP address Pre-Allocation Policies.
IP address allocation strategy is transferred in V-Bras system and is configured.Several continuous IP address blocks can be set Enter in a V-Bras, V-Bras is responsible for being managed collectively these IP address blocks.When user proposes IP address demand to V-Bras, V-Bras can find corresponding IP address set of blocks according to user tag, and configure the currently used highest IP address block of rate for it In address if the IP address that the user's history uses is currently in idle state, preferentially configure the ground to it on this basis Location.For example, user's M IP address requesting, determines the corresponding IP address block of the class of subscriber of M, first unused IP is therefrom selected Distribute to user M in address.
Fig. 3 is to carry out IP address distribution to user in one embodiment of IP address distribution method according to the present invention Flow diagram, as shown in Figure 3:
Step 301, an IP address block is chosen from multiple IP address blocks corresponding with user group's classification as distribution Block obtains the IP address being in idle condition from distribution block and is allocated to user.
Step 302, judge whether the quantity for distributing the IP address of idle state in block is less than or equal to reallocation firing level Value.Reallocation activation threshold value can be configured according to specific demand, or percentage.
Step 303, if it is, choosing idle IP address block from multiple IP address blocks as secondary ip address block, The IP address being in idle condition is obtained from secondary ip address block and is allocated to user.For example, if detecting certain current block The usage amount of IP address has reached activation threshold value, then prepares the idle IP address for belonging to the same category label for it Block, as standby address block.
Fig. 4 is the process recycled to IP address in one embodiment of IP address distribution method according to the present invention Schematic diagram, as shown in Figure 4:
Step 401, determine that whole IP address in IP address block are all idle state.
Step 402, judge whether this IP address block is secondary ip address block.
Step 403, if it is not, then being recycled to the IP address in this IP address block.
For example, the address of the last one use state of certain IP address block is changed into idle state, in certain IP address block Address is completely idle, judges whether the IP address block is secondary ip address block, if secondary ip address block, does not then do any place Reason;If it is not, then unified recycling is carried out to the IP address in this section of IP address block, for later distribution.It can pass through in real time Interface is monitored to receive the service condition of the IP address block in range of management, and is counted.
If determining that the address need of user is reached with the number that the IP address being configured does not match that within the preset period Activation threshold value is adjusted to preset distribution, then classifies again to user and determines user group's classification that user is belonged to. When the IP address demand of a certain user is occurred repeatedly whithin a period of time with not being inconsistent based on the IP address that Pre-Allocation Policies distribute, Pre-Allocation Policies adjustment process will be triggered.Feelings are not inconsistent to IP address demand and the IP address based on Pre-Allocation Policies distribution The user of condition records, and setting distribution adjustment activation threshold value, the number for not being inconsistent situation reaches distribution adjustment triggering The user of threshold number, merging are reallocated in set, carry out reclassifying division to the user in set of reallocating.
Due to after a period of time, the corresponding user of certain IP address blocks because of certain subjective or odjective cause, on Net habit changes, and reaches certain proportion (such as 40% user has not met original feature habit), then again Classify to user and determine user group's classification that user is belonged to, reformulates the rule of each IP address block of predistribution Mould generates Pre-Allocation Policies adjusted, carries out the distribution of IP address.
IP address distribution method provided by the above embodiment, can intelligent adaptive adjust user's block size, reduce user User's number of blocks and scale the predistribution granularity of the time loss of block resource adjustment, use are small, strong operability, and practicability is high;It is right The distribution of IP address is dynamically adapted, and convenient for management, controllability is strong;Request can be focused on, IP address block resource is reallocated Adaptive strong, utilization rate is high, and the period of reallocating is short, rationalizes the predistribution of the address IPv4 more.
As shown in figure 5, the present invention provides a kind of IP address distributor 50, comprising: data acquisition module 51, data analysis Module 52, user's categorization module 53, strategy establish module 54, address assignment module 55 and address recycling module 56.Data acquisition The IP address usage history data of the acquisition user of module 51.It extracts and uses in 52 secondary IP address usage history data of data analysis module Family uses the behavioural characteristic of IP address.User's categorization module 53 classifies to user according to behavioural characteristic, determines that user is returned User group's classification of category.
Strategy establishes the userbase that module 54 determines user group's classification, determines user group's classification according to userbase Corresponding IP address scale generates IP address Pre-Allocation Policies according to user group's classification and IP address scale.Address distribution Module 55 is based on IP address Pre-Allocation Policies and carries out IP address distribution.
Data acquisition module 51 obtains journal file, obtains IP address usage history data according to journal file.User point Generic module 53 includes: K-means clustering algorithm etc. according to the algorithm that behavioural characteristic carries out classification use to user.Strategy establishes mould Block 54 generates at least one IP address block corresponding with user group's classification.Address assignment module 55 receives the ground of user's transmission Location distribution request determines user group's classification belonging to user, obtains from IP address block corresponding with this user group's classification The IP address that is in idle condition simultaneously is allocated to user, sets use state for this IP address after configuration successful.User point Class label corresponding with user group's classification is arranged in generic module 53, using class label to the use for belonging to user group's classification Family is identified.Strategy is established module 54 and is identified using class label pair IP address block corresponding with user group's classification.
Address assignment module 55 determines the corresponding class label of user, based on class label determination and this user group's classification Corresponding IP address block.Address assignment module 55 determines the frequency of use highest IP being in idle condition in IP address block This IP address is allocated to user by location.Whether address assignment module 55 determines in IP address block has this user to have used IP address, if there is and determine this IP address be in idle condition, then this IP address is preferentially distributed into this user.
Address assignment module 55 is chosen an IP address block from multiple IP address blocks corresponding with user group's classification and is made To distribute block, the IP address being in idle condition is obtained from distribution block and is allocated to user.The judgement point of address assignment module 55 Whether the quantity with the IP address of idle state in block is less than or equal to reallocation activation threshold value, if it is, mould is distributed in address Block 55 chooses idle IP address block as secondary ip address block from multiple IP address blocks, acquisition place from secondary ip address block In idle state IP address and be allocated to user.
Address recycling module 56 judges this IP address when determining whole IP address in IP address block is all idle state Whether block is secondary ip address block, if it is not, then recycling to the IP address in this IP address block.User's categorization module 53 is such as For fruit within the preset period, the number for determining that the address need of user and the IP address being configured do not match that reaches preset point With adjustment activation threshold value, then classifies again to user and determine user group's classification that user is belonged to.
In one embodiment, the present invention provides a kind of communication system, including the IP address in any one embodiment as above Distributor.The address assignment module 55 of IP address distributor can be set remote in virtualization broadband with address recycling module 56 In journey access server VBRAS, VBRAS concentrates the IP address block for being responsible for partial region.
Fig. 6 is the module diagram of another embodiment of IP address distributor according to the present invention.As shown in fig. 6, The device may include memory 61, processor 62, communication interface 63 and bus 66.Memory 61 for storing instruction, is handled Device 62 is coupled to memory 61, and processor 62 is configured as realizing above-mentioned IP address based on the instruction execution that memory 61 stores Distribution method.
Memory 61 can be high speed RAM memory, nonvolatile memory (non-volatile memory) etc., deposit Reservoir 61 is also possible to memory array.Memory 61 is also possible to by piecemeal, and block can be combined into virtually by certain rule Volume.Processor 62 can be central processor CPU or application-specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement IP address distribution method of the invention one or more it is integrated Circuit.
In one embodiment, the present invention provides a kind of computer readable storage medium, and computer readable storage medium is deposited Computer instruction is contained, the IP address distribution method in as above any one embodiment is realized when instruction is executed by processor.
IP address distribution method, device, analysis system and storage medium provided by the above embodiment, secondary IP address use The behavioural characteristic that user uses IP address is extracted in historical data, determines user group's classification that user is belonged to and corresponding IP address scale generates IP address Pre-Allocation Policies according to the division of user group's classification and IP address scale, with carrying out IP Location distribution;Real-time dynamic requests are capable of handling, the address IPv4 is recycled or reallocated in time, behavior state is occurred The user of change can make adjustment in time;Can intelligent adaptive adjust user's block size, reduce user's block resource adjustment User's number of blocks and scale the predistribution granularity of time loss, use are small, strong operability, and practicability is high;Distribution to IP address It is dynamically adapted, convenient for management, controllability is strong;Request, efficient administration can be focused on, IP address block resource is reallocated adaptive Ying Qiang, utilization rate is high, and the period of reallocating is short, rationalizes the predistribution of the address IPv4 more.
Method and system of the invention may be achieved in many ways.For example, can by software, hardware, firmware or Software, hardware, firmware any combination realize method and system of the invention.The said sequence of the step of for method is only In order to be illustrated, the step of method of the invention, is not limited to sequence described in detail above, especially says unless otherwise It is bright.In addition, in some embodiments, also the present invention can be embodied as to record program in the recording medium, these programs include For realizing machine readable instructions according to the method for the present invention.Thus, the present invention also covers storage for executing according to this hair The recording medium of the program of bright method.
Description of the invention is given for the purpose of illustration and description, and is not exhaustively or will be of the invention It is limited to disclosed form.Many modifications and variations are obvious for the ordinary skill in the art.It selects and retouches It states embodiment and is to more preferably illustrate the principle of the present invention and practical application, and those skilled in the art is enable to manage The solution present invention is to design various embodiments suitable for specific applications with various modifications.

Claims (30)

1. a kind of IP address distribution method characterized by comprising
Obtain the IP address usage history data of user;
The behavioural characteristic that user uses IP address is extracted from the IP address usage history data;
Classified according to the behavioural characteristic to user, determines user group's classification that user is belonged to;
The userbase for determining user group's classification, with determining the corresponding IP of user group's classification according to the userbase Location scale;
IP address Pre-Allocation Policies are generated according to user group's classification and IP address scale, are divided in advance based on the IP address IP address distribution is carried out with strategy.
2. the method as described in claim 1, which is characterized in that described according to user group's classification and IP address scale Generating IP address Pre-Allocation Policies includes:
Generate at least one IP address block corresponding with user group's classification.
3. method according to claim 2, which is characterized in that described to carry out IP address based on the IP address Pre-Allocation Policies Distribution includes:
Receive the address assignment request of user's transmission;
Determine user group's classification belonging to user;
The IP address being in idle condition is obtained from IP address block corresponding with this user group's classification and is allocated to user, Use state is set by this IP address after configuration successful.
4. method as claimed in claim 3, which is characterized in that user group's classification that the determining user is belonged to includes:
Class label corresponding with user group's classification is set;
Using the class label to the user for belonging to user group's classification and corresponding with user group's classification IP address block is identified.
5. method as claimed in claim 4, which is characterized in that described from IP address block corresponding with this user group's classification It obtains the IP address being in idle condition and is allocated to user further include:
Determine the corresponding class label of user;
IP address block corresponding with this user group's classification is determined based on the class label.
6. method as claimed in claim 3, which is characterized in that described from IP address block corresponding with this user group's classification It obtains the IP address being in idle condition and is allocated to user and include:
It determines the highest IP address being in idle condition of frequency of use in IP address block, this IP address is allocated to user.
7. method as claimed in claim 6, which is characterized in that further include:
The IP address for whether having this user to have used in IP address block determined, if there is and determine this IP address be in sky This IP address is then preferentially distributed to this user by not busy state.
8. method as claimed in claim 3, which is characterized in that further include:
An IP address block is chosen from multiple IP address blocks corresponding with user group's classification as distribution block, from distribution block It obtains the IP address being in idle condition and is allocated to user;
Judge whether the quantity for distributing the IP address of idle state in block is less than or equal to reallocation activation threshold value;
If it is, choosing idle IP address block from the multiple IP address block as secondary ip address block, from spare IP The IP address being in idle condition is obtained in address block and is allocated to user.
9. method according to claim 8, which is characterized in that further include:
When determining whole IP address in IP address block is all idle state, judge whether this IP address block is secondary ip address Block, if it is not, then being recycled to the IP address in this IP address block.
10. method as claimed in claim 3, which is characterized in that further include:
If determining that the address need of user reaches pre- with the number that the IP address being configured does not match that within the preset period If distribution adjust activation threshold value, then classify again to user and determine user group's classification that user is belonged to.
11. the method as described in claim 1, which is characterized in that described to carry out classification packet to user according to the behavioural characteristic It includes:
It include: K-means clustering algorithm according to the algorithm that the behavioural characteristic carries out classification use to user.
12. the method as described in claim 1, which is characterized in that
The behavioural characteristic includes: the time of IP address requesting, the time of online, online duration, frequency of surfing the Net.
13. the method as described in claim 1, which is characterized in that it is described obtain user IP address usage history data include:
Journal file is obtained, the IP address usage history data are obtained according to the journal file.
14. a kind of IP address distributor characterized by comprising
Data acquisition module, for obtaining the IP address usage history data of user;
Data analysis module, the behavioural characteristic for using IP address for extracting user from the IP address usage history data;
User's categorization module determines the user group that user is belonged to for classifying according to the behavioural characteristic to user Classification;
Strategy establishes module, for determining the userbase of user group's classification, determines user according to the userbase The corresponding IP address scale of demographic categories generates IP address according to user group's classification and IP address scale and pre-allocates plan Slightly;
Address assignment module, for carrying out IP address distribution based on the IP address Pre-Allocation Policies.
15. device as claimed in claim 14, which is characterized in that
The strategy establishes module, for generating at least one IP address block corresponding with user group's classification.
16. device as claimed in claim 15, which is characterized in that
The address assignment module determines user group belonging to user for receiving the address assignment request of user's transmission Classification obtains the IP address being in idle condition from IP address block corresponding with this user group's classification and is allocated to user, Use state is set by this IP address after configuration successful.
17. device as claimed in claim 16, which is characterized in that
User's categorization module utilizes the classification for class label corresponding with user group's classification to be arranged Label is identified the user for belonging to user group's classification;
The strategy establishes module, for using corresponding with the user group's classification IP address block of the class label pair into Line identifier.
18. device as claimed in claim 17, which is characterized in that
The address assignment module, for determining the corresponding class label of user, based on class label determination and this user The corresponding IP address block of demographic categories.
19. device as claimed in claim 16, which is characterized in that
The address assignment module will for determining the highest IP address being in idle condition of frequency of use in IP address block This IP address is allocated to user.
20. device as claimed in claim 19, which is characterized in that
The address assignment module, for determining the IP address for whether thering is this user to have used in IP address block, if there is And it determines that this IP address is in idle condition, then this IP address is preferentially distributed into this user.
21. device as claimed in claim 16, which is characterized in that
The address assignment module, for choosing an IP address block from multiple IP address blocks corresponding with user group's classification As distribution block, the IP address being in idle condition is obtained from distribution block and is allocated to user;Idle shape in judgement distribution block Whether the quantity of the IP address of state is less than or equal to reallocation activation threshold value;If it is, being selected from the multiple IP address block It takes idle IP address block as secondary ip address block, the IP address being in idle condition is obtained from secondary ip address block and is matched It sets to user.
22. device as claimed in claim 21, which is characterized in that further include:
Address recycling module, for judging this IP address when determining whole IP address in IP address block is all idle state Whether block is secondary ip address block, if it is not, then recycling to the IP address in this IP address block.
23. device as claimed in claim 21, which is characterized in that further include:
User's categorization module, if for within the preset period, determining the address need of user and the IP being configured The number that location does not match that reaches preset distribution adjustment activation threshold value, then classifies again to user and determine that user is returned User group's classification of category.
24. device as claimed in claim 14, which is characterized in that
User's categorization module, the algorithm for carrying out classification use to user according to the behavioural characteristic includes: K-means Clustering algorithm.
25. device as claimed in claim 14, which is characterized in that
The behavioural characteristic includes: the time of IP address requesting, the time of online, online duration, frequency of surfing the Net.
26. device as claimed in claim 14, which is characterized in that
The data acquisition module obtains the IP address usage history according to the journal file for obtaining journal file Data.
27. a kind of communication system characterized by comprising
Such as the described in any item IP address distributors of claim 14 to 26.
28. system as claimed in claim 27, which is characterized in that further include:
Broadband Remote Access Server VBRAS is virtualized, the address assignment module of the IP address distributor is arranged described In VBRAS.
29. a kind of IP address distributor characterized by comprising
Memory;And
It is coupled to the processor of the memory, the processor is configured to the instruction based on storage in the memory, Execute the IP address distribution method as described in any one of claims 1 to 13.
30. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer to refer to It enables, the IP address distribution method as described in any one of claims 1 to 13 is realized when described instruction is executed by processor.
CN201710819594.2A 2017-09-13 2017-09-13 IP address allocation method, device, communication system and storage medium Active CN109495595B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710819594.2A CN109495595B (en) 2017-09-13 2017-09-13 IP address allocation method, device, communication system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710819594.2A CN109495595B (en) 2017-09-13 2017-09-13 IP address allocation method, device, communication system and storage medium

Publications (2)

Publication Number Publication Date
CN109495595A true CN109495595A (en) 2019-03-19
CN109495595B CN109495595B (en) 2022-04-08

Family

ID=65688714

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710819594.2A Active CN109495595B (en) 2017-09-13 2017-09-13 IP address allocation method, device, communication system and storage medium

Country Status (1)

Country Link
CN (1) CN109495595B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111371912A (en) * 2020-02-19 2020-07-03 中国铁路信息科技集团有限公司 IP address management system and method based on state
CN111756865A (en) * 2019-03-28 2020-10-09 苏州铭威天欣信息科技有限公司 Communication management method for base station and user terminal
CN114567617A (en) * 2022-02-25 2022-05-31 苏州浪潮智能科技有限公司 IP address allocation method, system, electronic device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404230A (en) * 2011-12-15 2012-04-04 杭州华三通信技术有限公司 Flow control method and device
CN102694873A (en) * 2011-03-22 2012-09-26 中兴通讯股份有限公司 Address pool distribution system and method
CN103607482A (en) * 2013-11-27 2014-02-26 中国联合网络通信集团有限公司 IP address distribution method and device
CN106131242A (en) * 2016-08-17 2016-11-16 郑州埃文计算机科技有限公司 A kind of sorting technique of IP application scenarios

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102694873A (en) * 2011-03-22 2012-09-26 中兴通讯股份有限公司 Address pool distribution system and method
CN102404230A (en) * 2011-12-15 2012-04-04 杭州华三通信技术有限公司 Flow control method and device
CN103607482A (en) * 2013-11-27 2014-02-26 中国联合网络通信集团有限公司 IP address distribution method and device
CN106131242A (en) * 2016-08-17 2016-11-16 郑州埃文计算机科技有限公司 A kind of sorting technique of IP application scenarios

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111756865A (en) * 2019-03-28 2020-10-09 苏州铭威天欣信息科技有限公司 Communication management method for base station and user terminal
CN111756865B (en) * 2019-03-28 2024-02-09 苏州铭威天欣信息科技有限公司 Communication management method for base station and user terminal
CN111371912A (en) * 2020-02-19 2020-07-03 中国铁路信息科技集团有限公司 IP address management system and method based on state
CN111371912B (en) * 2020-02-19 2022-09-06 中国铁路信息科技集团有限公司 IP address management system and method based on state
CN114567617A (en) * 2022-02-25 2022-05-31 苏州浪潮智能科技有限公司 IP address allocation method, system, electronic device and storage medium
CN114567617B (en) * 2022-02-25 2023-08-04 苏州浪潮智能科技有限公司 IP address allocation method, system, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109495595B (en) 2022-04-08

Similar Documents

Publication Publication Date Title
CN109167835B (en) Physical resource scheduling method and system based on kubernets
CN110166282B (en) Resource allocation method, device, computer equipment and storage medium
CN108984301A (en) Self-adaptive cloud resource allocation method and device
CN110163474A (en) A kind of method and apparatus of task distribution
US8312460B1 (en) Allocating computer resources to workloads using utilization based probability distributions
US20090138883A1 (en) Method and system of managing resources for on-demand computing
CN104317658A (en) MapReduce based load self-adaptive task scheduling method
CN103873528B (en) A kind of method and apparatus for user allocation system resource
CN103491024B (en) Job scheduling method and device for streaming data
CN104168318A (en) Resource service system and resource distribution method thereof
CN109495595A (en) IP address distribution method, device, communication system and storage medium
CN104407926B (en) A kind of dispatching method of cloud computing resources
US7113986B2 (en) System and method for modeling information system capacity and accepting sessions in an information system
CN109005130A (en) network resource allocation scheduling method and device
CN110264039A (en) A kind of generation method and equipment of working report
CN104679595A (en) Application-oriented dynamic resource allocation method for IaaS (Infrastructure As A Service) layer
CN109085999A (en) data processing method and processing system
Darby-Dowman et al. Properties of some combinatorial optimization problems and their effect on the performance of integer programming and constraint logic programming
CN112365366A (en) Micro-grid management method and system based on intelligent 5G slice
CN105491085A (en) Method and device for on-line requesting for queuing
CN106296315A (en) Context aware systems based on user power utilization data
CN105683941A (en) Regulating enterprise database warehouse resource usage
CN107133332A (en) The distribution method and device of a kind of query task
CN101651567A (en) Available risk spread evaluating method
CN109189548B (en) Resource scheduling method, device, computer equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant