TWI615005B - Testing system and testing method for network performance - Google Patents
Testing system and testing method for network performance Download PDFInfo
- Publication number
- TWI615005B TWI615005B TW105119831A TW105119831A TWI615005B TW I615005 B TWI615005 B TW I615005B TW 105119831 A TW105119831 A TW 105119831A TW 105119831 A TW105119831 A TW 105119831A TW I615005 B TWI615005 B TW I615005B
- Authority
- TW
- Taiwan
- Prior art keywords
- detection
- task
- sub
- execution
- tasks
- Prior art date
Links
Abstract
網路效能的測試系統與測試方法。測試系統包括至少一偵測執行裝置與維運裝置。所述偵測執行裝置連接至網路,用以對網路執行相關於網路測試的偵測任務。維運裝置連接網路,針對所述偵測執行裝置提供偵測腳本,並且傳輸偵測腳本到所述偵測執行裝置。所述偵測執行裝置依據所接收的偵測腳本執行偵測任務,並且回傳偵測結果至維運裝置。當複數個偵測執行裝置存在,並且偵測任務為部分的偵測執行裝置協同地執行的協同偵測任務時,維運裝置協調所述部分的偵測執行裝置以執行協同偵測任務。Test system and test method for network performance. The test system includes at least one detection execution device and maintenance device. The detection execution device is connected to the network for performing a network-related detection task on the network. The maintenance device connects to the network, provides a detection script for the detection execution device, and transmits a detection script to the detection execution device. The detection execution device performs a detection task according to the received detection script, and returns the detection result to the maintenance device. When a plurality of detection execution devices exist and the detection task is a cooperative detection task that is performed by a part of the detection execution devices, the maintenance device coordinates the part of the detection execution devices to perform the cooperative detection task.
Description
本發明是有關於一種測試系統與測試方法,特別是有關於一種可測試行動網路與固定通信網路的網路效能的測試系統與測試方法。 The present invention relates to a test system and test method, and more particularly to a test system and test method for testing the network performance of a mobile network and a fixed communication network.
隨著網路應用的蓬勃發展,不論是行動網路或是固網,皆已深入大部分民眾的日常生活之中。更詳細來說,許多應用軟體,例如是社交軟體、影音應用、通訊軟體與線上遊戲等等,皆須仰賴網路進行資訊交換,因而穩定的網路可以提供好的使用者體驗。 With the rapid development of Internet applications, both mobile networks and fixed networks have penetrated into the daily lives of most people. In more detail, many applications, such as social software, audio and video applications, communication software and online games, rely on the Internet for information exchange, so a stable network can provide a good user experience.
然而,深入到客戶端的終端裝置的網路服務,是由複雜的結構所構成。前述結構例如是包括直接連結終端裝置的末端網路、核心網路結構甚至是跨網的介接服務。當客戶利用網路服務存取遠端的應用服務時,需要經由不同的軟硬體設備,提供各自具特定目的性的協定與服務。另一方面,網路狀態也會隨各項因素產生變化。因此,當客戶遭遇網路使用上的問題時,若無法快 速地在客戶端進行適切的問題診斷,是較難發現並排除問題的根源。 However, the network service of the terminal device that goes deep into the client is composed of a complicated structure. The foregoing structure is, for example, an interface network including a terminal network directly connected to a terminal device, a core network structure, or even an inter-network. When customers use network services to access remote application services, they need to provide their own specific agreements and services through different software and hardware devices. On the other hand, the state of the network will also change with various factors. Therefore, if the customer encounters problems with the use of the network, if it is not fast It is difficult to find and eliminate the root cause of the problem by quickly making appropriate problem diagnosis on the client side.
據此,如何提出一種網路效能的測試系統與測試方法,可彈性且動態地對網路進行效能測試,並且有效、迅速地發現與排除網路使用上的問題,仍是本領域技術人員努力的目標之一。 Accordingly, how to propose a test system and test method for network performance, which can flexibly and dynamically test the performance of the network, and effectively and quickly find and eliminate problems in network use, is still an effort by those skilled in the art. One of the goals.
本發明提供一種網路效能的測試系統與測試方法,能夠彈性且動態地指派與執行偵測任務來對網路進行效能測試,藉以有效、迅速地發現網路使用上的問題。 The invention provides a test system and a test method for network performance, which can flexibly and dynamically assign and perform detection tasks to perform performance tests on the network, so as to effectively and quickly discover problems in network use.
本發明的實施例提供一種網路效能的測試系統。測試系統包括至少一偵測執行裝置與維運裝置。所述偵測執行裝置,連接至網路,用以對該網路執行相關於網路測試的偵測任務。維運裝置連接網路,針對所述偵測執行裝置提供偵測腳本,並且傳輸偵測腳本到所述偵測執行裝置。所述偵測執行裝置依據所接收的偵測腳本執行偵測任務,並且回傳偵測結果至維運裝置。當複數個偵測執行裝置存在,並且偵測任務為部分的偵測執行裝置協同地執行的協同偵測任務時,維運裝置協調所述部分的偵測執行裝置以執行協同偵測任務。 Embodiments of the present invention provide a test system for network performance. The test system includes at least one detection execution device and maintenance device. The detection execution device is connected to the network for performing a detection task related to the network test on the network. The maintenance device connects to the network, provides a detection script for the detection execution device, and transmits a detection script to the detection execution device. The detection execution device performs a detection task according to the received detection script, and returns the detection result to the maintenance device. When a plurality of detection execution devices exist and the detection task is a cooperative detection task that is performed by a part of the detection execution devices, the maintenance device coordinates the part of the detection execution devices to perform the cooperative detection task.
本發明的實施例提供一種網路效能的測試方法,適用測試系統以對網路進行測試。測試方法包括下列步驟。由維運裝置針對至少一偵測執行裝置提供偵測腳本。由維運裝置傳輸偵測腳 本到所述偵測執行裝置。由所述偵測執行裝置依據所接收的偵測腳本對網路執行相關於網路測試的偵測任務。由所述偵測執行裝置回傳偵測結果至維運裝置。當複數個偵測執行裝置存在,並且偵測任務為部分的偵測執行裝置協同地執行的協同偵測任務時,則執行偵測任務的步驟更包括由維運裝置協調所述部分的偵測執行裝置。 Embodiments of the present invention provide a method for testing network performance, which is applicable to a test system to test a network. The test method includes the following steps. A detection script is provided by the maintenance device for at least one detection execution device. Transmission detection transmission by the maintenance device This is to the detection execution device. The detecting execution device performs a detection task related to the network test on the network according to the received detection script. The detection execution device returns the detection result to the maintenance device. When a plurality of detection execution devices exist and the detection task is a cooperative detection task that is performed by a part of the detection execution devices, the step of performing the detection task further includes coordinating the detection by the maintenance device. Execution device.
基於上述,本發明實施例所提供的測試系統與測試方法,由維運裝置針對各個偵測執行裝置提供偵測腳本,並且由所述偵測執行裝置依據所接收的偵測腳本對連接的網路執行相關於網路測試的偵測任務。藉此,偵測腳本可以動態地被指派,並且各個偵測執行裝置可針對不同的情境與狀況執行對應的偵測任務,達到有效且迅速的網路效能測試。此外,對於需要多個偵測執行裝置一同執行的協同偵測任務,由維運裝置協調參與的所述偵測執行裝置,藉以達到較佳的測試效率與測試結果。 Based on the above, in the test system and the test method provided by the embodiment of the present invention, the maintenance device provides a detection script for each detection execution device, and the detection execution device connects the connected network according to the received detection script. The road performs detection tasks related to network testing. Thereby, the detection script can be dynamically assigned, and each detection execution device can perform corresponding detection tasks for different situations and conditions, thereby achieving an effective and rapid network performance test. In addition, for the collaborative detection task that needs to be executed by multiple detection execution devices, the detection execution device coordinated by the maintenance device can achieve better test efficiency and test results.
為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。 The above described features and advantages of the invention will be apparent from the following description.
10‧‧‧測試系統 10‧‧‧Test system
100‧‧‧維運裝置 100‧‧‧
120‧‧‧第一通訊介面 120‧‧‧First Communication Interface
140‧‧‧第一儲存單元 140‧‧‧First storage unit
160‧‧‧第一處理單元 160‧‧‧First Processing Unit
182‧‧‧腳本設定模組 182‧‧‧Script setting module
184‧‧‧支援模組 184‧‧‧Support Module
186‧‧‧協調模組 186‧‧‧Coordination module
200、200-1、200-2‧‧‧偵測執行裝置 200, 200-1, 200-2‧‧‧ detection and execution device
220‧‧‧第二通訊介面 220‧‧‧Second communication interface
240‧‧‧第二儲存單元 240‧‧‧Second storage unit
260‧‧‧第二處理單元 260‧‧‧Second processing unit
282‧‧‧通訊模組 282‧‧‧Communication module
284‧‧‧控制與命令模組 284‧‧‧Control and Command Module
286‧‧‧排程模組 286‧‧‧ scheduling module
288‧‧‧協同模組 288‧‧‧Collaborative Module
TL‧‧‧任務序列 TL‧‧‧ task sequence
T‧‧‧偵測任務 T‧‧‧Detection mission
S410、S420、S430、S440‧‧‧測試方法的步驟 S410, S420, S430, S440‧‧‧ steps of the test method
S431、S432、S433、S434、S435‧‧‧進行協同偵測任務的步驟 S431, S432, S433, S434, S435‧‧‧ steps for collaborative detection tasks
圖1是依據本發明一實施例所繪示之網路測試的系統架構示意圖。 FIG. 1 is a schematic diagram of a system architecture of a network test according to an embodiment of the invention.
圖2是依據本發明一實施例所繪示之維運裝置的方塊示意圖。 2 is a block diagram of a maintenance device according to an embodiment of the invention.
圖3是依據本發明一實施例所繪示之偵測執行裝置的方塊示意圖。 FIG. 3 is a block diagram of a detection execution apparatus according to an embodiment of the invention.
圖4是依據本發明一實施例所繪示之測試方法的流程圖。 4 is a flow chart of a test method according to an embodiment of the invention.
圖5是依據本發明一實施例所繪示之偵測執行裝置的模組運作示意圖。 FIG. 5 is a schematic diagram of the operation of the module of the detecting and executing device according to an embodiment of the invention.
圖6是依據本發明一實施例所繪示之進行協同偵測任務的流程圖。 FIG. 6 is a flow chart of performing a cooperative detection task according to an embodiment of the invention.
圖1是依據本發明一實施例所繪示之網路測試的系統架構示意圖。參照圖1,於本發明實施例所提供之網路測試的架構,包含維運面(Operation)與偵測執行面(Detecting Execution)。以網路測試的軟體架構來說,維運面負責維持網路測試的運作以及提供測試支援,而偵測執行面則包括多個偵測實體(Agent)以分別執行維運面指派的偵測任務(Task)。 FIG. 1 is a schematic diagram of a system architecture of a network test according to an embodiment of the invention. Referring to FIG. 1, the architecture of the network test provided by the embodiment of the present invention includes an operation surface and a detection execution surface (Detecting Execution). In the software architecture of the network test, the maintenance plane is responsible for maintaining the operation of the network test and providing test support, and the detection execution surface includes multiple detection entities (Agents) to perform the detection of the maintenance plane assignment respectively. Task (Task).
於本發明一實施例中,維運面實作於維運裝置100,而維運裝置100例如是工作站(Workstation)、伺服器(Server)等電子運算裝置,但不以此為限。相對而言,偵測執行面中的偵測實體分別實作於偵測執行裝置200,而偵測執行裝置200例如是平板電腦(Tablet)、個人電腦(Personal Computer)、智慧型手機(Smartphone)、筆記型電腦(Laptop)、行動裝置(Mobile Device)、個人數位助理裝置(Personal Digital Assistant)等電子運算裝置,但不以此為限。如 圖1所示,於本實施例中,維運裝置100以及偵測執行裝置200皆連接至網路並構成測試系統10。於本實施例中,測試系統10適用的網路包括行動網路與固定通信網路,而使用者可以利用維運裝置100以及偵測執行裝置200進行網路測試。 In an embodiment of the present invention, the maintenance surface is implemented in the maintenance device 100, and the maintenance device 100 is, for example, an electronic computing device such as a workstation or a server, but is not limited thereto. In contrast, the detecting entities in the detecting execution surface are respectively implemented in the detecting and executing device 200, and the detecting and executing device 200 is, for example, a tablet, a personal computer, or a smart phone. , but not limited to, electronic computing devices such as laptops, mobile devices, and personal digital assistants. Such as As shown in FIG. 1, in the present embodiment, the maintenance device 100 and the detection execution device 200 are both connected to a network and constitute a test system 10. In this embodiment, the network applicable to the test system 10 includes a mobile network and a fixed communication network, and the user can perform the network test by using the maintenance device 100 and the detection execution device 200.
圖2是依據本發明一實施例所繪示之維運裝置的方塊示意圖。參照圖2,於本實施例中,維運裝置100包括第一通訊介面120、第一儲存單元140以及第一處理單元160,並且第一處理單元160耦接第一通訊介面120與第一儲存單元140。 2 is a block diagram of a maintenance device according to an embodiment of the invention. Referring to FIG. 2, in the embodiment, the maintenance device 100 includes a first communication interface 120, a first storage unit 140, and a first processing unit 160, and the first processing unit 160 is coupled to the first communication interface 120 and the first storage unit. Unit 140.
於本發明的一實施例中,第一通訊介面120例如是支援WiFi標準、第三代合作夥伴計劃(Third Generation Partnership Project,3GPP)所提出之行動網路技術(例如,寬頻分碼多工系統(Wideband Code Division Multiplex Access,WCDMA)、長期演進(Long Term Evolution,LTE)等)或其他無線通訊技術,以及支援乙太網路(Ethernet)、光纖(optical fiber)或其他有線通訊技術的通訊介面。於本實施例中,第一通訊介面120連結至網路,而維運裝置100藉由第一通訊介面120與至少一個偵測執行裝置200進行通訊。 In an embodiment of the present invention, the first communication interface 120 is, for example, a mobile network technology (for example, a broadband code division multiplexing system) supported by the WiFi standard and the Third Generation Partnership Project (3GPP). (Wideband Code Division Multiplex Access, WCDMA), Long Term Evolution (LTE), or other wireless communication technologies, and communication interfaces supporting Ethernet, optical fiber, or other wired communication technologies. . In this embodiment, the first communication interface 120 is coupled to the network, and the maintenance device 100 communicates with the at least one detection execution device 200 via the first communication interface 120.
於本發明的一實施例中,第一儲存單元140例如是任何型態的固定或可移動隨機存取記憶體(random access memory;RAM)、唯讀記憶體(read-only memory;ROM)、快閃記憶體(flash memory)、硬碟(hard Disk drive;HDD)、固態硬碟(solid state drive;SSD)或類似元件或上述元件的組合。於本實施例中,第 一儲存單元140儲存多個第一模組,前述第一模組的型態與功能待稍後實施例說明。 In an embodiment of the invention, the first storage unit 140 is, for example, any type of fixed or removable random access memory (RAM), read-only memory (ROM), A flash memory, a hard disk drive (HDD), a solid state drive (SSD) or the like or a combination of the above elements. In this embodiment, the first A storage unit 140 stores a plurality of first modules, and the types and functions of the first modules are described in the following embodiments.
於本發明的一實施例中,第一處理單元160例如是微控制器(micro-controller)、嵌入式控制器(embedded controller)、中央處理器(central processing unit,CPU)、場效可程式邏輯閘陣列(Field programmable gate array,FPGA)、特殊應用積體電路(Application-specific integrated circuit,ASIC)或類似元件或類似元件的組合,但不限於此。第一處理單元160執行由第一儲存單元140所存取的第一模組以執行網路測試,其中第一模組包括腳本設定模組182、支援模組184與協調模組186,而其流程與細節待稍後實施例說明。 In an embodiment of the invention, the first processing unit 160 is, for example, a micro-controller, an embedded controller, a central processing unit (CPU), and a field effect programmable logic. A combination of a field programmable gate array (FPGA), an application-specific integrated circuit (ASIC) or the like or the like, but is not limited thereto. The first processing unit 160 executes the first module accessed by the first storage unit 140 to perform network testing. The first module includes a script setting module 182, a support module 184, and a coordination module 186. The process and details are described later in the examples.
圖3是依據本發明一實施例所繪示之偵測執行裝置的方塊示意圖。參照圖3,於本實施例中,每一個偵測執行裝置200包括第二通訊介面220、第二儲存單元240以及第二處理單元260。第二處理單元260耦接第二通訊介面220與第二儲存單元240。 FIG. 3 is a block diagram of a detection execution apparatus according to an embodiment of the invention. Referring to FIG. 3 , in the embodiment, each detection execution device 200 includes a second communication interface 220 , a second storage unit 240 , and a second processing unit 260 . The second processing unit 260 is coupled to the second communication interface 220 and the second storage unit 240.
於本實施例中,第二通訊介面220、第二儲存單元240以及第二處理單元260的應用範例可分別參考第一通訊介面120、第一儲存單元140以及第一處理單元160,故不在此贅述。不同的是,於本實施例中,第二儲存單元240儲存多個第二模組。第二處理單元260存取並且執行前述的第二模組以執行網路測試,其中第二模組包括通訊模組282、控制與命令模組284、排程 模組286與協同模組288,而其流程與細節待稍後實施例說明。 In this embodiment, the application examples of the second communication interface 220, the second storage unit 240, and the second processing unit 260 can refer to the first communication interface 120, the first storage unit 140, and the first processing unit 160, respectively. Narration. The difference is that, in this embodiment, the second storage unit 240 stores a plurality of second modules. The second processing unit 260 accesses and executes the foregoing second module to perform network testing, wherein the second module includes a communication module 282, a control and command module 284, and scheduling The module 286 and the coordination module 288, the flow and details of which will be described later.
於本發明的一實施例中,維運裝置100與偵測執行裝置200還可分別包括顯示裝置、輸入介面等元件以執行顯示、輸入操作等功能,但不限於此。 In an embodiment of the present invention, the maintenance device 100 and the detection execution device 200 may further include components such as a display device and an input interface to perform functions such as display and input operations, but are not limited thereto.
值得注意的是,前述實施例的維運裝置100以及偵測執行裝置200分別實現維運面與偵測執行面的各項功能與行為而得以構成用於網路測試的完整系統架構,但可分別實現維運面與偵測執行面的電子運算裝置並不限於此。 It should be noted that the maintenance device 100 and the detection and execution device 200 of the foregoing embodiments respectively implement various functions and behaviors of the maintenance surface and the detection execution surface to form a complete system architecture for network testing, but The electronic arithmetic device that realizes the maintenance surface and the detection execution surface, respectively, is not limited thereto.
以下將搭配前述測試系統10、維運裝置100以及偵測執行裝置200的詳細結構,說明本發明實施例所提供的網路測試的流程與細節。圖4是依據本發明一實施例所繪示之測試方法的流程圖。圖4所繪示的測試方法適用於如圖1、圖2與圖3所示的測試系統10,但本發明不限於此。 The flow and details of the network test provided by the embodiment of the present invention will be described below in conjunction with the detailed structure of the foregoing test system 10, the maintenance device 100, and the detection execution device 200. 4 is a flow chart of a test method according to an embodiment of the invention. The test method illustrated in FIG. 4 is applicable to the test system 10 as shown in FIGS. 1, 2, and 3, but the present invention is not limited thereto.
參照圖4,於本實施例中,對於網路進行測試時,由維運裝置100針對至少一個偵測執行裝置200提供偵測腳本(步驟S410),並且傳輸偵測腳本到所述偵測執行裝置200(步驟S420)。於本發明的一實施例中,維運裝置100例如是基於例行性或即時性的網路測試需求,針對各個偵測執行裝置200提供並傳輸偵測腳本,而偵測執行裝置200則依據所接收的偵測腳本對網路執行相關於網路測試的偵測任務(步驟S430),並且回傳偵測結果至維運裝置100(步驟S440)。 Referring to FIG. 4, in the embodiment, when testing the network, the maintenance device 100 provides a detection script for the at least one detection execution device 200 (step S410), and transmits the detection script to the detection execution. The device 200 (step S420). In an embodiment of the present invention, the maintenance device 100 provides a detection script for each detection execution device 200 based on routine or immediate network test requirements, and the detection execution device 200 is based on The received detection script performs a detection task related to the network test on the network (step S430), and returns the detection result to the maintenance device 100 (step S440).
維運裝置100的腳本設定模組182用於管理已註冊到腳 本設定模組182的偵測執行裝置200。具體而言,腳本設定模組182可對偵測執行裝置200下達運行命令或提供對應的偵測腳本。於本發明的一實施例中,偵測腳本例如是使用者基於各個偵測執行裝置200應進行的網路測試項目而透過輸入介面或者是連入維運裝置100所設定,但本發明不限於此。於本發明另一實施例中,偵測腳本例如是維運裝置100基於各個偵測執行裝置200的型態以及應進行的網路測試項目所設定。於本發明又一實施例中,維運裝置100或使用者更基於網路上的異常狀態而設定偵測腳本。 The script setting module 182 of the maintenance device 100 is used to manage the registered to the foot The detection execution device 200 of the setting module 182. Specifically, the script setting module 182 can issue a running command to the detecting execution device 200 or provide a corresponding detecting script. In an embodiment of the present invention, the detection script is set by the user through the input interface or the connection to the maintenance device 100 based on the network test item that each detection execution device 200 should perform, but the present invention is not limited thereto. this. In another embodiment of the present invention, the detection script is set, for example, by the maintenance device 100 based on the type of each detection execution device 200 and the network test item to be performed. In still another embodiment of the present invention, the maintenance device 100 or the user sets the detection script based on the abnormal state on the network.
偵測執行裝置200的通訊模組282提供接收運行命令與測試腳本的通訊通道,而維運裝置100與偵測執行裝置200分別透過第一通訊介面120與第二通訊介面220進行實質的通訊。在本發明的實施例中,維運裝置100是周期性或即時性地提供偵測腳本至偵測執行裝置200。 The communication module 282 of the detection and execution device 200 provides a communication channel for receiving the operation command and the test script, and the maintenance device 100 and the detection and execution device 200 communicate with the second communication interface 220 through the first communication interface 120. In an embodiment of the present invention, the maintenance device 100 periodically or immediately provides a detection script to the detection execution device 200.
具體而言,於本實施例中,當維運裝置100與偵測執行裝置200處於週期性執行模式下,偵測執行裝置200週期性地註冊於腳本設定模組182並取得偵測腳本以執行偵測任務。另一方面,當維運裝置100與偵測執行裝置200處於立即性執行模式下,腳本設定模組182利用特定的通訊通道傳輸偵測腳本至偵測執行裝置200,並要求偵測執行裝置200依據偵測腳本執行偵測任務以回傳偵測結果。換言之,在立即性執行模式中,腳本設定模組182可對應網路上的異常狀況,即時地下達偵測腳本至偵測執行裝置 200來執行偵測任務,然後依據偵測結果掌握異常狀況的原因以及影響。 Specifically, in the embodiment, when the maintenance device 100 and the detection execution device 200 are in the periodic execution mode, the detection execution device 200 is periodically registered in the script setting module 182 and acquires the detection script to execute. Detect tasks. On the other hand, when the maintenance device 100 and the detection execution device 200 are in the immediate execution mode, the script setting module 182 transmits the detection script to the detection execution device 200 by using a specific communication channel, and requests the detection execution device 200 to be detected. Perform a detection task based on the detection script to return the detection result. In other words, in the immediate execution mode, the script setting module 182 can respond to the abnormal condition on the network, and immediately detect the script to the detecting execution device. 200 to perform the detection task, and then grasp the cause and influence of the abnormal condition according to the detection result.
圖5是依據本發明一實施例所繪示之偵測執行裝置的模組運作示意圖。參照圖5,於本發明的一實施例中,當偵測執行裝置200取得偵測腳本後,控制與命令模組284由通訊模組282接收偵測腳本,然後將偵測腳本交付於排程模組286以便將偵測腳本轉換為實質的偵測任務。在本實施例中,控制與命令模組284控制偵測執行裝置200的運作。詳細而言,控制與命令模組284還可由通訊模組282接收腳本設定模組182下達的運行命令,並且依據運行命令操作偵測執行裝置200。運行命令包括啟動、停止、暫停、繼續、回報、強制執行等,用於控制偵測任務的執行。換言之,作為偵測執行面的偵測實體,偵測執行裝置200在執行偵測任務上受到執行面的維運裝置100控制。 FIG. 5 is a schematic diagram of the operation of the module of the detecting and executing device according to an embodiment of the invention. Referring to FIG. 5, in an embodiment of the present invention, after the detection execution device 200 obtains the detection script, the control and command module 284 receives the detection script from the communication module 282, and then delivers the detection script to the scheduling. Module 286 converts the detection script into a substantial detection task. In the present embodiment, the control and command module 284 controls the operation of the detection executing device 200. In detail, the control and command module 284 can also receive the running command issued by the script setting module 182 by the communication module 282, and operate the detecting and executing device 200 according to the running command. Running commands include start, stop, pause, resume, reward, enforcement, etc., to control the execution of the detection task. In other words, as the detecting entity detecting the execution surface, the detecting and executing device 200 is controlled by the carrying device 100 of the executing surface when performing the detecting task.
於本實施例中,排程模組286由控制與命令模組284接收偵測腳本後,轉換偵測腳本為偵測任務,並且將偵測任務置入任務序列TL中。偵測腳本由腳本語言(Seript Language)編寫,而排程模組286具有反編譯器(Decompiler)以拆解偵測腳本並轉換為偵測任務T與排程邏輯。置入任務序列TL的偵測任務T由第二處理單元260逐一地執行。 In this embodiment, after the scheduling module 286 receives the detection script from the control and command module 284, the conversion detection script is a detection task, and the detection task is placed in the task sequence TL. The detection script is written by a script language (Seript Language), and the scheduling module 286 has a decompiler to disassemble the detection script and convert it into a detection task T and scheduling logic. The detection task T placed in the task sequence TL is executed by the second processing unit 260 one by one.
於本發明的一實施例中,排程模組286還負責管控偵測任務T的執行,並且允許插斷正在執行的偵測任務T。具體而言,當排程模組286拆解偵測腳本後,判斷偵測腳本內的偵測任務T 具有最高優先度時,排程模組286可插斷第二處理單元260正在執行的先前偵測任務,並且暫存先前偵測任務。於具有最高優先度的偵測任務T被第二處理單元260執行後,排程模組286才恢復先前偵測任務的執行狀態。 In an embodiment of the invention, the scheduling module 286 is also responsible for controlling the execution of the detection task T and allowing the detection task T being executed to be interrupted. Specifically, after the scheduling module 286 disassembles the detection script, it determines the detection task T in the detection script. With the highest priority, the scheduling module 286 can interpolate the previous detection tasks being performed by the second processing unit 260 and temporarily store the previously detected tasks. After the detection task T having the highest priority is executed by the second processing unit 260, the scheduling module 286 resumes the execution state of the previously detected task.
偵測任務用以指示偵測執行裝置200的具體偵測行為。偵測任務例如是包括網路頻寬測試、封包延遲測試、封包遺失測試、網站響應速度測試等測試項目,但不以此為限。另一方面,針對不同的測試項目,偵測任務還可指定以特定方式或程序進行測試。在本發明的一實施例中,偵測任務為單一偵測任務或者為多個子偵測任務的組合。一般而言,若偵測任務為單一偵測任務,則第二處理單元260執行偵測任務後,透過通訊模組282回傳偵測結果,並且暫存偵測結果於第二儲存單元240。 The detection task is used to indicate the specific detection behavior of the detection execution device 200. The detection task includes, for example, a network bandwidth test, a packet delay test, a packet loss test, a website response speed test, and the like, but is not limited thereto. On the other hand, for different test items, the detection task can also be specified to test in a specific way or program. In an embodiment of the invention, the detection task is a single detection task or a combination of multiple sub-detection tasks. In general, if the detection task is a single detection task, the second processing unit 260 performs the detection task, returns the detection result through the communication module 282, and temporarily stores the detection result in the second storage unit 240.
值得注意的是,於本發明的一實施例中,通訊模組282更於維運裝置100與偵測執行裝置200之間建立回傳偵測結果的通訊通道,而偵測執行裝置200透過前述通訊通道回傳偵測結果。暫存於第二儲存單元240的偵測結果,可以用於執行後續偵測任務的參考。另一方面,當回傳偵測結果的通訊通道不存在或斷開時,偵測結果還可暫時保留於第二儲存單元240並等待回傳至維運裝置100的時機。 It is to be noted that, in an embodiment of the present invention, the communication module 282 further establishes a communication channel for transmitting a detection result between the maintenance device 100 and the detection execution device 200, and the detection execution device 200 transmits the foregoing The communication channel returns the detection result. The detection result temporarily stored in the second storage unit 240 can be used to perform a reference for the subsequent detection task. On the other hand, when the communication channel that returns the detection result does not exist or is disconnected, the detection result may be temporarily retained in the second storage unit 240 and wait for the timing of returning to the maintenance device 100.
然而,當偵測任務為多個子偵測任務的組合時,第二處理單元260需要執行多個子偵測任務來取得偵測結果。子偵測任務的組合例如是循序性的多個子偵測任務(Sequential Tasks)或平 行性的多個子偵測任務(Parallel Tasks)。具體而言,循序性的多個子偵測任務間具有邏輯性與前後相依性,用以提供具備時序性的偵測結果。相對而言,平行性的多個子偵測任務為同時並行的多個偵測行為,用以提供平行偵測的偵測結果。 However, when the detection task is a combination of multiple sub-detection tasks, the second processing unit 260 needs to perform a plurality of sub-detection tasks to obtain the detection result. The combination of sub-detection tasks is, for example, sequential multiple Sequential Tasks or flat Multiple sub-detection tasks (Parallel Tasks). Specifically, the sequential multiple sub-detection tasks have logic and context dependencies to provide timing detection results. In contrast, multiple sub-detection tasks of parallelism are multiple parallel detection actions to provide parallel detection detection results.
於本實施例中,若子偵測任務的組合為循序性的子偵測任務,則第二處理單元260依序地執行子偵測任務,並且依序地儲存子偵測任務的偵測結果於第二儲存單元240。相對而言,若子偵測任務的組合為平行性的子偵測任務,則第二處理單元260同時地執行子偵測任務,並且儲存子偵測任務的偵測結果於第二儲存單元240。另一方面,子偵測任務的偵測結果也會回傳至維運裝置100。 In this embodiment, if the combination of the sub-detection tasks is a sequential sub-detection task, the second processing unit 260 sequentially performs the sub-detection tasks, and sequentially stores the detection results of the sub-detection tasks. The second storage unit 240. In contrast, if the combination of the sub-detection tasks is a parallel sub-detection task, the second processing unit 260 simultaneously performs the sub-detection task, and stores the detection result of the sub-detection task in the second storage unit 240. On the other hand, the detection result of the sub-detection task is also transmitted back to the maintenance device 100.
對於循序性的多個子偵測任務而言,由於子偵測任務間的安排可具有邏輯性與前後相依性,故對於任意一個子偵測任務而言,腳本設定模組182或使用者可設定該子偵測任務的前置條件,並且第二處理單元260基於所述前置條件滿足與否來決定是否執行該子偵測任務。舉例而言,第二處理單元260首先對一個待測網站的網址(Uniform Resource Locator,URL)執行PING指令以偵測前述待測網站的是否運作。然而,若前述待測網站沒有回應,則觸發後續路由(Routing)偵測的偵測任務。此時,第二處理單元260例如是對待測網站的網址執行TRACEROUTE指令以確認至待測網站的路徑狀態。值得注意的是,前述例子僅是描述了一種循序性的子偵測任務組合,但本發明不以此為限。 For sequential multiple sub-detection tasks, since the arrangement between the sub-detection tasks can be logical and context-dependent, the script setting module 182 or the user can set any sub-detection task. The sub-detection pre-condition of the task, and the second processing unit 260 determines whether to perform the sub-detection task based on whether the pre-condition is satisfied or not. For example, the second processing unit 260 first executes a PING command on a website (Uniform Resource Locator, URL) of the website to be tested to detect whether the website to be tested operates. However, if the website to be tested does not respond, the detection task of the subsequent route detection is triggered. At this time, the second processing unit 260 executes a TRACEROUTE instruction, for example, a web address of the website to be tested to confirm the path status to the website to be tested. It should be noted that the foregoing example only describes a sequential sub-detection task combination, but the invention is not limited thereto.
換言之,於本實施例中,在執行循序性的多個子偵測任務時,第二處理單元260更依據前述子偵測任務中已經被執行的多個先前子偵測任務的偵測結果,決定是否觸發先前子偵測任務中的後續子偵測任務。 In other words, in the embodiment, when performing a plurality of sequential sub-detection tasks, the second processing unit 260 further determines, according to the detection results of the plurality of previous sub-detection tasks that have been executed in the sub-detection task. Whether to trigger subsequent sub-detection tasks in the previous sub-detection task.
另一方面,在本發明的一實施例中,維運裝置100的支援模組184對應偵測執行裝置200所執行的偵測任務,提供對應的支援服務。詳細而言,部分的偵測任務僅需偵測執行裝置200單獨執行即可,但仍有另一部分的偵測任務需要偵測執行裝置200搭配其他測試服務來一同執行。此時,維運裝置100的支援模組184會協助提供對應的測試服務來幫助偵測執行裝置200執行偵測任務。 On the other hand, in an embodiment of the present invention, the support module 184 of the maintenance device 100 provides a corresponding support service corresponding to the detection task performed by the execution device 200. In detail, part of the detection task only needs to detect that the execution device 200 is executed separately, but there is still another part of the detection task that needs to be detected by the execution device 200 in conjunction with other testing services. At this time, the support module 184 of the maintenance device 100 assists in providing the corresponding test service to help detect the execution device 200 to perform the detection task.
舉例而言,在進行域名系統(Domain Name System,DNS)伺服器解析時,偵測執行裝置200僅需向網路上的域名系統伺服器發送解析要求,即可量測前述域名系統伺服器的解析效能,進而完成偵測任務。相對而言,利用用戶數據報協議(User Datagram Protocol,UDP)測試網路的可用頻寬時,需要搭配一個UDP反射服務來反射由偵測執行裝置200送出的UDP封包列。此時,維運裝置100的支援模組184即用於提供前述的UDP反射服務。 For example, when performing a domain name system (DNS) server resolution, the detection execution device 200 only needs to send a resolution request to the domain name system server on the network, and then the resolution of the domain name system server can be measured. Performance, and thus complete the detection task. In contrast, when the available bandwidth of the network is tested by the User Datagram Protocol (UDP), a UDP reflection service is required to reflect the UDP packet sequence sent by the detection executing device 200. At this time, the support module 184 of the maintenance device 100 is used to provide the aforementioned UDP reflection service.
於本發明一實施例中,維運裝置100接收偵測結果後,將偵測結果儲存於第一儲存單元140。此外,維運裝置100還可進一步分析所收集的偵測結果來判斷網路品質。 In an embodiment of the present invention, after receiving the detection result, the maintenance device 100 stores the detection result in the first storage unit 140. In addition, the maintenance device 100 can further analyze the collected detection results to determine the network quality.
在本發明實施例所提供的測試系統10中,維運面還可以 協調偵測執行面中的多個偵測實體協同地進行偵測任務。換言之,當有複數個偵測執行裝置200存在時,若偵測任務為部分的偵測執行裝置200協同地執行的協同偵測任務時,維運裝置100協調前述部分的偵測執行裝置200以執行前述協同偵測任務。需要注意的是,執行協同偵測任務的偵測執行裝置的數量並不受限,而可以隨協同偵測任務的任務內容而對應變化。 In the test system 10 provided by the embodiment of the present invention, the maintenance surface can also Coordinating the detection of multiple detection entities in the execution surface to perform the detection task collaboratively. In other words, when there are multiple detection execution devices 200, if the detection task is a cooperative detection task that is performed by the detection execution device 200 in part, the maintenance device 100 coordinates the detection execution device 200 of the foregoing portion. Perform the aforementioned collaborative detection task. It should be noted that the number of detection execution devices that perform the cooperative detection task is not limited, and may change correspondingly according to the task content of the cooperative detection task.
圖6是依據本發明一實施例所繪示之進行協同偵測任務的流程圖。參照圖2、圖3以及圖6,於本實施例中,維運裝置100的協調模組186用於協調偵測執行裝置200-1與200-2進行協同偵測任務,但本發明不限於此。首先,當偵測執行裝置200-1欲執行的偵測任務為協同偵測任務時,偵測執行裝置200-1的協同模組288透過通訊模組282向協調模組186註冊(步驟S431),然後依據協調模組186的指示執行協同偵測任務。 FIG. 6 is a flow chart of performing a cooperative detection task according to an embodiment of the invention. Referring to FIG. 2, FIG. 3 and FIG. 6, in this embodiment, the coordination module 186 of the maintenance device 100 is used to coordinate the detection execution devices 200-1 and 200-2 for cooperative detection tasks, but the present invention is not limited thereto. this. First, when the detection task to be executed by the execution device 200-1 is a cooperative detection task, the cooperation module 288 of the detection execution device 200-1 registers with the coordination module 186 via the communication module 282 (step S431). Then, the collaborative detection task is executed according to the instruction of the coordination module 186.
於本實施例中,協調模組186依據協同偵測任務的需求,將協同偵測任務的任務內容分享至參與的偵測執行裝置200-1與200-2(步驟S432)。於本發明的一實施例中,在任務內容的指定時間,偵測執行裝置200-1與200-2分別進入等待測試的狀態,並且分別透過通訊模組282向協調模組186建立連線。接著,協調模組186發送啟動訊號至偵測執行裝置200-1與200-2以啟動協同偵測任務(步驟S433)。 In this embodiment, the coordination module 186 shares the task content of the collaborative detection task to the participating detection execution devices 200-1 and 200-2 according to the requirements of the collaborative detection task (step S432). In an embodiment of the present invention, at a specified time of the task content, the detecting and executing devices 200-1 and 200-2 respectively enter a state of waiting for testing, and respectively establish a connection to the coordination module 186 through the communication module 282. Then, the coordination module 186 sends an activation signal to the detection executing devices 200-1 and 200-2 to start the cooperative detection task (step S433).
偵測執行裝置200-1與200-2的協同模組288分別依據協調模組186的任務運行協定進行協同偵測任務。基於協同偵測任 務的任務內容,偵測執行裝置200-1與200-2還可藉由通訊模組282相互建立連線以完成協同偵測任務。完成協同偵測任務後,偵測執行裝置200-1與200-2的協同模組288分別透過通訊模組282所建立的通訊通道回傳偵測結果至協調模組186(步驟S434)。另一方面,前述的偵測結果也個別地儲存於偵測執行裝置200-1與200-2的第二儲存單元240。最後,協調模組186彙整來自偵測執行裝置200-1與200-2的偵測結果(步驟S435)。彙整後的偵測結果例如是儲存於第一儲存單元140以供後續分析使用。 The cooperation module 288 of the detection executing devices 200-1 and 200-2 respectively perform the cooperative detection task according to the task operation agreement of the coordination module 186. Based on collaborative detection For the task content, the detecting and executing devices 200-1 and 200-2 can also establish a connection with each other through the communication module 282 to complete the collaborative detection task. After the cooperative detection task is completed, the cooperation module 288 of the detection executing devices 200-1 and 200-2 respectively transmits the detection result to the coordination module 186 through the communication channel established by the communication module 282 (step S434). On the other hand, the foregoing detection results are also separately stored in the second storage unit 240 of the detection executing devices 200-1 and 200-2. Finally, the coordination module 186 summarizes the detection results from the detection executing devices 200-1 and 200-2 (step S435). The detected result after the aggregation is stored, for example, in the first storage unit 140 for subsequent analysis.
以下將以一個實際測試的例子說明執行協同偵測任務的流程。舉例而言,當偵測執行裝置200-1基於指派的偵測任務而向偵測執行裝置200-2發起電話通訊品質測試時,偵測執行裝置200-1首先向維運裝置100的協調模組186進行註冊。維運裝置100的協調模組186基於偵測任務的偵測內容,向偵測執行裝置200-2分享任務內容並詢問是否允許測試請求,然後將請求結果回覆至偵測執行裝置200-1。若請求被允許,則偵測執行裝置200-1與200-2的協同模組288基於協調模組186的啟動訊號開始進入電話通訊品質測試,然後分別回傳測試結果至維運裝置100的協調模組186。 The process of performing a collaborative detection task will be described below with an actual test example. For example, when the detection executing device 200-1 initiates a telephone communication quality test to the detection executing device 200-2 based on the assigned detection task, the detection executing device 200-1 firstly coordinates with the maintenance device 100. Group 186 is registered. The coordination module 186 of the maintenance device 100 shares the task content with the detection execution device 200-2 based on the detection content of the detection task and asks whether the test request is permitted, and then returns the request result to the detection execution device 200-1. If the request is allowed, the cooperation module 288 of the detection executing devices 200-1 and 200-2 starts to enter the telephone communication quality test based on the activation signal of the coordination module 186, and then returns the test result to the coordination of the maintenance device 100 respectively. Module 186.
綜上所述,本發明實施例所提供的測試系統與測試方法,由維運裝置針對各個偵測執行裝置提供偵測腳本,並且由所述偵測執行裝置依據所接收的偵測腳本對連接的網路執行相關於網路測試的偵測任務。藉此,偵測腳本可以動態地被指派,並且 各個偵測執行裝置可針對不同的情境與狀況執行對應的偵測任務,達到有效且迅速的網路效能測試。此外,對於需要多個偵測執行裝置一同執行的協同偵測任務,由維運裝置協調參與的所述偵測執行裝置,藉以達到較佳的測試效率與測試結果。 In summary, in the test system and the test method provided by the embodiment of the present invention, the maintenance device provides a detection script for each detection execution device, and the detection execution device connects according to the received detection script pair. The network performs detection tasks related to network testing. Thereby, the detection script can be dynamically assigned, and Each detection execution device can perform corresponding detection tasks for different situations and conditions to achieve an effective and rapid network performance test. In addition, for the collaborative detection task that needs to be executed by multiple detection execution devices, the detection execution device coordinated by the maintenance device can achieve better test efficiency and test results.
雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。 Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention, and any one of ordinary skill in the art can make some changes and refinements without departing from the spirit and scope of the present invention. The scope of the invention is defined by the scope of the appended claims.
100:維運裝置 200:偵測執行裝置 S410、S420、S430、S440:測試方法的步驟100: Maintenance device 200: Detection execution device S410, S420, S430, S440: steps of the test method
Claims (16)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW105119831A TWI615005B (en) | 2016-06-24 | 2016-06-24 | Testing system and testing method for network performance |
CN201610764557.1A CN107547294A (en) | 2016-06-24 | 2016-08-30 | Network efficiency testing system and testing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW105119831A TWI615005B (en) | 2016-06-24 | 2016-06-24 | Testing system and testing method for network performance |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201801496A TW201801496A (en) | 2018-01-01 |
TWI615005B true TWI615005B (en) | 2018-02-11 |
Family
ID=60966765
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW105119831A TWI615005B (en) | 2016-06-24 | 2016-06-24 | Testing system and testing method for network performance |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107547294A (en) |
TW (1) | TWI615005B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150341249A1 (en) * | 2014-05-21 | 2015-11-26 | Canon Kabushiki Kaisha | Management apparatus for managing network device and method for controlling the same |
TWI510918B (en) * | 2014-02-20 | 2015-12-01 | Wistron Corp | Method and system for quick testing and detectiing mobile devices |
US20160100028A1 (en) * | 2013-05-21 | 2016-04-07 | Koninklijke Philips N.V. | A network system, a lighting system, and a method of caching information from a resource-constrained device |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102156673B (en) * | 2011-04-20 | 2013-09-18 | 北京航空航天大学 | Test case description oriented GUI (Graphical User Interface) automatic test system and test method thereof |
CN103024794A (en) * | 2011-09-26 | 2013-04-03 | 中兴通讯股份有限公司 | Method and system for detecting communication service quality |
CN103019172B (en) * | 2012-11-06 | 2017-10-13 | 西华大学 | Ad-hoc wireless pyroelectric monitor system |
CN104978263B (en) * | 2014-04-09 | 2019-01-29 | 腾讯科技(深圳)有限公司 | A kind of mobile terminal applied program testing method and system |
CN105468513B (en) * | 2014-09-11 | 2021-03-12 | 腾讯科技(深圳)有限公司 | Test method, device and system based on mobile terminal |
CN104331255B (en) * | 2014-11-17 | 2018-04-17 | 中国科学院声学研究所 | A kind of stream data read method based on embedded file system |
-
2016
- 2016-06-24 TW TW105119831A patent/TWI615005B/en active
- 2016-08-30 CN CN201610764557.1A patent/CN107547294A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160100028A1 (en) * | 2013-05-21 | 2016-04-07 | Koninklijke Philips N.V. | A network system, a lighting system, and a method of caching information from a resource-constrained device |
TWI510918B (en) * | 2014-02-20 | 2015-12-01 | Wistron Corp | Method and system for quick testing and detectiing mobile devices |
US20150341249A1 (en) * | 2014-05-21 | 2015-11-26 | Canon Kabushiki Kaisha | Management apparatus for managing network device and method for controlling the same |
Also Published As
Publication number | Publication date |
---|---|
CN107547294A (en) | 2018-01-05 |
TW201801496A (en) | 2018-01-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10802906B2 (en) | Monitoring method and apparatus of server, and storage medium | |
US10459754B2 (en) | Method, apparatus, and system for discovering application topology relationship | |
US20210132974A1 (en) | System for peering container clusters running on different container orchestration systems | |
US20120311128A1 (en) | Performance testing in a cloud environment | |
WO2017084274A1 (en) | Method and apparatus for selecting retrieval server | |
US10461990B2 (en) | Diagnostic traffic generation for automatic testing and troubleshooting | |
CN107613037B (en) | Domain name redirection method and system | |
US20140280959A1 (en) | Application server instance selection based on protocol latency information | |
US20170168881A1 (en) | Process chain discovery across communication channels | |
US11354152B2 (en) | Self-evolving microservices | |
US9160653B2 (en) | Dynamic redirection of network traffic within a system under test | |
US20090106260A1 (en) | Method and System for Transferring Files | |
EP3609134A1 (en) | Bgp anycast cluster service quality detection method and detection apparatus | |
Li et al. | Analyzing open-source serverless platforms: Characteristics and performance | |
US8930935B2 (en) | Composite service refactoring | |
CN108733545B (en) | Pressure testing method and device | |
Brogi et al. | Measuring the fog, gently | |
US9819933B2 (en) | Automated testing of media devices | |
US10608889B2 (en) | High-level interface to analytics engine | |
Chang et al. | A service-oriented mobile cloud middleware framework for provisioning mobile sensing as a service | |
TWI615005B (en) | Testing system and testing method for network performance | |
US20080162687A1 (en) | Data acquisition system and method | |
US8909770B2 (en) | Performance estimator for network devices | |
US20210176205A1 (en) | Global load balancing achieved by using distributed dns reflection | |
CN111147445B (en) | Packet capturing method, device, system and storage medium |