TWI718623B - Network transmission detection system - Google Patents

Network transmission detection system Download PDF

Info

Publication number
TWI718623B
TWI718623B TW108129307A TW108129307A TWI718623B TW I718623 B TWI718623 B TW I718623B TW 108129307 A TW108129307 A TW 108129307A TW 108129307 A TW108129307 A TW 108129307A TW I718623 B TWI718623 B TW I718623B
Authority
TW
Taiwan
Prior art keywords
port
tested
under test
identification code
area network
Prior art date
Application number
TW108129307A
Other languages
Chinese (zh)
Other versions
TW202110134A (en
Inventor
楊政道
Original Assignee
明泰科技股份有限公司
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 明泰科技股份有限公司 filed Critical 明泰科技股份有限公司
Priority to TW108129307A priority Critical patent/TWI718623B/en
Application granted granted Critical
Publication of TWI718623B publication Critical patent/TWI718623B/en
Publication of TW202110134A publication Critical patent/TW202110134A/en

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

本發明係一種網路傳輸檢測系統,一待測網路裝置設有一第一待測埠與一第二待測埠,一測試裝置能使該等待測埠相互傳輸封包,本發明之特徵在於,該第一待測埠具有一第一VLAN ID、一第二VLAN ID與一第一port-based VLAN ID,該第二待測埠具有該第一VLAN ID、該第二VLAN ID與一第二port-based VLAN ID,且第一port-based VLAN ID相同於第一VLAN ID,第二port-based VLAN ID相同於第二VLAN ID,該待測網路裝置內還儲存有一L2表格,且該L2表格會記載一第一條目與一第二條目,該第一條目包括一第一地址對應於第一待測埠的第一VLAN ID,該第二條目包括一第二地址對應於該第二待測埠的第二VLAN ID,當該等待測埠分別發出封包後,該待測網路裝置會根據該L2表格的對應條目,將各個封包經由自身內部傳回至對應的待測埠。 The present invention is a network transmission detection system. A network device to be tested is provided with a first port to be tested and a second port to be tested, and a test device enables the ports to be tested to mutually transmit packets. The feature of the present invention is that: The first port under test has a first VLAN ID, a second VLAN ID, and a first port-based VLAN ID, and the second port under test has the first VLAN ID, the second VLAN ID, and a second port-based VLAN ID, and the first port-based VLAN ID is the same as the first VLAN ID, and the second port-based VLAN ID is the same as the second VLAN ID. There is also an L2 table stored in the network device under test, and the The L2 table will record a first entry and a second entry, the first entry includes a first address corresponding to the first VLAN ID of the first port under test, and the second entry includes a second address corresponding to In the second VLAN ID of the second port under test, when the waiting port sends out packets, the network device under test will return each packet to the corresponding waiting port according to the corresponding entry in the L2 table. Test port.

Description

網路傳輸檢測系統 Network transmission detection system

本發明係關於網路傳輸檢測系統,尤指一種設有L2表格,以能將小封包作為測試用的封包,且同樣能達成線路滿載的網路傳輸檢測系統。 The present invention relates to a network transmission detection system, in particular to a network transmission detection system with an L2 form, which can use small packets as test packets, and can also achieve full line load.

一般來說,在網路通訊裝置(如:路由器、網路交換器、網路伺服器...等)推出於市場前,業者必須先對該等網路通訊裝置進行功能上之測試,以確保該等網路通訊裝置具有良好之傳輸效能,惟,業者發現該等網路通訊裝置在線路未達滿載的狀態下,即使原先通過測試,在使用者對各該網路通訊裝置進行自我測試時,卻可能會發現未達測試標準之問題,據此,發明人認為,令該等網路通訊裝置在達到線路滿載之狀態後,始進行網路傳輸速率之測試,必定會使測試結果更佳精確。 Generally speaking, before network communication devices (such as routers, network switches, network servers... etc.) are launched on the market, the industry must first perform functional tests on these network communication devices to Ensure that these network communication devices have good transmission performance. However, if the industry finds that these network communication devices have passed the test before the line is not fully loaded, the user will conduct a self-test on each network communication device. However, the problem of failure to meet the test standards may be found. Based on this, the inventor believes that if the network communication devices start to test the network transmission rate after the line is fully loaded, the test results will definitely be improved. Good precision.

承上,目前網路傳輸速率的測試方式大致能分為回送測試(Loopback Test)、飽和測試(Saturation Test)、蛇形測試(Snake Test)與外部測試(External Test),茲簡單說明如下:(1)回送測試(Loopback Test):其是使一網路通訊裝置能發送特定格式的封包給自身,以對封包內容進行驗證,但是,由於網路通訊裝置的中央處理單元(CPU),其一方面需產生封包,另一方面則必須對該封包進行 驗證,故會導致封包的傳輸速率較慢;(2)飽和測試(Saturation Test):其是把網路通訊裝置的所有通訊埠(port)都處於同一個虛擬區域網路(Virtual Local Area Network,簡稱VLAN),之後,該網路通訊裝置會以廣播方式(Broadcast),對自身的通訊埠發送不同大小的封包,直到該網路通訊裝置達到線路滿載後,才對該等封包進行首次檢驗,並在等待一預定檢測期間後,再度檢查在該預定檢測期間內是否收到錯誤的封包,如此,該網路通訊裝置較能檢測出高速傳輸下始會發生的錯誤及問題,但是,由於網路系統中流竄著各種大小不同的封包,反而更不易精確地檢驗出正確的網路傳輸速率;(3)蛇形測試(Snake Test):其是將網路通訊裝置的所有通訊埠進行串接,使得封包能由第一個通訊埠傳送到最後一個通訊埠,但是,由於網路通訊裝置的中央處理單元(CPU)同樣需一方面產生封包,另一方面對該封包進行驗證,因此,往往無法產生出足夠的封包數量來達到線路滿載;(4)外部測試(External Test):其是在相同於前述蛇形測試之網路環境下,透過外部的測試機器來收送封包,此種作法,雖然能夠令網路通訊裝置達到線路滿載,且能驗證到虛擬區域網路的功能,但是,由於外部的測試機器之造價成本很高,且有後續定期維修及保養的花費,故並不符合實際效益。 In conclusion, the current testing methods of network transmission rate can be roughly divided into Loopback Test, Saturation Test, Snake Test and External Test. Here is a brief description:( 1) Loopback Test: It enables a network communication device to send packets of a specific format to itself to verify the content of the packet. However, due to the central processing unit (CPU) of the network communication device, one of the On the one hand, a packet must be generated, and on the other hand, the packet must be Verification, it will cause the packet transmission rate to be slow; (2) Saturation Test: It puts all the ports of the network communication device in the same Virtual Local Area Network (Virtual Local Area Network, After that, the network communication device will send packets of different sizes to its own communication port in a broadcast mode, and the first inspection of these packets will not be carried out until the network communication device reaches full capacity. And after waiting for a predetermined detection period, check again whether the wrong packet is received during the predetermined detection period. In this way, the network communication device can better detect errors and problems that occur under high-speed transmission. However, due to the network There are packets of various sizes in the system, which makes it more difficult to accurately check the correct network transmission rate; (3) Snake Test: It is to connect all the communication ports of the network communication device in series. , So that the packet can be sent from the first communication port to the last communication port. However, because the central processing unit (CPU) of the network communication device also needs to generate the packet on the one hand, and verify the packet on the other hand, it is often Unable to generate enough packets to reach full line load; (4) External Test: It uses an external test machine to send and receive packets under the same network environment as the aforementioned snake test. , Although it can make the network communication device reach the full line and verify the function of the virtual local area network, but because the cost of the external test machine is very high, and there are follow-up regular repairs and maintenance costs, it does not meet Actual benefits.

有鑑於此,申請人曾利用一種新的網速測試方式,該網速測試方式是將兩個通訊埠(port)設定為同一個VLAN,並透過VLAN的機制,令固定長度的封包以廣播(Broadcast)方式在網路通訊裝置中進行送收與轉發,直到該網路通訊裝置達到滿載為止,之後,才利用收送封包的數量和 封包的固定長度來計算出整體的傳輸速度,以能一併解決前述習知測試方式的缺點。惟,後續實際使用後,申請人發現,由於新型SoC(System on a Chip)內部的記憶體管理單元(Memory Management Unit,簡稱MMU),其在傳送封包時,有限的資源分配方式會造成未知封包(Unknown Unicast)、多播(Multicast)與廣播(Broadcast)上有使用率的限制,此種情況,將會導致封包在小於特定長度時,即,當網路通訊裝置利用小封包進行轉發後,申請人利用前述的網速測試方式後,會造成網路通訊裝置的網路傳輸速度未達標準,使得網路通訊裝置無法利用小封包達成滿載傳輸以進行網速測試。 In view of this, the applicant has used a new network speed test method. The network speed test method is to set two ports to the same VLAN and use the VLAN mechanism to broadcast fixed-length packets ( Broadcast) method to send, receive and forward in the network communication device until the network communication device is fully loaded, and then use the number of packets sent and received The fixed length of the packet is used to calculate the overall transmission speed, so as to solve the shortcomings of the aforementioned conventional test methods. However, after the subsequent actual use, the applicant found that due to the memory management unit (MMU) inside the new SoC (System on a Chip), the limited resource allocation method will cause unknown packets when transmitting packets. (Unknown Unicast), Multicast (Multicast) and Broadcast (Broadcast) have usage rate restrictions. In this case, the packet will be less than a certain length, that is, when the network communication device uses small packets to forward, After the applicant uses the aforementioned network speed test method, the network transmission speed of the network communication device will not reach the standard, so that the network communication device cannot use small packets to achieve full transmission for the network speed test.

綜上所述,如何有效解決前述問題,使得網路通訊裝置能夠以小封包的方式,順利地完成網速測試方式,即成為本發明在此亟欲解決的重要問題。 In summary, how to effectively solve the aforementioned problems so that the network communication device can successfully complete the network speed test method in the form of small packets has become an important problem to be solved by the present invention.

有鑑於習知測試方式應用於新型SoC時,無法利用小封包達成滿載傳輸的效果,因此,發明人乃憑藉著多年來的實務經驗,並經過多次的實驗及測試後,終於設計出本發明之一種網路傳輸檢測系統,期能藉由本發明,有效改善前述的諸多缺失。 In view of the fact that when the conventional test method is applied to a new SoC, it is impossible to use small packets to achieve the effect of full load transmission. Therefore, the inventor has finally designed the present invention based on years of practical experience and after many experiments and tests. A network transmission detection system is expected to be able to effectively improve many of the aforementioned shortcomings by means of the present invention.

本發明之一目的,係提供一種網路傳輸檢測系統,包括一待測網路裝置與一測試裝置,其中,該待測網路裝置至少設有一待測埠組,該待測埠組包括一第一待測埠與一第二待測埠,且該第一待測埠與第二待測埠能透過一回接治具相互連接,該測試裝置則與該待測網路裝置相連接,其能使該等待測埠相互傳輸封包,本發明之特徵在於,該第一待測埠具有一第一虛擬區域網路辨識碼、一第二虛擬區域網路辨識碼與一第一埠 口基礎虛擬區域網路辨識碼,且該第一埠口基礎虛擬區域網路辨識碼相同於該第二虛擬區域網路辨識碼,該第二待測埠則具有該第一虛擬區域網路辨識碼、該第二虛擬區域網路辨識碼與一第二埠口基礎虛擬區域網路辨識碼,且該第二埠口基礎虛擬區域網路辨識碼相同於該第一虛擬區域網路辨識碼,該待測網路裝置內儲存有一L2表格,其中,該L2表格會記載一第一條目與一第二條目,該第一條目至少包括一第一地址對應於該第一待測埠之該第一虛擬區域網路辨識碼的內容,該第二條目至少包括一第二地址對應於該第二待測埠之該第二虛擬區域網路辨識碼的內容,在該第一待測埠發出封包至該第二待測埠,且封包的目標位址為該第一地址的狀態下,該待測網路裝置會根據該L2表格的該第一條目,將前述封包經由該待測網路裝置的內部傳回至該第一待測埠;在該第二待測埠發出封包至該第一待測埠,且封包的目標位址為該第二地址的狀態下,該待測網路裝置會根據該L2表格的該第二條目,將前述封包經由該待測網路裝置的內部傳回至該第二待測埠,如此,由於該網路傳輸檢測系統內所傳輸的封包都為已知目標位置,並採用單播(Unicast)技術,因此,儘管待測網路裝置是使用小封包,同樣能達成線路滿載的效果。 An object of the present invention is to provide a network transmission detection system, including a network device to be tested and a test device, wherein the network device to be tested is provided with at least one port group to be tested, and the port group to be tested includes a A first port to be tested and a second port to be tested, and the first port to be tested and the second port to be tested can be connected to each other through a loopback fixture, and the test device is connected to the network device under test, It enables the port to be tested to transmit packets to each other. The feature of the present invention is that the first port to be tested has a first virtual area network identification code, a second virtual area network identification code and a first port Port basic virtual area network identification code, and the first port basic virtual area network identification code is the same as the second virtual area network identification code, and the second port under test has the first virtual area network identification code Code, the second virtual local area network identification code, and a second port basic virtual local area network identification code, and the second port basic virtual local area network identification code is the same as the first virtual local area network identification code, The network device under test stores an L2 table, where the L2 table records a first entry and a second entry, and the first entry includes at least a first address corresponding to the first port under test The content of the first virtual area network identification code, the second entry includes at least a second address corresponding to the content of the second virtual area network identification code of the second port to be tested, in the first waiting port When the test port sends a packet to the second port under test, and the target address of the packet is the first address, the network device under test will pass the packet through the first entry in the L2 table. The internal part of the network device under test is sent back to the first port under test; when the second port under test sends a packet to the first port under test, and the target address of the packet is the second address, the According to the second entry of the L2 table, the network device under test will return the aforementioned packet to the second port under test through the inside of the network device under test. The transmitted packets are all known target locations, and unicast technology is used. Therefore, although the network device under test uses small packets, the effect of full line load can also be achieved.

本發明之另一目的,係提供一種網路傳輸檢測系統,包括一待測網路裝置與一測試裝置,其中,該待測網路裝置至少設有一待測埠組,該待測埠組包括一第一待測埠與一第二待測埠,且該第一待測埠能透過一回接治具連接至自身,該第二待測埠則能透過另一回接治具連接至自身,該測試裝置則與該待測網路裝置相連接,並能使各該待測埠發出封包,以傳回給自身,本發明之特徵在於,該第一待測埠具有一第一虛擬區域網路 辨識碼、一第二虛擬區域網路辨識碼與一第一埠口基礎虛擬區域網路辨識碼,且該第一埠口基礎虛擬區域網路辨識碼相同於該第二虛擬區域網路辨識碼,該第二待測埠則具有該第一虛擬區域網路辨識碼、該第二虛擬區域網路辨識碼與一第二埠口基礎虛擬區域網路辨識碼,且該第二埠口基礎虛擬區域網路辨識碼相同於該第一虛擬區域網路辨識碼,該待測網路裝置內儲存有一L2表格,其中,該L2表格會記載一第一條目與一第二條目,該第一條目至少包括一第一地址對應於該第二待測埠之該第二虛擬區域網路辨識碼的內容,該第二條目至少包括該第一地址對應於該第一待測埠之該第一虛擬區域網路辨識碼的內容,在該第一待測埠發出封包回送給自身,且封包的目標位址為該第一地址的狀態下,該待測網路裝置會根據該L2表格的該第一條目,將前述封包經由該待測網路裝置的內部傳送至該第二待測埠,該第二待測埠接收到前述封包後,會再度發出前述封包回送給自身,該待測網路裝置會根據該L2表格的該第二條目,將前述封包經由該待測網路裝置的內部傳送至該第一待測埠,如此,該網路傳輸檢測系統同樣能採用小封包作為測試用的封包,並能達成線路滿載的效果。 Another object of the present invention is to provide a network transmission detection system, including a network device to be tested and a test device, wherein the network device to be tested is provided with at least one port group to be tested, and the port group to be tested includes A first port to be tested and a second port to be tested, and the first port to be tested can be connected to itself through a loopback fixture, and the second port to be tested can be connected to itself through another loopback fixture , The test device is connected to the network device under test, and enables each port to be tested to send a packet to be sent back to itself. The feature of the present invention is that the first port to be tested has a first virtual area network Identification code, a second virtual local area network identification code and a first port basic virtual local area network identification code, and the first port basic virtual local area network identification code is the same as the second virtual local area network identification code , The second port to be tested has the first virtual local area network identification code, the second virtual local area network identification code, and a second port basic virtual local area network identification code, and the second port basic virtual The local area network identification code is the same as the first virtual local area network identification code. An L2 table is stored in the network device under test. The L2 table records a first entry and a second entry. An entry includes at least the content of a first address corresponding to the second virtual area network identification code of the second port under test, and the second entry includes at least the content of the first address corresponding to the first port under test The content of the first virtual local area network identification code, when the first port under test sends a packet back to itself, and the destination address of the packet is the first address, the network device under test will follow the L2 The first entry of the table sends the aforementioned packet to the second port under test through the inside of the network device under test. After receiving the aforementioned packet, the second port under test will send the aforementioned packet back to itself again. The network device under test will send the aforementioned packet to the first port under test through the inside of the network device under test according to the second entry of the L2 table. In this way, the network transmission detection system can also use Small packets are used as test packets and can achieve the effect of full line load.

為便 貴審查委員能對本發明目的、技術特徵及其功效,做更進一步之認識與瞭解,茲舉實施例配合圖式,詳細說明如下: In order to facilitate your reviewer to have a further understanding and understanding of the purpose, technical features and effects of the present invention, the examples and diagrams are described in detail as follows:

〔習知〕 [Learning]

no

〔本發明〕 〔this invention〕

1‧‧‧網路傳輸檢測系統 1‧‧‧Network transmission detection system

11‧‧‧待測網路裝置 11‧‧‧Network device under test

11A‧‧‧待測埠組 11A‧‧‧Port group to be tested

110‧‧‧L2表格 110‧‧‧L2 Form

111‧‧‧第一待測埠 111‧‧‧The first port to be tested

112‧‧‧第二待測埠 112‧‧‧Second port to be tested

13‧‧‧測試裝置 13‧‧‧Test device

15、25、26‧‧‧回接治具 15, 25, 26‧‧‧Return fixture

第1圖係本發明之網路傳輸檢測系統的示意圖;第2圖係本發明之第一實施例的待測網路裝置之示意圖;第3圖係本發明之第一實施例的傳輸路徑示意圖; 第4圖係本發明之第二實施例的待測網路裝置之示意圖;及第5圖係本發明之第二實施例的傳輸路徑示意圖。 Figure 1 is a schematic diagram of the network transmission detection system of the present invention; Figure 2 is a schematic diagram of the network device under test of the first embodiment of the present invention; Figure 3 is a schematic diagram of the transmission path of the first embodiment of the present invention ; Fig. 4 is a schematic diagram of the network device under test according to the second embodiment of the present invention; and Fig. 5 is a schematic diagram of the transmission path of the second embodiment of the present invention.

本發明係一種網路傳輸檢測系統,以能適用於以小封包進行網路傳輸速率的測試方式,請參閱第1及2圖所示,在第一實施例中,該網路傳輸檢測系統1包括至少一待測網路裝置11(如:路由器、網路交換器、網路伺服器...等)與一測試裝置13,其中,該待測網路裝置11至少設有一待測埠組11A,該待測埠組11A包括一第一待測埠111與一第二待測埠112,且該第一待測埠111與第二待測埠112兩者能透過一回接治具15(loopback cable)相互連接,使得該第一待測埠111與第二待測埠112能相互傳輸封包。 The present invention is a network transmission detection system, which is suitable for testing the network transmission rate with small packets. Please refer to Figures 1 and 2. In the first embodiment, the network transmission detection system 1 Including at least one network device under test 11 (such as router, network switch, network server, etc.) and a test device 13, wherein the network device under test 11 has at least one port group under test 11A, the port group under test 11A includes a first port under test 111 and a second port under test 112, and both the first port under test 111 and the second port under test 112 can be connected to a fixture 15 (loopback cables) are connected to each other, so that the first port under test 111 and the second port under test 112 can transmit packets to each other.

承上,復請參閱第1及2圖所示,在該第一實施例中,該測試裝置13能為電腦或其它電子裝置,其能與該待測網路裝置11相電氣連接,並對該測試裝置13發出控制訊息,令該第一待測埠111能發出封包,並透過該回接治具15傳送至該第二待測埠112,以及令該第二待測埠112發出封包,並透過該回接治具15傳送至該第一待測埠111,其中,第一待測埠111與第二待測埠112所發出的封包能夠為相同的固定長度,且該封包的長度能等於或小於295位元組,但不以此為限,因為,本發明之網路傳輸檢測系統1雖然能夠適用於小封包,但同樣能夠適用於大封包(即,超過295位元組),使得該網路傳輸檢測系統1具有更佳的適用性,而能對更多的網路通訊裝置進行測試。 Continuing, please refer to Figures 1 and 2. In the first embodiment, the testing device 13 can be a computer or other electronic device, which can be electrically connected to the network device under test 11, and The test device 13 sends a control message to enable the first port 111 to be tested to send a packet, and to send it to the second port 112 to be tested through the loopback fixture 15, and to make the second port 112 to be tested send a packet, And send to the first port 111 to be tested through the loopback fixture 15, wherein the packets sent by the first port 111 and the second port 112 to be tested can have the same fixed length, and the length of the packet can be It is equal to or less than 295 bytes, but not limited to this, because although the network transmission detection system 1 of the present invention can be applied to small packets, it can also be applied to large packets (that is, more than 295 bytes), Therefore, the network transmission detection system 1 has better applicability and can test more network communication devices.

請參閱第1至3圖所示,在該第一實施例中,該第一待測埠111會屬於兩個虛擬區域網路(Virtual LocalArea Network,簡稱VLAN)和一個埠 口基礎虛擬區域網路(port-based VLAN),其中,該第一待測埠111具有一第一虛擬區域網路辨識碼(VLAN ID)、一第二虛擬區域網路辨識碼與一第一埠口基礎虛擬區域網路辨識碼(port-based VLAN ID),且該第一埠口基礎虛擬區域網路辨識碼相同於該第二虛擬區域網路辨識碼,以虛擬區域網路為M1、M2為例,第一虛擬區域網路辨識碼能對應於M1,第二虛擬區域網路辨識碼能對應於M2,第一埠口基礎虛擬區域網路辨識碼能對應於M2;又,該第二待測埠112亦會屬於兩個虛擬區域網路和一個埠口基礎虛擬區域網路,其中,該第二待測埠112具有該第一虛擬區域網路辨識碼、該第二虛擬區域網路辨識碼與一第二埠口基礎虛擬區域網路辨識碼,且該第二埠口基礎虛擬區域網路辨識碼會相同於第一虛擬區域網路辨識碼,因此,該第二埠口基礎虛擬區域網路辨識碼能對應於M1。 Please refer to Figures 1 to 3. In the first embodiment, the first port 111 to be tested will belong to two virtual local area networks (Virtual Local Area Network, VLAN for short) and one port. Port-based VLAN (port-based VLAN), wherein the first port 111 to be tested has a first virtual local area network identification code (VLAN ID), a second virtual local area network identification code, and a first Port-based VLAN ID (port-based VLAN ID), and the first port-based VLAN ID is the same as the second virtual LAN ID, with the virtual LAN as M1 Take M2 as an example. The first virtual local area network identification code can correspond to M1, the second virtual local area network identification code can correspond to M2, and the basic virtual local area network identification code of the first port can correspond to M2; The two ports under test 112 will also belong to two virtual local area networks and one port-based virtual local area network. Among them, the second port under test 112 has the first virtual local area network identification code and the second virtual local area network. The road identification code is the same as the basic virtual area network identification code of a second port, and the basic virtual area network identification code of the second port will be the same as the first virtual area network identification code. Therefore, the basic virtual area network identification code of the second port The virtual local area network identification code can correspond to M1.

另,復請參閱第1至3圖所示,在該第一實施例中,該待測網路裝置11內儲存有一L2表格110(L2 Table),其中,該L2表格110會記載一第一條目(entry)與一第二條目,該第一條目至少包括一第一地址(如:Y地址)對應於該第一待測埠111的第一虛擬區域網路辨識碼(如:M1)的內容,例如,該第一條目能記載為「Y@111,M1」;該第二條目則至少包括一第二地址(如:X地址)對應於該第二待測埠112的第二虛擬區域網路辨識碼(如:M2)的內容,例如,該第二條目能記載為「X@112,M2」;又,當該第一待測埠111產生目標位置為第一地址(如:Y地址)的封包,並傳輸至第二待測埠112後(如第3圖之點狀箭頭),由於第二待測埠112的第二埠口基礎虛擬區域網路辨識碼,其與第一待測埠111的第一虛擬區域網路辨識碼都對應於M1,因此,封包的轉發目標即為第一待測埠111的第一虛擬區域網路辨識碼(如: M1),故,該第二待測埠112收到前述封包後,該待測網路裝置11會先從L2表格110搜索轉發目標,其搜索條件為"目標位置是第一地址(如:Y地址)"與"第一待測埠111的第一虛擬區域網路辨識碼(如:M1)",之後,該待測網路裝置11便會根據該L2表格110的第一條目(如:Y@111,M1),將前述封包經由該待測網路裝置11的內部傳回至該第一待測埠111(如第3圖之虛線箭頭)。同理,當該第二待測埠112發出封包至該第一待測埠111,且封包的目標位址為第二地址(如:X地址)時,該待測網路裝置11即會根據L2表格110的第二條目(如:X@112,M2),將前述封包經由該待測網路裝置11的內部傳回至該第二待測埠112。 In addition, please refer to FIGS. 1 to 3 again. In the first embodiment, the network device under test 11 stores an L2 table 110 (L2 Table), wherein the L2 table 110 records a first Entry and a second entry, the first entry includes at least a first address (such as Y address) corresponding to the first virtual area network identification code of the first port 111 to be tested (such as: The content of M1), for example, the first entry can be recorded as "Y@111, M1"; the second entry includes at least a second address (such as X address) corresponding to the second port 112 under test The content of the second virtual local area network identification code (such as M2), for example, the second entry can be recorded as "X@112, M2"; and, when the target location generated by the first port 111 to be tested is the first After a packet with an address (such as Y address) is transmitted to the second port 112 to be tested (as the dotted arrow in Figure 3), the second port of the second port 112 to be tested is based on virtual local area network identification Code, which corresponds to M1 with the first virtual area network identification code of the first port 111 under test. Therefore, the forwarding destination of the packet is the first virtual area network identification code of the first port 111 under test (such as: M1). Therefore, after the second port 112 under test receives the aforementioned packet, the network device under test 11 will first search for the forwarding target from the L2 table 110, and the search condition is "the target location is the first address (e.g., Y Address) "and" the first virtual local area network identification code of the first port 111 to be tested (e.g. M1)", then the network device under test 11 will be based on the first entry of the L2 table 110 (e.g. : Y@111, M1), the aforementioned packet is transmitted back to the first port 111 to be tested via the inside of the network device under test 11 (as shown by the dotted arrow in Figure 3). In the same way, when the second port 112 under test sends a packet to the first port 111 under test, and the target address of the packet is the second address (such as X address), the network device under test 11 will follow The second entry of the L2 table 110 (such as X@112, M2) returns the aforementioned packet to the second port 112 under test through the inside of the network device 11 under test.

綜上所述可知,復請參閱第1至3圖所示,由於該網路傳輸檢測系統1中,該待測埠組11A所產生的封包都是屬於已知目標位置的封包,因此,在經過預定時間的轉發封包後,從第一待測埠111傳送至第二待測埠112的封包數量便足以讓線路達到滿載,同理,由第二待測埠112傳送至第一待測埠111的封包數量亦足以讓線路達到滿載。如此,由於本發明之網路傳輸檢測系統1是利用單播(Unicast)來傳送封包,且對L2表格110的內容進行特別的設應,避免有未知封包在網路傳輸檢測系統1裡傳送,故能適用於新型SoC上,並能滿足以小封包作為測試用之封包的目的。 In summary, please refer to Figures 1 to 3. In the network transmission detection system 1, the packets generated by the port group 11A under test are all packets belonging to a known target location. After a predetermined time of forwarding packets, the number of packets sent from the first port under test 111 to the second port under test 112 is sufficient to make the line fully loaded. Similarly, the number of packets sent from the second port under test 112 to the first port under test The number of packets of 111 is also enough to make the line reach full load. In this way, because the network transmission detection system 1 of the present invention uses unicast to transmit packets, and the content of the L2 table 110 is specially designed to prevent unknown packets from being transmitted in the network transmission detection system 1, Therefore, it can be applied to the new SoC, and can meet the purpose of using small packets as test packets.

再者,在第一實施例中,第一待測埠111與第二待測埠112是採用一個回接治具15進行連接,但不以此為限,在本發明之第二實施例中,為方便說明,後續僅就改變的元件進行重新標號,其它元件則仍維持原標號,合先陳明。請參閱第1及4圖所示,第一待測埠111能透過一回接治具25連接至自身,第二待測埠112則能透過另一回接治具26連接至自身, 又,該L2表格110的記載內容亦會隨之調整,其中,第一條目至少包括一第一地址(如:Y地址)對應於該第二待測埠112的第二虛擬區域網路辨識碼(如:M2)的內容,例如,該第一條目能記載為「Y@112,M2」;該第二條目至少包括該第一地址(如:Y地址)對應於該第一待測埠111的第一虛擬區域網路辨識碼(如:M1)的內容,例如,該第二條目能記載為「Y@111,M1」。 Furthermore, in the first embodiment, the first port to be tested 111 and the second port to be tested 112 are connected by a tie-back fixture 15, but it is not limited to this. In the second embodiment of the present invention , For the convenience of explanation, only the changed components will be re-labeled later, and the other components will still maintain the original label, so we will explain it first. Please refer to Figures 1 and 4, the first port 111 to be tested can be connected to itself through a loopback fixture 25, and the second port 112 to be tested can be connected to itself through another loopback fixture 26. In addition, the record content of the L2 table 110 will also be adjusted accordingly, wherein the first entry includes at least a first address (such as: Y address) corresponding to the second virtual area network identification of the second port 112 under test The content of the code (such as M2), for example, the first entry can be recorded as "Y@112, M2"; the second entry includes at least the first address (such as the Y address) corresponding to the first waiting The content of the first virtual local area network identification code (such as M1) of the test port 111, for example, the second entry can be recorded as "Y@111, M1".

復請參閱第4及5圖所示,當該第一待測埠111產生目標位置為第一地址(如:Y地址)的封包,並經由該回接治具25傳回至自身後(如第5圖之點狀箭頭),由於該第一待測埠111的第一埠口基礎虛擬區域網路辨識碼,其與第二待測埠112的第二虛擬區域網路辨識碼都對應於M2,因此,封包的轉發目標即為第二待測埠112的第二虛擬區域網路辨識碼(如:M2),故,該第一待測埠111收到前述封包後,該待測網路裝置11會先從L2表格110搜索轉發目標,其搜索條件為"目標位置是第一地址(如:Y地址)"與"第二待測埠112的第二虛擬區域網路辨識碼(如:M2)",之後,該待測網路裝置11便會根據該L2表格110的第一條目(如:Y@112,M2),將前述封包經由該待測網路裝置11的內部傳送至該第二待測埠112(如第5圖之虛線箭頭)。又,當該第二待測埠112收到前述封包後,其會再度發出封包,並經由另一回接治具26傳回至自身後,由於第二待測埠112的第二埠口基礎虛擬區域網路辨識碼,其與第一待測埠111的第一虛擬區域網路辨識碼都對應於M1,因此,封包的轉發目標即為第一待測埠111的第一虛擬區域網路辨識碼(如:M1),故,該待測網路裝置11會先從L2表格110搜索轉發目標,其搜索條件為"目標位置是第一地址(如:Y地址)"與"第一待測埠111的第一虛擬區域網路辨識碼(如:M1)",令該待測網路裝置11能根據該L2表格110的第二條目,將前 述封包經由該待測網路裝置11的內部傳送至該第一待測埠111,如此,在經過預定期間的轉發封包後,即可達成線路滿載的效果。 Please refer to Figures 4 and 5 again. When the first port 111 to be tested generates a packet whose target location is the first address (e.g. Y address) and sends it back to itself via the return fixture 25 (e.g. The dotted arrow in Figure 5), since the basic virtual area network identification code of the first port of the first port under test 111 corresponds to the second virtual area network identification code of the second port under test 112 M2, therefore, the forwarding destination of the packet is the second virtual local area network identification code of the second port 112 under test (such as M2). Therefore, after the first port 111 under test receives the aforementioned packet, the network under test The road device 11 will first search for the forwarding destination from the L2 table 110. The search conditions are "the destination location is the first address (e.g. Y address)" and "the second virtual local area network identification code of the second port 112 to be tested (e.g. : M2)", after that, the network device under test 11 will transmit the aforementioned packet through the network device under test 11 according to the first entry of the L2 table 110 (eg: Y@112, M2) To the second port 112 to be tested (as the dashed arrow in Figure 5). Moreover, when the second port 112 under test receives the aforementioned packet, it will send the packet again, and then send it back to itself via another return fixture 26, due to the basis of the second port of the second port 112 under test The virtual local area network identification code, which corresponds to the first virtual local area network identification code of the first port 111 under test, corresponds to M1. Therefore, the forwarding destination of the packet is the first virtual local area network of the first port 111 under test. Identification code (e.g. M1), therefore, the network device under test 11 will first search for the forwarding target from the L2 table 110, and the search conditions are "the target location is the first address (e.g. Y address)" and "the first waiting The first virtual local area network identification code of the test port 111 (such as: M1)", so that the network device under test 11 can compare the previous one according to the second entry of the L2 table 110 The packet is transmitted to the first port 111 under test through the inside of the network device 11 under test. In this way, after the packet is forwarded for a predetermined period of time, the effect of full line load can be achieved.

在此特別一提者,透過第二實施例的方式可知,當第一地址等於第二地址的情況下,無論業者是使用第一實施例的回接治具15方式(即,兩個待測埠相互對接方式),或是第二實施例的回接治具25、26方式(即,兩個待測埠單獨回接方式),都能夠採用同一種L2表格110的記載內容,以供該待測網路裝置11能根據需求而搜索對應的條目,此舉,亦能有效提高本發明之網路傳輸檢測系統1的便利性,降低工作人員錯誤設定目標位置、待測埠與區域網路辨識碼的機會。 In particular, through the method of the second embodiment, when the first address is equal to the second address, no matter if the operator uses the loopback fixture 15 method of the first embodiment (that is, two to-be-tested) Ports are connected to each other), or the loopback fixtures 25 and 26 of the second embodiment (that is, the two ports to be tested are individually loopbacked), both of which can use the same L2 table 110 record content for this The network device 11 to be tested can search for corresponding items according to requirements, which can also effectively improve the convenience of the network transmission detection system 1 of the present invention, and reduce the error setting of the target location, the port to be tested and the local network by the staff. Opportunity to identify the code.

按,以上所述,僅係本發明之較佳實施例,惟,本發明所主張之權利範圍,並不侷限於此,按凡熟悉該項技藝人士,依據本發明所揭露之技術內容,可輕易思及之等效變化,均應屬不脫離本發明之保護範疇。 According to, the above are only the preferred embodiments of the present invention. However, the scope of rights claimed by the present invention is not limited to this. Anyone familiar with the art can use the technical content disclosed in the present invention. The equivalent changes that are easily considered should all fall within the scope of protection of the present invention.

1‧‧‧網路傳輸檢測系統 1‧‧‧Network transmission detection system

11‧‧‧待測網路裝置 11‧‧‧Network device under test

110‧‧‧L2表格 110‧‧‧L2 Form

13‧‧‧測試裝置 13‧‧‧Test device

Claims (5)

一種網路傳輸檢測系統,包括:至少一待測網路裝置,至少設有一待測埠組,該待測埠組包括一第一待測埠與一第二待測埠,且該第一待測埠與該第二待測埠能透過一回接治具相互連接;及一測試裝置,係與該待測網路裝置相連接,其能使該第一待測埠發出封包,且該封包的長度會等於或小於295位元組,並透過該回接治具傳送至該第二待測埠,及能使該第二待測埠發出封包,並透過該回接治具傳送至該第一待測埠;該第一待測埠具有一第一虛擬區域網路辨識碼、一第二虛擬區域網路辨識碼與一第一埠口基礎虛擬區域網路辨識碼,且該第一埠口基礎虛擬區域網路辨識碼相同於該第二虛擬區域網路辨識碼,該第二待測埠則具有該第一虛擬區域網路辨識碼、該第二虛擬區域網路辨識碼與一第二埠口基礎虛擬區域網路辨識碼,且該第二埠口基礎虛擬區域網路辨識碼相同於該第一虛擬區域網路辨識碼,該待測網路裝置內儲存有一L2表格,其中,該L2表格會記載一第一條目與一第二條目,該第一條目至少包括一第一地址對應於該第一待測埠之該第一虛擬區域網路辨識碼的內容,該第二條目至少包括一第二地址對應於該第二待測埠之該第二虛擬區域網路辨識碼的內容,在該第一待測埠發出封包至該第二待測埠,且封包的目標位址為該第一地址的狀態下,該待測網路裝置會根據該L2表格的該第一條目,將前述封包經由該待測網路裝置的內部傳回至該第一待測埠;在該第二待測埠發出封包至該第一待測埠,且封包的目標位址為該第二地址的狀態下,該待測網路裝置會根據該L2表格的該第二條目,將前述封包經由該待測網路裝置的內部傳回 至該第二待測埠。 A network transmission detection system includes: at least one network device to be tested, at least one port group to be tested, the port group to be tested includes a first port to be tested and a second port to be tested, and the first to be tested The test port and the second port to be tested can be connected to each other through a loopback fixture; and a test device is connected to the network device to be tested, which enables the first port to be tested to send a packet, and the packet The length of is equal to or less than 295 bytes, and is sent to the second port under test through the loopback fixture, and can make the second port under test send out packets, and send packets to the second port through the loopback fixture A port to be tested; the first port to be tested has a first virtual local area network identification code, a second virtual local area network identification code, and a first port basic virtual local area network identification code, and the first port The basic virtual area network identification code of the port is the same as the second virtual area network identification code, and the second port to be tested has the first virtual area network identification code, the second virtual area network identification code, and a second virtual area network identification code. Two-port basic virtual local area network identification code, and the second port basic virtual local area network identification code is the same as the first virtual local area network identification code, and an L2 table is stored in the network device under test, in which, The L2 table will record a first entry and a second entry. The first entry includes at least a first address corresponding to the content of the first virtual area network identification code of the first port under test, the The second entry includes at least a second address corresponding to the content of the second virtual local area network identification code of the second port under test, a packet is sent from the first port under test to the second port under test, and the packet When the target address of is the first address, the network device under test will return the aforementioned packet to the first network device under test according to the first entry in the L2 table. Test port; when the second port under test sends a packet to the first port under test, and the target address of the packet is the second address, the network device under test will follow the second address of the L2 table Entry, the aforementioned packet is sent back through the network device under test To the second port to be tested. 如請求項1所述之網路傳輸檢測系統,其中,該第一地址等於該第二地址。 The network transmission detection system according to claim 1, wherein the first address is equal to the second address. 如請求項1或2所述之網路傳輸檢測系統,其中,每一個封包的長度彼此相同。 The network transmission detection system according to claim 1 or 2, wherein the length of each packet is the same as each other. 一種網路傳輸檢測系統,包括:至少一待測網路裝置,至少設有一待測埠組,該待測埠組包括一第一待測埠與一第二待測埠,且該第一待測埠能透過一回接治具連接至自身,該第二待測埠則能透過另一回接治具連接至自身;及一測試裝置,係與該待測網路裝置相連接,其能使該第一待測埠發出封包,且該封包的長度會等於或小於295位元組,並透過該回接治具傳回至該第一待測埠,及能使該第二待測埠發出封包,並透過該另一回接治具傳回至該第二待測埠;該第一待測埠具有一第一虛擬區域網路辨識碼、一第二虛擬區域網路辨識碼與一第一埠口基礎虛擬區域網路辨識碼,且該第一埠口基礎虛擬區域網路辨識碼相同於該第二虛擬區域網路辨識碼,該第二待測埠則具有該第一虛擬區域網路辨識碼、該第二虛擬區域網路辨識碼與一第二埠口基礎虛擬區域網路辨識碼,且該第二埠口基礎虛擬區域網路辨識碼相同於該第一虛擬區域網路辨識碼,該待測網路裝置內儲存有一L2表格,其中,該L2表格會記載一第一條目與一第二條目,該第一條目至少包括一第一地址對應於該第二待測埠之該第二虛擬區域網路辨識碼的內容,該第二條目至少包括該第一地址對應於該第一待測埠之該第一虛擬區域網路辨識碼的內容,在該第一待測埠發出封包回送給自身,且封包的目標位址為該第一地址的狀態下,該待測網路裝 置會根據該L2表格的該第一條目,將前述封包經由該待測網路裝置的內部傳送至該第二待測埠,該第二待測埠接收到前述封包後,會再度發出前述封包回送給自身,該待測網路裝置會根據該L2表格的該第二條目,將前述封包經由該待測網路裝置的內部傳送至該第一待測埠。 A network transmission detection system includes: at least one network device to be tested, at least one port group to be tested, the port group to be tested includes a first port to be tested and a second port to be tested, and the first to be tested The test port can be connected to itself through a loopback fixture, and the second port to be tested can be connected to itself through another loopback fixture; and a test device is connected to the network device under test, which can Make the first port to be tested send a packet, and the length of the packet will be equal to or less than 295 bytes, and send it back to the first port to be tested through the loopback fixture, and enable the second port to be tested Send a packet and send it back to the second port under test through the other return fixture; the first port under test has a first virtual local area network identification code, a second virtual local area network identification code, and a The first port's basic virtual area network identification code, and the first port's basic virtual area network identification code is the same as the second virtual area network identification code, and the second port to be tested has the first virtual area Network identification code, the second virtual local area network identification code, and a second port basic virtual local area network identification code, and the second port basic virtual local area network identification code is the same as the first virtual local area network Identification code, an L2 table is stored in the network device under test, wherein the L2 table records a first entry and a second entry, and the first entry includes at least a first address corresponding to the second The content of the second virtual area network identification code of the port to be tested, the second entry includes at least the content of the first address corresponding to the first virtual area network identification code of the first port to be tested, in the When the first port to be tested sends a packet back to itself, and the destination address of the packet is the first address, the network device to be tested The configuration will send the aforementioned packet to the second port under test through the inside of the network device under test according to the first entry of the L2 table. After receiving the aforementioned packet, the second port under test will send the aforementioned packet again The packet is sent back to itself, and the network device under test will send the aforementioned packet to the first port under test through the inside of the network device under test according to the second entry of the L2 table. 如請求項5所述之網路傳輸檢測系統,其中,每一個封包的長度彼此相同。 The network transmission detection system according to claim 5, wherein the length of each packet is the same as each other.
TW108129307A 2019-08-16 2019-08-16 Network transmission detection system TWI718623B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108129307A TWI718623B (en) 2019-08-16 2019-08-16 Network transmission detection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108129307A TWI718623B (en) 2019-08-16 2019-08-16 Network transmission detection system

Publications (2)

Publication Number Publication Date
TWI718623B true TWI718623B (en) 2021-02-11
TW202110134A TW202110134A (en) 2021-03-01

Family

ID=75746033

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108129307A TWI718623B (en) 2019-08-16 2019-08-16 Network transmission detection system

Country Status (1)

Country Link
TW (1) TWI718623B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6639901B1 (en) * 2000-01-24 2003-10-28 3Com Corporation Apparatus for and method for supporting 802.1Q VLAN tagging with independent VLAN learning in LAN emulation networks
US6680945B1 (en) * 1999-05-24 2004-01-20 Advanced Micro Devices, Inc. Method and apparatus for support of tagging and untagging per VLAN per port
CN104394103A (en) * 2014-12-16 2015-03-04 上海斐讯数据通信技术有限公司 Synchronization method, system and switch for static MAC (media access control) address
TWI559704B (en) * 2015-01-12 2016-11-21 Test method of network transmission rate

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6680945B1 (en) * 1999-05-24 2004-01-20 Advanced Micro Devices, Inc. Method and apparatus for support of tagging and untagging per VLAN per port
US6639901B1 (en) * 2000-01-24 2003-10-28 3Com Corporation Apparatus for and method for supporting 802.1Q VLAN tagging with independent VLAN learning in LAN emulation networks
CN104394103A (en) * 2014-12-16 2015-03-04 上海斐讯数据通信技术有限公司 Synchronization method, system and switch for static MAC (media access control) address
TWI559704B (en) * 2015-01-12 2016-11-21 Test method of network transmission rate

Also Published As

Publication number Publication date
TW202110134A (en) 2021-03-01

Similar Documents

Publication Publication Date Title
US11848849B1 (en) Testing computer networks in real time
US10897524B1 (en) Integrated packet generator and checker
JP4995310B2 (en) Destination packet detection apparatus and detection method
US10659571B1 (en) Network device with integrated packet generators or packet checkers
US8625448B2 (en) Method and system for validating network traffic classification in a blade server
US8547845B2 (en) Soft error recovery for converged networks
US20110188386A1 (en) Packet-based memory test of a network device
JP2005006303A (en) Virtual network address
US11038790B2 (en) Failure detections in point-to-multipoint packet-forwarding networks
US20140198790A1 (en) Data link layer analysis with packet trace replay
CN109479014B (en) Method, system, and computer readable medium for network test configuration using Virtual Local Area Network (VLAN) scanning
JP2007259069A (en) Switch apparatus
US9264340B2 (en) Methods, systems, and computer readable media for misdirected packet drill down and negative packet capture at a network test device
WO2017219840A1 (en) Device port detection method and apparatus
US11076025B1 (en) Generating network packet centric signatures
US20170126507A1 (en) Introducing Latency and Delay For Test or Debug Purposes in a SAN Environment
CN109246189B (en) Network data distribution method and device, storage medium and server
CN108449228A (en) Message processing method and the network equipment
CN109005080B (en) Distributed packet forwarding implementation method, implementation system and automatic test method
US9276876B2 (en) Data transfer apparatus and data transfer method
TWI718623B (en) Network transmission detection system
WO2022222479A1 (en) Network detection method and apparatus, and device and storage medium
TWI559704B (en) Test method of network transmission rate
WO2019007139A1 (en) Method, device, and system for implementing fault detection
CN107612848B (en) Debugging method and device and computer readable storage medium