CN113485876A - Single board and testing method thereof - Google Patents
Single board and testing method thereof Download PDFInfo
- Publication number
- CN113485876A CN113485876A CN202110554452.4A CN202110554452A CN113485876A CN 113485876 A CN113485876 A CN 113485876A CN 202110554452 A CN202110554452 A CN 202110554452A CN 113485876 A CN113485876 A CN 113485876A
- Authority
- CN
- China
- Prior art keywords
- test
- address
- network
- board
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 200
- 238000009434 installation Methods 0.000 claims abstract description 12
- 238000000034 method Methods 0.000 claims description 13
- 230000004044 response Effects 0.000 claims description 8
- 230000015654 memory Effects 0.000 claims description 6
- 238000010998 test method Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 2
- 238000005538 encapsulation Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/26—Functional testing
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The application provides a single board and a test method thereof. In the testing method, a single board receives a network starting instruction from a testing host to restart and execute network starting; the single board starts a server from the network to download the test system; the veneer is provided with a downloaded test system in a storage unit; wherein, the test software package is mounted in the single test catalog of the test system; the single board establishes Telnet connection with a test host and receives a test software package installation instruction; the single board installs a test software package in the storage unit; the single board receives a test instruction in a test software package to be executed through Telnet connection, and the test system tests according to the test instruction.
Description
Technical Field
The present application relates to communications technologies, and in particular, to a single board and a test method thereof.
Background
The single board testing process of the frame type firewall device needs to install the testing system on the tested single board through the virtualization software, then the testing system is switched from the virtualization software on the tested single board, the testing software package is installed on the testing system, the testing instruction in the testing software package is manually input, and the testing system tests the tested single board according to the testing instruction.
The limitation of the single board test process is that the test system needs to be manually installed, after the single board completes the installation of the test system, the single board needs to be switched from the virtualization software environment to the test system environment, the switching efficiency is low, and after the test software package is updated, the test software package of each single board needs to be updated. In a scenario where a plurality of boards of the frame-type firewall device need to be tested, only each board can be switched and tested one by one, which results in a reduction in testing efficiency of the frame-type firewall device.
Disclosure of Invention
The present application provides a network device and a testing method thereof, which perform batch testing on a plurality of tested boards of the network device, and each tested board does not need to support virtualization software.
In order to achieve the above object, the present application provides a single board testing method, wherein the method includes: the single board receives a network starting instruction from the test host to restart and execute the starting from the network; the single board starts a server from the network to download the test system; the veneer is provided with a downloaded test system in a storage unit; wherein, the test software package is mounted in the single test catalog of the test system; the single board establishes Telnet connection with a test host and receives a test software package installation instruction; the single board installs a test software package in the storage unit; the single board receives a test instruction in a test software package to be executed through Telnet connection, and the test system tests according to the test instruction.
In order to achieve the above object, the present application further provides a board, where the board includes a serial port, an internet port, an exchange module, a processor, and a storage unit, where the processor executes the following operations by running a processor executable instruction in the storage unit: receiving a network starting instruction, restarting and executing the starting of the slave network; downloading a test system; installing the downloaded test system in the storage unit; wherein, the test software package is mounted in the single test catalog of the test system; establishing Telnet connection and receiving a test software package installation instruction; installing a test software package in the storage unit; and receiving a test instruction in the test software package to be executed through the Telnet connection, and testing by the test system according to the test instruction.
The method has the advantages that the tested single board is started from the network, the testing system is downloaded from the network starting server and installed, the testing system after installation is enabled to mount the testing software package in the independent testing catalogue, the single board does not need to support the virtualization software to install the testing system, the testing system environment after installation does not need to be switched from the virtualization software environment to the testing system environment after installation, batch testing can be supported, and testing efficiency of the single board in the frame type firewall equipment is improved.
Drawings
Fig. 1 is a flowchart of an embodiment of a network device testing method provided in an embodiment of the present application;
fig. 2 is a schematic diagram of a network device test environment according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a single board according to an embodiment of the present application.
Detailed Description
A detailed description will be given of a number of examples shown in a number of figures. In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the present application. Well-known methods, procedures, components and circuits have not been described in detail so as not to obscure the examples.
The term "including" as that term is used is meant to include, but is not limited to; the term "comprising" means including but not limited to; the terms "above," "within," and "below" include the instant numbers; the terms "greater than" and "less than" mean that the number is not included. The term "based on" means based on at least a portion thereof.
Fig. 1 is a flowchart of an embodiment of a network device testing method provided in an embodiment of the present application; the method comprises the following steps:
103, the veneer installs the downloaded test system in a storage unit; wherein, the test software package is mounted in the single test catalog of the test system;
104, establishing Telnet connection between the single board and the test host and receiving a test software package installation instruction;
105, the single board installs a test software package in a storage unit;
and 106, the single board receives a test instruction in the test software package to be executed through the Telnet connection, and the test system executes the test according to the test instruction.
The embodiment shown in fig. 1 has the advantages that the tested single board is started from the network, the test system is downloaded from the network starting server and installed, so that the installed test system mounts the test software package into the individual test catalog, the single board does not need to support the virtualization software to install the test system, the test system environment does not need to be switched to the installed test system environment from the virtualization software environment, batch tests can be supported, automatic tests can be realized according to test instructions of the test software package which needs to be executed and are received by Telnet connection, the test instructions of the test software package do not need to be manually input, and the test efficiency of the single board in the frame type firewall equipment is improved in multiple aspects.
Fig. 2 is a schematic diagram of a network device test environment according to an embodiment of the present application. In fig. 2, the test host is used to run programs such as a test script and a console, and the test switch is used to connect the single boards 1 to 3 of the frame-type firewall device in the test environment with other devices. The network starting server is used for storing and providing the test system and the test software package. The serial server is used for expanding the serial port. The frame firewall in fig. 2 further includes a main control board and a standby control board inserted into the single board slot, a plurality of power supplies inserted into the power supply slot, and a plurality of fan modules, but these modules are not related to the single board test flow, and the present application will not be further described.
The serial port of the test host is respectively connected with the serial port 11, the serial port 12 and the serial port 13 on the single boards 1-3 through the serial server. The test switch is connected with the network start service, the serial server, the test host and the network ports 12, 22 and 32 of the single boards 11-13 of the frame type firewall device through the network ports.
The test script running in the test host sends a slave network starting command from the serial port through the console program, and the serial server sends the slave network starting command to the serial port 11 of the single plate 1, the serial port 21 of the single plate 2 and the serial port 31 of the single plate 3 respectively.
After receiving the "slave network start command", board 1, board 2, and board 3 restart and execute the slave network start. The restarted single boards 1, 2, and 3 respectively send IP address request messages through the network port 12, the network port 22, and the network port 32 to obtain IP addresses required for "network startup" to perform three-layer communication.
The test switch receives the IP address request message from the board 1 through the network port connected to the board 1, selects an IP address from the IP address pool corresponding to the received network port, carries the IP1 in the IP address response message, and sends the IP address response message through the network port connected to the board 1.
Similarly, the test switch receives the IP address request messages from the board 2 and the board 3, and the IP addresses IP2 and IP3 selected in the IP address pools connected to the network ports of the board 2 and the board 3, respectively, carry the IP2 and IP3 in different IP address response messages, and respectively send the IP address response messages through the network ports connected to the board 2 and the board 3.
The test switch sends a server address notification message with the IP address of the network start server through the respective network ports of the board 1, the board 2, and the board 3, and a notification message of the storage location in the network start server where the test system is stored.
In the test environment of fig. 2, when the network port of the test switch connecting boards 1-3 and the network port connecting the network boot server are in different network segments, the board 1 determines that the IP addresses of the two devices are in different network segments according to the obtained IP addresses of the network boot server, and obtains the MAC address of the gateway of the test switch as the gateway through the ARP protocol message. The board 1 generates a test system download message with a storage location of the test system by using the IP address IP1 as a source IP address and the IP address of the network boot server as a destination IP address, performs ethernet header encapsulation by using the gateway MAC address of the test switch as an outer layer destination MAC address, and sends the ethernet header encapsulation to the test switch serving as a gateway through the network port 1. The test switch receives the download message of the test system, determines to execute three-layer forwarding according to the destination MAC address, acquires the MAC address of the network starting server according to the ARP protocol message, repackages the source MAC address and the destination MAC address of the download message of the test system, and then sends the download message of the test system to the network starting server.
In the test environment of fig. 2, when the network port of the test switch connecting the single board 1-the single board 3 and the network port connecting the network boot server are in the same network segment, the single board 1 determines that the IP addresses of the two devices are in the same network segment according to the IP address of the network boot server, obtains the MAC address of the network boot server through the ARP protocol message, and encapsulates the ethernet header with the MAC address of the network boot server as the destination MAC address as the download message of the test system. After receiving the download message of the test system, the network start server transmits the test system to the single board 1. Similarly, the single board 2 and the single board 3 each send a test system download message to the network start server, and receive the test system transmitted by the network start server. The method for obtaining the test system through two-layer forwarding or three-layer forwarding between the network start server in the test switch and the single boards 1 to 3 of the frame type firewall equipment is not limited.
After the single board 1, the single board 2 and the single board 3 receive the test systems respectively, the test systems are installed in respective memories, and after the test systems are installed on the three single boards, the test software package is mounted in the independent test catalog of the test system of each single board. The test system of the single board 1, the single board 2 and the single board 3 starts the Telnet function.
The test script running in the test host sends an ICMP (Internet Control Message Protocol) Echo request Message to the test switch, and the test switch connects reachable hosts of network segments corresponding to IP address pools of three network ports of the single boards 1 to 3 to obtain IP addresses IP1, IP2, and IP3 allocated to the single boards 1 to 3 by the test switch.
The test script of the test host sends a test software installation command to the corresponding Telnet window, the single board 1, the single board 2 and the single board 3 respectively receive the test software package installation command through Telnet connection, and the respective test systems of the three single boards install the test software packages in the memory.
The test script of the test host inputs the test instruction in the test software package through the Telnet window corresponding to the single board 1, so that the test instruction in the test software package is sent to the single board 1 through the Telnet connection, the single board automatic test of the frame type firewall equipment is realized, the test instruction in the test software package installed on the single board does not need to be manually input, and the test efficiency is improved.
For example, a test script of the test host sends a test USB interface read-write rate test through Telnet connection; or, the test host sends a message to the board 1 through Telnet connection to test a pcie (peripheral component interconnect express) channel between the network card and the FPGA of the board 1. The test system installed on the single board 1 executes corresponding test processing according to the test instructions.
Fig. 3 is a schematic structural diagram of a single board according to an embodiment of the present application. In fig. 3, the board 330 includes a serial port (not shown), a network card (not shown), an FPGA chip (not shown), a switching module 331, a processor 332, and a storage unit 333. Processor 332 performs the following by executing processor-executable instructions in memory unit 333: receiving a network starting instruction, restarting and executing the starting of the slave network; downloading a test system; installing the downloaded test system in the storage unit; wherein, the test software package is mounted in the single test catalog of the test system; establishing Telnet connection and receiving a test software package installation instruction; installing a test software package in the storage unit; and receiving a test instruction through the Telnet connection, and executing the test according to the received test instruction.
The processor 332 executing the download test system by executing the processor-executable instructions in the storage unit 333 comprises: acquiring an IP address of the local board; acquiring an IP address of a network starting server of a storage test system; acquiring a storage position of a test system in a network starting server; sending a test system download message with a storage position of the test system; the source IP address and the destination IP address of the downloaded message of the test system are the IP address of the local board and the IP address of the network starting server respectively.
The processor 332 executes the acquiring of the local IP address by executing the processor executable instructions in the storage unit 333, including: sending an IP address request message to a test switch; receiving an address response message with the IP address of the local board; the IP address of the board belongs to an IP address pool corresponding to a port of the test switch receiving the IP address request message.
Processor 332 performs the obtaining the IP address of the network boot server of the storage test system by executing the processor-executable instructions in storage unit 333, including: receiving a server address notification message sent by a test switch; wherein the server address announcement message carries the IP address of the network start server.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.
Claims (8)
1. A method for testing a single board, the method comprising:
the single board receives a network starting instruction from the test host to restart and executes the starting of the slave network;
the single board downloads the test system from the network starting server;
the veneer is provided with the downloaded test system in a storage unit; wherein, a test software package is mounted in an individual test catalog of the test system;
the single board and the test host establish Telnet connection and receive a test software package installation instruction;
the single board installs the test software package in the storage unit;
and the single board receives a test instruction in the test software package to be executed through the Telnet connection, and the test system tests according to the test instruction.
2. The method of claim 1, wherein the downloading, by the board, the test system from the network boot server comprises:
the single board obtains the IP address of the board;
the single board acquires the IP address of the network starting server;
the single board acquires a storage position for storing the test system in the network starting server;
the single board requests the network server for the test system in the storage position;
and the single board receives the test system transmitted by the network server.
3. The method according to claim 2, wherein the obtaining, by the board, the IP address comprises:
the single board sends an IP address request message to a test switch;
the single board receives an IP address response message sent by the test switch; and the IP address carried in the IP address response message belongs to the IP address pool corresponding to the port of the test switch receiving the IP address request message.
4. The method according to claim 3, wherein the obtaining, by the board, the IP address of the network boot server means that the board receives a server address notification message sent by the test switch; wherein the server address announcement message carries the IP address of the network start server.
5. A single board, the said single board includes serial port, network port, exchange module, processor and memory cell, characterized by that; wherein the processor performs the following by executing processor-executable instructions in the memory unit:
receiving a network starting instruction, restarting and executing the starting of the slave network;
downloading a test system;
installing the downloaded test system in a storage unit; wherein, a test software package is mounted in an individual test catalog of the test system;
establishing Telnet connection and receiving a test software package installation instruction;
installing the test software package in the storage unit;
and receiving a test instruction in the test software package to be executed through the Telnet connection, and testing by the test system according to the test instruction.
6. The board of claim 5, wherein the processor executing the operation of downloading the test system by executing the processor-executable instructions in the memory unit comprises:
acquiring an IP address of the local board;
acquiring an IP address of a network starting server storing the test system;
acquiring a storage position of the test system in the network starting server;
sending a test system download message with the storage position of the test system; the source IP address and the destination IP address of the downloaded message of the test system are the IP address of the local board and the IP address of the network starting server
And receiving the test system transmitted by the network server.
7. The board according to claim 6, wherein the processor executing the operation of obtaining the board IP address by running the processor-executable instructions in the storage unit comprises:
sending an IP address request message to a test switch;
receiving an address response message with the IP address of the local board; and the IP address of the board belongs to an IP address pool corresponding to a port of the test switch which receives the IP address request message.
8. The board according to claim 7, wherein the processor executing, by executing the processor-executable instructions in the storage unit, the obtaining the IP address of the network boot server storing the test system comprises: receiving a server address notification message sent by the test switch; wherein the server address announcement message carries the IP address of the network start server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110554452.4A CN113485876A (en) | 2021-05-20 | 2021-05-20 | Single board and testing method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110554452.4A CN113485876A (en) | 2021-05-20 | 2021-05-20 | Single board and testing method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113485876A true CN113485876A (en) | 2021-10-08 |
Family
ID=77933507
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110554452.4A Pending CN113485876A (en) | 2021-05-20 | 2021-05-20 | Single board and testing method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113485876A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2012467A1 (en) * | 2007-07-04 | 2009-01-07 | Nec Corporation | Network apparatus test system and network apparatus test method |
JP2011128940A (en) * | 2009-12-18 | 2011-06-30 | Arp Co Ltd | Software test automation system and software test automation method |
CN102970187A (en) * | 2012-12-04 | 2013-03-13 | 华为技术有限公司 | Single board testing method, device and system |
CN108021119A (en) * | 2016-10-31 | 2018-05-11 | 河南蓝信科技股份有限公司 | A kind of EOAS device detection systems and its method |
US20190190774A1 (en) * | 2017-03-16 | 2019-06-20 | Krishnamurty Kambhampati | Network connectivity monitor |
CN110838953A (en) * | 2019-11-01 | 2020-02-25 | 北京字节跳动网络技术有限公司 | Test method, test system, electronic equipment and storage medium |
CN111105392A (en) * | 2019-11-25 | 2020-05-05 | 紫光展讯通信(惠州)有限公司 | Display performance testing method and device and storage medium |
-
2021
- 2021-05-20 CN CN202110554452.4A patent/CN113485876A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2012467A1 (en) * | 2007-07-04 | 2009-01-07 | Nec Corporation | Network apparatus test system and network apparatus test method |
JP2011128940A (en) * | 2009-12-18 | 2011-06-30 | Arp Co Ltd | Software test automation system and software test automation method |
CN102970187A (en) * | 2012-12-04 | 2013-03-13 | 华为技术有限公司 | Single board testing method, device and system |
CN108021119A (en) * | 2016-10-31 | 2018-05-11 | 河南蓝信科技股份有限公司 | A kind of EOAS device detection systems and its method |
US20190190774A1 (en) * | 2017-03-16 | 2019-06-20 | Krishnamurty Kambhampati | Network connectivity monitor |
CN110838953A (en) * | 2019-11-01 | 2020-02-25 | 北京字节跳动网络技术有限公司 | Test method, test system, electronic equipment and storage medium |
CN111105392A (en) * | 2019-11-25 | 2020-05-05 | 紫光展讯通信(惠州)有限公司 | Display performance testing method and device and storage medium |
Non-Patent Citations (3)
Title |
---|
于建林 , 刘行: "用TestStand构建通信产品并行测试平台", 今日电子, no. 02, 10 February 2004 (2004-02-10) * |
唐瑞新;孟乔;: "基于TELNET的自动化测试***设计", 中国新通信, no. 11, 5 June 2013 (2013-06-05) * |
张莹;李宝潭;李燕;张宇迪;纪元;: "一种继电保护装置单板硬件自动测试***", 电子测量技术, no. 23, 8 December 2019 (2019-12-08) * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107005471B (en) | Universal customer premises equipment | |
US10812597B2 (en) | Content delivery network (CDN) management system, method, and apparatus | |
CN114070723B (en) | Virtual network configuration method and system of bare metal server and intelligent network card | |
CN109587005B (en) | Connection detection method and device, computer equipment and readable storage medium | |
US20160241702A1 (en) | Management of wireless access points via virtualization | |
US10608984B2 (en) | Method and device for provisioning a new node using IP unnumbered interfaces | |
CN103491203B (en) | A kind of method of virtualization DHCP service, device, system and server | |
US10813156B2 (en) | Method and apparatus for processing network connection | |
CN106572200A (en) | IP address configuration method and IP address configuration device for baseboard management controller BMC | |
GB2462160A (en) | A distributed server system includes a table indicating communication relationships between various service programs | |
US11153269B2 (en) | On-node DHCP implementation for virtual machines | |
CN111770035A (en) | MAC address table updating method and device, message sending method and electronic equipment | |
CN110971689B (en) | System installation method, device, system, equipment and storage medium | |
CN109698845B (en) | Data transmission method, server, unloading card and storage medium | |
CN107547277B (en) | Method for realizing virtualization control board and network communication equipment | |
CN113485876A (en) | Single board and testing method thereof | |
CN112948008A (en) | Ironic based physical bare computer management method | |
CN112667293B (en) | Method, device and storage medium for deploying operating system | |
CN110247778B (en) | Operating system installation method and device, electronic equipment and storage medium | |
CN116390036A (en) | Session control method, session control system and SMF network element | |
CN113923149B (en) | Network access method, device, network system, electronic equipment and storage medium | |
CN110795212B (en) | Main/standby main control configuration synchronization method and device based on frame type equipment | |
CN111858300B (en) | Automatic testing method, device and system for embedded equipment and storage medium | |
CN113886153B (en) | Network card pressure testing method and device based on container | |
CN113132502B (en) | Network host positioning method, device and equipment |
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 |