CN106027692B - Information acquisition method, device and server - Google Patents

Information acquisition method, device and server Download PDF

Info

Publication number
CN106027692B
CN106027692B CN201610323698.XA CN201610323698A CN106027692B CN 106027692 B CN106027692 B CN 106027692B CN 201610323698 A CN201610323698 A CN 201610323698A CN 106027692 B CN106027692 B CN 106027692B
Authority
CN
China
Prior art keywords
source
set business
network connection
connection information
addresses
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.)
Active
Application number
CN201610323698.XA
Other languages
Chinese (zh)
Other versions
CN106027692A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610323698.XA priority Critical patent/CN106027692B/en
Publication of CN106027692A publication Critical patent/CN106027692A/en
Application granted granted Critical
Publication of CN106027692B publication Critical patent/CN106027692B/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
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/69Types of network addresses using geographic information, e.g. room number
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • H04L43/062Generation 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 present disclosure provides a kind of information acquisition method and device, this method comprises: obtaining network connection information associated with pre-set business in server;Obtain the source IP addresses in every network connection information associated with the pre-set business;The source distributed intelligence of the user of the pre-set business is determined according to the source IP addresses got.This method, the user of pre-set business can rapidly be obtained carrys out source distribution, compared with the relevant technologies, due to not needing by the way of log statistic, so not needing to configure special log statistic system for service server yet, hardware cost can be not only saved, mode of operation is simple and convenient, but also the speed and efficiency to user sources distributional analysis can be improved.

Description

Information acquisition method, device and server
Technical field
This disclosure relates to field of computer technology more particularly to a kind of information acquisition method, device and server.
Background technique
Commonly used with internet, more and more users obtain various types of services using internet, for example, Shopping at network, browsing professional website, online teaching etc..But demand of the user of different regions to different type service is often Difference, also, demand of the user of different regions to same type of service is often also different.For example, the area such as Beijing, Shanghai Demand of the user to shopping at network is larger, and demand of the user in more remote west area to shopping at network is smaller.Therefore, lead to It crosses internet and provides the service side of service for user, there is an urgent need to understand the area where the user of various types service orientation, That is user sources, so can for service side formulate accurately, efficiently service program reference is provided.
Currently, user access logs are the major ways for obtaining user sources, the network clothes configured with log statistic system It is engaged in device, can obtain the web page address that user is browsed by the network server, also, counting user comes source distribution and use The quantity etc. at family is based on user access logs user information obtained, will appreciate that the interested network service of user.But It is, since that there are renewal speed is slow for user access logs, to configure complicated defect.Therefore, using user access logs into There is hysteresis, real-time is poor when row user sources are distributed.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provides information acquisition method, device and server.
According to the first aspect of the embodiments of the present disclosure, a kind of information acquisition method is provided, comprising:
Obtain network connection information associated with pre-set business in server;
Obtain the source IP addresses in every network connection information associated with the pre-set business;
The source distributed intelligence of the user of the pre-set business is determined according to the source IP addresses got.
Since network connection information is to acquire from server in real time, the embodiment of the present disclosure provides This method, can rapidly obtain the user of pre-set business carrys out source distribution.
Optionally, the source IP addresses got according to determine the user sources information of the pre-set business, Include:
In preset IP address database, searches and get each source IP addresses corresponding source geography position with described It sets;
It is located at the source geographical location in identical source geographic area according to the pre- source geography region clustering that divides, obtains To all source geographic areas where the user of the pre-set business;
Source geographic area where all users of the pre-set business is determined as user sources information.
After the source geographical location of all users of pre-set business has been divided into corresponding geographic area, then For the pre-set business, so that it may can be apparent that the Regional Distribution of Registered of the user of the pre-set business.
Optionally, the source IP addresses got according to determine the user sources information of the pre-set business, Further include:
Count network connection information quantity and/or accounting in each source geographic area;
Network connection information quantity in each source geographic area and/or accounting are determined as the pre-set business The source distributed intelligence of user.
No matter select which in network connection information quantity and accounting that can have a clear understanding of as source distributed intelligence The difference of user in each each source geographic area.
Optionally, network connection information associated with pre-set business in the acquisition server, comprising:
Obtain all-network link information on predetermined time foregoing description server;
By the destination port in all TCP messages got in every network connection information, respectively with it is described pre- If the service port of business is compared;
By destination port network connection information identical with the service port of the pre-set business, it is determined as presetting with described The associated network connection information of business.
When the destination port of a network connection information and the service port of the pre-set business are identical, then being assured that The network connection information and then can be determined as the network connection information and pre-set business for obtaining the pre-set business It is associated.It can be quickly found out and the associated all-network link information of pre-set business by this method.
Optionally, the source IP addresses obtained in every network connection information associated with the pre-set business, Include:
Determine the field in every network connection information associated with the pre-set business where source IP addresses;
It, will be except field where the source IP addresses from every network connection information associated with the pre-set business Outer content is deleted, and extraction obtains the source IP addresses in every network connection information associated with the pre-set business.
In this way, can be quickly by the content in network connection information with the incoherent other fields of source IP addresses All filterings, accurately extract source IP addresses.
According to the second aspect of an embodiment of the present disclosure, a kind of information acquisition device is provided, comprising:
Information acquisition unit, for obtaining network connection information associated with pre-set business in server;
Address acquisition unit, for obtaining the source IP in every network connection information associated with the pre-set business Address;
Information determination unit, the source IP addresses for being got according to determine the user of the pre-set business come Source distribution information.
Optionally, the information determination unit, comprising:
Subelement is searched, for searching and getting each source IP addresses phase with described in preset IP address database Corresponding source geographical location;
It polymerize subelement, described in being located in identical source geographic area according to pre- division source geography region clustering Source geographical location obtains all source geographic areas where the user of the pre-set business;
First determines subelement, is determined as institute for the source geographic area where all users by the pre-set business State the source distributed intelligence of the user of pre-set business.
Optionally, the information determination unit, further includes:
Subelement is counted, for counting network connection information quantity and/or accounting in each source geographic area;
Second determines subelement, is used for network connection information quantity and/or accounting in each source geographic area It is determined as the source distributed intelligence of the user of the pre-set business.
Optionally, the information acquisition unit, comprising:
Subelement is obtained, for obtaining all-network link information on predetermined time foregoing description server;
Comparing subunit, for by the destination in all TCP messages got in every network connection information Mouthful, it is compared respectively with the service port of the pre-set business;
Information determines subelement, for believing destination port network connection identical with the service port of the pre-set business Breath, is determined as network connection information associated with pre-set business.
Optionally, the address acquisition unit, comprising:
Field determines subelement, for determining source IP in every network connection information associated with the pre-set business Field where address;
The source IP will be removed from every network connection information associated with the pre-set business by extracting subelement Content where address outside field is deleted, and is extracted and is obtained coming in every network connection information associated with the pre-set business Source IP address.
According to the second aspect of an embodiment of the present disclosure, a kind of server is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Obtain network connection information associated with pre-set business in server;
Obtain the source IP addresses in every network connection information associated with the pre-set business;
The source distributed intelligence of the user of the pre-set business is determined according to the source IP addresses got.
The technical scheme provided by this disclosed embodiment can include the following benefits:
The embodiment of the present disclosure provide this method, first from network connection information all in server, obtain with The associated network connection information of pre-set business, and then obtain and come in every network connection information associated with pre-set business Source IP address, it is final according to all source IP addresses got, determine the source point using all users of pre-set business Cloth information.
Since network connection information is to acquire from server in real time, the embodiment of the present disclosure provides This method, can rapidly obtain the user of pre-set business carrys out source distribution, compared with the relevant technologies, due to not needing to adopt With the mode of log statistic, so also do not need to configure special log statistic system for service server, in this way, not only can be with Hardware cost is saved, mode of operation is simple and convenient, but also the speed and efficiency to user sources distributional analysis can be improved.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is a kind of schematic diagram of a scenario shown according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of information acquisition method shown according to an exemplary embodiment;
Fig. 3 is the flow chart of another information acquisition method shown according to an exemplary embodiment;
Fig. 4 is the flow chart of another information acquisition method shown according to an exemplary embodiment;
Fig. 5 is user distribution schematic diagram shown according to an exemplary embodiment;
Fig. 6 is the flow diagram of step S201 in Fig. 2;
Fig. 7 is the flow diagram of step S202 in Fig. 2;
Fig. 8 is a kind of structural schematic diagram of information acquisition device shown according to an exemplary embodiment;
Fig. 9 is a kind of structural schematic diagram of information determination unit in Fig. 8;
Figure 10 is information determination unit another kind structural schematic diagram in Fig. 8;
Figure 11 is a kind of structural schematic diagram of information acquisition unit in Fig. 8;
Figure 12 is a kind of structural schematic diagram of address acquisition unit in Fig. 8;
Figure 13 is a kind of block diagram of server for information acquisition method shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended The example of device and method being described in detail in claims, some aspects of the invention are consistent.
Fig. 1 is a kind of schematic diagram of a scenario shown according to an exemplary embodiment.As shown in Figure 1, including: computer in figure 1, mobile phone 2 and server 3, wherein various types of services, and server 3 and network phase can be set in server 3 Connection, computer 1 and mobile phone 2 are used as interactive terminal, are also all communicated by network with server 3, user passes through operation Computer 1 or mobile phone 2, available various types of services in server 3, such as: shopping at network browses professional net It stands, online teaching etc..
It is the citing with computer 1 and mobile phone 2 for interactive terminal in Fig. 1, in disclosure other embodiments, interactive terminal Can also be including tablet computer etc., the disclosure is without limitation.
Fig. 2 is a kind of flow chart of information acquisition method shown according to an exemplary embodiment.This method can be applied In server in Fig. 1, as shown in Fig. 2, this method may comprise steps of.
In step s 201, network connection information associated with pre-set business in server is obtained.
In the embodiments of the present disclosure, network connection may include that (Transmission Control Protocol is passed TCP Transport control protocol view) connection etc. common network connection.
Usually in service server, service server locally can store the all-network connection before current time Information, in every network connection information, all including at least has: source IP addresses and destination port.
For business, one or more service ports can be corresponded in the local of business service, pass through these business Port can obtain pre-set business from service server.Therefore, in the embodiments of the present disclosure, associated with pre-set business Destination port in network connection information must be identical as the service port of the pre-set business.
In step S202, with obtaining the source IP in every network connection information associated with the pre-set business Location.
It may include multiple fields for each network connection information, in the embodiments of the present disclosure, can traverse every A network connection information extracts the source IP addresses in network connection confidence associated with pre-set business.
In step S203, the source point of the user of the pre-set business is determined according to the source IP addresses got Cloth information.
For each IP address, corresponding position can be found in IP address database, therefore, in disclosure reality It applies in example, source distributed intelligence can be the location information of the corresponding all users of business, it is, of course, also possible in location information On the basis of, location information is further processed, such as: the number of users etc. in different zones is determined according to the location information of user Deng.
For example, according to the source IP addresses got, determine the user of pre-set business respectively from Beijing, Shanghai and wide State, wherein 2560 total from Pekinese user, the user from Shanghai is 1866 total, and the user from Guangzhou is total 1969.
The embodiment of the present disclosure provide this method, first from network connection information all in server, obtain with The associated network connection information of pre-set business, and then obtain and come in every network connection information associated with pre-set business Source IP address, it is final according to all source IP addresses got, determine the source point using all users of pre-set business Cloth information.
Since network connection information is to acquire from server in real time, the embodiment of the present disclosure provides This method, can rapidly obtain the user of pre-set business carrys out source distribution, compared with the relevant technologies, due to not needing to adopt With the mode of log statistic, so also do not need to configure special log statistic system for service server, in this way, not only can be with Hardware cost is saved, mode of operation is simple and convenient, but also the speed and efficiency to user sources distributional analysis can be improved.
In another embodiment of the disclosure, as shown in figure 3, the step S203 in above-mentioned embodiment illustrated in fig. 1 may include Following steps.
In step S301, in preset IP address database, search and described to get each source IP addresses opposite The source geographical location answered.
Due in IP address database, being stored with the corresponding source geographical location of each source IP addresses, therefore, In IP address database, the geography of source corresponding to each source IP addresses can be inquired according to each source IP addresses Position.
For example, the corresponding source geographical location of source IP addresses " 302.106.212.226 " is Changping District, Beijing Yang Fang The town village Yang Fang, the corresponding source geographical location of source IP addresses " 114.80.166.240 " are the town Pudong New Area, Shanghai Xuan Qiao south Six highways 178.
In step s 302, it is located at according to pre- division source geography region clustering described next in identical source geographic area Source geographical location obtains the source geographic area where all users of the pre-set business.
Aforementioned obtained source geographical location is specific, detailed location information, although can reflect each The corresponding accurate location of source IP address, but in actual count, more it is concerned with the position of multiple users of some regions Information, rather than the position of some user.Therefore, in this step, need to cluster obtained source geographical location.
In a particular application, it can divide to obtain multiple source geographic areas in advance, it, can be according to user's need when dividing It voluntarily to divide, it is generally the case that geographic area division can be carried out according to province or city, such as: after saving division, it can incite somebody to action Source geographical location from different provinces is aggregated to respectively in region corresponding to each province, alternatively, after being divided according to city, The source geographical location in the different cities from same province can be aggregated in region corresponding to each city.
In step S303, the source geographic area where all users of the pre-set business is determined as user sources Information.
After the source geographical location of all users of pre-set business has been divided into corresponding geographic area, then For the pre-set business, so that it may can be apparent that the Regional Distribution of Registered of the user of the pre-set business.
In the embodiment shown in fig. 3, directly using the source geographic area of all users as user sources information, but this is Most basic information, can only know which region the user of pre-set business both is from, but work as the user needed to pre-set business When being analyzed, it can not intuitively reflect user's difference between each region.For this purpose, in another embodiment of the disclosure, On the basis of embodiment shown in Fig. 3, as shown in figure 4, the step S203 in above-mentioned embodiment illustrated in fig. 1 can also include following Step.
In step 401, one of network connection information quantity and accounting in each source geographic area are counted Or two kinds of combinations.
At aforementioned division source geographic area, it can be counted according to data when dividing and be divided into each source geography Network connection information quantity in region, thus it is recognized that corresponding number of network connections in each source geographic area Amount.And be connected to the network quantity and represent the quantity of user, therefore, number of network connections amount in each source geographic area can be passed through Determine the quantity of area's intra domain user.
In addition, after statistics obtains network connection information quantity, can also be calculated each in disclosure other embodiments The accounting of network connection information quantity in the geographic area of source, such as: the network connection in each source geographic area is believed Breath quantity and the all-network link information quantity of the pre-set business are divided by, and then available each source geographic area Accounting.
Such as: as shown in figure 5, the total quantity of the network connection information of some business is 100, wherein come from Pekinese The quantity of network connection information is 51, and the quantity of the network connection information from Shanghai is 29, and the network from Guangzhou connects The quantity for connecing information is 20, can be calculated, from Pekinese, user accounts for 51%, and the user from Shanghai accounts for 29%, comes from The user in Guangzhou accounts for 20%.By above-mentioned accounting, it can clearly know that Pekinese user more pays close attention to target service.
In step S402, by least one in network connection information quantity and accounting in each source geographic area Kind is determined as the source distributed intelligence of the user of the pre-set business.
No matter select which in network connection information quantity and accounting that can have a clear understanding of as source distributed intelligence The difference of user in each each source geographic area.
In one embodiment of the disclosure, as shown in fig. 6, the step S201 in above-mentioned embodiment illustrated in fig. 1 may include with Lower step.
In step s 601, all-network link information on predetermined time foregoing description server is obtained.
In the embodiments of the present disclosure, predetermined time can be current time, such as: the institute of current preset business can be passed through There is user situation, before also can be set according to actual needs as current time a moment, such as: it counts 2013 years respectively Before, before 2014 and the user situation before 2015.
In a specific embodiment, the result of the pre-set business all-network link information got can be such as following table institute Show:
Table 1:
Serial number Source IP addresses: destination port
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 corresponding service port of pre-set business is 8011 and 8012, so the network connection got Destination port can be with 8011 or 8012 in information.
In step S602, by the destination port in all TCP messages got in every network connection information, It is compared respectively with the service port of the pre-set business.
In this step, it is compared by the service port of destination port and pre-set business in network connection information When, it can be to judge whether the two is identical.
In step S603, by destination port network connection information identical with the service port of the pre-set business, really It is set to network connection information associated with the pre-set business.
When the destination port of a network connection information and the service port of the pre-set business are identical, then being assured that The network connection information and then can be determined as the network connection information and pre-set business for obtaining the pre-set business It is associated.It can be quickly found out and the associated all-network link information of pre-set business by this method.
In one embodiment of the disclosure, as shown in fig. 7, the step S202 in above-mentioned embodiment illustrated in fig. 1 may include with Lower step.
In step s 701, source IP addresses institute in every network connection information associated with the pre-set business is determined Field.
It usually all include following four partial information: source IP addresses, source terminal for each network connection information Mouth, purpose IP address and destination port, above-mentioned table 1 have only write source IP addresses and destination port to illustrate conveniently.In addition, It can also include: in connection status, transmission state, reception state etc. other than above-mentioned four part by taking TCP connection as an example Hold.
Therefore, it when obtaining source IP addresses, needs to determine the field where source IP addresses first.
In step S702, from every network connection information associated with the pre-set business, the source will be removed Content where IP address outside field is deleted, and extraction obtains in every network connection information associated with the pre-set business Source IP addresses.
In this way, can be quickly by the content in network connection information with the incoherent other fields of source IP addresses All filterings, accurately extract source IP addresses.
Fig. 8 is a kind of structural schematic diagram of information acquisition device shown according to an exemplary embodiment.The device can be with Applied in the server in Fig. 1, as shown in figure 8, the apparatus may include:
Information acquisition unit 81, for obtaining network connection information associated with pre-set business in server;
In the embodiments of the present disclosure, network connection may include that (Transmission Control Protocol is passed TCP Transport control protocol view) connection etc. common network connection.
Usually in service server, service server locally can store the all-network connection before current time Information, in every network connection information, all including at least has: source IP addresses and destination port.
For business, one or more service ports can be corresponded in the local of business service, pass through these business Port can obtain pre-set business from service server.Therefore, in the embodiments of the present disclosure, associated with pre-set business Destination port in network connection information must be identical as the service port of the pre-set business.
Address acquisition unit 82, for obtaining the source in every network connection information associated with the pre-set business IP address;
It may include multiple fields for each network connection information, in the embodiments of the present disclosure, can traverse every A network connection information extracts the source IP addresses in network connection confidence associated with pre-set business.
Information determination unit 83, the source IP addresses for getting according to determine the user's of the pre-set business Source distributed intelligence.
For each IP address, corresponding position can be found in IP address database, therefore, in disclosure reality It applies in example, source distributed intelligence can be the location information of the corresponding all users of business, it is, of course, also possible in location information On the basis of, location information is further processed, such as: the number of users etc. in different zones is determined according to the location information of user Deng.
For example, according to the source IP addresses got, determine the user of pre-set business respectively from Beijing, Shanghai and wide State, wherein 2560 total from Pekinese user, the user from Shanghai is 1866 total, and the user from Guangzhou is total 1969.
The embodiment of the present disclosure provide the device, first from network connection information all in server, obtain with The associated network connection information of pre-set business, and then obtain and come in every network connection information associated with pre-set business Source IP address, it is final according to all source IP addresses got, determine the source point using all users of pre-set business Cloth information.
Since network connection information is to acquire from server in real time, the embodiment of the present disclosure provides The device, can rapidly obtain the user of pre-set business carrys out source distribution, compared with the relevant technologies, due to not needing to adopt With the mode of log statistic, so also do not need to configure special log statistic system for service server, in this way, not only can be with Hardware cost is saved, mode of operation is simple and convenient, but also the speed and efficiency to user sources distributional analysis can be improved.
In another embodiment of the disclosure, as shown in figure 9, the information determination unit 83 in above-mentioned embodiment illustrated in fig. 8, it can To include:
Subelement 91 is searched, for searching and getting each source IP addresses with described in preset IP address database Corresponding source geographical location;
Due in IP address database, being stored with the corresponding source geographical location of each source IP addresses, therefore, In IP address database, the geography of source corresponding to each source IP addresses can be inquired according to each source IP addresses Position.
For example, the corresponding source geographical location of source IP addresses " 302.106.212.226 " is Changping District, Beijing Yang Fang The town village Yang Fang, the corresponding source geographical location of source IP addresses " 114.80.166.240 " are the town Pudong New Area, Shanghai Xuan Qiao south Six highways 178.
It polymerize subelement 92, for being located at the institute in identical source geographic area according to the pre- source geography region clustering that divides Source geographical location is stated, all source geographic areas where the user of the pre-set business are obtained;
Aforementioned obtained source geographical location is specific, detailed location information, although can reflect each The corresponding accurate location of source IP address, but in actual count, more it is concerned with the position of multiple users of some regions Information, rather than the position of some user.Therefore, it in order to understand the location information of area's intra domain user, needs to obtained source Geographical location is clustered.
In a particular application, it can divide to obtain multiple source geographic areas in advance, it, can be according to user's need when dividing It voluntarily to divide, it is generally the case that geographic area division can be carried out according to province or city, such as: after saving division, it can incite somebody to action Source geographical location from different provinces is aggregated to respectively in region corresponding to each province, alternatively, after being divided according to city, The source geographical location in the different cities from same province can be aggregated in region corresponding to each city.
First determines subelement 93, is determined as the source geographic area where all users by the pre-set business The source distributed intelligence of the user of the pre-set business.
After the source geographical location of all users of pre-set business has been divided into corresponding geographic area, then For the pre-set business, so that it may can be apparent that the Regional Distribution of Registered of the user of the pre-set business.
On the basis of embodiment shown in Fig. 9, as shown in Figure 10, information determination unit 83 can also include:
Subelement 101 is counted, for counting in each source geographic area in network connection information quantity and accounting One or two kinds of combinations;
At aforementioned division source geographic area, it can be counted according to data when dividing and be divided into each source geography Network connection information quantity in region, thus it is recognized that corresponding number of network connections in each source geographic area Amount.And be connected to the network quantity and represent the quantity of user, therefore, number of network connections amount in each source geographic area can be passed through Determine the quantity of area's intra domain user.
In addition, after statistics obtains network connection information quantity, can also be calculated each in disclosure other embodiments The accounting of network connection information quantity in the geographic area of source, such as: the network connection in each source geographic area is believed Breath quantity and the all-network link information quantity of the pre-set business are divided by, and then available each source geographic area Accounting.
Such as: as shown in figure 5, the total quantity of the network connection information of some business is 100, wherein come from Pekinese The quantity of network connection information is 51, and the quantity of the network connection information from Shanghai is 29, and the network from Guangzhou connects The quantity for connecing information is 20, can be calculated, from Pekinese, user accounts for 51%, and the user from Shanghai accounts for 29%, comes from The user in Guangzhou accounts for 20%.By above-mentioned accounting, it can clearly know that Pekinese user more pays close attention to target service.
Second determines subelement 102, is used for network connection information quantity and accounting in each source geographic area One or both of combination be determined as the pre-set business user source distributed intelligence.
No matter select which in network connection information quantity and accounting that can have a clear understanding of as source distributed intelligence The difference of user in each each source geographic area.
In another embodiment of the disclosure, as shown in figure 11, the information acquisition unit 81 in above-mentioned embodiment illustrated in fig. 8, May include:
Subelement 111 is obtained, for obtaining all-network link information on predetermined time foregoing description server;
In the embodiments of the present disclosure, predetermined time can be current time, such as: the institute of current preset business can be passed through There is user situation, before also can be set according to actual needs as current time a moment, such as: it counts 2013 years respectively Before, before 2014 and the user situation before 2015.
In a specific embodiment, the result of the pre-set business all-network link information got can be such as aforementioned table Shown in 1.From table 1, it is seen then that the corresponding service port of pre-set business is 8011 and 8012, so the network connection letter got Destination port can be with 8011 or 8012 in breath.
Comparing subunit 112, for by the purpose in all TCP messages got in every network connection information Port is compared with the service port of the pre-set business respectively;
It can be judgement when the service port of destination port and pre-set business in network connection information to be compared Whether the two is identical.
Information determines subelement 113, for connecting destination port network identical with the service port of the pre-set business Information is connect, network connection information associated with pre-set business is determined as.
If the destination port of some network connection information is identical with the service port of the pre-set business, Determine that the network connection information is and then the network connection information can be determined as and be preset for obtaining the pre-set business Business 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, May include:
Field determines subelement 121, for determining every network connection information associated with the pre-set business Field where source IP address;
It usually all include following four partial information: source IP addresses, source terminal for each network connection information Mouth, purpose IP address and destination port, above-mentioned table 1 have only write source IP addresses and destination port to illustrate conveniently.In addition, It can also include: in connection status, transmission state, reception state etc. other than above-mentioned four part by taking TCP connection as an example Hold.
Therefore, it when obtaining source IP addresses, needs to determine the field where source IP addresses first.
The source will be removed from every network connection information associated with the pre-set business by extracting subelement 122 Content where IP address outside field is deleted, and extraction obtains in every network connection information associated with the pre-set business Source IP addresses.
In this way, can be quickly by the content in network connection information with the incoherent other fields of source IP addresses All filterings, accurately extract source IP addresses.
Figure 13 is a kind of block diagram of server 1300 for information acquisition method shown according to an exemplary embodiment. For example, device 1300 may be provided as a server.Referring to Fig.1 3, device 1300 includes processing component 1322, further Including one or more processors, and the memory resource as representated by memory 1332, it can be by processing component for storing The instruction of 1322 execution, such as application program.The application program stored in memory 1332 may include one or one with On each correspond to one group of instruction module.In addition, processing component 1322 is configured as executing instruction, to execute above-mentioned side Method provided by method embodiment.
Device 1300 can also include that a power supply module 1326 be configured as the power management of executive device 1300, and one Wired or wireless network interface 1350 is configured as device 1300 being connected to network and input and output (I/O) interface 1358.Device 1300 can be operated based on the operating system for being stored in memory 1332, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is held by the processor of terminal When row, enable the terminal to execute a kind of information acquisition method, which comprises
Obtain network connection information associated with pre-set business in server;
Obtain the source IP addresses in every network connection information associated with the pre-set business;
The source distributed intelligence of the user of the pre-set business is determined according to the source IP addresses got.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by appended Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (9)

1. a kind of information acquisition method characterized by comprising
All-network link information on server before acquisition predetermined time;
By the destination port in all TCP messages got in every network connection information, respectively with the default industry The service port of business is compared;
By destination port network connection information identical with the service port of the pre-set business, it is determined as and the pre-set business Associated network connection information;
Obtain the source IP addresses in every network connection information associated with the pre-set business;
The source distributed intelligence of the user of the pre-set business is determined according to the source IP addresses got.
2. the method according to claim 1, wherein the source IP addresses got according to determine institute State the user sources information of pre-set business, comprising:
In preset IP address database, searches and get the corresponding source geographical location of each source IP addresses with described;
It is located at the source geographical location in identical source geographic area according to the pre- source geography region clustering that divides, obtains institute State all source geographic areas where the user of pre-set business;
Source geographic area where all users of the pre-set business is determined as user sources information.
3. according to the method described in claim 2, it is characterized in that, the source IP addresses got according to determine institute State the user sources information of pre-set business, further includes:
Count network connection information quantity and/or accounting in each source geographic area;
Network connection information quantity in each source geographic area and/or accounting are determined as to the user of the pre-set business Source distributed intelligence.
4. method according to claim 1 or 2 or 3, which is characterized in that the acquisition is associated with the pre-set business Source IP addresses in every network connection information, comprising:
Determine the field in every network connection information associated with the pre-set business where source IP addresses;
It, will be in addition to field where the source IP addresses from every network connection information associated with the pre-set business Content is deleted, and extraction obtains the source IP addresses in every network connection information associated with the pre-set business.
5. a kind of information acquisition device characterized by comprising
Subelement is obtained, for obtaining before predetermined time all-network link information on server;
Comparing subunit, for dividing the destination port in all TCP messages got in every network connection information It is not compared with the service port of the pre-set business;
Information determines subelement, for by destination port network connection information identical with the service port of the pre-set business, It is determined as network connection information associated with pre-set business;
Address acquisition unit, for obtaining the source IP in every network connection information associated with the pre-set business Location;
Information determination unit, the source IP addresses for getting according to determine the source point of the user of the pre-set business Cloth information.
6. device according to claim 5, which is characterized in that the information determination unit, comprising:
Subelement is searched, in preset IP address database, is searched and described to get each source IP addresses corresponding Source geographical location;
It polymerize subelement, for being located at the source in identical source geographic area according to the pre- source geography region clustering that divides Geographical location obtains all source geographic areas where the user of the pre-set business;
First determines subelement, is determined as the source geographic area where all users by the pre-set business described pre- If the source distributed intelligence of the user of business.
7. device according to claim 6, which is characterized in that the information determination unit, further includes:
Subelement is counted, for counting network connection information quantity and/or accounting in each source geographic area;
Second determines subelement, for determining network connection information quantity in each source geographic area and/or accounting For the source distributed intelligence of the user of the pre-set business.
8. according to device described in claim 5 or 6 or 7, which is characterized in that the address acquisition unit, comprising:
Field determines subelement, for determining source IP addresses in every network connection information associated with the pre-set business The field at place;
The source IP addresses will be removed from every network connection information associated with the pre-set business by extracting subelement Content outside the field of place is deleted, and extraction obtains the source IP in every network connection information associated with the pre-set business Address.
9. a kind of server characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Obtain network connection information associated with pre-set business in server;
Obtain the source IP addresses in every network connection information associated with the pre-set business;
The source distributed intelligence of the user of the pre-set business is determined according to the source IP addresses got.
CN201610323698.XA 2016-05-16 2016-05-16 Information acquisition method, device and server Active CN106027692B (en)

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 CN106027692A (en) 2016-10-12
CN106027692B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
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
CN108900374B (en) * 2018-06-22 2021-05-25 网宿科技股份有限公司 Data processing method and device applied to DPI equipment
CN113313876B (en) * 2021-05-26 2022-08-12 北京云迹科技股份有限公司 Mobile hotel vending robot

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8924382B2 (en) * 2011-10-03 2014-12-30 Oracle International Corporation Techniques for distributing information over a network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN106027692A (en) 2016-10-12

Similar Documents

Publication Publication Date Title
Calderoni et al. Location-aware mobile services for a smart city: Design, implementation and deployment
EP2820616B1 (en) Empirical expert determination and question routing system and method
CN102591867B (en) Searching service method based on mobile device position
CN104573042B (en) The determination method and device of POI
CN104703125B (en) Information recommendation method, device and terminal based on instant messaging
CN101350013A (en) Method and system for searching geographical information
TWI703862B (en) Content recommendation method and device
CN107832325B (en) POI data verification method and equipment
CN103473238B (en) Dispense address location system and method
CN102782676A (en) Online search based on geography tagged recommendations
CN102622356B (en) A kind of encryclopedic knowledge system associating geographical location information
JP2010009315A (en) Recommended store presentation system
WO2015043212A1 (en) Address information input method,acquisition method, apparatus,device and system
CN104143005A (en) Related searching system and method
CN105653537A (en) Paging query method and device for database application system
CN106027692B (en) Information acquisition method, device and server
US8478773B1 (en) Interpreting search queries
CN103714080A (en) Spatial index structure tree based method and device for providing results of searching spatial objects
CN103186666A (en) Method, device and equipment for searching based on favorites
CN104750760A (en) Application software recommending method and device
CN105871585A (en) Terminal association method and device
CN102207942A (en) Identification information matching-based search method and device
US20180035367A1 (en) Method and Apparatus for Accessing Wifi Access Point in Target Shop
CN103257962A (en) Method and device for providing information
CN110427574B (en) Route similarity determination method, device, equipment and medium

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