CN102340429B - Automatic Internet protocol recovery detection method - Google Patents

Automatic Internet protocol recovery detection method Download PDF

Info

Publication number
CN102340429B
CN102340429B CN201110307642.2A CN201110307642A CN102340429B CN 102340429 B CN102340429 B CN 102340429B CN 201110307642 A CN201110307642 A CN 201110307642A CN 102340429 B CN102340429 B CN 102340429B
Authority
CN
China
Prior art keywords
measured
server
bcp
project
internet protocol
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
CN201110307642.2A
Other languages
Chinese (zh)
Other versions
CN102340429A (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 Ruian Technology Co Ltd
Original Assignee
Beijing Ruian Technology 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 Ruian Technology Co Ltd filed Critical Beijing Ruian Technology Co Ltd
Priority to CN201110307642.2A priority Critical patent/CN102340429B/en
Publication of CN102340429A publication Critical patent/CN102340429A/en
Application granted granted Critical
Publication of CN102340429B publication Critical patent/CN102340429B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an automatic detection method for Internet protocol recovery, and belongs to the technical field of computer and Internet. The method comprises the following steps of: 1) setting a to-be-tested item configuration file, a database configuration file and a protocol type configuration file in an Internet protocol recovery detection server; 2) checking installation packages of each item to be tested exist or not and checking the installation states of the installation packages; 3) executing detection scripts of each item to be tested, and recording operation logs output when set operations are executed in a testing process; 4) accessing a business continuity planning (BCP) server according to the database configuration file, and acquiring a corresponding BCP data file; and 5) comparing the acquired BCP data file with a corresponding operation log, querying the protocol type configuration file according to a comparison result and outputting the field name and detection result of a testing protocol. By the method, unattended automatic detection can be realized; and the method has the advantages of high detection efficiency, short period, high result accuracy and the like.

Description

A kind of automatic Internet protocol recovery detection method
Technical field
The invention belongs to computer internet technical field, relate to a kind of Internet protocol reduction detection method, refer more particularly to a kind of automatic Internet protocol recovery detection method.
Technical background
Internet protocol reduction apparatus is in the market numerous, this kind equipment can by protocol analysis by the enciphered data of transmitting on the Internet is all or part of be reduced to expressly after, for follow-up equipment, carry out data analysis storage.But numerous due to Internet protocol kind, version, renewal frequency is high, for the support of up-to-date agreement and the upgrading support of old agreement always in hysteretic state.
Artificial realization all leaned in traditional New Deal support and the confirmatory detection of old agreement.But because manual detection efficiency is low, consuming time greatly, accuracy is low, thereby cause the agreement of Internet protocol reduction apparatus to support that the update cycle is large, error rate is high.
Summary of the invention
The present invention is directed to the problem existing in the state-detection of Internet protocol reduction apparatus, the implementation method that provides a kind of unattended automation to detect is provided object, the present invention realize highly reliable, high efficiency, under the measuring ability of high automation, also provide automatic alarm, the functions such as status of support information indicating.
Technical scheme of the present invention is:
An automatic Internet protocol recovery detection method, the steps include:
1) in Internet protocol reduction detects server, a project profile to be measured, a data base configuration file, a protocol type configuration file are set; Described project profile to be measured is used for recording selected project to be measured, and each project to be measured is provided with a detection script; The configuration information of described data base configuration file logging test results stored data base server configuration information and the Internet protocol data reduction (BCP) server; The protocol name of described protocol type configuration file record protocol type and each agreement, the field name of each protocol type and reference numeral;
2) whether Internet protocol reduction detection server exists according to the installation kit of described each project to be measured of project profile automatic inspection to be measured, if certain installation kit does not exist, downloads corresponding installation procedure;
3) Internet protocol reduction detects the installment state of each project to be measured of server automatic inspection, if certain project to be measured is not installed, automatically attaches it in the position of setting;
4) Internet protocol reduction detects each project to be measured of server Automatic dispatching, carries out corresponding detection script in project profile to be measured; In test process, the Operation Log of exporting when the operational motion setting in corresponding test script carried out in record:
5) Internet protocol reduction detects server according to described data base configuration file access BCP server, obtains corresponding BCP data file;
6) Internet protocol reduction detection server contrasts the BCP data file of obtaining with corresponding Operation Log, then according to comparison result, inquires about described protocol type configuration file, field name and the testing result of output test protocol.
Further, described Operation Log comprises: the timestamp of operational motion, type of action and action message.
Further, the acquisition methods of described comparison result is:
A) Internet protocol reduction detects server and from described data base configuration file, reads BCP server configuration information, connects BCP server, captures BCP data file;
B) Internet protocol reduction detection server carries out comparing by this BCP data file with corresponding Operation Log, according to the operate time of recording in Operation Log, filters out corresponding data entry from BCP data file;
C) for each field of each filtered out data, respective field content in BCP data file and Operation Log respective field content are compared, obtain comparison result.
Further, the content of described BCP data file is carried out to the time difference fault-tolerant, after partition data combined treatment, each field of each filtered out data is compared, obtain described comparison result.
Further, described step 2) in, if certain installation kit does not exist, input this installation kit download address automatically from the corresponding installation procedure of the Internet download.
Further, the method of described each project to be measured of Automatic dispatching is: in the project to be measured of described project profile to be measured, choose at random a start bit, then according to the record of each project to be measured in described project profile to be measured, sequentially start automatic detection.
Further, the content of described project profile to be measured comprises: the installation kit download address of project to be measured, and installation addresses, installation directory, version information, needs the protocol fields numbering and the number value that detect.
Further, described database server configuration information comprises: IP, port, user name, password, database-name.
Further, the configuration information of described BCP server comprises: IP, access path.
Main technical content of the present invention is as follows:
1) in Internet protocol reduction automation detection server, contain three configuration files:
1. data base configuration file (DBConfig.ini), wherein records the database server configuration information of store test results and the configuration information of BCP server.Database configuration information comprises IP, port, user name, password, database-name.BCP server configuration information comprises IP, access path.
2. protocol type configuration file (Agreement.ini), wherein records the protocol name of protocol type and each agreement, the field name of each protocol type and reference numeral.
3. project profile to be measured (CheckItem.ini), wherein record project name to be measured, and the installation kit download address of each project to be measured, installation addresses, installation directory, version information, needs the protocol fields detecting to number and number value, and number value is exactly the field contents that will detect.
2) project configuration information recording to be measured is detected in the project profile CheckItem.ini to be measured of server to Internet protocol reduction.Internet protocol reduction detects server and according to the test item recording in configuration file CheckItem.ini, checks successively the installation kit download state of each project to be measured, if installation kit does not exist, according to the installation kit download address recording in configuration file CheckItem.ini, automatically downloads and installs bag.
3) Internet protocol reduction detects the installment state of each project to be measured of server automatic inspection, if not have to install, automatically move full-automatic installation function installation of project to be measured in the installation directory of setting in CheckItem.ini configuration file.
4) Internet protocol reduction detects startup of server Detection task, each project to be measured of Automatic dispatching.A random start bit in the project to be measured of selecting user, then according to the record of each project to be measured in project profile to be measured, sequentially start automatic detection, move the detection script executable operations action of recording in project implementation CheckItem.ini to be measured, i.e. automatic imitation manual detection process.
5), in testing process, according to the operational motion of appointment, export with timestamp type of action, the Operation Log of action message; Wherein, the operational motion of appointment is according to the operational motion having set in the corresponding test script of the project implementation to be measured; The operational motion of appointment is generally project to be measured and has sent the Internet protocol data that needs detection.
6) after simulated operation completes, according to the BCP server configuration information in data base configuration file, the BCP server of access Internet protocol reduction apparatus, it (is Internet protocol restoring data resolution file that the BCP server data output interface by networking protocol reduction apparatus obtains corresponding BCP data file.BCP is a kind of file format, is also structured document, describes the summary info of network behavior, as essential informations such as the IP address of communicating pair, call duration time, communication type, account number, passwords).
7) content of BCP data file is carried out to fault-tolerant (data time recording in the operating time stamp recording in daily record and BCP file stamp according to certain value range fuzzy matching of the time difference, to eliminate two server time synchronous errors), after partition data combination (the same action data being recorded in two files because of time detecting in BCP file is merged) is processed, contrast each field value of affiliated agreement of the Operation Log in project testing process to be measured, each field testing result of output test protocol.
8) Internet protocol reduction detects server according to the field number in testing result, vlan query protocol VLAN type configuration file (Agreement.ini), obtain protocol fields title, then protocol fields title and testing result are outputed to man-machine interface and check for user.
Compared with prior art, the invention has the beneficial effects as follows:
Adopt the present invention, the agreement status of support of Internet protocol reduction apparatus can be realized unattended automation completely and detect.The irreplaceable advantages such as it is high that automation detection has efficiency, and the cycle is short, and result is accurate.Internet protocol reduction apparatus is shortened greatly to the confirmatory sense cycle of current supported protocol, can provide fast accurate examining report, and the subsidiary additional functions such as warning of pointing out;
The prompt functions that the present invention provided, makes Internet protocol reduction apparatus attendant find fast the problem of reduction apparatus.
Accompanying drawing explanation
Fig. 1 is the flow process frame diagram of Internet protocol reduction automatization test system of the present invention.
Fig. 2 is the applied environment schematic diagram of Internet protocol reduction automatization test system of the present invention.
Embodiment
Below in conjunction with accompanying drawing, further setting forth embodiment of the present invention: Fig. 2 is the applied environment schematic diagram of Internet protocol reduction automatization test system of the present invention; The flow process frame diagram of Internet protocol of the present invention reduction automatization test system is as shown in Figure 1:
1) program reduce the project profile read module to be measured of detection server record by downloading iterator by Internet protocol after starting, whether the test item installation kit that beginning circular test need to be installed exists, if do not existed, start download thread and download this installation kit, downloaded and continued to return iterator and carry out cycle detection (seeing the automatic download module in Fig. 1) afterwards.
2) by iterator, check the project status to be measured that user arranges, if need test, check the type of project to be measured.If do not need test, skip this test event, check the test mode of next project to be measured.
3), if need the test event of installation, check whether installation kit is downloaded complete.
4) complete if installation kit has been downloaded, move Auto-mounting module and install.
5) in installation process, exporting installment state shows to primary control program.
6), after installing, the simulation of operation automatic imitation operational module is the operating process of test automatically.
7), in simulation process, record operational motion output function daily record.And export test mode and export to primary control program, by primary control program, show test mode the running time of recording each step.
8) after simulated operation, notify primary control program to call contrast module, by profile management module reading out data base configuration file DBConfig.ini, connect the output data (being BCP data file) that BCP server starts to capture protocol assembly equipment, be stored in local data cache file, then BCP data file and the Operation Log that records operational motion output carried out to comparing.According to the operate time of operation log recording in test process, from the data of Internet protocol original equipment output, filter out corresponding data entry, then each field of these data is compared and obtained comparison result, for each field of each filtered out data, respective field content in BCP data file and Operation Log respective field content are compared.According to the server configuration connection data storehouse, test result data storehouse of DBConfig.ini configuration file record, by comparison result write into Databasce.
9) return to the simulated operation module of the next project to be measured of iterator loop start simultaneously.
10) compared rear output comparison result to database.(step 2-10 is shown in the test assignment Automatic dispatching control module in Fig. 1).
11) comparison result data in display interface reading database afterwards, are presented at protocol fields title and testing result on interface and check for user according to protocol type configuration file.(seeing the information output display module in Fig. 1).
12) according to comparison result, problematic protocol fields is reported to the police.

Claims (9)

1. an automatic Internet protocol recovery detection method, the steps include:
1) in Internet protocol reduction detects server, a project profile to be measured, a data base configuration file, a protocol type configuration file are set; Described project profile to be measured is used for recording selected project to be measured, and each project to be measured is provided with a detection script; The configuration information of described data base configuration file database of record server configuration information and the Internet protocol data reduction (BCP) server; The protocol name of described protocol type configuration file record protocol type and each agreement, the field name of each protocol type and reference numeral;
2) whether Internet protocol reduction detection server exists according to the installation kit of described each project to be measured of project profile automatic inspection to be measured, if certain installation kit does not exist, downloads corresponding installation procedure;
3) Internet protocol reduction detects the installment state of each project to be measured of server automatic inspection, if certain project to be measured is not installed, automatically attaches it in the position of setting;
4) Internet protocol reduction detects each project to be measured of server Automatic dispatching, carries out corresponding detection script in project profile to be measured; In test process, the Operation Log of exporting when the operational motion setting in corresponding test script carried out in record;
5) Internet protocol reduction detects server according to described data base configuration file access BCP server, obtains corresponding BCP data file;
6) Internet protocol reduction detection server contrasts the BCP data file of obtaining with corresponding Operation Log, then according to comparison result, inquires about described protocol type configuration file, field name and the testing result of output test protocol.
2. the method for claim 1, is characterized in that described Operation Log comprises: the timestamp of operational motion, type of action and action message.
3. method as claimed in claim 1 or 2, is characterized in that the acquisition methods of described comparison result is:
1) Internet protocol reduction detects server and from described data base configuration file, reads BCP server configuration information, connects BCP server, captures BCP data file;
2) Internet protocol reduction detection server carries out comparing by this BCP data file with corresponding Operation Log, according to the operate time of recording in Operation Log, filters out corresponding data entry from BCP data file;
3) for each field of each filtered out data, respective field content in BCP data file and Operation Log respective field content are compared, obtain comparison result.
4. method as claimed in claim 3, is characterized in that the content of described BCP data file is carried out to the time difference fault-tolerant, after partition data combined treatment, each field of each filtered out data is compared, and obtains described comparison result; Wherein, fault-tolerant referring to the data time stamp recording in the operating time stamp recording in Operation Log and BCP data file according to certain value range fuzzy matching, to eliminate two server time synchronous errors of the described time difference; Described partition data combination refers to the same action data being recorded in two files because of time detecting in BCP data file is merged.
5. method as claimed in claim 3, is characterized in that described step 2) in, if certain installation kit does not exist, input this installation kit download address automatically from the corresponding installation procedure of the Internet download.
6. the method for claim 1, the method that it is characterized in that described each project to be measured of Automatic dispatching is: in the project to be measured of described project profile to be measured, choose at random a start bit, then according to the record of each project to be measured in described project profile to be measured, sequentially start automatic detection.
7. the method for claim 1, is characterized in that the content of described project profile to be measured comprises: the installation kit download address of project to be measured, installation addresses, installation directory, version information, protocol fields numbering and the number value that need to detect.
8. the method for claim 1, is characterized in that described database server configuration information comprises: IP, port, user name, password, database-name.
9. the method for claim 1, is characterized in that the configuration information of described BCP server comprises: IP, access path.
CN201110307642.2A 2011-10-12 2011-10-12 Automatic Internet protocol recovery detection method Active CN102340429B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110307642.2A CN102340429B (en) 2011-10-12 2011-10-12 Automatic Internet protocol recovery detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110307642.2A CN102340429B (en) 2011-10-12 2011-10-12 Automatic Internet protocol recovery detection method

Publications (2)

Publication Number Publication Date
CN102340429A CN102340429A (en) 2012-02-01
CN102340429B true CN102340429B (en) 2014-05-07

Family

ID=45515936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110307642.2A Active CN102340429B (en) 2011-10-12 2011-10-12 Automatic Internet protocol recovery detection method

Country Status (1)

Country Link
CN (1) CN102340429B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6173896B2 (en) * 2013-12-10 2017-08-02 株式会社日立製作所 Data processing method and data processing server
CN104899139A (en) * 2015-05-27 2015-09-09 浪潮电子信息产业股份有限公司 Automatic test method used for testing basic function of server
CN107480534A (en) * 2017-08-17 2017-12-15 郑州云海信息技术有限公司 A kind of automated detection method for Apache configuration securities
CN109120366B (en) * 2018-07-09 2021-10-29 平安科技(深圳)有限公司 Log time correction method, device and storage medium based on SIP protocol
CN109324822B (en) * 2018-08-14 2023-03-31 平安普惠企业管理有限公司 PWA (public warning assistant) item detection method, computer-readable storage medium and terminal device
CN109788052B (en) * 2019-01-02 2021-11-26 郑州云海信息技术有限公司 Server configuration remote query method, device, terminal and storage medium
CN113760760A (en) * 2021-09-03 2021-12-07 武汉虹旭信息技术有限责任公司 Mobile internet application protocol testing method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1777317A (en) * 2005-12-16 2006-05-24 北京金山软件有限公司 Method for realizing programme update of wireless terminal
CN101409709A (en) * 2008-11-24 2009-04-15 浪潮通信信息系统有限公司 Method for publishing client terminal program of communication network management system automatically

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7958276B2 (en) * 2007-01-22 2011-06-07 Counterpath Corporation Automatic configuration of peripheral devices

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1777317A (en) * 2005-12-16 2006-05-24 北京金山软件有限公司 Method for realizing programme update of wireless terminal
CN101409709A (en) * 2008-11-24 2009-04-15 浪潮通信信息系统有限公司 Method for publishing client terminal program of communication network management system automatically

Also Published As

Publication number Publication date
CN102340429A (en) 2012-02-01

Similar Documents

Publication Publication Date Title
CN102340429B (en) Automatic Internet protocol recovery detection method
CN111756575B (en) Performance analysis method and device of storage server and electronic equipment
CN104424088A (en) Software testing method and device
WO2017000424A1 (en) Protocol detection method and apparatus
US8930772B2 (en) Method and system for implementing a test automation results importer
CN105068929A (en) Test script generation method, test script generation device, testing method, testing device and testing system
CN105446868B (en) System compatibility test method, testing case management and relevant apparatus
WO2015026680A1 (en) Cloud deployment infrastructure validation engine
CN105512044A (en) Method and system for updating object base used for keyword drive test
CN101145964A (en) An automatic smoke testing method and system for network management system
CN107807877A (en) A kind of method and apparatus of code performance test
CN107710683A (en) Elasticity services
CN103902542A (en) Operating and maintaining method and system of database in testing environment
CN109684847A (en) Self-repairing method, device, equipment and the storage medium of script loophole
CN110134574A (en) A kind of software performance testing method, system, medium and electronic equipment
CN109840194B (en) Method and system for detecting configuration file
CN103026337A (en) Distillation and reconstruction of provisioning components
CN112650688A (en) Automated regression testing method, associated device and computer program product
CN101673200A (en) Method and device for detecting user input model
CN114860619B (en) Database audit program regression testing method and device
CN106649099A (en) Automatic testing method and system for DNS monitoring service
CN114095396B (en) Intelligent substation data communication detection method, system, equipment and storage medium
CN109756570A (en) A kind of method and electronic equipment for realizing customization pypi mirror image server
CN101662394A (en) Automated testing system and automated testing method
CN113037521B (en) Method for identifying state of communication equipment, communication system and storage 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
C14 Grant of patent or utility model
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Automatic Internet protocol recovery detection method

Effective date of registration: 20150928

Granted publication date: 20140507

Pledgee: Bank of Beijing Limited by Share Ltd. double show branch

Pledgor: RUN TECHNOLOGIES Co.,Ltd. BEIJING

Registration number: 2015990000733

PLDC Enforcement, change and cancellation of contracts on pledge of patent right or utility model
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20161212

Granted publication date: 20140507

Pledgee: Bank of Beijing Limited by Share Ltd. double show branch

Pledgor: RUN TECHNOLOGIES Co.,Ltd. BEIJING

Registration number: 2015990000733

PLDC Enforcement, change and cancellation of contracts on pledge of patent right or utility model
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Automatic Internet protocol recovery detection method

Effective date of registration: 20161216

Granted publication date: 20140507

Pledgee: Bank of Beijing Limited by Share Ltd. double show branch

Pledgor: RUN TECHNOLOGIES Co.,Ltd. BEIJING

Registration number: 2016990001119

PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20180725

Granted publication date: 20140507

Pledgee: Bank of Beijing Limited by Share Ltd. double show branch

Pledgor: RUN TECHNOLOGIES Co.,Ltd. BEIJING

Registration number: 2016990001119

PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Automatic Internet protocol recovery detection method

Effective date of registration: 20180725

Granted publication date: 20140507

Pledgee: Bank of Beijing Limited by Share Ltd. double show branch

Pledgor: RUN TECHNOLOGIES Co.,Ltd. BEIJING

Registration number: 2018990000603

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20200529

Granted publication date: 20140507

Pledgee: Bank of Beijing Limited by Share Ltd. double show branch

Pledgor: Run Technologies Co.,Ltd. Beijing

Registration number: 2018990000603

PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Automatic Internet protocol recovery detection method

Effective date of registration: 20200720

Granted publication date: 20140507

Pledgee: Bank of Beijing Limited by Share Ltd. double show branch

Pledgor: Run Technologies Co.,Ltd. Beijing

Registration number: Y2020990000785

PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20220914

Granted publication date: 20140507

Pledgee: Bank of Beijing Limited by Share Ltd. double show branch

Pledgor: RUN TECHNOLOGIES Co.,Ltd. BEIJING

Registration number: Y2020990000785

PC01 Cancellation of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: An automatic detection method for Internet protocol restoration

Effective date of registration: 20220915

Granted publication date: 20140507

Pledgee: Zhongguancun Branch of Bank of Beijing Co.,Ltd.

Pledgor: RUN TECHNOLOGIES Co.,Ltd. BEIJING

Registration number: Y2022110000217