CN100486187C - A test method and system for L2TP tunnel specification - Google Patents
A test method and system for L2TP tunnel specification Download PDFInfo
- Publication number
- CN100486187C CN100486187C CNB2006101722424A CN200610172242A CN100486187C CN 100486187 C CN100486187 C CN 100486187C CN B2006101722424 A CNB2006101722424 A CN B2006101722424A CN 200610172242 A CN200610172242 A CN 200610172242A CN 100486187 C CN100486187 C CN 100486187C
- Authority
- CN
- China
- Prior art keywords
- tunnel
- l2tp
- message
- user
- counting
- 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
- 238000010998 test method Methods 0.000 title abstract description 3
- 238000012360 testing method Methods 0.000 claims abstract description 53
- 238000000034 method Methods 0.000 claims description 21
- 238000004088 simulation Methods 0.000 claims description 17
- 238000004891 communication Methods 0.000 abstract description 2
- 238000012544 monitoring process Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 3
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The provided test method forL2TP specification standard in digital communication test field comprises: setting an analog server, configuring port parameters, starting the assist thread for monitoring message, and returning user certification request as certified message to the target device; allowing the certified user on line and building L2TP channel, accounting and obtaining the maximal channel specification. It also provides a test system with corresponding modules for former steps. This invention can be used for target device as LAC or LNS, and reduces test cost.
Description
Technical Field
The invention relates to the field of data communication testing, in particular to a method and a system for testing an L2TP tunnel specification.
Background
The maximum Tunnel specification of L2TP (Layer 2 Tunnel Protocol) is an important performance index of a System Under Test (SUT). In the SUT system for performing the L2TP Test, there are two Devices Under Test (DUT) of L2TP Access Concentrator (LAC, L2TP Access Concentrator) and L2TP Network Server (LNS, L2TP Network Server).
The establishment of the L2TP network server Tunnel depends on the L2TP access concentrator, generally, the L2TP session of the L2TP access concentrator is established In the same Tunnel, and for the case of needing to establish a plurality of tunnels, the prior art provides a method implemented by sending Tunnel-Assignment-ID (Tunnel job identification) under a RADIUS (Remote Authentication Dial In User Service) server.
Generally, Tunnel specifications supported by tested equipment of various manufacturers are more than ten thousand, and in order to measure the maximum Tunnel specification of the tested equipment, the traditional method is to configure different Tunnel-Assignment-IDs for each user on an RADIUS server, which is time-consuming, labor-consuming and non-operable.
Another method for testing the maximum tunnel specification of a device is to use a test instrument of a special hardware system, which is usually composed of a specially developed hardware system, and a special embedded operating system runs inside the test instrument, and the test instrument is operated by control software running on a general platform such as a PC, a workstation, and the like.
The existing test instrument can test the maximum tunnel specification when the tested device is used as an L2TP network server. The software setting follows the sequence of single board simulation LAC (PPPoL2TP) - > out Node summary- > Node Setup, and the number of tunnels of each Node is set in the Node setting. Because the number of test instruments and the number of sessions of the device under test are limited, the number of sessions per tunnel is generally set to 1.
However, the method of testing by the testing apparatus can only test the maximum tunnel specification when the device under test is used as the L2TP network server, and the testing apparatus can only be used as a dialer when the device under test is used as the L2TP access concentrator, and cannot test the maximum tunnel specification when the L2TP access concentrator.
In addition, the existing test instrument has expensive price quotation and is not suitable for popularization and application.
Disclosure of Invention
Based on the above analysis, an embodiment of the present invention provides a method for testing an L2TP tunnel specification, including:
setting a simulation server;
after the simulation server is started, port parameter configuration is carried out, and then a message interception auxiliary thread of the configured port is started;
circularly executing the following steps until a user cannot get on line, counting tunnel specification parameters, and obtaining the maximum tunnel specification supported by the tested equipment according to the tunnel specification parameters;
a user sends an authentication request to a tested device, and the tested device sends an authentication request message to the simulation server after receiving the authentication request;
after the simulation server senses the authentication request message, returning an authentication passing message to the tested equipment, wherein the authentication passing message carries the type of the L2TP tunnel;
and after receiving the authentication passing message, the tested equipment allows the user to be online and establishes a new L2TP tunnel for the user.
The embodiment of the invention also provides a test system of the L2TP tunnel specification, which comprises:
the authentication request sending module is used for sending an authentication request;
the message sending module is used for sending an authentication request message to the message response module after receiving the authentication request sent by the authentication request sending module;
the message response module is used for returning an authentication passing message to the tunnel establishment module after detecting the authentication request message sent by the message sending module, wherein the authentication passing message carries the type of the L2TP tunnel;
the tunnel establishing module is used for allowing the user to be on line after receiving the authentication passing message sent by the message response module, establishing an L2TP tunnel for the user, and establishing a tunnel every time a user dials, until the user can not be on line any more;
and the counting module is used for counting the tunnel specification parameters after the dialing of the user is continuously increased until the user can not be on line, so as to obtain the maximum tunnel specification supported by the testing equipment.
The embodiment of the invention can realize a simulation server on a general computer, can issue incremental Tunnel-Assignment-ID attributes in batch, each user (L2TP session) establishes a Tunnel, and the maximum Tunnel specification which can be supported when the tested equipment is used as an L2TP access concentrator and an L2TP network server is tested; the embodiment of the invention can reduce the development and test cost of the broadband access equipment and better realize the pressure test of the tested broadband access equipment.
Drawings
Fig. 1 is a flowchart of a method for testing the L2TP tunnel specification provided in embodiment 1 of the present invention;
FIG. 2 is a schematic diagram of an interface of L2 TP-Radius simulation attribute setup provided in embodiment 1 of the present invention;
fig. 3 is a schematic diagram of a test system for L2TP tunnel specification provided in embodiment 2 of the present invention.
Detailed Description
The present invention will be further described with reference to the following drawings and specific examples, but the present invention is not limited to the following examples.
The embodiment of the invention provides a method and a system for testing the L2TP tunnel specification, which are used for testing the maximum tunnel specification of a device to be tested by arranging a simulation server on a computer or other embedded systems or devices.
The simulation server includes all AAA servers. Such as: RADIUS, TACACS (Terminal Access controller Access Control System), and the like.
Example 1
In the embodiment, the analog RADIUS server is selected to be arranged on the computer, and the cost of the arrangement on the computer is low.
Referring to fig. 1, a method for testing the L2TP tunnel specification is provided, wherein an analog RADIUS server is arranged on a computer, and the following steps are executed:
step 101: after the simulated RADIUS server is started, parameter configuration is carried out, namely information such as an authentication port, a charging port and the like is configured. The authentication port is used for receiving the authentication request message, and is a necessary option, and the charging port is used for receiving the charging message, and is an optional option.
Step 102: after the parameter configuration is completed, a message interception auxiliary thread is started, where the message interception auxiliary thread corresponds to the port configured in step 101, that is, whether the configured port receives a message is intercepted.
Step 103: the user dials the tested device and sends an authentication request through dialing. The user may be a virtual user. To test the maximum tunnel specification of the device under test, the device under test may be dialed using an analog dialer, which may dial in batches, each dial corresponding to a user, also referred to as an L2TP session.
Step 104: and after receiving the authentication request, the tested device sends an authentication request message to the simulated RADIUS server.
Step 105: after the simulated RADIUS server monitors the authentication request message, the received authentication request message is recorded and written into a queue, then an ACK (authentication pass) message is returned to the tested equipment, the ACK message carries a Tunnel-Type L2TP and is used for testing the maximum Tunnel specification supported by the tested equipment, the ACK message can also simultaneously carry a Tunnel-Assignment-ID, the Tunnel-Assignment-ID is used for identifying a later established L2TP Tunnel, and simultaneously can also carry an incremental Tunnel-Assignment-ID attribute and other optional attributes configured by some users. When the incremental Tunnel-Assignment-ID attribute is not carried, it is preferable to make the Tunnel-Assignment-ID attribute unique so as to use the number of tunnels established by statistics.
Step 106: after receiving the ACK message, the tested device allows the user to go online, and simultaneously, establishes an L2TP tunnel for the user.
Step 107: by the method, a tunnel is newly established every time a user dials up the tested device, and the test is completed until the user can not be on line any more. At this time, the maximum tunnel specification supported by the tested device can be obtained by counting the number of on-line users, or counting the number of L2TP sessions, or counting the number of tunnels established on the tested device. The method for counting the number of the tunnels established on the tested equipment can adopt a mode of counting the number of the Tunnel-Assignment-IDs, and if the incremental Tunnel-Assignment-IDs are selected, the maximum Tunnel specification of the tested equipment can be directly obtained according to the maximum Tunnel-Assignment-IDs.
Step 108: and releasing the selected ports, namely the authentication port and the charging port, after the maximum tunnel specification supported by the tested equipment is tested.
By the method, the tested device can be an L2TP access concentrator or an L2TP network server.
Referring to fig. 2, an interface diagram for L2 TP-Radius simulation property setup is shown. The simulation attributes are:
the ports opened by RADIUS Server (Server) include:
an authentication port and a charging port, wherein the charging port is optional.
Tunnel-Assignment-ID (82) setting:
inputting a character string with the length of 3 and the length of the character string, wherein the character string with the length of 3 is used for identifying the type of the tunnel, and the length of the character string is used for indicating how many characters follow the TAI. The length of the character string input in this embodiment is 10, and an optional increment assignment id (job identification) is also included. For example, according to the setting of the interface, the Tunnel-Assignment-ID of the first Tunnel is established to be TAI 0000000001, the Tunnel-Assignment-ID of the second Tunnel is established to be TAI 0000000002, and so on.
Other attributes include:
shared Key Shared-Key: a field for encryption between the RADIUS server and the access server;
tunnel Client end point Tunnel-Client-Endpoint: to identify the LAC attachment address;
Tunnel-Server-Endpoint: to identify the LNS link address.
Two options are also included: recording the received message and recording the sent message. If the two items are selected, the simulated RADIUS server records the received authentication request message and the sent authentication passing message in a queue. Otherwise, no recording is performed.
Example 2
Referring to fig. 3, an embodiment of the present invention further provides a test system for an L2TP tunnel specification, including:
the authentication request sending module is used for sending an authentication request;
the message sending module is used for sending an authentication request message to the message response module after receiving the authentication request sent by the authentication request sending module;
the message response module is used for returning an authentication passing message to the tunnel establishment module after detecting the authentication request message sent by the message sending module, wherein the authentication passing message carries the type of the L2TP tunnel;
the tunnel establishing module is used for allowing the user to be online after receiving the authentication passing message sent by the message response module, and establishing an L2TP tunnel for the user;
and the statistical module is used for performing statistics after the test is finished to obtain the maximum tunnel specification supported by the test equipment.
Wherein, the statistics module carries out statistics, including:
counting the number of online users;
or,
counting the number of L2TP sessions;
or,
and counting the number of the established L2TP tunnels.
The authentication passing message also carries a tunnel operation identifier, and the tunnel operation identifier is used for identifying the established tunnel.
The above-described embodiments are merely preferred embodiments of the present invention, and general changes and substitutions by those skilled in the art within the technical scope of the present invention are included in the protection scope of the present invention.
Claims (10)
1. A method for testing the specification of an L2TP tunnel is characterized by comprising the following steps:
setting a simulation server;
after the simulation server is started, port parameter configuration is carried out, and then a message interception auxiliary thread of the configured port is started;
circularly executing the following steps until a user cannot get on line, counting the tunnel specification parameters, and obtaining the maximum tunnel specification supported by the tested equipment according to the tunnel specification parameters;
a user sends an authentication request to a tested device, and the tested device sends an authentication request message to the simulation server after receiving the authentication request;
after the simulation server senses the authentication request message, returning an authentication passing message to the tested equipment, wherein the authentication passing message carries the type of the L2TP tunnel;
and after receiving the authentication passing message, the tested equipment allows the user to be online and establishes a new L2TP tunnel for the user.
2. The method for testing the L2TP tunnel specification of claim 1, wherein the tunnel specification parameters include:
counting the number of online users;
or,
counting the number of L2TP sessions;
or,
and counting the number of the established L2TP tunnels.
3. The method for testing the L2TP tunnel specification of claim 2, wherein the authentication packet carries a tunnel operation id, and the counting of the number of the established L2TP tunnels is obtained by counting the tunnel operation id.
4. The method for testing the specification of the L2TP tunnel of claim 3, wherein the tunnel job identification has an incremental attribute.
5. The method for testing the L2TP tunnel specification of any claim 1-4, wherein the simulation server is arranged on the computer in the form of software.
6. The method for testing the specification of the L2TP tunnel according to any one of claims 1 to 4, wherein the port is an authentication port, or an authentication port and a charging port.
7. The method for testing the specification of the L2TP tunnel according to any one of claims 1 to 4, wherein the user is a user simulated through a simulation dialer.
8. The method for testing the specification of the L2TP tunnel according to any one of claims 1-4, wherein the method further comprises:
releasing the port.
9. An L2TP tunnel specification test system, the system comprising:
the authentication request sending module is used for sending an authentication request;
the message sending module is used for sending an authentication request message to the message response module after receiving the authentication request sent by the authentication request sending module;
the message response module is used for returning an authentication passing message to the tunnel establishment module after detecting the authentication request message sent by the message sending module, wherein the authentication passing message carries the type of the L2TP tunnel;
the tunnel establishing module is used for allowing the user to be on line after receiving the authentication passing message sent by the message response module, establishing an L2TP tunnel for the user, and establishing a tunnel every time a user dials, until the user can not be on line any more;
and the counting module is used for counting the tunnel specification parameters after the dialing of the user is continuously increased until the user can not be on line, so as to obtain the maximum tunnel specification supported by the testing equipment.
10. The L2TP tunnel specification test system of claim 9, wherein the tunnel specification parameters include:
counting the number of online users;
or,
counting the number of L2TP sessions;
or,
and counting the number of the established L2TP tunnels.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006101722424A CN100486187C (en) | 2006-12-30 | 2006-12-30 | A test method and system for L2TP tunnel specification |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006101722424A CN100486187C (en) | 2006-12-30 | 2006-12-30 | A test method and system for L2TP tunnel specification |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101009606A CN101009606A (en) | 2007-08-01 |
CN100486187C true CN100486187C (en) | 2009-05-06 |
Family
ID=38697768
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2006101722424A Expired - Fee Related CN100486187C (en) | 2006-12-30 | 2006-12-30 | A test method and system for L2TP tunnel specification |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100486187C (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101227344B (en) * | 2008-02-03 | 2013-01-16 | 中兴通讯股份有限公司 | Method for simulating L2TP dialing |
CN102571474B (en) * | 2010-12-30 | 2015-10-14 | 北京首信科技股份有限公司 | Virtualized Radius test macro and method |
CN103441894A (en) * | 2013-08-20 | 2013-12-11 | 迈普通信技术股份有限公司 | Method and system for L2TP concurrent connection performance test |
CN107566476B (en) * | 2017-08-25 | 2020-03-03 | 中国联合网络通信集团有限公司 | Access method, SDN controller, forwarding equipment and user access system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1392708A (en) * | 2001-06-19 | 2003-01-22 | 深圳市中兴通讯股份有限公司 | Allocation method of wide band access user |
CN1564529A (en) * | 2004-04-12 | 2005-01-12 | 北京北方烽火科技有限公司 | Simple detection method for GGSN facilities |
EP1737169A1 (en) * | 2005-06-24 | 2006-12-27 | AT&T Corp. | System, method and device for monitoring networks |
-
2006
- 2006-12-30 CN CNB2006101722424A patent/CN100486187C/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1392708A (en) * | 2001-06-19 | 2003-01-22 | 深圳市中兴通讯股份有限公司 | Allocation method of wide band access user |
CN1564529A (en) * | 2004-04-12 | 2005-01-12 | 北京北方烽火科技有限公司 | Simple detection method for GGSN facilities |
EP1737169A1 (en) * | 2005-06-24 | 2006-12-27 | AT&T Corp. | System, method and device for monitoring networks |
Also Published As
Publication number | Publication date |
---|---|
CN101009606A (en) | 2007-08-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110636131B (en) | Internet of things testing system based on cloud technology | |
AU2016337397B2 (en) | Cloud based system and method for managing testing configurations for cable test devices | |
CN102421112B (en) | Testing method of mobile terminal, mobile terminal simulator, testing equipment and testing system | |
CN106851513B (en) | Method and system for testing electronic product | |
CN107395601A (en) | A kind of mobile office system and method based on the safe Intranets of VPN | |
CN100486187C (en) | A test method and system for L2TP tunnel specification | |
TW201322687A (en) | Test method of a wireless network device and test system thereof | |
CN107148031A (en) | A kind of method of testing of WiFi module software systems, apparatus and system | |
CN107645428A (en) | A kind of automatic test approach and device | |
CN108234246A (en) | A kind of method and system of multidirectional server network performance | |
CN103716209A (en) | Tunnel concurrent testing system and device | |
CN101765133A (en) | Performance test method for testing wireless access point connected to wireless terminals and performance test system thereof | |
WO2023134312A1 (en) | Content charging test method, management device, terminal device and storage medium | |
CN100568826C (en) | A kind of performance test methods of authentication service and device | |
CN114500351A (en) | Network performance test method, device, equipment and storage medium | |
CN114564387A (en) | Scene type automatic testing method and system for OpenStack cloud platform | |
CN109902777A (en) | Method based on handheld terminal real time inspection intelligent apparatus on-line testing result | |
CN103441894A (en) | Method and system for L2TP concurrent connection performance test | |
CN102752174B (en) | System and method for testing safety performance of wireless local area network (WLAN) | |
CN110149641B (en) | Analog wireless connection test method | |
CN112838938B (en) | Test system of Internet of things platform | |
CN103297966B (en) | Realize the access authentication method and device of WLAN | |
CN112491656A (en) | Method and device for testing concurrent connection number of router IPSEC tunnel | |
CN113872819A (en) | Equipment testing method and computer equipment | |
CN107634851B (en) | Method for dynamically configuring server by mobile terminal |
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: 20090506 Termination date: 20121230 |