[go: up one dir, main page]

TWI439081B - Networking device and method for reseting parameters thereof - Google Patents

Networking device and method for reseting parameters thereof Download PDF

Info

Publication number
TWI439081B
TWI439081B TW99117777A TW99117777A TWI439081B TW I439081 B TWI439081 B TW I439081B TW 99117777 A TW99117777 A TW 99117777A TW 99117777 A TW99117777 A TW 99117777A TW I439081 B TWI439081 B TW I439081B
Authority
TW
Taiwan
Prior art keywords
program call
network device
remote program
call command
parameter
Prior art date
Application number
TW99117777A
Other languages
Chinese (zh)
Other versions
TW201145906A (en
Inventor
Chih Yuan Huang
Original Assignee
Hon Hai Prec Ind Co Ltd
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 Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Priority to TW99117777A priority Critical patent/TWI439081B/en
Publication of TW201145906A publication Critical patent/TW201145906A/en
Application granted granted Critical
Publication of TWI439081B publication Critical patent/TWI439081B/en

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Description

網路裝置及更改其參數設定的方法Network device and method of changing its parameter settings

本發明涉及網路通訊,尤其涉及一種網路裝置及更改其參數設定的方法。The present invention relates to network communications, and more particularly to a network device and a method of changing its parameter settings.

隨著網路通訊技術的飛速發展,在網際網路中有越來越多的用戶終端,因此需要一種有效的管理機制來管理這些用戶終端。With the rapid development of network communication technology, there are more and more user terminals in the Internet, so an effective management mechanism is needed to manage these user terminals.

請參閱圖1,所示為管理伺服器10管理用戶終端30的基本框架圖。在現有網路中,由於用戶終端30數量繁多、分佈分散,不易進行管理與維護,因此TR-069協定提出藉由管理伺服器10對用戶終端30進行遠端集中管理來解決對用戶終端30管理,節約維護成本。在圖1中,用戶終端30包括資料模型,管理伺服器10藉由網路20及局端閘道器22管理用戶終端30,具體管理流程如圖2所示。Referring to FIG. 1, a basic block diagram of the management server 10 managing the user terminal 30 is shown. In the existing network, since the number of user terminals 30 is large and distributed, and management and maintenance are difficult to implement, the TR-069 protocol proposes centralized management of the user terminal 30 by the management server 10 to solve the management of the user terminal 30. , saving maintenance costs. In FIG. 1, the user terminal 30 includes a data model, and the management server 10 manages the user terminal 30 through the network 20 and the central gateway 22, and the specific management process is as shown in FIG. 2.

請參閱圖2,用戶終端30首先與管理伺服器10建立傳輸控制協定(Transport Control Protocol,TCP)連接並建立安全機制,當管理伺服器10需要更改用戶終端30的資料模型中的參數再為用戶終端30提供新服務時,需要執行以下步驟:(1)管理伺服器10發送第一遠端程序呼叫(Remote Procedure Call, RPC)命令至用戶終端30;(2)用戶終端30在每一次收到第一RPC命令時自動為用戶終端30中的資料模型中的複數物件產生與其相應的物件識別號,其中,物件為能實現特定功能的參數的集合,如虛擬區域網(VLAN)功能,且每一物件對應一物件識別號,用於區別每一物件;(3)用戶終端30發送回應封包至管理伺服器10,其中回應封包包括複數物件及其物件識別號;(4)管理伺服器10記錄回應封包中的物件及其識別號,並解析出想要設定的物件識別號;(5)管理伺服器10發送第二RPC命令到用戶終端30,其中,第二RPC命令中包括所需設定的物件及其物件識別號;(6)用戶終端30根據第二RPC命令中的物件對參數進行修改與設定,以實現特定功能;(7)用戶終端30發送設定成功的報文至管理伺服器10。Referring to FIG. 2, the user terminal 30 first establishes a Transport Control Protocol (TCP) connection with the management server 10 and establishes a security mechanism. When the management server 10 needs to change the parameters in the data model of the user terminal 30, the user is again When the terminal 30 provides a new service, the following steps are required: (1) the management server 10 sends a first Remote Procedure Call (RPC) command to the user terminal 30; (2) the user terminal 30 receives each time The first RPC command automatically generates an object identification number corresponding to the plurality of objects in the data model in the user terminal 30, wherein the object is a set of parameters capable of implementing a specific function, such as a virtual area network (VLAN) function, and each An object corresponds to an object identification number for distinguishing each item; (3) the user terminal 30 sends a response packet to the management server 10, wherein the response packet includes a plurality of objects and their object identification numbers; (4) the management server 10 records Responding to the object in the packet and its identification number, and parsing the object identification number to be set; (5) the management server 10 sends the second RPC life Go to the user terminal 30, wherein the second RPC command includes the object to be set and its object identification number; (6) the user terminal 30 modifies and sets the parameter according to the object in the second RPC command to implement a specific function; (7) The user terminal 30 transmits the successfully set message to the management server 10.

有鑒於此,需提供一種網路裝置,用於根據管理伺服器的遠端程序呼叫命令更改該網路裝置的參數設定,以簡化管理伺服器管理網路裝置的流程。In view of this, it is desirable to provide a network device for changing the parameter settings of the network device according to the remote program call command of the management server to simplify the process of managing the server management network device.

此外,還需要提供一種更改網路裝置參數設定的方法,用於根據管理伺服器的遠端程序呼叫命令更改該網路裝置的參數設定,以簡化管理伺服器管理網路裝置的流程。In addition, there is a need to provide a method of changing the network device parameter settings for changing the parameter settings of the network device according to the remote program call command of the management server to simplify the process of managing the server management network device.

本發明實施方式中的網路裝置,與管理伺服器通訊,據管理伺服器的遠端程序呼叫命令更改網路裝置的參數設定,該網路裝置包括資料模型,資料模型中包括複數物件,複數物件是實現複數功能的參數的集合,且每一參數對應一參數值,每一參數具有資料結構,該網路裝置包括通訊模組、判斷模組、存儲模組、查詢模組、替換模組、及處理器。通訊模組接收管理伺服器發送的遠端程序呼叫命令,並根據遠端程序呼叫命令為資料模型中每一物件生成一與之相應的物件識別號,其中,遠端程序呼叫命令中包括複數參數及其參數值。判斷模組判斷網路裝置是否支援遠端程序呼叫協定,並在網路裝置支援遠端程序呼叫協定時判斷遠端程序呼叫命令中的所有參數的資料結構是否均為樹狀結構。存儲模組在所有參數的資料結構均為樹狀結構時依序存儲遠端程序呼叫命令中的所有參數及其參數值。查詢模組根據每一參數的參數值在資料模型中查詢與其相應的物件識別號。替換模組將存儲模組中的所有參數分別替換為相應的物件識別號。設定模組將遠端程序呼叫命令的所有參數分別替換為存儲模組中的物件識別號,其中,判斷模組還用於判斷替換後的遠端程序呼叫命令的語法是否正確,查詢模組還用於在替換後的遠端程序呼叫命令的語法正確時根據替換後的遠端程序呼叫命令中的物件識別號找出相應的物件。處理器根據查詢模組所找出的相應的物件的內容更改該網路裝置的參數設定。The network device in the embodiment of the present invention communicates with the management server, and changes the parameter setting of the network device according to the remote program call command of the management server. The network device includes a data model, and the data model includes a plurality of objects, and the plurality of objects The object is a set of parameters for implementing the plural function, and each parameter corresponds to a parameter value, each parameter has a data structure, and the network device includes a communication module, a judgment module, a storage module, a query module, and a replacement module. And processor. The communication module receives the remote program call command sent by the management server, and generates an object identification number corresponding to each object in the data model according to the remote program call command, wherein the remote program call command includes a plurality of parameters. And its parameter values. The determining module determines whether the network device supports the remote program call agreement, and determines whether the data structure of all parameters in the remote program call command is a tree structure when the network device supports the remote program call agreement. The storage module sequentially stores all parameters and their parameter values in the remote program call command when the data structure of all parameters is a tree structure. The query module queries the data model for its corresponding object identification number according to the parameter value of each parameter. The replacement module replaces all parameters in the storage module with the corresponding object identification numbers. The setting module replaces all parameters of the remote program call command with the object identification number in the storage module, wherein the determining module is further configured to determine whether the syntax of the replaced remote program call command is correct, and the query module further When the syntax of the replaced remote program call command is correct, the corresponding object is found according to the object identification number in the replaced remote program call command. The processor changes the parameter settings of the network device according to the content of the corresponding object found by the query module.

本發明實施方式中的更改網路裝置的參數設定的方法,用於根據管理伺服器的遠端程序呼叫命令更改該網路裝置的參數設定,以簡化管理伺服器管理網路裝置的流程,其中,網路裝置包括存儲模組與資料模型,資料模型中包括複數物件,是實現複數功能的參數的集合,且每一參數對應一參數值,每一參數具有資料結構,該更改網路裝置參數設定的方法包括:接收管理伺服器發送的遠端程序呼叫命令,並根據遠端程序呼叫命令為資料模型中每一物件生成一與之相應的物件識別號,其中遠端程序呼叫命令中包括複數參數及其參數值;判斷網路裝置是否支援遠端程序呼叫協定;若網路裝置支援遠端程序呼叫協定,則判斷遠端程序呼叫命令中的所有參數的資料結構是否均為樹狀結構;若遠端程序呼叫命令中的所有參數的資料結構均為樹狀結構,則將遠端程序呼叫命令中的所有參數及其參數值依序存入存儲模組;根據每一參數的參數值在資料模型中查詢與其相應的物件識別號,並將存儲模組中的所有參數分別替換為相應的物件識別號;將遠端程序呼叫命令的所有參數分別替換為存儲模組中的物件識別號;判斷替換後的遠端程序呼叫命令的語法是否正確;若替換後的遠端程序呼叫命令的語法正確,則根據替換後的遠端程序呼叫命令中的物件識別號在資料模型中找出相應的物件;及根據相應的物件的內容對網路裝置進行參數設定。The method for changing the parameter setting of the network device in the embodiment of the present invention is used to change the parameter setting of the network device according to the remote program call command of the management server, so as to simplify the process of managing the server management network device, wherein The network device includes a storage module and a data model. The data model includes a plurality of objects, and is a set of parameters for implementing a complex function, and each parameter corresponds to a parameter value, each parameter has a data structure, and the network device parameter is changed. The setting method comprises: receiving a remote program call command sent by the management server, and generating an object identification number corresponding to each object in the data model according to the remote program call command, wherein the remote program call command includes the plural number The parameter and the parameter value thereof; determining whether the network device supports the remote program call protocol; if the network device supports the remote program call agreement, determining whether the data structure of all parameters in the remote program call command is a tree structure; If the data structure of all the parameters in the remote program call command is a tree structure, the remote path will be All parameters in the call command and their parameter values are sequentially stored in the storage module; the object identification number corresponding to the corresponding object is queried in the data model according to the parameter value of each parameter, and all the parameters in the storage module are replaced respectively. Object identification number; replace all parameters of the remote program call command with the object identification number in the storage module; determine whether the syntax of the replaced remote program call command is correct; if the replaced remote program calls the command If the grammar is correct, the corresponding object is found in the data model according to the object identification number in the replaced remote program call command; and the network device is parameterized according to the content of the corresponding object.

藉由以下對具體實施方式詳細的描述並結合附圖,將可輕易的瞭解上述內容及此項發明之技術效果。The above and the technical effects of the invention can be easily understood from the following detailed description of the embodiments and the accompanying drawings.

請參閱圖3,所示為本發明網路裝置40一實施方式的模組圖。在本實施方式中,網路裝置40適用於圖1所示的網路架構,即扮演圖1中用戶終端30的角色。網路裝置40包括資料模型,每一資料模型包括複數物件,該等物件是實現複數功能的參數的集合,且每一參數對應一相應的參數值並具有特定資料結構。管理伺服器10藉由網路20管理本實施方式中的網路裝置40。Referring to FIG. 3, a block diagram of an embodiment of a network device 40 of the present invention is shown. In the present embodiment, the network device 40 is adapted to the network architecture shown in FIG. 1, that is, to play the role of the user terminal 30 in FIG. The network device 40 includes a data model, each data model including a plurality of objects, the objects being a set of parameters implementing a complex function, and each parameter corresponding to a corresponding parameter value and having a specific data structure. The management server 10 manages the network device 40 in the present embodiment by the network 20.

在本實施方式中,網路裝置40包括建立模組402、通訊模組404、判斷模組406、查詢模組408、替換模組410、設定模組412、存儲模組414及處理器416。處理器416用於執行該建立模組402、通訊模組404、判斷模組406、查詢模組408、替換模組410及設定模組412。In the present embodiment, the network device 40 includes a setup module 402, a communication module 404, a determination module 406, an inquiry module 408, a replacement module 410, a setting module 412, a storage module 414, and a processor 416. The processor 416 is configured to execute the setup module 402, the communication module 404, the determination module 406, the query module 408, the replacement module 410, and the setting module 412.

建立模組402用於建立網路裝置40與管理伺服器10的網路連接與安全機制。在本實施方式中,建立模組402首先建立網路裝置40與管理伺服器10之間的傳輸控制協定(Transport Control Protocol,TCP)連接,然後建立網路裝置40與管理伺服器10之間的安全機制,之後再建立網路裝置40與管理伺服器10之間的用戶終端設備廣域網管理協定(CPE WAN Management Protocol, CWMP)連接。The setup module 402 is used to establish a network connection and security mechanism between the network device 40 and the management server 10. In the present embodiment, the setup module 402 first establishes a Transport Control Protocol (TCP) connection between the network device 40 and the management server 10, and then establishes a relationship between the network device 40 and the management server 10. The security mechanism is followed by establishing a CPE WAN Management Protocol (CWMP) connection between the network device 40 and the management server 10.

在本實施方式中,管理伺服器10需要更改一些網路裝置40的參數來為網路裝置40提供新服務時,會發送一遠端程序呼叫(Remote Procedure Call, RPC)命令至網路裝置40,其中,RPC命令中包括複數參數。In the present embodiment, when the management server 10 needs to change the parameters of some network devices 40 to provide a new service to the network device 40, a remote procedure call (RPC) command is sent to the network device 40. Where the RPC command includes a plural parameter.

通訊模組404用於接收管理伺服器10發送的RPC命令,並根據該RPC命令為網路裝置40中資料模型中每一物件生成一與之相應的物件識別號。在本實施方式中,資料模型中包括複數物件,每一物件是能實現某一功能的參數的集合,如虛擬區域網(VLAN)功能,且每一物件對應一物件識別號,用於區別每一物件,每一物件包括複數參數,且每一參數對應一參數值,參數包括埠號(Port Number)、埠使能(Port Enable)、埠狀態(Port Status)等。在本實施方式中,該物件為事例(Instance)。The communication module 404 is configured to receive an RPC command sent by the management server 10, and generate an object identification number corresponding to each object in the data model in the network device 40 according to the RPC command. In this embodiment, the data model includes a plurality of objects, each of which is a set of parameters that can implement a certain function, such as a virtual area network (VLAN) function, and each object corresponds to an object identification number, which is used to distinguish each An object, each object including a plurality of parameters, and each parameter corresponds to a parameter value, the parameter includes a port number, a port enable, a port status, and the like. In the present embodiment, the object is an Instance.

判斷模組406用於判斷網路裝置40是否支援RPC協定。在本實施方式中,判斷模組406在網路裝置40支援RPC協定時還判斷RPC命令中的所有參數的資料結構是否均為樹狀結構。在本實施方式中,樹狀結構的具體體現形式為“{”及“}”,因此,判斷模組406是藉由判斷參數中是否包括“{”及“}”來判斷參數的資料結構是否樹狀結構。The determining module 406 is configured to determine whether the network device 40 supports the RPC protocol. In the present embodiment, the determination module 406 also determines whether the data structure of all the parameters in the RPC command is a tree structure when the network device 40 supports the RPC protocol. In the present embodiment, the specific embodiment of the tree structure is “{” and “}”. Therefore, the determination module 406 determines whether the data structure of the parameter is determined by determining whether the parameter includes “{” and “}”. Tree.

存儲模組414用於在所有參數的資料結構均為樹狀結構時依序存儲RPC命令中的所有參數及其參數值。在本實施方式中,存儲模組414中包括指標,該指標最初指向第一個參數。The storage module 414 is configured to sequentially store all parameters and their parameter values in the RPC command when the data structure of all parameters is a tree structure. In the present embodiment, the storage module 414 includes an indicator that initially points to the first parameter.

查詢模組408用於根據每一參數的參數值查詢與其相應的物件的物件識別號(Object ID),如事例識別號(Instance ID)。在本實施方式中,查詢模組408將參數的參數值與資料模型中的參數的參數值進行匹配,若查詢模組408匹配成功,則查看該參數所在的物件,且該物件識別號為該參數對應的物件識別號。替換模組410用於根據查詢模組408的查詢結果將存儲模組414中的所有參數分別替換為相應的物件識別號。在本實施方式中,替換模組410替換完第一個參數後,將指標指向下一個參數,如此類推,直至所有參數均被替換完畢。The query module 408 is configured to query an object ID (Object ID) of the corresponding object according to the parameter value of each parameter, such as an instance ID. In this embodiment, the query module 408 matches the parameter value of the parameter with the parameter value of the parameter in the data model. If the query module 408 matches successfully, the object in which the parameter is located is viewed, and the object identification number is The object identification number corresponding to the parameter. The replacement module 410 is configured to replace all the parameters in the storage module 414 with the corresponding object identification numbers according to the query result of the query module 408. In this embodiment, after replacing the first parameter, the replacement module 410 points the indicator to the next parameter, and so on, until all parameters are replaced.

設定模組412將RPC命令的所有參數分別替換為存儲模組414中的物件識別號。在本實施方式中,判斷模組406還根據TR-069的標準判斷替換後的RPC命令的語法是否正確,查詢模組408還在替換後的RPC命令的語法正確時根據替換後的RPC命令中的物件識別號找出相應的物件。The setting module 412 replaces all parameters of the RPC command with the object identification numbers in the storage module 414, respectively. In this embodiment, the determining module 406 further determines whether the syntax of the replaced RPC command is correct according to the standard of the TR-069, and the query module 408 further determines the syntax of the replaced RPC command according to the replaced RPC command. The object identification number finds the corresponding object.

處理器416用於根據查詢模組408所找出的相應的物件的內容對網路裝置40進行參數設定,以方便該管理伺服器10為網路裝置40提供新服務。The processor 416 is configured to parameterize the network device 40 according to the content of the corresponding object found by the query module 408 to facilitate the management server 10 to provide a new service to the network device 40.

本發明實施方式中的網路裝置40藉由將物件識別號替換RPC命令中的參數,以便在網路裝置40的資料模型中快速找到相應的物件,並執行相應的物件來更改其參數設定,降低了管理伺服器10對網路裝置40的管理的複雜度。The network device 40 in the embodiment of the present invention replaces the parameter in the RPC command by the object identification number, so as to quickly find the corresponding object in the data model of the network device 40, and execute the corresponding object to change its parameter setting. The complexity of managing the network device 40 by the management server 10 is reduced.

請參閱圖4,所示為本發明網路裝置40更改其參數設定的方法一實施方式的流程圖。該方法用於圖1所示的網路架構中。在本實施方式中,當管理伺服器10需要更改網路裝置40的某些參數來為網路裝置40提供新服務時,則網路裝置40執行更改其參數設定的方法。Referring to FIG. 4, a flow chart of an embodiment of a method for changing the parameter setting of the network device 40 of the present invention is shown. This method is used in the network architecture shown in FIG. In the present embodiment, when the management server 10 needs to change certain parameters of the network device 40 to provide new services to the network device 40, the network device 40 performs a method of changing its parameter settings.

在步驟S400,建立模組402建立網路裝置40與管理伺服器10的網路連接與建立安全機制。在本實施方式中,建立模組402首先建立網路裝置40與管理伺服器10之間的傳輸控制協定(TCP)連接,然後建立網路裝置40與管理伺服器10之間的安全機制,之後再建立網路裝置40與管理伺服器10之間的CPE廣域網管理協定連接。In step S400, the setup module 402 establishes a network connection and establishes a security mechanism between the network device 40 and the management server 10. In the present embodiment, the setup module 402 first establishes a Transmission Control Protocol (TCP) connection between the network device 40 and the management server 10, and then establishes a security mechanism between the network device 40 and the management server 10, after which A CPE WAN management protocol connection between the network device 40 and the management server 10 is established.

在步驟S402,通訊模組404接收管理伺服器10發送的RPC命令。在本實施方式中,RPC命令中包括複數參數及其對應的參數值,網路裝置40中的資料模型中的物件根據RPC命令自動生成複數物件及與之相應的識別號。在本實施方式中,資料模型中包括複數物件,每一物件可以為事例,是能實現某一功能的參數的集合,如虛擬區域網(VLAN)功能,且每一物件對應一物件識別號,用於區別每一物件,每一物件包括複數參數,且每一參數對應一參數值,參數包括埠號、埠使能、埠狀態等。In step S402, the communication module 404 receives the RPC command sent by the management server 10. In this embodiment, the RPC command includes a plurality of parameters and corresponding parameter values, and the objects in the data model in the network device 40 automatically generate a plurality of objects and corresponding identification numbers according to the RPC command. In this embodiment, the data model includes a plurality of objects, each of which may be an instance, a set of parameters that can implement a certain function, such as a virtual area network (VLAN) function, and each object corresponds to an object identification number, It is used to distinguish each object, each object includes a plurality of parameters, and each parameter corresponds to a parameter value, and the parameter includes an apostrophe, a 埠 enable, a 埠 state, and the like.

在步驟S404,判斷模組406判斷網路裝置40是否支援RPC協定。In step S404, the determination module 406 determines whether the network device 40 supports the RPC protocol.

若網路裝置40支援RPC協定,則在步驟S406,判斷模組406判斷RPC命令中的所有參數的資料結構是否均為樹狀結構。在本實施方式中,樹狀結構的具體的體現形式為“{”及“}”,因此,判斷模組406是逐一藉由判斷參數中是否包括“{”及“}”來判斷參數的資料結構是否樹狀結構。If the network device 40 supports the RPC protocol, then in step S406, the determination module 406 determines whether the data structure of all parameters in the RPC command is a tree structure. In the present embodiment, the specific embodiment of the tree structure is "{" and "}". Therefore, the judging module 406 judges the parameter data one by one by judging whether the parameter includes "{" and "}". Whether the structure is a tree structure.

若該RPC命令中的所有參數的資料結構為樹狀結構,則在步驟S408,存儲模組414將依序存儲RPC命令中的所有參數及其參數值。在本實施方式中,存儲模組414中包括一指標,該指標最初指向第一個參數。If the data structure of all the parameters in the RPC command is a tree structure, in step S408, the storage module 414 stores all the parameters and their parameter values in the RPC command in sequence. In the present embodiment, the storage module 414 includes an indicator that initially points to the first parameter.

在步驟S410,查詢模組408根據每一參數的參數值在資料模型中查詢對應的物件識別號。在本實施方式中,查詢模組408將參數的參數值與資料模型中的參數的參數值進行匹配,若查詢模組408匹配成功,則查看該參數所在的物件,且該物件的所對應於的物件識別號為該參數對應的物件識別號。In step S410, the query module 408 queries the data model for the corresponding object identification number according to the parameter value of each parameter. In this embodiment, the query module 408 matches the parameter value of the parameter with the parameter value of the parameter in the data model. If the query module 408 matches successfully, the object in which the parameter is located is viewed, and the object corresponds to The object identification number is the object identification number corresponding to the parameter.

在步驟S412,替換模組410將存儲模組414中的參數替換為查詢到的物件識別號。在步驟S414,判斷模組406判斷存儲模組414中的參數是否替換完畢。在本實施方式中,判斷模組406藉由指標指向的位置的內容來判斷存儲模組414中的參數是否替換完畢,若指標指向的位置的內容為數字,則表示替換完畢,若指標指向的位置的內容中包括“{”或“}”,則表示沒有替換完畢。In step S412, the replacement module 410 replaces the parameter in the storage module 414 with the queried object identification number. In step S414, the determination module 406 determines whether the parameters in the storage module 414 are replaced. In the present embodiment, the determination module 406 determines whether the parameter in the storage module 414 is replaced by the content of the location pointed by the indicator. If the content of the location pointed by the indicator is a number, the replacement is completed, if the indicator points to If the content of the location includes "{" or "}", it means that no replacement has been completed.

若有參數沒有替換完畢,則返回步驟S410,繼續尋找沒有替換完畢的參數相應的物件識別號。If the parameter is not replaced, the process returns to step S410 to continue searching for the object identification number corresponding to the parameter that has not been replaced.

若所有參數替換完畢,則在步驟S416,設定模組412將RPC命令的所有參數分別替換為存儲模組414中的物件識別號。If all the parameters are replaced, then in step S416, the setting module 412 replaces all the parameters of the RPC command with the object identification numbers in the storage module 414.

在步驟S418,判斷模組406判斷替換後的RPC命令的語法是否正確。在本實施方式中,判斷模組406根據TR-069的標準判斷設定後的RPC命令的語法是否正確。若設定後的RPC命令的語法正確,則在步驟S420,查詢模組408根據設定後的RPC命令中的物件識別號在所述資料模型中找出相應的物件。In step S418, the determination module 406 determines whether the syntax of the replaced RPC command is correct. In the present embodiment, the determination module 406 determines whether the syntax of the set RPC command is correct according to the TR-069 standard. If the syntax of the set RPC command is correct, then in step S420, the query module 408 finds the corresponding object in the data model according to the object identification number in the set RPC command.

在步驟S422,處理器416根據所述相應物件的內容對網路裝置40進行參數設定,以方便所述管理伺服器10為網路裝置40提供新服務。At step S422, the processor 416 performs parameter setting on the network device 40 according to the content of the corresponding object to facilitate the management server 10 to provide a new service to the network device 40.

在本實施方式中,若網路裝置40不支援RPC協定,則在步驟S424,通訊模組404丟棄所述RPC命令。In the present embodiment, if the network device 40 does not support the RPC protocol, the communication module 404 discards the RPC command in step S424.

若RPC命令中的所有參數中有一個參數的資料結構不為樹狀結構,則在步驟S424,通訊模組404丟棄所述RPC命令。If the data structure of one of the parameters in the RPC command is not a tree structure, the communication module 404 discards the RPC command in step S424.

若設定後的RPC命令的語法不正確,則在步驟S424,通訊模組404丟棄所述RPC命令。If the syntax of the set RPC command is incorrect, then in step S424, the communication module 404 discards the RPC command.

請參閱圖5,所示為本發明網路裝置40採用圖4的方法查詢物件識別號的一實施例。在本實施方式中,IGD為網路裝置40中的一資料模型,L2B為物件,{i}為L2B的物件識別號,RPC命令中的每一參數對應一參數值,如虛擬區域網(VLAN)這一參數會對應一虛擬區域網識別號(VLAN ID)。當網路裝置40接收到RPC命令時,則根據VLAN ID的值在資料模型IGD中尋找與之匹配的參數值;當找到與之匹配的參數值時,則記錄包括VLAN這個參數的物件識別號{i}。在本發明其他實施方式中,網路裝置40可以對複數參數同時進行查詢。由此可見,網路裝置40根據參數的參數值尋找與參數匹配的物件識別號的過程非常簡單,且不會佔用太多的系統資源。Referring to FIG. 5, an embodiment of the network device 40 of the present invention for querying an object identification number using the method of FIG. 4 is shown. In the present embodiment, the IGD is a data model in the network device 40, L2B is an object, {i} is an object identification number of L2B, and each parameter in the RPC command corresponds to a parameter value, such as a virtual area network (VLAN). This parameter corresponds to a virtual area network identification number (VLAN ID). When the network device 40 receives the RPC command, it searches for the matching parameter value in the data model IGD according to the value of the VLAN ID; when the matching parameter value is found, the object identification number including the parameter of the VLAN is recorded. {i}. In other embodiments of the invention, network device 40 may simultaneously query a plurality of parameters. It can be seen that the process of the network device 40 finding the object identification number matching the parameter according to the parameter value of the parameter is very simple, and does not occupy too much system resources.

請參閱圖6,所示本發明管理伺服器10管理網路裝置40一實施方式的流程圖。在本實施方式中,管理伺服器10首先與網路裝置40建立TCP連接並建立安全機制,當管理伺服器10需要修改某些參數以給網路裝置40提供新服務,則執行以下步驟:(1)管理伺服器10發送RPC命令到網路裝置40,其中RPC命令中包括複數參數及參數值;(2)網路裝置40接收RPC命令,並根據RPC命令中的參數尋找相應的物件識別號,並將參數替換為物件識別號,當替換後的RPC命令的語法正確時,則根據相應的物件的內容更改網路裝置40的參數設定;(3)網路裝置40設定完畢後,發送設定成功的報文到管理伺服器10。由此可知,管理伺服器10管理網路裝置40的流程大大減少了,且不需要發送複數RPC命令。Referring to FIG. 6, a flowchart of an embodiment of the management server 10 of the present invention managing the network device 40 is shown. In the present embodiment, the management server 10 first establishes a TCP connection with the network device 40 and establishes a security mechanism. When the management server 10 needs to modify certain parameters to provide a new service to the network device 40, the following steps are performed: 1) The management server 10 sends an RPC command to the network device 40, wherein the RPC command includes a plurality of parameters and parameter values; (2) the network device 40 receives the RPC command, and searches for a corresponding object identification number according to the parameters in the RPC command. And replacing the parameter with the object identification number. When the syntax of the replaced RPC command is correct, the parameter setting of the network device 40 is changed according to the content of the corresponding object; (3) after the network device 40 is set, the setting is sent. Successful message to the management server 10. It can be seen that the flow of the management server 10 to manage the network device 40 is greatly reduced, and it is not necessary to transmit a plurality of RPC commands.

本發明實施方式中的網路裝置40及更改其參數設定的方法藉由將RPC命令中的參數替換為物件識別號,以便在網路裝置40的資料模型中快速找到物件,並執行物件來更改網路裝置40的設定,即更改物件或參數。這樣管理伺服器10管理網路裝置40的流程得到了優化,從而提高了管理的效能。The network device 40 and the method for changing its parameter setting in the embodiment of the present invention change the parameter in the RPC command with the object identification number to quickly find the object in the data model of the network device 40, and execute the object to change. The setting of the network device 40 changes the object or parameter. Thus, the flow of the management server 10 managing the network device 40 is optimized, thereby improving the management efficiency.

綜上所述,本發明符合發明專利要件,爰依法提出專利申請。惟,以上所述者僅為本發明之較佳實施例,舉凡熟悉本案技藝之人士,在爰依本案發明精神所作之等效修飾或變化,皆應包含於以下之申請專利範圍內。In summary, the present invention complies with the requirements of the invention patent and submits a patent application according to law. The above description is only the preferred embodiment of the present invention, and equivalent modifications or variations made by those skilled in the art of the present invention should be included in the following claims.

10‧‧‧管理伺服器10‧‧‧Management Server

20‧‧‧網路20‧‧‧Network

22‧‧‧局端閘道器22‧‧‧Central end gateway

30‧‧‧用戶終端30‧‧‧User terminal

40‧‧‧網路裝置40‧‧‧Network devices

402‧‧‧建立模組402‧‧‧Create module

404‧‧‧通訊模組404‧‧‧Communication Module

406‧‧‧判斷模組406‧‧‧Judgement module

408‧‧‧查詢模組408‧‧‧Query Module

410‧‧‧替換模組410‧‧‧Replacement module

412‧‧‧設定模組412‧‧‧Setting module

414‧‧‧存儲模組414‧‧‧Memory Module

416‧‧‧處理器416‧‧‧ processor

圖1所示為現有技術中管理伺服器管理用戶終端的架構圖。FIG. 1 is a structural diagram of a management server management user terminal in the prior art.

圖2所示為現有技術中管理伺服器管理用戶終端的流程圖。2 is a flow chart showing a management server management user terminal in the prior art.

圖3所示為本發明網路裝置一實施方式的模組圖。3 is a block diagram of an embodiment of a network device of the present invention.

圖4所示為本發明更改網路裝置參數設定的方法一實施方式的流程圖。FIG. 4 is a flow chart showing an embodiment of a method for changing a parameter setting of a network device according to the present invention.

圖5所示為本發明網路裝置採用圖4的方法查詢物件識別號的一實施例。FIG. 5 shows an embodiment of the network device of the present invention for querying an object identification number using the method of FIG. 4.

圖6所示為本發明管理伺服器管理網路裝置一實施方式的流程圖。FIG. 6 is a flow chart showing an embodiment of a management server management network device according to the present invention.

40‧‧‧網路裝置 40‧‧‧Network devices

402‧‧‧建立模組 402‧‧‧Create module

404‧‧‧通訊模組 404‧‧‧Communication Module

406‧‧‧判斷模組 406‧‧‧Judgement module

408‧‧‧查詢模組 408‧‧‧Query Module

410‧‧‧替換模組 410‧‧‧Replacement module

412‧‧‧設定模組 412‧‧‧Setting module

414‧‧‧存儲模組 414‧‧‧Memory Module

416‧‧‧處理器 416‧‧‧ processor

Claims (8)

一種網路裝置,與管理伺服器通訊,該網路裝置包括資料模型,該資料模型中包括複數物件,該等物件是實現複數功能的參數的集合,該等物件中的每一參數對應一參數值,每一參數具有資料結構,其中該網路裝置還包括:
通訊模組,用於接收該管理伺服器發送的遠端程序呼叫命令,並根據該遠端程序呼叫命令為該資料模型中每一物件生成一個與之相應的物件識別號,其中,該遠端程序呼叫命令中包括複數參數及其參數值;
判斷模組,用於判斷該網路裝置是否支援遠端程序呼叫協定,並在該網路裝置支援遠端程序呼叫協定時判斷該遠端程序呼叫命令中的所有參數的資料結構是否均為樹狀結構;
存儲模組,用於在該遠端程序呼叫命令中的所有參數的資料結構均為樹狀結構時依序存儲該遠端程序呼叫命令中的所有參數及其參數值;
查詢模組,用於根據每一個參數的參數值在資料模型中查詢與其相應的物件識別號;
替換模組,用於將該存儲模組中的所有參數分別替換為相應的物件識別號;
設定模組,用於將該遠端程序呼叫命令的所有參數分別替換為該存儲模組中的物件識別號,其中,該判斷模組還用於判斷該替換後的遠端程序呼叫命令的語法是否正確,該查詢模組還用於在該替換後的遠端程序呼叫命令的語法正確時根據該替換後的遠端程序呼叫命令中的物件識別號在該資料模型中找出相應的物件;及
處理器,用於根據該查詢模組所找出的相應的物件的內容更改該網路裝置的參數設定。
A network device, in communication with a management server, the network device comprising a data model, the data model including a plurality of objects, the objects being a set of parameters for implementing a complex function, each parameter of the objects corresponding to a parameter Value, each parameter has a data structure, wherein the network device further includes:
a communication module, configured to receive a remote program call command sent by the management server, and generate an object identification number corresponding to each object in the data model according to the remote program call command, wherein the remote end The program call command includes a plurality of parameters and their parameter values;
The determining module is configured to determine whether the network device supports the remote program call agreement, and determine whether the data structure of all parameters in the remote program call command is a tree when the network device supports the remote program call agreement Structure
a storage module, configured to sequentially store all parameters and parameter values of the remote program call command when the data structure of all parameters in the remote program call command is a tree structure;
The query module is configured to query the data model with the corresponding object identification number according to the parameter value of each parameter;
a replacement module, configured to replace all parameters in the storage module with corresponding object identification numbers;
a setting module, configured to replace all parameters of the remote program call command with an object identification number in the storage module, wherein the determining module is further configured to determine a syntax of the replaced remote program call command If the correctness is correct, the query module is further configured to find a corresponding object in the data model according to the object identification number in the replaced remote program call command when the syntax of the replaced remote program call command is correct; And a processor, configured to change a parameter setting of the network device according to the content of the corresponding object found by the query module.
如申請專利範圍第1項所述之網路裝置,其中該處理器還用於在該網路裝置不支援遠端程序呼叫協定時丟棄該遠端程序呼叫命令。The network device of claim 1, wherein the processor is further configured to discard the remote program call command when the network device does not support the far-end program call agreement. 如申請專利範圍第1項所述之網路裝置,其中該處理器還用於在所有參數中有一個參數的資料結構不為樹狀結構時丟棄該遠端程序呼叫命令。The network device of claim 1, wherein the processor is further configured to discard the remote program call command when the data structure of one parameter of all parameters is not a tree structure. 如申請專利範圍第1項所述之網路裝置,其中該處理器還用於在該替換後的遠端程序呼叫命令的語法錯誤時丟棄該遠端程序呼叫命令。The network device of claim 1, wherein the processor is further configured to discard the remote program call command when the syntax of the replaced remote program call command is incorrect. 一種更改網路裝置參數設定的方法,其中,該網路裝置包括存儲模組與資料模型,且與管理伺服器通訊,該資料模型中包括複數物件,該等物件是實現複數功能的參數的集合,且每一參數對應一參數值,每一個參數具有資料結構,其中該更改網路裝置參數設定的方法包括以下步驟:
接收該管理伺服器發送的遠端程序呼叫命令,並根據該遠端程序呼叫命令為該資料模型中每一物件生成一個與之相應的物件識別號,其中該遠端程序呼叫命令中包括複數參數及其參數值;
判斷該網路裝置是否支援遠端程序呼叫協定;
若該網路裝置支援遠端程序呼叫協定,則判斷該遠端程序呼叫命令中的所有參數的資料結構是否均為樹狀結構;
若該遠端程序呼叫命令中的所有參數的資料結構均為樹狀結構,則將該遠端程序呼叫命令中的所有參數及其參數值依序存入該存儲模組;
根據每一個參數的參數值在該資料模型中查詢與其相應的物件識別號,並將該存儲模組中的所有參數分別替換為相應的物件識別號;
將該遠端程序呼叫命令的所有參數分別替換為該存儲模組中的物件識別號;
判斷該替換後的遠端程序呼叫命令的語法是否正確;
若該替換後的遠端程序呼叫命令的語法正確,則根據替換後的遠端程序呼叫命令中的物件識別號在該資料模型中找出相應的物件;及
根據相應的物件的內容更改該網路裝置的參數設定。
A method for changing a parameter setting of a network device, wherein the network device comprises a storage module and a data model, and communicates with a management server, wherein the data model includes a plurality of objects, the objects being a set of parameters for implementing a plurality of functions. And each parameter corresponds to a parameter value, each parameter has a data structure, wherein the method for changing the parameter setting of the network device comprises the following steps:
Receiving a remote program call command sent by the management server, and generating an object identification number corresponding to each object in the data model according to the remote program call command, wherein the remote program call command includes a plurality of parameters And its parameter values;
Determining whether the network device supports a remote program call agreement;
If the network device supports the remote program call agreement, it is determined whether the data structure of all parameters in the remote program call command is a tree structure;
If the data structure of all parameters in the remote program call command is a tree structure, all the parameters in the remote program call command and their parameter values are sequentially stored in the storage module;
Querying the corresponding object identification number in the data model according to the parameter value of each parameter, and replacing all the parameters in the storage module with the corresponding object identification numbers;
Replace all parameters of the remote program call command with the object identification number in the storage module;
Determining whether the syntax of the replaced remote program call command is correct;
If the syntax of the replaced remote program call command is correct, the corresponding object is found in the data model according to the object identification number in the replaced remote program call command; and the network is changed according to the content of the corresponding object. Parameter setting of the road device.
如申請專利範圍第5項所述之更改網路裝置參數設定的方法,還包括:若該網路裝置不支援遠端程序呼叫協定,則丟棄該遠端程序呼叫命令。The method for changing the parameter setting of the network device as described in claim 5, further comprising: discarding the remote program call command if the network device does not support the far-end program call agreement. 如申請專利範圍第5項所述之更改網路裝置參數設定的方法,還包括:若該遠端程序呼叫命令中的所有參數中有一個參數的資料結構不為樹狀結構,則丟棄該遠端程序呼叫命令。The method for changing the parameter setting of the network device as described in claim 5, further comprising: if the data structure of one of the parameters in the remote program call command is not a tree structure, discarding the far End program call command. 如申請專利範圍第5項所述之更改網路裝置參數設定的方法,還包括:若該設定後的遠端程序呼叫命令的語法錯誤,則丟棄該遠端程序呼叫命令。The method for changing the parameter setting of the network device as described in claim 5, further comprising: discarding the remote program call command if the syntax of the set remote program call command is incorrect.
TW99117777A 2010-06-02 2010-06-02 Networking device and method for reseting parameters thereof TWI439081B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW99117777A TWI439081B (en) 2010-06-02 2010-06-02 Networking device and method for reseting parameters thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW99117777A TWI439081B (en) 2010-06-02 2010-06-02 Networking device and method for reseting parameters thereof

Publications (2)

Publication Number Publication Date
TW201145906A TW201145906A (en) 2011-12-16
TWI439081B true TWI439081B (en) 2014-05-21

Family

ID=46766043

Family Applications (1)

Application Number Title Priority Date Filing Date
TW99117777A TWI439081B (en) 2010-06-02 2010-06-02 Networking device and method for reseting parameters thereof

Country Status (1)

Country Link
TW (1) TWI439081B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI488473B (en) 2013-01-02 2015-06-11 Ind Tech Res Inst Auto configuration server and management method for customer premises equipments thereof
TWI551088B (en) 2014-11-26 2016-09-21 財團法人工業技術研究院 Method for managing periodic packets

Also Published As

Publication number Publication date
TW201145906A (en) 2011-12-16

Similar Documents

Publication Publication Date Title
US10057382B2 (en) Intelligent “IoT gateway”
CN102938794B (en) ARP message forwarding method, switch and controller
CN103312573B (en) A kind of domestic network system equipment finds and recognition methods
CN111385173B (en) Message processing method and device, control plane equipment and computer storage medium
WO2012094898A1 (en) Virtual machine migration method, switch, virtual machine system
CN104184663B (en) Communication means and device based on software defined network and integrated identification network
RU2010136044A (en) WIRELESS RADIO CONTROL UNITS USING IDENTIFIERS
CN102315968B (en) Network configuration method in virtual machine environment
CN104426680A (en) Data transmission method, device and system
WO2015139359A1 (en) Wireless network maintenance method, device and system
US20150163139A1 (en) Forwarding Packet in Stacking System
CN105357142A (en) Method for designing network load balancer system based on ForCES
WO2016029345A1 (en) Network flow information statistics method and apparatus
CN106549873A (en) Communication means and system between a kind of isomery controller
CN104009894A (en) Method, system and device for automatic acquisition of service information in local area network
CN103517300A (en) Self-discovery method, device and system of distributed base station
WO2016044990A1 (en) Method and apparatus for determining network topology, and centralized network state information storage device
EP3588859A1 (en) Network device configuration versioning
WO2018041101A1 (en) Data query method and apparatus and data query processing method and apparatus
TWI439081B (en) Networking device and method for reseting parameters thereof
WO2017084642A1 (en) Method for counting bgp community attribute or extended community attribute flow value, and device
CN108696370B (en) A method, device and system for binding and unbinding a server and a service
WO2024108493A1 (en) Virtual and real combined dynamic traffic scheduling method and apparatus based on sdn and ndn
CN103001962B (en) Business support method and system
US8855015B2 (en) Techniques for generic pruning in a trill network

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees