CN103916291A - Testing method and device for internet log retaining system - Google Patents

Testing method and device for internet log retaining system Download PDF

Info

Publication number
CN103916291A
CN103916291A CN201410147831.1A CN201410147831A CN103916291A CN 103916291 A CN103916291 A CN 103916291A CN 201410147831 A CN201410147831 A CN 201410147831A CN 103916291 A CN103916291 A CN 103916291A
Authority
CN
China
Prior art keywords
access
internet log
request
testing
websites
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.)
Pending
Application number
CN201410147831.1A
Other languages
Chinese (zh)
Inventor
王彬
周广
张恺
冀哲
韩卫平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201410147831.1A priority Critical patent/CN103916291A/en
Publication of CN103916291A publication Critical patent/CN103916291A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a testing method and device for an internet log retaining system. The method includes the first step of receiving a call testing request from a terminal, the second step of selecting a URL randomly from a first URL list which is stored locally, sending an access request to a server corresponding to the selected URL and recording the access number, the third step of determining whether the access number is equal to a preset call testing number, and stopping call testing if the access number is equal to the preset call testing number, the fourth step of storing successful access records locally, wherein the successful access records include access URLs, terminal identification and access time, the fifth step of sending a request for acquiring an internet log to the internet log retaining system, wherein the request for the internet log includes the terminal identification and the access time, and the sixth step of determining the performance of the internet log retaining system according to the successful access records and the obtained internet log. According to the testing method and device, testing of the internet log retaining system is automatically completed through the call testing request of the terminal according to the URLs stored locally, the testing method is simple, and the testing efficiency and accuracy are high.

Description

Internet log is retained system detection method and device
Technical field
The present invention relates to communication technical field, relate in particular to a kind of internet log and retain system detection method and device.
Background technology
In order to ensure the public safety of network, and for providing more fully, user serves, network manager can be according to user's internet behavior, the running status of network, find and eliminate some hidden network dangers, guarantee the reasonable utilization of Internet resources and stablize, need to carry out record to user's internet log and behavior, having occurred internet log retention system thereupon.
The accuracy of internet log record is the important performance indexes that internet log is retained system.How the accuracy of internet log retention system log (SYSLOG) daily record is tested, become when internet log retention system is set at present problem demanding prompt solution.
Summary of the invention
The invention provides a kind of internet log and retain system detection method and device, for solving the problem of how accuracy of internet log retention system log (SYSLOG) daily record being tested.
The invention provides a kind of internet log and retain system detection method, comprising:
The testing request that receiving terminal sends, described testing request comprises terminal iidentification;
From the first list of websites of this locality storage, pick URL at random, initiate access request to the server corresponding with the network address of choosing, and the quantity of record access;
Whether the quantity of determining described access equals default testing quantity, if so, stops testing;
Access is successfully recorded and is stored in this locality, and described access successfully record comprises: access network address, described terminal iidentification and the access time;
Send and obtain internet log request to internet log retention system, described in obtain internet log request and comprise: described terminal iidentification and access time;
The internet log that successfully records and obtain according to described access is determined the performance of described internet log retention system.
The invention provides a kind of internet log and retain opening machine system test device, comprising:
Receiver module, the testing request sending for receiving terminal, described testing request comprises terminal iidentification;
Processing module, for picking URL at random from the first list of websites of this locality storage, initiates access request to the server corresponding with the network address of choosing, and the quantity of record access;
Whether judge module, equal default testing quantity for the quantity of determining described access, if so, stops testing;
Memory module, for access is successfully recorded and is stored in this locality, described access successfully record comprises, access network address, described terminal iidentification and the access time;
Acquisition module, for sending and obtain internet log request to internet log retention system, described in obtain internet log request and comprise: described terminal iidentification and access time;
Determination module, the internet log that successfully records and obtain according to described access is determined the performance of described internet log retention system.
Internet log provided by the invention is retained system detection method and device, by according to the testing request of terminal, utilizes the network address of local storage, automatically completes the test of internet log being retained to system, and method of testing is simple, and efficiency and accuracy are high.
Brief description of the drawings
Fig. 1 is the schematic flow sheet that a kind of internet log provided by the invention is retained systems approach embodiment;
Fig. 2 is the structural representation that a kind of internet log provided by the invention is retained system testing system embodiment;
Fig. 3 is the structural representation that a kind of internet log provided by the invention is retained opening machine system test device embodiment.
Embodiment
Fig. 1 is the schematic flow sheet that a kind of internet log provided by the invention is retained systems approach embodiment mono-.As shown in Figure 1, the method, comprising:
S100, the testing request that receiving terminal sends, described testing request comprises terminal iidentification.
The internet log that the present embodiment provides is retained systems approach and is carried out by internet log retention opening machine system test device provided by the invention.
First, this testing apparatus can be connected with terminal by modes such as USB interface or blue tooth interfaces, and by optical fiber interface or common data transmission interface, such as the modes such as RJ45 interface are retained system switch with internet log respectively, internet log retains system and gateway node is connected.If the internet log retention system in mobile network is tested, gateway node can be GPRS (General Packet Radio Service, be called for short GPRS), gateway support node (Gateway GPRS Support Node, be called for short GGSN) or be packet data serving node (Packet Data Serving Node, be called for short PDSN) etc., if the internet log retention system in internet is tested, gateway node is core router (Core Router, be called for short CR), and other the network node for packet routing and forwarding, the present embodiment contrast does not limit.
Wherein, terminal iidentification can be the mobile number of terminal, or be international mobile subscriber identity (the International Mobile Subscriber Identification Number of terminal, be called for short IMSI), or be the initial IP of terminal, or Internet user's name of user, or be other identifier of this terminal difference of unique identification and other terminal, the present embodiment does not limit this.
For convenience of description, various embodiments of the present invention are tested with the internet log retention system in mobile network, and corresponding gateway node is that GGSN is that example describes.Fig. 2 is the structural representation that a kind of internet log provided by the invention is retained system testing system embodiment.As shown in Figure 2, this system comprises: terminal 200, and testing apparatus 210, GGSN switch 220, internet log is retained system 230.
S110 picks URL at random from the first list of websites of this locality storage, initiates access request to the server corresponding with the network address of choosing, and the quantity of record access.
Concrete, the first list of websites in testing apparatus, can be before each test, the list of websites sending to this testing apparatus; Also can, before the first use of testing apparatus, send list of websites to this testing apparatus, if when list of websites to be tested has renewal, then according to updating message, the first list of websites of renewal.The present embodiment does not limit this.
S120, determines whether the quantity of described access equals default testing quantity, if so, stops testing.
Wherein, default testing quantity, can be this test testing quantity that need to complete arranging before this test, can be also arrange utilize this testing apparatus to test time, the testing quantity that need to complete, the present embodiment does not limit this.For instance, if there are 20 network address in the first list of websites, and default testing quantity is 10, and testing apparatus, having recorded after the 10th access, determines that access number has reached default testing quantity, stops testing.
S130, successfully records access to be stored in this locality, and described access successfully record comprises: access network address, described terminal iidentification and the access time.
For instance, if the terminal that mobile number is 12345678912, at 9 successful access login QQ on November 8th, 2013, this testing apparatus can successfully record this access to be stored in this locality.It should be noted that, access herein is successfully recorded and is only referred to that terminal is to the server initiation access request corresponding with the network address of choosing, and the record meeting with a response, if terminal is initiated access request to the server corresponding with network address, but do not meet with a response, the quantity of the access to record adds one, but accesses unsuccessfully, does not record network address, terminal iidentification and access time information.
S140, sends and obtains internet log request to internet log retention system, described in obtain internet log request and comprise: described terminal iidentification and access time.
Concrete, in internet log retention system, preserve the internet log corresponding with terminal iidentification, access time, testing apparatus is carrying out in the certain hour after testing according to the testing request of terminal, can from internet log retention system, obtain the internet log corresponding with this terminal iidentification, access time.
S150, the internet log that successfully records and obtain according to described access is determined the performance of described internet log retention system.
For instance, if it is 10 that quantity is successfully recorded in the access of recording in testing apparatus, and be 9 according to the internet log quantity that terminal iidentification and access time obtain from internet log retention system, to retain the accuracy of system internet log record be 9/10 to this internet log, or 90%.
Concrete, can also access the internet log that successfully records and obtain by contrast, determine the sensitivity of this internet log retention system.For instance, if after 2 minutes after testing finishes, stop obtaining internet log from internet log retention system, by the internet log of relatively accessing successful record and obtaining, online quantity in the internet log that discovery is obtained is than few one of the successful record of access, and the last item that the internet log lacking is this terminal is accessed successful record, the reaction time that this internet log retention system log (SYSLOG) internet log is described is greater than 2 minutes, now, after can being arranged on testing and finishing 3 minutes, stop again obtaining internet log from internet log retention system, whether reexamine the internet log obtaining successfully records and mates completely with access, if be still few the last item record, continue to extend the time that stops retaining from internet log system acquisition internet log, until after arrival official hour, still can not obtain the last item and access successful record, the sensitivity that this internet log retention system is described is defective.If or after regulation, the internet log obtaining from internet log retention system is fewer than the successful record of access, and by relatively finding, the record lacking interlocutory access Visitor Logs corresponding to moment, illustrate that the accuracy of this internet log retention system is low.
In a kind of possible implementation of the present invention, above-mentioned after by access, successfully record is stored in this locality, also comprise:
Described access is successfully recorded and sent to described internet log to retain system.
In the test macro shown in Fig. 2, for avoiding sending access packet loss, bottom pour ladle due to GGSN while successfully recording by GGSN switch to internet log retention system, and cause that internet log retention system cannot obtain the successful record of whole access, thereby make the performance of the internet log retention system recording low, can access successfully be recorded and be sent to internet log to retain system by testing apparatus, by the mode of Dual-path backup, reduce packet loss in data transmission procedure, bottom pour ladle and make the internet log recording retain the low possibility of performance of system.
Further, before the testing request that described receiving terminal sends, also comprise:
Receive clock synchronization request;
According to described clock synchronous request, adjust local clock and synchronize with described internet log retention system clock.
Concrete, consistent in time for ensureing that testing apparatus and tested internet log are retained system, in order to avoid cause log recording time of causing due to time error and the difference of testing time to be greater than test request, affect the accuracy of test result, testing apparatus is also connected with a clock synchronization server, this clock synchronous server can be the clock synchronous server that internet log is retained internal system, if or this internet log retention system does not arrange clock synchronous server, can utilize global positioning system (Global Position System, be called for short GPS), carrying out testing apparatus synchronizes with the clock of tested internet log retention system.
In the possible implementation of another kind in the present embodiment, describedly from the first list of websites of this locality storage, pick URL at random, initiate access request to the server corresponding with the network address of choosing, comprising:
From the first list of websites of this locality storage, choose at random the network address equating with default testing quantity, composition the second list of websites;
Initiate access request to each server corresponding with each network address in described the second list of websites;
Describedly determine when the quantity of described access equals default testing quantity, stop testing, comprising:
Determine and traveled through server corresponding to all network address in complete described the second list of websites, stop testing.
For instance, if the first list of websites of local storage comprises 20 network address, default testing quantity is 15, can from 20 network address, select 15 network address to form the second list of websites at random, then initiate access request to the server corresponding with these 15 network address successively, until by complete this second list of websites traversal.
The internet log that the present embodiment provides is retained system detection method, by according to the testing request of terminal, utilizes the network address of local storage, automatically completes the test of internet log being retained to system, and method of testing is simple, and efficiency and accuracy are high.And directly access is successfully recorded and sent to internet log to retain system by testing apparatus, reduce the possibility of the hydraulic performance decline of the internet log retention system causing due to network node packet loss.
Fig. 3 is the structural representation that a kind of internet log provided by the invention is retained opening machine system test device embodiment.As shown in Figure 3, this testing apparatus comprises: receiver module 300, processing module 310, judge module 320, memory module 330, acquisition module 340, determination module 350;
Wherein, receiver module 300, the testing request sending for receiving terminal, described testing request comprises terminal iidentification;
Processing module 310, for picking URL at random from the first list of websites of this locality storage, initiates access request to the server corresponding with the network address of choosing, and the quantity of record access;
Whether judge module 320, equal default testing quantity for the quantity of determining described access, if so, stops testing;
Memory module 330, for access is successfully recorded and is stored in this locality, described access successfully record comprises, access network address, described terminal iidentification and the access time;
Acquisition module 340, for sending and obtain internet log request to internet log retention system, described in obtain internet log request and comprise: described terminal iidentification and access time;
Determination module 350, the internet log that successfully records and obtain according to described access is determined the performance of described internet log retention system.
In a kind of possible implementation of this enforcement, described memory module 330, after by access, successfully record is stored in this locality, also for:
Described access is successfully recorded and sent to described internet log to retain system.
Further, described receiver module, receiving terminal send testing request before, also for:
Receive clock synchronization request;
According to described clock synchronous request, adjust local clock and synchronize with described internet log retention system clock.
In the possible implementation of the another kind of the present embodiment, described processing module, specifically for:
From the first list of websites of this locality storage, choose at random the network address equating with default testing quantity, composition the second list of websites;
Initiate access request to each server corresponding with each network address in described the second list of websites;
Described judge module, specifically for:
Determine and traveled through server corresponding to all network address in complete described the second list of websites, stop testing.
The internet log that the present embodiment provides is retained function and the handling process of each module in opening machine system test device, and the internet log that can corresponding provide with reference to the embodiment of the present invention is retained the detailed description of system detection method, repeats no more herein.
The internet log that the present embodiment provides is retained opening machine system test device, by according to the testing request of terminal, utilizes the network address of local storage, automatically completes the test of internet log being retained to system, and method of testing is simple, and efficiency and accuracy are high.And directly access is successfully recorded and sent to internet log to retain system by testing apparatus, reduce the possibility of the hydraulic performance decline of the internet log retention system causing due to network node packet loss.
In the several embodiment that provide in the application, should be understood that, disclosed method, equipment and system, can realize by another way.For example, device embodiment described above is only schematic, the division of described functional module, be only that a kind of logic function is divided, when actual realization, can there is other dividing mode, for example multiple modules can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can complete by the relevant hardware of program command, aforesaid program can be stored in a computer read/write memory medium, this program, in the time carrying out, is carried out the step that comprises said method embodiment; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.Finally it should be noted that: above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these amendments or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (8)

1. internet log is retained a system detection method, it is characterized in that, comprising:
The testing request that receiving terminal sends, described testing request comprises terminal iidentification;
From the first list of websites of this locality storage, pick URL at random, initiate access request to the server corresponding with the network address of choosing, and the quantity of record access;
Whether the quantity of determining described access equals default testing quantity, if so, stops testing;
Access is successfully recorded and is stored in this locality, and described access successfully record comprises: access network address, described terminal iidentification and the access time;
Send and obtain internet log request to internet log retention system, described in obtain internet log request and comprise: described terminal iidentification and access time;
The internet log that successfully records and obtain according to described access is determined the performance of described internet log retention system.
2. method according to claim 1, is characterized in that, described after by access, successfully record is stored in this locality, also comprises:
Described access is successfully recorded and sent to described internet log to retain system.
3. method according to claim 1 and 2, is characterized in that, before the testing request that described receiving terminal sends, also comprises:
Receive clock synchronization request;
According to described clock synchronous request, adjust local clock and synchronize with described internet log retention system clock.
4. method according to claim 1 and 2, is characterized in that, described the first list of websites of storing from this locality, picks URL at random, initiates access request to the server corresponding with the network address of choosing, and comprising:
From the first list of websites of this locality storage, choose at random the network address equating with default testing quantity, composition the second list of websites;
Initiate access request to each server corresponding with each network address in described the second list of websites;
Describedly determine when the quantity of described access equals default testing quantity, stop testing, comprising:
Determine and traveled through server corresponding to all network address in complete described the second list of websites, stop testing.
5. internet log is retained an opening machine system test device, it is characterized in that, comprising:
Receiver module, the testing request sending for receiving terminal, described testing request comprises terminal iidentification;
Processing module, for picking URL at random from the first list of websites of this locality storage, initiates access request to the server corresponding with the network address of choosing, and the quantity of record access;
Whether judge module, equal default testing quantity for the quantity of determining described access, if so, stops testing;
Memory module, for access is successfully recorded and is stored in this locality, described access successfully record comprises, access network address, described terminal iidentification and the access time;
Acquisition module, for sending and obtain internet log request to internet log retention system, described in obtain internet log request and comprise: described terminal iidentification and access time;
Determination module, the internet log that successfully records and obtain according to described access is determined the performance of described internet log retention system.
6. device according to claim 5, is characterized in that, also comprises, described memory module, after by access, successfully record is stored in this locality, also for:
Described access is successfully recorded and sent to described internet log to retain system.
7. according to the device described in claim 5 or 6, it is characterized in that, described receiver module, receiving terminal send testing request before, also for:
Receive clock synchronization request;
According to described clock synchronous request, adjust local clock and synchronize with described internet log retention system clock.
8. according to the device described in claim 5 or 6, it is characterized in that, described processing module, specifically for:
From the first list of websites of this locality storage, choose at random the network address equating with default testing quantity, composition the second list of websites;
Initiate access request to each server corresponding with each network address in described the second list of websites;
Described judge module, specifically for:
Determine and traveled through server corresponding to all network address in complete described the second list of websites, stop testing.
CN201410147831.1A 2014-04-14 2014-04-14 Testing method and device for internet log retaining system Pending CN103916291A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410147831.1A CN103916291A (en) 2014-04-14 2014-04-14 Testing method and device for internet log retaining system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410147831.1A CN103916291A (en) 2014-04-14 2014-04-14 Testing method and device for internet log retaining system

Publications (1)

Publication Number Publication Date
CN103916291A true CN103916291A (en) 2014-07-09

Family

ID=51041709

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410147831.1A Pending CN103916291A (en) 2014-04-14 2014-04-14 Testing method and device for internet log retaining system

Country Status (1)

Country Link
CN (1) CN103916291A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106102090A (en) * 2016-06-14 2016-11-09 国家计算机网络与信息安全管理中心 A kind of LTE multi-interface data earth-filling method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101465764A (en) * 2008-12-30 2009-06-24 公安部第三研究所 Inspection method for internet service business place information safety management
CN102413489A (en) * 2011-12-12 2012-04-11 广东欧珀移动通信有限公司 Automatic test method for WiFi (Wireless Fidelity) network connection of mobile phone
CN103369532A (en) * 2012-04-09 2013-10-23 黄余晖 Black box detection method for mobile terminal malicious software behavior
CN104156461A (en) * 2014-08-20 2014-11-19 深圳市共进电子股份有限公司 Method and device for testing pressure of gateway products

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101465764A (en) * 2008-12-30 2009-06-24 公安部第三研究所 Inspection method for internet service business place information safety management
CN102413489A (en) * 2011-12-12 2012-04-11 广东欧珀移动通信有限公司 Automatic test method for WiFi (Wireless Fidelity) network connection of mobile phone
CN103369532A (en) * 2012-04-09 2013-10-23 黄余晖 Black box detection method for mobile terminal malicious software behavior
CN104156461A (en) * 2014-08-20 2014-11-19 深圳市共进电子股份有限公司 Method and device for testing pressure of gateway products

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106102090A (en) * 2016-06-14 2016-11-09 国家计算机网络与信息安全管理中心 A kind of LTE multi-interface data earth-filling method and device

Similar Documents

Publication Publication Date Title
CN101873259B (en) SCTP (Stream Control Transmission Protocol) message identification method and device
CN106790744B (en) IP scheduling method and system
CN103731413B (en) A kind of method for handling abnormal login
CN107580032B (en) Data processing method, device and equipment
CN105912455A (en) Business execution method and server
CN101771723A (en) Data synchronization method
CN111600965A (en) Consensus method and system in block chain
CN104113576A (en) Method and device for updating client
CN103607476A (en) System and method for distributed multi-stage persistence of huge number of messages
CN103617007A (en) Method and system for achieving multilevel intelligent storage
CN104657435A (en) Storage management method for application data and network management system
CN105208560A (en) WiFi certification-free log-in method, device and system
CN103024798A (en) Method and device for testing access point (AP) performance
CN108880906A (en) A kind of fault recovery method of Metadata Service, server, client and system
WO2022095844A1 (en) Elastic block service mounting method and apparatus thereof
CN108509296B (en) Method and system for processing equipment fault
US10853892B2 (en) Social networking relationships processing method, system, and storage medium
CN101789963A (en) Data synchronization system
CN106453663B (en) Improved storage expansion method and device based on cloud service
CN101510172B (en) Test system and method
CN102339305B (en) Database cluster failure recovery method on basis of partial ordering relation logs
CN103916291A (en) Testing method and device for internet log retaining system
CN107291777A (en) A kind of method and apparatus of hot spot data identification and processing
CN105871982A (en) Content pushing method, device and system
CN106899429B (en) SNMP-based equipment management method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140709

RJ01 Rejection of invention patent application after publication