TW201035749A - System and method for testing serial attached SCSI - Google Patents

System and method for testing serial attached SCSI Download PDF

Info

Publication number
TW201035749A
TW201035749A TW98109084A TW98109084A TW201035749A TW 201035749 A TW201035749 A TW 201035749A TW 98109084 A TW98109084 A TW 98109084A TW 98109084 A TW98109084 A TW 98109084A TW 201035749 A TW201035749 A TW 201035749A
Authority
TW
Taiwan
Prior art keywords
small computer
serial connection
computer system
system interface
data packet
Prior art date
Application number
TW98109084A
Other languages
Chinese (zh)
Other versions
TWI438624B (en
Inventor
Chiang-Chung Tang
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
Priority to TW98109084A priority Critical patent/TWI438624B/en
Publication of TW201035749A publication Critical patent/TW201035749A/en
Application granted granted Critical
Publication of TWI438624B publication Critical patent/TWI438624B/en

Links

Abstract

The present invention provides a method for testing SAS(serial attached SCSI). The method includes: generating a virtual memory on a SAS port needed be tested by a generating module; obtaining attribute of the SAS port by an obtaining module; sending a data packet to a loopback dongle by a sending module; receiving the data packet via a receiving pin by a receiving module; storing the data packet into the virtual memory by a storing module; detecting if the received data packet is the same as the data packet sent from the sending module by a detecting module; informing the SAS is in normal if the received data packet is the same as the sent data packet; informing the SAS is not in normal if the received data packet is different from the sent data packet.

Description

201035749 六、發明說明: 【發明所屬之技術領域】 • 本發明涉及一種測試系統及方法,尤其涉及一種關於 串列連接小型電腦系統介面的測試系統及方法。 【先前技術】 SAS ( Serial Attached SCSI,串列連接小型電腦系統介 面)疋新代的SCSI技術,和現在流行的seriai ATA(SΑΤΑ) 〇 硬碟相同’都是採用串列技術以獲得更高的傳輸速度,並 透過縮短連結線改善内部空間等。SAS是並行SCSI介面 之後開發出的全新介面。此介面的設計是為了改善儲存系 統的效能、可用性和擴充性,並且提供與SATA硬碟的相 容性。 SAS的測试成為了應用這項技術的首要課題,目前 S AS的測試架構採用的是如圖1所示的硬體架構,$ 控 制器需要連接至少一個SAS裝置來回應SAS控制器所發 ❹ 出的測試命令,該SAS裝置可以為SAS擴展器等設備, 由於SAS擴展器等設備的費用較高,將需要耗費大量的硬 體成本來完成SAS的測試。 【發明内容】 鑒於以上内容,有必要提供一種串列連接小型電腦系 統介面測試系統及方法,可以降低成本且有效對串列連接 小型電腦系統介面進行測試。 一種串列連接小型電腦系統介面測試系統,所述需要 測試的串列連接小型電腦系統介面連接於環回軟體狗,該 201035749 測4系4包括·生成模組,用於在所需要測試的串列連接 .小型電腦系統介面生成一個虛擬記憶體,該虛擬記憶體用 .於儲存資料包;獲取模組,用於獲取該串列連接小型電腦 系統介面的屬性;發送模組,用於透過所述串列連接小型 電腦系統介面的發送引腳發送資料包至所述環回軟體狗, 該資料包包括測試資料、該串列連接小型電腦系統介面的 屬,及傳輸協定;接收模組,用於透過所述串列連接小型 ❹、電腦系統μ面的接收引腳接收所述環回軟體狗所回發的資 料包;儲存模組,用於將所接收的資料包儲存至所生成的 虛擬記憶體中;及檢查模組,用於檢查所述接收到的資料 包所,含的資訊是否與所發送的資料包中包含的資訊相 同,右相同,該檢查模組提示該串列連接小型電腦系統介 面正本,若不相同,則該檢查模組提示該串列連接小型電 腦系統介面不正常。 種串列連接小型電腦系統介面測試方法,該方法包 ❹括如下步驟·在所需要測試的串列連接小型電腦系統介面 生成一個虛擬記憶體,該虛擬記憶體用於儲存資料包;獲 取該串列連接小型電腦系統介面的屬性;透過所述串列連 接小型電腦系統介面的發送引腳發送資料包至與該串列連 接小型電腦系統介面相連的環回軟體狗,該資料包包括測 試資料、該串列連接小型電腦系統介面的屬性及傳輸協 定’透過所述串列連接小型電腦系統介面的接收引腳接收 所述環回軟體狗所回發的資料包;將所接收的資料包儲存 至所生成的虛擬記憶體中;檢查所述接收到的資料包所包 201035749 含的資訊是否與所發送的實料包中包含的資訊相同;若相 . 同,提示該㈣連接小”腦純介面正常;及若不相同, . 則提示該串列連接小系統介面不正常。 相較於習知技術,戶斤述串列連接小型電腦系統介面測 試測試系統及方法,利用秣體來取代硬體設備,減少成本, 有效對SAS介面進行測試。 【實施方式】修改圖2中的“測試系統”的字體;修改圖4中 的“埠”為“介面”。 η 如圖2所示,係本發明串列連接小型電腦系統介面測 試系統較佳實施例之運行環境圖。該測試系統100運行於 SAS控制器1上,該SAS控制器i包括多個SAS介面2, 該SAS控制器1中儲存有所述SAS介面2的屬性。每個 SAS介面2上包括發送引腳2〇〇和接收引腳2〇1,所述發 送引腳200及接收引腳2〇1連接於一個環回軟體狗 (loopback dongle) 3。該環回軟體狗3用於接收與該環回 ❹軟體狗3連接的所述發送引腳2〇〇所發送的資料包,並將 該資料包回發給連接該環回軟體狗3的接收引腳2〇1。 如圖3所示,係本發明圖丄中測試系統1〇〇之功能模 組圖。所述模組是具有特定功能的軟體程式段,該軟體儲 存於電私可§買儲存介質或其他儲存設備,可被電腦或其他 包含處理器的計算裝置執行,從而完成對串列連接小型電 腦系统介面測試的系列流程。所述測試系統 初〇包括:生 成杈組10、獲取模組12、發送模組14、接收模組W、儲 存模組18及檢查模組2〇。 201035749 伽^成模組1〇用於在所需要測試的SAS介面2生成一 .個虛擬錢體,該虛擬記憶體用於儲存資料包。 人獲取模組12用於獲取該sas介面2的屬性,該 上的屬性包括該s As介面2的識別字⑽―“⑽, ID ) 〇 、模組14用於透過所述SAS介面2的發送引腳2〇〇 心料包至環回軟體狗3。該資料包包括測試資料,該 ❹ SAS介面2的屬性及傳輸協定等資訊。 接收模組16用於透過所述SAS介面2的接收引腳2〇1 接收從3所回發的資料包。 儲存模組18用於將所接收的資料包儲存至所生成的 虛擬記憶體中。 次=^查模組2〇用於檢查所述接收到的資料包所包含的 負訊是否與所發送的資料包中包含的資訊相同。若相同, 表不$身料包即為所發送的資料包,該檢查模組20提示該 ❹ SAS ”面2正常。若不相同,則該檢查模組2〇提示該sas 介面2不正常。 如圖4所示,係本發明串列連接小型電腦系統介面測 試方法較佳實施例之方法流程圖。 步驟S40,生成模組10在需要測試的SAS介面2生 成一個虛擬記憶體’該虛擬記憶體用於儲存資料包。 步驟S41,獲取模组12獲取該SAS介面2的屬性, 該SAS介面2的屬性包括該SAS介面2的ID。 步驟S42,發送模組14透過所述SAS介面2的發送 201035749 引腳200發送資料包至環回軟體狗3。該資料包包括測試 資料、該SAS介面2的屬性及傳輸協定等資訊。 .步驟S43,接收模組16透過所述SAS介面2的接收 引腳201接收從環回軟體狗3所回發的資料包。 步驟S44,儲存模組18將所接收的資料包儲存至所生 成的虛擬記憶體中。 步驟S45,檢查模組20用於檢查所述接收到的資料包 所包含的資訊是否與所發送的資料包中包含的資訊相同。 若相同,進入步驟S46。若不相同,則進入步驟S47。 步驟S46,檢查模組20提示該SAS介面2正常。 步驟S47,檢查模組20提示該SAS介面2不正常。 最後所應說明的是,以上實施例僅用以說明本發明的 技術方案而非限制,儘管參照以上較佳實施例對本發明進 行了詳細說明,本領域的普通技術人員應當理解,可以對 本發明的技術方案進行修改或等同替換,而不脫離本發明 0 技術方案的精神和範圍。 【圖式簡單說明】 圖1係現有技術中串列連接小型電腦系統介面測試之 硬體架構圖。 圖2係本發明串列連接小型電腦系統介面測試系統較 佳實施例之運行環境圖。 圖3係本發明圖1中測試系統之功能模組圖。 圖4係本發明串列連接小型電腦系統介面測試方法較 佳實施例之流程圖。 201035749 【主要元件符號說明】 S AS控制器 1 測試糸統 100 SAS介面 2 發送引腳 200 接收引腳 201 Loopback dongle 3 生成模組 10 獲取模組 12 發送模組 14 接收模組 16 儲存模組 18 檢查模組 20201035749 VI. Description of the Invention: [Technical Field] The present invention relates to a test system and method, and more particularly to a test system and method for serially connecting a small computer system interface. [Prior Art] SAS (Serial Attached SCSI), the new generation of SCSI technology, and the popular seriai ATA (SΑΤΑ) 〇 hard disk are both using serial technology to achieve higher The transmission speed is improved, and the internal space is improved by shortening the connecting line. SAS is a new interface developed after the parallel SCSI interface. This interface is designed to improve the performance, usability, and expandability of the storage system and provides compatibility with SATA hard drives. SAS testing has become the primary issue in the application of this technology. Currently, the test architecture of S AS uses the hardware architecture shown in Figure 1. The controller needs to connect at least one SAS device to respond to the SAS controller. According to the test command, the SAS device can be a device such as a SAS expander. Due to the high cost of the SAS expander and the like, a large amount of hardware cost is required to complete the SAS test. SUMMARY OF THE INVENTION In view of the above, it is necessary to provide a serial connection small computer system interface test system and method, which can reduce the cost and effectively test the serial connection small computer system interface. A serial connection small computer system interface test system, wherein the serial connection small computer system interface to be tested is connected to a loopback software dog, and the 201035749 4 system includes a generation module for the string to be tested. Column connection. The small computer system interface generates a virtual memory for storing data packets; an acquisition module for obtaining attributes of the serial connection to the small computer system interface; and a transmission module for transmitting the medium The serial pin is connected to the sending pin of the small computer system interface to send a data packet to the loopback software dog, the data packet includes test data, the genus of the series connected to the small computer system interface, and the transmission protocol; the receiving module is used Receiving, by the serial connection receiving pin of the serial port and the computer system, a packet returned by the loopback software dog; and a storage module for storing the received data packet to the generated virtual package In the memory; and an inspection module, configured to check whether the received information package contains the same information as the information contained in the sent data package, right Similarly, the inspection module prompts the serial connection to the original of the small computer system interface. If not, the inspection module prompts that the serial connection to the small computer system interface is abnormal. A serial connection small computer system interface test method, the method includes the following steps: generating a virtual memory in the serial connection small computer system interface to be tested, the virtual memory is used for storing data packets; acquiring the string Linking the properties of the small computer system interface; sending a data packet to the loopback software dog connected to the serial connection small computer system interface through the serial connection of the small computer system interface, the data package includes test data, The serial connection to the small computer system interface attribute and transmission protocol 'receives the data packet sent back by the loopback software dog through the receiving pin of the serial connection small computer system interface; and stores the received data packet to In the generated virtual memory; check whether the information contained in the received data package 201035749 is the same as the information contained in the sent physical package; if the same, the prompt is to (4) connect the small "brain pure interface" Normal; and if not the same, it is suggested that the serial connection to the small system interface is not normal. Compared with the conventional technology, the household string Connect the small computer system interface test test system and method, use the carcass to replace the hardware device, reduce the cost, and effectively test the SAS interface. [Embodiment] Modify the font of the "test system" in Figure 2; modify Figure 4 The "埠" is the "interface". η is an operating environment diagram of a preferred embodiment of the serial connection small computer system interface test system of the present invention, as shown in Fig. 2. The test system 100 operates on the SAS controller 1, The SAS controller i includes a plurality of SAS interfaces 2, and the SAS controller 1 stores attributes of the SAS interface 2. Each SAS interface 2 includes a transmit pin 2A and a receive pin 2〇1, The transmit pin 200 and the receive pin 2〇1 are connected to a loopback dongle 3. The loopback software dog 3 is configured to receive the transmit pin 2 connected to the loopback software dog 3.资料 sent the data packet, and send the data packet back to the receiving pin 2〇1 connected to the loopback software dog 3. As shown in FIG. 3, it is a functional module of the test system 1 in the figure of the present invention. The module is a software program with specific functions. The software can be stored in a private storage device or other storage device, and can be executed by a computer or other computing device including a processor, thereby completing a series of processes for serially connecting small computer system interface tests. The method includes: a generating group 10, an obtaining module 12, a transmitting module 14, a receiving module W, a storage module 18, and an inspection module 2. The 201035749 is used for the SAS required for testing The interface 2 generates a virtual money body for storing the data package. The human acquisition module 12 is configured to acquire the attribute of the sas interface 2, and the upper attribute includes the identification word of the s As interface 2 (10) ― "(10), ID) 模组, module 14 is used to transmit the packet to the loopback software dog 3 through the transmit pin 2 of the SAS interface 2. The data package includes test data, information about the attributes and transmission protocols of the SAS interface 2. The receiving module 16 is configured to receive the data packet sent back from 3 through the receiving pin 2〇1 of the SAS interface 2. The storage module 18 is configured to store the received data package into the generated virtual memory. The sub-test module 2 is used to check whether the received data packet contains the same information as the information contained in the sent data packet. If it is the same, the physical package is the sent data packet, and the inspection module 20 prompts the ❹ SAS ” face 2 to be normal. If not, the inspection module 2 〇 indicates that the sas interface 2 is abnormal. As shown in FIG. 4, it is a flowchart of a method for a preferred embodiment of the serial connection small computer system interface testing method of the present invention. Step S40, the generating module 10 generates a virtual memory in the SAS interface 2 to be tested. The S12 is configured to obtain the attribute of the SAS interface 2, and the attribute of the SAS interface 2 includes the ID of the SAS interface 2. In step S42, the sending module 14 transmits the SAS interface 2 Send the 201035749 pin 200 to send the data packet to the loopback software dog 3. The data packet includes test data, attributes of the SAS interface 2, and transmission protocols. Step S43, the receiving module 16 receives the content through the SAS interface 2. The pin 201 receives the data packet sent back from the loopback software dog 3. In step S44, the storage module 18 stores the received data packet into the generated virtual memory. In step S45, the check module 20 is used for checking. The received data Whether the included information is the same as the information contained in the sent data packet. If yes, the process goes to step S46. If not, the process goes to step S47. In step S46, the checking module 20 prompts the SAS interface 2 to be normal. The inspection module 20 indicates that the SAS interface 2 is abnormal. It should be noted that the above embodiments are only for explaining the technical solutions of the present invention and are not limited thereto, although the present invention has been described in detail with reference to the above preferred embodiments, A person skilled in the art should understand that the technical solutions of the present invention may be modified or equivalently replaced without departing from the spirit and scope of the technical solution of the present invention. [Fig. 1] FIG. 1 is a prior art serial connection small computer Figure 2 is a diagram showing the operational environment of a preferred embodiment of the serial connection small computer system interface test system of the present invention. Figure 3 is a functional block diagram of the test system of Figure 1 of the present invention. A flow chart of a preferred embodiment of the method for testing the serial connection small computer system interface of the present invention. 201035749 [Description of main component symbols] S AS Controller 1 Test System 100 SAS Interface 2 Transmit Pin 200 Receive Pin 201 Loopback dongle 3 Generation Module 10 Acquisition Module 12 Transmitter Module 14 Receiver Module 16 Storage Module 18 Inspection Module 20

Claims (1)

201035749 七、申請專利範圍 “種串列連接小型電腦系統介面測試系統,所述需要測 、戈的串列連接小型電腦系統介面連接於環回軟體狗,該 測試系統包括: ^成模組’用於在所需制試的串列連接小型電腦系統 面生成一個虛擬記憶體,該虛擬記憶體用於儲存資料 包; 冑取模組’用於獲取該串列連接小型電腦系統介面的屬 性; 發送模組,用於透過所述串列連接小型電腦系統介面的 發缉引聊發送資料包至所述環回軟體狗,該資料包包括 測試資料、該串列連接小型電腦系統介面的屬性及傳輸 協定; 接收模組,用於透過所述串列連接小型電腦系統介面的 接收引腳接收所述環回軟體狗所回發的資料包; ❹赫馳’帛於將所純的資料包儲存至所生成的虛擬 記憶體中;及 檢查模組,用於檢查所述接收到的資料包所包含的資訊 是否與所發送的資料包中包含的資訊相同,若相同,該 檢查杈組提示該串列連接小型電腦系統介面正常,若不 相同則n玄檢查模組提示該串列連接小型電腦系統介面 不正常。 2·如申請專利範圍第!項所述之串列連接小型電腦系統 介面測試系統,所述串列連接小型電腦系統介面的屬性 10 201035749 包括該串列連接小型電腦㈣介㈣識別字。 3.種串列連接小型電腦系統介面測試方法,該方法包括 * 如下步驟: 在所需要測試的串列連接小型電腦系統介面生成一個 虛擬記憶體,該虛擬記憶體用於儲存資料包; 獲取該串列連接小型電腦系統介面的屬性; f過所述串列連接小型電腦純介面的發送引腳發送 〇 f料包至與該串列連接小型電腦线介面相連的環回 軟體狗’心料包包括測試資料、該串列連接小型電腦 糸統介面的屬性及傳輸協定; ^二述串列連接小型電腦系統介面的接收引腳接收 所述環回軟體狗所回發的資料包; 將所接收的資料包儲存至所生成的虛擬記憶體中; 檢查所述接收到的資料包所包含的資訊是否與所發送 的資料包中包含的資訊相同; 、 J f相同’提示該串列連接小型電腦系統介面正常;及 :不相同’則提示該串列連接小型電腦系統介面不正 常。 入申月,利範圍第3項所述之串列連接小型電腦系統 ”面測4方法’所述串列連接小型電腦系統介面的屬性 包括該串列連接小型電腦祕介面的識別字。201035749 VII. Patent application scope “A serial type connection small computer system interface test system, the need to measure, the serial connection of small computer system interface is connected to the loopback software dog, the test system includes: ^ into a module' Generating a virtual memory for storing the data package on the serial connection small computer system of the required test; the capture module is configured to acquire the attribute of the serial connection to the small computer system interface; The module is configured to send a data packet to the loopback software dog through the serial connection of the small computer system interface, where the data packet includes test data, attributes and transmissions of the serial connection small computer system interface a receiving module, configured to receive, by using the receiving pin of the serial connection small computer system interface, a data packet sent back by the loopback software dog; ❹Herchi's storing the pure data packet to The generated virtual memory; and an inspection module, configured to check whether the information contained in the received data package is related to the sent data package The information contained in the same information is the same. If the information is the same, the check group prompts that the serial connection to the small computer system interface is normal. If not, the n-inspection module prompts that the serial connection to the small computer system interface is abnormal. The serial device is connected to the small computer system interface test system, and the attribute of the serial connection small computer system interface 10 201035749 includes the serial connection small computer (four) medium (four) identification word. 3. serial connection small computer The system interface test method includes the following steps: generating a virtual memory in the serial connection small computer system interface to be tested, the virtual memory is used to store the data package; and the serial connection is connected to the small computer system interface. Attribute; f through the serial connection to the small computer pure interface of the send pin to send the 料f packet to the loopback software dog interface connected to the serial connection small computer line interface, the heart package includes test data, the serial connection The properties and transmission protocols of the small computer interface; ^Two serial connection to the reception of the small computer system interface Receiving, by the foot, the data packet sent back by the loopback software dog; storing the received data packet in the generated virtual memory; checking whether the information included in the received data packet is related to the sent data packet The information contained in the same is the same; J F is the same 'Prompt that the serial connection to the small computer system interface is normal; and: Not the same', indicating that the serial connection to the small computer system interface is not normal. Entering the Shenyue, the third category of the benefit range The serial connection of the small computer system "surface test 4 method" The attributes of the serial connection small computer system interface include the identification word of the serial connection small computer secret interface.
TW98109084A 2009-03-20 2009-03-20 System and method for testing serial attached scsi TWI438624B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW98109084A TWI438624B (en) 2009-03-20 2009-03-20 System and method for testing serial attached scsi

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW98109084A TWI438624B (en) 2009-03-20 2009-03-20 System and method for testing serial attached scsi

Publications (2)

Publication Number Publication Date
TW201035749A true TW201035749A (en) 2010-10-01
TWI438624B TWI438624B (en) 2014-05-21

Family

ID=44855971

Family Applications (1)

Application Number Title Priority Date Filing Date
TW98109084A TWI438624B (en) 2009-03-20 2009-03-20 System and method for testing serial attached scsi

Country Status (1)

Country Link
TW (1) TWI438624B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI475381B (en) * 2011-04-22 2015-03-01 Hon Hai Prec Ind Co Ltd Sas interface output signal detection device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI475381B (en) * 2011-04-22 2015-03-01 Hon Hai Prec Ind Co Ltd Sas interface output signal detection device

Also Published As

Publication number Publication date
TWI438624B (en) 2014-05-21

Similar Documents

Publication Publication Date Title
TWI386946B (en) Apparatus and method for memory card testing
EP2696534B1 (en) Method and device for monitoring quick path interconnect link
US8332551B2 (en) Compressed data managing system and method for circular buffer
RU2011131230A (en) DEVICE, METHODS AND TEST SYSTEMS FOR CONNECTED DEVICES IN A VEHICLE
CN104516843A (en) Non-mounted storage test device based on FPGA
TWI689813B (en) Embedded universal serial bus (usb) debug (eud) for multi-interfaced debugging in electronic systems
TW201227341A (en) Remote management systems and methods for servers, and computer program products thereof
CN101819550A (en) Interface testing system for serial connecting small computer system
CN108829619A (en) A kind of continuous topological structure of hard disk ID and hard disk ID localization method
CN108459850B (en) Method, device and system for generating test script
CN108170620A (en) A kind of server hard disk extension system and method, hard disk signal enhancing method
TWI270769B (en) Trace, debug method and system for a processor
JP2014191633A (en) Communication monitoring method, communication monitoring device and communication monitoring program
CN107678984A (en) USB port mapping method and computer-readable recording medium
CN106161132A (en) For the apparatus and method that storage network is tested
CN106528358A (en) Test method and system for USB (Universal Serial Bus) storage stability of route
TW201423387A (en) System and method for testing a plurality of SAS expanders synchronously
TW201027328A (en) Storage area network (SAN) link integrity tester
US9541921B2 (en) Measuring performance of an appliance
TW201035749A (en) System and method for testing serial attached SCSI
TWI338788B (en) An apparatus and method for testing sas channels
WO2014019231A1 (en) Memory configuration method and memory configuration management server
TW201027330A (en) Remote hardware inspection system and method
US20140325285A1 (en) Serial attached scsi expander and method for debugging faults thereof
US20090216517A1 (en) Dedicated simulator for testing a usb host solution

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees