TWI387260B - A method of using a network switch as a network device to test a device - Google Patents

A method of using a network switch as a network device to test a device Download PDF

Info

Publication number
TWI387260B
TWI387260B TW97111872A TW97111872A TWI387260B TW I387260 B TWI387260 B TW I387260B TW 97111872 A TW97111872 A TW 97111872A TW 97111872 A TW97111872 A TW 97111872A TW I387260 B TWI387260 B TW I387260B
Authority
TW
Taiwan
Prior art keywords
switch
packet
port
network
network device
Prior art date
Application number
TW97111872A
Other languages
Chinese (zh)
Other versions
TW200943820A (en
Inventor
yi ming Wang
Yu Wei Chang
Chih Jen Shih
Original Assignee
Accton Technology 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 Accton Technology Corp filed Critical Accton Technology Corp
Priority to TW97111872A priority Critical patent/TWI387260B/en
Publication of TW200943820A publication Critical patent/TW200943820A/en
Application granted granted Critical
Publication of TWI387260B publication Critical patent/TWI387260B/en

Links

Description

以網路交換器做為網路裝置測試儀器之方法Method of using network switch as a network device test instrument

本發明係有關一種以網路交換器做為網路裝置測試儀器之方法,尤指一種利用一基準交換器(Switch)做為一效能測試儀器,透過該基準交換器上VLAN、PVID及Port-Number之設定,發送若干數量之資料封包至一待測試之交換器,依據該等封包由待測試交換器傳回封包之速度及數量以判斷該待測試交換器之效能及品質。The invention relates to a method for using a network switch as a network device test instrument, in particular to use a reference switch (Switch) as a performance test instrument, through which the VLAN, PVID and Port- The setting of Number sends a certain amount of data packets to a switch to be tested, and determines the performance and quality of the switch to be tested according to the speed and quantity of the packets returned by the switch to be tested according to the packets.

電腦網路發展至今已與我們的生活密不可分,電腦網路之普遍使用更突顯出網路設備之重要性,一般而言,常用之網路設備包括有:增益器(Repeater)、集線器(Hub)、橋接器(Bridge)、交換器(Switch)、路由器(Router)、網關(Gateway)...等,每一種網路設備的功能及價格各不相同,需視網路之規模及需求而定。上述之網路設備,於設計階段及生產製造時必須經過反覆多次之測試,才可成為商業化之市售產品,而就一般的集線器(Hub)或交換器(Switch)而言,傳統的測試方法有下列數種。The development of computer networks has been inseparable from our lives. The widespread use of computer networks has highlighted the importance of network devices. In general, commonly used network devices include: Repeater, Hub (Hub) ), Bridge, Switch, Router, Gateway, etc. Each network device has different functions and prices, depending on the size and needs of the network. set. The above-mentioned network equipment must undergo repeated tests during the design stage and manufacturing to become a commercialized commercial product, and in the case of a general hub or switch, the conventional There are several test methods.

請先參考圖一,圖一所示為傳統測試集線器或交換器之方法之一。由圖一可知,習知技術中,製造埠(Port)數較少之集線器13或交換器時(例如:二至四個埠),其係利用人工手動之方式逐一測試出所有埠之狀況,而測試方法係在複數個電腦11上各插置複數片網路卡12(LAN Card),並經由連接線連接至集線器之各埠中,再由該複 數個電腦發送測試封包,經由該等連接線將封包傳送至集線器之各埠中,若該等埠可正常接收及回應測試封包時,視為該等埠為正常;反之為不正常。但該種測試方法需要使用多台之電腦及多片網路卡,其成本較高。Please refer to Figure 1 first. Figure 1 shows one of the traditional methods of testing a hub or switch. As can be seen from the figure 1, in the prior art, when a hub 13 or a switch having a small number of ports is manufactured (for example, two to four ports), the state of all defects is manually tested manually. The test method is to insert a plurality of network cards 12 (LAN Cards) on a plurality of computers 11 and connect them to the hubs of the hubs via the connection lines, and then the complex A plurality of computers send test packets, and the packets are transmitted to each of the hubs via the connecting lines. If the devices can normally receive and respond to the test packets, they are considered normal; otherwise, they are abnormal. However, this test method requires the use of multiple computers and multiple network cards, which are costly.

請再參考圖二,圖二所示係為另一種習知測試集線器方法之測試裝置結構示意圖。如圖二所示,其中當集線器24之埠(Port)數目日益增加後,圖一所揭示的方法遂不足應付生產測試上的需求,圖二所揭示之方法係使用一種可程式自動控制之繼電器盒23(Relay Box)以進行測試之工作,其係由至少一台以上之電腦21產生測試封包後,再由該繼電器盒23(Relay Box)做埠(Port)之切換工作,以測試待測之集線器,該測試方法可獲得較佳之測試效果,但,集線器的傳輸速度,已由主流之10M/100Mbps發展至10Gbps,該習知之測試方法已無法應付如此高速之傳輸速度所產生之測試封包。Please refer to FIG. 2 again. FIG. 2 is a schematic structural diagram of a test device of another conventional test hub method. As shown in FIG. 2, when the number of ports of the hub 24 is increasing, the method disclosed in FIG. 1 is insufficient to meet the requirements of the production test. The method disclosed in FIG. 2 uses a programmable automatic control relay. The box 23 (Relay Box) is used for testing, after the test packet is generated by at least one computer 21, and then the relay box 23 (Relay Box) is used as a port switch to test the test. The hub, the test method can obtain better test results, but the transmission speed of the hub has been developed from the mainstream 10M/100Mbps to 10Gbps, and the conventional test method has been unable to cope with the test packet generated by such high-speed transmission speed.

當網路之使用量愈來愈大,網路設備之需求量大增,且圖二中所示之Relay Box之切換的速度不夠快,網路設備製造廠商無法在有限成本考量下達到市場需求之網路設備之出貨量時,便有許多網路設備製造廠商自行研發測試設備或購買高價格的測試設備來進行測試。As the use of the network grows, the demand for network equipment increases, and the switching of Relay Box shown in Figure 2 is not fast enough, and network equipment manufacturers cannot meet market demand with limited cost considerations. When the network equipment is shipped, many network equipment manufacturers develop their own test equipment or purchase high-priced test equipment for testing.

自行研發測試設備者如ACCTON TESTB1T 8G 24+4G,其如圖三所示,其中,自行研發測試之設備33(TESTBIT)內含處理器,可以控制,測試封包的收送,主要由設備33(TESTBIT)產生測試封包傳送至待測試之網路裝置34,再由電腦31控制並回傳測試結果。如圖四所示,購買高價格的測試設備來進行測試則可 以購買SmartBit or IXIA 44等公認的標準測試設備以進行測試,其基本架構包括一電腦41、一標準測試設備43及一待測試之網路裝置44,其運作原理與圖三中所示之架構相同。Self-developed test equipment such as ACCTON TESTB1T 8G 24+4G, as shown in Figure 3. Among them, the self-developed test equipment 33 (TESTBIT) contains a processor, which can control and test the delivery of the package, mainly by equipment 33 ( TESTBIT) generates a test packet to be transmitted to the network device 34 to be tested, and then the computer 31 controls and returns the test result. As shown in Figure 4, you can purchase a high-priced test equipment for testing. To test by using a recognized standard test equipment such as SmartBit or IXIA 44, the basic architecture includes a computer 41, a standard test equipment 43 and a network device 44 to be tested, and its operation principle and the architecture shown in FIG. the same.

以上所提及之習知技術中測試網路設備之方法皆有其不同之缺失,有些是測試裝置速度無法跟上產品開發之速度,或測試裝置本身速度太慢,無法有效檢測出待測產品的故障,或,專門為測試集線器或交換器使用之專用測試儀器則成本高昂,增加測試之成本等等,本發明則使用網路交換器做為網路裝置測試儀器,其利用一基準交換器做為一效能測試儀器,透過該基準交換器上VLAN、PVID及Port-Number之設定,透過封包之傳輸速度及數量以判斷待測試交換器之效能及品質,方法簡單,建置容易並大幅節省測試之時間及成本。The methods for testing network devices in the above-mentioned conventional technologies all have their own shortcomings. Some of them are that the speed of the test device cannot keep up with the speed of product development, or the speed of the test device itself is too slow to effectively detect the product to be tested. The failure, or the dedicated test instrument used specifically for testing a hub or switch, is costly, increases the cost of testing, etc., and the present invention uses a network switch as a network device test instrument that utilizes a reference switch As a performance test instrument, through the setting of VLAN, PVID and Port-Number on the reference switch, the transmission speed and quantity of the packet can be used to judge the performance and quality of the switch to be tested. The method is simple, easy to construct and saves a lot. Time and cost of testing.

為解決以上所述習知技術之缺失,本發明特提出一種使用網路交換器做為網路裝置測試儀器之方法,本發明之主要目的為利用一交換器做為測試儀器,其係利用一交換器做為一基準效能測試儀器,透過該基準交換器上VLAN、PVID及Port-Number之設定,以特定的方法複製封包,透過封包之傳輸速度及數量以判斷待測試交換器之效能及品質,達到大幅節省測試之時間及成本之目的。In order to solve the above-mentioned shortcomings of the prior art, the present invention provides a method for using a network switch as a network device test instrument. The main purpose of the present invention is to use a switch as a test instrument, which utilizes a As a benchmark performance test instrument, the switch replicates the packet in a specific way through the settings of VLAN, PVID and Port-Number on the reference switch, and determines the performance and quality of the switch to be tested through the transmission speed and quantity of the packet. To achieve significant savings in testing time and cost.

為達到上述之目的,本發明所揭露之一種以網路交換器做為網路裝置測試儀器之方法,其係利用一交換器(Switch)做為一基準效能測試儀器,透過該基準交換器 上VLAN、PVID及Port-Number之設定,發送若干數量之資料封包至一待測試之交換器,依據該等封包由待測試交換器傳回之速度及數量以判斷該待測試交換器之效能,該方法係包括:設定該基準交換器上各埠之Port-Number、PVID及VLAN三者之間所對應之位置;將該基準交換器上之一第一埠連接一封包產生裝置(如一個人電腦PC);由該封包產生裝置產生若干數量之封包,並將該等封包傳送至該基準交換器之該第一埠;該第一埠接收該等封包後將該等封包複製後傳送至與該第一埠所屬之VLAN中其他PVID所對應之一第二埠及一第三埠,以產生封包風暴迴圈(Packet LoopStorm);設定該基準交換器上之一第四埠及一第五埠,並設定該第四埠及該第五埠之VLAN,使其可自該第二埠及該第三埠接收封包;將該第四埠及第五埠連接一待測試交換器上之兩埠以形成一封包傳送迴路;修改該第四埠及第五埠之PVID及該第一埠之VLAN對應關係,使傳入該第一埠之封包可直接複製及傳送至該第四埠及第五埠;停止封包之產生及傳送;及,由該待測試交換器上透過該封包傳送迴路傳回封包之速度及數量以判斷該待測試交換器之效能。In order to achieve the above object, a method for using a network switch as a network device test instrument according to the present invention utilizes a switch (Switch) as a benchmark performance test instrument through which the reference switch is used. The setting of the VLAN, the PVID, and the Port-Number, sending a certain amount of data packets to a switch to be tested, and determining the performance of the switch to be tested according to the speed and quantity of the packets to be tested by the switch to be tested, The method includes: setting a position corresponding to each of Port-Number, PVID, and VLAN of each of the reference switches; and connecting one of the first ports of the reference switch to a packet generating device (such as a personal computer) PC) generating, by the packet generating device, a number of packets, and transmitting the packets to the first port of the reference switch; after receiving the packets, the first packet is copied and transmitted to the first packet One of the other PVIDs in the VLAN to which the first port belongs, the second port and the third port, to generate a packet loop (Packet LoopStorm); setting a fourth port and a fifth port on the reference switch, And setting the VLAN of the fourth port and the fifth port so that the packet can be received from the second port and the third port; connecting the fourth port and the fifth port to two ports on the switch to be tested Form a packet transmission loop; modify the first PV 埠 PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV PV The speed and quantity of the packet transmitted back through the packet transmission loop on the switch to be tested to determine the performance of the switch to be tested.

如前所述,為達到解決習知技術中測試網路裝置所面臨之問題及缺失,本發明特別揭露一種以網路交換器做為網路裝置測試儀器之方法,由圖五中可知,該方法至少包括: 步驟51:設定該基準交換器上各埠之Port-Number(埠口號)、PVID(Port VLAN ID,埠口虛擬區域網路示別碼)及VLAN(Virtual Local Area Network,虛擬區域網路)三者之間所對應之位置;步驟52:將該基準交換器上之一第一埠連接一封包產生裝置(如一PC);步驟53:由該封包產生裝置產生若干數量之封包,並將該等封包傳送至該基準交換器之該第一埠;步驟54:該第一埠接收該等封包後將該等封包複製後傳送至與該第一埠所屬之VLAN中其他PVID所對應之一第二埠及一第三埠,以產生封包風暴迴圈(Packet LoopStorm);步驟55:設定該基準交換器上之一第四埠及一第五埠,並設定該第四埠及該第五埠之VLAN,使其可自該第二埠及該第三埠接收封包;步驟56:將該第四埠及第五埠連接一待測試交換器上之兩埠以形成一封包傳送迴路;步驟57:修改該第四埠及第五埠之PVID及該第一埠之VLAN對應關係,使傳入該第一埠之封包可直接複製及傳送至該第四埠及第五埠;步驟58:停止封包之產生及傳送;及步驟59:由該待測試交換器上透過該封包傳送迴路傳回封包之速度及數量以判斷該待測試交換器之效能。As described above, in order to solve the problems and disadvantages faced by the test network device in the prior art, the present invention particularly discloses a method for using a network switch as a network device test instrument. As shown in FIG. 5, the method The method includes at least: Step 51: Set Port-Number, PVID (Port VLAN ID, VLAN ID) and VLAN (Virtual Local Area Network) of the reference switch. Corresponding location between the two; step 52: connecting one of the first switches on the reference switch to a packet generating device (such as a PC); Step 53: generating a number of packets by the packet generating device, and The packet is transmitted to the first port of the reference switch. Step 54: After receiving the packets, the first packet is copied and then transmitted to a second corresponding to another PVID in the VLAN to which the first port belongs. And a third loop to generate a packet loop (Packet LoopStorm); step 55: setting a fourth loop and a fifth loop on the benchmark switch, and setting the fourth stack and the fifth loop The VLAN is configured to receive the packet from the second port and the third port; Step 56: connect the fourth port and the fifth port to two ports on the switch to be tested to form a packet transmission loop; Step 57: Modifying the PVID of the fourth and fifth 及 and the VLAN corresponding to the first 埠So that the packet transmitted to the first port can be directly copied and transmitted to the fourth and fifth frames; step 58: stopping the generation and transmission of the packet; and step 59: transmitting the packet from the to-be-tested switch The speed and number of packets returned by the transmission loop to determine the performance of the switch to be tested.

由上述之步驟中可知,當欲使用一網路交換器做為網路裝置測試儀器之前需先設定該交換器上各埠之Port-Number、PVID及VLAN三者之間所對應之關係及位置。It can be seen from the above steps that before using a network switch as a network device test instrument, it is necessary to set the relationship and location between each port-number, PVID and VLAN on the switch. .

請先參考圖六A,圖六A係本發明之以網路交換器做為網路裝置測試儀器方法中基準交換器設定實施例之示意圖。如圖六A所示,於本實施例中,假設由該基準交換器上挑選四個埠做為測試的連接埠,其Port-Number分別為甲、乙、丙及丁,另外需設定各埠之PVID及VLAN,本實施例中,假設甲、乙、丙、丁各埠之PVID及VLAN設定分別為:埠甲之PVID為A、埠甲之VLAN為(A,Y)-亦即,VLAN(A,Y)中成員埠所對應之PVID分別為A及Y,埠乙之PVID及VLAN為空白(因本實施例中不使用該埠),埠丙之PVID為B、埠丙之VLAN為(A,B),埠丁之PVID為B、埠丁之VLAN為(B,C)。設定該基準交換器上各埠之Port-Number、PVID及VLAN三者之間所對應之關係及位置,其設定可藉由軟體來實施,然後便可將該基準交換器上之埠甲連接一封包產生裝置,本實施例中,其為一個人電腦(PC),接下來,該封包產生裝置便產生若干數量之封包,並將該等封包傳送至該基準交換器之甲埠,該埠甲接收該等封包後將該等封包複製後傳送至與該埠甲所屬之VLAN(A,Y)中其他之PVID所對應之埠,為達到本發明之目的,埠丙及埠丁必須形成Internal Loopback之接線方式,由本實施例中可看出,埠丙及埠丁之PVID都設定為B,埠丙之VLAN為(A,B),故埠丙會接收到該等封包,而埠丁之VLAN為(B,C),故埠丁亦會接收到該等封包,故該等封包將被複製至埠丙及埠丁,並於埠丙及埠丁之間產生封包風暴迴圈(Packet LoopStorm),而所謂Packet LoopStorm,即是封包在一定路徑傳遞並形成一個無窮迴圈,沒有出口的迴路,在沒有特定的限制下,在此迴路上 封包的傳送速度會達到該交換器上介面的最大值,埠丙及埠丁之間產生封包風暴迴圈(Packet LoopStorm),使得涵蓋埠丙及埠丁之之VLAN也會以LoopStorm的速度傳遞封包。完成封包之產生、傳送及複製後,於該基準交換器上設定另兩埠之PVID及VLAN,本實施例中,如圖六B所示,乃設定埠1及埠2,埠1之PVID為X,埠1之VLAN為(B,Y),埠2之PVID為X,埠2之VLAN為(B,Y),由前所述,埠丙及埠丁之間產生封包風暴迴圈(Packet LoopStorm),使得涵蓋埠丙及埠丁之之VLAN也會以LoopStorm的速度傳遞封包,故於本實施例中可知,圖六B中的埠1及埠2亦將以loopstrom的速度往外傳送出封包,並可達到wire-speed的輸出流量來測試待測交換器之效能。接著,可將該埠1及埠2連接一待測試交換器上之兩埠,以形成一封包傳送迴路,其示意圖如圖六C所示,而後,將埠1及埠2之PVID改為S,並修改埠甲之VLAN(A,Y)為VLAN(A,Y,S),此時,由埠甲所接收到之封包可複製及傳送至埠1及埠2。經過一段時間之測試後,可停止封包之產生及傳送,停止封包產生的方法可透過失能(disable)該交換器上之該丙埠及該丁埠之方式完成,接著,由該待測試交換器上封包傳送回來之速度及數量以判斷該待測試交換器之效能及品質。Please refer to FIG. 6A first. FIG. 6A is a schematic diagram of a reference switch setting embodiment in the method of using a network switch as a network device test instrument according to the present invention. As shown in FIG. 6A, in the present embodiment, it is assumed that four ports are selected as test ports on the reference switch, and the Port-Numbers are A, B, C, and D, respectively, and each port needs to be set. PVID and VLAN, in this embodiment, it is assumed that the PVID and VLAN settings of A, B, C, and D are respectively: the PVID of the armor is A, and the VLAN of the armor is (A, Y) - that is, the VLAN The PVIDs corresponding to the members in (A, Y) are A and Y respectively, and the PVID and VLAN of B are blank (since this is not used in this embodiment), the PVID of B is B, and the VLAN of C is (A, B), the PVID of Kenting is B, and the VLAN of Kenting is (B, C). Set the relationship and location between each port-number, PVID and VLAN on the reference switch. The setting can be implemented by software, and then the armor on the reference switch can be connected. The packet generating device, in this embodiment, is a personal computer (PC), and then the packet generating device generates a number of packets and transmits the packets to the armor of the reference switch, the armor receiving After the packets are copied, the packets are copied and transmitted to the other PVIDs in the VLAN (A, Y) to which the armor belongs. To achieve the purpose of the present invention, the buffers must be formed by Internal Loopback. Wiring method, as can be seen from this embodiment, the PVID of both 埠 and 埠 is set to B, and the VLAN of 埠 为 is (A, B), so 埠 C will receive the packets, and the VLAN of 埠丁(B, C), so the Kenting will also receive the packets, so the packets will be copied to the C and C and the Packet LoopStorm will be generated between the C and C. The so-called Packet LoopStorm, that is, the packet is transmitted in a certain path and forms an infinite Circle, no exit loop, in the absence of specific restrictions in this loop The transmission speed of the packet will reach the maximum value of the interface on the switch, and the Packet LoopStorm will be generated between the C and C, so that the VLANs covering the C and C will also pass the packet at the speed of the LoopStorm. . After the completion of the generation, transmission and replication of the packet, the other two PVIDs and VLANs are set on the reference switch. In this embodiment, as shown in FIG. 6B, the PVIDs of 埠1 and 埠2 are set, and the PVID of 埠1 is The VLAN of X, 埠1 is (B, Y), the PVID of 埠2 is X, and the VLAN of 埠2 is (B, Y). As mentioned above, a packet storm loop is generated between 埠 and 埠. LoopStorm), so that the VLANs that cover both the C and C are also transmitted at the speed of the LoopStorm. Therefore, in this embodiment, the 埠1 and 埠2 in Figure 6B will also transmit the packets out at the speed of the loopstrom. And can achieve the wire-speed output flow to test the performance of the switch to be tested. Then, the 埠1 and 埠2 can be connected to two 上 on the switch to be tested to form a packet transmission circuit, the schematic diagram is as shown in FIG. 6C, and then the PVIDs of 埠1 and 埠2 are changed to S. And modify the VLAN (A, Y) of the armor to VLAN (A, Y, S). At this time, the packet received by the armor can be copied and transmitted to 埠1 and 埠2. After a period of testing, the generation and transmission of the packet can be stopped, and the method of stopping the packet generation can be completed by disabling the method of the buffer and the buffer on the switch, and then by the exchange to be tested. The speed and quantity of the packet transmitted back to determine the performance and quality of the switch to be tested.

綜上所述,本發明之結構特徵及各實施例皆已詳細揭示,而可充分顯示出本發明案在目的及功效上均深富實施之進步性,極具產業之利用價值,且為目前市面上前所未見之運用,依專利法之精神所述,本發明案完全符合發明專利之要件。In summary, the structural features and embodiments of the present invention have been disclosed in detail, and can fully demonstrate that the present invention has deep progress in the purpose and efficacy of the present invention, and has great industrial value, and is currently The unprecedented use in the market, according to the spirit of the patent law, the invention is fully in line with the requirements of the invention patent.

唯以上所述者,僅為本發明之較佳實施例而已,當不能以之限定本發明所實施之範圍,即大凡依本發明申請專利範圍所作之均等變化與修飾,皆應仍屬於本發明專利涵蓋之範圍內,謹請 貴審查委員明鑑,並祈惠准,是所至禱。The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited thereto, that is, the equivalent variations and modifications made by the scope of the present invention should still belong to the present invention. Within the scope of the patent, I would like to ask your review committee to give a clear understanding and pray for it. It is the prayer.

11‧‧‧電腦11‧‧‧ computer

12‧‧‧網路卡12‧‧‧Network card

13‧‧‧待測試網路裝置13‧‧‧Network device to be tested

21‧‧‧電腦21‧‧‧ computer

22‧‧‧網路卡22‧‧‧Network card

23‧‧‧繼電器盒23‧‧‧Relay box

24‧‧‧待測試網路裝置24‧‧‧Network device to be tested

31‧‧‧電腦31‧‧‧ computer

32‧‧‧網路卡32‧‧‧Network card

33‧‧‧自行研發測試之設備33‧‧‧ Self-developed testing equipment

34‧‧‧待測試網路裝置34‧‧‧Network devices to be tested

41‧‧‧電腦41‧‧‧ computer

42‧‧‧網路卡42‧‧‧Network card

43‧‧‧標準測試設備43‧‧‧Standard test equipment

44‧‧‧待測試網路裝置44‧‧‧Network device to be tested

51、52、53、54、55、56、57、58及59‧‧‧流程步驟51, 52, 53, 54, 55, 56, 57, 58 and 59 ‧ ‧ process steps

61‧‧‧電腦61‧‧‧ computer

62‧‧‧交換器62‧‧‧Switch

63‧‧‧待測試網路裝置63‧‧‧Network devices to be tested

圖一係為習用測試網路裝置之一實施例之結構示意圖。FIG. 1 is a schematic structural diagram of an embodiment of a conventional test network device.

圖二係為習用測試網路裝置之另一實施例之結構示意圖。Figure 2 is a block diagram showing another embodiment of a conventional test network device.

圖三係為習用測試網路裝置之另一實施例之結構示意圖。Figure 3 is a block diagram showing another embodiment of a conventional test network device.

圖四係為習用測試網路裝置之另一實施例之結構示意圖。Figure 4 is a block diagram showing another embodiment of a conventional test network device.

圖五係為本發明中以網路交換器做為網路裝置測試儀器之方法之流程示意圖。FIG. 5 is a schematic flow chart of a method for using a network switch as a network device test instrument in the present invention.

圖六A係為本發明中設定基準交換器之Port-Number、PVID及VLAN之間對應位置之示意圖。Figure 6A is a schematic diagram showing the corresponding positions between Port-Number, PVID and VLAN of the reference switch in the present invention.

圖六B及圖六C係為本發明中於測試過程中調整基準交換器上各埠之PVID及VLAN之示意圖。FIG. 6B and FIG. 6C are schematic diagrams of adjusting the PVID and VLAN of each of the reference switches in the test process according to the present invention.

51、52、53、54、55、56、57、58及59‧‧‧流程步驟51, 52, 53, 54, 55, 56, 57, 58 and 59 ‧ ‧ process steps

Claims (7)

一種以網路交換器做為網路裝置測試儀器之方法,該方法至少包括:(a):設定該交換器上各埠之埠口號(Port-Number)、埠口虛擬區域網路示別碼(Port VLAN ID,PVID)及虛擬區域網路(Virtual Local Area Network,VLAN)三者之間所對應之位置;(b):將該交換器上之一第一埠連接一封包產生裝置;(c):由該封包產生裝置產生複數個封包,並將該等封包傳送至該交換器之該第一埠;(d):該第一埠接收該等封包後將該等封包複製後傳送至與該第一埠所屬之VLAN中其他PVID所對應之一第二埠及一第三埠,以產生封包風暴迴圈(Packet LoopStorm);(e):設定該交換器上之一第四埠及一第五埠,並設定該第四埠及該第五埠之VLAN,使其可自該第二埠及該第三埠接收封包,並於該第四埠及該第五埠間形成封包風暴迴圈(Packet LoopStorm);(f):將該第四埠及第五埠連接一待測試網路裝置上之兩埠以形成一封包傳送迴路;(g):修改該第四埠及第五埠之PVID及該第一埠之VLAN對應關係,使傳入該第一埠之封包可直接複製及傳送至該第四埠及第五埠;(h):停止封包之產生及傳送;及(i):由該待測試網路裝置上透過該封包傳送迴路傳回封包之速度及數量以判斷該測試網路裝置之效能。 A method for using a network switch as a network device test instrument, the method comprising at least: (a): setting a port number of the switch (Port-Number), and a virtual area network identification code of the port (Port VLAN ID, PVID) and the virtual local area network (VLAN) corresponding to the location; (b): the first one of the switch is connected to a packet generating device; c): generating, by the packet generating device, a plurality of packets, and transmitting the packets to the first port of the switch; (d): after receiving the packets, the first packet is copied and transmitted to the packet One of the second and third ports corresponding to the other PVIDs in the VLAN to which the first port belongs to generate a packet loop (Packet LoopStorm); (e): setting one of the fourth ports on the switch a fifth port, and setting the VLAN of the fourth port and the fifth port so that the packet can be received from the second port and the third port, and a packet storm is formed between the fourth port and the fifth port a loop (Packet LoopStorm); (f): connecting the fourth and fifth turns to a two-way on the network device to be tested a packet transmission loop; (g): modifying the PVID of the fourth and fifth loops and the VLAN correspondence of the first loop so that the packet transmitted to the first stack can be directly copied and transmitted to the fourth stack and (h): stopping the generation and transmission of the packet; and (i): determining the performance of the test network device by the speed and quantity of the packet transmitted back through the packet transmission circuit on the network device to be tested. 如申請專利範圍第1項所述之以網路交換器做為網路裝置測試儀器之方法,其中該封包產生裝置可為一電腦。 The method for using a network switch as a network device test instrument according to the first aspect of the patent application, wherein the packet generating device can be a computer. 如申請專利範圍第1項所述之以網路交換器做為網路裝置測試儀器之方法,其中該待測試網路裝置可為一待測交換器。 The method of using a network switch as a network device test instrument according to the first aspect of the patent application, wherein the network device to be tested can be a switch to be tested. 如申請專利範圍第1項所述之以網路交換器做為網路裝置測試儀器之方法,其中該待測試網路裝置可為一待測集線器。 The method of using the network switch as a network device test instrument according to the first aspect of the patent application, wherein the network device to be tested can be a hub to be tested. 如申請專利範圍第1項所述之以網路交換器做為網路裝置測試儀器之方法,其中該步驟(f)停止封包之產生及傳送可透過重新設定VLAN之方式完成。 For example, in the method of claim 1, the network switch is used as a network device test instrument, wherein the step (f) of stopping the generation and transmission of the packet can be completed by resetting the VLAN. 如申請專利範圍第1項所述之以網路交換器做為網路裝置測試儀器之方法,其中該步驟(f)停止封包之產生及傳送可透過失能(disable)該交換器上之該第二埠及第三埠之方式完成。 A method for using a network switch as a network device test instrument as described in claim 1, wherein the step (f) stops the generation of the packet and transmits the disableable switch on the switch. The second and third methods are completed. 如申請專利範圍第1項所述之以網路交換器做為網路裝置測試儀器之方法,其中,可藉由一軟體以設定該交換器上各埠之Port-Number、PVID及VLAN三者之間所對應之位置關係。 For example, the network switch is used as a network device test instrument according to the first aspect of the patent application, wherein a software can be used to set Port-Number, PVID and VLAN of each switch on the switch. The corresponding positional relationship between them.
TW97111872A 2008-04-01 2008-04-01 A method of using a network switch as a network device to test a device TWI387260B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW97111872A TWI387260B (en) 2008-04-01 2008-04-01 A method of using a network switch as a network device to test a device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW97111872A TWI387260B (en) 2008-04-01 2008-04-01 A method of using a network switch as a network device to test a device

Publications (2)

Publication Number Publication Date
TW200943820A TW200943820A (en) 2009-10-16
TWI387260B true TWI387260B (en) 2013-02-21

Family

ID=44869101

Family Applications (1)

Application Number Title Priority Date Filing Date
TW97111872A TWI387260B (en) 2008-04-01 2008-04-01 A method of using a network switch as a network device to test a device

Country Status (1)

Country Link
TW (1) TWI387260B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6075773A (en) * 1998-03-17 2000-06-13 3Com Corporation Multi-user LAN packet generator
US6080203A (en) * 1997-12-18 2000-06-27 Advanced Micro Devices, Inc. Apparatus and method for designing a test and modeling system for a network switch device
US20060002307A1 (en) * 2004-06-30 2006-01-05 Accton Technology Corporation Apparatus and method for testing a network connection device
US20060077975A1 (en) * 2004-10-08 2006-04-13 Broad Web Corporation Checking method for applying in the field of network packet contents of network security switch
CN101083570A (en) * 2007-06-26 2007-12-05 中兴通讯股份有限公司 Method and apparatus for testing single board throughput performance of broadband access system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6080203A (en) * 1997-12-18 2000-06-27 Advanced Micro Devices, Inc. Apparatus and method for designing a test and modeling system for a network switch device
US6075773A (en) * 1998-03-17 2000-06-13 3Com Corporation Multi-user LAN packet generator
US20060002307A1 (en) * 2004-06-30 2006-01-05 Accton Technology Corporation Apparatus and method for testing a network connection device
TWI251998B (en) * 2004-06-30 2006-03-21 Accton Technology Corp Test device and method of network connection device
US20060077975A1 (en) * 2004-10-08 2006-04-13 Broad Web Corporation Checking method for applying in the field of network packet contents of network security switch
CN101083570A (en) * 2007-06-26 2007-12-05 中兴通讯股份有限公司 Method and apparatus for testing single board throughput performance of broadband access system

Also Published As

Publication number Publication date
TW200943820A (en) 2009-10-16

Similar Documents

Publication Publication Date Title
CN103746884B (en) A kind of method and system that flow rate test is carried out using interchanger
US10996950B2 (en) Apparatuses and methods involving selective disablement of side effects caused by accessing register sets
WO2011011915A1 (en) Data communication method, communication equipment and communication system
JP6242911B2 (en) Apparatus and method for encoding MDIO for SGMII transmission
CN102595260B (en) Data exchange system and operating mode self-negotiation method thereof
CN201708820U (en) Protocol converter of MODBUS and PROFIBUS-DP
CN202159138U (en) Distributed radar monitoring system based on network
CN104348673A (en) Debugging and testing method, main control board and business boards
CN102307137B (en) Method and device for transmitting and receiving management message, stacked switchboard and switchboard system
CN102307118A (en) Back plate test method, apparatus thereof and system thereof
CN102946260A (en) Automatic meter reading system and communication link quality detecting method thereof
CN101557322B (en) Method using network switch as network device testing instrument
CN106453156A (en) Communication method and apparatus between virtual devices
CN105262789A (en) FPGA (Field Programmable Gate Array)-based MAC (Media Access Control) layer to MAC layer communication system and control method
CN100419705C (en) Configurable universal synchronous and asynchronous communication debugging device and bugging method thereof
CN201766606U (en) Network switching device based on physical layer state detection and fault screening strategy
CN201226522Y (en) Network analogy system for software test environment
TWI387260B (en) A method of using a network switch as a network device to test a device
CN108616409A (en) A kind of production method of network flow, apparatus and system
CN201072431Y (en) Broadband aviation electronic bus testing device
CN101090353A (en) LED display screen data communication equipment and method based on embedded Ethernet technology
CN112087400B (en) Network flow mirroring system and method based on EtherCAT slave station chip
CN205123775U (en) Network switching device with data diagnosis and memory function
CN201450513U (en) Network port detection device
CN106372019B (en) A kind of processing method and timeout treatment device of system bus devices response timeout

Legal Events

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