TWI448110B - System and method for testing a network device - Google Patents
System and method for testing a network device Download PDFInfo
- Publication number
- TWI448110B TWI448110B TW099114482A TW99114482A TWI448110B TW I448110 B TWI448110 B TW I448110B TW 099114482 A TW099114482 A TW 099114482A TW 99114482 A TW99114482 A TW 99114482A TW I448110 B TWI448110 B TW I448110B
- Authority
- TW
- Taiwan
- Prior art keywords
- network device
- network
- test
- service
- address
- Prior art date
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Description
本發明涉及一種測試系統及方法,尤其關於一種網路設備測試系統及方法。 The present invention relates to a test system and method, and more particularly to a network device test system and method.
對網路設備(例如:網路攝像機)進行測試時,需要將網路設備的網路埠連接到主機,模仿實際的運行環境進行測試。為了保證網路連通時所有的測試能夠正常進行,傳統的網路設備測試先啟動網路設備的網路服務以外的服務,最後啟動網路服務。由於網路服務最後啟動,而網路設備測試的前提是網路連通,因而造成了需要大量測試等待時間的問題。另一方面,主機為了獲知網路設備是否已經啟動,會一直發送網路資料包進行偵測,因而大大增加了網路開銷。傳統的網路設備測試方法耗費大量時間及網路資源並且效率低下,不利於大規模生產測試。 When testing a network device (for example, a network camera), you need to connect the network device's network port to the host to simulate the actual operating environment. In order to ensure that all tests can be performed normally when the network is connected, the traditional network device test starts the service other than the network service of the network device, and finally starts the network service. Since the network service was finally launched, and the premise of network device testing is network connectivity, it caused a lot of test waiting time. On the other hand, in order to know whether the network device has been started, the host will always send network packets for detection, thus greatly increasing network overhead. Traditional network equipment testing methods consume a lot of time and network resources and are inefficient, which is not conducive to large-scale production testing.
鑒於以上內容,有必要提供一種網路設備測試系統及方法,能夠有效減少測試時間,節省網路開銷。 In view of the above, it is necessary to provide a network device test system and method, which can effectively reduce test time and save network overhead.
一種網路設備測試系統,運行於主機中,所述主機與待測的網路設備透過網路埠及非網路埠通訊連接,該系統包括:偵測模組,用於透過非網路埠偵測網路設備是否啟動;登錄模組,用於當偵測到網路設備啟動後透過非網路埠登錄到網路設備;啟動模組, 用於啟動網路設備的網路服務,並獲取網路設備的IP位址;第一測試模組,用於根據獲取的IP位址與網路設備通訊,透過網路埠測試網路設備的不需要啟動服務的測試項目;及第二測試模組,用於根據獲取的IP位址與網路設備通訊,透過網路埠測試網路設備的需要啟動服務的測試項目。 A network device test system is running in a host, and the host and the network device to be tested are connected through a network and a non-network communication. The system includes: a detection module for transmitting through a non-network. Detecting whether the network device is enabled; the login module is configured to log in to the network device through the non-network port after detecting that the network device is started; The network service for starting the network device, and obtaining the IP address of the network device; the first test module is configured to communicate with the network device according to the obtained IP address, and test the network device through the network There is no need to start the test project of the service; and the second test module is used for communicating with the network device according to the obtained IP address, and testing the test item of the service required to test the network device through the network.
一種網路設備測試方法,應用於主機中,所述主機透過網路埠及非網路埠與待測的網路設備通訊連接,該方法包括步驟:透過非網路埠偵測網路設備是否啟動;偵測到網路設備啟動後,透過非網路埠登錄到網路設備;啟動網路設備的網路服務,並獲取網路設備的IP位址;根據獲取的IP位址與網路設備通訊,透過網路埠測試網路設備的不需要啟動服務的測試項目;及根據獲取的IP位址與網路設備通訊,透過網路埠測試網路設備的需要啟動服務的測試項目。 A network device testing method is applied to a host, wherein the host communicates with the network device to be tested through the network and the non-network, and the method includes the steps of: detecting whether the network device is detected through the non-network Start; detect that the network device is started, log in to the network device through the non-network; start the network service of the network device, and obtain the IP address of the network device; according to the obtained IP address and network Device communication, test the network device's test project without starting the service through the network; and communicate with the network device according to the obtained IP address, and test the network device's need to start the service test project through the network.
本發明優先啟動網路設備的網路服務,並且採用先測試不需要啟動服務的測試項目的測試流程,克服了傳統的網路設備測試方法需要耗費大量測試等待時間的問題,提高了測試效率。並且,本發明利用非網路埠偵測網路設備是否啟動,節省了網路開銷,減輕了網路負擔。 The invention preferentially starts the network service of the network device, and adopts the test process of testing the test item that does not need to start the service first, overcomes the problem that the traditional network device test method requires a large amount of test waiting time, and improves the test efficiency. Moreover, the present invention utilizes non-network detection to detect whether the network device is started, saves network overhead, and reduces network load.
10‧‧‧網路設備測試系統 10‧‧‧Network Equipment Test System
11‧‧‧主機 11‧‧‧Host
12‧‧‧網路設備 12‧‧‧Network equipment
13‧‧‧網路埠 13‧‧‧Internet standards
14‧‧‧非網路埠 14‧‧‧Non-network information
200‧‧‧偵測模組 200‧‧‧Detection module
210‧‧‧登錄模組 210‧‧‧ Login Module
220‧‧‧啟動模組 220‧‧‧Starting module
230‧‧‧第一測試模組 230‧‧‧First test module
240‧‧‧第二測試模組 240‧‧‧Second test module
圖1係本發明網路設備測設系統較佳實施例的應用環境示意圖。 1 is a schematic diagram of an application environment of a preferred embodiment of a network device measurement system of the present invention.
圖2係圖1中網路設備測試系統的功能模組圖。 2 is a functional block diagram of the network device test system of FIG. 1.
圖3係本發明網路設備測試方法較佳實施例的流程圖。 3 is a flow chart of a preferred embodiment of a network device testing method of the present invention.
參閱圖1所示,係本發明網路設備測試系統較佳實施例的應用環境示意圖。所述網路設備測試系統10運行於主機11中,該主機11透過網路埠13(例如:RJ45埠)及非網路埠14(例如:串列埠或USB埠)與網路設備12通訊連接。所述網路設備12是應用於網路的嵌入式設備,例如網路攝像機。 Referring to FIG. 1 , it is a schematic diagram of an application environment of a preferred embodiment of the network device testing system of the present invention. The network device test system 10 operates in a host 11 that communicates with the network device 12 via a network port 13 (eg, RJ45 port) and a non-network port 14 (eg, serial port or USB port). connection. The network device 12 is an embedded device applied to a network, such as a network camera.
參閱圖2所示,係圖1中網路設備測試系統10的功能模組圖。所述網路設備測試系統10包括偵測模組200、登錄模組210、啟動模組220、第一測試模組230及第二測試模組240。 Referring to FIG. 2, it is a functional module diagram of the network device test system 10 in FIG. The network device testing system 10 includes a detection module 200, a login module 210, a startup module 220, a first test module 230, and a second test module 240.
所述偵測模組200用於透過非網路埠14偵測網路設備12是否啟動。在本實施例中,若啟動成功,則網路設備12由非網路埠14發送啟動成功的消息至主機11,偵測到該啟動成功的消息後,偵測模組200確定該網路設備12已啟動。 The detection module 200 is configured to detect, by the non-network 埠 14, whether the network device 12 is activated. In this embodiment, if the startup is successful, the network device 12 sends a successful startup message to the host 11 by the non-network 埠14, and after detecting the successful startup message, the detection module 200 determines the network device. 12 has started.
所述登錄模組210用於在偵測到網路設備12啟動後,透過非網路埠14登錄到網路設備12。在本實施例中,網路設備12儲存有預先設定的用戶名及密碼,登錄模組210使用與該預先設定的用戶名及密碼相同的用戶名及密碼登錄到網路設備12。 The login module 210 is configured to log in to the network device 12 through the non-network port 14 after detecting that the network device 12 is started. In the present embodiment, the network device 12 stores a preset user name and password, and the login module 210 logs in to the network device 12 using the same username and password as the predetermined user name and password.
所述啟動模組220用於啟動網路設備12的網路服務,並獲取網路設備12的IP位址。在本實施例中,啟動模組220啟動網路設備12的網路服務後,控制網路設備12將網路資料包由網路埠13發送給主機11。啟動模組220解析主機11收到的網路資料包,以獲取網路設備12的IP位址。 The startup module 220 is configured to start a network service of the network device 12 and obtain an IP address of the network device 12. In this embodiment, after the boot module 220 activates the network service of the network device 12, the control network device 12 sends the network data packet from the network port 13 to the host 11. The boot module 220 parses the network data packet received by the host 11 to obtain the IP address of the network device 12.
所述第一測試模組230用於根據獲取的IP位址與網路設備12通訊,透過網路埠13測試網路設備12的不需要啟動服務的測試項目。 在本實施例中,所述網路設備12是網路攝像機,所述不需要啟動服務的測試項目包括測試網路設備12的各個硬體部件(例如:處理器、記憶體及快閃記憶體)是否存在,以及測試該網路攝像機的處理器、記憶體及快閃記憶體是否工作正常。 The first test module 230 is configured to communicate with the network device 12 according to the acquired IP address, and test the test item of the network device 12 that does not need to start the service through the network 埠13. In this embodiment, the network device 12 is a network camera, and the test item that does not need to start the service includes testing various hardware components of the network device 12 (for example, a processor, a memory, and a flash memory). Whether it exists, and whether the processor, memory and flash memory of the network camera are working properly.
所述第二測試模組240用於根據獲取的IP位址與網路設備12通訊,透過網路埠13測試網路設備12的需要啟動服務的測試項目。第二測試模組240可以先判斷網路設備12的所有服務是否啟動完畢,在斷定所有服務啟動完畢後測試需要啟動服務的測試項目。在本實施例中,所述網路設備12是網路攝像機,所述需要啟動服務的測試項目包括測試該網路攝像機的視頻、音頻以及讀卡器的功能是否正常。 The second test module 240 is configured to communicate with the network device 12 according to the acquired IP address, and test the test item of the network device 12 that needs to start the service through the network 埠13. The second test module 240 can first determine whether all services of the network device 12 are started, and test the test items that need to start the service after determining that all services are started. In this embodiment, the network device 12 is a network camera, and the test item that needs to start the service includes testing whether the video, audio, and card reader functions of the network camera are normal.
參閱圖3所示,係本發明網路設備測試方法較佳實施例的流程圖。 Referring to FIG. 3, it is a flow chart of a preferred embodiment of the network device testing method of the present invention.
步驟S301,偵測模組200透過非網路埠14偵測網路設備12是否啟動。在本實施例中,若啟動成功,則網路設備12由非網路埠14發送啟動成功的消息至主機11,偵測到該啟動成功的消息後,偵測模組200確定該網路設備12已啟動。 In step S301, the detection module 200 detects whether the network device 12 is activated through the non-network 埠14. In this embodiment, if the startup is successful, the network device 12 sends a successful startup message to the host 11 by the non-network 埠14, and after detecting the successful startup message, the detection module 200 determines the network device. 12 has started.
偵測到網路設備12啟動後,步驟S302,登錄模組210透過非網路埠14登錄到網路設備12。在本實施例中,網路設備12儲存有預先設定的用戶名及密碼,登錄模組210使用與該預先設定的用戶名及密碼相同的用戶名及密碼登錄到網路設備12。 After detecting that the network device 12 is started, the login module 210 logs in to the network device 12 through the non-network port 14 in step S302. In the present embodiment, the network device 12 stores a preset user name and password, and the login module 210 logs in to the network device 12 using the same username and password as the predetermined user name and password.
步驟S303,啟動模組220啟動網路設備12的網路服務,並獲取網路設備12的IP位址。在本實施例中,啟動模組220啟動網路設備 12的網路服務後,控制網路設備12將網路資料包由網路埠13發送給主機11。啟動模組220解析主機11收到的網路資料包,以獲取網路設備12的IP位址。 In step S303, the startup module 220 starts the network service of the network device 12 and acquires the IP address of the network device 12. In this embodiment, the boot module 220 starts the network device. After the network service of 12, the control network device 12 transmits the network data packet from the network port 13 to the host computer 11. The boot module 220 parses the network data packet received by the host 11 to obtain the IP address of the network device 12.
步驟S304,第一測試模組230根據獲取的IP位址與網路設備12通訊,透過網路埠13測試網路設備12的不需要啟動服務的測試項目。在本實施例中,所述網路設備12是網路攝像機,所述不需要啟動服務的測試項目包括測試網路設備12的各個硬體部件(例如:處理器、記憶體及快閃記憶體)是否存在,以及測試該網路攝像機的處理器、記憶體及快閃記憶體是否工作正常。 In step S304, the first test module 230 communicates with the network device 12 according to the acquired IP address, and tests the test item of the network device 12 that does not need to start the service through the network port 13. In this embodiment, the network device 12 is a network camera, and the test item that does not need to start the service includes testing various hardware components of the network device 12 (for example, a processor, a memory, and a flash memory). Whether it exists, and whether the processor, memory and flash memory of the network camera are working properly.
步驟S305,第二測試模組240根據獲取的IP位址與網路設備12通訊,透過網路埠13測試網路設備12的需要啟動服務的測試項目。第二測試模組240可以先判斷網路設備12的所有服務是否啟動完畢,在斷定所有服務啟動完畢後測試需要啟動服務的測試項目。在本實施例中,所述網路設備12是網路攝像機,所述需要啟動服務的測試項目包括測試該網路攝像機的視頻、音頻以及讀卡器的功能是否正常。 In step S305, the second test module 240 communicates with the network device 12 according to the obtained IP address, and tests the test item of the network device 12 that needs to start the service through the network port 13. The second test module 240 can first determine whether all services of the network device 12 are started, and test the test items that need to start the service after determining that all services are started. In this embodiment, the network device 12 is a network camera, and the test item that needs to start the service includes testing whether the video, audio, and card reader functions of the network camera are normal.
上述網路設備測試方法優先啟動網路設備12的網路服務,並且採用先測試不需要啟動服務的測試項目的測試流程,克服了傳統的網路設備測試方法需要耗費大量測試等待時間的問題,提高了測試效率。並且,上述網路設備測試方法利用非網路埠14偵測網路設備12是否啟動,從而節省了網路開銷,減輕了網路負擔。 The above network device test method preferentially starts the network service of the network device 12, and overcomes the problem that the traditional network device test method requires a large amount of test waiting time by using a test process of testing a test item that does not need to start the service first. Improve test efficiency. Moreover, the network device testing method uses the non-network 埠 14 to detect whether the network device 12 is started, thereby saving network overhead and reducing network load.
綜上所述,本發明符合發明專利要件,爰依法提出專利申請。惟,以上所述者僅為本發明之較佳實施例,本發明之範圍並不以上述實施例為限,舉凡熟悉本案技藝之人士援依本發明之精神所作 之等效修飾或變化,皆應涵蓋於以下申請專利範圍內。 In summary, the present invention complies with the requirements of the invention patent and submits a patent application according to law. However, the above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited to the above embodiments, and those skilled in the art can make the spirit of the present invention. Equivalent modifications or variations are intended to be included within the scope of the following claims.
10‧‧‧網路設備測試系統 10‧‧‧Network Equipment Test System
200‧‧‧偵測模組 200‧‧‧Detection module
210‧‧‧登錄模組 210‧‧‧ Login Module
220‧‧‧啟動模組 220‧‧‧Starting module
230‧‧‧第一測試模組 230‧‧‧First test module
240‧‧‧第二測試模組 240‧‧‧Second test module
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW099114482A TWI448110B (en) | 2010-05-06 | 2010-05-06 | System and method for testing a network device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW099114482A TWI448110B (en) | 2010-05-06 | 2010-05-06 | System and method for testing a network device |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201141127A TW201141127A (en) | 2011-11-16 |
TWI448110B true TWI448110B (en) | 2014-08-01 |
Family
ID=46760464
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW099114482A TWI448110B (en) | 2010-05-06 | 2010-05-06 | System and method for testing a network device |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI448110B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080049779A1 (en) * | 2004-12-07 | 2008-02-28 | Alex Hopmann | Network administration tool employing a network administration protocol |
US20090172207A1 (en) * | 2007-12-28 | 2009-07-02 | Cisco Technology, Inc. | Communicating through a physical port of an electronic device |
CN101539877A (en) * | 2008-03-17 | 2009-09-23 | 鸿富锦精密工业(深圳)有限公司 | Embedded device testing system and testing method thereof |
-
2010
- 2010-05-06 TW TW099114482A patent/TWI448110B/en not_active IP Right Cessation
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080049779A1 (en) * | 2004-12-07 | 2008-02-28 | Alex Hopmann | Network administration tool employing a network administration protocol |
US20090172207A1 (en) * | 2007-12-28 | 2009-07-02 | Cisco Technology, Inc. | Communicating through a physical port of an electronic device |
CN101539877A (en) * | 2008-03-17 | 2009-09-23 | 鸿富锦精密工业(深圳)有限公司 | Embedded device testing system and testing method thereof |
Also Published As
Publication number | Publication date |
---|---|
TW201141127A (en) | 2011-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10254337B2 (en) | System and method for establishing a trusted diagnosis/debugging agent over a closed commodity device | |
US8839044B2 (en) | Debugging of adapters with stateful offload connections | |
US9152195B2 (en) | Wake on cloud | |
TWI458314B (en) | Server system and management method thereof for transferring remote packet to host | |
US7971110B2 (en) | System and method for testing a serial attached small computer system interface | |
US20090234942A1 (en) | Apparatus, system, and method for testing embedded device | |
CN104618187A (en) | Method for on-line testing of functional completeness of network controller sideband interface (NCSI) network card | |
TW201327134A (en) | Method and system for testing the function of SOL | |
WO2016123936A1 (en) | Method, device, test board, and system for testing traffic of interface board | |
TW201604685A (en) | Method and system for managing network interface card information | |
CN106487847B (en) | Information processing method and transfer server | |
TW201717093A (en) | Network access method and apparatus | |
CN104598353A (en) | Method for on-line testing functional completeness of NCSI (Network Connectivity Status Indicator) adapter card | |
US20160127308A1 (en) | Method for keeping remote connection, electronic device and server | |
WO2016119623A1 (en) | Method and device for realizing network sharing | |
BR112019015131A2 (en) | DISPLAY METHOD AND COMBINATION OF MESSAGE REGISTRATION AND TERMINAL DEVICE | |
TW201432439A (en) | System and method for test via network | |
TWI448110B (en) | System and method for testing a network device | |
TWI501090B (en) | Server system and node detection method | |
US20120072742A1 (en) | System and method for testing wol funciton of computers | |
WO2014000299A1 (en) | Serial port redirection processing method, device, and system | |
CN105786659A (en) | Remote debugging method and server | |
CN109240844B (en) | Log obtaining method and system | |
CN102238042A (en) | Network equipment testing system and method | |
CN206364819U (en) | A kind of external PCIE physical equipments reliability test system of high-end server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |