TWI231122B - Method for balancing load of network interface card testing - Google Patents
Method for balancing load of network interface card testing Download PDFInfo
- Publication number
- TWI231122B TWI231122B TW91138068A TW91138068A TWI231122B TW I231122 B TWI231122 B TW I231122B TW 91138068 A TW91138068 A TW 91138068A TW 91138068 A TW91138068 A TW 91138068A TW I231122 B TWI231122 B TW I231122B
- Authority
- TW
- Taiwan
- Prior art keywords
- server
- network card
- network
- client
- nic
- Prior art date
Links
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
Description
ί號 91138068 A_L· 日 修正 【發明所屬之技術領域】 尤其關於一種採用伺 本發明關於一種網卡測試方法 服器/用戶端架構測試網卡的方法 【先前技術】 隨著電腦網路的不斷發展,越來越多的人接觸到了網 路。局域網屬於電腦網路中的一種,是一個提供資料交 換、資源分享的網路系統,而組成局域網的主要設備之一 就是網卡。網路介面卡(Network Interface Card)簡稱網 卡(N I C)。網卡為電腦之間的資料通訊提供物理連接。每 一台電腦一旦接入網路必定需要安裝網卡。 網卡是電腦網路中必不可少的基本設備,網卡出現故 障不只是影響了工作站本身,還常常影響到整個網路的正 常運行。目前對於網卡的測試方法很多,大多採用伺服器 /用戶端架構,習知的測試方法均為”多對一 ’’的連接方 式,即被測的多個網卡只對應同一個伺服器,與同一伺服 器連接測試。請參閱『第1圖』,『第1圖』係為習知的採 用伺服器/用戶端架構測試網卡之示意圖。圖中採用”多 對一”的連接方式時,n個網卡與一個伺服器1 〇相連接。當 多個用戶端發出測試請求時,若伺服器1 0處於忙碌狀態 時,大量的測試服務請求就得不到即時的回應,因而會造 成被測試端程式報錯,使在測試過程中經常由於網路擁擠 而產生錯誤。網卡故障引起的網路故障往往較難判斷,這 是因為網卡故障引起的網路故障現象各不相同,有故障現 象的設備往往並非是發生了故障的設備。在採用π多對ί 号 91138068 A_L · Day correction [Technical field to which the invention belongs] In particular, the present invention relates to a method for testing a network card using a server / client architecture based on the present invention. [Previous technology] With the continuous development of computer networks, More and more people are exposed to the Internet. A LAN is a type of computer network. It is a network system that provides data exchange and resource sharing. One of the main devices that make up a LAN is a network card. Network Interface Card is referred to as Network Card (N IC). The network card provides a physical connection for data communication between computers. Once each computer is connected to the network, a network card must be installed. The network card is an essential basic device in the computer network. The failure of the network card not only affects the workstation itself, but also often affects the normal operation of the entire network. At present, there are many test methods for network cards, most of which adopt server / client architecture. The conventional test methods are "many-to-one" connection mode, that is, the tested multiple network cards only correspond to the same server, which is the same as the same server. Server connection test. Please refer to "Figure 1". "Figure 1" is a schematic diagram of the conventional network card testing using server / client architecture. When the "many to one" connection method is used in the figure, n The network card is connected to a server 10. When multiple clients send test requests, if server 10 is busy, a large number of test service requests will not be responded in real time, which will cause the program under test to be tested. An error is reported, which often causes errors due to network congestion during the test. Network failures caused by network card failures are often difficult to determine. This is because network failures caused by network card failures are different, and devices with faults are often not Is a malfunctioning device. When using π many pairs
第6頁 1231122 案號 91138068 Λ_ 曰 修正 發明ί説明(2) ^ 一 π的連接方式,程式報錯的時候,測試人員還需檢查, 究竟是測試端程式的問題還是待測’網卡的問題。因此不僅 增加了測試人員的工作量,也浪費了大量的時間,嚴重的 影響了測試效率。 【發 卡測 行連 服器 電腦 網卡 服器 構, 服器 以指 擔, 忙碌 的測 產生 用於 詳細 明内 本發 試方 接測 本發 /用 接入 ,獲 ,並 對該 本發 /用 定不 同時 狀態 試端 的錯 生產 有關 說明 容】 明乃 法, 試, 明提 戶端 由複 得每 建立 複數 明提 戶端 同的 均衡 時, 程式 誤。 線上 本發 如下 為解決 多個網 從而提 供一種 架構, 數個伺 一塊網 該網卡 個網卡 供一種 的架構 伺月艮器 了用戶 大量的 報錯現 將測試 大批量 明的特 上述問題 卡可以與 高測試效 可均衡負 首先,將 服器計算 卡的I Ρ位 的配置參 同時進行 可均衡負 ,對於安 進行連接 端的負載 服務請求 象。並且 重點放在 的測試時 徵與實作 而提供一種可均衡負載的網 手工或自動配置的伺服器進 率。 載的網卡 安裝有複 機組成的 址,再為 數結構, 測試。 載的網卡 裝於用戶 測試,減 ,有效防 得不到即 大大的減 網卡硬體 ,使測試 ,茲配合 測試方法,採用伺 數個網卡的用戶端 網路中,然後掃描 每一塊網卡指定伺 根據該配置參數結 測試方法,採用伺 端上的多個網卡可 輕了伺服器的負 止了在伺服器處於 時的回應,而出現 少了因網路擁擠而 的測試上。特別應 效率顯著提高。 圖示作最佳實施例Page 6 1231122 Case No. 91138068 Λ_ Name Amendment Description (2) ^ a π connection method, when the program reports an error, the tester also needs to check whether it is a problem with the test program or the problem with the network card to be tested. Therefore, it not only increases the workload of testers, but also wastes a lot of time, which seriously affects the test efficiency. [Issuing, testing, and testing of the server and computer network card server structure, the server is a finger load, the busy test is generated for the detailed test of the local hair test party to test the hair / use access, and obtain the The description of the wrong production of the test terminal at different times is not clear. The program is wrong when trying to establish the same balance between the client and the client. The online issue is as follows to solve multiple networks to provide an architecture, several network cards, one network card, and one network card are provided for one architecture. The user has reported a large number of errors. Now the test will be tested in large quantities. The test effect can be balanced. First, the configuration parameters of the IP bit of the server computing card can be balanced at the same time, and the load service request of the connection side is performed for security. And the emphasis is on test characteristics and implementation to provide a load-balanced network manually or automatically configured server rate. The loaded network card is installed with an address composed of a repeater, and then the data structure is tested. The loaded network card is installed in the user test, which effectively reduces the hardware of the network card if it is not available. The test method is used in conjunction with the test method to use a network of client networks for several network cards, and then scan each network card to specify the server. According to the configuration parameter test method, the use of multiple network cards on the server can lighten the server's load and stop the response when the server is in place, and there is less testing due to network congestion. In particular, the efficiency should be significantly improved. Illustrated as the best embodiment
第7頁 1231122 __案號91138068_年月曰 修正_ 五、發明說明(3) 【實施方式】 下面結合附圖對本發明進行詳細說明。 網卡是網路的物理介質,在單機與網路間架起連接的 橋梁。本發明提供的可均衡負載的網卡測試方法,請參閱 『第2圖』,『第2圖』是可均衡負載的網卡測試方法之流 程圖。根據本發明提供的可均衡負載的網卡測試方法,採 用伺服器/用戶端架構,其可以指定伺服器進行連接測 試。首先,將安裝有複數個網卡的用戶端電腦接入由複數 個伺服器計算機組成的網路中(步驟2 1 1);然後選定一 伺服器掃描網卡(步驟2 1 2);獲得每一塊網卡的I P位址 (步驟2 1 3);在用戶端為每一塊網卡配置伺服器,並建 立該網卡的配置參數結構(步驟21 4);最後,根據該配 置參數結構,該指定伺服器對該複數個網卡同時進行測試 (步驟 215)。 , 其中,在上述根據配置參數結構,對複數個網卡同時 進行測試的過程中(見第3圖),首先,創建套接字 (Socket)(步驟31 1);然後,將該套接字與獲得的IP 位址綁定(B i nd)(步驟3 1 2);再與指定的伺服器建立 連接(步驟3 1 3);最後,根據協定(protoco 1 )類型進行 測試(步驟314)。 在採用伺服器/用戶端架構對網卡測試時,首先要將 多個用戶端電腦與伺服器端電腦建立連接,所述伺服器可 以為一個,也可以為複數個。本發明的特點在於,用戶端 可與多個伺服器建立連接。在對網卡進行測試時,用戶端 插有多塊網卡。安裝好網卡後,對用戶端進行掃描,通過Page 7 1231122 __ Case No. 91138068_ Year Month Amendment _ V. Description of the Invention (3) [Embodiment] The present invention will be described in detail below with reference to the drawings. The network card is the physical medium of the network, which bridges the connection between the single machine and the network. Please refer to "Figure 2" for the network card test method for load balancing provided by the present invention. "Figure 2" is a flowchart of the network card test method for load balancing. According to the network card test method for load balancing provided by the present invention, a server / client architecture is adopted, which can designate a server to perform a connection test. First, connect a client computer with multiple network cards to a network composed of multiple server computers (step 2 1 1); then select a server to scan the network cards (step 2 1 2); obtain each network card IP address (step 2 1 3); configure a server for each network card on the client side and establish the configuration parameter structure of the network card (step 21 4); finally, according to the configuration parameter structure, the designated server responds to The plurality of network cards are tested simultaneously (step 215). Wherein, in the process of simultaneously testing a plurality of network cards according to the configuration parameter structure (see FIG. 3), first, a socket is created (step 31 1); then, the socket is connected with The obtained IP address is bound (B ind) (step 3 1 2); then a connection is established with the designated server (step 3 1 3); finally, the test is performed according to the protocol (protoco 1) type (step 314). When the server / client architecture is used to test the network card, a plurality of client computers must first be connected to the server computer. The server may be one or a plurality of servers. The invention is characterized in that the client can establish connections with multiple servers. When testing the network card, the client has multiple network cards inserted. After installing the network card, scan the client and pass
掃描得出,裝在每一台用戶端的具體網卡的數目以及每個 網卡的I P位址。網卡都有一個唯一表示其位址的物理位 址,該位址寫在ROM中。再對掃描出的網卡——手工或自 動配置伺服器’同一用戶端上的多個網卡可以配置同一個 伺服器,也可分別配置不同的伺服器。這也是本發明的特 色所在。然後,為每一個網卡配置參數結構,這樣每一個 網卡就都有一個配置參數結構表。有了配置參數結構表, 就可以添加協定了。根據網路中不同的工作站,伺服器之 間能傳輸資料,源於協定的存在。為了使通信成功可靠, 網路中的所有主機都必須使用統一的約定。因而必須開發 嚴格的標準定義主機之間的每個包中每個字中的每一位。 這些標準來自於多個組織的努力,約定好通用的通信方 式’即協定。協定連同網卡一起,都是提供網路應用程式 間相互通信的設施。本發明可以根據配置參數為每個被測 試的網卡指定不同的協定。例如TCP/IP協定組 、Transmission Control Protocol / Internet Protocol 傳輪控制協定/互聯網路協定)中傳輸層的TCp協定或者 UDP協定。網卡在測試前還要創建套接字,套接字是通信 1基礎’ 一個套接字就是通訊的一端。將創建的套接字與 f私到的I P位址捆綁,這樣網卡就.可以與指定的伺服器進 =通訊。之後,就可以相互發送資料了。請參閱『第4 圃 J 酽笛 /1回 禾4圖』是本發明該複數個網卡同時進行具體測試 程圖 把資料Ζ °、、用卡所完成的工作就是從電腦獲得資料’然後 路中其他碼成為特定格式通過網路連接線(網線)發送到網 的網卡上,當另一端的網卡接受到這些資料,它The scan shows the number of specific network cards installed on each client and the IP address of each network card. The network card has a physical address that uniquely represents its address, which is written in ROM. Then for the scanned network card-manually or automatically configure the server, multiple network cards on the same client can be configured with the same server or different servers. This is also a feature of the present invention. Then, configure the parameter structure for each network card, so that each network card has a configuration parameter structure table. With the configuration parameter structure table, you can add a contract. According to the different workstations in the network, the server can transfer data between the servers due to the existence of the protocol. In order for communication to be successful and reliable, all hosts on the network must use a uniform convention. Therefore, strict standards must be developed to define every bit in every word in every packet between hosts. These standards come from the efforts of multiple organizations to agree on a common communication method, or agreement. Together with the network card, the protocol is a facility that provides communication between network applications. The present invention can specify different protocols for each tested network card according to configuration parameters. For example, TCP / IP protocol group, Transmission Control Protocol / Internet Protocol (Transmission Control Protocol / Internet Protocol) TCP or UDP protocol at the transport layer. The network card also needs to create a socket before testing. The socket is the basis of communication. A socket is the end of communication. Bind the created socket to the private IP address of f, so that the network card can communicate with the specified server. After that, you can send information to each other. Please refer to the "4th figure of the garden J 酽 flute / 1 back to the Wo 4" is the specific test process map of the plurality of network cards of the present invention. The data Z °, the work done with the card is to obtain data from the computer 'and then on the road The other codes become a specific format and are sent to the network card through the network cable (network cable). When the other network card receives these data, it
案號 91138068 Τ潑哪説明(5 ) 年 月 曰 修正 又把特定格式的資料轉換為電腦理解的資料格式交給電腦 處理。採用伺服器/用戶端架構進行測試,首先用戶端向 伺服器端發送資料(步驟4 1 1),該伺服器端接收該資 料,並將其原樣返回給該用戶端(步驟4 1 2 ),該用戶端接 收到返回的資料後,將其與發送的資料進行比較(步驟 413),根據比較結果得出測試結論(步驟4 1 4 )。 本發明提供的可均衡負載的網卡測試方法,既可使用 多個伺服器的手段來均衡測試系統中的負載,即被測網卡 可以利用配置模組的進行參數配置,選擇多對一(即多個網 卡對應一個伺服器)的連接形式;也可以選擇一對一的形 式(即一個網卡對應於一個伺服器)。當然,可以採用以 上兩種方式混合的方法。 以上所述者,僅為本創作其中的較佳實施例而已,並 非用來限定本創作的實施範圍;即凡依本創作申請專利範 圍所作的均等變化與修飾,皆為本創作專利範圍所涵蓋。Case No. 91138068 Explanation (5) year, month, month, and month of amendment. The data in a specific format was converted to a computer-understood data format for computer processing. The server / client architecture is used for testing. First, the client sends data to the server (step 4 1 1). The server receives the data and returns it to the client as it is (step 4 1 2). After receiving the returned data, the client compares it with the sent data (step 413), and draws a test conclusion based on the comparison result (step 4 1 4). The network card test method for load balancing provided by the present invention can both use multiple servers to balance the load in the test system, that is, the network card under test can use the configuration module to perform parameter configuration and select many-to-one (that is, multiple Each network card corresponds to a server); you can also choose one-to-one mode (that is, a network card corresponds to a server). Of course, you can use a mixture of the above two methods. The above are only the preferred embodiments of this creation, and are not intended to limit the scope of implementation of this creation; that is, all equivalent changes and modifications made in accordance with the scope of the patent application for this creation are covered by the scope of this creation patent .
1231122 ;丨;案號91138068_年月曰 修正_ 圖式簡單說明 【圖式簡單說明】 第1圖是習知的採用伺服器/用戶端架構測試網卡之 不意圖, 第2圖是本發明之可均衡負載的網卡測試方法之流程 圖; 第3圖是本發明中根據該配置參數結構,對該複數個 網 卡 同時進行 測 試 之 流 程 圖 及 第4圖 是本發明中根據協定類型進行具體測試之流程 圖 〇 [ 圖 式符號說 明 ] 1( ) 伺 服 器 步 驟 211 將 安 裝 有 複 數 個 網 卡的用 戶 端 電 腦 接 入由複數 個 伺 服 器 計 算 機 組 成的網 路 中 步 驟 212 掃 描 網 卡 步 驟 213 獲 得 每 一 塊 網 卡 的 I P位址 步 驟 214 為 每 一 塊 網 卡 指 定 伺服器 並 建 立 該 網卡的配 置 參 數 結 構 步 驟 215 根 據 該 配 置 參 數 結 構,對 該 複 數 個 網 卡同時進 行 測 試 步 驟 311 創 建 套 接 字 步 驟 312 將 該 套 接 字 與 獲 得 的I P地 址 綁 定 步 驟 313 與 指 定 的 伺 服 器 建 立連接 步 驟 314 根 據 協 定 類 型 進 行 測試 步 驟 411 用 戶 端 向 伺 服 器 端 發送資 料1231122; 丨; Case No. 91138068 _ year and month amend _ simple illustration [Schematic description] Figure 1 is the conventional intention to test the network card using the server / client architecture, Figure 2 is the invention Flow chart of a network card test method capable of balancing load; FIG. 3 is a flowchart of testing a plurality of network cards at the same time according to the configuration parameter structure in the present invention, and FIG. 4 is a specific test of the present invention according to a protocol type Flowchart 〇 [Illustration of Graphical Symbols] 1 () Server Step 211 Connect a client computer with multiple network cards to a network composed of multiple server computers Step 212 Scan network cards Step 213 Get each network card The IP address step 214 specifies a server for each network card and establishes the configuration parameter structure of the network card. Step 215 According to the configuration parameter structure, the plurality of network cards are performed simultaneously. Test step 311 to create sockets step 312 the sockets and obtain the I P address bindings step 313 with the specified servo device to establish a connection step 314 411 is transmitted to servo-side data agreement type carry out the test step with client-owned materials
第11頁Page 11
1231122 、': '丨、 案號Θ1138068_年月日__ 圖式簡單說明 步驟4 1 2 該伺服器端接收該資料,並將其原樣返回給該 用戶端 步驟4 1 3 該用戶端接收到返回的資料後,將其與發送的 資料進行比較 步驟4 1 4 根據比較結果得出測試結論1231122 、 ':' 丨, Case No. Θ1138068_ 年月 日 __ Schematic description step 4 1 2 The server receives the data and returns it to the client as it is. Step 4 1 3 The client receives After returning the data, compare it with the data sent. Step 4 1 4 Based on the comparison result, draw a test conclusion.
第12頁Page 12
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW91138068A TWI231122B (en) | 2002-12-31 | 2002-12-31 | Method for balancing load of network interface card testing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW91138068A TWI231122B (en) | 2002-12-31 | 2002-12-31 | Method for balancing load of network interface card testing |
Publications (2)
Publication Number | Publication Date |
---|---|
TW200412071A TW200412071A (en) | 2004-07-01 |
TWI231122B true TWI231122B (en) | 2005-04-11 |
Family
ID=36086395
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW91138068A TWI231122B (en) | 2002-12-31 | 2002-12-31 | Method for balancing load of network interface card testing |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI231122B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102377599B (en) * | 2010-08-27 | 2016-04-06 | 赛恩倍吉科技顾问(深圳)有限公司 | Method for sensing operation of network interfaces |
CN105429816A (en) * | 2015-10-28 | 2016-03-23 | 曙光信息产业(北京)有限公司 | Network interface card test system |
CN112596960B (en) * | 2020-11-25 | 2023-06-13 | 新华三云计算技术有限公司 | Distributed storage service switching method and device |
CN112653595B (en) * | 2020-12-15 | 2022-08-12 | 成都海光集成电路设计有限公司 | Chip network function testing method and device, storage medium and equipment |
-
2002
- 2002-12-31 TW TW91138068A patent/TWI231122B/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
TW200412071A (en) | 2004-07-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7246174B2 (en) | Method and system for accessing and managing virtual machines | |
US6601020B1 (en) | System load testing coordination over a network | |
US7257817B2 (en) | Virtual network with adaptive dispatcher | |
US7440415B2 (en) | Virtual network addresses | |
US6253325B1 (en) | Apparatus and method for securing documents posted from a web resource | |
CN103873449B (en) | Method for network access and system | |
US9525848B2 (en) | Domain trusted video network | |
US20120166647A1 (en) | Apparatus for configuring virtual network using network virtualization technique and method thereof | |
CN110166544B (en) | Load balancing application creation method and device, computer equipment and storage medium | |
CN1261890C (en) | Network card testing method capable of balancing loads | |
CN111447302B (en) | Method and system for simulating multi-client to test DHCP (dynamic host configuration protocol) by using raw socket | |
CN108833472B (en) | System is established in the connection of cloud host | |
CN113242299A (en) | Disaster recovery system, method, computer device and medium for multiple data centers | |
CN100568826C (en) | A kind of performance test methods of authentication service and device | |
CN110392066A (en) | A kind of method and apparatus of access service | |
TWI231122B (en) | Method for balancing load of network interface card testing | |
CN110380930B (en) | Test method, test device, server and computer storage medium | |
US8447839B2 (en) | Three-layer web management protocol device emulation | |
CN115250206B (en) | Shared risk warning method and electronic equipment | |
CN116455869A (en) | Method and system for efficiently configuring public network domain name based on Kubernetes | |
CN105262628A (en) | Campus dormitory network management system based on multi-operator link sharing | |
WO2021258861A1 (en) | Operation processing method and a related device | |
CN109286692A (en) | A kind of method of configuration server IPMI static ip address | |
CN116264538A (en) | Data processing method, device, equipment and computer storage medium | |
WO2010149059A1 (en) | Apparatus, system and method for large telephone traffic test |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |