CN115086216B - Test method and system for multiple virtual terminals - Google Patents

Test method and system for multiple virtual terminals Download PDF

Info

Publication number
CN115086216B
CN115086216B CN202210682540.7A CN202210682540A CN115086216B CN 115086216 B CN115086216 B CN 115086216B CN 202210682540 A CN202210682540 A CN 202210682540A CN 115086216 B CN115086216 B CN 115086216B
Authority
CN
China
Prior art keywords
virtual
terminal
equipment
virtual terminal
protocol stack
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
CN202210682540.7A
Other languages
Chinese (zh)
Other versions
CN115086216A (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.)
Shanghai Huan Chong Communications Technology Co ltd
Original Assignee
Shanghai Huan Chong Communications Technology 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 Shanghai Huan Chong Communications Technology Co ltd filed Critical Shanghai Huan Chong Communications Technology Co ltd
Priority to CN202210682540.7A priority Critical patent/CN115086216B/en
Publication of CN115086216A publication Critical patent/CN115086216A/en
Application granted granted Critical
Publication of CN115086216B publication Critical patent/CN115086216B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Abstract

The invention relates to the technical field of network equipment testing, in particular to a testing method and a testing system of a multi-virtual terminal, comprising the following steps: s1: for a task to be tested, a terminal protocol stack is established on the simulation equipment, and then at least one virtual terminal corresponding to the task to be tested is established; s2: all virtual terminals are input into a terminal protocol stack; s3: and accessing the virtual terminal into a test network by adopting a terminal protocol stack, and then executing a task to be tested on the virtual terminal. The invention has the beneficial effects that: by creating a plurality of virtual terminals on the simulation equipment and establishing a terminal protocol stack, the plurality of virtual terminals can be simultaneously connected into the test network, so that the simulation of the multi-terminal situation in the actual scene to be tested is realized, and the problem that the actual scene to be tested is difficult to simulate in the laboratory environment in the prior art is avoided. And moreover, the virtual terminal is created on the simulation equipment to perform the test, so that the equipment cost of the whole test process is saved.

Description

Test method and system for multiple virtual terminals
Technical Field
The invention relates to the technical field of network equipment testing, in particular to a testing method and system of a multi-virtual terminal.
Background
The network equipment is a special hardware equipment for connecting various nodes such as servers, PCs, application terminals and the like to form an information communication network. The network equipment test refers to a test process of taking the network equipment as an object, and performing manual test or automatic test through corresponding test cases so as to further check whether the network equipment can realize a preset function. Currently, because of the complexity of the types and suppliers of network devices, testing the network devices for conditions encountered in the actual installed network environment is of great importance.
In the prior art, testing for network environments in the field has existed a relatively sophisticated solution. For example, some communication manufacturers generally collect actual data, devices, etc. for error scenes that may occur in a device environment of an external field, and then reproduce the data in a laboratory environment, so as to solve the problem. However, in the practical implementation process, the inventor finds that in some projects, such as high-performance gateway and dial-up charging, the number of involved terminal devices is large, the variety is large, the use scenario is complex, so that the traditional manual test mode based on a few devices is difficult to effectively simulate the actual network environment in the laboratory environment, further the problem cannot be completely reproduced, and the implementation cost is relatively high.
Disclosure of Invention
Aiming at the problems in the prior art, a test method and a test system for multiple virtual terminals are provided.
The specific technical scheme is as follows:
The test method of the multi-virtual terminal is suitable for the simulation equipment, and the simulation equipment is connected to a test network through gateway equipment;
The test method comprises the following steps:
Step S1: for a task to be tested, a terminal protocol stack is established on the simulation equipment, and then at least one virtual terminal corresponding to the task to be tested is established;
step S2: inputting all the virtual terminals into a terminal protocol stack;
Step S3: and accessing the virtual terminal into the test network by adopting the terminal protocol stack, and then executing the task to be tested on the virtual terminal.
Preferably, the step S2 includes:
step S21: adding each virtual terminal in a forwarding information table of the terminal protocol stack;
step S22: adopting a virtual device pair corresponding to the virtual terminal, pointing a first device of the virtual device pair to the forwarding information table, and pointing a second device of the virtual device pair to a virtual network bridge;
at least one virtual terminal is mapped to the virtual equipment pair through the forwarding information table, and the virtual network bridge is connected to a physical network port.
Preferably, the step S21 includes:
Step S211: adding the virtual terminal in the terminal protocol stack;
step S212: distributing a first IP address and a MAC address for the virtual terminal;
step S213: and inputting the first IP address and the MAC address into the forwarding information table.
Preferably, the step S22 includes:
Step S221: judging whether the virtual equipment pair which can be used for the virtual terminal access exists currently or not;
if yes, go to step S223;
If not, go to step S222;
Step S222: creating a group of virtual device pairs, and directing a second device of the virtual device pairs to the virtual bridge;
step S223: and establishing a mapping relation between the first device of the virtual device pair and the virtual terminal in the forwarding information table.
Preferably, the step S3 further includes:
and when the virtual terminal is accessed to the test network, an authentication server is adopted to authenticate the virtual terminal.
A test system of multiple virtual terminals is used for implementing the test method, and comprises the following steps:
The simulation device is used for creating a virtual terminal corresponding to a task to be tested for the task to be tested;
the simulation equipment is connected to the gateway equipment and is accessed to a test network through the gateway equipment;
The simulation equipment is provided with a terminal protocol stack module, and the virtual terminal is connected to the gateway equipment through the terminal protocol stack module so as to be connected to the test network;
the virtual terminal is used for executing the task to be tested in the test network.
Preferably, the terminal protocol stack includes:
A forwarding information storage sub-module, in which a forwarding information table corresponding to the virtual terminal is stored;
the simulation device further includes:
the virtual equipment creation sub-module generates a group of virtual equipment pairs according to the virtual terminal;
a device mapping sub-module that directs a first device of the virtual device pair to the forwarding information table and directs a second device of the virtual device pair to a virtual bridge;
at least one virtual terminal is mapped to the virtual device pair through the forwarding information table, and at least one virtual bridge is connected to the gateway device through a physical network port.
Preferably, the forwarding information storage submodule includes:
The equipment allocation sub-module allocates a group of first IP address and MAC address for each virtual terminal;
And the information input sub-module inputs the virtual terminal, the first IP address and the MAC address into the forwarding information table.
Preferably, the simulation device further comprises:
the judging sub-module acquires the existing virtual equipment pair and judges whether the virtual equipment pair can be used for accessing the virtual terminal or not;
When the existing virtual equipment pair cannot be used for accessing the virtual terminal, the judging submodule outputs a creating instruction to the virtual equipment creating submodule to form a new virtual equipment pair;
when the existing virtual device pair can be used for accessing the virtual terminal, the judging sub-module outputs a mapping instruction to the mapping sub-module so as to bind the virtual device pair and the virtual terminal.
Preferably, an authentication server is arranged in the test network, and the authentication server authenticates the virtual terminal accessed to the test network.
Preferably, the simulation device further comprises:
and the cleaning submodule is used for removing the virtual terminal from the terminal protocol stack after the task to be tested is executed, and stopping the virtual terminal.
The technical scheme has the following advantages or beneficial effects: by creating a plurality of virtual terminals on the simulation equipment and establishing a terminal protocol stack, the plurality of virtual terminals can be simultaneously connected into the test network, so that the simulation of the multi-terminal situation in the actual scene to be tested is realized, and the problem that the actual scene to be tested is difficult to simulate in the laboratory environment in the prior art is avoided. And moreover, the virtual terminal is created on the simulation equipment to perform the test, so that the equipment cost of the whole test process is saved.
Drawings
Embodiments of the present invention will now be described more fully with reference to the accompanying drawings. The drawings, however, are for illustration and description only and are not intended as a definition of the limits of the invention.
FIG. 1 is an overall schematic of an embodiment of the present invention;
FIG. 2 is a schematic diagram of a test network according to an embodiment of the present invention;
FIG. 3 is a schematic diagram showing the sub-steps of step S2 in the embodiment of the invention;
fig. 4 is a schematic diagram of an internal forwarding link of an analog device according to an embodiment of the present invention;
FIG. 5 is a schematic diagram showing the substep of step S21 in the embodiment of the invention;
FIG. 6 is a schematic diagram showing the substep of step S22 in the embodiment of the invention;
FIG. 7 is a schematic diagram of step S4 in an embodiment of the present invention;
FIG. 8 is a schematic diagram of a test system according to an embodiment of the invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that, without conflict, the embodiments of the present invention and features of the embodiments may be combined with each other.
The invention is further described below with reference to the drawings and specific examples, which are not intended to be limiting.
The invention comprises the following steps:
The test method of the multi-virtual terminal is suitable for the simulation equipment, and the simulation equipment is connected to the test network through the gateway equipment;
The testing method comprises the following steps:
Step S1: for a task to be tested, a terminal protocol stack is established on the simulation equipment, and then at least one virtual terminal corresponding to the task to be tested is established;
Step S2: all virtual terminals are input into a terminal protocol stack;
step S3: and accessing the virtual terminal into a test network by adopting a terminal protocol stack, and then executing a task to be tested on the virtual terminal.
Specifically, in the embodiment, at least one virtual terminal required in a task to be tested is created on simulation equipment based on a test scene corresponding to the task to be tested, and a terminal protocol stack on the simulation equipment is changed, so that a large number of virtual terminals can be accessed into a test network through the simulation equipment, and further simulation of a plurality of terminals in the test network is realized to execute the test task.
In practice, the method described above is embodied as a software embodiment deployed on an analog device. The network environment for the test is pre-built before the test begins. As shown in fig. 2, the network environment mainly includes an analog device A1 and a gateway device A2 for constructing a network. For implementing the test procedure, other test devices A3 may be connected to simulate external network interactions or to test actual network devices. The test device A3 may also be replaced by a virtual terminal in the implementation process, for example, a communication process of the test device A3 is simulated by a virtual terminal. Other devices may be further accessed for other functions, such as a file server A4 for downloading test programs, files, an authentication server A5 for performing verification, authentication steps, a wireless access point A6 for testing wireless device access, and so forth. It should be noted that some of the block diagrams shown in fig. 2 are functional entities, and do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices. A virtual terminal is a virtual terminal device created on a simulation device based on some existing container program, which can be used to simulate a hardware device in an actual network environment, as well as various programs executed on the hardware device.
As an alternative embodiment, before implementation, the IP of its physical network card needs to be set to null for the analog device, while the IP of the terminal protocol stack is allocated by the gateway device, which is not null.
In a preferred embodiment, as shown in fig. 3, step S2 includes:
Step S21: adding each virtual terminal in a forwarding information table of a terminal protocol stack;
step S22: adopting a virtual device pair corresponding to the virtual terminal, pointing a first device of the virtual device pair to a forwarding information table, and pointing a second device of the virtual device pair to a virtual network bridge;
At least one virtual terminal is mapped to the virtual equipment pair through the forwarding information table, and the virtual network bridge is connected to the physical network port.
Specifically, in this embodiment, by constructing a terminal protocol stack as shown in fig. 4, a virtual bridge B3 for accessing a virtual terminal is pre-constructed in the terminal protocol stack, and the virtual bridge B3 is bound to a physical network port B4 to perform an access process. Meanwhile, in order to support a larger number of virtual terminals inside the simulation device, in this solution, communication data of a plurality of virtual terminals B61, B62 and B63 are subjected to virtual routing forwarding in advance in the simulation device by adopting a form of a forwarding information table (FIB table), and then sent to a virtual device pair (veth pair), where a first device B1 of the virtual device pair points to the forwarding information table, that is, is used to map to the corresponding virtual terminals B61, B62 and B63 through the forwarding information table B5, and then forwarded to the virtual bridge B3 through an associated second device B2. Through the above process, the user can add the virtual terminal by only maintaining the forwarding information table when generating the virtual terminal, and automatically generate the virtual equipment pair which can be used for accessing the virtual network bridge B3, thereby realizing high expansibility of the simulation equipment, and facilitating adding a large number of virtual terminals B3 in the network test process to carry out the test process.
In an implementation process, the virtual device pair may be set to one or more virtual device pairs, which are used to carry communication data of at least one virtual terminal.
In a preferred embodiment, as shown in fig. 5, step S21 includes:
Step S211: adding a virtual terminal in a terminal protocol stack;
step S212: distributing a first IP address and a MAC address for the virtual terminal;
step S213: and recording the first IP address and the MAC address in the forwarding information table.
Specifically, in order to implement a process of forwarding routing data of a virtual terminal at a terminal protocol stack layer, in this embodiment, a first IP address and a MAC address are allocated to the virtual terminal in the terminal protocol stack, so as to implement a labeling process of the virtual terminal. The MAC address is used for marking hardware equipment simulated by the virtual terminal, and the first IP address is used for carrying out a virtual route forwarding process on the virtual terminal in a terminal protocol stack. By maintaining the first IP addresses and the MAC addresses of the plurality of virtual terminals in the forwarding information table so that the virtual terminals have different first IP addresses and MAC addresses, the terminal protocol stack can access a large number of virtual terminals to virtual device pairs.
In a preferred embodiment, as shown in fig. 6, step S22 includes:
step S221: judging whether a virtual device pair which can be used for virtual terminal access exists currently or not;
if yes, go to step S223;
If not, go to step S222;
Step S222: creating a group of virtual device pairs, and pointing a second device of the virtual device pairs to a virtual bridge;
step S223: and establishing a mapping relation between the first device of the virtual device pair and the virtual terminal in the forwarding information table.
In particular, in the prior art, there is a technical solution in which a virtual bridge is created to directly connect to a virtual machine program so that the virtual machine program accesses an external network. In the implementation process, the corresponding virtual network bridge needs to be created at the driving level of the system, so the creation process is relatively complicated, and the mapping relation is difficult to effectively manage when a large number of virtual terminals need to be created. In this embodiment, a manner of creating a virtual device pair (veth pair) is selected to connect a forwarding outlet of a virtual route and a virtual bridge, so that a simpler connection process is realized, the connection manner is easy to adjust and newly establish in a subsequent test process, and the problem that the direct connection through the bridge is difficult to maintain in the prior art is avoided.
In a preferred embodiment, step S3 comprises: the virtual terminal requests a second IP address to the gateway equipment, and the gateway equipment adopts an IP address allocation program to allocate the second IP address to the virtual terminal.
The IP address allocation program (dhclient) is modified to allocate a second IP address to the physical device and the virtual terminal, the second IP address being used for communication connection between the physical device and the virtual terminal in the test network.
In a preferred embodiment, step S3 further includes:
and when the virtual terminal is accessed to the test network, an authentication server is adopted to authenticate the virtual terminal.
Specifically, for the test scenario requiring authentication of the virtual terminal, in this embodiment, an authentication server is further set in the test network, so that the authentication process is performed when the virtual terminal accesses the test network. To achieve this, a TCP protocol needs to be supported in the virtual terminal, and the virtual terminal that transmits a TCP request cannot share IP and MAC addresses.
In a preferred embodiment, the test tasks of step S3 include: automatically executing tasks and expanding tasks;
In the automatic execution task, the virtual terminal executes a specific task, such as IP allocation, downloading, webpage access, ICMP request, sleep time and the like, through a pre-constructed script file or a script file sent by a file server;
In the extended tasks, the virtual terminal can be caused to execute other types of tasks in a programmable manner, such as concurrency quantity control, concurrency interval time adjustment and the like
In a preferred embodiment, as shown in fig. 7, after step S3, the method further includes:
step S4: and after the task to be tested is executed, removing the virtual terminal from the terminal protocol stack, and stopping the virtual terminal.
Specifically, after the execution of the current task to be tested is finished, resource recovery needs to be performed on the virtual terminal so as to create a new virtual terminal for the next task to be tested. In the implementation process, the above-mentioned process is embodied as follows: stopping dhclient processes for distributing the second IP address to the virtual terminal to recover the IP address, deleting the information of the virtual terminal in the forwarding information table, disconnecting the mapping between the second equipment of the virtual equipment pair and the forwarding information table, and finally stopping the virtual terminal to realize resource recovery.
A test system for multiple virtual terminals, configured to implement the above test method, as shown in fig. 8, includes:
The simulation device C1, the simulation device C1 creates a virtual terminal C2 corresponding to the task to be tested for the task to be tested;
The gateway equipment C3, the simulation equipment C1 is connected to the gateway equipment C3, and the simulation equipment C1 is connected to a test network through the gateway equipment C3;
the simulation equipment is provided with a terminal protocol stack module C4, and the virtual terminal C2 is connected to the gateway equipment C3 through the terminal protocol stack module C4 so as to be connected to the test network;
The virtual terminal C2 is configured to perform a task to be tested in the test network.
Specifically, in the embodiment, at least one virtual terminal C2 required for a task to be tested is created on the simulation device C1 based on a test scenario corresponding to the task to be tested, and a terminal protocol stack module C4 on the simulation device C1 is changed, so that a large number of virtual terminals C2 can be accessed into a test network through the simulation device C1, and further simulation of a plurality of terminals in the test network is realized to execute the test task.
In a preferred embodiment, the terminal protocol stack module C4 comprises:
a forwarding information storage sub-module C41, in which a forwarding information table corresponding to the virtual terminal is stored in the forwarding information storage sub-module C41;
the simulation apparatus further includes:
The virtual device creation sub-module C5, the virtual device creation sub-module C5 generates a group of virtual device pairs according to the virtual terminal C2;
A device mapping sub-module C6, the device mapping sub-module C6 directing a first device of the virtual device pair to the forwarding information table and directing a second device of the virtual device pair to the virtual bridge;
At least one virtual terminal C2 is mapped to the virtual device pair through the forwarding information table, and at least one virtual bridge is connected to the gateway device C3 through the physical portal.
Specifically, in this embodiment, by maintaining a forwarding information table in the terminal protocol stack module C4, connection mapping between a virtual device pair and the virtual terminal C2 is achieved, and a forwarding link of the virtual terminal C2-terminal protocol stack module C4-virtual device pair-virtual bridge-physical network port is constructed, so that the simulation device C1 can bear a large number of virtual terminals C2 to access the test network.
In a preferred embodiment, forwarding information storage sub-module C41 comprises:
A device allocation unit C411, the device allocation submodule C411 allocating a set of a first IP address and a MAC address for each virtual terminal C2;
and the information input unit C412, wherein the information input sub-module C412 inputs the virtual terminal C2, the first IP address and the MAC address into a forwarding information table.
Specifically, in order to implement a process of forwarding routing data for a virtual terminal at a terminal protocol stack layer, in this embodiment, a labeling process for the virtual terminal is implemented by allocating a first IP address and a MAC address to the virtual terminal C2 in the device allocation unit C411. The MAC address is used for marking hardware equipment simulated by the virtual terminal, and the first IP address is used for carrying out a virtual route forwarding process on the virtual terminal in a terminal protocol stack. By maintaining the first IP addresses and the MAC addresses of the plurality of virtual terminals C2 in the forwarding information table so that the virtual terminals have different first IP addresses and MAC addresses, the terminal protocol stack module C4 can perform access of virtual device pairs to a large number of virtual terminals.
In a preferred embodiment, the simulation device C1 further comprises:
the judging sub-module C7 is used for acquiring the existing virtual equipment pair and judging whether the virtual equipment pair can be used for accessing the virtual terminal or not;
When the existing virtual equipment pair cannot be used for accessing the virtual terminal, the judging submodule outputs a creating instruction to the virtual equipment creating submodule to form a new virtual equipment pair;
When the existing virtual device pair can be used for accessing the virtual terminal, the judging submodule outputs a mapping instruction to the mapping submodule so as to bind the virtual device pair with the virtual terminal.
In particular, in the prior art, there is a technical solution in which a virtual bridge is created to directly connect to a virtual machine program so that the virtual machine program accesses an external network. In the implementation process, the corresponding virtual network bridge needs to be created at the driving level of the system, so the creation process is relatively complicated, and the mapping relation is difficult to effectively manage when a large number of virtual terminals need to be created. In this embodiment, a manner of creating a virtual device pair (veth pair) is selected, and when a new virtual terminal needs to be carried, the current existing virtual device pair is judged by the judging sub-module C7, so that the virtual device creating sub-module C5 is controlled to create the new virtual device pair in time, a simpler connection process is realized, the connection manner is easy to adjust and newly create in a subsequent test process, and the problem that the direct connection through a network bridge is difficult to maintain in the prior art is avoided.
In a preferred embodiment, an authentication server is provided in the test network, the authentication server authenticating a virtual terminal accessing the test network.
In a preferred embodiment, the simulation device further comprises:
and the cleaning submodule C8 is used for removing the virtual terminal from the terminal protocol stack and stopping the virtual terminal after the task to be tested is executed.
The invention has the beneficial effects that: by creating a plurality of virtual terminals on the simulation equipment and establishing a terminal protocol stack, the plurality of virtual terminals can be simultaneously connected into the test network, so that the simulation of the multi-terminal situation in the actual scene to be tested is realized, and the problem that the actual scene to be tested is difficult to simulate in the laboratory environment in the prior art is avoided. And moreover, the virtual terminal is created on the simulation equipment to perform the test, so that the equipment cost of the whole test process is saved.
The foregoing is merely illustrative of the preferred embodiments of the present invention and is not intended to limit the embodiments and scope of the present invention, and it should be appreciated by those skilled in the art that equivalent substitutions and obvious variations may be made using the description and illustrations of the present invention, and are intended to be included in the scope of the present invention.

Claims (9)

1. The test method of the multi-virtual terminal is characterized by being suitable for simulation equipment, wherein the simulation equipment is connected to a test network through gateway equipment;
The test method comprises the following steps:
Step S1: for a task to be tested, a terminal protocol stack is established on the simulation equipment, and then at least one virtual terminal corresponding to the task to be tested is established;
step S2: recording all the virtual terminals into the terminal protocol stack;
step S3: the virtual terminal is accessed to the test network by adopting the terminal protocol stack, and then the task to be tested is executed on the virtual terminal;
The step S2 includes:
step S21: adding each virtual terminal in a forwarding information table of the terminal protocol stack;
step S22: adopting a virtual device pair corresponding to the virtual terminal, pointing a first device of the virtual device pair to the forwarding information table, and pointing a second device of the virtual device pair to a virtual network bridge;
at least one virtual terminal is mapped to the virtual equipment pair through the forwarding information table, and the virtual network bridge is connected to a physical network port.
2. The test method according to claim 1, wherein the step S21 includes:
Step S211: adding the virtual terminal in the terminal protocol stack;
step S212: distributing a first IP address and a MAC address for the virtual terminal;
step S213: and inputting the first IP address and the MAC address into the forwarding information table.
3. The test method according to claim 1, wherein the step S22 comprises:
step S221: judging whether the virtual equipment pair for the virtual terminal access exists currently or not;
if yes, go to step S223;
If not, go to step S222;
Step S222: creating a group of virtual device pairs, and directing a second device of the virtual device pairs to the virtual bridge;
step S223: and establishing a mapping relation between the first device of the virtual device pair and the virtual terminal in the forwarding information table.
4. The test method according to claim 1, further comprising, after step S3:
step S4: and after the task to be tested is executed, removing the virtual terminal from the terminal protocol stack, and stopping the virtual terminal.
5. A multi-virtual terminal test system for implementing the test method according to any one of claims 1-4, comprising:
The simulation device is used for creating a virtual terminal corresponding to a task to be tested for the task to be tested;
the simulation equipment is connected to the gateway equipment and is accessed to a test network through the gateway equipment;
The simulation equipment is provided with a terminal protocol stack module, and the virtual terminal is connected to the gateway equipment through the terminal protocol stack module so as to be connected to the test network;
the virtual terminal is used for executing the task to be tested in the test network.
6. The test system of claim 5, wherein the terminal protocol stack comprises:
A forwarding information storage sub-module, in which a forwarding information table corresponding to the virtual terminal is stored;
the simulation device further includes:
the virtual equipment creation sub-module generates a group of virtual equipment pairs according to the virtual terminal;
a device mapping sub-module that directs a first device of the virtual device pair to the forwarding information table and directs a second device of the virtual device pair to a virtual bridge;
at least one virtual terminal is mapped to the virtual device pair through the forwarding information table, and at least one virtual bridge is connected to the gateway device through a physical network port.
7. The test system of claim 6, wherein the forwarding information storage submodule comprises:
A device allocation unit that allocates a set of a first IP address and a MAC address for each of the virtual terminals;
The information input unit inputs the virtual terminal, the first IP address and the MAC address into the forwarding information table.
8. The test system of claim 6, wherein the simulation device further comprises:
the judging sub-module acquires the existing virtual equipment pair and judges whether the virtual equipment pair can be used for accessing the virtual terminal or not;
When the existing virtual equipment pair cannot be used for accessing the virtual terminal, the judging submodule outputs a creating instruction to the virtual equipment creating submodule to form a new virtual equipment pair;
when the existing virtual device pair can be used for accessing the virtual terminal, the judging sub-module outputs a mapping instruction to the mapping sub-module so as to bind the virtual device pair and the virtual terminal.
9. The test system of claim 5, wherein the simulation device further comprises:
and the cleaning submodule is used for removing the virtual terminal from the terminal protocol stack after the task to be tested is executed, and stopping the virtual terminal.
CN202210682540.7A 2022-06-16 2022-06-16 Test method and system for multiple virtual terminals Active CN115086216B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210682540.7A CN115086216B (en) 2022-06-16 2022-06-16 Test method and system for multiple virtual terminals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210682540.7A CN115086216B (en) 2022-06-16 2022-06-16 Test method and system for multiple virtual terminals

Publications (2)

Publication Number Publication Date
CN115086216A CN115086216A (en) 2022-09-20
CN115086216B true CN115086216B (en) 2024-05-03

Family

ID=83252487

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210682540.7A Active CN115086216B (en) 2022-06-16 2022-06-16 Test method and system for multiple virtual terminals

Country Status (1)

Country Link
CN (1) CN115086216B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656637A (en) * 2009-09-11 2010-02-24 中国科学院计算技术研究所 Virtual trunk measuring device and method for network protocol
US7702764B1 (en) * 2004-01-30 2010-04-20 Cisco Technology, Inc. System and method for testing network protocols
CN102420891A (en) * 2011-09-23 2012-04-18 展讯通信(上海)有限公司 Mobile terminal and test method, equipment and system thereof
CN102421112A (en) * 2011-11-18 2012-04-18 展讯通信(上海)有限公司 Testing method of mobile terminal, mobile terminal simulator, testing equipment and testing system
US9007922B1 (en) * 2013-05-23 2015-04-14 Juniper Networks, Inc. Systems and methods for testing and analyzing controller-based networks
CN105049435A (en) * 2015-07-21 2015-11-11 重庆邮电大学 Cloud testing framework oriented to protocol conformance of heterogeneous wireless sensor network
CN109005080A (en) * 2018-06-25 2018-12-14 烽火通信科技股份有限公司 A kind of distributed packet forwarding implementation method realizes system and automated testing method
KR20190054229A (en) * 2017-11-13 2019-05-22 쿨클라우드(주) Machine learning based network automation system method
CN110838954A (en) * 2019-11-07 2020-02-25 中国人民解放军国防科技大学 Lightweight large-scale autonomous network protocol function test method
CN111343654A (en) * 2020-02-29 2020-06-26 中国电子科技集团公司第五十四研究所 Protocol stack integrated self-testing system of mobile communication system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10356597B2 (en) * 2016-05-03 2019-07-16 Verizon Patent And Licensing Inc. Testing and validation of user equipment for a cellular network

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7702764B1 (en) * 2004-01-30 2010-04-20 Cisco Technology, Inc. System and method for testing network protocols
CN101656637A (en) * 2009-09-11 2010-02-24 中国科学院计算技术研究所 Virtual trunk measuring device and method for network protocol
CN102420891A (en) * 2011-09-23 2012-04-18 展讯通信(上海)有限公司 Mobile terminal and test method, equipment and system thereof
CN102421112A (en) * 2011-11-18 2012-04-18 展讯通信(上海)有限公司 Testing method of mobile terminal, mobile terminal simulator, testing equipment and testing system
US9007922B1 (en) * 2013-05-23 2015-04-14 Juniper Networks, Inc. Systems and methods for testing and analyzing controller-based networks
CN105049435A (en) * 2015-07-21 2015-11-11 重庆邮电大学 Cloud testing framework oriented to protocol conformance of heterogeneous wireless sensor network
KR20190054229A (en) * 2017-11-13 2019-05-22 쿨클라우드(주) Machine learning based network automation system method
CN109005080A (en) * 2018-06-25 2018-12-14 烽火通信科技股份有限公司 A kind of distributed packet forwarding implementation method realizes system and automated testing method
CN110838954A (en) * 2019-11-07 2020-02-25 中国人民解放军国防科技大学 Lightweight large-scale autonomous network protocol function test method
CN111343654A (en) * 2020-02-29 2020-06-26 中国电子科技集团公司第五十四研究所 Protocol stack integrated self-testing system of mobile communication system

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Large-scale Hybrid Testbed for Cognitive Radio Networks by Real-and-Virtual Execution;Masahiro Kuroda;《2007 3rd International Conference on Testbeds and Research Infrastructure for the Development of Networks and Communities》;全文 *
基于虚拟TCP/IP协议栈的仿真反垃圾邮件产品测试系统;李毅;顾健;顾铁军;;信息网络安全(10);全文 *
多功能MPLS网络测试仪的设计和实现;赵小鸥;;教育信息化;20050915(17);全文 *
网络协议栈软件的自动化测试研究与实现;刘渊, 范晓岚, 王开云, 姜建国;计算机工程与应用;20060301(15);全文 *

Also Published As

Publication number Publication date
CN115086216A (en) 2022-09-20

Similar Documents

Publication Publication Date Title
US9910765B2 (en) Providing testing environments for software applications using virtualization and a native hardware layer
CN106301829B (en) A kind of method and apparatus of network service dilatation
US7334162B1 (en) Dynamic distribution of test execution
Miyachi et al. StarBED and SpringOS: Large-scale general purpose network testbed and supporting software
US8726298B1 (en) Cloud-based instrument driver system
US9146826B2 (en) Method and apparatus for scaling network simulation
CN103475682B (en) File transfer method and file transfer equipment
CN110995561B (en) Virtual network data communication interaction method and system based on container technology
CN101924693A (en) Be used for method and system in migrating processes between virtual machines
CN107070752B (en) Testing method and testing system for long connection capacity
CN110716787A (en) Container address setting method, apparatus, and computer-readable storage medium
CN112910685B (en) Method and device for realizing unified management of container network
CN116204933B (en) Method for isolating PCIe network card based on jailhouse under ARM64 architecture
CN112187958A (en) Method and device for registering, discovering and forwarding microservice
CN106875765B (en) Electronic classroom implementation method and device based on VDI
CN113268254A (en) Cluster system installation method and device, electronic equipment and storage medium
CN115086216B (en) Test method and system for multiple virtual terminals
CN108289047A (en) A kind of RMT test methods and device
JP6591045B2 (en) Method and network service apparatus for migrating network service
CN116264538A (en) Data processing method, device, equipment and computer storage medium
CN112449024B (en) Intranet penetration method, equipment and storage medium of NAT (network Address translation) simulation gateway
CN104683178B (en) A kind of test method and system of the more DUT of identical IP address
CN104796304B (en) Cloud platform test method and system
Freire et al. Automated deployment and customization of routing overlays on planetlab
US10768985B1 (en) Active directory organizational unit-based deployment of computing systems

Legal Events

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