TW201429189A - Method and device for testing network equipment - Google Patents
Method and device for testing network equipment Download PDFInfo
- Publication number
- TW201429189A TW201429189A TW102103150A TW102103150A TW201429189A TW 201429189 A TW201429189 A TW 201429189A TW 102103150 A TW102103150 A TW 102103150A TW 102103150 A TW102103150 A TW 102103150A TW 201429189 A TW201429189 A TW 201429189A
- Authority
- TW
- Taiwan
- Prior art keywords
- test
- packet
- loop
- tested
- target
- Prior art date
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
Description
本發明是有關於一種用於檢測網路設備之測試方法以及系統,特別是有關於一種藉由虛擬區域網路通道,進行檢測網路設備之測試方法以及系統。 The present invention relates to a test method and system for detecting a network device, and more particularly to a test method and system for detecting a network device by using a virtual area network channel.
隨著通訊網路的高度發展,網路已經融為人們生活的一部份,成為人們交換、獲取、發送資訊不可或缺的媒介。因此,數據機(modem)、集線器(hub)、交換器(switch)、路由器(router)等網路通訊設備隨處可見。 With the rapid development of communication networks, the Internet has become a part of people's lives, and it has become an indispensable medium for people to exchange, acquire and send information. Therefore, network communication devices such as modems, hubs, switches, and routers are everywhere.
各式各樣的網路通訊設備從設計、開發到生產的過程中,都必須經過反覆的測試。其中,在網路通訊設備測試過程中,一台專業的封包測試儀表為不可或缺的配備。然而,此類測試儀表價格不斐,增加了網路通訊設備的研發和生產的成本。 All kinds of network communication equipment must undergo repeated testing from design, development to production. Among them, in the process of testing network communication equipment, a professional packet test instrument is indispensable. However, such test instruments are not expensive, increasing the cost of development and production of network communication equipment.
因此,本發明之一態樣是在提供一種檢測網路設備之測試方法,用以藉由虛擬區域網路通道,輔助封包測試。測試方法包含以下步驟: Accordingly, one aspect of the present invention is to provide a test method for detecting a network device for assisting packet testing by a virtual area network channel. The test method consists of the following steps:
(a)提供一第一環路埠、一第二環路埠以及數個網路測試埠。其中,第一環路埠以及第二環路埠相互連接並被設置為自環。 (a) providing a first loop, a second loop, and a number of network test ports. The first loop 埠 and the second loop 埠 are connected to each other and are set to be self-loop.
(b)於第一環路埠以及第二環路埠之路徑上,提供數個虛擬區域網路通道,其中各虛擬區域網路通道對應其中一個網路測試埠。 (b) providing a plurality of virtual area network channels on the path of the first loop and the second loop, wherein each virtual area network channel corresponds to one of the network test ports.
(c)接收並傳送待測封包至第一環路埠。 (c) receiving and transmitting the packet to be tested to the first loop.
(d)自網路測試埠中,選擇至少一目標傳送測試埠以及至少一目標接收測試埠,並將待測封包分配至目標傳送測試埠對應之虛擬區域網路通道。 (d) From the network test, selecting at least one target transmission test port and at least one target receiving test port, and allocating the test packet to the virtual area network channel corresponding to the target transmission test port.
(e)藉由相互連接且自環之第一環路埠以及第二環路埠,加速待測封包之傳送速率。 (e) Accelerating the transmission rate of the packet to be tested by interconnecting and self-looping the first loop 埠 and the second loop 埠.
(f)透過目標傳送測試埠對應之虛擬區域網路通道,傳送自環加速後之待測封包至目標傳送測試埠所連接之一待測網路設備。 (f) transmitting the self-test-accelerated packet to the network device under test connected to the target transmission test terminal through the virtual local area network channel corresponding to the target transmission test.
(g)自目標接收測試埠所連接之待測網路設備,接收待測封包對應之至少一相關封包。 (g) receiving, from the target receiving test device, the network device to be tested, and receiving at least one related packet corresponding to the packet to be tested.
(h)依據步驟(f)以及(g)之執行結果,取得測試結果。 (h) Obtain test results based on the results of steps (f) and (g).
本發明之另一態樣是在提供一種用於檢測網路設備之測試裝置。測試裝置包含一第一環路埠、一第二環路埠、數個網路測試埠以及一處理元件。第二環路埠電性連接第一環路埠,且處理元件分別電性連接第一環路埠、第二環路埠以及網路測試埠。處理元件包含一通道提供模組、一封包處理模組、一設定模組、一自環模組、一傳送模組、一接收模組以及一結果取得模組。通道提供模組於第一環路埠以及第二環路埠之路徑上,提供數個虛擬區域網路通道。其中,每一虛擬區域網路通道對應其中一個網路測試 埠。封包處理模組接收至少一待測封包,並傳送待測封包至第一環路埠。設定模組自網路測試埠中,選擇至少一目標傳送測試埠以及至少一目標接收測試埠,並將待測封包分配至目標傳送測試埠對應之虛擬區域網路通道。自環模組將第一環路埠以及第二環路埠設置為自環,並將待測封包於自環之第一環路埠以及第二環路埠間傳送,以加速待測封包之傳送速率。傳送模組將自環加速後之待測封包,透過目標傳送測試埠對應之虛擬區域網路通道,傳送至目標傳送測試埠所連接之一待測網路設備。接收模組自目標接收測試埠所連接之待測網路設備,接收待測封包對應之至少一相關封包。結果取得模組根據待測封包之一傳送資訊以及相關封包之一接收資訊,取得對待測網路設備之測試結果。 Another aspect of the present invention is to provide a test apparatus for detecting a network device. The test device includes a first loop, a second loop, a plurality of network test ports, and a processing component. The second loop is electrically connected to the first loop, and the processing components are electrically connected to the first loop 埠, the second loop 埠, and the network test port, respectively. The processing component comprises a channel providing module, a packet processing module, a setting module, a self-loop module, a transmitting module, a receiving module and a result obtaining module. The channel provides modules on the path of the first loop and the second loop, providing a plurality of virtual area network channels. Wherein each virtual area network channel corresponds to one of the network tests port. The packet processing module receives at least one packet to be tested and transmits the packet to be tested to the first loop. The setting module is selected from the network test, selecting at least one target transmission test port and at least one target receiving test port, and allocating the test packet to the virtual area network channel corresponding to the target transmission test port. The self-loop module sets the first loop 埠 and the second loop 为 to be self-loop, and transmits the packet to be tested to the first loop 自 and the second loop of the self-loop to accelerate the packet to be tested. Transfer rate. The transmitting module transmits the packet to be tested after the self-loop acceleration to the virtual area network channel corresponding to the target transmission test, and transmits it to one of the network devices to be tested connected to the target transmission test terminal. The receiving module receives the network device to be tested connected to the test packet from the target, and receives at least one related packet corresponding to the packet to be tested. The result obtaining module obtains the test result of the network device to be tested according to one of the information to be tested and the information received by one of the related packets.
以下將以圖式及詳細說明本發明之精神,任何所屬技術領域中具有通常知識者在瞭解本發明之較佳實施例後,當可由本發明所教示之技術加以改變及修飾,其並不脫離本發明之精神與範圍。 The spirit and scope of the present invention will be described in the following detailed description of the preferred embodiments of the present invention, which can be modified and modified by the teachings of the present invention. The spirit and scope of the present invention.
第1圖係依照本發明一實施例的一種用於檢測網路設備之測試方法之流程圖。在測試方法中,藉由虛擬區域網路通道,輔助封包測試。測試方法可經由電腦程式來進行實作。電腦程式可儲存於一電腦可讀取記錄媒體中,而使電腦讀取此記錄媒體後執行此測試方法。電腦可讀取記錄媒體可為唯讀記憶體、快閃記憶體、軟碟、硬碟、光碟、 隨身碟、磁帶、可由網路存取之資料庫或熟悉此技藝者可輕易思及具有相同功能之電腦可讀取記錄媒體。 1 is a flow chart of a test method for detecting a network device in accordance with an embodiment of the present invention. In the test method, the packet test is assisted by the virtual local area network channel. The test method can be implemented via a computer program. The computer program can be stored in a computer readable recording medium, and the computer can execute the test method after reading the recording medium. The computer readable recording medium can be read only memory, flash memory, floppy disk, hard disk, optical disk, A pen drive, a tape, a network accessible database, or a computer readable by the art can easily think of a computer-readable recording medium having the same function.
第2圖係應用本發明之測試方法之系統之示意圖。請同時參照第1圖以及第2圖。測試方法100包含以下步驟:在步驟110中,提供一第一環路埠201、一第二環路埠202以及數個網路測試埠203、204。其中,第一環路埠201以及第二環路埠202相互連接並被設置為自環。第一環路埠201、第二環路埠202以及網路測試埠203、204可由一switch芯片200所提供。 Figure 2 is a schematic illustration of a system to which the test method of the present invention is applied. Please refer to both Figure 1 and Figure 2. The testing method 100 includes the following steps: In step 110, a first loop 201, a second loop 202, and a plurality of network test ports 203, 204 are provided. The first loop 201 and the second loop 202 are connected to each other and set to be self-loop. The first loop 201, the second loop 202, and the network test ports 203, 204 may be provided by a switch chip 200.
在步驟120中,於第一環路埠201以及第二環路埠202之路徑上,提供數個虛擬區域網路通道301、302、303。其中,各虛擬區域網路通道301、302、303對應其中一個網路測試埠。在本實施例中,虛擬區域網路通道301對應網路測試埠203,虛擬區域網路通道302對應網路測試埠204,虛擬區域網路通道303對應網路測試埠204。換言之,可使一個虛擬區域網路通道對應一個網路測試埠,亦可使多個虛擬區域網路通道對應同一個網路測試埠。 In step 120, a plurality of virtual area network channels 301, 302, 303 are provided on the path of the first loop 201 and the second loop 202. The virtual area network channels 301, 302, and 303 correspond to one of the network test ports. In this embodiment, the virtual local area network channel 301 corresponds to the network test port 203, the virtual area network channel 302 corresponds to the network test port 204, and the virtual area network channel 303 corresponds to the network test port 204. In other words, one virtual area network channel can be associated with one network test, and multiple virtual area network channels can be corresponding to the same network test.
在步驟130中,接收並傳送待測封包至第一環路埠201。在本發明之一些實施例中,可由switch芯片200本身之一處理元件205產生一待測封包,以在步驟130中,接收至少一待測封包。在本發明之另一些實施例中,可自其他裝置接收待測封包(步驟130)。此外,可在步驟130前,預先設定待測封包之內容,如待測封包的目的或來源之媒體存取控制位址(Media Access Control address,MAC address)、網際網路協定位址(Internet Protocol address,IP address)、虛擬區域網路之值或其他類型之封包內容。 In step 130, the packet to be tested is received and transmitted to the first loop 201. In some embodiments of the present invention, a packet to be tested may be generated by the processing element 205 of the switch chip 200 itself to receive at least one packet to be tested in step 130. In still other embodiments of the invention, the packet to be tested may be received from other devices (step 130). In addition, before step 130, the content of the packet to be tested may be preset, such as the purpose of the packet to be tested or the source of the media access control address (MAC address), the Internet Protocol address (Internet Protocol) Address, IP Address), the value of the virtual local area network or other types of packet content.
在步驟140中,自網路測試埠203、204中,選擇至少一目標傳送測試埠以及至少一目標接收測試埠,並將待測封包分配至目標傳送測試埠對應之虛擬區域網路通道。舉例來說,如於步驟140中,選擇網路測試埠203作為目標傳送測試埠,則待測封包將被分配至目標傳送測試埠203對應之虛擬區域網路通道301。此外,可進一步將已設定為目標傳送測試埠之網路測試埠203,亦設定為目標接收測試埠。 In step 140, from the network test ports 203, 204, at least one target transfer test port and at least one target receive test port are selected, and the packet to be tested is allocated to the virtual area network channel corresponding to the target transfer test port. For example, if the network test port 203 is selected as the target transfer test port in step 140, the test packet to be tested is allocated to the virtual area network channel 301 corresponding to the target transfer test port 203. In addition, the network test 埠 203 that has been set as the target transmission test 可 can be further set as the target reception test 埠.
在步驟150中,藉由相互連接且自環之第一環路埠201以及第二環路埠202,加速待測封包之傳送速率。 In step 150, the transmission rate of the packet to be tested is accelerated by the first loop 埠 201 and the second loop 埠 202 that are connected to each other and are self-looped.
在步驟160中,透過(被選為目標傳送測試埠之)網路測試埠203對應之虛擬區域網路通道301,傳送自環加速後之待測封包至目標傳送測試埠203所連接之一待測網路設備400。其中,待測網路設備400可為交換器(switch)、路由器(router)、其他類型之網路通訊設備或其他可傳送或接收網路封包之電子裝置。 In step 160, the virtual local area network channel 301 corresponding to the network test port 203 is selected (transmitted as the target transmission test device), and the one to be transmitted from the ring-accelerated packet to the target transmission test port 203 is transmitted. Network device 400 is measured. The network device 400 to be tested may be a switch, a router, other types of network communication devices, or other electronic devices that can transmit or receive network packets.
在步驟170中,自(被選為目標接收測試埠之)網路測試埠203所連接之待測網路設備400,接收待測封包相關之至少一相關封包。在本發明之一些實施例中,相關封包可為執行待測封包後所產生之封包。在本發明之另一些實施例中,相關封包可為經過轉傳後之待測封包。然而,在其他實施例中,亦可於步驟140中,將其他網路測試埠204設定為目標接收測試埠,並不限於本揭露。此外,在步驟170之一些實施例中,可進一步藉由存取控制列表 (access control list,ACL),篩選所接收到之相關封包。 In step 170, the network device 400 to be tested connected to the network test port 203 (selected as the target receiving test device) receives at least one related packet related to the packet to be tested. In some embodiments of the present invention, the related packet may be a packet generated after the packet to be tested is executed. In other embodiments of the present invention, the related packet may be a packet to be tested after being transferred. However, in other embodiments, the other network test port 204 may also be set as the target receiving test in step 140, and is not limited to the disclosure. Moreover, in some embodiments of step 170, the access control list may be further (access control list, ACL), filtering the received related packets.
在步驟180中,依據步驟160以及步驟170之執行結果,取得對待測網路設備之測試結果。舉例來說,於步驟180中,可分析步驟160中所傳送之待測封包之個數、字節數、實際傳輸速率、錯誤封包個數、其他傳送封包時相關之資訊或其組合,並可分析步驟170中所接收之相關封包之個數、字節數、實際傳輸速率、錯誤封包個數、其他接收封包時相關之資訊或其組合。如此一來,可在步驟180之分析後,判斷待測網路設備是否工作正常。此外,僅需支援虛擬區域網路通道功能之網路通訊設備(例如:乙太網路交換器),即可實作出本發明,不需昂貴之封包測試儀表即可進行封包測試。 In step 180, the test result of the network device to be tested is obtained according to the execution results of step 160 and step 170. For example, in step 180, the number of packets to be tested transmitted in step 160, the number of bytes, the actual transmission rate, the number of error packets, other related information when transmitting the packet, or a combination thereof may be analyzed, and The number of relevant packets received in step 170, the number of bytes, the actual transmission rate, the number of error packets, other information related to receiving the packet, or a combination thereof. In this way, after the analysis of step 180, it can be determined whether the network device to be tested is working properly. In addition, the network communication device (for example, an Ethernet switch) supporting the virtual local area network channel function can realize the present invention, and can perform the packet test without an expensive packet test instrument.
在本發明之一些實施例中,測試方法100更可包含:將目標傳送測試埠對應之虛擬區域網路通道之識別資訊,加入待測封包,藉此使步驟160根據對應之虛擬區域網路通道之識別資訊,找到目標傳送測試埠對應之虛擬區域網路通道,以執行步驟160之傳送。此外,更可於步驟140中選擇數個目標傳送測試埠。舉例來說,如欲將同一待測封包傳送到多個不同之目標傳送測試埠進行測試時,可複製多份待測封包,並將各目標傳送測試埠之識別資訊加入各待測封包。接下來,於步驟160就可依據各待測封包中不同之虛擬區域網路通道之識別資訊,將待測封包傳送到多個目標傳送測試埠。在本發明之其他實施例中,亦可將多個相同或相異之目標傳送測試埠對應之虛擬區域網路通道之識別資訊,加入多個相同或相異之待測封包,以進行 測試,並不限於本揭露。如此一來,可同時對多個不同網路測試埠所連接之待測網路設備,進行相同或相異之封包測試。 In some embodiments of the present invention, the testing method 100 may further include: adding identification information of the virtual local area network channel corresponding to the target transmission test to the packet to be tested, thereby causing step 160 according to the corresponding virtual local area network channel. The identification information is found, and the virtual local area network channel corresponding to the target transmission test is found to perform the transmission of step 160. In addition, a plurality of target transmission test files may be selected in step 140. For example, if the same packet to be tested is transmitted to a plurality of different target transmission tests for testing, multiple packets to be tested may be copied, and the identification information of each target transmission test packet is added to each packet to be tested. Next, in step 160, the packet to be tested is transmitted to the plurality of target transmission test files according to the identification information of different virtual area network channels in each of the tested packets. In other embodiments of the present invention, the identification information of the virtual local area network channel corresponding to the plurality of identical or different target transmission test files may be added to multiple identical or different packets to be tested for performing. Testing is not limited to this disclosure. In this way, the same or different packet test can be performed on the network devices to be tested connected to multiple different network test terminals at the same time.
此外,在步驟160之一實施例中,可在透過目標傳送測試埠203傳送待測封包前,可先移除對應之虛擬區域網路通道之識別資訊,再將待測封包自目標傳送測試埠203傳送至待測網路設備400。如此一來,可避免虛擬區域網路通道之識別資訊影響測試結果。 In addition, in an embodiment of step 160, before the packet to be tested is transmitted through the target transmission test port 203, the identification information of the corresponding virtual area network channel may be removed, and then the test packet to be tested is transmitted from the target test. 203 is transmitted to the network device 400 to be tested. In this way, the identification information of the virtual local area network channel can be prevented from affecting the test result.
在本發明之一些實施例中,測試方法100更可包含:提供數個服務品質(Quality of Service,QoS)隊列(queue)。其中,各服務品質隊列對應網路測試埠203、204的其中之一。於是,可接收由使用者所設定之一目標測試速率,用以將待測封包之傳送速率控制至目標測試速率。其中,可藉由將各服務品質隊列之帶寬(bandwidth)設定至目標測試速率。接下來,在執行步驟160之傳送時,可藉由目標傳送測試埠對應之服務品質隊列,將待測封包之傳送速率控制至目標測試速率。舉例來說,透過設定目標傳送測試埠對應之服務品質隊列的帶寬為800 Mega bits,將待測封包通過該目標傳送測試埠傳送出去的傳送速率控制100Mbytes。需要說明的是,該待測封包長度亦對應該設定的帶寬及目標傳送速率,而產生不同的封包長度,例如,設定帶寬為800 Mega bits的服務品質隊列,在目標傳送速率定義為100 Mbytes時,產生待測封包的長度為100 bytes。因此,可將待測封包通過目標傳送測試埠傳送出去的傳送速率控制至目標測試速率。 In some embodiments of the present invention, the testing method 100 may further include: providing a plurality of Quality of Service (QoS) queues. Among them, each service quality queue corresponds to one of the network test ports 203 and 204. Thus, a target test rate set by the user can be received to control the transfer rate of the packet to be tested to the target test rate. The bandwidth can be set to the target test rate by setting the bandwidth of each service quality queue. Next, when performing the transmission of step 160, the transmission rate of the packet to be tested can be controlled to the target test rate by the service quality queue corresponding to the target transmission test. For example, the bandwidth of the service quality queue corresponding to the target transmission test is 800 Mega bits, and the transmission rate of the packet to be tested transmitted through the target transmission test is controlled by 100 Mbytes. It should be noted that the length of the packet to be tested also corresponds to the bandwidth to be set and the target transmission rate, and different packet lengths are generated. For example, a service quality queue with a bandwidth of 800 Mega bits is set, and when the target transmission rate is defined as 100 Mbytes. The length of the packet to be tested is 100 bytes. Therefore, the transfer rate of the packet to be tested transmitted through the target transfer test can be controlled to the target test rate.
請參照第3圖,其繪示依照本發明一實施例的一種測試裝置之功能方塊圖。於本發明實施例中的測試裝置可以是乙太網路交換器。測試裝置500包含一第一環路埠510、一第二環路埠520、數個網路測試埠530、540以及一處理元件550。第二環路埠520電性連接第一環路埠510,且處理元件550分別電性連接第一環路埠510、第二環路埠520以及網路測試埠530、540。處理元件550可為中央處理單元(Central Processing Unit,CPU)、微控制器(microcontroller)、其他類型之處理元件或其組合。 Please refer to FIG. 3, which is a functional block diagram of a test apparatus according to an embodiment of the invention. The test device in the embodiment of the present invention may be an Ethernet switch. The testing device 500 includes a first loop 埠 510, a second loop 520, a plurality of network test ports 530, 540, and a processing component 550. The second loop 埠 520 is electrically connected to the first loop 埠 510 , and the processing component 550 is electrically connected to the first loop 埠 510 , the second loop 埠 520 , and the network test ports 530 , 540 , respectively. Processing component 550 can be a central processing unit (CPU), a microcontroller, other types of processing elements, or a combination thereof.
處理元件550包含一通道提供模組551、一封包處理模組552、一設定模組553、一自環模組554、一傳送模組555、一接收模組556以及一結果取得模組557。通道提供模組551於第一環路埠510以及第二環路埠520之路徑上,提供數個虛擬區域網路通道。其中,每一虛擬區域網路通道對應網路測試埠530、540的其中之一。 The processing component 550 includes a channel providing module 551, a packet processing module 552, a setting module 553, a self-loop module 554, a transmitting module 555, a receiving module 556, and a result obtaining module 557. The channel providing module 551 provides a plurality of virtual area network channels on the paths of the first loop 埠 510 and the second loop 520. Each virtual area network channel corresponds to one of the network tests 埠 530, 540.
封包處理模組552接收至少一待測封包,並傳送待測封包至第一環路埠510。在本發明之一些實施例中,可由處理元件550本身產生一待測封包,供封包處理模組552接收。在本發明之另一些實施例中,封包處理模組552可自其他裝置接收待測封包。此外,可透過處理元件550預先設定待測封包之內容,如待測封包的目的或來源之媒體存取控制位址(Media Access Control address,MAC address)、網際網路協定位址(Internet Protocol address,IP address)、虛擬區域網路之值或其他類型之封包內容。 The packet processing module 552 receives at least one packet to be tested and transmits the packet to be tested to the first loop 510. In some embodiments of the present invention, a packet to be tested may be generated by the processing component 550 itself for receipt by the packet processing module 552. In other embodiments of the present invention, the packet processing module 552 can receive the packet to be tested from other devices. In addition, the content of the packet to be tested may be preset through the processing component 550, such as the media access control address (MAC address) of the packet to be tested or the Internet Protocol address (Internet Protocol address). , IP address), the value of the virtual local area network, or other types of packet content.
設定模組553自網路測試埠530、540中,選擇至少一目標傳送測試埠以及至少一目標接收測試埠,並將待測封 包分配至目標傳送測試埠對應之虛擬區域網路通道。其中,設定模組553可將相同或相異之網路測試埠,設定為目標傳送測試埠以及目標接收測試埠。 The setting module 553 selects at least one target transmission test 埠 and at least one target reception test 自 from the network test 埠 530, 540, and the test to be tested The packet is assigned to the virtual local area network channel corresponding to the target delivery test. The setting module 553 can set the same or different network test 埠 as the target transmission test 埠 and the target reception test 埠.
自環模組554將第一環路埠510以及第二環路埠520設置為自環,並將待測封包於自環之第一環路埠以及第二環路埠間傳送,以加速待測封包之傳送速率。舉例來說,自環模組554可分別開啟第一環路埠510以及第二環路埠520之自環功能,而使第一環路埠510以及第二環路埠520組成閉合環路。於是,自環模組554將待測封包傳送至第一環路埠510後,待測封包可於第一環路埠510以及第二環路埠520所組成之閉合環路傳送。如此一來,可將待測封包之傳輸速率加速至第一環路埠510以及第二環路埠520之最高傳輸速率。 The self-loop module 554 sets the first loop 埠 510 and the second loop 埠 520 as a self-loop, and transmits the packet to be tested to the first loop 自 and the second loop of the self-loop to accelerate the waiting. Measure the transfer rate of the packet. For example, the self-loop module 554 can open the self-loop function of the first loop 埠 510 and the second loop 520, respectively, and the first loop 埠 510 and the second loop 埠 520 form a closed loop. Then, after the loop module 554 transmits the packet to be tested to the first loop 埠 510, the packet to be tested can be transmitted in a closed loop formed by the first loop 埠 510 and the second loop 520. In this way, the transmission rate of the packet to be tested can be accelerated to the highest transmission rate of the first loop 埠 510 and the second loop 520.
傳送模組555將自環加速後之待測封包,透過目標傳送測試埠對應之虛擬區域網路通道,傳送至目標傳送測試埠所連接之一待測網路設備。舉例來說,如於本實施例中,設定模組553選擇網路測試埠530作為目標傳送測試埠,則傳送模組555將自環加速後之待測封包,透過對應之虛擬區域網路通道傳送至目標傳送測試埠530,再傳送至目標傳送測試埠530所連接之待測網路設備600。其中,待測網路設備600可為交換器(switch)、路由器(router)、其他類型之網路通訊設備或其他可傳送或接收網路封包之電子裝置。 The transmitting module 555 transmits the packet to be tested after the self-loop acceleration to the virtual area network channel corresponding to the target transmission test, and transmits it to one of the network devices to be tested connected to the target transmission test terminal. For example, in the embodiment, the setting module 553 selects the network test port 530 as the target transfer test port, and the transfer module 555 passes the self-loop accelerated test packet through the corresponding virtual area network channel. The test is transmitted to the target transmission test unit 530 and then transmitted to the network device 600 to be tested to which the target transmission test unit 530 is connected. The network device 600 to be tested may be a switch, a router, other types of network communication devices, or other electronic devices that can transmit or receive network packets.
接收模組556自目標接收測試埠所連接之待測網路設備,接收待測封包對應之至少一相關封包。於本實施例中,設定模組553選擇網路測試埠530作為目標接收測試埠, 則接收模組556自目標接收測試埠530所連接之待測網路設備600,接收待測封包對應之至少一相關封包。在本發明之一些實施例中,相關封包可為待測網路設備600接收待測封包後所對應產生之封包。在本發明之另一些實施例中,相關封包可為經過待測網路設備600轉傳後之待測封包。此外,在本發明之一些實施例中,處理元件550可進一步藉由存取控制列表(access control list,ACL),篩選所接收到之相關封包。 The receiving module 556 receives the network device to be tested connected to the test packet from the target, and receives at least one related packet corresponding to the packet to be tested. In this embodiment, the setting module 553 selects the network test port 530 as the target receiving test port. The receiving module 556 receives the at least one related packet corresponding to the packet to be tested from the network device 600 to be tested connected to the target receiving test module 530. In some embodiments of the present invention, the related packet may be a packet generated by the network device 600 to be tested after receiving the packet to be tested. In other embodiments of the present invention, the related packet may be a packet to be tested after being transmitted through the network device 600 to be tested. Moreover, in some embodiments of the present invention, processing component 550 can further filter the received associated packets by an access control list (ACL).
結果取得模組557根據待測封包之一傳送資訊以及相關封包之一接收資訊,分析對待測網路設備600之測試。舉例來說,結果取得模組557可分析傳送模組555於傳送該測試封包時,所傳送之待測封包之個數、字節數、實際傳輸速率、錯誤封包個數、其他傳送封包時相關之資訊或其組合的該傳送資訊。並可分析接收模組556於接收相關封包時,所接收之相關封包之個數、字節數、實際傳輸速率、錯誤封包個數、其他接收封包時相關之資訊或其組合的該接收資訊。如此一來,結果取得模組557可根據其分析結果,判斷待測網路設備600是否工作正常。此外,僅需支援虛擬區域網路通道功能之網路通訊設備,即可實作出本發明之測試裝置500,不需昂貴之封包測試儀表即可進行封包測試。 The result obtaining module 557 analyzes the test of the network device 600 to be tested according to one of the packets to be tested and one of the related packets. For example, the result obtaining module 557 can analyze the number of the packets to be tested, the number of bytes, the actual transmission rate, the number of error packets, and other transmission packets when the transmission module 555 transmits the test packet. The information of the information or a combination thereof. And receiving, by the receiving module 556, when receiving the relevant packet, the number of received related packets, the number of bytes, the actual transmission rate, the number of error packets, other information related to receiving the packet, or the combination of the received information. In this way, the result obtaining module 557 can determine whether the network device 600 to be tested is working properly according to the analysis result. In addition, the test device 500 of the present invention can be implemented by simply supporting the network communication device of the virtual local area network channel function, and the packet test can be performed without an expensive packet test instrument.
處理元件550更可包含一識別資訊處理模組559。識別資訊處理模組559將目標傳送測試埠530對應之虛擬區域網路通道之識別資訊,加入至待測封包。於是,傳送模組555可根據對應之虛擬區域網路通道之識別資訊,找到 目標傳送測試埠530對應之虛擬區域網路通道,以進行傳送。此外,設定模組553更可自網路測試埠530、540中,選擇多個目標傳送測試埠。舉例來說,如欲將同一待測封包傳送到多個不同之目標傳送測試埠進行測試時,處理元件550可複製多份待測封包,識別資訊處理模組559將各目標傳送測試埠之識別資訊加入各待測封包。接下來,傳送模組555可依據各待測封包中不同之虛擬區域網路通道之識別資訊,將待測封包傳送到多個目標傳送測試埠。在本發明之其他實施例中,識別資訊處理模組559亦可將多個相同或相異之目標傳送測試埠對應之虛擬區域網路通道之識別資訊,加入多個相同或相異之待測封包,供傳送模組555傳送而進行測試,並不限於本揭露。如此一來,可同時對多個不同網路測試埠所連接之待測網路設備,進行相同或相異之封包測試。 The processing component 550 can further include an identification information processing module 559. The identification information processing module 559 adds the identification information of the virtual area network channel corresponding to the target transmission test module 530 to the packet to be tested. Therefore, the transmission module 555 can be found according to the identification information of the corresponding virtual area network channel. The target transmits a virtual local area network channel corresponding to test 530 for transmission. In addition, the setting module 553 can select a plurality of target transmission test files from the network test ports 530 and 540. For example, if the same packet to be tested is to be transmitted to a plurality of different target transmission tests for testing, the processing component 550 may copy a plurality of packets to be tested, and the identification information processing module 559 identifies each target transmission test. Information is added to each packet to be tested. Next, the transmitting module 555 can transmit the packet to be tested to the plurality of target transmission test ports according to the identification information of the different virtual area network channels in each of the tested packets. In other embodiments of the present invention, the identification information processing module 559 may also add identification information of multiple virtual area network channels corresponding to the same or different target transmission test to multiple identical or different samples to be tested. The packet is transmitted for transmission by the transmission module 555 and is not limited to the disclosure. In this way, the same or different packet test can be performed on the network devices to be tested connected to multiple different network test terminals at the same time.
此外,處理元件550之一移除模組560可移除待測封包中對應之虛擬區域網路通道之識別資訊。在移除完成後,移除模組560驅動傳送模組555開始傳送。如此一來,可避免虛擬區域網路通道之識別資訊,影響測試結果。 In addition, the processing module 550 removes the module 560 to remove the identification information of the corresponding virtual area network channel in the packet to be tested. After the removal is complete, the removal module 560 drives the delivery module 555 to begin transmission. In this way, the identification information of the virtual local area network channel can be avoided, and the test result is affected.
另外,處理元件550更可包含一服務品質隊列提供模組558。服務品質隊列提供模組558提供數個服務品質隊列。各服務品質隊列對應網路測試埠530、540的其中之一。於是,處理元件550接收待測封包之一目標測試速率時,服務品質隊列提供模組558可藉由將目標傳送測試埠對應之服務品質隊列之帶寬設定至目標測試速率,而將待測封包之傳送速率控制至目標測試速率。如此一來,可提 供不同速率之封包測試。 In addition, the processing component 550 can further include a quality of service queue providing module 558. The Quality of Service Queue provides Module 558 with a number of Quality of Service queues. Each service quality queue corresponds to one of the network tests 埠 530, 540. Then, when the processing component 550 receives the target test rate of the packet to be tested, the service quality queue providing module 558 can set the bandwidth of the service quality queue corresponding to the target transmission test to the target test rate, and the packet to be tested is The transfer rate is controlled to the target test rate. In this way, mention Packet testing for different rates.
除此之外,本發明實施例之測試方法或裝置亦可應用在現有的乙太網路交換器設備中,透過乙太網路交換器設備的現有功能,進行網路設備的測試,因此可以降低用於測試網路設備的測試裝置所需的昂貴成本。 In addition, the testing method or device of the embodiment of the present invention can also be applied to an existing Ethernet switch device, and the network device is tested through the existing functions of the Ethernet switch device, so Reduce the costly cost of testing devices used to test network devices.
雖然本發明已以實施方式揭露如上,然其並非用以限定本發明,任何熟習此技藝者,在不脫離本發明之精神和範圍內,當可作各種之更動與潤飾。因此,本發明之保護範圍當視後附之申請專利範圍所界定者為準。 While the invention has been described above in terms of its embodiments, it is not intended to limit the invention, and various modifications and changes can be made without departing from the spirit and scope of the invention. Therefore, the scope of the invention is defined by the scope of the appended claims.
100‧‧‧測試方法 100‧‧‧Test method
110-180‧‧‧步驟 110-180‧‧‧Steps
201、202‧‧‧環路埠 201, 202‧‧‧ Loop 埠
203、204‧‧‧網路測試埠 203, 204‧‧‧Network Test埠
205‧‧‧處理元件 205‧‧‧Processing components
301-303‧‧‧虛擬區域網路通道 301-303‧‧‧Virtual Area Network Channel
400‧‧‧待測網路設備 400‧‧‧Network equipment to be tested
500‧‧‧測試裝置 500‧‧‧Testing device
510‧‧‧第一環路埠 510‧‧‧ First loop
520‧‧‧第二環路埠 520‧‧‧Second Loop
530、540‧‧‧網路測試埠 530, 540‧‧‧Network Test埠
550‧‧‧處理元件 550‧‧‧Processing components
551‧‧‧通道提供模組 551‧‧‧ channel providing module
552‧‧‧封包處理模組 552‧‧‧Packing Processing Module
553‧‧‧設定模組 553‧‧‧Setting module
554‧‧‧自環模組 554‧‧‧Self-loop module
555‧‧‧傳送模組 555‧‧‧Transmission module
556‧‧‧接收模組 556‧‧‧ receiving module
557‧‧‧結果取得模組 557‧‧‧Results acquisition module
558‧‧‧服務品質隊列提供模組 558‧‧‧Service Quality Queue Provides Module
559‧‧‧識別資訊處理模組 559‧‧‧Identification Information Processing Module
560‧‧‧移除模組 560‧‧‧Remove module
600‧‧‧待測網路設備 600‧‧‧Network equipment to be tested
為讓本發明之上述和其他目的、特徵、優點與實施例能更明顯易懂,所附圖式之說明如下:第1圖係依照本發明一實施例的一種測試方法之流程圖。 The above and other objects, features, advantages and embodiments of the present invention will become more apparent and understood.
第2圖係應用本發明之測試方法之系統之示意圖。 Figure 2 is a schematic illustration of a system to which the test method of the present invention is applied.
第3圖繪示依照本發明一實施例的一種測試裝置之功能方塊圖。 FIG. 3 is a functional block diagram of a test apparatus according to an embodiment of the invention.
100‧‧‧測試方法 100‧‧‧Test method
110-180‧‧‧步驟 110-180‧‧‧Steps
Claims (10)
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310007776.1A CN103916286B (en) | 2013-01-09 | 2013-01-09 | Test method and device for detecting network device |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201429189A true TW201429189A (en) | 2014-07-16 |
TWI514813B TWI514813B (en) | 2015-12-21 |
Family
ID=51041704
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW102103150A TWI514813B (en) | 2013-01-09 | 2013-01-28 | Method and device for testing network equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103916286B (en) |
TW (1) | TWI514813B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI559704B (en) * | 2015-01-12 | 2016-11-21 | Test method of network transmission rate |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105323122B (en) * | 2015-12-04 | 2019-01-15 | 北京博维亚讯技术有限公司 | A kind of throughput of network device test device and test method based on interchanger |
CN109962824A (en) * | 2017-12-26 | 2019-07-02 | 新汉股份有限公司 | High-speed network appliance and its self test method |
CN112436983B (en) * | 2020-11-23 | 2023-02-17 | 锐捷网络股份有限公司 | Analog wide area network data transmission method and device, electronic equipment and storage medium |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6912202B1 (en) * | 2001-01-25 | 2005-06-28 | Advanced Micro Device, Inc. | Arrangement for testing network switch expansion port using external logic to emulate connected expansion port |
US6816465B1 (en) * | 2001-01-29 | 2004-11-09 | Advanced Micro Devices, Inc. | Arrangement for testing pause frame response in a network switch |
CN1852173A (en) * | 2005-04-22 | 2006-10-25 | 智邦科技股份有限公司 | Detecting apparatus and method for network connection apparatus |
CN1917452A (en) * | 2005-08-19 | 2007-02-21 | 上海亿人通信终端有限公司 | Method for testing forwarding performance of Ethernet exchange, and method for configuring network |
US8117301B2 (en) * | 2006-01-30 | 2012-02-14 | Juniper Networks, Inc. | Determining connectivity status for unnumbered interfaces of a target network device |
CN101557322B (en) * | 2008-04-07 | 2011-05-11 | 智邦科技股份有限公司 | Method using network switch as network device testing instrument |
TWI375434B (en) * | 2008-12-31 | 2012-10-21 | Universal Scient Ind Shanghai | Multiple lan ports testing system and method thereof |
-
2013
- 2013-01-09 CN CN201310007776.1A patent/CN103916286B/en not_active Expired - Fee Related
- 2013-01-28 TW TW102103150A patent/TWI514813B/en not_active IP Right Cessation
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI559704B (en) * | 2015-01-12 | 2016-11-21 | Test method of network transmission rate |
Also Published As
Publication number | Publication date |
---|---|
CN103916286B (en) | 2017-05-17 |
TWI514813B (en) | 2015-12-21 |
CN103916286A (en) | 2014-07-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10587491B1 (en) | Testing computer networks in real time | |
US7500158B1 (en) | System and method for network device configuration | |
CN108737003B (en) | Methods, systems, and computer readable media for testing Time Sensitive Network (TSN) elements | |
US10764148B2 (en) | Methods, systems, and computer readable media for network traffic statistics collection | |
US8391157B2 (en) | Distributed flow analysis | |
US10666775B1 (en) | Integrated packet generator and checker | |
US10659571B1 (en) | Network device with integrated packet generators or packet checkers | |
TWI514813B (en) | Method and device for testing network equipment | |
US20160323166A1 (en) | Signature-Based Latency Extraction Systems And Related Methods For Network Packet Communications | |
EP1802037A2 (en) | System and method for measuring network performance using real network traffic | |
JP2005006303A (en) | Virtual network address | |
JP2007259069A (en) | Switch apparatus | |
US20130250777A1 (en) | Packet descriptor trace indicators | |
CN109479014B (en) | Method, system, and computer readable medium for network test configuration using Virtual Local Area Network (VLAN) scanning | |
CN110324198A (en) | Loss treating method and packet loss processing unit | |
EP2974146B1 (en) | Methods, systems, and computer readable media for assisting with the debugging of conditions associated with the processing of test packets by a device under test | |
JP2017530645A5 (en) | ||
CN105991358A (en) | Method, device, test board and system for testing traffic of interface board | |
JP6691268B2 (en) | Monitoring device, monitoring method, and monitoring program | |
WO2022268226A1 (en) | Client identification method and apparatus, and storage medium and network device | |
US20170093665A1 (en) | Problem detection in a distributed digital network through distributed packet analysis | |
US20050117513A1 (en) | Flow generation method for internet traffic measurement | |
CN106936664B (en) | Software defined network path performance testing device and method | |
KR101414176B1 (en) | Apparatus and method for analyzing vulnerability of zigbee network | |
TWI559704B (en) | Test method of network transmission rate |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |