CN105515827A - System and method for creating automated test environment - Google Patents
System and method for creating automated test environment Download PDFInfo
- Publication number
- CN105515827A CN105515827A CN201510843253.XA CN201510843253A CN105515827A CN 105515827 A CN105515827 A CN 105515827A CN 201510843253 A CN201510843253 A CN 201510843253A CN 105515827 A CN105515827 A CN 105515827A
- Authority
- CN
- China
- Prior art keywords
- port
- client
- gateway
- test environment
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/14—Network analysis or design
- H04L41/145—Network analysis or design involving simulating, designing, planning or modelling of a network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/14—Network analysis or design
- H04L41/147—Network analysis or design for predicting network behaviour
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses a system and a method for creating an automated test environment. The system comprises a port simulation module, a device simulation module and an environment configuration module. The port simulation module is used for simulating, through virtualization software, a local area network (LAN) port and a wide area network (WAN) port that are connected at a to-be-tested gateway. The device simulation module is used for simulating a client connected at the LAN port and a server connected at the WAN port through the virtualization software. The environment configuration module is used for configuring the connection between the client and the LAN port and the connection between the server and the LAN port. Through adoption of the method and system, a real test environment can be simulated through the software, so that manpower and material resources are saved greatly, and the test efficiency is improved.
Description
Technical field
The present invention relates to computer network field, particularly relate to the system and method building automatic test environment.
Background technology
Universal along with communication and network, the application of radio network gateway product is more and more extensive.Radio network gateway is a kind of intelligent access device, sets up LAN (such as, home network) centered by it, and in the access of multiple equipment room shared network, simultaneously for user provides the equipment of safe communication, amusement, storage integrated function.As communication control center, the Service control center of whole LAN, radio network gateway can play master control, coordinate the effect of all devices, and user is provided to unified, is convenient to use interface.
At present, mainly manual test is tested to radio network gateway product, each link of test environment adopts the real network equipment, be linked in actual network by wireless gateway device, be connected with real server and client side's equipment, be then configured equipment with order line or webmaster, automaticity is very low, testing efficiency is very low, and consumes a large amount of physical equipment cost.
Summary of the invention
The technical problem that the present invention mainly solves is to provide a kind of system and method building automatic test environment, can carry out test environment that is virtually reality like reality, thus save man power and material greatly, improve testing efficiency by software.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is: provide a kind of system of building automatic test environment, this system comprises port analog module, for being connected to the LAN (LocalAreaNetwork of gateway to be tested by virtualization software simulation, local area network (LAN)) port and WAN (WideAreaNetwork, wide area network) port; Equipment simulating module, for being connected to the client of described LAN port by described virtualization software simulation and being connected to the server of described WAN port; Environment configurations module, for being configured the connection of described client and the connection of described LAN port, described server and described LAN port.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is: provide a kind of method of building automatic test environment, and the method comprises the LAN port and the WAN port that are connected to gateway to be tested by virtualization software simulation; Be connected to the client of described LAN port by described virtualization software simulation and be connected to the server of described WAN port; The connection of described client and the connection of described LAN port, described server and described LAN port is configured.
Be different from prior art, system of building automatic test environment of the present invention, for being connected to LAN port and the WAN port of gateway to be tested by virtualization software simulation; Be connected to the client of described LAN port by described virtualization software simulation and be connected to the server of described WAN port; The connection of described client and the connection of described LAN port, described server and described LAN port is configured; Thus test environment that is virtually reality like reality can be carried out by software, thus save man power and material greatly, improve testing efficiency.
Accompanying drawing explanation
Fig. 1 is the structural representation that the present invention builds the first execution mode of the system of automatic test environment;
Fig. 2 is the structural representation that the present invention builds the second execution mode of the system of automatic test environment;
Fig. 3 is the schematic flow sheet that the present invention builds the first execution mode of the method for automatic test environment;
Fig. 4 is the exemplary plot that of building in the corresponding embodiment of Fig. 3 has the automatic test environment of three layers of VLAN framework.
Embodiment
Below in conjunction with embodiment, more detailed description is further done to technical scheme of the present invention.Obviously, described embodiment is only a part of embodiment of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under the prerequisite of not making creative work, all should belong to the scope of protection of the invention.
Consult Fig. 1, Fig. 1 is the structural representation building the first execution mode of the system of automatic test environment provided by the invention.This system can be deployed in and be provided with on the physical server of virtualization software, and gateway to be tested is connected in the network adapter of described physical server.Common, gateway to be tested is connected in this network adapter by switch.
This system 100 of building automatic test environment comprises: port analog module 110, equipment simulating module 120, environment configurations module 130.
Wherein, acquisition module 110, for being connected to LAN (LocalAreaNetwork, local area network (LAN)) port and WAN (WideAreaNetwork, the wide area network) port of gateway to be tested by virtualization software simulation.
Concrete, LAN port and the WAN port of gateway to be tested can be connected to by the netgraph software simulation of FreeBSD system.
Equipment simulating module 120, for being connected to the client of described LAN port by described virtualization software simulation and being connected to the server of described WAN port.
Concrete, can the client of described LAN port be connected to by the vimage software simulation of FreeBSD system and be connected to the server of described WAN port.
Environment configurations module 130, for being configured the connection of described client and the connection of described LAN port, described server and described LAN port.
Concrete, described configuration comprises link address, port numbers, network identity, network level etc.
Be different from prior art, system of building automatic test environment of the present invention, be connected to LAN port and the WAN port of gateway to be tested by virtualization software simulation; Be connected to the client of described LAN port by described virtualization software simulation and be connected to the server of described WAN port; The connection of described client and the connection of described LAN port, described server and described LAN port is configured; Thus test environment that is virtually reality like reality can be carried out by software, thus save man power and material greatly, improve testing efficiency.
Consult Fig. 2, Fig. 2 is the structural representation building the second execution mode of the system of automatic test environment provided by the invention.This system can be deployed in and be provided with on the physical server of virtualization software, and gateway to be tested is connected in the network adapter of this physical server.Common, gateway to be tested is connected in this network adapter by switch.
This system 200 of building automatic test environment comprises: port analog module 210, equipment simulating module 220, environment configurations module 230.
Wherein, port analog module 210, for being connected to local network LAN port and the wide area network WAN port of gateway to be tested by virtualization software simulation.
Further, port analog module 210 comprises VLAN (VirtualLocalAreaNetwork, VLAN) port analog unit 211, for being connected to the vlan port of gateway to be tested by virtualization software simulation, thus isolate mutually between the client ensureing to be connected to described vlan port.Because the packet that different clients needs is all not identical with flow, by being connected to different vlan port, can make can not interact between each client.
More specifically, vlan port analogue unit 211, may be used for adopting three-decker to simulate described vlan port, wherein ground floor is the hub being connected to described gateway to be tested, the second layer is the bridge joint switch device being connected to described hub, and third layer is the vlan port being connected to described bridge joint switch device.By simulating vlan port in three-decker, can simulate the environment had required for multiple gateway to be tested on the one hand, a corresponding gateway to be tested of vlan network, this multiple vlan network is connected in network adapter by hub; On the other hand, can ensure again to isolate mutually between each client, each client's side link is to an independently vlan port.
Port analog module 210 can also comprise netgraph software simulation unit 212, for being connected to WAN port and the LAN port of gateway to be tested by netgraph software simulation.Concrete, netgraph software simulation unit 212, for being write in the booting script of FreeBSD system by the execution script of described netgraph software, so that simulation is connected at the WAN port of gateway to be tested and LAN port in system starting process
Equipment simulating module 220, for being connected to the client of described LAN port by described virtualization software simulation and being connected to the server of described WAN port.
This equipment simulating module 220 can comprise vimage software simulation unit 221, for being connected to the client of described LAN port by vimage software simulation and being connected to the server of described WAN port.Concrete, vimage software simulation unit 221, for the execution script of described vimage software is write in the booting script of FreeBSD system, so that simulation is connected to the client of described LAN port and is connected to the server of described WAN port in system starting process.
Environment configurations module 230, for being configured the connection of described client and the connection of described LAN port, described server and described LAN port.
Concrete, described configuration comprises link address, port numbers, network identity, network level etc.
Optionally, the system 200 of described automatic test environment can also comprise equipment configuration module 240, for being configured the performance of the described client that simulates or server.Concrete, can be when automatic test environmental structure well after, when needing to change the performance of client or server, the modes such as employing SSH directly log in and are then configured.
Be different from prior art, system of building automatic test environment of the present invention, be connected to LAN port and the WAN port of gateway to be tested by virtualization software simulation; Be connected to the client of described LAN port by described virtualization software simulation and be connected to the server of described WAN port; The connection of described client and the connection of described LAN port, described server and described LAN port is configured; Thus test environment that is virtually reality like reality can be carried out by software, thus save man power and material greatly, improve testing efficiency.
Consult Fig. 3, Fig. 3 is the schematic flow sheet building method first execution mode of automatic test environment provided by the invention.The executive agent of the method is the physical server being provided with virtualization software, and gateway to be tested is connected in the network adapter of described physical server.Common, gateway to be tested is connected in this network adapter by switch.
The step of the method comprises:
S301: the LAN port and the WAN port that are connected to gateway to be tested by virtualization software simulation.
Optionally, the described LAN port being connected to gateway to be tested by virtualization software simulation is vlan port, thus isolates mutually between the client ensureing to be connected to described vlan port.Because the packet that different clients needs is all not identical with flow, by being connected to different vlan port, can make can not interact between each client.
The specific implementation of this step can be further: simulated the vlan port being connected to gateway to be tested by three-decker, wherein ground floor is the hub being connected to described gateway to be tested, the second layer is the bridge joint switch device being connected to described hub, and third layer is the vlan port being connected to described bridge joint switch device.By simulating vlan port in three-decker, can simulate the environment had required for multiple gateway to be tested on the one hand, a corresponding gateway to be tested of vlan network, this multiple vlan network is connected in network adapter by hub; On the other hand, can ensure again to isolate mutually between each client, each client's side link is to an independently vlan port.
S302: be connected to the client of described LAN port by described virtualization software simulation and be connected to the server of described WAN port.
Wherein, when step S301 to be connected to WAN port and the LAN port of gateway to be tested specifically by netgraph software simulation, this step S302 is connected to the client of described LAN port specifically by vimage software simulation and is connected to the server of described WAN port.
Optionally, the execution script of described netgraph software and vimage software is write in the booting script of FreeBSD system by step S301 and S302, thus creates out by test environment in system starting process.
Fig. 4 is the example architecture figure of the virtual environment of the automatic test built by the method in the present embodiment, and this test environment has three layers of VLAN framework.Comprise: client 1 ~ client 4 (401 ~ 404), be connected on the vlan port of bridge 1 ~ bridge 4 and (be respectively vlan port 1 ~ 4,406 ~ 409), and four bridges 406 ~ 409 (belonging to the third layer of VLAN framework) are connected on bridge joint switch 411, this bridge joint switch 411 (belonging to the second layer of VLAN framework) is connected on hub 412, hub 412 (belonging to the ground floor of VLAN framework) interconnection network adapter 413; Server 405 is connected in the WAN port of bridge 5 (410), and bridge 5 is connected with bridge joint switch 411 again.A hub can connect multiple bridge joint switch, bridge joint switch corresponding a vlan network, i.e. an a set of test environment.Network adapter 413 and gateway to be tested 414 are all connected on switch 415, thus by the interconnected connection of switch 415.In this test environment, only have switch 415, network adapter 413 is physical equipment on physical server, gateway 414 to be tested is physical equipments, and other are the dummy node built by software.Wherein, 401 ~ 405 can be the equipment by vimage software simulation, and 406 ~ 412 is the nodes for providing port by netgraph software simulation.
In upper figure, the request of some initiations in terminal equipment 401 ~ 405, corresponding bridge 406 ~ 409 will be forwarded to, this bridge can add the tag of this vlan port upper, is then transmitted to bridge joint switch 411, after forwarding layer by layer, this request command can be forwarded on server 405, and the data that server 405 returns also will carry this tag, thus these data can normally be routed to the bridge with this tag, are transmitted to terminal equipment after peelling off the tag of VLAN further.
S303: the connection of described client and the connection of described LAN port, described server and described LAN port is configured.Concrete, described configuration comprises link address, port numbers, network identity, network level etc.
Optionally, can also comprise further after the method the performance of the described client that simulates or server is configured.Concrete, can be when automatic test environmental structure well after, when needing to change the performance of client or server, the modes such as employing SSH directly log in and are then configured.
Be different from prior art, method of building automatic test environment of the present invention, be connected to LAN port and the WAN port of gateway to be tested by virtualization software simulation; Be connected to the client of described LAN port by described virtualization software simulation and be connected to the server of described WAN port; The connection of described client and the connection of described LAN port, described server and described LAN port is configured; Thus test environment that is virtually reality like reality can be carried out by software, thus save man power and material greatly, improve testing efficiency.
The foregoing is only embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.
Claims (12)
1. build a system for automatic test environment, it is characterized in that, comprising:
Port analog module, for being connected to LAN port and the WAN port of gateway to be tested by virtualization software simulation;
Equipment simulating module, for being connected to the client of described LAN port by described virtualization software simulation and being connected to the server of described WAN port;
Environment configurations module, for being configured the connection of described client and the connection of described LAN port, described server and described LAN port.
2. system of building automatic test environment according to claim 1, it is characterized in that: described port analog module comprises vlan port analogue unit, for being connected to the vlan port of gateway to be tested by virtual simulation, isolate mutually between the client making to be connected to described vlan port.
3. system of building automatic test environment according to claim 2, it is characterized in that, described vlan port analogue unit, for simulating described vlan port by three-decker, wherein ground floor is the hub being connected to described gateway to be tested, the second layer is the bridge joint switch device being connected to described hub, and third layer is the vlan port being connected to described bridge joint switch device.
4. the system of building automatic test environment according to claim 1,2 or 3, its feature is being, described system further comprises equipment configuration module, for being configured the performance of the described client that simulates or server.
5. system of building automatic test environment according to claim 1, is characterized in that, described port analog module comprises netgraph analogue unit, for being connected to WAN port and the LAN port of gateway to be tested by netgraph software simulation;
Described equipment simulating module comprises vimage software simulation unit, for being connected to the client of described LAN port by vimage software simulation and being connected to the server of described WAN port.
6. system of building automatic test environment according to claim 5, it is characterized in that, described netgraph software simulation unit, for the execution script of described netgraph software is write in the booting script of FreeBSD system, so that simulation is connected at the WAN port of gateway to be tested and LAN port in system starting process;
Described vimage software simulation unit, for being write in the booting script of FreeBSD system by the execution script of described vimage software, so that simulation is connected to the client of described LAN port and is connected to the server of described WAN port in system starting process.
7. build a method for automatic test environment, it is characterized in that, comprising:
LAN port and the WAN port of gateway to be tested is connected to by virtualization software simulation;
Be connected to the client of described LAN port by described virtualization software simulation and be connected to the server of described WAN port;
The connection of described client and the connection of described LAN port, described server and described LAN port is configured.
8. method of building automatic test environment according to claim 7, it is characterized in that, the LAN port being connected to gateway to be tested by virtualization software simulation comprises further: described LAN port is vlan port, thus isolates mutually between the client ensureing to be connected to described vlan port.
9. method of building automatic test environment according to claim 8, it is characterized in that, the described LAN port being connected to gateway to be tested by virtualization software simulation, described LAN port is that vlan port is specially: simulate described vlan port by three-decker, wherein ground floor is the hub being connected to described gateway to be tested, the second layer is the bridge joint switch device being connected to described hub, and third layer is the vlan port being connected to described bridge joint switch device.
10. the method for building automatic test environment according to claim 7,8 or 9, is characterized in that, after described method, comprises further and being configured the performance of the described client that simulates or server.
11. methods of building automatic test environment according to claim 7,8 or 9, is characterized in that,
Describedly be connected to the WAN port of gateway to be tested by virtualization software simulation and LAN port is specially: the WAN port and the LAN port that are connected to gateway to be tested by netgraph software simulation;
The described client being connected to described LAN port by the simulation of described virtualization software and the server being connected to described WAN port are specially: be connected to the client of described LAN port by vimage software simulation and be connected to the server of described WAN port.
12. methods of building automatic test environment according to claim 11, it is characterized in that, described WAN port and the LAN port being connected to gateway to be tested by netgraph software simulation, the client being connected to described LAN port by vimage software simulation is comprised further with the server being connected to described WAN port: write in the booting script of FreeBSD system by the execution script of described netgraph software and vimage software, thus create out by test environment in system starting process.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510843253.XA CN105515827A (en) | 2015-11-26 | 2015-11-26 | System and method for creating automated test environment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510843253.XA CN105515827A (en) | 2015-11-26 | 2015-11-26 | System and method for creating automated test environment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105515827A true CN105515827A (en) | 2016-04-20 |
Family
ID=55723486
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510843253.XA Pending CN105515827A (en) | 2015-11-26 | 2015-11-26 | System and method for creating automated test environment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105515827A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106603339A (en) * | 2016-12-23 | 2017-04-26 | 携程旅游网络技术(上海)有限公司 | Test system and method of simulating wide area network environment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1822559A (en) * | 2006-04-10 | 2006-08-23 | 武汉理工大学 | Network topological simulating method |
CN101232410A (en) * | 2005-10-14 | 2008-07-30 | ***通信集团公司 | System and method for testing WAP gateway performance |
CN101707608A (en) * | 2009-11-27 | 2010-05-12 | 成都市华为赛门铁克科技有限公司 | Method and device for automatically testing application layer protocol |
CN103023708A (en) * | 2011-09-20 | 2013-04-03 | 腾讯科技(深圳)有限公司 | Method and system for testing communication protocol interface |
CN104115473A (en) * | 2011-12-14 | 2014-10-22 | 皇家Kpn公司 | Virtual interface applications |
CN104158701A (en) * | 2014-08-18 | 2014-11-19 | 中国联合网络通信集团有限公司 | Gateway function testing method and device |
-
2015
- 2015-11-26 CN CN201510843253.XA patent/CN105515827A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101232410A (en) * | 2005-10-14 | 2008-07-30 | ***通信集团公司 | System and method for testing WAP gateway performance |
CN1822559A (en) * | 2006-04-10 | 2006-08-23 | 武汉理工大学 | Network topological simulating method |
CN101707608A (en) * | 2009-11-27 | 2010-05-12 | 成都市华为赛门铁克科技有限公司 | Method and device for automatically testing application layer protocol |
CN103023708A (en) * | 2011-09-20 | 2013-04-03 | 腾讯科技(深圳)有限公司 | Method and system for testing communication protocol interface |
CN104115473A (en) * | 2011-12-14 | 2014-10-22 | 皇家Kpn公司 | Virtual interface applications |
CN104158701A (en) * | 2014-08-18 | 2014-11-19 | 中国联合网络通信集团有限公司 | Gateway function testing method and device |
Non-Patent Citations (1)
Title |
---|
JEFF AHRENHOLZ ; CLAUDIU DANILOV ; THOMAS R. HENDERSON ; JAE H.: "CORE: A real-time network emulator", 《MILCOM 2008 - 2008 IEEE MILITARY COMMUNICATIONS CONFERENCE》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106603339A (en) * | 2016-12-23 | 2017-04-26 | 携程旅游网络技术(上海)有限公司 | Test system and method of simulating wide area network environment |
CN106603339B (en) * | 2016-12-23 | 2019-10-25 | 携程旅游网络技术(上海)有限公司 | Simulate the test macro and test method of wan environment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109802852B (en) | Method and system for constructing network simulation topology applied to network target range | |
Ahrenholz | Comparison of CORE network emulation platforms | |
CN104683190A (en) | Webmaster managed network simulation system and webmaster managed network simulation method | |
CN107592216A (en) | A kind of actual situation network integration emulation mode for supporting more scene experiment isolation | |
CN104065536A (en) | Ethernet switch FPGA verification method based on UVM verification method | |
CN104065534B (en) | Test macro, the test method of mobile terminal addition router blacklist | |
CN106254178B (en) | network test platform NFVNTP based on NFV and test method thereof | |
CN105959347A (en) | All-digital collaborative simulation system communication method based on P2P network | |
CN114422010B (en) | Protocol testing method of satellite communication simulation platform based on network virtualization | |
CN106878095B (en) | Network configuration method based on scenario distributed simulation | |
CN109039709A (en) | A kind of mobile wireless network emulation and experiment porch based on virtualization | |
CN106209423B (en) | Virtual desktop distribution method and device | |
CN108365988A (en) | Industrial control system emulation mode based on cloud platform | |
CN105471963A (en) | Mobile device management method and system based on cloud platform | |
CN107846304A (en) | A kind of automation engine of mixing cloud service architecture centralized management | |
CN208608998U (en) | A kind of equipment test verifying system based on FC network | |
Merz et al. | Design of a configurable wireless network testbed with live traffic | |
CN105515827A (en) | System and method for creating automated test environment | |
CN104579778A (en) | Simple implementation method for enterprise internal network virtualization | |
CN104917725A (en) | Method and system for trans-NAT communication between serial server and network device | |
CN101699792B (en) | Federal model-based network experimental method | |
CN104301150B (en) | A kind of method for configuring network equipment | |
CN105407000A (en) | Node network configuration method suitable for distributed system | |
CN101969442A (en) | Process running environment perception and migration based network analog framework implementation method | |
CN104852832A (en) | Method and system for testing performance of stun server in socket cluster |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160420 |