A kind of method, system and router obtaining the network information based on router group
Technical field
The present invention relates to network monitoring field more particularly to it is a kind of based on router group obtain the network information method, be
System and router.
Background technology
With the continuous development of network communication, transmission on Internet information not by region, time restriction, and spread speed very
Soon, in order to which the effective guarantee network information is safety, legal information, essential approach is monitoring network public-opinion.
Existing monitoring method is mainly that telecommunication department or Internet Service Provider carry out public opinion prison to the content of transmission
Control would generally use extensive, the dedicated monitoring device of high throughput to analyze network data, and structure is very multiple
It is miscellaneous.
The patent of Publication No. CN104573008A discloses a kind of network information monitoring method and device, including:Crawl
The network information sent and received in terminal;Word segmentation processing is carried out to the text of the network information, and is extracted at participle
Manage obtained participle;The participle extracted is matched in the preset database one by one, determines each participle
Feature has prestored different words and the corresponding feature of each word in the presetting database;It is tied according to matching
Fruit counts the characteristic value of each feature in the network information;Displaying statistics as a result, so that user is according to the system
The result of meter is monitored the network information.But the invention mainly for domestic consumer to the price bidding of child into
Row monitoring, is the crawl and analysis that data are carried out in each terminal device, is not suitable for large-scale network public-opinion monitoring.
The patent of Publication No. CN104636386A discloses a kind of information monitoring method and device.It is related to communication technology neck
Domain can be that user searches relevant information, and can effectively save faster during for the user monitoring network information
System resource.This method includes:Initial data is obtained from data source, and determines the Sentiment orientation of initial data;According to original number
According to Sentiment orientation, initial data is divided to obtain the type of initial data;Determine that the monitoring that initial data includes is crucial
Word;The monitoring keyword for including according to the first monitoring condition, initial data determines the use for paying close attention to same type of initial data
Family;Same type of initial data or same type of initial data are sent to the user for paying close attention to same type of initial data
Relevant information.It is mainly used for information monitoring, is monitored particularly for the network information.But the invention usually requires high throughput
Dedicated monitoring device analyzes monitoring data, and structure is considerably complicated, and cost is higher.
Invention content
The purpose of the present invention is in view of the drawbacks of the prior art, provide a kind of side obtaining the network information based on router group
Method, system and router can obtain network monitoring information in time, without using the dedicated monitoring device of high throughput, behaviour
Cost is greatly reduced while making easy.
In order to achieve the goal above, the present invention uses following technical scheme:
A kind of router, including:
Judgment module receives the network information acquisition instruction sent from far-end server for judging whether;
Data packet handling module, for capturing data packet according to the network information acquisition instruction;
Sending module, for the data packet to be sent to far-end server.
Preferably, further include:
Setting module, time and key character for setting crawl data packet according to the network information acquisition instruction;
Key character extraction module, for according to the data packet of the setting key character extraction with the key character.
Preferably, further include:
Sending module is obtained, the number information is simultaneously sent to distal end by the number information for obtaining the key character
Server.
Correspondingly, also providing a kind of method obtaining the network information based on router group, including step:
Judge whether to receive the network information acquisition instruction sent from far-end server;
If receiving the network information acquisition instruction, data packet is captured as according to the network information acquisition instruction;
The data packet is sent to far-end server.
Preferably, further include step:
The key character of data packet crawl time and data packet crawl is set according to the network information acquisition instruction;
According to the data packet of the setting key character extraction with the key character.
Preferably, further include step:
It obtains the number information of the key character and the number information is sent to far-end server.
Correspondingly, also providing a kind of system obtaining the network information based on router group, including router group and server
End, the router group include one or more routers:
The number that the server end is used to send network information acquisition instruction to the router and receiving router captures
According to packet;
The router group includes data packet handling module, for capturing data according to the network information acquisition instruction
Packet.
Preferably, the router group further includes:Setting module, the network information for receiving server end transmission obtain
Instruct and set according to the network information acquisition instruction time and the key character of crawl data packet.
Preferably, the router group further includes:
Key character extraction module, for according to the data packet of the setting key character extraction with the key character.
Preferably, the router group further includes:
Sending module is obtained, the number information is simultaneously sent to service by the number information for obtaining the key character
Device end.
Compared with prior art, the present invention realizes the real-time acquisition of the network information using the high circulation of router, is not necessarily to
Using the dedicated monitoring device of high throughput, the efficiency of network monitoring is improved under the premise of low cost, is applicable to big-and-middle
The coverage area of type city WiFi, and only the update on software need to be carried out to router under existing network communication environment and realized,
The equipment for not needing deployment-specific, need not thinner iteration cost.
Description of the drawings
Fig. 1 is that embodiment one provides a kind of method flow diagram obtaining the network information based on router group;
Fig. 2 is that embodiment two provides a kind of method flow diagram obtaining the network information based on router group;
Fig. 3 is that embodiment three provides a kind of system construction drawing obtaining the network information based on router group;
Fig. 4 provides a kind of system construction drawing of router for example IV.
Specific implementation mode
Following is a specific embodiment of the present invention in conjunction with the accompanying drawings, technical scheme of the present invention will be further described,
However, the present invention is not limited to these examples.
Embodiment one
The present embodiment provides it is a kind of based on router group obtain the network information method, the router group include one or
Multiple routers, as shown in Figure 1, including step:
S11, judge whether to receive the network information acquisition instruction sent from far-end server;
If S12, receiving the network information acquisition instruction, data packet is captured according to the network information acquisition instruction;
S13, the data packet is sent to far-end server.
With the continuous development of network technology, network information monitoring is particularly important, and existing monitoring method is mainly
Telecommunication department or Internet Service Provider carry out public opinion monitoring to the content of transmission, monitor the network information by this way, no
Only process is complicated, and usually requires to analyze network data using extensive, the dedicated monitoring device of high throughput,
Structure is sufficiently complex.
The present embodiment realizes the monitoring of the network information by using router cluster, and router section completely can be by software
Realize, with little need for additional cost, the distributed deployment of router but also the data volume that obtains of same router is little,
The network information is improved to obtain efficiency and do not need additional calculating cost.Method provided in this embodiment be suitable for school, airport,
The crowded occasion such as station, community realizes that the crawl of transmitted data on network packet and character are extracted using router, and will extraction
Statistical information be transmitted to remote server, remote server can be according to the statistics of position and character crawl where router
Information does relevant judgement statistics.
Step S11 routers group judges whether to receive the network information acquisition instruction sent from far-end server,
In, router group includes one or more routers, depending on the range for carrying out network monitoring as needed, when needing to carry out net
Far-end server can issue in network information acquisition instruction to router group when network monitors, wherein network information acquisition instruction
Including obtaining time, acquisition range etc..
Step S12 routers group captures after receiving the network information acquisition instruction that far-end server is sent according to the instruction
Data packet between router group independently of each other establishes data connection with far-end server.
Step S13 delivers a packet to far-end server after capturing data packet according to instruction, and far-end server is to data
Packet carries out storage statistics, and user can extract relevant network information content in far-end server, realize the full mistake of network monitoring
Journey realizes network monitoring using the high circulation of router, can obtain related network information in time, network monitoring is efficient,
It is at low cost.
The present embodiment realizes the real-time acquisition of the network information using the high circulation of router, without using high throughput
Dedicated monitoring device, improves the efficiency of network monitoring under the premise of low cost, and is applicable to large- and-medium size cities WiFi's
Coverage area.
Embodiment two
The present embodiment provides a kind of methods obtaining the network information based on router group, what is different from the first embodiment is that this
Embodiment further includes step S22, step S23 and step S25, according to network information acquisition instruction set the data packet crawl time and
Keyword is captured, intelligence improves the acquisition efficiency of the network information, while the data of the network information are obtained by router group, subtracts
The light huge calculation amount of far-end server and data volume processing, as shown in Fig. 2, including step:
S21, judge whether to receive the network information acquisition instruction sent from far-end server;
If S22, receiving the network information acquisition instruction, crawl data are set according to the network information acquisition instruction
The time of packet and key character;
S23, data packet is captured in setting time and the key character is had according to the setting key character extraction
Data packet;
S24, the data packet is sent to far-end server.
Preferably, as shown in figure 4, it is described according to the network information acquisition instruction capture data packet include step:
Router in the present embodiment in router group can set data packet crawl according to network information acquisition instruction
The keyword of time and data packet crawl captures data packet and according to the crucial system extraction tool of setting in corresponding setting time
The data packet for having key character keeps the process of router crawl data packet more intelligent, can be according to the demand of user not
The different data packet of crawl in the same time realizes that the intelligence of disparate networks information monitoring is arrested.
Preferably, further include step:
The number information is simultaneously sent to far-end server by S25, the number information for obtaining the key character.
Router group counts the number information of key character after capturing data packet and is sent to the number information far
End server has more intuitive understanding so that user is when transferring the network information to the key content of the network information.In this reality
It applies in example, key character in data packet is calculated by each router in router group and is sent to far-end server, distal end
Router group need to only be calculated the data obtained and carry out Macro or mass analysis by server, needed not rely upon far-end server and received all grab
The data packet that takes simultaneously is unifiedly calculated and is analyzed to these data, is mitigated at far-end server huge calculation amount and data volume
Reason solves the problems, such as to need to realize that the network information monitors with high performance monitoring device in the prior art.
The present embodiment interior in different times according to the demand of user can capture different data packets, realize disparate networks
The intelligent of information monitoring obtains.
Embodiment three
The present embodiment provides a kind of systems obtaining the network information based on router, as shown in figure 3, including router group 31
With server end 32:
The server end 31 is used to send what network information acquisition instruction and receiving router captured to the router
Data packet;
The router group 32 includes data packet handling module 321, for being captured according to the network information acquisition instruction
Data packet.
With the continuous development of network technology, network information monitoring is particularly important, and existing monitoring method is mainly
Telecommunication department or Internet Service Provider carry out public opinion monitoring to the content of transmission, monitor the network information by this way, no
Only process is complicated, and usually requires to analyze network data using extensive, the dedicated monitoring device of high throughput,
Structure is sufficiently complex.
The present embodiment realizes the monitoring of the network information by using router cluster, and router section completely can be by software
Realize, with little need for additional cost, the distributed deployment of router but also the data volume that obtains of same router is little,
The network information is improved to obtain efficiency and do not need additional calculating cost.Method provided in this embodiment be suitable for school, airport,
The crowded occasion such as station, community realizes that the crawl of transmitted data on network packet and character are extracted using router, and will extraction
Statistical information be transmitted to remote server, remote server can be according to the statistics of position and character crawl where router
Information does relevant judgement statistics.
Preferably, the router group 32 further includes:
Setting module 322, for receive server end transmission network information acquisition instruction and according to the network information
Acquisition instruction sets the key character of data packet crawl time and data packet crawl.
Preferably, the router group further includes:
Key character extraction module 323, for according to the data of the setting key character extraction with the key character
Packet.
Preferably, the router group further includes:
Sending module 324 is obtained, the number information is simultaneously sent to by the number information for obtaining the key character
Server end.
The control system provided in this embodiment that the network information is obtained based on router is real using the high circulation of router
The real-time acquisition of the existing network information improves net without using the dedicated monitoring device of high throughput under the premise of low cost
The efficiency of network monitoring, and it is applicable to the coverage area of large- and-medium size cities WiFi, and only need to be right under existing network communication environment
Router carries out the update on software and realizes that the equipment for not needing deployment-specific need not thinner iteration cost.
Embodiment three
The present embodiment provides a kind of routers, as shown in figure 3, including:
Judgment module 41 receives the network information acquisition instruction sent from far-end server for judging whether;
Data packet handling module 42, for capturing data packet according to the network information acquisition instruction;
Sending module 43, for the data packet to be sent to far-end server.
The present embodiment realizes the monitoring to the network information by using the modules of router, and router section is complete
Can be by software realization, with little need for additional cost, the distributed deployment of router is but also the number that same router obtains
It is little according to amount, it improves the network information and obtains efficiency and do not need additional calculating cost.Method provided in this embodiment is suitable for
The crowded occasion such as school, airport, station, community realizes that the crawl of transmitted data on network packet and character carry using router
It takes, remote server is transmitted to using router stroke provided in this embodiment group and by the statistical information of extraction, it is long-range to take
Business device can do relevant judgement according to the statistical information of position and character crawl where router and count, and then high efficiency,
It is realized with a low cost the monitoring of the network information.
Preferably, further include:
Setting module, for what is captured according to network information acquisition instruction setting data packet crawl time and data packet
Key character, the data packet handling module capture data packet according to the setting time;
Key character extraction module, for according to the data packet of the setting key character extraction with the key character.
Router can set the data packet crawl time according to network information acquisition instruction in the present embodiment and data packet is grabbed
The keyword taken captures data packet and according to crucial number of the system extraction with key character of setting in corresponding setting time
According to packet, keep the process of router crawl data packet more intelligent, it can interior crawl in different times according to the demand of user
Different data packets realizes that the intelligence of disparate networks information monitoring is arrested.
Preferably, further include:
Sending module is obtained, the number information is simultaneously sent to distal end by the number information for obtaining the key character
Server.
Key character in data packet is calculated by router and is sent to far-end server, and far-end server need to will only be route
Device group calculates the data obtained and carries out Macro or mass analysis, needs not rely upon far-end server and receives the data packet of all crawls and to this
A little data are unifiedly calculated and are analyzed, and are mitigated the huge calculation amount of far-end server and data volume processing, are solved the prior art
In need with high performance monitoring device could realize the network information monitoring the problem of.
Router provided in this embodiment can provide more intelligent, efficient realization method for network monitoring system, utilize
The high circulation of router realizes the real-time acquisition of the network information, without using the dedicated monitoring device of high throughput, low
The efficiency of network monitoring is improved under the premise of cost, and is applicable to the coverage area of large- and-medium size cities WiFi.
Specific embodiment described herein is only an example for the spirit of the invention.Technology belonging to the present invention is led
The technical staff in domain can make various modifications or additions to the described embodiments or replace by a similar method
In generation, however, it does not deviate from the spirit of the invention or beyond the scope of the appended claims.