TW201447596A - Test system and method for server - Google Patents

Test system and method for server Download PDF

Info

Publication number
TW201447596A
TW201447596A TW102107131A TW102107131A TW201447596A TW 201447596 A TW201447596 A TW 201447596A TW 102107131 A TW102107131 A TW 102107131A TW 102107131 A TW102107131 A TW 102107131A TW 201447596 A TW201447596 A TW 201447596A
Authority
TW
Taiwan
Prior art keywords
server
switch
test
network
port
Prior art date
Application number
TW102107131A
Other languages
Chinese (zh)
Inventor
Wen-Wu Wu
Guang-Jian Wang
Original Assignee
Hon Hai Prec Ind 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 Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Publication of TW201447596A publication Critical patent/TW201447596A/en

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

A test system includes a port grouping unit, a network segment distributing unit, a power on/off unit, and a test unit. The port grouping unit is to group the ports of a switcher coupled with the first ports of each server. The network segment distributing unit is to assign IP addresses to each group. The power on/off unit outputs a power on/off signal to each of the second ports of the server in the same network segment. The test unit outputs the pressure test signal to the first ports of the servers in the same network segment.

Description

伺服器測試系統及方法Server test system and method

本發明系關於一種伺服器測試系統及方法。The present invention relates to a server test system and method.

在大型資料處理中心,一個機櫃通常可容納多個伺服器,每一伺服器均需進行壓力測試。請參考圖1,測試時,需要用一台測試主機10同時連接兩台交換機,每一伺服器30的LAN(Local Area Network,局域網)埠被連接至一交換機200對應的埠,每一伺服器30的BMC(Baseboard Management Controller,基板管理控制器)埠則被連接至另一交換機201對應的埠。當進行壓力測試時,測試主機10則透過交換機201來控制所有的伺服器30的進行開機動作,之後,測試主機10透過交換機200對這些伺服器30進行網路廣播,以此對連接於交換機200的每一伺服器30進行壓力測試。然,上述壓力測試過程中,需要透過廣播資料的形式將測試資料傳輸至連接於交換機200的所有的伺服器30,如此將可能產生廣播風暴,進而造成網路阻塞而影響測試結果。In large data processing centers, a single cabinet can usually accommodate multiple servers, and each server requires a stress test. Referring to FIG. 1 , in the test, a test host 10 needs to be connected to two switches at the same time, and a LAN (Local Area Network) of each server 30 is connected to a port corresponding to a switch 200, and each server is connected. The BMC (Baseboard Management Controller) of 30 is connected to the port corresponding to the other switch 201. When performing the stress test, the test host 10 controls all the servers 30 to perform the booting operation through the switch 201. Thereafter, the test host 10 broadcasts the servers 30 through the switch 200, thereby connecting to the switch 200. Each server 30 performs a stress test. However, during the above stress test, the test data needs to be transmitted to all the servers 30 connected to the switch 200 in the form of broadcast data, so that a broadcast storm may occur, which may cause network congestion and affect the test result.

鑒於以上內容,有必要提供一種可避免產生廣播風暴的伺服器測試系統及方法。In view of the above, it is necessary to provide a server test system and method that can avoid broadcast storms.

一種伺服器測試系統,應用於一交換機,每一伺服器的第一埠及第二埠均與該交換機的埠相連,該伺服器測試系統包括:A server test system is applied to a switch, and each of the first port and the second port of each server is connected to a port of the switch. The server test system includes:

一埠分組單元,用於對該交換機上與每一伺服器的第一埠相連的埠進行分組;a grouping unit for grouping the ports connected to the first port of each server on the switch;

一網段分配單元,用於對交換機內不同分組內的埠分配具有不同網段的IP位址,以使得不同服務器具有不同網段的IP位址;a network segment allocation unit, configured to allocate IP addresses having different network segments to 埠 in different packets in the switch, so that different servers have IP addresses of different network segments;

一壓力測試單元,用於輸出壓力測試訊號至同一網段內所有的伺服器的第一埠以完成對該網段內伺服器的壓力測試;及a pressure test unit for outputting the pressure test signal to the first port of all servers in the same network segment to complete the stress test of the server in the network segment; and

一開關機測試單元,用於輸出開關機測試訊號至一伺服器的第二埠以對伺服器進行開關機操作。A switch test unit is configured to output a switch test signal to a second port of a server to perform a switch operation on the server.

一種伺服器測試方法,包括如下步驟:A server test method includes the following steps:

連接每一伺服器的網路埠至一交換機的埠;Connect the network of each server to the switch of a switch;

對該交換機的複數埠進行分組;Grouping the complex 埠 of the switch;

對不同分組的埠分配具有不同網段的IP位址;Allocating different groups of IP addresses with different network segments;

輸出壓力測試訊號至同一網段內的伺服器的網路埠;及Outputting a pressure test signal to the network of servers in the same network segment; and

輸出開關機測試訊號至一伺服器的網路埠。The output switch test signal is sent to the network of a server.

上述伺服器測試系統及方法將不同的伺服器的網路埠進行分組,並對不同分組的伺服器分配具有不同網段的IP位址,如此在進行壓力測試時可有效避免廣播風暴的產生。The above server test system and method group different network ports of different servers, and assign IP addresses with different network segments to servers of different groups, so that the broadcast storm can be effectively avoided during stress test.

40...測試主機40. . . Test host

50...交換機50. . . switch

60...伺服器60. . . server

70...伺服器測試系統70. . . Server test system

600...LAN埠600. . . LAN埠

602...BMC埠602. . . BMC埠

700...壓力測試單元700. . . Pressure test unit

702...開關機測試單元702. . . Switch test unit

704...埠分組單元704. . .埠grouping unit

706...網段分配單元706. . . Network segment allocation unit

圖1是習知用於對複數伺服器進行測試的示意圖。1 is a schematic diagram of a conventional test for a complex servo.

圖2是本發明伺服器測試系統對複數伺服器進行測試的示意圖。2 is a schematic diagram of testing a plurality of servers by the server test system of the present invention.

圖3是本發明伺服器測試系統的較佳實施方式的方框圖。3 is a block diagram of a preferred embodiment of the server test system of the present invention.

圖4是本發明伺服器測試方法的較佳實施方式的流程圖。4 is a flow chart of a preferred embodiment of the server test method of the present invention.

請參考圖2及3,本發明伺服器測試系統70用於對複數伺服器60進行壓力測試,該伺服器測試系統70應用於一交換機50內,其中每一伺服器60的網路埠與該交換機50的一個埠相連。每一伺服器60的網路埠包括一LAN埠600及一BMC埠602。該伺服器測試系統70的較佳實施方式包括一壓力測試單元700、一開關機測試單元702、一埠分組單元704及一網段分配單元706。Referring to Figures 2 and 3, the server test system 70 of the present invention is used to stress test the complex server 60, which is applied to a switch 50 in which the network of each server 60 is One of the switches 50 is connected. The network port of each server 60 includes a LAN port 600 and a BMC port 602. The preferred embodiment of the server test system 70 includes a pressure test unit 700, a switch test unit 702, a grouping unit 704, and a network segment allocating unit 706.

該埠分組單元704用於對該交換機50的埠進行分組,如將該交換機50的埠分為第一分組、第二分組等。其中每一分組內包含的埠的數量可不相等,亦可相等。本實施方式中,每一分組內所對應連接的伺服器60的網路埠的類型相同,即同一分組內的埠全部連接的是伺服器60的LAN埠600或者全部連接的是伺服器60的BMC埠602。The unit grouping unit 704 is configured to group the ports of the switch 50, such as dividing the port of the switch 50 into a first packet, a second packet, and the like. The number of defects contained in each of the groups may be unequal or equal. In this embodiment, the types of the network ports of the servers 60 connected to each group are the same, that is, the ports in the same group are all connected to the LAN port 600 of the server 60 or all connected to the server 60. BMC埠602.

該網段分配單元706用於對每一分組內的埠分配具有相同網段的IP位址,不同分組之間則分配具有不同網段的IP位址,如此使得每一分組內對應與伺服器60的LAN埠600相連的埠可組成一個虛擬區域網路。The network segment allocating unit 706 is configured to allocate IP addresses having the same network segment to each of the packets in each packet, and allocate IP addresses with different network segments between different packets, so that each packet corresponds to the server. The ports connected to the LAN 埠 600 of 60 can form a virtual area network.

該開關機測試單元702用於對伺服器60進行開關機操作。具體的,當需要控制伺服器60進行開關機操作時,該開關機測試單元702輸出開關機訊號至對應的伺服器60的BMC埠602。當對應的伺服器60接收到開關機訊號後,即進行相當地開關機操作。在其他實施方式中,因控制伺服器60進行開關機操作時不用產生廣播風暴,故該交換機50中的用於連接伺服器60的BMC埠602的埠可以不進行分組處理。The switch test unit 702 is configured to perform a switch operation on the server 60. Specifically, when the control server 60 is required to perform the power on/off operation, the switch test unit 702 outputs the switch signal to the BMC 602 of the corresponding server 60. When the corresponding server 60 receives the power on/off signal, it performs a considerable power on/off operation. In other embodiments, since the control server 60 performs the on/off operation without generating a broadcast storm, the B of the BMC 602 for connecting to the server 60 in the switch 50 may not perform packet processing.

該壓力測試單元700用於對處於開機狀態下的複數伺服器60進行壓力測試。具體的,當需要測試某一網段內的伺服器60時,該開關機測試單元702輸出開關機訊號至該網段內的所有的伺服器60的BMC埠602,之後,該壓力測試單元700對位於該網段內的伺服器60的LAN埠600進行網路廣播。即該壓力測試單元700接收該測試主機40輸出的壓力測試指令之後,根據該壓力測試指令透過對應網段內的IP位址進行網路廣播,以對對應網段內所有的伺服器60進行壓力測試。如此在對伺服器60進行壓力測試時,透過對每一網段內的伺服器60分別進行網路廣播即可完成與對應該網段的埠相連的伺服器60的壓力測試,進而避免了對同時所有伺服器60進行網路廣播而可能帶來的廣播風暴。The pressure testing unit 700 is configured to perform a stress test on the plurality of servers 60 in the power-on state. Specifically, when it is required to test the server 60 in a certain network segment, the switch test unit 702 outputs a switch signal to the BMC 602 of all the servers 60 in the network segment, and then the pressure test unit 700 The LAN 埠 600 of the server 60 located in the network segment is network broadcasted. That is, after receiving the pressure test command outputted by the test host 40, the pressure test unit 700 performs network broadcast according to the IP address in the corresponding network segment according to the pressure test command, so as to stress all the servers 60 in the corresponding network segment. test. In the pressure test of the server 60, the network test of the server 60 in each network segment can complete the stress test of the server 60 connected to the network segment corresponding to the network segment, thereby avoiding the At the same time, all servers 60 perform network broadcasts and may bring broadcast storms.

請參考圖4,本發明伺服器測試方法的較佳實施方式包括如下步驟:Referring to FIG. 4, a preferred embodiment of the server testing method of the present invention includes the following steps:

步驟S1,連接各伺服器60的網路埠至該交換機50的埠。其中該網路埠包括伺服器60的LAN埠600及BMC埠602。In step S1, the network connected to each server 60 is connected to the switch 50. The network includes the LAN port 600 and the BMC port 602 of the server 60.

步驟S2,對該交換機50的埠進行分組處理。In step S2, the 埠 of the switch 50 is grouped.

步驟S3,將不同分組的埠分配具有不同網段的IP位址。In step S3, the 埠 of different packets are allocated with IP addresses of different network segments.

步驟S4,傳輸開關機測試訊號至一網段內的伺服器60的BMC埠。In step S4, the switch test signal is transmitted to the BMC of the server 60 in a network segment.

步驟S5,傳輸壓力測試訊號至該網段內所有的伺服器60的LAN埠,以完成對該網段內所有伺服器60的壓力測試。In step S5, the pressure test signal is transmitted to the LAN port of all the servers 60 in the network segment to complete the stress test of all the servers 60 in the network segment.

上述伺服器測試系統及方法將該交換機50的埠進行分組,並對不同分組的埠分配具有不同網段的IP位址,如此在進行壓力測試時可有效避免廣播風暴的產生。The server test system and method described above group the ports of the switch 50, and assign IP addresses of different network segments to different groups of packets, so that the broadcast storm can be effectively avoided during the stress test.

綜上所述,本發明確已符合發明專利的要件,爰依法提出專利申請。惟,以上所述者僅為本發明的較佳實施方式,本發明的範圍並不以上述實施方式為限,舉凡熟悉本案技藝的人士援依本發明的精神所作的等效修飾或變化,皆應涵蓋於以下申請專利範圍內。In summary, the present invention has indeed met the requirements of the invention patent, and has filed a patent application according to law. However, the above description is only a preferred embodiment of the present invention, and the scope of the present invention is not limited to the above-described embodiments, and those skilled in the art will be able to make equivalent modifications or variations in accordance with the spirit of the present invention. It should be covered by the following patent application.

40...測試主機40. . . Test host

50...交換機50. . . switch

60...伺服器60. . . server

70...伺服器測試系統70. . . Server test system

600...LAN埠600. . . LAN埠

602...BMC埠602. . . BMC埠

Claims (6)

一種伺服器測試系統,應用於一交換機,每一伺服器的第一埠及第二埠均與該交換機的埠相連,該伺服器測試系統包括:
一埠分組單元,用於對該交換機上與每一伺服器的第一埠相連的埠進行分組;
一網段分配單元,用於對交換機內不同分組內的埠分配具有不同網段的IP位址,以使得不同服務器具有不同網段的IP位址;
一開關機測試單元,用於輸出開關機測試訊號至一網段內的伺服器的第二埠;及
一壓力測試單元,用於輸出壓力測試訊號至同一網段內所有的伺服器的第一埠以完成對該網段內伺服器的壓力測試。
A server test system is applied to a switch, and each of the first port and the second port of each server is connected to a port of the switch. The server test system includes:
a grouping unit for grouping the ports connected to the first port of each server on the switch;
a network segment allocation unit, configured to allocate IP addresses having different network segments to 埠 in different packets in the switch, so that different servers have IP addresses of different network segments;
a switch test unit for outputting the switch test signal to the second port of the server in a network segment; and a pressure test unit for outputting the pressure test signal to the first of all servers in the same network segment埠 to complete the stress test on the server in the network segment.
如申請專利範圍第1項所述之伺服器測試系統,其中第一埠為伺服器的LAN埠,第二埠為伺服器的BMC埠。For example, in the server test system described in claim 1, the first port is the LAN port of the server, and the second port is the BMC port of the server. 一種伺服器測試方法,包括如下步驟:
連接每一伺服器的網路埠至一交換機的埠;
對該交換機的複數埠進行分組;
對不同分組的埠分配具有不同網段的IP位址;
輸出開關機測試訊號至一網段伺服器的網路埠;及
輸出壓力測試訊號至同一網段內的伺服器的網路埠。
A server test method includes the following steps:
Connect the network of each server to the switch of a switch;
Grouping the complex 埠 of the switch;
Allocating different groups of IP addresses with different network segments;
The output switch test signal is sent to the network of the server of a network segment; and the network of the server in the same network segment is outputted by the pressure test signal.
如申請專利範圍第3項所述之伺服器測試方法,其中每一伺服器的網路埠包括LAN埠及BMC埠。The server test method described in claim 3, wherein the network port of each server includes a LAN port and a BMC port. 如申請專利範圍第4項所述之伺服器測試方法,其中步驟“輸出壓力測試訊號至同一網段內的伺服器的網路埠”中的網路埠為LAN埠。For example, in the server test method described in claim 4, the network in the step "outputting the pressure test signal to the network of the server in the same network segment" is LAN埠. 如申請專利範圍第4項所述之伺服器測試方法,其中步驟“輸出開關機測試信號至一伺服器的網路埠”中的埠為BMC埠。
For example, in the server test method described in claim 4, the step "outputting the switch test signal to the network of a server" is BMC.
TW102107131A 2013-02-21 2013-02-27 Test system and method for server TW201447596A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310055653.5A CN104009879A (en) 2013-02-21 2013-02-21 Server testing system and method

Publications (1)

Publication Number Publication Date
TW201447596A true TW201447596A (en) 2014-12-16

Family

ID=51370375

Family Applications (1)

Application Number Title Priority Date Filing Date
TW102107131A TW201447596A (en) 2013-02-21 2013-02-27 Test system and method for server

Country Status (2)

Country Link
CN (1) CN104009879A (en)
TW (1) TW201447596A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108234246B (en) * 2018-01-22 2021-04-27 郑州云海信息技术有限公司 Method and system for multi-directionally testing network performance of server
CN111404771B (en) * 2020-03-08 2022-02-25 苏州浪潮智能科技有限公司 Network load testing method, device, equipment and medium

Also Published As

Publication number Publication date
CN104009879A (en) 2014-08-27

Similar Documents

Publication Publication Date Title
US10484515B2 (en) Implementing logical metadata proxy servers in logical networks
CN109245984B (en) Message transmission method, information processing method and related equipment thereof
US9525648B2 (en) Method for acquiring physical address of virtual machine
US9106529B2 (en) Virtual network configuration and management
US10771431B2 (en) Synchronizing IP information of virtual machines
WO2018086013A1 (en) Packet processing method in cloud computing system, host, and system
US9667486B2 (en) System and method for network address administration and management in federated cloud computing networks
US11895042B2 (en) Crowd-sourced cloud computing resource validation
US10425354B2 (en) Resource allocation method, packet communication method, and apparatus
US8902896B2 (en) Packet switching without look-up table for ethernet switches
US10523464B2 (en) Multi-homed access
TW201610702A (en) Server system and associated control method
CN102780602B (en) Method and device for data transmission
WO2012168872A1 (en) Virtual network configuration and management
TW201447596A (en) Test system and method for server
US10374899B2 (en) Method and device for reporting OpenFLow switch capability
US10361945B2 (en) System and method to reconcile cabling test results with cabling test configurations
US8654675B2 (en) Interface detection device and detection method employing the same
US10554552B2 (en) Monitoring network addresses and managing data transfer
CN107547247B (en) IP address allocation method and device for three-layer management network in intelligent elastic architecture
CN109151859A (en) A kind of multimachine test method of AP product of the network interface without fixed IP
WO2017023256A1 (en) Cloud provisioning for networks
TWI615720B (en) Resource allocation system, apparatus allocation controller, and apparatus recognizing method
CN109428823B (en) System and method for realizing multi-Data Plane NAT resource self-adaptive allocation conversion based on NFV
US20220231915A1 (en) Secure onboarding of network devices