TWI396403B - Method for testing switching speed of a network interface card - Google Patents

Method for testing switching speed of a network interface card Download PDF

Info

Publication number
TWI396403B
TWI396403B TW97133939A TW97133939A TWI396403B TW I396403 B TWI396403 B TW I396403B TW 97133939 A TW97133939 A TW 97133939A TW 97133939 A TW97133939 A TW 97133939A TW I396403 B TWI396403 B TW I396403B
Authority
TW
Taiwan
Prior art keywords
interface card
network interface
testing
rate
setting
Prior art date
Application number
TW97133939A
Other languages
Chinese (zh)
Other versions
TW201012127A (en
Inventor
Junelin Huang
Chienlin Chen
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to TW97133939A priority Critical patent/TWI396403B/en
Publication of TW201012127A publication Critical patent/TW201012127A/en
Application granted granted Critical
Publication of TWI396403B publication Critical patent/TWI396403B/en

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Description

測試網路介面卡切換速率之方法Method for testing network interface card switching rate

本發明是有關於一種網路介面卡,且特別是有關於一種測試網路介面卡切換速率之方法。The present invention relates to a network interface card, and more particularly to a method of testing a network interface card switching rate.

在一般工作環境中獨立的電腦,比如是個人電腦,或是可增加攜帶方便性的筆記型電腦,藉由連結網路的連結,可迅速地改善其工作效能。此電腦網路允許網路上的電腦與另一台電腦分享其資源。例如,在儲存區域的檔案,印表機,數據機,以及其他可分享的資源。Independent computers in a general work environment, such as personal computers, or laptops that increase portability, can quickly improve their performance by connecting to a network. This computer network allows computers on the network to share their resources with another computer. For example, files in storage areas, printers, modems, and other resources that can be shared.

在電腦之間共用的資料,可經由物理性的網路連結,以封包(packet)的形式傳送,並且由接收的電腦讀取。此封包形式的網路資料可能是用於分享的資源、資料比如是檔案,或是其他資訊。The data shared between the computers can be transmitted in the form of a packet via a physical network connection and read by the receiving computer. The network data in the form of this packet may be a resource for sharing, such as a file or other information.

當傳送網路資料封包到其他的電腦時,常使用網路介面卡(network adapter),監控封包的連結通道。透過作業系統(Operating System)的運作,在節點電腦上所跑的軟體構件,可以管理及控制網路介面卡的操作。目前在Windows平臺下進行網路介面卡的切換速率必須透過裝置管理員以人工手動的方式完成,所耗費的人力與時間甚多,且測試過程中,網路介面卡停用到啟用的時間值目前是依賴手動碼表測試,在長時間的反覆測試下,人為因素的誤差會越來越明顯。When transmitting network data packets to other computers, a network adapter is often used to monitor the connection path of the packets. Through the operation of the operating system (Operating System), the software components running on the node computer can manage and control the operation of the network interface card. At present, the switching rate of the network interface card on the Windows platform must be manually and manually performed by the device administrator, which requires a lot of manpower and time, and the network interface card is deactivated to the enabled time value during the test. At present, it relies on the manual code table test. Under the long-term repeated test, the error of human factors will become more and more obvious.

因此,如何排除測試過程中因人為操作所造成的誤差,並有效地減少測試網路介面卡切換速率所花費的時間與步驟,便成為相當重要的課題。Therefore, how to eliminate the error caused by human operation during the test and effectively reduce the time and steps taken to test the network interface card switching rate becomes a very important issue.

因此本發明的目的就是在提供一種測試網路介面卡切換速率之方法,用以減少測試網路卡切換速率時人工操作所花費的時間,並降低人為操作造城的誤差。Therefore, the object of the present invention is to provide a method for testing the switching rate of a network interface card, which is used to reduce the time taken for manual operation when testing the network card switching rate, and to reduce the error of man-made operation.

本發明提出一種測試網路介面卡切換速率之方法,包含:發出一停用指令予一網路介面卡;設定網路介面卡之一速率模式;發出一啟用指令予網路介面卡;網路介面卡獲得一IP位址;以及紀錄網路介面卡從設定速率模式起至獲得IP位址之啟用所需時間。其中可利用一驅動程式開發套件(windows development kit;WDDK)發出停用指令及啟用指令予網路介面卡。設定網路介面卡之一速率模式之步驟包含變更網路介面卡之一速率登錄碼,其可利用一軟體開發套件(software development kit;SDK)控制。測試網路介面卡切換速率之方法更包含在發出啟用指令予網路介面卡後,等待一延遲時間,延遲時間約為3-5秒。其中設定網路介面卡之一速率模式之步驟包含針對一特定速率模式反覆設定,或者可對複數個速率模式輪流切換。The invention provides a method for testing a network interface card switching rate, comprising: issuing a disable command to a network interface card; setting a rate mode of the network interface card; issuing an enable command to the network interface card; The interface card obtains an IP address; and records the time required for the network interface card to start from the set rate mode until the IP address is enabled. A driver development kit (WDDK) can be used to issue a disable command and an enable command to the network interface card. The step of setting the rate mode of the network interface card includes changing the rate entry code of the network interface card, which can be controlled by a software development kit (SDK). The method for testing the network interface card switching rate further includes waiting for a delay time after the activation command is issued to the network interface card, and the delay time is about 3-5 seconds. The step of setting a rate mode of the network interface card includes repeatedly setting for a specific rate mode, or switching the plurality of rate modes in turn.

本發明可透過驅動程式開發套件(WDDK)程式控制啟用/停用網路介面卡,並透過軟體開發套件(SDK)設定 網路介面卡的速率登錄碼,以更改網路介面卡的速率模式,如此可大幅減少測試人員手動操作所花費的時間,並提高時間計算的精確度。The invention can enable/disable the network interface card through the driver development kit (WDDK) program and set through the software development kit (SDK). The rate code of the network interface card to change the rate mode of the network interface card, which greatly reduces the time taken by the tester to manually operate and improves the accuracy of time calculation.

以下將以圖式及詳細說明清楚說明本發明之精神,任何所屬技術領域中具有通常知識者在瞭解本發明之較佳實施例後,當可由本發明所教示之技術,加以改變及修飾,其並不脫離本發明之精神與範圍。The spirit and scope of the present invention will be apparent from the following description of the preferred embodiments of the invention. The spirit and scope of the invention are not departed.

本發明之測試網路介面卡切換速率之方法可利用驅動程式開發套件(windows development kit;WDDK)與軟體開發套件(software development kit;SDK)所提供的函式(function)與方法(method)達成與電腦系統硬體溝通(hardware communication)與Windows系統登錄碼(registry)之調用,以實現在Windows平臺下自動切換網路介面卡速率,達成半自動測試測試網路介面卡切換速率的目的。其中,軟體發展套件(SDK)可用以切換網路介面卡的速率模式,驅動程式開發套件(WDDK)可用以啟用與停用網路介面卡,並計算其間所花費的時間。本發明之測試網路介面卡切換速率的方法可將人工作業時複雜的步驟簡化,並排除過去採用人工計時的人為誤差,進而有效地提高測試網路介面卡切換速率的效率。The method for testing the switching speed of the network interface card of the present invention can be achieved by using a function and a method provided by a windows development kit (WDDK) and a software development kit (SDK). It is used to communicate with the computer system hardware communication and the Windows system registration code (registry) to automatically switch the network interface card rate under the Windows platform, and achieve the purpose of semi-automatic testing and testing the network interface card switching rate. Among them, the Software Development Kit (SDK) can be used to switch the rate mode of the network interface card, and the Driver Development Kit (WDDK) can be used to enable and disable the network interface card and calculate the time spent between them. The method for testing the switching rate of the network interface card of the invention can simplify the complicated steps in the manual operation and eliminate the human error in the manual counting, thereby effectively improving the switching rate of the test network interface card.

參照第1圖,其係繪示本發明之測試網路介面卡切換速率之方法一較佳實施例之流程圖。步驟110為設定 網路介面卡的切換次數,步驟120為呼叫驅動程式開發套件(WDDK)發出一停用指令予網路介面卡,步驟130為系統等待一延遲時間,以完全地停用網路介面卡。接著步驟140為透過軟體發展套件(SDK)設定網路介面卡的速率登錄機碼(speedy registry),以設定本次測試時網路介面卡的速率模式。Referring to FIG. 1, a flow chart of a preferred embodiment of a method for testing a network interface card switching rate of the present invention is shown. Step 110 is setting The number of network interface card switchings, step 120 sends a disable command to the network interface card for the Call Driver Development Kit (WDDK), and step 130 waits for a delay time for the system to completely disable the network interface card. Next, step 140 is to set a speedy registry of the network interface card through the software development kit (SDK) to set the rate mode of the network interface card during the test.

接著,步驟150為呼叫驅動程式開發套件(WDDK)發出一啟用指令予網路介面卡,接著步驟160中,網路介面卡獲得一IP位址後,視為完全地啟用該網路介面卡,步驟170為紀錄網路介面卡自設定速率模式起至獲得IP位址所花費的啟用所需時間。步驟180為判斷是否完成測試次數,若完成設定之測試次數,則結束此程式,若步驟180中未達到所設定的測試次數,則再次回到步驟120,呼叫驅動程式開發套件(WDDK)發出停用指令予網路介面卡,並重複步驟120至步驟170,直到完成在步驟110中所設定之測試次數為止。Next, in step 150, an activation command is issued to the call driver development kit (WDDK) to the network interface card. Then, in step 160, after the network interface card obtains an IP address, the network interface card is deemed to be completely enabled. Step 170 is to record the time required for the network interface card to start from the set rate mode until the IP address is obtained. Step 180 is to determine whether the number of tests is completed. If the set number of tests is completed, the program ends. If the set number of tests is not reached in step 180, then return to step 120 again, and the Call Driver Development Kit (WDDK) issues a stop. The command is applied to the network interface card, and steps 120 through 170 are repeated until the number of tests set in step 110 is completed.

由於系統在啟用/停用網路介面卡需要花費較多的時間,若是在系統尚未完全地處理網路介面卡停用指令時,系統即再次下達啟用指令,則會造成系統對尚未關閉的網路介面卡造成看似很快就被啟用的誤判。為避免此種情形,本方法在步驟120發出指令停用網路介面卡後,透過步驟130使系統等待一段處理延遲時間,確保網路介面卡完全地停用後,再行計算網路介面卡啟用所需花費的時間。此段延遲時間約可設定在3-5秒之間。Since the system takes more time to enable/disable the network interface card, if the system does not completely process the network interface card deactivation command, the system will release the enable command again, which will cause the system to not close the network. The road interface card creates a misjudgment that appears to be activated very quickly. In order to avoid this situation, after the method is instructed to disable the network interface card in step 120, the system waits for a processing delay time in step 130 to ensure that the network interface card is completely deactivated, and then calculates the network interface card. The time it takes to enable it. This delay time can be set between approximately 3-5 seconds.

步驟140中可透過軟體開發套件(SDK)設定網路介面卡本次測試的速率模式。舉例而言,網路介面卡的速率模式可包含有10GB全多工(full duplex)、100GB全多工、10GB半多工(half duplex)、100GB半多工等組合。軟體開發套件(SDK)可針對特定速率模式進行切換,即每一次測試都是測試網路介面卡在該特定速率模式下的切換速率。或者,軟體開發套件(SDK)可對多個或是所有的速率模式進行循環切換,以測試網路介面卡在不同速率模式之切換的速率。In step 140, the software development kit (SDK) can be used to set the rate mode of the network interface card for this test. For example, the rate mode of the network interface card may include a combination of 10 GB full duplex, 100 GB full multiplex, 10 GB half duplex, 100 GB half multiplex, and the like. The Software Development Kit (SDK) can be switched for a specific rate mode, that is, each test tests the switching rate of the network interface card at that particular rate mode. Alternatively, the Software Development Kit (SDK) can cycle through multiple or all rate modes to test the rate at which the network interface card switches between different rate modes.

本方法可紀錄網路介面卡每一次的啟用所需時間,其中網路介面卡的啟用所需時間是從步驟140之切換網路介面卡之速率模式起算,至步驟160網路介面卡獲得IP位址為止。步驟170所紀錄之網路介面卡的啟用所需時間,可在達成測試次數之後整理彙出,以供工程師瞭解網路介面卡在經過多次切換速率之後,系統的處理與反應速度(processing & responding time)是否會有延遲(delay)或是反應停滯(idle)的現象,進而確認網路介面卡在Windows系統下的穩定性。The method can record the time required for each activation of the network interface card. The time required for the activation of the network interface card is from the rate mode of the network interface card in step 140, and the IP address of the network interface card is obtained in step 160. The address is up. The time required to enable the network interface card recorded in step 170 can be reorganized after the number of tests is reached, so that the engineer can understand the processing and response speed of the network interface card after multiple switching rates (processing & processing Responding time) Whether there is delay or idling, which confirms the stability of the network interface card under Windows.

由上述本發明較佳實施例可知,應用本發明具有下列優點。本發明可透過驅動程式開發套件(WDDK)程式控制啟用/停用網路介面卡,並透過軟體開發套件(SDK)設定網路介面卡的速率登錄碼,以更改網路介面卡的速率模式,如此可大幅減少測試人員手動操作所花費的時間,並提高時間計算的精確度。It will be apparent from the above-described preferred embodiments of the present invention that the application of the present invention has the following advantages. The invention can enable/disable the network interface card through the driver development kit (WDDK) program, and set the rate login code of the network interface card through the software development kit (SDK) to change the rate mode of the network interface card. This greatly reduces the time it takes for the tester to manually operate and increases the accuracy of the time calculation.

雖然本發明已以一較佳實施例揭露如上,然其並非用以限定本發明,任何熟習此技藝者,在不脫離本發明之精神和範圍內,當可作各種之更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。Although the present invention has been described above in terms of a preferred embodiment, it is not intended to limit the invention, and it is obvious to those skilled in the art that various changes and modifications can be made without departing from the spirit and scope of the invention. The scope of the invention is defined by the scope of the appended claims.

110~180‧‧‧步驟110~180‧‧‧Steps

為讓本發明之上述和其他目的、特徵、優點與實施例能更明顯易懂,所附圖式之詳細說明如下:第1圖,其係繪示本發明之測試網路介面卡切換速率之方法一較佳實施例之流程圖。The above and other objects, features, advantages and embodiments of the present invention will become more <RTIgt; <RTIgt; </ RTI> <RTIgt; </ RTI> <RTIgt; A flow chart of a preferred embodiment of the method.

110~180‧‧‧步驟110~180‧‧‧Steps

Claims (9)

一種測試網路介面卡切換速率之方法,包含:發出一停用指令予一網路介面卡;設定該網路介面卡之一速率模式;發出一啟用指令予該網路介面卡;該網路介面卡獲得一網際網路協定(IP)位址;以及紀錄該網路介面卡從設定該速率模式起至獲得該網際網路協定位址之一啟用所需時間。 A method for testing a network interface card switching rate includes: issuing a disable command to a network interface card; setting a rate mode of the network interface card; and issuing an enable command to the network interface card; the network The interface card obtains an Internet Protocol (IP) address; and records the time required for the network interface card to be activated from setting the rate mode to obtaining one of the Internet Protocol addresses. 如申請專利範圍第1項所述之測試網路介面卡切換速率之方法,其中係利用一驅動程式開發套件(windows development kit;WDDK)發出該停用指令予該網路介面卡。 The method for testing a network interface card switching rate according to claim 1, wherein the deactivation command is issued to the network interface card by using a driver development kit (WDDK). 如申請專利範圍第1項所述之測試網路介面卡切換速率之方法,其中係利用一驅動程式開發套件(windows development kit;WDDK)發出該啟用指令予該網路介面卡。 The method for testing a network interface card switching rate according to the first aspect of the patent application, wherein the activation command is issued to the network interface card by using a driver development kit (WDDK). 如申請專利範圍第1項所述之測試網路介面卡切換速率之方法,其中設定該網路介面卡之該速率模式之步驟包含變更該網路介面卡之一速率登錄碼。 The method for testing a network interface card switching rate according to claim 1, wherein the step of setting the rate mode of the network interface card comprises changing a rate registration code of the network interface card. 如申請專利範圍第1項所述之測試網路介面卡切換速率之方法,其中設定該網路介面卡之該速率模式之步驟係利用一軟體開發套件(software development kit;SDK)控制。 The method for testing a network interface card switching rate according to claim 1, wherein the step of setting the rate mode of the network interface card is controlled by a software development kit (SDK). 如申請專利範圍第1項所述之測試網路介面卡切換速率之方法,其中更包含在發出該啟用指令予該網路介面卡後,等待一延遲時間。 The method for testing a network interface card switching rate according to claim 1, wherein the method further comprises: waiting for a delay time after issuing the enabling command to the network interface card. 如申請專利範圍第6項所述之測試網路介面卡切換速率之方法,其中等待該延遲時間之步驟為等待3-5秒。 A method for testing a network interface card switching rate as described in claim 6 wherein the step of waiting for the delay time is 3-5 seconds. 如申請專利範圍第1項所述之測試網路介面卡切換速率之方法,其中設定該網路介面卡之該速率模式之步驟包含針對一特定速率模式反覆設定。 The method for testing a network interface card switching rate according to claim 1, wherein the step of setting the rate mode of the network interface card comprises repeatedly setting for a specific rate mode. 如申請專利範圍第1項所述之測試網路介面卡切換速率之方法,其中設定該網路介面卡之該速率模式之步驟包含對複數個速率模式輪流切換設定。 The method for testing a network interface card switching rate according to claim 1, wherein the step of setting the rate mode of the network interface card comprises alternately switching settings for a plurality of rate modes.
TW97133939A 2008-09-04 2008-09-04 Method for testing switching speed of a network interface card TWI396403B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW97133939A TWI396403B (en) 2008-09-04 2008-09-04 Method for testing switching speed of a network interface card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW97133939A TWI396403B (en) 2008-09-04 2008-09-04 Method for testing switching speed of a network interface card

Publications (2)

Publication Number Publication Date
TW201012127A TW201012127A (en) 2010-03-16
TWI396403B true TWI396403B (en) 2013-05-11

Family

ID=44828878

Family Applications (1)

Application Number Title Priority Date Filing Date
TW97133939A TWI396403B (en) 2008-09-04 2008-09-04 Method for testing switching speed of a network interface card

Country Status (1)

Country Link
TW (1) TWI396403B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111464378B (en) * 2020-03-13 2021-12-07 苏州浪潮智能科技有限公司 Server network card double-network-speed testing method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070104110A1 (en) * 2005-11-08 2007-05-10 De-Hua Dang System and method for testing a network interface card
TW200807954A (en) * 2006-07-21 2008-02-01 Inventec Corp A method for testing network interface card (NIC)
US20080089340A1 (en) * 2006-10-13 2008-04-17 Hon Hai Precision Industry Co., Ltd. System and method for testing transmission speeds of network interface cards in a computer
TW200820672A (en) * 2006-10-25 2008-05-01 Inventec Corp A network interface card testing system and method
TWI296471B (en) * 2005-11-11 2008-05-01 Hon Hai Prec Ind Co Ltd System and method for testing a network card
TW200820671A (en) * 2006-10-16 2008-05-01 Hon Hai Prec Ind Co Ltd System and method for testing the transmission speed of network interface cards
TW200826555A (en) * 2006-12-15 2008-06-16 Inventec Corp Method for network card transmission testing

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070104110A1 (en) * 2005-11-08 2007-05-10 De-Hua Dang System and method for testing a network interface card
TWI296471B (en) * 2005-11-11 2008-05-01 Hon Hai Prec Ind Co Ltd System and method for testing a network card
TW200807954A (en) * 2006-07-21 2008-02-01 Inventec Corp A method for testing network interface card (NIC)
US20080089340A1 (en) * 2006-10-13 2008-04-17 Hon Hai Precision Industry Co., Ltd. System and method for testing transmission speeds of network interface cards in a computer
TW200820671A (en) * 2006-10-16 2008-05-01 Hon Hai Prec Ind Co Ltd System and method for testing the transmission speed of network interface cards
TW200820672A (en) * 2006-10-25 2008-05-01 Inventec Corp A network interface card testing system and method
TW200826555A (en) * 2006-12-15 2008-06-16 Inventec Corp Method for network card transmission testing

Also Published As

Publication number Publication date
TW201012127A (en) 2010-03-16

Similar Documents

Publication Publication Date Title
US5838919A (en) Methods, systems and computer program products for endpoint pair based communications network performance testing
US5937165A (en) Systems, methods and computer program products for applications traffic based communications network performance testing
US5881237A (en) Methods, systems and computer program products for test scenario based communications network performance testing
JP5132770B2 (en) Dynamic router configuration to find the best DHCP server
US9497100B2 (en) Methods, systems, and computer readable media for providing fuzz testing functionality
JP2005006303A (en) Virtual network address
TW201248395A (en) Power supply test system and method
JP2005196733A (en) Remote start method and remote start control device of broadband network by ip technology
US8275925B2 (en) Methods and apparatus for improved serial advanced technology attachment performance
WO2019178957A1 (en) Distributed system test method and device, computer device and storage medium
CN102981949A (en) Method for on-line automatic tests of server
CN111597099A (en) Non-invasive simulation method for monitoring application running quality deployed on cloud platform
US8804543B2 (en) Test method for network system
CN116056126A (en) Simulation test method, simulation test device, computer equipment and computer readable storage medium
TWI396403B (en) Method for testing switching speed of a network interface card
US11621908B2 (en) Methods, systems and computer readable media for stateless service traffic generation
JP4443200B2 (en) Information system
TW201432439A (en) System and method for test via network
TW201429189A (en) Method and device for testing network equipment
US11729254B2 (en) Patternless prompt detection of command completion
CN116302006A (en) Thermal upgrade method of simulator and related device
JP7042624B2 (en) Methods and systems for auditing for evaluation platforms
JP4208493B2 (en) Load test system for network server
WO2021258861A1 (en) Operation processing method and a related device
TW201438486A (en) Method and apparatus for estimating the performance of a broadband network

Legal Events

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