CN1302640C - Method for testing AAA server characteristics and apparatus thereof - Google Patents

Method for testing AAA server characteristics and apparatus thereof Download PDF

Info

Publication number
CN1302640C
CN1302640C CNB031311121A CN03131112A CN1302640C CN 1302640 C CN1302640 C CN 1302640C CN B031311121 A CNB031311121 A CN B031311121A CN 03131112 A CN03131112 A CN 03131112A CN 1302640 C CN1302640 C CN 1302640C
Authority
CN
China
Prior art keywords
aaa server
packet
test
testing
sends
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
Application number
CNB031311121A
Other languages
Chinese (zh)
Other versions
CN1549516A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB031311121A priority Critical patent/CN1302640C/en
Publication of CN1549516A publication Critical patent/CN1549516A/en
Application granted granted Critical
Publication of CN1302640C publication Critical patent/CN1302640C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The present invention relates to a method for testing property of an AAA server, and a device for testing thereof. The present invention has the cores that a data packet which is generated by simulation according to configuration information is used for testing the property of the AAA server; then, response message to the AAA sever is analyzed, the analyzed results are compared with configuration testing standard to determine whether a new test is carried out, and thereby, the present invention realizes the test for the property of the AAA server. The present invention adopts a design idea of the data packet for a simulation test to directly transmit the data packet for the simulation test to the AAA server to carry out the property test and to obtain the test results, and therefore, the present invention has the characteristic of simple realization, a correspondingly independent test process and exact test results.

Description

A kind of method and device thereof of testing the aaa server performance
Technical field
The present invention relates to network communications technology field, relate in particular to a kind of method and device thereof of testing the aaa server performance.
Background technology
Development along with the network communications technology, that moves in the network is also more and more as network access equipments such as broadband access equipments, AAA (authentication, mandate, charging) server is used to the user under the network access equipment that services such as authentication, charging are provided, described network access equipment comprises NAS (network access system), LAN Switch (Ethernet switch) etc., aaa server is with its functions peculiar, the important effect of play more and more in network service.Whether normally the performance of aaa server is determining the user's access network under the corresponding network access device, and whether can normal recordings to situations such as the access speed behind the user access network, charge informations etc., therefore, the performance of aaa server and user and benefits of operators are closely related, in order to guarantee that aaa server can operate in the state of optimum performance, just need the aaa server performance is tested accordingly.
At present, the method for the aaa server performance test of adopting is to concentrate online by the user usually, carries out the test of aaa server performance by network access equipment to messages such as aaa server transmission authentications; Though this method of testing implementation procedure is fairly simple, but the dependence to network access equipment is very strong, be normally carrying out and obtaining test result accurately and reliably of test process, be that operate as normal with network access equipment is a prerequisite, if going wrong, network access equipment can influence normally carrying out to aaa server performance test work, this method of testing can't guarantee precision of test result simultaneously, such as, because network access equipment may cause the unusual of packet sending and receiving unusually, as packet loss etc., and this unusually with final body now in the test result at the aaa server performance, such test result is inaccurate naturally.
Summary of the invention
The purpose of this invention is to provide a kind of method and device thereof of testing the aaa server performance, thereby make the test of aaa server performance more conveniently, and can guarantee that test process no longer relies on numerous network access equipments, improved the accuracy of test greatly.
The objective of the invention is to realize by following scheme:
A kind of method of testing the aaa server performance of the present invention, in the testing apparatus that this method is applied to aaa server is tested, this testing apparatus is used for communicating by letter with the realization test with aaa server, and the processing that described testing apparatus is carried out comprises:
A, generate the packet be used for authentication, mandate, the performance test of charging aaa server according to configuration information;
B, the packet that generates is sent to aaa server handle, handle and return response message by aaa server;
C, receive the response message of aaa server, and according to the analysis of response message being adjusted concurrent Thread Count and the every thread frequency of giving out a contract for a project, when analysis result met the requirements, output needle was to the test result of aaa server performance at described packet.
Described configuration information comprises: the packet loss scope that sends total duration, transmission data packet number and the permission of packet.
Described step a comprises:
A1, according to total duration of the transmission packet that is disposed, send data packet number and determine to send quantity of data packets to aaa server in the unit interval, and the number of threads that sends packet;
A2, according to Radius (remote authentication) agreement, generate the needed various messages of various test aaa server performances, comprise the Certificate Authority message, beginning message, billing update packet and accounting completion packet charge.
Described step b also comprises: for the situation of needs transmission billing update packet, also need to carry out the transmission of billing update packet according to the time interval of the transmission billing update packet that disposes.
Described step c comprises:
C1, receive the response message of aaa server at the various messages of its performance of test;
C2, according to the data packet number that sends to aaa server and the quantity of response message, adjust and send Thread Count and the every thread frequency of giving out a contract for a project, when analysis result met the requirements, output needle was to the test result of aaa server performance.
Described step c2 comprises:
C21, recording needle are to the response message of the various messages of test aaa server performance;
C22, calculate packet loss at the response message quantity of various messages according to send all types of data packet numbers and aaa server to aaa server:
C23, relatively with the packet loss scope of the packet loss that calculates and configuration:
If greater than the higher limit of the packet loss scope that is disposed, then reducing to aaa server, packet loss sends the Thread Count of packet and the frequency that every thread sends packet, execution in step a2;
If less than the lower limit of the packet loss scope that is disposed, then increasing to aaa server, packet loss sends the Thread Count of packet and the frequency that every thread sends packet, execution in step a2;
If packet loss is in the scope of the packet loss that is disposed, then test process finishes, and outputs test result.
A kind of device of testing the aaa server performance of the present invention comprises:
Configuration information read module: receive configuration information, and export to the analog message generation module after configuration information handled;
Analog message generation module: receive the information that the configuration information read module sends, and generate the analog message that is used to test the aaa server performance that sends to aaa server according to this information;
Test result analysis module: receive the response message that aaa server sends, and determine test result according to the quantity of response message and the quantity of analog message generation module generation message at above-mentioned analog message; If test result is undesirable, determine that then new configuration information sends to the configuration information read module, if test result meets the requirements, then outputs test result.
Described device also comprises test result output module: the test result data of acceptance test results analyses module output, and output is shown to the test subscriber.
Described device can be built in the existing aaa server, also can be placed on existing aaa server.
By technique scheme as can be seen, the present invention can calculate according to the configuration information of user's input and generate test packet quantity, and, regularly adjust the frequency that sends packet number of threads and every thread transmission packet according to the response condition analysis result of aaa server to test packet.The present invention has adopted the design philosophy of simulation test with packet, directly sends test packet to aaa server, carries out the test of aaa server performance.Method provided by the present invention and device thereof are realized simple, and test process is relatively independent, and the normal operation that does not need to rely on other network access equipment guarantees precision of test result, and therefore, test result is more accurate.
Description of drawings
Fig. 1 is the structure chart A of device of the present invention;
Fig. 2 is the structure chart B of device of the present invention;
Fig. 3 is the flow chart of method of the present invention.
Embodiment
Core concept of the present invention is to adopt simulation group bag designing technique to realize the test of aaa server performance, promptly at first package by the device of testing the aaa server performance, generate the packet that test needs, then the packet that generates is sent to aaa server, aaa server receives packet and carries out respective handling according to the content of packet, dispose, result is returned to the testing server of testing the aaa server performance, and result is analyzed to obtain test result by the device of test aaa server performance.
The device of test aaa server performance of the present invention as shown in Figure 1 and Figure 2, promptly described testing server comprises:
Configuration information read module: receive configuration information, and export to the analog message generation module after configuration information handled;
Described configuration information is the information that the user imports to this module according to actual needs, comprise: send the total time length of packet, the total quantity that sends packet and the packet loss of permission, send the charging update package if desired, then configuration information also may comprise transmission value blanking time of charging update package:
The analog message generation module: receive the information that the configuration information read module sends, and the analog message that is used to test long according to the total time that sends packet and that the total quantity generation sends to aaa server; Analog message comprises the Certificate Authority message, beginning message, billing update packet and accounting completion packet charge;
Test result analysis module: receive the response message that aaa server sends, and determine test result according to the quantity of response message and the quantity of analog message generation module generation message at above-mentioned analog message; If test result is undesirable,, readjust give out a contract for a project Thread Count and the every thread frequency of giving out a contract for a project then according to analysis result, carry out new round test, meet the requirements until test result,, then test result is sent to test result output module if test result meets the requirements; The response message of described analog message comprises: the message of the authentication of chargeing by message, authentication refusal, the successful message and the message of charging failure etc. charge;
Test result output module: the test result data of acceptance test results analyses module output, and output is shown to the test subscriber, finishes aaa server performance test work.
For precision of test result, the independent station server of testing server of the present invention carries out the test of aaa server performance, as shown in Figure 1; Certainly, the present invention also can be built in existing aaa server and realize, as shown in Figure 2, when testing server was built in the aaa server, testing server was the authentication and accounting module communication in direct and the aaa server, to carry out the test of aaa server performance.
The embodiment of the method for test aaa server performance of the present invention specifically comprises as shown in Figure 3:
Step 1: read the configuration information that the user disposes, to obtain total duration that sends packet and the total quantity that sends packet, and the packet loss scope that allows, for the situation of needs transmission billing update packet, the user also needs to dispose the time interval value that sends billing update packet;
Step 2: calculate the data packet number (frequency of promptly giving out a contract for a project) that send each second according to the configuration information that obtains, and according to sending the definite number of threads that sends packet that starts of quantity of data packets each second, for example: suppose that it is 1000000 bags that configuration sends the total quantity of wrapping, the user is 250000, the time interval that sends billing update packet is 3 minutes, each user's a metering period comprises Certificate Authority, charge and begin, charge and upgrade and the end of chargeing, be that per 3 minutes primary chargings upgrade message, usually sending the packet total quantity can be greater than 1000000 bag, suppose that sending the total duration of packet is 30 minutes, then calculate per second and should send 1000000/ (30*60)=556 bag at least, the ability of considering each thread process bag is per second 50 bags, 556 ÷, 50 ≈ 12 then need to start 12 threads at least; Each thread is equivalent to an access device that can be connected to a plurality of users, what each thread sent is the bag of a flow process, comprise Certificate Authority, the packet that charges beginning, charges and upgrade, charge and finish, and the authentication bag from which thread sends, and later charging bag still sends from this thread;
Step 3: analyze the actual user and use professional specific implementation, determine the needed various messages of test aaa server performance, and generate corresponding message and send to aaa server;
What for example adopt is Ethernet switch, and user online carried out real time billing, then testing the message that needs comprises: Certificate Authority message, charge beginning message, billing update packet and accounting completion packet need to generate above-mentioned message for this reason and send to aaa server;
Step 4: the test result analysis module in the device of test aaa server performance receives the message that aaa server returns, and the various authentications returned of statistics aaa server, the response message quantity of charging message, described response message comprises: the authentication of chargeing is by messages such as, authentication refusal, charging success and charging failures; Then, according to the data packet number, the type of data packet that send, the response condition of give out a contract for a project duration and aaa server test result is analyzed, obtain packet loss, packet loss is meant the ratio of packet that aaa server do not respond and the actual data packet number that sends, and packet loss is not distinguished type of data packet, only totally calculates;
Step 5: the packet loss that calculate to obtain according to step 4 determines whether to carry out again new round test, promptly judges packet loss whether in the packet loss scope that allows, if, then execution in step 9; Otherwise execution in step 6;
The packet loss scope comprises a higher limit and a lower limit, such as the packet loss scope that can set permission is 2%-10%, the packet loss of determining when step 4 is in this scope, illustrate that then currently used transmission packet number of threads and the every thread frequency of giving out a contract for a project can embody the optimization process ability of aaa server, execution in step 9, if the packet loss that step 4 is determined is outside this scope, illustrate that then currently used transmission packet number of threads and the every thread frequency of giving out a contract for a project does not embody the optimization process ability of aaa server, need execution in step 6, adjust accordingly;
Step 6: judge packet loss whether greater than the higher limit of the packet loss scope that allows, if, execution in step 7, otherwise, execution in step 8;
Step 7: reduce to send packet number of threads and every thread give out a contract for a project frequency and execution in step 3;
Step 8: increase to send packet number of threads and every thread give out a contract for a project frequency and execution in step 3;
Step 9: test process finishes, and outputs test result, and described test result is for embodying some parameters of aaa server optimization process ability, and described parameter comprises: allow to send the number of threads of packet and the frequency etc. of giving out a contract for a project that every thread allows.
Carry out by above-mentioned steps 3 to the circulation of step 8, constipation bundle test process in the packet loss scope of packet loss that test obtains in predefined permission, at last, report some parameters that each is taken turns The performance test results and embodies the optimization process ability of aaa server, finish aaa server performance test work.

Claims (6)

1, a kind of method of testing the aaa server performance, it is characterized in that, in the testing apparatus that this method is applied to aaa server is tested, this testing apparatus is used for communicating by letter with the realization test with aaa server, and the processing that described testing apparatus is carried out comprises:
A, generate the packet be used for authentication, mandate, the performance test of charging aaa server according to configuration information;
B, the packet that generates is sent to aaa server handle, handle and return response message by aaa server;
C, receive the response message of aaa server, and according to the analysis of response message being adjusted concurrent Thread Count and the every thread frequency of giving out a contract for a project, when analysis result met the requirements, output needle was to the test result of aaa server performance at described packet.
2, a kind of method of testing the aaa server performance according to claim 1 is characterized in that described configuration information comprises: the packet loss scope that sends total duration, transmission data packet number and the permission of packet.
3, a kind of method of testing the aaa server performance according to claim 1 is characterized in that described step a comprises:
A1, according to total duration of the transmission packet that is disposed, send data packet number and determine to send quantity of data packets to aaa server in the unit interval, and the number of threads that sends packet;
A2, according to remote access user's authentication service Radius agreement, generate the needed message of various test performances, comprise the Certificate Authority message, beginning message, billing update packet and accounting completion packet charge.
4, a kind of method of testing the aaa server performance according to claim 3, it is characterized in that described step b also comprises:, also need to carry out the transmission of billing update packet according to the time interval of the transmission billing update packet that disposes for the situation of needs transmission billing update packet.
5, a kind of method of testing the aaa server performance according to claim 3 is characterized in that described step c comprises:
C1, receive the response message of aaa server at the various messages of its performance of test: c2, according to the data packet number that sends to aaa server and the quantity of response message, adjust to send Thread Count and the every thread frequency of giving out a contract for a project, when analysis result met the requirements, output needle was to the test result of aaa server performance.
6, a kind of method of testing the aaa server performance according to claim 5 is characterized in that described step c2 comprises:
C21, recording needle are to the response message of the various messages of test aaa server performance;
C22, calculate packet loss at the response message quantity of various messages according to send all types of data packet numbers and aaa server to aaa server;
C23, relatively with the packet loss scope of the packet loss that calculates and configuration:
If greater than the higher limit of the packet loss scope that is disposed, then reducing to aaa server, packet loss sends the Thread Count of packet and the frequency that every thread sends packet, execution in step a2;
If less than the lower limit of the packet loss scope that is disposed, then increasing to aaa server, packet loss sends the Thread Count of packet and the frequency that every thread sends packet, execution in step a2:
If packet loss is in the scope of the packet loss that is disposed, then test process finishes, and outputs test result.
CNB031311121A 2003-05-12 2003-05-12 Method for testing AAA server characteristics and apparatus thereof Expired - Fee Related CN1302640C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB031311121A CN1302640C (en) 2003-05-12 2003-05-12 Method for testing AAA server characteristics and apparatus thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB031311121A CN1302640C (en) 2003-05-12 2003-05-12 Method for testing AAA server characteristics and apparatus thereof

Publications (2)

Publication Number Publication Date
CN1549516A CN1549516A (en) 2004-11-24
CN1302640C true CN1302640C (en) 2007-02-28

Family

ID=34322790

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB031311121A Expired - Fee Related CN1302640C (en) 2003-05-12 2003-05-12 Method for testing AAA server characteristics and apparatus thereof

Country Status (1)

Country Link
CN (1) CN1302640C (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100407667C (en) * 2005-11-18 2008-07-30 华为技术有限公司 Network communication apparatus protocol testing system and method
CN101136790B (en) * 2006-09-01 2010-09-01 中兴通讯股份有限公司 Cluster managerial automatization test system and method of ethernet switchboard
CN101540701B (en) * 2008-03-18 2011-08-17 中国移动通信集团公司 System, method and device for testing server
CN101674492B (en) * 2008-09-09 2011-09-21 中兴通讯股份有限公司 Method and device for testing performance of stream media server
CN102394790A (en) * 2011-09-29 2012-03-28 航天科工深圳(集团)有限公司 On-line monitoring device and monitoring method of analog transmission line
CN103150238B (en) * 2011-12-07 2015-11-11 阿里巴巴集团控股有限公司 A kind of service request processing method, simulated performance method of testing and device
CN102833131B (en) * 2012-08-27 2016-05-25 济南大学 A kind of remote data base response performance test comparison system and method
CN103856263B (en) * 2012-12-07 2016-09-14 华为技术有限公司 A kind of method and device testing high-speed link
CN105100152A (en) * 2014-05-14 2015-11-25 腾讯科技(深圳)有限公司 Application server selection method and system, and application client
CN104378215A (en) * 2014-11-28 2015-02-25 杭州华三通信技术有限公司 Network billing control method and network billing control device
CN106209435A (en) * 2016-06-30 2016-12-07 乐视控股(北京)有限公司 The monitor method of request queue and device
CN106131157A (en) * 2016-06-30 2016-11-16 乐视控股(北京)有限公司 Monitor the method and device of request
CN107566416B (en) * 2017-10-25 2020-09-29 北京安博通科技股份有限公司 Authentication performance testing method, device and system, terminal and network access server
CN108566314A (en) * 2018-03-06 2018-09-21 平安科技(深圳)有限公司 The acquisition methods and storage medium of status information under electronic device, cluster environment
CN112994962B (en) * 2019-12-13 2022-11-01 北大方正集团有限公司 AAA authentication test-based device, method, storage medium and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5790425A (en) * 1997-02-19 1998-08-04 Sun Microsystems, Inc. Generic server benchmarking framework in a client-server environment
CN1304247A (en) * 2000-01-11 2001-07-18 国际商业机器公司 Frame system and method for testing server performance

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5790425A (en) * 1997-02-19 1998-08-04 Sun Microsystems, Inc. Generic server benchmarking framework in a client-server environment
CN1304247A (en) * 2000-01-11 2001-07-18 国际商业机器公司 Frame system and method for testing server performance

Also Published As

Publication number Publication date
CN1549516A (en) 2004-11-24

Similar Documents

Publication Publication Date Title
CN1302640C (en) Method for testing AAA server characteristics and apparatus thereof
US11689902B2 (en) Method for processing rate group, method for charging for data service, and related device and system
KR100438056B1 (en) Apparatus and Method for Transport Fee Generation of Mobile Telecommunication System
EP1983684B1 (en) Method for flow quantity statistics based on user services
EP3687109A1 (en) Api content-based charging method and capability open functional entity
CN101075884A (en) Method for charging service content
CN103237299A (en) Billing control method, strategy control method and equipment based on network sharing
KR20020058559A (en) System of total billing on wireless network and operate method therefore
KR100489897B1 (en) Method for Generation of Charging Data per List in Mobile Communication System
CN101035136A (en) Multicast testing device running in the multi-network card computer and its using method
CN111147323A (en) Speed measuring method and device
CN101447934B (en) Business flow-recognizing method and system thereof and business flow charging method and system thereof
US7480241B2 (en) Method for processor overload control in a voice over internet protocol cable modem termination system
CN1288886C (en) Statistical method for realtime business information
CN101043344A (en) Fee counting method of WIMAX network
CN1946120A (en) Method and system for realizing telephone list association
CN102395117B (en) Method and device for identifying content type
CN1822617A (en) Device and method for detecting short message service charging precision facing mobile communication net
EP2247028A1 (en) Offline charging system and method
EP1464161B1 (en) Method of and equipment for credit management for access in a telecommunications network
KR100509942B1 (en) A Multiple CDR, Accounting System For Providing Flexibility of Accounting Data Of Data Network And Method of Generating Multiple CDR
CN1213565C (en) Method of real time modifying business during realizing identifying authorized charge procedure
CN1146188C (en) Selective charge method for internet switch-on server
KR100857266B1 (en) Billing system and method for multiple services
CN1534925A (en) Method of realizing real time segmental charging

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
CI03 Correction of invention patent

Correction item: Claims

Correct: Add claim Book Third

False: Lack of claim Book third pages

Number: 47

Volume: 20

COR Change of bibliographic data

Free format text: CORRECT: CLAIM OF RIGHT; FROM: LACK RIGHT-CLAIMING DOCUMENT PAGE 3 TO: ADD RIGHT-CLAIMING DOCUMENT PAGE 3

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20070228

Termination date: 20150512

EXPY Termination of patent right or utility model