201210253 六、發明說明: 【發明所屬之技術領域】 [0001] 本發明涉及一種網路裝置’尤其涉及一種網路裝置及其 參數設定方法。 【先前技術】 [0002] 網路裝置的内部架構包括管理元件(management agent,ΜΑ)、管理層服務系統、服務元件(service agent,SA)及驅動。當用戶在管理元件端設定參數時 管理元件將該設定的參數傳送給管理層服務系統’該管 理層服務系統每傳一條參數給服務元件’該服務元件就 將該參數發送給驅動’驅動對談網路裝置進行參數設定 ,但是參數往往有多條(如η條),第η條參數才是驅動 最终設定的參數,即造成了 η-1次資源的浪費。 【發明内容】 [0003] 鑒於以上内容,有必要提供一種鋼路裝置及其參數設定 方法,可以高效快速地設定網路裝置的參數。 [0004] —種網路裝置,該網路裝置包括管理元件、管理層服務 系統、多個服務元件及對應該多個服務元件的多個驅動 ,所述管理層服務系統包括:接收模組’用於接收管理 元件發送的所有參數;發送模組,用於發送相應參數至 該參數對應的服務元件;該發送模組,還用於當該服務 元件接收完相應參數後,發送一個結束旗標給該服務元 件;及控制模組,用於當一個服務元件接收到結束旗標 後,控制該服務元件發送所接收到的所有參數至該服務 元件對應的驅動,該驅動根據所述參數對所述網路裝置 099129178 表單編號Α0101 0992051196-0 201210253 進行參數設定。 [0005] Ο [0006] [0007] 〇 一種螂略装置參數設定方法,該網路裝置包括管理元件 、官埂層服務系統,多個服務元件及對應該多個服務元 件的夕傾驅動,該方法包括如下步驟:(a)接收管理元 牛發适的所有參數;(b)發送該參數至該參數對應的服 務元件;(e)當服務元件接收完參數後,發送一個結束 旗私给轅服務元件;及(d)控制該服務元件發送所接收 到的所有參數至該服務元件對應的驅動,該驅動根據所 述參數對所述網路裝置進行參數設定。 :::; :'.::;::: ' ; : :.:;:' ;:; ... 相較於習知技術,游述網路裝置及其參數設定方法,使 得用戶於介面上設定的參數可以快速高效地設定到網路 裝置内,避免了系統資源的浪費。 【實施方式】 如圖1所示,係本發明網路裝置較佳實施例之硬體架構圖 °該網路裝置1包括管理元件(management agent,MA )、管理層服務(management layer service, MLS)系統11 (以下簡稱為MLS 11)、多個服務元件( service agent,SA) 12及每個SA 12所對應的驅動( driver) 13。該MA 10可以為web網頁圖像化介面或者 命令輸入介面(例如:DOS命令輸入介面)。該SA 12可 以為防火牆》所述MLS 11為中間件,用戶可以在MA 1〇 上對網路裝置1進行參數設置。該MLS 11包括資料庫11{) ’MLS 11接收MA 10發送的參數並儲存於資料庫11〇中, 待MLS 11接收完成後將該參數發送給SA 12,該SA 12 將接收到的參數發送給相應的驅動13,該驅動13接收參 099129178 表單編號A0101 第5頁/共15頁 0992051196-0 201210253 數並對網路裝置1進行設定。 [0008] 每個SA 12都在MLS 11上註冊了該SA 12的資訊,該SA 12的資訊包括該SA 12與其他SA 12之間的關係,該關係 包括依附關係或者相互獨立。SA 12之間的依附關係是指 多個SA 12從MLS 11接收參數的順序,如第二SA 12依 附於第一SA 12,則MLS 11首先發送參數給第一SA 12 ,再將參數發送給第二SA 12。若每個SA 12之間是相互 獨立的,則MLS 11同時發送相應的參數至每個SA 12。 [0009] 如圖2所示,係圖1中MLS 11之功能模組圖。所述MLS 11 包括:接收模組111、判斷模組112、發送模組113及控 制模組114。所述模組是具有特定功能的軟體程式段,該 軟體儲存於電腦可讀儲存介質或其他儲存設備,可被電 腦或其他包含處理器的計算裝置執行,從而完成本發明 中網路裝置1參數設定的作業流程。 [0010] 接收模組111用於接收ΜΑ 10發送的所有參數並儲存至資 料庫110中,接收的參數對應發送給一個或多個SA 12, 即所接收的參數屬於一個SA 12或者多個SA 12。 [0011] 判斷模組11 2用於判斷接收到的參數是否屬於一個SA 12 〇201210253 VI. Description of the Invention: [Technical Field] The present invention relates to a network device', and more particularly to a network device and a parameter setting method thereof. [Prior Art] [0002] The internal architecture of a network device includes a management agent (management agent), a management service system, a service agent (SA), and a driver. When the user sets the parameters on the management component side, the management component transmits the set parameters to the management service system. The management service system transmits a parameter to the service component. The service component sends the parameter to the driver. The network device performs parameter setting, but there are often multiple parameters (such as η), and the ηth parameter is the parameter that drives the final setting, which causes the waste of η-1 resources. SUMMARY OF THE INVENTION [0003] In view of the above, it is necessary to provide a steel road device and a parameter setting method thereof, which can quickly and quickly set parameters of a network device. [0004] A network device comprising a management component, a management service system, a plurality of service components, and a plurality of drivers corresponding to the plurality of service components, the management service system comprising: a receiving module The sending module is configured to receive the corresponding parameter to the service component corresponding to the parameter; the sending module is further configured to send an end flag after the service component receives the corresponding parameter And the control module, configured to: when a service component receives the end flag, control the service component to send all the received parameters to the corresponding driver of the service component, the driver according to the parameter pair Network device 099129178 Form number Α0101 0992051196-0 201210253 Parameter setting. [0005] [0006] [0007] [0007] A method for setting parameter parameters of a device, the network device includes a management component, a bureaucratic layer service system, a plurality of service components, and an evening tilt drive corresponding to the plurality of service components, The method comprises the steps of: (a) receiving all parameters suitable for managing the function of the element; (b) transmitting the parameter to the service element corresponding to the parameter; (e) sending an end flag private service after the service element receives the parameter; And (d) controlling the service element to transmit all of the received parameters to a drive corresponding to the service element, the drive parameterizing the network device according to the parameter. :::; :'.::;::: ' ; : :.:;:' ;:; ... Compared to the prior art, the web device and its parameter setting method enable the user to interface The set parameters can be quickly and efficiently set into the network device, avoiding the waste of system resources. [Embodiment] FIG. 1 is a hardware architecture diagram of a preferred embodiment of a network device according to the present invention. The network device 1 includes a management agent (MA) and a management layer service (MLS). The system 11 (hereinafter referred to as MLS 11), a plurality of service agents (SAs) 12, and a driver 13 corresponding to each SA 12. The MA 10 can be a web page image interface or a command input interface (for example, a DOS command input interface). The SA 12 can be a middleware for the MLS 11 as a firewall, and the user can parameterize the network device 1 on the MA 1〇. The MLS 11 includes a database 11{) 'MLS 11 receives the parameters sent by the MA 10 and stores them in the database 11〇, and sends the parameters to the SA 12 after the MLS 11 receives the completion, and the SA 12 sends the received parameters. To the corresponding driver 13, the driver 13 receives the number 099129178 form number A0101 page 5 / page 15 0992051196-0 201210253 and sets the network device 1. [0008] Each SA 12 registers the information of the SA 12 on the MLS 11, and the information of the SA 12 includes the relationship between the SA 12 and other SAs 12, the relationship including the dependency relationship or independent of each other. The dependency relationship between the SAs 12 refers to the order in which the plurality of SAs 12 receive parameters from the MLS 11, and if the second SA 12 is attached to the first SA 12, the MLS 11 first sends the parameters to the first SA 12, and then sends the parameters to the Second SA 12. If each SA 12 is independent of each other, the MLS 11 simultaneously transmits the corresponding parameters to each SA 12. [0009] As shown in FIG. 2, it is a functional module diagram of the MLS 11 in FIG. The MLS 11 includes a receiving module 111, a determining module 112, a transmitting module 113, and a control module 114. The module is a software program segment having a specific function, and the software is stored in a computer readable storage medium or other storage device, and can be executed by a computer or other computing device including the processor, thereby completing the parameters of the network device 1 in the present invention. The set workflow. [0010] The receiving module 111 is configured to receive all the parameters sent by the UI 10 and store them in the database 110, and the received parameters are correspondingly sent to one or more SAs 12, that is, the received parameters belong to one SA 12 or multiple SAs. 12. [0011] The determining module 11 2 is configured to determine whether the received parameter belongs to a SA 12 〇
[0012] 發送模組113用於當所述參數屬於多個SA 12時,根據每 個SA 12之間的關係確定接收參數的SA 12的順序,並根 據該順序確定接收參數的第一批SA 12。該發送模組11 3 還用於發送相應參數至該第一批SA 12,本實施例中,發 送模組113發送相應參數之前發送一個開始旗標給該批SA 099129178 表單編號A0101 第6頁/共15頁 0992051196-0 201210253 12令的母個SA 12,如發送“N〇tYetAppiied =计狀” 旗標給每個SA 12。當—個SA難收到屬於該sa咖 所有參數時,該發送模組山發送一個結束旗標給該SA 12 中,如發送“NGtYetAppHed = faise,,旗標給該sa 12 ° [0013] [0014] [0015] 所述判斷模組112還用於判斷是否存在依㈣該SA㈣ 12本實施例中,依附於-個SA 12可能為-個SA 也可^為夕個SA 12°若存在依附於該SA 12的SA 12貝]發送模組113還用於發送相應參數至依附於該SA 12的SA 12以此類推,直到所有參數都發送完畢。 控制模組114用於當每個SA以賴束旗標.時控制各SA I2發送所接收到的所有參數純應_聲動n如圖3所$係、本發明網路裝置參數^定方法較佳實施例 之作業流程圖。 [0016] 〇 步驟S30接收模組川接收MA 1〇發送b所有參數並 儲存至資料庫1U)中,魏的參數屬 於一個或多個SA 12 圃步驟S31 ’判斷模組112判斷該參數是否屬於一個SA 12 。若該參數屬於一個SA 12,直接執行步驟S34。若該參 數屬於多個SA 12,則執行步驟S32。 [0018]步驟S32 ’發送模組113根據每個SA 12之間的關係確定 接收參數的SA 12的順序,並根據該順序確定一批接收參 數的SA 12。 099129178 表單編號A0101 第7頁/共15頁 0992051196-0 201210253 [0019] 步驟S33,發送模組113發送相應的參數至該批SA 12。 .本實施例中,發送模組113發送相應參數之前會發送一個 開始旗標給該批SA 12中的每個SA 12,如發送“ NotYetApplied = true” 旗標給每個SA 12。 [0020] 步驟S34,判斷模組112判斷接收參數的SA 12是否接收 到屬於該SA 12的所有參數。若SA 12接收到屬於該SA 12的所有參數,則於步驟S35中,發送模組113發送一個 結束旗標給該SA 12,如發送“NotYetApplied = false ”旗標給該SA 12,並執行步驟S36。若有SA 12沒有接 收到屬於該SA 12的所有參數,則轉至步驟S33繼續發送 相應參數給該SA 12。 [0021] 步驟S36,控制模組114控制該SA 12發送所接收到的所 有參數至對應的驅動13。 [0022] 步驟S37,所述驅動13根據接收到的參數對該網路裝置1 進行參數設定。 [0023] 步驟S38,判斷模組112判斷是否存在依附於該SA 12的 其他SA 12。若存在,則執行步驟S39。若不存在,則結 束流程。 [0024] 步驟S39,發送模組113發送相應參數至依附於該SA 12 的下一批SA 12,並轉至步驟S34。本實施例中,依附於 該SA 12的下一批SA 12為一個或多個SA 12。 [0025] 最後所應說明的是,以上實施例僅用以說明本發明的技 術方案而非限制,儘管參照以上較佳實施例對本發明進 行了詳細說明,本領域的普通技術人員應當理解,可以 099129178 表單編號A0101 第8頁/共15頁 0992051196-0 201210253 [0026] 對本發明的技術方案進行修改或等同替換,而不脫離本 發明技術方案的精神和範圍。 【圖式簡單說明】 圖1係本發明網路裝置較佳實施例之硬體架構圖。 [0027] 圖2係圖1中管理層服務系統11之功能模組圖。 [0028] 圖3係本發明網路裝置參數設定方法較佳實施例之作業流 程圖。 l [0029] 【主要元件符號說明】 網路裝置:1 [0030] 管理元件:10 [0031] 管理層服務系統:11 [0032] 服務元件:12 [0033] 驅動:13 [0034] 資料庫:110 ❹ [0035] 接收模組:111 [0036] 判斷模組:112 [0037] 發送模組:113 [0038] 控制模組:114 099129178 表單編號A0101 第9頁/共15頁 0992051196-0[0012] The sending module 113 is configured to determine, according to the relationship between each SA 12, the order of the SA 12 receiving the parameter, and determine the first batch of SAs of the receiving parameter according to the sequence, when the parameter belongs to the plurality of SAs 12 12. The sending module 113 is further configured to send corresponding parameters to the first batch of SA 12. In this embodiment, the sending module 113 sends a start flag to the batch SA 099129178 before sending the corresponding parameter. Form No. A0101 Page 6 / A total of 15 pages 0992051196-0 201210253 12 orders of the parent SA 12, such as sending a "N〇tYetAppiied = gauge" flag to each SA 12. When the SA is difficult to receive all the parameters belonging to the sa coffee, the sending module sends an end flag to the SA 12, such as sending "NGtYetAppHed = faise, the flag to the sa 12 ° [0013] [ [0015] The determining module 112 is further configured to determine whether there is (4) the SA (four). In the embodiment, the attached to the SA 12 may be -SA or ^SA SA 12° if there is attachment The SA 12 transmit module 113 of the SA 12 is also used to send corresponding parameters to the SA 12 attached to the SA 12 and so on until all parameters are transmitted. The control module 114 is used to According to the control system, all the parameters received by each SA I2 transmission are purely _acoustic n, as shown in FIG. 3, and the operation flow chart of the preferred embodiment of the network device parameter determination method of the present invention. 〇Step S30 receives the module to receive the MA 1 〇 send b all parameters and store them in the database 1U), the parameters of Wei belong to one or more SA 12 圃 Step S31 'The determination module 112 determines whether the parameter belongs to an SA 12. If the parameter belongs to an SA 12, directly execute step S34. If the parameter belongs to multiple SA 12s, then Step S32 is performed. [0018] Step S32 'The transmitting module 113 determines the order of the SA 12 receiving the parameters according to the relationship between each SA 12, and determines a batch of SA 12 of the received parameters according to the order. 099129178 Form No. A0101 7 page / 15 pages 0992051196-0 201210253 [0019] Step S33, the sending module 113 sends the corresponding parameter to the batch of SA 12. In this embodiment, the sending module 113 sends a start flag before sending the corresponding parameter. For each SA 12 in the batch of SAs 12, a "NotYetApplied = true" flag is sent to each SA 12. [0020] Step S34, the determining module 112 determines whether the SA 12 receiving the parameter receives the SA 12 All parameters of the SA 12. If the SA 12 receives all the parameters belonging to the SA 12, then in step S35, the sending module 113 sends an end flag to the SA 12, such as sending a "NotYetApplied = false" flag to the SA 12 And step S36 is performed. If any parameters belonging to the SA 12 are not received by the SA 12, then go to step S33 to continue sending corresponding parameters to the SA 12. [0021] Step S36, the control module 114 controls the SA 12 to send All received The parameter is to the corresponding driver 13. [0022] Step S37, the driver 13 performs parameter setting on the network device 1 according to the received parameter. [0023] Step S38, the determining module 112 determines whether there are other SAs 12 attached to the SA 12. If yes, step S39 is performed. If it does not exist, the process ends. [0024] Step S39, the sending module 113 sends the corresponding parameter to the next batch of SA 12 attached to the SA 12, and proceeds to step S34. In this embodiment, the next batch of SA 12 attached to the SA 12 is one or more SAs 12. [0025] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to be limiting, although the present invention will be described in detail with reference to the above preferred embodiments. 099129178 Form No. A0101 Page 8 of 15 0992051196-0 201210253 [0026] The technical solutions of the present invention are modified or equivalently substituted without departing from the spirit and scope of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a hardware architecture diagram of a preferred embodiment of a network device of the present invention. 2 is a functional block diagram of the management service system 11 of FIG. 1. 3 is a workflow diagram of a preferred embodiment of a network device parameter setting method of the present invention. l [0029] [Main component symbol description] Network device: 1 [0030] Management component: 10 [0031] Management service system: 11 [0032] Service component: 12 [0033] Driver: 13 [0034] Database: 110 ❹ [0035] Receiving module: 111 [0036] Judging module: 112 [0037] Transmitting module: 113 [0038] Control module: 114 099129178 Form number A0101 Page 9 / Total 15 page 0992051196-0