CN106506268B - Server access method and system - Google Patents
Server access method and system Download PDFInfo
- Publication number
- CN106506268B CN106506268B CN201610953213.5A CN201610953213A CN106506268B CN 106506268 B CN106506268 B CN 106506268B CN 201610953213 A CN201610953213 A CN 201610953213A CN 106506268 B CN106506268 B CN 106506268B
- Authority
- CN
- China
- Prior art keywords
- network
- private network
- access request
- address converter
- public network
- 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
Links
- 238000000034 method Methods 0.000 title claims description 20
- 238000012360 testing method Methods 0.000 claims abstract description 44
- 238000011076 safety test Methods 0.000 claims description 5
- 238000004519 manufacturing process Methods 0.000 claims description 3
- 238000004088 simulation Methods 0.000 description 7
- 238000013515 script Methods 0.000 description 6
- 238000009530 blood pressure measurement Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000008520 organization Effects 0.000 description 2
- 238000011056 performance test Methods 0.000 description 2
- 238000010998 test method Methods 0.000 description 2
- 241000596871 Ixia Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000011424 computer programming method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/25—Mapping addresses of the same type
- H04L61/2503—Translation of Internet protocol [IP] addresses
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Computer And Data Communications (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The patent discloses an access system of server, the system includes: the computer establishes a private network IP, selects an available data port, then arranges and combines a plurality of private network IPs and a plurality of available data ports, adds access information and forms a private network virtual user access request; the network address converter is connected with the computer and is used for converting a private network IP established by the computer into a public network IP and converting the private network virtual user access request into a public network real user access request; and the gateway is connected with the network address converter, receives an access request of a public network real user in the network address converter and sends the request to a target server. The system can simulate a large-scale real user to perform the pressure test of the website server, not only can meet the high-concurrency pressure test of the website, but also can reduce the cost.
Description
Technical Field
The patent belongs to the technical field of internet, and particularly relates to a server access method and system.
Background
In recent years, with the rapid global development of the internet, websites have become one of the more and more necessary tools for people to acquire information as a communication tool. How to create a high-performance, fast website becomes a goal of each website development operator. The performance of a website is usually measured in terms of the size of the website space, the location of the website, the connection speed of the website (commonly referred to as "internet speed"), the configuration of the website software, the service provided by the website, etc., but the most direct measure is the real user access amount that the website can support. Many websites operate very fast when only a few users use the website, however, if a large number of users access the website at the same time, the website may be crashed.
In order to know how many concurrent users a web site can support, the web site must be stress tested. The purpose of the stress test is to obtain the maximum number of users that can be supported by the website server through the test, so as to help the operator of the website to know whether the server can provide services normally after experiencing a large access increase.
In the prior art, the following technical scheme is generally adopted for carrying out a pressure test on a website:
for example, a real massive number of users are used directly to access a web server. The method is the most real test method, but how to effectively organize thousands of people to test at the same time, the organization and implementation difficulty is difficult to achieve by common enterprises, the cost is extremely high, and the method is basically not feasible.
As another example, the use of "pressure test meters" is currently the most common test method in the art, including "test meters" from Spirent and IXIA manufacturers. The working principle of the test instrument is that a large number of users are simulated through scripts, and then different private network IP addresses and ports are created on a network card of the test instrument to send concurrent requests to a Web server to be tested. The commercial tester can initiate tens of millions of user requests, but the use of the tester is greatly limited, firstly, the tester can only simulate limited protocols, mainly including 7-layer protocols such as 2-4 layer network protocols defined by the international standardization organization and partially standardized HTTP (hyper text transport protocol), but in practical application, a plurality of websites are proprietary protocols or privately extend standard protocols, and the compiling of test scripts is limited; secondly, the test instrument can only be used in the range of the local area network, if the test is needed, a set of environment which is the same as the existing network deployment is established in a laboratory, and the same configuration is adopted, so that extra workload and cost are brought; third, commercial test instruments are expensive, moving to millions of RMB's, and cost is unacceptable to most website operators.
For another example, cloud pressure measurement is adopted, and the working principle of the cloud pressure measurement is that a test script is operated through a test cloud host deployed at the cloud end, then the test cloud host sends a test request to the user system, and finally test data are returned to the cloud pressure measurement host, so that real users of a certain scale are simulated to access the user system. The cloud pressure test is mainly applied to the aspects of function test and application performance test.
The application performance test is an independent comprehensive platform integrating performance and function tests, and is specially designed and developed for testing modern networks and mobile applications. And performing application load test according to the application scene of the user, and determining a bottleneck from a code, a network, middleware, a server and a database in the test process, thereby improving the overall performance of the application system.
The function test provides an automatic test script, can be recorded according to an applied operation flow, and is completed through the automatic script.
The scale of users that can be simulated by cloud pressure measurement is generally hundreds to thousands. If a plurality of cloud hosts are needed to realize simulation of large-scale user access, for example, 10 ten thousand user access needs to be simulated, more than 1000 cloud hosts need to be opened to realize the simulation. The cost and the complexity are higher, firstly, the renting cost is higher after the number of the cloud hosts is large, secondly, the workload of deploying scripts on a plurality of devices is also large, and the scheduling and management have certain complexity, so that the pressure test of the website server by using the cloud pressure test is obviously unreasonable.
Disclosure of Invention
The present invention is proposed based on the above-mentioned needs of the prior art, and the technical problem to be solved by the present invention is to provide a method and a system for accessing a server, which can simulate a large-scale real user to perform a stress test on a web server, and not only can satisfy a high-concurrency stress test of a web site, but also can reduce the cost.
In order to solve the above problems, the technical solution provided by the present invention includes:
1. an access system for a server, the system comprising:
the computer establishes a private network IP, selects an available data port, then arranges and combines a plurality of private network IPs and a plurality of available data ports, adds access information and forms a private network virtual user access request;
the network address converter is connected with the computer and is used for converting a private network IP established by the computer into a public network IP and converting the private network virtual user access request into a public network real user access request;
and the gateway is connected with the network address converter, receives an access request of a public network real user in the network address converter and sends the request to a target server.
Preferably, the number of computers includes one or more, each computer having created thereon a plurality of private network IPs and provided with a plurality of available data ports.
Preferably, the number of the network address translators includes one or more, and each network address translator is respectively connected with at least one computer.
Preferably, the public network IP comprises an idle IP of an operator.
According to another aspect of the present patent, there is provided an access method of a server, the method including: step 101, manufacturing a plurality of private network IPs; 102, selecting an available data port; 103, combining the plurality of private network IPs and the available ports, and adding access information to obtain a private network virtual user access request; step 104, converting the private network virtual user access request into a public network real user access request through a network address converter; step 105 sends the access request of the real user of the public network to a target server.
This patent can obtain following beneficial effect through as above technical scheme: by the method of firstly simulating the access request of the private network user on the computer and then converting the access request of the private network user into the real access request of the public network user, the method can simulate large-scale real users to perform the pressure test of the website server, not only can meet the pressure test of high concurrency of the website, but also can reduce the cost; in addition, because the real users of the public network ip are simulated, the deployment and the implementation are very simple, and the simulation is undoubtedly a good choice for the stress test of the website server.
Drawings
Fig. 1 is a schematic structural diagram of a server access system according to an embodiment of the present disclosure.
Fig. 2 is a flowchart of a server access method according to an embodiment of the present disclosure.
Detailed Description
The following detailed description of the embodiments of the present patent refers to the accompanying drawings and is only for the purpose of illustrating preferred embodiments of the patent and is not to be construed as limiting the scope of the patent.
Example one
Fig. 1 is a schematic structural diagram illustrating an access system of a server according to the present embodiment. The access system of the server includes:
and the computer is used for creating batch private network IPs, selecting available data ports, and then arranging and combining the multiple private network IPs and the multiple available data ports to form a private network virtual user. The process is shown in fig. 2.
In this embodiment, there may be one or more computers. For example, N stations as shown in fig. 1.
For example, when 10.10.1.2-10.10.50.254 network segment IPs are used on a PC, more than 1000 private network IPs can be created, and if more than 6 ten thousand data ports can be used by one computer, more than 6000 ten thousand virtual users can be simulated successfully by using one computer.
The creation of a batch of private network IPs and the selection of available data ports can both be implemented by using the prior art, and in this embodiment, the private network IPs and the available data ports are arranged and combined to form a plurality of virtual users.
And the network Address converter is connected with the computer and is used for converting the private network IP created by the computer into a public network IP to form a real user of the public network.
And when a data packet passes through the network address converter, the network address converter not only checks the information of the packet, but also modifies the IP address and the port information in the packet header. So that machines behind the NAT, such as the computers described above, share several of the only public network IP addresses.
The network address translator is usually under the control of the operator, and at the operator, there are usually a plurality of idle IPs, which can facilitate invoking idle IP resources for simulation and testing. Not only creates conditions for large-scale simulation, but also does not influence normal network communication.
The simulated private network virtual users in the plurality of calculations become a plurality of public network real users with public network IP after passing through the network address converter, and the public network real users converted by the network address converter are different from the private protocol in the stress tester or the mode of privatizing and expanding the standard protocol, so that more convenience is provided for simulating the real user access state. In addition, besides providing stress test, various security attack simulation tests such as DNS request attack, Syn Flood attack and the like can be realized by the access system and method, and therefore, unexpected technical effects can be achieved.
Further preferably, the number of the network address translators may be one or more, and one network address translator may be connected to one computer or a plurality of computers. Therefore, more user simulation redundancy is provided, and a plurality of safety test strategies are provided so as to carry out safety tests with different requirements.
In this embodiment, the system further includes a gateway, namely gw (gate way). The gateway is connected with the network address converter, receives an access request of a public network real user in the network address converter, and sends the request to a target server. After the request of the real user of the public network is sent to the target server, the stress test can be carried out under the condition of access of a large number of users, and other safety tests can be realized by compiling different simulated attack commands aiming at different other attack simulated test requirements.
Example two
The embodiment provides an access method for a server, as shown in fig. 2, the method includes the following steps:
step 101 of manufacturing a plurality of private network IPs
In this step, the private network IP may be manufactured in various ways, that is, it may be implemented by a computer programming method as in the first embodiment, or may be implemented by other devices, and may be flexibly designed. Because the private network IP has great latitude, a large amount of private network IPs can be compiled by using less equipment.
Step 102 selects available data ports
In this step, the available data ports may be selected by the device as described in step 101.
Step 103, combining the multiple private network IPs and the available ports, and adding access information to obtain the private network virtual user
In this step, the private network IPs and the available data ports obtained in the steps 101 and 102 are arranged and combined to obtain a large number of private network virtual users of the private network IP addresses plus the available data ports.
Step 104, the private network virtual user is converted into a public network real user through a network address converter
In this step, the private network virtual user is assigned with the IP and port of the public network through the network address translator, thereby converting the private network virtual user into a real user of the public network.
Step 105 sends the access requirement that the public network is really a user to a target server.
Although the present invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted for elements thereof without departing from the scope of the present invention.
Claims (1)
1. An access method for a server, the method using an access system for a server, the system comprising:
the computer establishes a private network IP, selects an available data port, then arranges and combines a plurality of private network IPs and a plurality of available data ports, adds access information and forms a private network virtual user access request;
the network address converter is connected with the computer and is used for converting a private network IP established by the computer into a public network IP and converting the private network virtual user access request into a public network real user access request;
the gateway is connected with the network address converter, receives an access request of a public network real user in the network address converter and sends the request to a target server; after the request of the real user of the public network is sent to the target server, the pressure test can be carried out under the condition of access of a large number of users, and other safety tests can be realized by compiling different simulated attack commands aiming at different other attack simulated test requirements;
the number of the computers comprises one or more computers, and each computer is provided with a plurality of private network IPs and a plurality of available data ports;
the number of the network address converters comprises one or more, and each network address converter is respectively connected with at least one computer; the public network IP comprises an idle IP of an operator;
the system also includes a gateway, gw (gateway); the gateway is connected with the network address converter, receives an access request of a public network real user in the network address converter and sends the request to a target server; the method comprises the following steps:
step 101, manufacturing a plurality of private network IPs;
102, selecting an available data port;
103, combining the plurality of private network IPs and the available ports, and adding access information to obtain a private network virtual user access request;
step 104, converting the private network virtual user access request into a public network real user access request through a network address converter; after the request of the real user of the public network is sent to the target server, the pressure test can be carried out under the condition of access of a large number of users, and other safety tests can be realized by compiling different simulated attack commands aiming at different other attack simulated test requirements;
step 105, sending the access request of the real user of the public network to a target server;
the network address converter belongs to an operator network address converter, and at least part of the public network real user access request comprises an idle public network IP address of an operator; the access method is used for performing stress test on the target server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610953213.5A CN106506268B (en) | 2016-11-03 | 2016-11-03 | Server access method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610953213.5A CN106506268B (en) | 2016-11-03 | 2016-11-03 | Server access method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106506268A CN106506268A (en) | 2017-03-15 |
CN106506268B true CN106506268B (en) | 2020-05-05 |
Family
ID=58322265
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610953213.5A Active CN106506268B (en) | 2016-11-03 | 2016-11-03 | Server access method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106506268B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108833472B (en) * | 2018-05-07 | 2019-09-17 | 杭州数梦工场科技有限公司 | System is established in the connection of cloud host |
CN115842750A (en) * | 2022-11-24 | 2023-03-24 | 上海安博通信息科技有限公司 | Pressure testing method and system for AD domain server |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101149780A (en) * | 2006-09-20 | 2008-03-26 | 中国科学院自动化研究所 | System and method for automatic measurement for radio frequency identification service system |
CN101388800A (en) * | 2007-09-12 | 2009-03-18 | 百度在线网络技术(北京)有限公司 | Method, device and system for pressed test to network performance of server |
CN101854271A (en) * | 2010-05-10 | 2010-10-06 | 浪潮电子信息产业股份有限公司 | Service performance testing method based on virtualization application platform |
CN102724178A (en) * | 2012-05-23 | 2012-10-10 | 成都三零凯天通信实业有限公司 | RTSP simulator and realization method thereof |
CN103684890A (en) * | 2012-08-30 | 2014-03-26 | 中国银联股份有限公司 | Server stress testing method and system |
-
2016
- 2016-11-03 CN CN201610953213.5A patent/CN106506268B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101149780A (en) * | 2006-09-20 | 2008-03-26 | 中国科学院自动化研究所 | System and method for automatic measurement for radio frequency identification service system |
CN101388800A (en) * | 2007-09-12 | 2009-03-18 | 百度在线网络技术(北京)有限公司 | Method, device and system for pressed test to network performance of server |
CN101854271A (en) * | 2010-05-10 | 2010-10-06 | 浪潮电子信息产业股份有限公司 | Service performance testing method based on virtualization application platform |
CN102724178A (en) * | 2012-05-23 | 2012-10-10 | 成都三零凯天通信实业有限公司 | RTSP simulator and realization method thereof |
CN103684890A (en) * | 2012-08-30 | 2014-03-26 | 中国银联股份有限公司 | Server stress testing method and system |
Non-Patent Citations (1)
Title |
---|
基于Honeyd的星型结构分布式系统压力测试框架的设计与实现;李形丽;《计算机应用与软件》;20120430;第31-34页 * |
Also Published As
Publication number | Publication date |
---|---|
CN106506268A (en) | 2017-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110636131B (en) | Internet of things testing system based on cloud technology | |
CN104579822B (en) | Mobile application automated performance testing system and method based on Http agreements | |
CN106776313B (en) | Method, device and centralized management platform for simulating service | |
CN110647469B (en) | Micro-service testing method and device, computer equipment and storage medium | |
CN110351156B (en) | Test method and device | |
JP6336606B2 (en) | Method and apparatus for visual network operation and maintenance | |
US9146826B2 (en) | Method and apparatus for scaling network simulation | |
CN109450743A (en) | Platform of internet of things pressure testing system, method, apparatus and server | |
CN112738230B (en) | Automatic network gate testing system and working method thereof | |
JP2011041455A (en) | Apparatus and method of testing report communication in power transformation automation system | |
Liu | A primer for real-time simulation of large-scale networks | |
CN106506268B (en) | Server access method and system | |
US20060168467A1 (en) | Load testing methods and systems with transaction variability and consistency | |
CN111522625B (en) | A cloud data online forensics system and method | |
KR20170133781A (en) | Apparatus and Method for Testing and diagnosing Virtual Infrastructure | |
CN118055052A (en) | Dynamic host configuration protocol test method, electronic device and computer readable medium | |
CN103490950B (en) | A kind of router PPTP session capacity analogy methods | |
CN112860568A (en) | Multiple routing test method and system based on Selenium | |
CN101494654B (en) | Method and apparatus for determining server accessibility | |
CN100486187C (en) | A test method and system for L2TP tunnel specification | |
US20120054828A1 (en) | Three-layer web management protocol device emulation | |
Hine et al. | Scalable emulation of enterprise systems | |
Hashimi et al. | Performance Evaluation of a Network Using Simulation Tools or Packet Tracer | |
Komosny et al. | Testing Internet applications and services using PlanetLab | |
CN102083118A (en) | Large-telephone-traffic test device, system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |