CN106027692A - Information acquisition method and device and server - Google Patents
Information acquisition method and device and server Download PDFInfo
- Publication number
- CN106027692A CN106027692A CN201610323698.XA CN201610323698A CN106027692A CN 106027692 A CN106027692 A CN 106027692A CN 201610323698 A CN201610323698 A CN 201610323698A CN 106027692 A CN106027692 A CN 106027692A
- Authority
- CN
- China
- Prior art keywords
- source
- network connection
- set business
- connection information
- information
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/69—Types of network addresses using geographic information, e.g. room number
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/06—Generation of reports
- H04L43/062—Generation of reports related to network traffic
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention provides an information acquisition method and device. The method comprises the following steps: acquiring network connection information which is relevant to a preset service in a server; acquiring a source IP (Internet Protocol) address in the network connection information which is relevant to the preset service; and determining source distribution information of a user of the preset service according to the acquired source IP address. Through adoption of the method, source distribution of the user of the preset service can be acquired rapidly. Compared with the prior art, the information acquisition method and device have the advantages that a log statistics way does not need to be adopted, so that a special log statistics system does not need to be configured for a service server; the hardware cost can be reduced; an operation way is simple and convenient; and the analysis speed and efficiency of user source distribution can be increased.
Description
Technical field
It relates to field of computer technology, particularly relate to a kind of information getting method, device and server.
Background technology
Commonly used along with the Internet, increasing user utilizes the Internet to obtain various types of services, such as, net
Network is done shopping, is browsed professional website, online teaching etc..But, the user of different regions is to the demand of dissimilar service often
Difference, and, the user of different regions is the most different to the demand of same type of service.Such as, the ground such as Beijing, Shanghai
The user in district is relatively big to the demand of shopping at network, and the user in the most remote west area is less to the demand of shopping at network.Cause
This, provide the user the service side of service by the Internet, in the urgent need to understanding the user place of all kinds service orientation
Area, i.e. user sources, and then can be that service side formulates exactly, service program efficiently provides reference.
At present, user access logs is the major way obtaining user sources, is configured with the webserver of log statistic system,
Be obtained in that the web page address that user is browsed by this webserver, and, counting user come source distribution and user
Quantity etc., the user profile obtained based on user access logs, it is possible to grasp the network service that user is interested.But,
Owing to user access logs exists renewal speed slowly, the defect that configuration is complicated.Therefore, user access logs is being utilized to carry out
During user sources distribution, there is hysteresis, poor real.
Summary of the invention
For overcoming problem present in correlation technique, the disclosure provides information getting method, device and server.
First aspect according to disclosure embodiment, it is provided that a kind of information getting method, including:
Obtain the network connection information being associated in server with pre-set business;
Obtain the source IP addresses in every the network connection information being associated with described pre-set business;
The source distributed intelligence of the user of described pre-set business is determined according to the described source IP addresses got.
Owing to network connection information is to acquire from server in real time, therefore, what disclosure embodiment provided should
Method, it is possible to obtain rapidly pre-set business user carry out source distribution.
Alternatively, the source IP addresses got described in described basis determines the user sources information of described pre-set business, including:
In preset IP address data base, search and get, with described, the geographical position, source that each source IP addresses is corresponding;
It is positioned at the geographical position, described source of geographic area, identical source according to the pre-geographical region clustering in source that divides, obtains institute
State the geographic area, all sources at the user place of pre-set business;
The geographic area, source at all user places of described pre-set business is defined as user sources information.
When behind the geographic area that the geographical position, source of all users of pre-set business has been divided into correspondence, then for
For this pre-set business, it is possible to it can be apparent that the Regional Distribution of Registered of the user of this pre-set business.
Alternatively, the source IP addresses got described in described basis determines the user sources information of described pre-set business, also wraps
Include:
Add up network connection information quantity and/or accounting in geographic area, each described source;
Network connection information quantity in geographic area, each described source and/or accounting are defined as the user of described pre-set business
Source distributed intelligence.
No matter select in network connection information quantity and accounting which as source distributed intelligence, can have a clear understanding of each often
The difference of the user in geographic area, individual source.
Alternatively, the network connection information being associated with pre-set business in described acquisition server, including:
All-network link information on described server before acquisition predetermined time;
By the destination interface in every network connection information in the described all TCP message got, respectively with described default industry
The service port of business compares;
The network connection information identical with the service port of described pre-set business by destination interface, is defined as and described pre-set business
The network connection information being associated.
When the destination interface of a network connection information and the service port of this pre-set business are identical, then be assured that this net
Network link information is used to obtain this pre-set business, and then can be defined as by this network connection information relevant with pre-set business
Connection.The all-network link information being associated with pre-set business can be quickly found out by the method.
Alternatively, the source IP addresses in every network connection information that described acquisition is associated with described pre-set business, including:
Determine the field at source IP addresses place in every the network connection information being associated with described pre-set business;
From every the network connection information being associated with described pre-set business, by addition to the field of described source IP addresses place
Content is deleted, and extracts the source IP addresses obtaining in every the network connection information being associated with described pre-set business.
With it, can be quickly by whole for the content of other field incoherent with source IP addresses in network connection information
Filter, accurately extract source IP addresses.
Second aspect according to disclosure embodiment, it is provided that a kind of information acquisition device, including:
Information acquisition unit, for obtaining the network connection information being associated in server with pre-set business;
Address acquisition unit, for obtaining the source IP ground in every the network connection information being associated with described pre-set business
Location;
Information determination unit, the source IP addresses for getting described in basis determines that the source of the user of described pre-set business is divided
Cloth information.
Alternatively, described information determination unit, including:
Search subelement, in preset IP address data base, search with described to get each source IP addresses relative
The geographical position, source answered;
Polymerization subelement, for being positioned at the described source of geographic area, identical source according to the pre-geographical region clustering in source that divides
Geographical position, obtains the geographic area, all sources at the user place of described pre-set business;
First determines subelement, for being defined as described pre-by the geographic area, source at all user places of described pre-set business
If the source distributed intelligence of the user of business.
Alternatively, described information determination unit, also include:
Statistics subelement, is used for adding up network connection information quantity and/or accounting in geographic area, each described source;
Second determines subelement, for network connection information quantity in geographic area, each described source and/or accounting being defined as
The source distributed intelligence of the user of described pre-set business.
Alternatively, described information acquisition unit, including:
Obtain subelement, all-network link information on described server before being used for obtaining predetermined time;
Relatively subelement, is used for the destination interface in every network connection information in the described all TCP message got,
Service port with described pre-set business compares respectively;
Information determines subelement, is used for network connection information identical with the service port of described pre-set business for destination interface,
It is defined as the network connection information being associated with pre-set business.
Alternatively, described address acquisition unit, including:
Field determines subelement, for determining source IP addresses in every the network connection information being associated with described pre-set business
The field at place;
Extract subelement, from every the network connection information being associated with described pre-set business, will be except described source IP addresses
Content outside the field of place is deleted, and extracts the source IP obtaining in every the network connection information being associated with described pre-set business
Address.
Second aspect according to disclosure embodiment, it is provided that a kind of server, including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Obtain the network connection information being associated in server with pre-set business;
Obtain the source IP addresses in every the network connection information being associated with described pre-set business;
The source distributed intelligence of the user of described pre-set business is determined according to the described source IP addresses got.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect:
In the method that disclosure embodiment provides, first from server in all of network connection information, obtain and preset
The network connection information that business is associated, and then obtain the source IP in every the network connection information being associated with pre-set business
Address, final according to all source IP addresses got, determine that the source distribution that comes of all users using pre-set business is believed
Breath.
Owing to network connection information is to acquire from server in real time, therefore, what disclosure embodiment provided should
Method, it is possible to obtain rapidly pre-set business user carry out source distribution, compared with correlation technique, due to need not use
The mode of log statistic, so also without the log statistic system special for service server configuration, so, being possible not only to
Saving hardware cost, mode of operation is simple and convenient, but also can improve the speed to user sources distributional analysis and efficiency.
It should be appreciated that it is only exemplary and explanatory that above general description and details hereinafter describe, can not limit
The disclosure processed.
Accompanying drawing explanation
Accompanying drawing herein is merged in description and constitutes the part of this specification, it is shown that meet embodiments of the invention,
And for explaining the principle of the present invention together with description.
Fig. 1 is according to a kind of scene schematic diagram shown in an exemplary embodiment;
Fig. 2 is the flow chart according to a kind of information getting method shown in an exemplary embodiment;
Fig. 3 is the flow chart according to the another kind of information getting method shown in an exemplary embodiment;
Fig. 4 is the flow chart according to another information getting method shown in an exemplary embodiment;
Fig. 5 is according to the user distribution schematic diagram shown in an exemplary embodiment;
Fig. 6 is the schematic flow sheet of step S201 in Fig. 2;
Fig. 7 is the schematic flow sheet of step S202 in Fig. 2;
Fig. 8 is the structural representation according to a kind of information acquisition device shown in an exemplary embodiment;
Fig. 9 is the information determination unit one structural representation in Fig. 8;
Figure 10 is information determination unit another kind structural representation in Fig. 8;
Figure 11 is a kind of structural representation of information acquisition unit in Fig. 8;
Figure 12 is a kind of structural representation of address acquisition unit in Fig. 8;
Figure 13 is the block diagram according to a kind of server for information getting method shown in an exemplary embodiment.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Explained below relates to accompanying drawing
Time, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.In following exemplary embodiment
Described embodiment does not represent all embodiments consistent with the present invention.On the contrary, they are only and the most appended power
The example of the apparatus and method that some aspects that described in detail in profit claim, the present invention are consistent.
Fig. 1 is according to a kind of scene schematic diagram shown in an exemplary embodiment.As it is shown in figure 1, figure includes: computer 1,
Mobile phone 2 and server 3, wherein, can be provided with various types of service in server 3, and server 3 and network
Being connected, computer 1 and mobile phone 2, as interactive terminal, are the most all communicated with server 3 by network, Yong Hutong
Cross operation computer 1 or mobile phone 2, the various types of services being positioned in server 3 can be obtained, such as: shopping at network,
Browse professional website, online teaching etc..
Fig. 1 is with computer 1 and mobile phone 2 citing as interactive terminal, in disclosure other embodiments, interactive terminal
Can also include panel computer etc., the disclosure does not limits.
Fig. 2 is the flow chart according to a kind of information getting method shown in an exemplary embodiment.The method can apply to Fig. 1
In server in, as in figure 2 it is shown, the method may comprise steps of.
In step s 201, the network connection information being associated in server is obtained with pre-set business.
In the disclosed embodiments, network connects and can include TCP (Transmission Control Protocol, transmission control
Agreement processed) the common network such as connection connects.
Generally in service server, service server this locality can store the all-network link information before current time,
In every network connection information, all include at least: source IP addresses and destination interface.
For business, in this locality of business service can corresponding one or more service ports, by these service ports,
Pre-set business can be obtained from service server.Therefore, in the disclosed embodiments, the network being associated with pre-set business
Destination interface in link information must be identical with the service port of described pre-set business.
In step S202, obtain the source IP addresses in every the network connection information being associated with described pre-set business.
For each network connection information, multiple field can be included, in the disclosed embodiments, can travel through each
Network connection information, extracts the source IP addresses that the network being associated with pre-set business is connected in confidence.
In step S203, determine according to the described source IP addresses got described pre-set business user carry out source distribution
Information.
For each IP address, the position of correspondence all can be found in IP address database, therefore, real in the disclosure
Executing in example, source distributed intelligence can be the positional information of all users corresponding to business, it is, of course, also possible at positional information
On the basis of, positional information is processed further, such as: the number of users determining in zones of different according to the positional information of user
Amount etc..
Such as, according to the source IP addresses got, determine the user of pre-set business respectively from Beijing, Shanghai and Guangzhou,
Wherein, amounting to 2560 from Pekinese user, the user from Shanghai amounts to 1866, and the user from Guangzhou amounts to
1969.
In the method that disclosure embodiment provides, first from server in all of network connection information, obtain and preset
The network connection information that business is associated, and then obtain the source IP in every the network connection information being associated with pre-set business
Address, final according to all source IP addresses got, determine that the source distribution that comes of all users using pre-set business is believed
Breath.
Owing to network connection information is to acquire from server in real time, therefore, what disclosure embodiment provided should
Method, it is possible to obtain rapidly pre-set business user carry out source distribution, compared with correlation technique, due to need not use
The mode of log statistic, so also without the log statistic system special for service server configuration, so, being possible not only to
Saving hardware cost, mode of operation is simple and convenient, but also can improve the speed to user sources distributional analysis and efficiency.
In another embodiment of the disclosure, as it is shown on figure 3, step S203 in above-mentioned embodiment illustrated in fig. 1 can include with
Lower step.
In step S301, in preset IP address data base, search with described to get each source IP addresses corresponding
Geographical position, source.
Due in IP address database, storage has a geographical position, a source that each source IP addresses is corresponding, therefore,
In IP address database, the source place corresponding to each source IP addresses can be inquired according to each source IP addresses
Reason position.
Such as, the geographical position, source that source IP addresses " 302.106.212.226 " is corresponding is Yang Fang town, Changping District, Beijing
Yang Fang village, the geographical position, source of source IP addresses " 114.80.166.240 " correspondence is south, Xuan Qiao town, Pudong New Area, Shanghai
Six highways 178.
In step s 302, it is positioned at the described source place of geographic area, identical source according to the pre-geographical region clustering in source that divides
Reason position, obtains the geographic area, source at all user places of described pre-set business.
The aforementioned geographical position, source obtained, is concrete, detailed positional information, although can reflect each source
The accurate location that IP address is corresponding, but when actual count, more it is concerned with the position letter of multiple users in some region
Breath, rather than the position of some user.Therefore, in this step, need the geographical position, source obtained is clustered.
In a particular application, can divide in advance and obtain geographic area, multiple source, when dividing, can be according to user's needs
Divide voluntarily, it is generally the case that geographic area division can be carried out according to province or city, such as: after saving division, permissible
Geographical position, source from different provinces is aggregated in the region corresponding to each province respectively, or, divide according to city
After, the geographical position, source in the different cities from same province can be aggregated in the region corresponding to each city.
In step S303, the geographic area, source at all user places of described pre-set business is defined as user sources information.
When behind the geographic area that the geographical position, source of all users of pre-set business has been divided into correspondence, then for
For this pre-set business, it is possible to it can be apparent that the Regional Distribution of Registered of the user of this pre-set business.
In the embodiment shown in fig. 3, directly using the geographic area, source of all users as user sources information, but this is
Basic information, can only know which region the user of pre-set business both is from, but when needing the user of pre-set business is entered
When row is analyzed, it is impossible to reflect the user's difference between regional intuitively.To this end, in another embodiment of the disclosure,
On the basis of embodiment illustrated in fig. 3, as shown in Figure 4, step S203 in above-mentioned embodiment illustrated in fig. 1 can also include
Following steps.
In step 401, the one or two in network connection information quantity and accounting in geographic area, each described source is added up
Plant combination.
When aforementioned geographic area, division source, can add up according to data when dividing and be divided into geographic area, each source
In network connection information quantity, thus it is recognized that number of network connections amount corresponding in geographic area, each source.And
Number of network connections amount represents the quantity of user, therefore, it can connect quantity by network in geographic area, each source and determines
The quantity of this district's intra domain user.
It addition, in disclosure other embodiments, after statistics obtains network connection information quantity, it is also possible to calculate each
The accounting of the network connection information quantity in geographic area, source, such as: by the network connection information in geographic area, each source
The all-network link information quantity of quantity and this pre-set business is divided by, and then can obtain geographic area, each source
Accounting.
Such as: as it is shown in figure 5, the total quantity of the network connection information of some business is 100, wherein, from Pekinese's net
The quantity of network link information is 51, and the quantity from the network connection information in Shanghai is 29, and the network from Guangzhou connects
The quantity connecing information is 20, can be calculated, account for 51% from Pekinese user, and the user from Shanghai accounts for 29%, comes
20% is accounted for from the user in Guangzhou.By above-mentioned accounting, can clearly know that Pekinese user more pays close attention to target service.
In step S402, by true to network connection information quantity in geographic area, each described source and at least one in accounting
It is set to the source distributed intelligence of the user of described pre-set business.
No matter select in network connection information quantity and accounting which as source distributed intelligence, can have a clear understanding of each often
The difference of the user in geographic area, individual source.
In the disclosure one embodiment, as shown in Figure 6, step S201 in above-mentioned embodiment illustrated in fig. 1 can include with
Lower step.
In step s 601, all-network link information on described server is obtained before predetermined time.
In the disclosed embodiments, predetermined time can be current time, such as: can owning by current preset business
User situation, it is also possible to be set to a moment before current time according to actual needs, such as: statistics 2013 respectively
Before, the user situation before 2014 and before 2015.
In a specific embodiment, the result of the pre-set business all-network link information got can be as shown in the table:
Table 1:
Sequence number | Source IP addresses: destination interface |
1 | 27.38.60.162:8011 |
2 | 60.222.123.219:8011 |
3 | 113.205.212.214:8012 |
4 | 87.16.158.128:8012 |
…… | …… |
From table 1, it is seen then that the service port that pre-set business is corresponding is 8011 and 8012, so the network got connects letter
In breath, destination interface can be with 8011 or 8012.
In step S602, by the destination interface in every network connection information in the described all TCP message got, point
The not service port with described pre-set business compares.
In this step, when the service port of the destination interface in network connection information and pre-set business is compared, can
Think that both judgements are the most identical.
In step S603, the network connection information identical with the service port of described pre-set business by destination interface, it is defined as
The network connection information being associated with described pre-set business.
When the destination interface of a network connection information and the service port of this pre-set business are identical, then be assured that this net
Network link information is used to obtain this pre-set business, and then can be defined as by this network connection information relevant with pre-set business
Connection.The all-network link information being associated with pre-set business can be quickly found out by the method.
In the disclosure one embodiment, as it is shown in fig. 7, step S202 in above-mentioned embodiment illustrated in fig. 1 can include following
Step.
In step s 701, source IP addresses place in every the network connection information being associated with described pre-set business is determined
Field.
For each network connection information, the most all comprise following four partial informations: source IP addresses, source port,
Purpose IP address and destination interface, above-mentioned table 1, in order to illustrate conveniently, has only write source IP addresses and destination interface.It addition,
As a example by TCP connects, in addition to above-mentioned four parts, it is also possible to including: connection status, transmission state, reception state etc.
Etc. content.
Therefore, when obtaining source IP addresses, need first to determine the field at source IP addresses place.
In step S702, from every the network connection information being associated with described pre-set business, will be except described source IP
Content outside the field of place, address is deleted, and extracts and obtains coming in every the network connection information being associated with described pre-set business
Source IP address.
With it, can be quickly by whole for the content of other field incoherent with source IP addresses in network connection information
Filter, accurately extract source IP addresses.
Fig. 8 is the structural representation according to a kind of information acquisition device shown in an exemplary embodiment.This device can be applied
In server in Fig. 1, as shown in Figure 8, this device may include that
Information acquisition unit 81, for obtaining the network connection information being associated in server with pre-set business;
In the disclosed embodiments, network connects and can include TCP (Transmission Control Protocol, transmission control
Agreement processed) the common network such as connection connects.
Generally in service server, service server this locality can store the all-network link information before current time,
In every network connection information, all include at least: source IP addresses and destination interface.
For business, in this locality of business service can corresponding one or more service ports, by these service ports,
Pre-set business can be obtained from service server.Therefore, in the disclosed embodiments, the network being associated with pre-set business
Destination interface in link information must be identical with the service port of described pre-set business.
Address acquisition unit 82, for obtaining the source IP ground in every the network connection information being associated with described pre-set business
Location;
For each network connection information, multiple field can be included, in the disclosed embodiments, can travel through each
Network connection information, extracts the source IP addresses that the network being associated with pre-set business is connected in confidence.
Information determination unit 83, the source IP addresses for getting described in basis determines the source of the user of described pre-set business
Distributed intelligence.
For each IP address, the position of correspondence all can be found in IP address database, therefore, real in the disclosure
Executing in example, source distributed intelligence can be the positional information of all users corresponding to business, it is, of course, also possible at positional information
On the basis of, positional information is processed further, such as: the number of users determining in zones of different according to the positional information of user
Amount etc..
Such as, according to the source IP addresses got, determine the user of pre-set business respectively from Beijing, Shanghai and Guangzhou,
Wherein, amounting to 2560 from Pekinese user, the user from Shanghai amounts to 1866, and the user from Guangzhou amounts to
1969.
At this device that disclosure embodiment provides, first from server in all of network connection information, obtain and preset
The network connection information that business is associated, and then obtain the source IP in every the network connection information being associated with pre-set business
Address, final according to all source IP addresses got, determine that the source distribution that comes of all users using pre-set business is believed
Breath.
Owing to network connection information is to acquire from server in real time, therefore, what disclosure embodiment provided should
Device, it is possible to obtain rapidly pre-set business user carry out source distribution, compared with correlation technique, due to need not use
The mode of log statistic, so also without the log statistic system special for service server configuration, so, being possible not only to
Saving hardware cost, mode of operation is simple and convenient, but also can improve the speed to user sources distributional analysis and efficiency.
In another embodiment of the disclosure, as it is shown in figure 9, the information determination unit 83 in above-mentioned embodiment illustrated in fig. 8, can
To include:
Search subelement 91, in preset IP address data base, search and get each source IP addresses phase with described
Corresponding geographical position, source;
Due in IP address database, storage has a geographical position, a source that each source IP addresses is corresponding, therefore,
In IP address database, the source place corresponding to each source IP addresses can be inquired according to each source IP addresses
Reason position.
Such as, the geographical position, source that source IP addresses " 302.106.212.226 " is corresponding is Yang Fang town, Changping District, Beijing
Yang Fang village, the geographical position, source of source IP addresses " 114.80.166.240 " correspondence is south, Xuan Qiao town, Pudong New Area, Shanghai
Six highways 178.
Polymerization subelement 92, is used for being positioned at the described next of geographic area, identical source according to the pre-geographical region clustering in source that divides
Geographical position, source, obtains the geographic area, all sources at the user place of described pre-set business;
The aforementioned geographical position, source obtained, is concrete, detailed positional information, although can reflect each source
The accurate location that IP address is corresponding, but when actual count, more it is concerned with the position letter of multiple users in some region
Breath, rather than the position of some user.Therefore, in order to understand the positional information of district's intra domain user, need the source obtained
Geographical position clusters.
In a particular application, can divide in advance and obtain geographic area, multiple source, when dividing, can be according to user's needs
Divide voluntarily, it is generally the case that geographic area division can be carried out according to province or city, such as: after saving division, permissible
Geographical position, source from different provinces is aggregated in the region corresponding to each province respectively, or, divide according to city
After, the geographical position, source in the different cities from same province can be aggregated in the region corresponding to each city.
First determines subelement 93, described for being defined as the geographic area, source at all user places of described pre-set business
The source distributed intelligence of the user of pre-set business.
When behind the geographic area that the geographical position, source of all users of pre-set business has been divided into correspondence, then for
For this pre-set business, it is possible to it can be apparent that the Regional Distribution of Registered of the user of this pre-set business.
On the basis of embodiment illustrated in fig. 9, as shown in Figure 10, information determination unit 83 can also include:
Statistics subelement 101, for the one added up in geographic area, each described source in network connection information quantity and accounting
Or two kinds of combinations;
When aforementioned geographic area, division source, can add up according to data when dividing and be divided into geographic area, each source
In network connection information quantity, thus it is recognized that number of network connections amount corresponding in geographic area, each source.And
Number of network connections amount represents the quantity of user, therefore, it can connect quantity by network in geographic area, each source and determines
The quantity of this district's intra domain user.
It addition, in disclosure other embodiments, after statistics obtains network connection information quantity, it is also possible to calculate each
The accounting of the network connection information quantity in geographic area, source, such as: by the network connection information in geographic area, each source
The all-network link information quantity of quantity and this pre-set business is divided by, and then can obtain geographic area, each source
Accounting.
Such as: as it is shown in figure 5, the total quantity of the network connection information of some business is 100, wherein, from Pekinese's net
The quantity of network link information is 51, and the quantity from the network connection information in Shanghai is 29, and the network from Guangzhou connects
The quantity connecing information is 20, can be calculated, account for 51% from Pekinese user, and the user from Shanghai accounts for 29%, comes
20% is accounted for from the user in Guangzhou.By above-mentioned accounting, can clearly know that Pekinese user more pays close attention to target service.
Second determines subelement 102, for by network connection information quantity in geographic area, each described source and in accounting
Kind or two kinds of combinations be defined as the source distributed intelligence of user of described pre-set business.
No matter select in network connection information quantity and accounting which as source distributed intelligence, can have a clear understanding of each often
The difference of the user in geographic area, individual source.
In another embodiment of the disclosure, as shown in figure 11, the information acquisition unit 81 in above-mentioned embodiment illustrated in fig. 8, can
To include:
Obtain subelement 111, all-network link information on described server before being used for obtaining predetermined time;
In the disclosed embodiments, predetermined time can be current time, such as: can owning by current preset business
User situation, it is also possible to be set to a moment before current time according to actual needs, such as: statistics 2013 respectively
Before, the user situation before 2014 and before 2015.
In a specific embodiment, the result of the pre-set business all-network link information got can be such as aforementioned table 1 institute
Show.From table 1, it is seen then that the service port that pre-set business is corresponding is 8011 and 8012, so the network got connects letter
In breath, destination interface can be with 8011 or 8012.
Relatively subelement 112, is used for the destination interface in every network connection information in the described all TCP message got,
Service port with described pre-set business compares respectively;
When the service port of the destination interface in network connection information and pre-set business is compared, can be to judge the two
The most identical.
Information determines subelement 113, for network identical with the service port of described pre-set business for destination interface is connected letter
Breath, is defined as the network connection information being associated with pre-set business.
If the destination interface of some network connection information is identical with the service port of this pre-set business, then be assured that
This network connection information is used to obtain this pre-set business, and then can be defined as and pre-set business by this network connection information
It is associated.
In another embodiment of the disclosure, as shown in figure 12, the address acquisition unit 82 in above-mentioned embodiment illustrated in fig. 8, can
To include:
Field determines subelement 121, for determining source IP in every the network connection information being associated with described pre-set business
The field at place, address;
For each network connection information, the most all comprise following four partial informations: source IP addresses, source port,
Purpose IP address and destination interface, above-mentioned table 1, in order to illustrate conveniently, has only write source IP addresses and destination interface.It addition,
As a example by TCP connects, in addition to above-mentioned four parts, it is also possible to including: connection status, transmission state, reception state etc.
Etc. content.
Therefore, when obtaining source IP addresses, need first to determine the field at source IP addresses place.
Extract subelement 122, from every the network connection information being associated with described pre-set business, will be except described source IP
Content outside the field of place, address is deleted, and extracts and obtains coming in every the network connection information being associated with described pre-set business
Source IP address.
With it, can be quickly by whole for the content of other field incoherent with source IP addresses in network connection information
Filter, accurately extract source IP addresses.
Figure 13 is the block diagram according to a kind of server 1300 for information getting method shown in an exemplary embodiment.Example
As, device 1300 may be provided in a server.With reference to Figure 13, device 1300 includes processing assembly 1322, and it enters one
Step includes one or more processor, and by the memory resource representated by memorizer 1332, can be by process group for storage
The instruction of the execution of part 1322, such as application program.In memorizer 1332, the application program of storage can include one or one
Each more than individual is corresponding to the module of one group of instruction.It is configured to perform instruction additionally, process assembly 1322, to perform
The method that said method embodiment is provided.
Device 1300 can also include that a power supply module 1326 is configured to perform the power management of device 1300, and one has
Line or radio network interface 1350 are configured to be connected to device 1300 network, and input and output (I/O) interface 1358.
Device 1300 can operate based on the operating system being stored in memorizer 1332, such as Windows ServerTM, Mac OS XTM,
UnixTM, LinuxTM, FreeBSDTM or similar.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of terminal,
Enabling the terminal to perform a kind of information getting method, described method includes:
Obtain the network connection information being associated in server with pre-set business;
Obtain the source IP addresses in every the network connection information being associated with described pre-set business;
The source distributed intelligence of the user of described pre-set business is determined according to the described source IP addresses got.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to other reality of the present invention
Execute scheme.The application is intended to any modification, purposes or the adaptations of the present invention, these modification, purposes or
Adaptations is followed the general principle of the present invention and includes the undocumented common knowledge or used in the art of the disclosure
Use technological means.Description and embodiments is considered only as exemplary, and true scope and spirit of the invention are by appended right
Requirement is pointed out.
It should be appreciated that the invention is not limited in precision architecture described above and illustrated in the accompanying drawings, and can
To carry out various modifications and changes without departing from the scope.The scope of the present invention is only limited by appended claim.
Claims (11)
1. an information getting method, it is characterised in that including:
Obtain the network connection information being associated in server with pre-set business;
Obtain the source IP addresses in every the network connection information being associated with described pre-set business;
The source distributed intelligence of the user of described pre-set business is determined according to the described source IP addresses got.
Method the most according to claim 1, it is characterised in that the source IP addresses got described in described basis is true
The user sources information of fixed described pre-set business, including:
In preset IP address data base, search and get, with described, the geographical position, source that each source IP addresses is corresponding;
It is positioned at the geographical position, described source of geographic area, identical source according to the pre-geographical region clustering in source that divides, obtains institute
State the geographic area, all sources at the user place of pre-set business;
The geographic area, source at all user places of described pre-set business is defined as user sources information.
Method the most according to claim 2, it is characterised in that the source IP addresses got described in described basis is true
The user sources information of fixed described pre-set business, also includes:
Add up network connection information quantity and/or accounting in geographic area, each described source;
Network connection information quantity in geographic area, each described source and/or accounting are defined as the user of described pre-set business
Source distributed intelligence.
4. according to the method described in claim 1 or 2 or 3, it is characterised in that with pre-set business in described acquisition server
The network connection information being associated, including:
All-network link information on described server before acquisition predetermined time;
By the destination interface in every network connection information in the described all TCP message got, respectively with described default industry
The service port of business compares;
The network connection information identical with the service port of described pre-set business by destination interface, is defined as and described pre-set business
The network connection information being associated.
Method the most according to claim 4, it is characterised in that be associated with described pre-set business every of described acquisition
Source IP addresses in network connection information, including:
Determine the field at source IP addresses place in every the network connection information being associated with described pre-set business;
From every the network connection information being associated with described pre-set business, by addition to the field of described source IP addresses place
Content is deleted, and extracts the source IP addresses obtaining in every the network connection information being associated with described pre-set business.
6. an information acquisition device, it is characterised in that including:
Information acquisition unit, for obtaining the network connection information being associated in server with pre-set business;
Address acquisition unit, for obtaining the source IP ground in every the network connection information being associated with described pre-set business
Location;
Information determination unit, the source IP addresses for getting described in basis determines that the source of the user of described pre-set business is divided
Cloth information.
Device the most according to claim 6, it is characterised in that described information determination unit, including:
Search subelement, in preset IP address data base, search with described to get each source IP addresses relative
The geographical position, source answered;
Polymerization subelement, for being positioned at the described source of geographic area, identical source according to the pre-geographical region clustering in source that divides
Geographical position, obtains the geographic area, all sources at the user place of described pre-set business;
First determines subelement, for being defined as described pre-by the geographic area, source at all user places of described pre-set business
If the source distributed intelligence of the user of business.
Device the most according to claim 7, it is characterised in that described information determination unit, also includes:
Statistics subelement, is used for adding up network connection information quantity and/or accounting in geographic area, each described source;
Second determines subelement, for network connection information quantity in geographic area, each described source and/or accounting being defined as
The source distributed intelligence of the user of described pre-set business.
9. according to the device described in claim 6,7 or 8, it is characterised in that described information acquisition unit, including:
Obtain subelement, all-network link information on described server before being used for obtaining predetermined time;
Relatively subelement, is used for the destination interface in every network connection information in the described all TCP message got,
Service port with described pre-set business compares respectively;
Information determines subelement, is used for network connection information identical with the service port of described pre-set business for destination interface,
It is defined as the network connection information being associated with pre-set business.
Device the most according to claim 9, it is characterised in that described address acquisition unit, including:
Field determines subelement, for determining source IP addresses in every the network connection information being associated with described pre-set business
The field at place;
Extract subelement, from every the network connection information being associated with described pre-set business, will be except described source IP addresses
Content outside the field of place is deleted, and extracts the source IP obtaining in every the network connection information being associated with described pre-set business
Address.
11. 1 kinds of servers, it is characterised in that including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Obtain the network connection information being associated in server with pre-set business;
Obtain the source IP addresses in every the network connection information being associated with described pre-set business;
The source distributed intelligence of the user of described pre-set business is determined according to the described source IP addresses got.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610323698.XA CN106027692B (en) | 2016-05-16 | 2016-05-16 | Information acquisition method, device and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610323698.XA CN106027692B (en) | 2016-05-16 | 2016-05-16 | Information acquisition method, device and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106027692A true CN106027692A (en) | 2016-10-12 |
CN106027692B CN106027692B (en) | 2019-07-16 |
Family
ID=57098318
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610323698.XA Active CN106027692B (en) | 2016-05-16 | 2016-05-16 | Information acquisition method, device and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106027692B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106713353A (en) * | 2017-01-23 | 2017-05-24 | 浙江省测绘科学技术研究院 | Intelligent seamless aggregation method and system for geographic information service |
CN108900374A (en) * | 2018-06-22 | 2018-11-27 | 网宿科技股份有限公司 | A kind of data processing method and device applied to DPI equipment |
CN113313876A (en) * | 2021-05-26 | 2021-08-27 | 北京云迹科技有限公司 | Mobile hotel vending robot |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130086089A1 (en) * | 2011-10-03 | 2013-04-04 | Oracle International Corporation | Techniques for distributing information over a network |
CN104462336A (en) * | 2014-12-03 | 2015-03-25 | 北京国双科技有限公司 | Information pushing method and device |
CN104539452A (en) * | 2014-12-18 | 2015-04-22 | 国云科技股份有限公司 | Method for conducting statistics on Web application access regional characteristics |
CN104702618A (en) * | 2015-03-26 | 2015-06-10 | 广东睿江科技有限公司 | Method and device for determining network access information |
CN105550248A (en) * | 2015-11-26 | 2016-05-04 | 小米科技有限责任公司 | User information mining method and apparatus |
-
2016
- 2016-05-16 CN CN201610323698.XA patent/CN106027692B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130086089A1 (en) * | 2011-10-03 | 2013-04-04 | Oracle International Corporation | Techniques for distributing information over a network |
CN104462336A (en) * | 2014-12-03 | 2015-03-25 | 北京国双科技有限公司 | Information pushing method and device |
CN104539452A (en) * | 2014-12-18 | 2015-04-22 | 国云科技股份有限公司 | Method for conducting statistics on Web application access regional characteristics |
CN104702618A (en) * | 2015-03-26 | 2015-06-10 | 广东睿江科技有限公司 | Method and device for determining network access information |
CN105550248A (en) * | 2015-11-26 | 2016-05-04 | 小米科技有限责任公司 | User information mining method and apparatus |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106713353A (en) * | 2017-01-23 | 2017-05-24 | 浙江省测绘科学技术研究院 | Intelligent seamless aggregation method and system for geographic information service |
CN108900374A (en) * | 2018-06-22 | 2018-11-27 | 网宿科技股份有限公司 | A kind of data processing method and device applied to DPI equipment |
CN108900374B (en) * | 2018-06-22 | 2021-05-25 | 网宿科技股份有限公司 | Data processing method and device applied to DPI equipment |
CN113313876A (en) * | 2021-05-26 | 2021-08-27 | 北京云迹科技有限公司 | Mobile hotel vending robot |
Also Published As
Publication number | Publication date |
---|---|
CN106027692B (en) | 2019-07-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104580430B (en) | A kind of method and apparatus based on communication group's pushed information | |
KR20090001563A (en) | System and its method for providing real time advertisements based on location under navigation's operation | |
CN104573042A (en) | Method and device for determining POI information | |
CN103677866A (en) | Application program extension tool pushing method and system | |
CN107835132B (en) | Method and device for tracking flow source | |
CN105162894A (en) | Equipment identification acquisition method and equipment identification acquisition device | |
CN104243598A (en) | Information recommendation method and device | |
CN104750760A (en) | Application software recommending method and device | |
CN106027692A (en) | Information acquisition method and device and server | |
CN103298010A (en) | Network link state display method and network link state display device | |
US11303532B2 (en) | Method and system for detecting service quality of CDN system | |
CN107491463B (en) | Optimization method and system for data query | |
CN113347275A (en) | Edge node scheduling method and system based on geographic coordinates of user terminal | |
CN109120432B (en) | Fault server positioning method and device | |
US20180035367A1 (en) | Method and Apparatus for Accessing Wifi Access Point in Target Shop | |
CN105119735A (en) | Method and device for determining flow types | |
CN110427574B (en) | Route similarity determination method, device, equipment and medium | |
CN103235793A (en) | On-line data processing method, equipment and system | |
CN103001967B (en) | Source station server and service push method | |
CN105469206A (en) | Dynamic positioning method and system for enterprise employee | |
CN112437148B (en) | Service request processing method and device, service server and system | |
CN103577426A (en) | Method, device and system for providing additional application messages of searching suggestion | |
CN106469175A (en) | Data processing method and device | |
CN111182465A (en) | Method and device for determining terminal affiliation | |
CN105978744A (en) | Resource allocation method, device and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |