CN103490950B - A kind of router PPTP session capacity analogy methods - Google Patents

A kind of router PPTP session capacity analogy methods Download PDF

Info

Publication number
CN103490950B
CN103490950B CN201310406353.7A CN201310406353A CN103490950B CN 103490950 B CN103490950 B CN 103490950B CN 201310406353 A CN201310406353 A CN 201310406353A CN 103490950 B CN103490950 B CN 103490950B
Authority
CN
China
Prior art keywords
router
pptp
test
dial
session
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
CN201310406353.7A
Other languages
Chinese (zh)
Other versions
CN103490950A (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.)
Shenzhen Magotan Electronics Co Ltd
Original Assignee
Shenzhen Magotan Electronics 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 Shenzhen Magotan Electronics Co Ltd filed Critical Shenzhen Magotan Electronics Co Ltd
Priority to CN201310406353.7A priority Critical patent/CN103490950B/en
Publication of CN103490950A publication Critical patent/CN103490950A/en
Application granted granted Critical
Publication of CN103490950B publication Critical patent/CN103490950B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of router PPTP session capacity analogy methods, including from a PC as PAC and from a router as PNS;VPN accesses have been configured on the router, have opened PPTP access services on the router;PPTP Dial Up script is configured on PC;A batch processing script is created on PC, it is a IP lists for needing to test of input, IP is modified on PC one by one, an IP is completed in modification on PC every time, PC is just set to start to trigger PPTP Dial Up scripts as PAC, after dialling in the success of PNS routers, PC IP is just changed, is dialled next time;Until IP lists are completed in test more than repeating.The present invention is detected by closing the tunnel keepalive of router, PC is changed repeatedly after IP dials in router, is caused the PPTP session capacities of router to add up, so as to test router PPTP session capacities.The present invention can be completed by a common PC independent of analysis software, and can quickly, conveniently, accurately test router PPTP session capacity.

Description

A kind of router PPTP session capacity analogy methods
Technical field
The present invention relates to the PPTP in the logical field of number session capacity checking, and in particular to a kind of router PPTP session capacities Analogy method.
Background technology
PPTP (Point-to-point Tunnel Protocol) is a kind of new network skill for supporting multi-protocols VPN Art, it can make long-distance user be securely accessed by public network by internet.It can make the client for being in internet distal end Establish a tunnel with service end, make client pass through complexity internet quickly have access to target area equipment or business and The internet that client faces in access process looks like a network transparent or being not present.It is as shown below, PC1 and PC2 establishes a VPN Tunnel to access the service above Server by PPTP.PC1 and PC2 is exactly PAC in figure, Router is a PNS.Router session number is 2 in figure below, accesses two clients;And Router is as PNS, her session Capacity, which just represents it, can create how many tunnels to access VPN client.
Existing enterprise development is rapid, branch and outer clerical workforce's nationwide even all parts of the world, because This deployment even more VPN access devices are to meet the matter of utmost importance that a business event is outwards expanded, enough VPN session capacities show that equipment can guarantee that the how many individual users of access, how to verify capacityExisting VPN client capabilities do not have There is unified feasible method of testing, mostly targetedly test software is tested by producer compiling.Laboratory testing method has Simulated by 7 layers of very advanced application tester.There are the such simulation softwards of LOADRUNNER to simulate PPTP in addition Protocol interaction, the PPTP session capacities for having router then are tested.
According to Chinese patent retrieve retrieved web to a Patent No. 200780035490.7, entitled " pass through HTTPS The patent of the secure tunnel of connection ".PPTP wording is referred in the issued patents, but the patent describes the tunnel under HTTPS Road is verified, and the application patent is not related to HTTPS, so this patent and contrast issued patents difference are obvious, in the absence of punching It is prominent.
According to Chinese patent retrieve retrieved web to a Patent No. 02830182.X, entitled " pass through tunnel service Device carries out data transmission from host server to wireless device, and temporary IP V6 addresses is associated with temporary IP V4 addresses So as to the device in IP V4 communication in wireless networks " patent.The issued patents refer to PPTP wording, but this patent The tunnel link between IPV6 and IPV4 is described, realizes IPV6 addresses and IPV4 wireless communications.And the application patent is One index verification, so the issued patents are entirely different in itself with the application patent.
Retrieved web is retrieved to a Patent No. 200710164253.2, entitled " real under PAT according in Chinese patent The patent of existing PPTP ALG method ".The issued patents also depict PPTP, but this patent, which describes PPTP, have been established Protocol conversion after, and the application patent describes PPTP process of establishing, the issued patents and the mesh of the application patent It is different to mark object, does not collide.
The PPTP of industry checking at present session capacity without the method for testing of maturation, is surveyed using the software of exploitation Examination, compare closing, ununified method of testing, especially in curstomer's site validation test, come without third-party testing means Precisely checking session capacity.
The content of the invention
In order to solve the above problems, there is provided a kind of simple and feasible method, under a common PC and to PC hardware It is required that extremely low i.e. a kind of achievable router PPTP session capacity analogy methods, basic technical scheme of the invention are:It is a kind of Router PPTP session capacity analogy methods, this method comprise the following steps:
(1) PC, the PC is selected the IP address of the PC to be arranged into A, MAC Address is arranged to A1 as PAC;
(2) router is selected, the IP address on the router is arranged to B, router by the router as PNS MAC Address be arranged to B1;
(3) VPN accesses have been configured on the router, have opened PPTP access services on the router;
(4) PPTP tunnel keepalive detection is closed on the router;
(5) PPTP Dial Up script is configured on PC;
(6) a batch processing script is created on PC, the script is a IP lists for needing to test of input, IP It is modified to one by one on PC;An IP is completed in modification on PC every time, is just made PC start to trigger PPTP Dial Up scripts as PAC, is dialled Enter to PNS routers, after dial-up access success, just change PC IP, dialled next time;More than repeating, until test Complete IP lists;By batch modification PC IP address come automatic poking PPTP Dial Up scripts.
Preferably, tunnel of the router after active detecting PPTP is not dialled in whether there is.
Preferably, it is described on the basis of PC Dial Up scripts, a PING order can be added.
Preferably, the batch processing script, which can be placed on multiple PC, runs large batch of IP.
Preferably, the batch processing script is modified according to the PPTP session capacities of actual tested router.
Preferably, the PPTP session capacities of the number of repetition of batch processing script test router needed for determine to set Put.
The beneficial effects of the present invention are:Router PPTP session capacity analogy methods provided by the invention are independent of analysis Software, it can be completed by a common PC.The present invention not only topological simple, strong operability, and autgmentability is strong, can pass through Remote testing is run;Simultaneously the convenient material drawing of the present invention, do not account for resource, suitable each test environment carries out test.Pass through implementation The present invention can quickly, conveniently, accurately test router PPTP session capacity.
Brief description of the drawings
Fig. 1 is the operation chart of test router PPTP session capacities of the present invention.
Fig. 2 is the schematic diagram that the background technology of test router PPTP of the present invention reply capacity is quoted.
Embodiment
Below with reference to accompanying drawing 1, the present invention is described further, but the protection model of the present invention should not be limited with this Enclose.The present invention embodiment be:
A kind of router PPTP session capacity analogy methods, this method comprise the following steps:
(1) PC1, the PC1 is selected the IP address of the PC1 to be arranged into A, MAC Address is arranged to A1, institute as PAC PC1 selection is stated without very big hardware, software requirement, need to can be completed to hold router PPTP sessions with a common PC The test of amount;
(2) router 2 is selected, the router 2 is used as PNS, and the IP address on the router 2 is arranged into B, route The MAC Address of device 2 is arranged to B1;
(3) VPN accesses have been configured on the router 2, PPTP access services are opened on router 2;
(4) PPTP tunnel keepalive detection is closed on the router 2;
(5) PPTP Dial Up script is configured on PC1;
(6) a batch processing script is created on PC1, the script is a IP lists for needing to test of input, IP is modified on PC1 one by one;An IP is completed in modification on PC1 every time, just makes PC1 start to trigger PPTP dialing pin as PAC This, dials in PNS routers 2, after dial-up access success, just changes PC1 IP, is dialled next time;More than repeating, directly IP lists are completed to test;By batch modification PC1 IP address come automatic poking PPTP Dial Up scripts.
Preferably, tunnel of the router 2 after active detecting PPTP is not dialled in whether there is, and by above-mentioned steps, enter And reach the purpose for taking router 2PPTP session capacities space, final test checking router 2PPTP session capacities.
Preferably, on the basis of the PC1 Dial Up scripts, a PING order can be added, PING orders are used for examining Survey the data whether PPTP VPN are truly successfully established.
Preferably, the batch processing script, which can be placed on multiple PC1, runs large batch of IP, because batch processing script It is compact and widely applicable, by batch processing script be placed on multiple PC1 up run large batch of IP can be with test router 2VPN Concurrent session performance.
Preferably, the batch processing script is modified according to the PPTP session capacities of actual tested router 2, different The PPTP session capacities of router 2 have a difference, batch processing script needs created, changed according to actual conditions.
Preferably, the PPTP session capacities of the number of repetition of batch processing script test router 2 needed for determine Set, the PPTP session capacities of different routers 2 will be different, and the cycle-index of batch processing is set according to actual conditions.
In order to more specifically illustrate the present invention, one under the present invention is illustrated from one of specific embodiment below Kind router PPTP session capacity analogy methods, as shown in figure 1, setting up a test topology, specific method of testing is as follows:
A. setting IP and MAC Address are on PC1:A, A1;
B. setting IP and MAC Address are on router 2:B, B1;
C. VPN access services have been configured on router 2, have been accessed using PPTP;
D. PPTP tunnel keepalive detection is closed on router 2;
E. a PPTP Dial Up script is created on PC1;
F. a batch processing script is created on PC1, the thinking of script is:A IP lists for needing to test of input, IP is modified on PC1 one by one.An IP is completed in modification on PC1 every time, just makes PC1 start to trigger PPTP dialing pin as PAC This, dials in PNS routers 2, after dial-up access success, just changes PC1 IP, is dialled next time.More than repeating, directly IP lists are completed to test.Tunnel after make use of router 2 active detecting PPTP not being dialled in whether there is, and reach occupancy The purpose in router 2PPTP session capacities space, so as to reach the purpose that test demonstrates router 2PPTP session capacities.
Above-mentioned batch processing script is different and different because of actually tested router PPTP session capacities, it should according to Actual conditions are modified, and the batch processing script of now one reference of offer is as follows, and code below can be performed actually after tested, the ginseng Examining batch processing script is:
@echo off
Del/q failed.txt>nul2>nul
Del/q success.txt>nul2>nul
Echo starts test network by any key
pause>nul
echo.>failed.txt
echo.>success.txt
For/f%%i in (IP.txt) do (netsh interface ip set address name=locality connections Soure=static addr=%%i
Mask=mask gateway=gateway gwme tric=1
rasdial bl chenpeng)>Nul&&echo%%i>>Cg.txt | | echo%%i>failed.txt
start success.txt
pause
The announcement and teaching of book according to the above description, the utility model those skilled in the art can also be to above-mentioned realities The mode of applying is changed and changed.Therefore, the utility model is not limited to embodiment disclosed and described above, right Some modifications and changes of the present utility model should also be as falling into scope of the claims of the present utility model.In addition, to the greatest extent Some specific terms have been used in pipe this specification, but these terms are merely for convenience of description, not to the utility model Form any restrictions.

Claims (1)

  1. A kind of 1. router PPTP session capacity analogy methods, it is characterised in that:This method comprises the following steps:
    (1)The IP address of the PC is arranged to A, MAC Address is arranged to A1 as PAC from a PC, the PC;
    (2)From a router, the IP address on the router is arranged to B, the MAC of router by the router as PNS Address is arranged to B1;
    (3)VPN accesses have been configured on the router, have opened PPTP access services on the router;
    (4)PPTP tunnel keepalive detection is closed on the router;
    (5)PPTP Dial Up script is configured on PC;
    (6)A batch processing script is created on PC, the script is a IP lists for needing to test of input, IP one by one It is modified on PC;An IP is completed in modification on PC every time, is just made PC start to trigger PPTP Dial Up scripts as PAC, is dialled in PNS routers, after dial-up access success, PC IP is just changed, is dialled next time;More than repeating, until test is completed IP lists;By batch modification PC IP address come automatic poking PPTP Dial Up scripts;
    On the basis of the PC Dial Up scripts, a PING order can be added;
    Tunnel of the router after active detecting PPTP is not dialled in whether there is;
    The batch processing script, which can be placed on multiple PC, runs large batch of IP;
    The batch processing script is modified according to the PPTP session capacities of actual tested router;
    The PPTP session capacities of the number of repetition of batch processing script test router needed for determine to set.
CN201310406353.7A 2013-09-03 2013-09-03 A kind of router PPTP session capacity analogy methods Active CN103490950B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310406353.7A CN103490950B (en) 2013-09-03 2013-09-03 A kind of router PPTP session capacity analogy methods

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310406353.7A CN103490950B (en) 2013-09-03 2013-09-03 A kind of router PPTP session capacity analogy methods

Publications (2)

Publication Number Publication Date
CN103490950A CN103490950A (en) 2014-01-01
CN103490950B true CN103490950B (en) 2017-12-22

Family

ID=49830923

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310406353.7A Active CN103490950B (en) 2013-09-03 2013-09-03 A kind of router PPTP session capacity analogy methods

Country Status (1)

Country Link
CN (1) CN103490950B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107222589A (en) * 2017-07-24 2017-09-29 南京国电南自维美德自动化有限公司 A kind of embedded equipment I P address batch modification method and system of identical IP
CN107968726B (en) * 2017-11-29 2021-03-16 重庆小目科技有限责任公司 Equipment network management method for power system
CN107835198B (en) * 2017-12-13 2020-11-24 睿哲科技股份有限公司 Method and device for PPTP traversal in IPv4-IPv6 intercommunication scene and electronic equipment
CN110445858B (en) * 2019-08-02 2022-02-01 深圳震有科技股份有限公司 Method, device, equipment and medium for simultaneously connecting server with client

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1750483A (en) * 2004-09-15 2006-03-22 中兴通讯股份有限公司 Method for point-to-point protocol service detection of wide band cut-in server
US7117530B1 (en) * 1999-12-07 2006-10-03 Watchguard Technologies, Inc. Tunnel designation system for virtual private networks
CN101039246A (en) * 2006-03-13 2007-09-19 株式会社东芝 Method and equipment for detecting visual special network communication
CN101150513A (en) * 2007-10-17 2008-03-26 中兴通讯股份有限公司 Method for realizing PPTP ALG under PAT
CN101227344A (en) * 2008-02-03 2008-07-23 中兴通讯股份有限公司 Method for simulating L2TP dialing
CN101431447A (en) * 2008-11-26 2009-05-13 福建星网锐捷网络有限公司 Method and apparatus for testing capacity and performance of virtual special network server
CN102546407A (en) * 2011-12-29 2012-07-04 中兴通讯股份有限公司 Message sending method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7117530B1 (en) * 1999-12-07 2006-10-03 Watchguard Technologies, Inc. Tunnel designation system for virtual private networks
CN1750483A (en) * 2004-09-15 2006-03-22 中兴通讯股份有限公司 Method for point-to-point protocol service detection of wide band cut-in server
CN101039246A (en) * 2006-03-13 2007-09-19 株式会社东芝 Method and equipment for detecting visual special network communication
CN101150513A (en) * 2007-10-17 2008-03-26 中兴通讯股份有限公司 Method for realizing PPTP ALG under PAT
CN101227344A (en) * 2008-02-03 2008-07-23 中兴通讯股份有限公司 Method for simulating L2TP dialing
CN101431447A (en) * 2008-11-26 2009-05-13 福建星网锐捷网络有限公司 Method and apparatus for testing capacity and performance of virtual special network server
CN102546407A (en) * 2011-12-29 2012-07-04 中兴通讯股份有限公司 Message sending method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
PPTP配置;╰ァ老拽﹎;《百度文库:http://wenku.baidu.com/link?url=L1PZHb2X-8zzvAtgyu7nt5Gb83YgaACZ3CWoGY33HWqI0Y3At9IrJ3u1EhqwW8u5Ifj45X9UAByWqbRM09tY0UchZgMomoQvhzLyU-Ylbia》;20110323;正文第1页至第10页 *

Also Published As

Publication number Publication date
CN103490950A (en) 2014-01-01

Similar Documents

Publication Publication Date Title
Sundaresan et al. {BISmark}: A testbed for deploying measurements and applications in broadband access networks
CN101945043B (en) Topology discovery system of next generation Internet based on IPv6 (Internet Protocol Version 6) and realizing method thereof
US9146826B2 (en) Method and apparatus for scaling network simulation
CN103490950B (en) A kind of router PPTP session capacity analogy methods
US10110556B2 (en) Methods, systems, and computer readable media for initiating and executing performance tests of a private network and/or components thereof
CN101605348B (en) Data service simulation method and application system
CN105227406A (en) A kind of method of testing of router combination property
CN107819649B (en) Private protocol testing method of satellite communication network based on mass terminals
US8280956B2 (en) User behavior based mobile broadband user plane traffic generation system and method for real-like measurement generation
Kalwar et al. A survey of transition mechanisms from IPv4 to IPv6—Simulated test bed and analysis
CN104539483A (en) Network testing system
CN107171854A (en) A kind of method that independent wide area network server is simulated in automatic test
CN105376754A (en) Method for testing number of connectable wireless users of router
WO2022057265A1 (en) Test method and device for simulating customer series deployment environment
CN104468281A (en) Routing information protocol simulator and routing information protocol communication test method thereof
Naagas et al. IPv6 campus transition: A central Luzon state university case study
CN212992342U (en) Attack defense reliability test system for network solution
CN112491656A (en) Method and device for testing concurrent connection number of router IPSEC tunnel
Peter et al. Implementation and evaluation of IPv6 to IPv4 transition mechanisms in network simulator 3
Dumitru-Guzu et al. Analysis of potential threats in nextgen 5g core
CN103067226A (en) Ethernet passive optional network (EPON) test system
CN106506268B (en) Server access method and system
CN112242910B (en) Network element fault positioning method and device, computing equipment and computer storage medium
Doshi et al. Wireless network testing and evaluation using real-time emulation
Clore et al. Validating a custom IPv6 security application using OPNET modeler

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant