CN114697246A - Virtual machine test environment construction method - Google Patents

Virtual machine test environment construction method Download PDF

Info

Publication number
CN114697246A
CN114697246A CN202210166886.1A CN202210166886A CN114697246A CN 114697246 A CN114697246 A CN 114697246A CN 202210166886 A CN202210166886 A CN 202210166886A CN 114697246 A CN114697246 A CN 114697246A
Authority
CN
China
Prior art keywords
virtual machine
virtual
simulator
network
broadcast domain
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
Application number
CN202210166886.1A
Other languages
Chinese (zh)
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.)
Unittec Co Ltd
Original Assignee
Unittec 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 Unittec Co Ltd filed Critical Unittec Co Ltd
Priority to CN202210166886.1A priority Critical patent/CN114697246A/en
Publication of CN114697246A publication Critical patent/CN114697246A/en
Pending legal-status Critical Current

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method for building a virtual machine test environment, which comprises the following steps: creating a virtual machine A, a virtual machine B, a virtual machine C, a virtual machine D and a virtual machine E through a virtual machine tool; the virtual machine E sets a plurality of broadcast domains through a virtual machine tool; and the virtual machine A, the virtual machine B, the virtual machine C and the virtual machine D respectively perform information transmission with the virtual machine E in corresponding broadcast domains. The virtual machine E is used for data exchange in each broadcast domain, the virtual machine E configures different virtual network card information through a virtual machine editor, and the virtual network card is used as a VLAN port of the switch. The invention has the beneficial effects that: the virtual machine is used for replacing a real exchanger, so that the functions of exchange and routing are realized, and the problem of communication among equipment is solved; the related equipment of each subsystem under the signal system is also replaced by a virtual machine, and data intercommunication and data processing between the subsystems are realized through a virtual three-layer switch.

Description

Virtual machine test environment construction method
Technical Field
The invention relates to the technical field of train signal system test platform construction, in particular to a virtual machine test environment construction method.
Background
The signal system test environment is a communication-based train automatic control system, and is also a test environment for each subsystem, namely a vehicle-mounted controller CC (including a vehicle-mounted ATP (train overspeed protection system) and a vehicle-mounted ATO (automatic train operation (driving) system)), a zone controller ZC, an interlocking system CBI, an automatic train monitoring system ATS and a data communication system DCS among the subsystems. In the existing laboratory test environment, physical network connection is usually adopted, a three-layer switch accesses a signal device (CC (vehicle-mounted signal system), ZC (zone control center), CBI (interlocking system), ATS (automatic train monitoring system)) of different network segments through a route, and a two-layer switch accesses a device (device inside a subsystem) of the same network segment to realize data communication of the devices, so that all devices of subsystems ATC (automatic train control system), ATP (automatic train protection subsystem), and ATS (automatic train monitoring system) under the signal system can perform data intercommunication and data processing.
The existing real physical equipment environment of the laboratory has the defects that a large amount of real physical equipment of each subsystem is needed, and a large amount of network cables and switches are needed for physical communication among the equipment; the operation and maintenance costs are too high. Besides the high hardware cost, the real physical equipment environment in the laboratory also has the problems of large laboratory space occupation, more cable and network cables, high power consumption, high labor cost and the like, so that the operation and maintenance cost is greatly improved. Second, manageability is low. The hardware devices in the real physical device environment of the laboratory are numerous and difficult to manage effectively, and the deployment of the devices and the applications is heavy, so that the difficulty in replacing project systems and the applications is increased. And then, the utilization rate of the equipment resources is low. In the process of building a laboratory environment, test requirements of a plurality of projects, including future service development and sudden requirements, are usually considered, so that a certain proportion of margin is left when hardware devices such as device memory and storage, networks and the like are selected to meet the performance and capacity bearing requirements. However, in practical situations, after the hardware resources are on-line, the load of the system in a certain time is not too large, so that the waste of the highly configured hardware resources is serious.
Disclosure of Invention
The invention aims to provide a virtual machine test environment building method, which is used for building a single machine distributed DCS network laboratory test environment under a VMware work virtual environment, does not need to use real physical equipment, an exchanger network cable and the like, replaces a real exchanger with a virtual machine, realizes the functions of exchange and routing and solves the problem of communication among equipment; the related equipment of each subsystem under the signal system is also replaced by a virtual machine, and data intercommunication and data processing between the subsystems are realized through a virtual three-layer switch.
In order to achieve the technical purpose, the invention provides a technical scheme that,
a virtual machine test environment building method comprises the following steps:
creating a virtual machine A, a virtual machine B, a virtual machine C, a virtual machine D and a virtual machine E through a virtual machine tool;
the virtual machine E sets a plurality of broadcast domains through a virtual machine tool;
and the virtual machine A, the virtual machine B, the virtual machine C and the virtual machine D respectively perform information transmission with the virtual machine E in corresponding broadcast domains.
In the scheme, the virtual machine E replaces a three-layer real switch to serve as a routing function. The problems of economy and maintenance cost such as disordered purchase and installation of three-layer switches, network cable connection, large occupied laboratory site space and the like are solved. Network addresses of a plurality of different network segments in a signal system are configured in a VMware work virtual machine software tool software network editor; newly building a virtual machine E, and setting each network card of the virtual machine E into a host mode corresponding to a network segment (broadcast domain); the network card IP of the virtual machine is set to be set on a three-layer switch, namely, each virtual network card such as eth0, eth1 and the like is equivalent to a switch VLAN and is set to be set as a gateway on the switch. And the other four virtual machines A/B/C/D replace real signal hardware equipment. The virtual machine can flexibly configure the performances of the memory, storage, network and the like of the equipment, solve the problem of low utilization rate of equipment resources, and simultaneously solve the problems of purchase and installation of a plurality of host equipment, disordered network cable connection, occupation of a laboratory site, overhigh operation and maintenance cost and the like; the implementation mode is as follows: newly building four virtual machines: the virtual machine realizes the ATS/CBI/SIM simulation function; the virtual machine B realizes the CC/WB/tod simulation function; the virtual machine C realizes a ZC simulation function; and the virtual machine D realizes the FTM simulation function. And setting each network card of the virtual machine into a host mode corresponding to the network segment, setting the network card and the route in the virtual machine according to the IP plan of each subsystem of the signal, and realizing the mutual communication between the virtual machines A \ B \ C \ D through the virtual machine E.
Preferably, the virtual machine E is used for data exchange in each broadcast domain, the virtual machine E configures different pieces of virtual network card information through a virtual machine editor, and the virtual network card is used as a VLAN port of the switch.
Preferably, the broadcast domain includes a broadcast domain a, a broadcast domain B, a broadcast domain C, and a broadcast domain D, the information of the virtual machine a is broadcast in the broadcast domain a, the information of the virtual machine B is broadcast in the broadcast domain B, the information of the virtual machine C is broadcast in the broadcast domain C, and the information of the virtual machine D is broadcast in the broadcast domain D.
Preferably, the virtual network card comprises an eth0 port, an eth1 port, an eth2 port and an eth3 port; the virtual machine A is in communication connection with an eth0 network port, the virtual machine B is in communication connection with an eth1 network port, the virtual machine C is in communication connection with an eth2 network port, and the virtual machine D is in communication connection with an eth3 network port.
Preferably, an ATS/CBI/SIM (automatic transfer system/CBI/SIM) emulator environment is built in the virtual machine A, a CC/WB/tod emulator environment is built in the virtual machine B, a ZC emulator environment is built in the virtual machine C, and an FTM emulator environment is built in the virtual machine D; and the VLAN port of the virtual machine E randomly distributes the subnet addresses of the simulation machines.
Preferably, the virtual machine A is configured with ATS-IP, CBI-IP and FTM-IP and is communicated with the CC simulator and the ZC simulator by configuring a route; the virtual machine B is provided with a vehicle-mounted IP, a ZC network segment IP and an SIM-IP; the method comprises the steps of communicating with a ZC simulator and a CBI simulator through a configuration route; configuring a ZC-IP on the virtual machine C; the method comprises the steps of communicating with a CC simulator and a CBI simulator through a configuration route; and the virtual machine D is provided with an FTM-IP and a ZC network segment IP and is communicated with the ZC simulator through a configuration route.
The invention has the beneficial effects that: the VMware Workstation virtual machine is used for replacing a real switch, signal equipment and a laboratory to realize clouding, and compared with a test environment built by real equipment, the effect is equivalent. The following test functions can be realized, namely, the interface debugging and the test of the signal subsystem; network debugging and testing of a data communication system DCS and a subsystem network; the operation scene (train operation in various driving modes of the on-train schedule) is tested, and the specific network test class, the dual-machine hot standby class, the interface class, the report class and the like are realized. The social benefit effect is very remarkable, and the social benefit effect is summarized as the following points:
1. the cost is saved:
the equipment cost is saved: the original 2 three-layer switches and a plurality of terminal devices can realize the same function by using 1 real machine; too much laboratory space is not required, and projects such as underground wiring and the like are not required; a real network card and a real network cable are not needed; convenient use of many projects: the project can be successfully replaced only by configuring the IP script of the project and starting up the script upgrading software after starting up; the system is not restricted by environmental places, and all departments or individuals can be built and used;
2. the manageability is improved:
dynamic resource allocation: due to the adoption of the VMware cloud computing technology, the system can dynamically allocate resources (for example, the allocation of resources such as a CPU (central processing unit), a memory, a disk space and a network can be dynamically increased on the basis of typical resource allocation), and improve the average utilization rate of each server; convenient high-efficient of equipment environment management: except that hardware equipment is simple, conveniently carry out effective management, still reduced hidden cost and management such as with the room, power consumptive, air conditioner and manpower.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail with reference to the following embodiments, it should be understood that the specific embodiment described herein is only a preferred embodiment of the present invention, and is only used for explaining the present invention, and does not limit the scope of the present invention, and all other embodiments obtained by a person of ordinary skill in the art without making creative efforts shall fall within the scope of the present invention.
Example (b): a virtual machine test environment building method comprises the following steps:
creating a virtual machine A, a virtual machine B, a virtual machine C, a virtual machine D and a virtual machine E through a virtual machine tool;
the virtual machine E sets a plurality of broadcast domains through a virtual machine tool;
and the virtual machine A, the virtual machine B, the virtual machine C and the virtual machine D respectively perform information transmission with the virtual machine E in corresponding broadcast domains.
In this embodiment, the virtual machine E replaces a three-layer real switch to serve as a routing function. The problems of economy and maintenance cost such as disordered purchase and installation of three-layer switches, network cable connection, large occupied laboratory site space and the like are solved. Network addresses of a plurality of different network segments in a signal system are configured in a VMware work virtual machine software tool software network editor; newly building a virtual machine E, and setting each network card of the virtual machine E into a host mode corresponding to a network segment (broadcast domain); the network card IP of the virtual machine is set to be set on a three-layer switch, namely, the virtual network cards such as eth0, eth1 and the like are equivalent to a switch VLAN and are set to be set as a gateway on the switch. And the other four virtual machines A/B/C/D replace real signal hardware equipment. The virtual machine can flexibly configure the performances of the memory, storage, network and the like of the equipment, solve the problem of low utilization rate of equipment resources, and simultaneously solve the problems of purchase and installation of a plurality of host equipment, disordered network cable connection, occupation of a laboratory site, overhigh operation and maintenance cost and the like; the implementation mode is as follows: newly building four virtual machines: the virtual machine realizes the ATS/CBI/SIM simulation function; the virtual machine B realizes the CC/WB/tod simulation function; the virtual machine C realizes a ZC simulation function; and the virtual machine D realizes the FTM simulation function. And setting each network card of the virtual machine into a host mode corresponding to the network segment, setting the network card and the route in the virtual machine according to the IP plan of each subsystem of the signal, and realizing the mutual communication between the virtual machines A \ B \ C \ D through the virtual machine E.
The virtual machine E is used for data exchange in each broadcast domain, the virtual machine E configures different virtual network card information through a virtual machine editor, and the virtual network card is used as a VLAN port of the switch.
The broadcast domain comprises a broadcast domain a, a broadcast domain B, a broadcast domain C and a broadcast domain D, the information of the virtual machine A is transmitted in the broadcast domain a, the information of the virtual machine B is transmitted in the broadcast domain B, the information of the virtual machine C is transmitted in the broadcast domain C, and the information of the virtual machine D is transmitted in the broadcast domain D.
The virtual network card comprises an eth0 network port, an eth1 network port, an eth2 network port and an eth3 network port; the virtual machine A is in communication connection with an eth0 network port, the virtual machine B is in communication connection with an eth1 network port, the virtual machine C is in communication connection with an eth2 network port, and the virtual machine D is in communication connection with an eth3 network port.
An ATS/CBI/SIM (automatic transfer system/CBI/SIM) emulator environment is built in a virtual machine A, a CC/WB/tod emulator environment is built in a virtual machine B, a ZC emulator environment is built in a virtual machine C, and an FTM emulator environment is built in a virtual machine D; and the VLAN port of the virtual machine E randomly distributes the subnet address of each simulation machine.
Specifically, a virtual machine E is built in the VMware Workstaion virtual machine to serve as a three-layer switch; configuring a plurality of different network segments on the VMware: opening a virtual machine editor in a VMware Workstaion virtual machine, adding a network in a host-only mode, connecting a host virtual adapter to a network option hook, and setting subnet addresses as network addresses of signal subsystem equipment of different network segments, namely setting the subnet address of VMnet1 as an ATS/CBI/SIM simulated network address 10.2.0.0; the subnet address of the VMnet2 is set to the ZC-emulated network address 10.0.6.0; the subnet address of VMnet8 is set to CBI/emulated network address 10.0.8.0; the subnet address of VMnet11 is set to ATS emulated network address 10.0.4.0; the subnet address of VMnet12 is set to SIM emulated network address 192.168.200.0.
The virtual machine A is configured with ATS-IP, CBI-IP and FTM-IP and is communicated with the CC simulator and the ZC simulator by configuring a route; the virtual machine B is provided with a vehicle-mounted IP, a ZC network segment IP and an SIM-IP; the router is configured to communicate with a ZC simulator and a CBI simulator; configuring a ZC-IP on the virtual machine C; the communication with the CC simulator and the CBI simulator is carried out through the configuration route; and the virtual machine D is provided with an FTM-IP and a ZC network segment IP and is communicated with the ZC simulator through a configuration route.
The above-mentioned embodiments are preferred embodiments of the method for building a virtual machine test environment according to the present invention, and the scope of the present invention is not limited thereto, and all equivalent changes in shape and structure according to the present invention are within the protection scope of the present invention.

Claims (6)

1. A virtual machine test environment building method is characterized in that: the method comprises the following steps:
creating a virtual machine A, a virtual machine B, a virtual machine C, a virtual machine D and a virtual machine E through a virtual machine tool;
the virtual machine E sets a plurality of broadcast domains through a virtual machine tool;
and the virtual machine A, the virtual machine B, the virtual machine C and the virtual machine D respectively perform information transmission with the virtual machine E in corresponding broadcast domains.
2. The virtual machine test environment construction method according to claim 1, characterized in that:
the virtual machine E is used for data exchange in each broadcast domain, the virtual machine E configures different virtual network card information through a virtual machine editor, and the virtual network card is used as a VLAN port of the switch.
3. The virtual machine test environment construction method according to claim 1, characterized in that:
the broadcast domain comprises a broadcast domain a, a broadcast domain B, a broadcast domain C and a broadcast domain D, the information of the virtual machine A is transmitted in the broadcast domain a, the information of the virtual machine B is transmitted in the broadcast domain B, the information of the virtual machine C is transmitted in the broadcast domain C, and the information of the virtual machine D is transmitted in the broadcast domain D.
4. The virtual machine test environment construction method according to claim 2, characterized in that:
the virtual network card comprises an eth0 network port, an eth1 network port, an eth2 network port and an eth3 network port; the virtual machine A is in communication connection with an eth0 network port, the virtual machine B is in communication connection with an eth1 network port, the virtual machine C is in communication connection with an eth2 network port, and the virtual machine D is in communication connection with an eth3 network port.
5. The virtual machine test environment construction method according to claim 2, 3 or 4, characterized by comprising the following steps:
the virtual machine A is built with an ATS/CBI/SIM (advanced telecom/Unix), the virtual machine B is built with a CC/WB/tod simulator environment, the virtual machine C is built with a ZC simulator environment, and the virtual machine D is built with an FTM simulator environment; and the VLAN port of the virtual machine E randomly distributes the subnet address of each simulation machine.
6. The virtual machine test environment building method according to claim 5, wherein:
the virtual machine A is configured with ATS-IP, CBI-IP and FTM-IP and is communicated with the CC simulator and the ZC simulator by configuring a route; the virtual machine B is provided with a vehicle-mounted IP, a ZC network segment IP and an SIM-IP; the router is configured to communicate with a ZC simulator and a CBI simulator; configuring a ZC-IP on the virtual machine C; the communication with the CC simulator and the CBI simulator is carried out through the configuration route; and the virtual machine D is provided with an FTM-IP and a ZC network segment IP and is communicated with the ZC simulator through a configuration route.
CN202210166886.1A 2022-02-23 2022-02-23 Virtual machine test environment construction method Pending CN114697246A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210166886.1A CN114697246A (en) 2022-02-23 2022-02-23 Virtual machine test environment construction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210166886.1A CN114697246A (en) 2022-02-23 2022-02-23 Virtual machine test environment construction method

Publications (1)

Publication Number Publication Date
CN114697246A true CN114697246A (en) 2022-07-01

Family

ID=82137950

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210166886.1A Pending CN114697246A (en) 2022-02-23 2022-02-23 Virtual machine test environment construction method

Country Status (1)

Country Link
CN (1) CN114697246A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013027923A1 (en) * 2011-08-24 2013-02-28 (주)케이티 System for setting up a virtual machine policy, method for setting up a virtual machine policy, and method for providing a virtual machine policy in a cloud computing server system
CN102999041A (en) * 2012-11-21 2013-03-27 上海富欣智能交通控制有限公司 Environmental simulator suitable for automatic train control (ATC)
CN106484623A (en) * 2016-10-21 2017-03-08 郑州云海信息技术有限公司 A kind of method of software test, apparatus and system
WO2017173952A1 (en) * 2016-04-08 2017-10-12 中兴通讯股份有限公司 Method, device, and system for centralizing management of virtual machines and implementing communications between virtual machines
CN108965094A (en) * 2018-08-23 2018-12-07 郑州云海信息技术有限公司 A kind of virtual machine network connection method and device
CN110928197A (en) * 2019-11-28 2020-03-27 西门子交通技术(北京)有限公司 Simulation test method and system for automatic control of train
CN112286832A (en) * 2020-12-30 2021-01-29 卡斯柯信号(北京)有限公司 Column control center simulation test environment virtualization method
CN112684715A (en) * 2019-10-18 2021-04-20 中车株洲电力机车研究所有限公司 Full-automatic operation semi-physical simulation test system for subway

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013027923A1 (en) * 2011-08-24 2013-02-28 (주)케이티 System for setting up a virtual machine policy, method for setting up a virtual machine policy, and method for providing a virtual machine policy in a cloud computing server system
CN102999041A (en) * 2012-11-21 2013-03-27 上海富欣智能交通控制有限公司 Environmental simulator suitable for automatic train control (ATC)
WO2017173952A1 (en) * 2016-04-08 2017-10-12 中兴通讯股份有限公司 Method, device, and system for centralizing management of virtual machines and implementing communications between virtual machines
CN106484623A (en) * 2016-10-21 2017-03-08 郑州云海信息技术有限公司 A kind of method of software test, apparatus and system
CN108965094A (en) * 2018-08-23 2018-12-07 郑州云海信息技术有限公司 A kind of virtual machine network connection method and device
CN112684715A (en) * 2019-10-18 2021-04-20 中车株洲电力机车研究所有限公司 Full-automatic operation semi-physical simulation test system for subway
CN110928197A (en) * 2019-11-28 2020-03-27 西门子交通技术(北京)有限公司 Simulation test method and system for automatic control of train
CN112286832A (en) * 2020-12-30 2021-01-29 卡斯柯信号(北京)有限公司 Column control center simulation test environment virtualization method

Similar Documents

Publication Publication Date Title
CN110301104B (en) Optical line terminal OLT equipment virtualization method and related equipment
CN102316043B (en) Port virtualization method, switch and communication system
CN105099789A (en) Network element uploading method and equipment
CN102946366B (en) In-band management method and system
CN110008005B (en) Cloud platform-based power grid communication resource virtual machine migration system and method
CN102137007A (en) Method and system for generating network topology as well as coordinator
CN105068445A (en) Multifunctional signal route adaption matrix
CN110224917B (en) Data transmission method, device and system and server
CN111711536A (en) Method for constructing firewall test environment under cloud architecture
CN115348126A (en) Network target range entity equipment access method, device and implementation system
CN103684924A (en) Test system and test method
CN107733717B (en) Network configuration method for mobile operation and maintenance of cloud platform
US7558565B2 (en) Methods and apparatus for wireless network load generator clustering
CN202261347U (en) TCN-based train network simulation experimental system
CN114697246A (en) Virtual machine test environment construction method
CN116346840B (en) Data analysis management system and method under multi-server scene
CN103023940A (en) Method and device for transmitting data between PC (Personal Computer) and mobile terminal
CN109889421B (en) Router management method, device, terminal, system and storage medium
CN115996204B (en) Out-of-band Ethernet interface switching device, multi-node server system and server equipment
CN1609819B (en) Test method for computer external equipment interface
CN112532506B (en) Hybrid networking method, device, server and computer-readable storage medium
CN104104594A (en) Methods of transmitting and receiving protocol message of VSU, devices and system
CN103856459B (en) Data transmission method and system in multi-nuclear power project instrument control design verification
CN113259204A (en) Train Ethernet general land test system and test method thereof
CN111741383A (en) Automatic virtual system function verification platform and verification method

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