CN100407667C - Network communication apparatus protocol testing system and method - Google Patents
Network communication apparatus protocol testing system and method Download PDFInfo
- Publication number
- CN100407667C CN100407667C CN2005101016703A CN200510101670A CN100407667C CN 100407667 C CN100407667 C CN 100407667C CN 2005101016703 A CN2005101016703 A CN 2005101016703A CN 200510101670 A CN200510101670 A CN 200510101670A CN 100407667 C CN100407667 C CN 100407667C
- Authority
- CN
- China
- Prior art keywords
- module
- network communication
- communication apparatus
- main control
- server
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Computer And Data Communications (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention relates to a protocol test system of network communication equipment, which comprises a client module, a main control machine module, network communication equipment run with an RADIUS protocol and a server module, wherein the main control machine module is used for generating and sending test parameters and corresponding operating commands to the server module and the client module and is used for judging test results according to information returned by the network communication equipment, the server module and the client module. The client module is used for executing logging on and logging off operation on the network communication equipment according to the operating commands generated by the main control machine module. The server module is used for carrying out RADIUS communication according to the operating commands and the network communication module and is used for sending properties to the network communication equipment. The present invention also provides a protocol testing method corresponding to the network communication equipment. The present invention can traverse all properties, property values and property combination conditions of RADIUS through a test parameter group which is automatically generated.
Description
Technical field
The present invention relates to the software test field, more particularly, relate to a kind of network communication apparatus protocol testing system and method.
Background technology
Network communication apparatus is NAS (Network Access Server for example, network access server/equipment), router even part DSLAM (Digital Subscriber Line Access Multiplexer, digital subscriber line access multiplex) equipment all can provide authentication and billing function for the management of the access customer that achieves a butt joint.And RADIUS is one of present authentication the most commonly used and charging protocol.
In order to verify correctness that network equipment radius protocol is realized and, in the test process, to need the various attribute types in the checking radius protocol, various property value, various combination of attributes etc. usually to the fault-tolerance of unusual radius protocol message.
The conventional method of network equipment radius protocol test at present is, utilize commercial radius server software, choose each attribute boundary and middle numerical value by boundary value method and equivalence class partitioning, manually add then in the tested attribute of user tabulation of server.Yet boundary value method and equivalence class partitioning tend to because artificial analysis careless omission causes the test leakage of test link, promptly the various situations of radius protocol message are covered not exclusively.For the exception message situation, it is less that commercial server software can't be constructed situation about maybe can construct usually in addition, and this also can cause test to cover incomplete situation.
In the above-mentioned in addition method of testing, the interpolation of the selection of property value, combination of attributes, the tabulation of tested user property is generally by manual mode, thereby efficient is lower.
Summary of the invention
The technical problem to be solved in the present invention is that the defective that above-mentioned network communication apparatus protocol test covers not exclusively, efficient is lower at prior art provides new a kind of network communication apparatus protocol testing system and method.
The technical solution adopted for the present invention to solve the technical problems is: constructs a kind of network communication apparatus protocol testing system, comprises that client module, main control computer module and operation have the network communication apparatus and the server module of radius protocol,
Described main control computer module, be used to move test script and customization and execution Test Strategy, and issue implementation strategy, issue operational order, issue querying command to network communication apparatus to client module to described server module, and the information of returning according to network communication apparatus, server module and client module is judged test result
Described client module is used for running client software, and according to the operation of reaching the standard grade and roll off the production line on described network communication apparatus from the operational order of described main control computer module, and to the information of described main control computer module return success or not;
Described server module is used to move emulating server software, and communicates by letter and attribute is issued according to carry out RADIUS from the implementation strategy of described main control computer module and network communication apparatus.
In network communication apparatus protocol testing system of the present invention, described main control computer module includes the main control module that carries out flow process control, generates and issue the module of detected parameters and respective operations order and the module of collection and logging test results.
In network communication apparatus protocol testing system of the present invention, described generation also issues detected parameters and the module of respective operations order includes the tactful customized module that is used to generate Test Strategy, be used for issuing to server module the server process module of implementation strategy according to described Test Strategy, be used for issuing operational order and transmitting user's processing module of current strategies information during in the client module operation exception to client module according to described Test Strategy, the module of described collection and logging test results includes and is used for according to described Test Strategy to the network communication apparatus transmitting order to lower levels and write down the information search module of described network communication apparatus return information, be used for analyzing one by one the judge module as a result and the log pattern that is used to write down each module abnormal conditions of the correctness of return information at the checkpoint of information search module.
In network communication apparatus protocol testing system of the present invention, described client module include the driver of the operational order that receives the main control computer module and carry out according to operational order on the roll off the production line dial module of operation.
In network communication apparatus protocol testing system of the present invention, described server module comprises radius protocol module that the protocal analysis of realizing the RADIUS message handles, receives and issue command interpretation Executive Module and message constructing module from the operational order of main control computer module, and described message constructing module is used for the message constructing message that issues according to command interpretation module and radius protocol module.
In network communication apparatus protocol testing system of the present invention, described detected parameters includes the overall detected parameters that is suitable for all properties.
In network communication apparatus protocol testing system of the present invention, described detected parameters includes the individual detected parameters that is suitable for the part attribute.
The present invention also provides a kind of network communication apparatus protocol method of testing, may further comprise the steps:
(a) generate one or more groups detected parameters and corresponding operational order;
(b) successively the part of described one or more groups detected parameters and operational order is sent to server module, part sends to client module, server module carries out RADIUS according to the detected parameters that receives and operational order and network communication apparatus communicates by letter and issues property parameters, and described client module is carried out user's going on line or off line according to the detected parameters that receives and/or control command and operated on network communication apparatus;
(c) execution result that returns according to server module, network communication apparatus and client module judges that test is unusual.
In network communication apparatus protocol method of testing of the present invention, the detected parameters in the described step (a) comprises overall detected parameters and/or individual detected parameters.In network communication apparatus protocol method of testing of the present invention, described step (c) comprising:
(c1) collect the executing state that server module, network communication apparatus and client module are returned;
(c2) judge test result according to described executing state;
(c3) unusual information or the time-out test of logging test results.
Network communication apparatus protocol testing system of the present invention and method by automatic generation detected parameters group, can travel through all properties, property value and the combinations of attributes situation of RADIUS.In addition,, can move for a long time, remedy the defective of artificial execution to a great extent, guarantee the adequacy of test, thereby improve the reliability and stability of the network equipment because the ready back of test environment just no longer needs people's intervention.
Description of drawings
The invention will be further described below in conjunction with drawings and Examples, in the accompanying drawing:
Fig. 1 is the structured flowchart of network communication apparatus protocol testing system of the present invention;
Fig. 2 is the structured flowchart of the server module among Fig. 1;
Fig. 3 is the structured flowchart of the client module among Fig. 1;
Fig. 4 is the structured flowchart of the main control computer module among Fig. 1;
Fig. 5 is the flow chart of network communication apparatus protocol method of testing of the present invention.
Embodiment
As shown in Figure 1, in the embodiment of network communication apparatus protocol testing system of the present invention, it comprises following functional module: server module 12, client module 14, main control computer module 13.Wherein server module 12, client module 14, main control computer module 13 these three function terminals can be concentrated on the computer and realize, can simplify the data interaction link between main control computer module 13, server module 12 and the client module 14 like this.Above-mentioned server module 12, client module 14, main control computer module 13 are connected respectively to network access equipment (NAS) 11.
Main control computer module 13 is used for customization, carries out Test Strategy, recording exceptional information, operation test script (being network communication apparatus protocol to be tested) on it.Main control computer module 13 is connected with server module 12, thereby issues implementation strategy to server module 12, and reception is also judged the information that server module 12 returns.Main control computer module 13 also is connected with client module 14, thereby issues operational order to client module 14, and reception is also judged the information that client module 13 is returned.Main control computer module 13 also is connected with NAS 11, thereby issues querying command to NAS 11, and reception is also judged the information that NAS 11 returns.
As shown in Figure 2, be the structured flowchart of the server module 12 among Fig. 1.In the present embodiment, server module 12 comprises radius protocol module 124, command interpretation Executive Module 122 and message constructing module 125, and wherein above-mentioned three modules are connected to each other with interaction data.
Radius protocol module 124 is connected with NAS 11 by RADIUS interface 122, thereby communicates with NAS 11, realizes that the protocal analysis of RADIUS message is handled.
Command interpretation Executive Module 122 is connected with main control computer module 13 by tcl interface 124, thus reception from the order of main control computer module 13, interpreted command and radius protocol module 124 and message constructing module 125 issued corresponding processing messages then.
The message constructing message that message constructing module 125 issues according to command interpretation module 122 and radius protocol module 124.
In the present embodiment, the message of message constructing module 125 structures is server module 12 carries out communication with NAS 11 radius protocol messages.After main control computer module 13 is handed down to server module 12 with order, command interpretation Executive Module 122 is handed down to the message of NAS 11 according to the interface function structure needs of the command calls message constructing module 125 that issues, and whether 125 of message constructing modules successfully feed back to the result command interpretation Executive Module 122 according to structure.When server module 12 was received the RADIUS message of NAS 11 transmissions, the message that server module 12 will customize sent to NAS 11, and NAS 11 issues the respective attributes parameter for tested user (being client module 14) according to the message of the customization of receiving.
Command interpretation Executive Module 122 also can determine whether needs change the RADIUS handling process according to the order of receiving, this changes by revising global variable realizes, 124 pairs of command interpretation Executive Modules of radius protocol module, 122 feedbacks are revised results' (promptly revise successfully or fail).When radius protocol module 124 and NAS 11 carry out the RADIUS communication, if customization the response message of 12 couples of NAS 11 of server module, RADIUS module 124 need be called message constructing module 125 respective function and obtain the customization message so, and sends to NAS 11.Any time point that also can be in test process initiatively triggers radius protocol module 124 by main control computer module 13 transmitting order to lower levels and gives NAS 11 downward messages.
Fig. 3 is the structured flowchart of the client module 14 among Fig. 1.In the present embodiment, client module 14 includes driver 142 and dial module 143.
Dialer software 143 is PPP (Point-to-Point Protocol, peer-peer protocol) dialer software commonly used, and it can finish the ppp negotiation process with NAS 11.
Fig. 4 is the structured flowchart of the main control computer module 13 among Fig. 1.In the present embodiment, main control computer module 13 adopts the TCL script to write (certainly, can adopt other Languages to realize in actual applications), this main control computer module 13 includes main control module 131, server process module 132, user's processing module 133, information search module 134, judge module 135, tactful customized module 136, log pattern 137 etc. as a result.
The strategy that server process module 132 provides according to tactful customized module 136 (specifically referring to detected parameters and operational order) issues customized messages to server module 12.If tactful customized module 136 does not have new policy distribution, all contents that need verify are finished in the expression strategy.
The strategy that user's processing module 133 is used for providing according to tactful customized module 136 makes client module 14 realize user's line process up and down on NAS 11 to client module 14 issuing messages.Operation occurs unusually if roll off the production line on the client module 14, and user's processing module 133 can send to log pattern 137 records with current policy information.
Strategy customized module 136 is used to generate Test Strategy, promptly generates the verification method of radius protocol attribute.Particularly, strategy customized module 136 generates the operation (this operation is carried out by server module 12 and client module 14) of the interior data set of radius protocol attribute-value ranges and this data set correspondence, as a complete test, detected parameters often has a plurality of, and promptly tactful customized module 136 generates many sets of data group and corresponding operation.In the present embodiment, the Test Strategy of tactful customized module 136 generations comprises total body examination rate and individual strategy.In test, according to the individual strategy order execution of overall strategy more earlier.
Wherein, overall strategy is used for defining the general verification method of each attribute, and the detected parameters in this strategy is overall detected parameters.For example, need can in overall strategy, stipulate checking boundary value, exceptional value and middle some value (can produce at random) at the attribute of integer type.At the attribute of character string type, need can in overall strategy, stipulate length maximum, the minimum character string of checking, ultrashort, overlength character string, intermediate length character string (character string is made up of the character of selecting at random) or the like at random.
Individual strategy is used for defining the attribute verification method of user's particular concern, and the detected parameters in this strategy is individual detected parameters.Number be certain integer attribute of M for example, need can in individual strategy, determine the numerical value of checking, can comprise a plurality of different numerical value at attribute.At attribute number is the attribute of the IP address type of N, need can determine the concrete IP address of checking in individual strategy, can comprise a plurality of different IP addresses or the like.Can in individual strategy, customize the combinations of attributes that needs checking in addition.For example the user verifies that if desired attribute number is the integer attribute of J, and property value is 100, and attribute number is the IP address type attribute of K, and property value is the combined situation of these two property values of 10.0.0.1, so as long as customization separately in individual strategy.
Tactful customized module 136 in the above-mentioned main control computer module 13, server process module 132 and user's processing module 133 have realized the generation of detected parameters and respective operations order and have issued; And information search module 134, judge module 135 and log pattern 137 have been realized the collection and the record of test result as a result.
As shown in Figure 5, be the flow chart of network communication apparatus protocol method of testing of the present invention.
At first, tactful customized module 136 generates many group detected parameters and corresponding operational order, and these many group detected parameters are the combination (step S51) of radius protocol property value or property value.
Then, main control computer module 13 is issued to each group detected parameters server module 12 and client module 14 operations successively, thereby tests radius protocol unusually according to whether occurring in running.This process is specific as follows:
At test command in the complete or implementation, the information search module 134 of main control computer module 13 issues various command (querying command etc. for example to NAS, can increase as required or delete in actual applications), and the return information (step S54) after the record NAS fill order.
The NAS return information collected according to information search module 134 of judge module 135 is judged whether correct execution (step S55) of test operation as a result.
If judge that abnormal conditions appear in test operation, i.e. operating result and expectation do not meet, and then suspends and carries out flow process, waits for user intervention; Perhaps carry out flow process (step S56) by log pattern misregistration information and continuation.Execution in step S57 then.
If judge that abnormal conditions do not appear in test operation, promptly operating result meets expectation, judges further then whether test is finished, and promptly judges whether the unenforced detected parameters group and the corresponding operational order (step S57) that also have tactful customized module 136 to generate.
If all tests are finished, then test process finishes.If test is not finished, the detected parameters group and the corresponding operational order that promptly also have tactful customized module 136 to generate are not performed, and then return step S52.
In addition, also can initiatively collect operation information as the whether unusual foundation of decision operation by server module 12 and client module 14 to main control computer module 13 return information (in step S53).
The above; it only is the preferable embodiment of the utility model; but protection range of the present utility model is not limited thereto; anyly be familiar with those skilled in the art in the technical scope that the utility model discloses; the variation that can expect easily or replacement all should be encompassed within the protection range of the present utility model.Therefore, protection range of the present utility model should be as the criterion with the protection range of claim.
Claims (10)
1. a network communication apparatus protocol testing system is characterized in that, comprises that client module, main control computer module and operation have the network communication apparatus and the server module of radius protocol,
Described main control computer module, be used to move test script and customization and execution Test Strategy, and issue implementation strategy, issue operational order, issue querying command, and judge test result according to the information that network communication apparatus, server module and client module are returned to network communication apparatus to client module to described server module;
Described client module is used for running client software, and according to the operation of reaching the standard grade and roll off the production line on described network communication apparatus from the operational order of described main control computer module, and to the information of described main control computer module return success or not;
Described server module is used to move emulating server software, and communicates by letter and attribute is issued according to carry out RADIUS from the implementation strategy of described main control computer module and network communication apparatus.
2. network communication apparatus protocol testing system according to claim 1, it is characterized in that described main control computer module includes the main control module that carries out flow process control, generates and issue the module of detected parameters and respective operations order and the module of collection and logging test results.
3. network communication apparatus protocol testing system according to claim 2, it is characterized in that, described generation also issues detected parameters and the module of respective operations order includes the tactful customized module that is used to generate Test Strategy, be used for issuing to server module the server process module of implementation strategy according to described Test Strategy, be used for issuing operational order and transmitting user's processing module of current strategies information during in the client module operation exception to client module according to described Test Strategy, the module of described collection and logging test results includes and is used for according to described Test Strategy to the network communication apparatus transmitting order to lower levels and write down the information search module of described network communication apparatus return information, be used for analyzing one by one the judge module as a result and the log pattern that is used to write down each module abnormal conditions of the correctness of return information at the checkpoint of information search module.
4. network communication apparatus protocol testing system according to claim 1 is characterized in that, described client module include the driver of the operational order that receives the main control computer module and carry out according to operational order on the roll off the production line dial module of operation.
5. network communication apparatus protocol testing system according to claim 1, it is characterized in that, described server module comprises radius protocol module that the protocal analysis of realizing the RADIUS message handles, receives and issue command interpretation Executive Module and message constructing module from the operational order of main control computer module, and described message constructing module is used for the message constructing message that issues according to command interpretation module and radius protocol module.
6. network communication apparatus protocol testing system according to claim 2 is characterized in that, described detected parameters includes the overall detected parameters that is suitable for all properties.
7. network communication apparatus protocol testing system according to claim 2 is characterized in that, described detected parameters includes the individual detected parameters that is suitable for the part attribute.
8. a network communication apparatus protocol method of testing is characterized in that, may further comprise the steps:
(a) generate one or more groups detected parameters and corresponding operational order;
(b) successively the part of described one or more groups detected parameters and operational order is sent to server module, part sends to client module, server module carries out RADIUS according to the detected parameters that receives and operational order and network communication apparatus communicates by letter and issues property parameters, and described client module is carried out user's going on line or off line according to the detected parameters that receives and/or control command and operated on network communication apparatus;
(c) execution result that returns according to server module, network communication apparatus and client module judges that test is unusual.
9. network communication apparatus protocol method of testing according to claim 8 is characterized in that, the detected parameters in the described step (a) comprises overall detected parameters and/or individual detected parameters.
10. network communication apparatus protocol method of testing according to claim 8 is characterized in that, described step (c) comprising:
(c1) collect the executing state that server module, network communication apparatus and client module are returned;
(c2) judge test result according to described executing state;
(c3) unusual information or the time-out test of logging test results.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2005101016703A CN100407667C (en) | 2005-11-18 | 2005-11-18 | Network communication apparatus protocol testing system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2005101016703A CN100407667C (en) | 2005-11-18 | 2005-11-18 | Network communication apparatus protocol testing system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1852176A CN1852176A (en) | 2006-10-25 |
CN100407667C true CN100407667C (en) | 2008-07-30 |
Family
ID=37133646
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2005101016703A Expired - Fee Related CN100407667C (en) | 2005-11-18 | 2005-11-18 | Network communication apparatus protocol testing system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100407667C (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102571474B (en) * | 2010-12-30 | 2015-10-14 | 北京首信科技股份有限公司 | Virtualized Radius test macro and method |
CN103455422B (en) * | 2013-08-30 | 2017-08-04 | 上海斐讯数据通信技术有限公司 | Software function automated testing method |
CN103532778B (en) * | 2013-10-11 | 2016-09-14 | 光一科技股份有限公司 | Power information collecting device intelligent test method |
JP6803374B2 (en) * | 2016-03-31 | 2020-12-23 | サトーホールディングス株式会社 | Server, information processing system, client terminal |
CN115442256B (en) * | 2022-08-05 | 2023-08-29 | 武汉思普崚技术有限公司 | Method for monitoring stability test of user online and offline and related equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020116507A1 (en) * | 2001-02-20 | 2002-08-22 | Manjure Samir B. | Distributed testing of an implementation of a remote access protocol |
CN1494263A (en) * | 2002-11-02 | 2004-05-05 | 华为技术有限公司 | Method of carrying out test against join up service instrument |
CN1509016A (en) * | 2002-12-19 | 2004-06-30 | ��ʽ����Ntt����Ħ | Agreement test system and method thereof |
CN1549516A (en) * | 2003-05-12 | 2004-11-24 | 华为技术有限公司 | Method for testing AAA server characteristics and apparatus thereof |
-
2005
- 2005-11-18 CN CN2005101016703A patent/CN100407667C/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020116507A1 (en) * | 2001-02-20 | 2002-08-22 | Manjure Samir B. | Distributed testing of an implementation of a remote access protocol |
CN1494263A (en) * | 2002-11-02 | 2004-05-05 | 华为技术有限公司 | Method of carrying out test against join up service instrument |
CN1509016A (en) * | 2002-12-19 | 2004-06-30 | ��ʽ����Ntt����Ħ | Agreement test system and method thereof |
CN1549516A (en) * | 2003-05-12 | 2004-11-24 | 华为技术有限公司 | Method for testing AAA server characteristics and apparatus thereof |
Also Published As
Publication number | Publication date |
---|---|
CN1852176A (en) | 2006-10-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8701092B1 (en) | System and method for testing applications | |
CN102364894B (en) | Issuing method for configuration data file and network management equipment | |
CN103329108B (en) | Proving installation | |
CN101867501B (en) | Method and system for automatically testing consistence of SNMP (Simple Network Management Protocol) interface information model | |
CN104123227A (en) | Method for automatically generating testing cases | |
CN100407667C (en) | Network communication apparatus protocol testing system and method | |
CN109814856A (en) | Data entry method, device, terminal and computer readable storage medium | |
CN101888658A (en) | GPRS (General Packet Radio Service) core network simulation and test system | |
CN109726830A (en) | Equipment routing inspection method, apparatus, electronic equipment and storage medium | |
CA2680977C (en) | Tariff management configuration automation | |
US20040138970A1 (en) | Scripting designer for a billing mediation system | |
CN111694752A (en) | Application testing method, electronic device and storage medium | |
CN102111801B (en) | Method and system for testing network management interface of third generation mobile communication network | |
CN112583663B (en) | Automatic network performance testing method based on domestic operating system | |
CN110532305A (en) | A kind of business datum method for cutting over and system | |
CN115617589A (en) | Chip debugging method | |
CN109739473A (en) | The development approach of business interface | |
CN112699022B (en) | Method and system for real-time efficient automatic contract testing | |
CN101110995A (en) | Method for implementing consistency of ring information between color ring platforms | |
Cisco | Using the NMT | |
KR100738039B1 (en) | Business logic processing method and apparatus in open mobile business supporting system | |
CN115567409B (en) | Method for automatically increasing and decreasing bandwidth and related device | |
CN101668275A (en) | Tariff management deployment automation | |
CN116488894B (en) | Internet of things equipment safety test system and method based on software definition | |
CN103905455A (en) | Communication protocol platform and access method thereof |
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 | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20080730 Termination date: 20091218 |