CN108768783B - Method and system for circularly testing network connectivity - Google Patents

Method and system for circularly testing network connectivity Download PDF

Info

Publication number
CN108768783B
CN108768783B CN201810589332.6A CN201810589332A CN108768783B CN 108768783 B CN108768783 B CN 108768783B CN 201810589332 A CN201810589332 A CN 201810589332A CN 108768783 B CN108768783 B CN 108768783B
Authority
CN
China
Prior art keywords
host
module
tested
auxiliary
setting
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
CN201810589332.6A
Other languages
Chinese (zh)
Other versions
CN108768783A (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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810589332.6A priority Critical patent/CN108768783B/en
Publication of CN108768783A publication Critical patent/CN108768783A/en
Application granted granted Critical
Publication of CN108768783B publication Critical patent/CN108768783B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention provides a method and a system for circularly testing network connectivity, wherein the method comprises the following steps: 1. respectively installing operating systems on a host to be tested and an auxiliary host; 2. setting a host to be tested and an auxiliary host in the same network segment; 3. a sharing module is arranged in the auxiliary host, and a hot start module is arranged in the sharing module; 4. modifying the original restart operation of the host to be tested, so that the restart operation accesses the shared module of the auxiliary host, and executing the hot start module; 5. putting the modified restart operation into the start of the host to be tested; 6. and starting the test of the host to be tested, and restarting. The system comprises a host to be tested, an auxiliary host, an operating system installation module, a network setting module, a hot start module, a sharing setting module, a restart modification module, a start setting module and a test module. The invention tests the connectivity of the network while testing the stability of the server, and improves the testing efficiency.

Description

Method and system for circularly testing network connectivity
Technical Field
The invention belongs to the field of server testing, and particularly relates to a method and a system for circularly testing network connectivity.
Background
The network connectivity is an important test content of the server, and the performance of the server is directly influenced by the network connectivity; the stability of the server is also an important index of the server, the performance of the server is unstable, and even if the configuration is higher, the technology is advanced, and the normal work of the network cannot be guaranteed; usually, the two tests of the server are performed separately, and the efficiency is low.
This is a disadvantage of the prior art, and therefore, it is very necessary to provide a method and a system for loop testing network connectivity to overcome the above-mentioned drawbacks of the prior art.
Disclosure of Invention
The invention aims to provide a method and a system for circularly testing network connectivity aiming at the defects that the stability and the network connectivity of the server are separately tested and the efficiency is low, so as to solve the technical problems.
In order to achieve the purpose, the invention provides the following technical scheme:
a method for loop testing network connectivity, comprising the steps of:
s1, respectively installing operating systems on a host to be tested and an auxiliary host;
s2, setting a host to be tested and an auxiliary host in the same network segment;
s3, arranging a sharing module in the auxiliary host, and arranging a hot start module in the sharing module;
s4, modifying the original restarting operation of the host to be tested, so that the restarting operation accesses the shared module of the auxiliary host, and executing the hot starting module;
s5, putting the modified restarting operation into the starting of the host to be tested;
and S6, starting the test of the host to be tested, and restarting.
Further, the hot-start module is a shutdown and restart command.
Further, the operating system in step S1 is a Windows operating system. At present, the testing method of the Windows operating system by the server is less, and the method can be carried out under the operating system.
Further, in step S2, the host to be tested and the auxiliary host are set in the same network segment, and the host to be tested and the auxiliary host are ping-connected to each other. Only if the networks of the test host and the auxiliary host are mutually communicated, the test host can be ensured to be capable of acquiring the hot start module in the sharing module of the auxiliary host.
Further, in step S4, while the reboot operation of the host under test accesses the shared module of the secondary host, the shared module is mapped to the local disk of the host under test. The sharing module is mapped to the local disk of the host to be tested, so that the host to be tested does not need to input the IP address of the auxiliary host every time the host to be tested accesses the sharing module, and only the local disk of the host to be tested of the motor is needed to establish connection, thereby improving the access speed.
Further, before step 6, the following steps are included:
and S6A, performing batch processing operation from the step S4 to the step S5, automatically modifying the original restart operation each time, accessing the shared module of the auxiliary host, and executing hot start. After the batch processing operation is edited, the test machine can automatically map and continuously execute the restart test after each restart.
The invention also provides the following technical scheme:
a system for circularly testing network connectivity comprises a host to be tested and an auxiliary host;
the operating system installation module is used for respectively installing operating systems on the host to be tested and the auxiliary host;
the network setting module is used for setting the host to be tested and the auxiliary host in the same network segment;
the hot start module is used for executing hot start operation, namely shutdown and restart operation;
the sharing setting module is used for setting a sharing module in the auxiliary host and setting a hot start module in the sharing module;
the restarting modification module is used for modifying the original restarting operation of the host to be tested, so that the restarting operation accesses the sharing module of the auxiliary host and executes the hot starting module;
the starting setting module is used for putting the modified restarting operation into the starting of the host to be tested;
and the test module is used for starting the test of the host to be tested and restarting.
Further, the network setting module sets the host to be tested and the auxiliary host in the same network segment, and enables the host to be tested and the auxiliary host to ping mutually. Only if the networks of the test host and the auxiliary host are mutually communicated, the test host can be ensured to be capable of acquiring the hot start module in the sharing module of the auxiliary host.
Further, the operating system is a Windows operating system. At present, the testing method of the Windows operating system by the server is less, and the method can be carried out under the operating system.
Furthermore, the restart modification module maps the shared module to the local disk of the host to be tested while the restart operation of the host to be tested accesses the shared module of the auxiliary host. The sharing module is mapped to the local disk of the host to be tested, so that the host to be tested does not need to input the IP address of the auxiliary host every time the host to be tested accesses the sharing module, and only the local disk of the host to be tested of the motor is needed to establish connection, thereby improving the access speed.
Further, the system also comprises a batch processing setting module which is used for automatically modifying the original restart operation each time, accessing the sharing module of the auxiliary host and executing the warm start setting as the batch processing operation. After the batch processing operation is edited, the test machine can automatically map and continuously execute the restart test after each restart.
The invention has the beneficial effects that:
the invention tests the connectivity of the network while testing the stability of the server, and improves the testing efficiency; in addition, the current server has fewer testing methods for the window system, and the invention adds a network test based on the window system.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
FIG. 1 is a flow chart of a method of the present invention;
FIG. 2 is a schematic diagram of the system of the present invention;
wherein, 1-operating system installation module; 2-a network setting module; 3-a hot start module; 4-sharing the setting module; 5-restart the modification module; 6-starting a setting module; 7-a test module; 8-batch setting module.
The specific implementation mode is as follows:
in order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
Example 1:
as shown in fig. 1, the present invention provides a method for circularly testing network connectivity, which includes the following steps:
s1, respectively installing operating systems on a host to be tested and an auxiliary host; the operating system is a Windows operating system; at present, the testing method of the Windows operating system by the server is less, and the method can be carried out under the operating system;
step S2, setting the host to be tested and the auxiliary host in the same network segment; the host to be tested and the auxiliary host are mutually ping communicated; only if the network of the test host and the network of the auxiliary host are mutually communicated, the test host can be ensured to be capable of acquiring the hot start module in the sharing module of the auxiliary host;
step S3, a sharing module is arranged in the auxiliary host, and a hot start module is arranged in the sharing module; the hot start module is a shutdown restart command;
step S4, the original restart operation of the host to be tested is modified, so that the restart operation accesses the shared module of the auxiliary host, and a hot start module is executed; meanwhile, mapping the shared module to a local disk of the host to be tested; the sharing module is mapped to the local disk of the host to be tested, so that the host to be tested does not need to input the IP address of the auxiliary host every time the host to be tested accesses the sharing module, and only the local disk of the host to be tested of the motor is needed to establish connection, thereby improving the access speed;
step S5, the modified restart operation is put into the start of the host to be tested;
S6A, performing batch processing operation from the step S4 to the step S5, automatically modifying the original restart operation each time, accessing a shared module of the auxiliary host, and executing hot start; after the batch processing operation is edited, the test machine can automatically map and continuously execute the restart test after being restarted each time;
and step S6, the host to be tested starts testing and restarts.
Example 2:
as shown in fig. 2, a system for cyclically testing network connectivity is characterized by comprising a host to be tested and an auxiliary host;
the operating system installation module 1 is used for respectively installing operating systems on the host to be tested and the auxiliary host; the operating system is a Windows operating system; at present, the testing method of the Windows operating system by the server is less, and the method can be carried out under the operating system;
the network setting module 2 is used for setting the host to be tested and the auxiliary host in the same network segment and enabling the host to be tested and the auxiliary host to ping mutually; only if the network of the test host and the network of the auxiliary host are mutually communicated, the test host can be ensured to be capable of acquiring the hot start module in the sharing module of the auxiliary host;
the hot start module 3 is used for executing hot start operation, namely shutdown and restart operation;
the sharing setting module 4 is used for setting a sharing module in the auxiliary host and setting a hot start module in the sharing module;
the restart modification module 5 is used for modifying the original restart operation of the host to be tested, so that the restart operation accesses the shared module of the auxiliary host, maps the shared module into a local disk of the host to be tested, and executes the hot start module; the sharing module is mapped to the local disk of the host to be tested, so that the host to be tested does not need to input the IP address of the auxiliary host every time the host to be tested accesses the sharing module, and only the local disk of the host to be tested of the motor is needed to establish connection, thereby improving the access speed;
the starting setting module 6 is used for putting the modified restarting operation into the starting of the host to be tested;
the test module 7 is used for starting the test of the host to be tested and restarting;
the batch processing setting module 8 is used for automatically modifying the original restart operation each time, accessing the sharing module of the auxiliary host, and executing the hot start to set the hot start as the batch processing operation; after the batch processing operation is edited, the test machine can automatically map and continuously execute the restart test after each restart.
Example 3: a method for circularly testing network connectivity of application embodiment 1 comprises the following steps:
step a, 2 machines are prepared, one machine is a test host machine, the other machine is an auxiliary host machine, and a windows system is installed to ensure ping communication between the test host machine and the auxiliary host machine;
b, setting a shared folder on the auxiliary host, and putting a shutdown command into the folder, wherein shutdown-r is shutdown and restart;
step c, accessing the shared folder on the host to be tested, and mapping the shared folder into a local disk such as a Z disk;
and d, editing the batch file reboot, so that the batch file reboot can be automatically mapped after being restarted every time and the restart test can be continuously executed.
The embodiments of the present invention are illustrative rather than restrictive, and the above-mentioned embodiments are only provided to help understanding of the present invention, so that the present invention is not limited to the embodiments described in the detailed description, and other embodiments derived from the technical solutions of the present invention by those skilled in the art also belong to the protection scope of the present invention.

Claims (8)

1. A method for loop testing network connectivity, comprising the steps of:
s1, respectively installing operating systems on a host to be tested and an auxiliary host;
s2, setting a host to be tested and an auxiliary host in the same network segment;
s3, arranging a sharing module in the auxiliary host, and arranging a hot start module in the sharing module; the hot start module is a shutdown restart command;
s4, modifying the original restarting operation of the host to be tested, so that the restarting operation accesses the shared module of the auxiliary host, and executing the hot starting module;
s5, putting the modified restarting operation into the starting of the host to be tested;
S6A, performing batch processing operation from the step S4 to the step S5, automatically modifying the original restart operation each time, accessing a shared module of the auxiliary host, and executing hot start; after the batch processing operation is edited, the host to be tested can be automatically mapped and the restart test can be continuously executed after each restart;
and S6, starting connectivity test of the host to be tested, and restarting.
2. The method for loop testing network connectivity of claim 1, wherein the operating system in step S1 is a Windows operating system.
3. The method for loop testing network connectivity of claim 1, wherein the step S2 is performed by setting the host under test and the auxiliary host in the same network segment, and allowing the host under test and the auxiliary host to ping each other.
4. The method for loop testing network connectivity of claim 1, wherein in step S4, the shared module is mapped to the local disk of the host under test while the reboot operation of the host under test accesses the shared module of the secondary host.
5. A system for circularly testing network connectivity is characterized by comprising an operating system installation module (1), a network setting module (2), a hot start module (3), a sharing setting module (4), a restart modification module (5), a start setting module (6), a test module (7), a batch processing setting module (8), a host to be tested (9) and an auxiliary host (10);
the operating system installation module (1) is used for respectively installing operating systems on the host to be tested and the auxiliary host;
the network setting module (2) is used for setting the host to be tested and the auxiliary host in the same network segment;
a hot start module (3) for performing a hot start operation;
the sharing setting module (4) is used for setting a sharing module in the auxiliary host and setting a hot start module in the sharing module;
the restarting modification module (5) is used for modifying the original restarting operation of the host to be tested, so that the restarting operation accesses the sharing module of the auxiliary host and executes the hot starting module;
the starting setting module (6) is used for putting the modified restarting operation into the starting of the host to be tested;
the test module (7) is used for starting connectivity test of the host to be tested and restarting;
and the batch processing setting module (8) is used for automatically modifying the original restart operation each time, accessing the sharing module of the auxiliary host and executing the warm start as the batch processing operation.
6. The system for loop testing network connectivity as claimed in claim 5, wherein the network setup module (2) sets the host under test and the auxiliary host in the same network segment, and enables the host under test and the auxiliary host to ping each other.
7. The system for loop testing network connectivity of claim 5, wherein the operating system is a Windows operating system.
8. The system for loop testing of network connectivity as claimed in claim 5, wherein the reboot modification module (5) maps the shared module to the local disk of the host under test while the reboot operation of the host under test accesses the shared module of the secondary host.
CN201810589332.6A 2018-06-08 2018-06-08 Method and system for circularly testing network connectivity Active CN108768783B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810589332.6A CN108768783B (en) 2018-06-08 2018-06-08 Method and system for circularly testing network connectivity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810589332.6A CN108768783B (en) 2018-06-08 2018-06-08 Method and system for circularly testing network connectivity

Publications (2)

Publication Number Publication Date
CN108768783A CN108768783A (en) 2018-11-06
CN108768783B true CN108768783B (en) 2021-10-22

Family

ID=63999627

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810589332.6A Active CN108768783B (en) 2018-06-08 2018-06-08 Method and system for circularly testing network connectivity

Country Status (1)

Country Link
CN (1) CN108768783B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101567805A (en) * 2009-05-22 2009-10-28 清华大学 Method for recovering failed parallel file system
CN101615071A (en) * 2009-05-18 2009-12-30 姚锋 One-computer multi-user system
CN101996111A (en) * 2010-11-30 2011-03-30 华为技术有限公司 Switching method, device and distributed blade server system
CN102289374A (en) * 2011-08-31 2011-12-21 中兴通讯股份有限公司 Method and device for constructing cross-platform software running environment
CN102299961A (en) * 2011-08-25 2011-12-28 邦讯技术股份有限公司 Method for Femto equipment to realize sharing network resources and Femto equipment
CN102413185A (en) * 2011-11-25 2012-04-11 广州杰赛科技股份有限公司 Cloud platform automatic updating system based on BT technology
CN103441925A (en) * 2013-08-19 2013-12-11 上海斐讯数据通信技术有限公司 Home gateway device and method for mounting storage device on home gateway device
CN104125297A (en) * 2014-08-06 2014-10-29 华为技术有限公司 Virtual resource sharing method, device and system
US9038108B2 (en) * 2000-06-28 2015-05-19 Verizon Patent And Licensing Inc. Method and system for providing end user community functionality for publication and delivery of digital media content
CN105391652A (en) * 2015-12-03 2016-03-09 武汉噢易云计算有限公司 USB equipment network sharing system and method based on USB redirection
CN105955850A (en) * 2016-05-18 2016-09-21 安徽江淮汽车股份有限公司 Abnormal reset processing method and system for vehicle control unit
CN107645427A (en) * 2017-09-25 2018-01-30 郑州云海信息技术有限公司 A kind of system and method for automatic test network connectivty and stability
CN108089961A (en) * 2017-11-28 2018-05-29 郑州云海信息技术有限公司 One kind is based on MOC boards hardware reboot test methods and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7155518B2 (en) * 2001-01-08 2006-12-26 Interactive People Unplugged Ab Extranet workgroup formation across multiple mobile virtual private networks
CN102238140B (en) * 2010-04-27 2015-04-15 许昌学院 System and method for sharing server by clients
US10242197B2 (en) * 2016-09-23 2019-03-26 Intel Corporation Methods and apparatus to use a security coprocessor for firmware protection

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9038108B2 (en) * 2000-06-28 2015-05-19 Verizon Patent And Licensing Inc. Method and system for providing end user community functionality for publication and delivery of digital media content
CN101615071A (en) * 2009-05-18 2009-12-30 姚锋 One-computer multi-user system
CN101567805A (en) * 2009-05-22 2009-10-28 清华大学 Method for recovering failed parallel file system
CN101996111A (en) * 2010-11-30 2011-03-30 华为技术有限公司 Switching method, device and distributed blade server system
CN102299961A (en) * 2011-08-25 2011-12-28 邦讯技术股份有限公司 Method for Femto equipment to realize sharing network resources and Femto equipment
CN102289374A (en) * 2011-08-31 2011-12-21 中兴通讯股份有限公司 Method and device for constructing cross-platform software running environment
CN102413185A (en) * 2011-11-25 2012-04-11 广州杰赛科技股份有限公司 Cloud platform automatic updating system based on BT technology
CN103441925A (en) * 2013-08-19 2013-12-11 上海斐讯数据通信技术有限公司 Home gateway device and method for mounting storage device on home gateway device
CN104125297A (en) * 2014-08-06 2014-10-29 华为技术有限公司 Virtual resource sharing method, device and system
CN105391652A (en) * 2015-12-03 2016-03-09 武汉噢易云计算有限公司 USB equipment network sharing system and method based on USB redirection
CN105955850A (en) * 2016-05-18 2016-09-21 安徽江淮汽车股份有限公司 Abnormal reset processing method and system for vehicle control unit
CN107645427A (en) * 2017-09-25 2018-01-30 郑州云海信息技术有限公司 A kind of system and method for automatic test network connectivty and stability
CN108089961A (en) * 2017-11-28 2018-05-29 郑州云海信息技术有限公司 One kind is based on MOC boards hardware reboot test methods and system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
A two-layer network Orchestrator offering trustworthy connectivity to a ROS-industrial application;Behzad Mirkhanzadeh;《2017 19th International Conference on Transparent Optical Networks (ICTON)》;20171204;全文 *
共享服务通用平台的设计与实现;李长江;《中国优秀硕士学位论文全文数据库信息科技辑》;20180215;全文 *
科学仪器远程操控技术研究与应用;李良宇;《CNKI博士学位论文数据》;20091201;全文 *

Also Published As

Publication number Publication date
CN108768783A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
CN108234164B (en) Cluster deployment method and device
CN104182288A (en) Method for automatically testing power consumption of server cluster system
CN104572422A (en) Memory monitoring achievement method based on startup and shutdown of Linux system
CN103064717B (en) A kind of apparatus and method of parallel installation of software for cluster system
CN109698772B (en) Method and system for verifying PXE (PCI extensions for instrumentation) functional stability of network card
CN108953203B (en) Server fan availability test method and system
CN105068900A (en) Test method for remote control server cold reboot
CN103744708A (en) Method of fixing disk device names in Linux operating system
CN109240865A (en) A kind of AC test method, device, terminal and the storage medium of AEP memory
CN104754047A (en) Method for performing cross-platform unified management on users of cluster storage system
CN105471673A (en) method for realizing automatic batch tests on private server BMC network ports and sharing network ports
CN109062820A (en) A kind of software performance testing method and device
CN105302681A (en) Automated testing method of rack disk performance
CN105281949A (en) Host fence method and fence device in mixed storage mode
CN108768783B (en) Method and system for circularly testing network connectivity
CN113038499B (en) Terminal Wi-Fi compatibility testing method, device, system, equipment and medium
CN102902526A (en) Automatic setting method for realizing BMC (Baseboard Management Controller) and IP (Internet Protocol) information through time delay
CN105511952B (en) Resource self-migration method and system based on cloud computing platform
CN116089265A (en) Testing method and device for basic input/output system and storage medium
CN113886153B (en) Network card pressure testing method and device based on container
CN110362430A (en) A kind of method being restarted automatically, system and the storage medium of server
CN109257186A (en) A kind of method and system making server automatically from PXE network startup
CN107995059B (en) iOS network test strategy
CN106571957B (en) MVB dynamic configuration method and device
CN110704160B (en) Dual-computer hot standby test method and device

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
GR01 Patent grant