CN112653754A - Broadband wireless network management system, method and storage medium based on TR069 protocol - Google Patents

Broadband wireless network management system, method and storage medium based on TR069 protocol Download PDF

Info

Publication number
CN112653754A
CN112653754A CN202011508236.8A CN202011508236A CN112653754A CN 112653754 A CN112653754 A CN 112653754A CN 202011508236 A CN202011508236 A CN 202011508236A CN 112653754 A CN112653754 A CN 112653754A
Authority
CN
China
Prior art keywords
node
terminal
message
httpserver
field
Prior art date
Legal status (The legal status 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 status listed.)
Withdrawn
Application number
CN202011508236.8A
Other languages
Chinese (zh)
Inventor
董志勇
史律
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing College of Information Technology
Original Assignee
Nanjing College of Information Technology
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 Nanjing College of Information Technology filed Critical Nanjing College of Information Technology
Priority to CN202011508236.8A priority Critical patent/CN112653754A/en
Publication of CN112653754A publication Critical patent/CN112653754A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a broadband wireless network management system, a broadband wireless network management method and a broadband wireless network management storage medium based on a TR069 protocol, wherein the system comprises an AP terminal, an HTTPServer node, an InfoServer node, a GetParamServer node, a SetParamServer node, a WebServer node and a Zookeeper node; the InfoServer node, the GetParamServer node, the SetParamServer node, the WebServer node and the HTTPServer node realize service registration and service discovery through the Zookeeper node. The invention can reduce the complexity of realizing the TR069 protocol, so that the system has good expandability and is suitable for a scene of managing large-scale AP terminals in the environment of a broadband wireless network.

Description

Broadband wireless network management system, method and storage medium based on TR069 protocol
Technical Field
The invention relates to the technical field of wireless networks, in particular to a broadband wireless network management system, a broadband wireless network management method and a broadband wireless network management storage medium based on a TR069 protocol.
Background
With the wide application of the broadband wireless Network wlan (wireless Local Area Network) technology, it is necessary to configure and manage a large number of AP (access point) terminals, and a traditional Network Management system based on snmp (simple Network Management protocol) is difficult to meet the Management requirements of large-scale AP terminal devices, and cannot support the high-speed development of the broadband wireless Network market.
At present, a TR069 protocol is proposed in the industry for management of network devices, the protocol defines a set of brand new network management architecture, provides messages such as Inform, GetParameterValues, SetParameterValues and the like, can efficiently configure and manage massive APs, and reduces the operation cost of a network management system. However, in the prior art, the complexity of implementing the TR069 protocol is high, so that the system is difficult to have good expandability, and is difficult to be applied to a scene of managing a large-scale AP terminal in a broadband wireless network environment.
Disclosure of Invention
The invention aims to overcome the defects in the prior art, provides a broadband wireless network management system, a broadband wireless network management method and a storage medium based on a TR069 protocol, reduces the complexity of realizing the TR069 protocol, enables the system to have good expandability and is suitable for a scene of managing large-scale AP terminals in a broadband wireless network environment.
In order to achieve the purpose, the invention is realized by adopting the following technical scheme:
in a first aspect, the invention provides a broadband wireless network management system based on a TR069 protocol, which comprises an AP terminal, an HTTPServer node, an InfoServer node, a GetParamServer node, a SetParamServer node, a WebServer node and a Zookeeper node;
HTTP connection is established between the AP terminal and the HTTPServer node, RPC connection is established between the HTTPServer node and the InfoServer node, the GetParam Server node and the SetParam Server node respectively, and WebSocket connection is established between the Web Server node and the InfoServer node, the GetParam Server node and the SetParam Server node respectively;
the InfoServer node, the GetParamServer node, the SetParamServer node, the WebServer node and the HTTP Server node realize service registration and service discovery through the Zookeeper node.
Further, the HTTPServer node is configured to parse an Inform message, a GetParameterValues message, and a SetParameterValues message of a TR069 protocol, and send the Inform message, the GetParameterValues message, and the SetParameterValues message to the InfoServer node, the getparameterserver node, and the setparameterserver node, respectively;
the InfoServer node is used for processing an Inform message, the GetParamServer node is used for processing a GetParameterValues message, and the SetParamServer node is used for processing a SetParameterValues message;
and the WebServer node is used for responding to an AP terminal operation command issued by a user.
Further, the TR069 protocol is established on the SOAP protocol based on XML, and the Inform message, the GetParameterValues message, and the SetParameterValues message are encapsulated by the SOAP protocol, respectively.
In a second aspect, the present invention provides a wireless network management method for the TR069 protocol-based broadband wireless network management system in the first aspect, including the following steps:
the HTTP Server node establishes HTTP connection with the AP terminal to acquire an Inform message, a GetParameterValues message and a SetParameterValues message of a TR069 protocol;
the HTTP Server node sends the Inform message, the GetParameterValues message and the SetParameterValues message to the InfoServer node, the GetParamServer node and the SetParamServer node respectively for message processing, so as to respond to triggering:
the InfoServer node sends an AP terminal ID on-line message to the WebServer node and displays the AP terminal ID on-line message on a page; the GetParamServer node sends the AP terminal read operation return value to a WebServer node, and the WebServer node analyzes the AP terminal read operation return value and displays the AP terminal read operation return value on a webpage; and the SetParamServer sends the AP terminal write operation return value to the WebServer node, and the WebServer node analyzes the AP terminal write operation return value and displays the AP terminal write operation return value on a webpage.
Further, the method for realizing the Inform message processing through the InfoServer node comprises the following steps:
s101) the AP terminal initiates an HTTP request to the HTTPServer node and establishes HTTP connection with the HTTPServer node;
s102) an AP terminal initiates an Inform Request to an HTTPServer, wherein the Inform Request consists of a < cwmp: Inform > field, the < cwmp: Inform > field comprises a terminal manufacturer and a terminal ID, the terminal ID is globally unique, and different terminals have different terminal IDs;
s103) the HTTPServer node receives the Inform Request, analyzes the (cwmp: Inform) field, obtains a terminal ID, and then creates a hash table H to record an HTTP Session context corresponding to the obtained terminal ID;
s104) the HTTPServer node initiates a service discovery request to the Zookeeper node to obtain the IP and port information of the InformServer node, then initiates RPC connection to the InformServer node, and sends the < cwmp: Inform > field to the InformServer node;
s105) the InformServer node receives the < cwmp: Inform > field, analyzes the terminal ID from the < cwmp: Inform > field, then creates a state table S and records that the terminal ID is 'on-line state';
s106) the InformServer node creates an Inform message operation response message, wherein the response message is < cwmp: InformResponse > field, and the InformServer node returns the response message field to the HTTPServer node;
s107) the HTTPServer node receives the < cwmp: Inform Response > field, encapsulates the field into an Inform Response message, and then sends the Inform Response message to the AP terminal;
s108) the InformServer node initiates a service discovery request to the Zookeeper node to obtain the IP and port information of the WebServer node, and then initiates a WebSocket request to the WebServer node to establish a bidirectional path;
s109) the InformServer node sends an AP terminal ID on-line message to the WebServer node, and the WebServer node displays the AP terminal ID on-line message on a page.
Further, the method for realizing the GetParameterValues message processing through the GetParamServer node comprises the following steps:
s201) the AP terminal initiates an HTTP request to the HTTPServer node and establishes HTTP connection with the HTTPServer node;
s202) the GetParamServer node initiates a service discovery request to the Zookeeper node to obtain the IP and port information of the WebServer node, and then initiates a WebSocket request to the WebServer node to establish a bidirectional path;
s203) the WebServer node issues an AP terminal reading operation request to the GetParamServer node;
s204) the GetParamServer node receives the AP terminal reading operation request and analyzes the AP terminal ID and the reading operation parameter list;
s205) the GetParamServer node initiates a service discovery request to the Zookeeper node to obtain the IP and port information of the InformServer node, then initiates RPC connection to the InformServer node, and queries whether the ID of the AP terminal is in an online state;
s206) the InformServer node inquires the state table S and returns the state information of the AP terminal to the GetParamServer node;
s207) if the AP terminal ID is in an online state, the GetParamServer node initiates a service discovery request to the Zookeeper node to obtain the IP and port information of the HTTPServer node, and then initiates RPC connection to the HTTPServer node;
s208) the GetParamServer node encapsulates the AP terminal ID and the read operation parameter list into a < cwmp: GetParameterValues > field and sends the < cwmp: GetParameterValues > field to the HTTPServer node;
s209) the HTTPServer node analyzes the received < cwmp: GetParameterValues > field, analyzes the ID of the AP terminal, and then queries the hash table H to obtain the HTTP Session context corresponding to the ID of the AP terminal;
s210) the HTTPServer node encapsulates the < cwmp: GetParameterValues > field into a < SOAP: Envelope > message of a SOAP protocol, and then sends the < SOAP: Envelope > message to an AP terminal corresponding to a terminal ID through an HTTP Session context;
s211) the AP terminal receives the < soap: Environment > message, reads the corresponding state of the AP terminal, generates a state list, packages the state list to a < cwmp: GetParameterValueResponse > field, packages the < cwmp: GetParameterValueResponse > field into the < soap: Environment > message, and finally returns the < soap: Environment > message to an HTTPServer node;
s212) the HTTPServer node receives the message of < soap: Envelope > and analyzes the field of < cwmp: GetParameterValueResponse > and returns the field to the GetParamServer node;
s213) the GetParamaServer node receives the < cwmp: GetParameterValueResponse > field, analyzes a parameter list and a corresponding state list, packages the parameter list and the corresponding state list into AP terminal read operation return values and sends the AP terminal read operation return values to the WebServer node through a WebSocket channel;
s214) the WebServer node analyzes the AP terminal reading operation return value and displays the obtained parameter list and the corresponding state list on a webpage.
Further, the method for realizing the SetParameterValues message processing through the SetParamServer node comprises the following steps:
s301) the AP terminal initiates an HTTP request to the HTTPServer node and establishes HTTP connection with the HTTPServer node;
s302) the SetParamServer node initiates a service discovery request to the Zookeeper node to obtain the IP and port information of the WebServer node, and then initiates a WebSocket request to the WebServer node to establish a bidirectional path;
s303) the WebServer node issues an AP terminal write operation request to the SetParamServer node;
s304) the SetParamServer node receives the AP terminal write operation request and analyzes the AP terminal ID and the write operation parameter list;
s305) the SetParamserver node initiates a service discovery request to the Zookeeper node to obtain the IP and port information of the InformServer node, then initiates RPC connection to the InformServer node to inquire whether the AP terminal ID is in an online state;
s306) the InformServer queries the state table S and returns the state information of the AP terminal to the SetParamServer node;
s307) if the AP terminal ID is in an online state, the SetParamServer node initiates a service discovery request to the Zookeeper node to obtain the IP and port information of the HTTPServer node, and then initiates RPC connection to the HTTPServer node;
s308) the SetParamserver node packages the AP terminal ID and the write operation parameter list to a < cwmp: SetParameterValues > field and sends the < cwmp: SetParameterValues > field to the HTTPServer node;
s309) the HTTPServer node analyzes the received < cwmp: SetParameterValues > field, analyzes the AP terminal ID, and then queries the hash table H to obtain the HTTP Session context corresponding to the AP terminal ID;
s310) the HTTPServer node encapsulates the < cwmp: SetParameterValues > field into the < soap: Enterprise > message, and then sends the < soap: Enterprise > message to the AP terminal corresponding to the terminal ID through the HTTP Session context;
s311) the AP terminal corresponding to the terminal ID receives the < soap: Envelope > message, analyzes the < cwmp: SetParameterValues > field, performs write operation on the AP terminal, encapsulates the write operation result into the < cwmp: SetParameterValuesResponse > field, then encapsulates the < cwmp: SetParameterValuesResponse > field into the < soap: Envelope > message, and finally returns the < soap: Envelope > message to the HTTPServer node;
s312) the HTTPServer node receives the message of < soap: Envelope >, analyzes the field of < cwmp: SetParameterValuesResponse >, and returns the field of < cwmp: SetParameterValuesResponse > to the SetParamServer node;
s313) the SetParamserver node receives the < cwmp: SetParameterValueResponse > field, analyzes the write operation result, packages the write operation result into an AP terminal write operation return value, and sends the AP terminal write operation return value to the WebServer node through a WebSocket channel;
s314) the WebServer node analyzes the write operation return value of the AP terminal and displays the obtained write operation result on a webpage.
Further, the TR069 protocol is established on the SOAP protocol based on XML, and the Inform message, the GetParameterValues message, and the SetParameterValues message are encapsulated by the SOAP protocol, respectively.
In a third aspect, the present invention provides a wireless network management system, including a processor and a storage medium;
the storage medium is used for storing instructions;
the processor is configured to operate in accordance with the instructions to perform the steps of the method according to any one of the second aspects.
In a fourth aspect, the invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of any one of the second aspects.
Compared with the prior art, the invention has the following beneficial effects:
the invention deploys the processing flows of a plurality of messages specified by the TR069 protocol to different micro service nodes, each micro service node only processes one operation message, and the micro service nodes communicate with each other through RPC and Websocket, thereby reducing the complexity of realizing the TR069 protocol, leading the broadband wireless network management system and method to have good expandability and being applicable to the scene of managing large-scale AP terminals under the environment of the broadband wireless network.
Drawings
Fig. 1 is a schematic structural diagram of a broadband wireless network management system based on a TR069 protocol according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a broadband wireless network management system implementing service discovery based on a TR069 protocol according to an embodiment of the present invention;
fig. 3 is a schematic flow chart illustrating an Inform message processing method in a wireless network management method according to an embodiment of the present invention;
fig. 4 is a schematic flowchart illustrating processing of a GetParameterValues message in a wireless network management method according to an embodiment of the present invention;
fig. 5 is a schematic flowchart illustrating a process of processing a SetParameterValues message in a wireless network management method according to an embodiment of the present invention.
Detailed Description
The invention is further described below with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like, indicate orientations or positional relationships based on those shown in the drawings, and are used only for convenience in describing the present invention and for simplicity in description, and do not indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and thus, are not to be construed as limiting the present invention. Furthermore, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first," "second," etc. may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless otherwise specified.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art through specific situations.
The broadband wireless network management system based on the TR069 protocol can be realized by using microservice technology. Microservices are a distributed computing architecture. A large complex software application consists of one or more micro service nodes, each micro service node has independent process space, computing resource, storage resource and communication mechanism, and can undertake independent business processing work.
A computer system based on a microservice architecture may be deployed on multiple servers, each of which may run multiple microservice units. The micro-service architecture has the characteristics of componentization, loose coupling, autonomy, decentralization and the like.
Example 1
As shown in fig. 1, an embodiment of the present invention provides a broadband wireless network management system based on a TR069 protocol, where the system uses a micro service technology framework to implement an Inform message, a GetParameterValues message, and a SetParameterValues message specified by the TR069 protocol. The Inform message comprises equipment information of the AP terminal, the GetParameterValues message comprises a read operation command of the AP terminal, and the SetParameterValues message comprises a write operation command of the AP terminal.
The broadband wireless network management system based on the TR069 protocol comprises an HTTPServer node, an InfoServer node, a GetParamServer node, a SetParamServer node, a WebServer node and a Zookeeper node.
The HTTP connection with the AP terminal is established by the HTTPServer node, the Info Server node processes an Inform message, the GetParameterValues message is processed by the GetParamServer node, the SetParamServer node processes the SetParameterValues message, the WebServer node is responsible for responding to an AP terminal reading operation command and a writing operation command issued by an administrator, and the Zookeeper node provides service registration discovery.
As shown in fig. 2, when the broadband wireless network management system based on the TR069 protocol is started, the InfoServer node, the GetParamServer node, the SetParamServer node, the WebServer node, and the HTTPServer node respectively initiate a service registration request to the Zookeeper node.
The Zookeeper node responds to the service registration request and records the IP address and the service port number information of each node; each node can also obtain the IP addresses and the service port number information of other nodes through the Zookeeper node/server, so as to realize the service discovery process.
As shown in fig. 1, the broadband wireless network management system based on the TR069 protocol according to the embodiment of the present invention establishes an HTTP connection with an AP terminal through an HTTP Server, analyzes an Inform message, a GetParameterValues message, and a SetParameterValues message of the TRO69 protocol, and sends these messages to an Info Server node, a GetParam Server node, and a SetParam Server node, respectively, for processing.
An HTTP connection is established between the AP terminal and the HTTP server node, an RPC connection is established between the HTTP server node and each of the InfoServer node, the GetParamServer node, and the SetParamServer node, and a WebSocket connection is established between the WebServer node and each of the InfoServer node, the GetParamServer node, and the SetParamServer node, as shown in fig. 1.
In this embodiment, the TR069 protocol implements control and management of the AP terminal through messages such as Inform, GetParameterValues, SetParameterValues, and the like, the TR069 protocol is established on a SOAP (simple Object Access protocol) protocol, and the SOAP protocol encapsulates messages such as Inform, GetParameterValues, SetParameterValues, and the like, and the SOAP is an XML-based protocol and operates on HTTP.
Example 2
The invention provides a wireless network management method for a broadband wireless network management system based on a TR069 protocol in embodiment 1, which comprises the following steps:
the HTTP Server node establishes HTTP connection with the AP terminal to acquire an Inform message, a GetParameterValues message and a SetParameterValues message of a TR069 protocol;
the HTTP Server node sends the Inform message, the GetParameterValues message and the SetParameterValues message to the InfoServer node, the GetParamServer node and the SetParamServer node respectively for message processing, so as to respond to triggering:
the InfoServer node sends an AP terminal ID on-line message to the WebServer node and displays the AP terminal ID on-line message on a page; the GetParamServer node sends the AP terminal read operation return value to a WebServer node, and the WebServer node analyzes the AP terminal read operation return value and displays the AP terminal read operation return value on a webpage; and the SetParamServer sends the AP terminal write operation return value to the WebServer node, and the WebServer node analyzes the AP terminal write operation return value and displays the AP terminal write operation return value on a webpage.
In this embodiment, as shown in fig. 3, a flow of implementing the Inform message processing by the broadband wireless network management system based on the TR069 protocol provided by the embodiment of the present invention is specifically as follows:
step 101, the AP terminal initiates an HTTP request to the HTTPServer node and establishes HTTP connection with the HTTPServer node.
102, the AP terminal initiates an Inform Request to the HTTPServer node, wherein the Inform Request consists of a field < cwmp: Inform >, the field < cwmp: Inform > comprises information such as a terminal manufacturer and a terminal ID, the terminal ID is globally unique, and different terminals have different terminal IDs.
Specifically, an AP terminal initiates an Inform Request to an HTTPServer node, a ProtocoHandler processes the Inform Request by rewriting a handleInterntenal method, firstly calls an Xstream library to analyze a < soap: Envelope > message of the Inform Request to obtain a < cwmp: info > field, and then analyzes subfields < Manufacter > and < SerialNumber > in the < cwmp: info > field, wherein the subfields < Manufacter > is the name of the AP terminal provider, and the < SerialNumber > is the ID information of the AP terminal. The AP terminal ID is globally unique, and different AP terminals have different terminal IDs.
And 103, the HTTPServer node receives the Inform Request, analyzes < cwmp: Inform >, obtains the terminal ID, and then creates a hash table H to record the Session context of the connection between the terminal ID and the HTTP.
Specifically, the http server creates a hash table H, and the hash table H records a correspondence between an http context parameter of the handlelnternal method and an AP terminal ID, where the AP terminal ID is a primary key and the http context parameter is a corresponding value. The hash table H can be represented as:
[<APID_1,HttpContext_1>,<APID_2,HttpContext_2>,…,<APID_N,HttpContext_N>]。
step 104, the HTTPServer node initiates a service discovery request to the Zookeeper node, reads a root node on the Zookeeper, obtains IP and port information of the InformServer node, then initiates RPC connection to the InformServer node, and sends a < cwmp: Inform > field to the InformServer node.
And 105, the InformServer node receives the < cwmp: Inform > field, analyzes the terminal ID from the < cwmp: Inform > field, then creates a state table S and records that the terminal ID is in an on-line state.
Specifically, the InformServer node receives a < cwmp: Inform > field, parses < Manufacturer > and < SerialNumber > subfields from the < cwmp: Inform > field, and creates a state table S. The state table S is a hash structure and is used for recording the current state of the AP terminal, and the value range of the current state staus is ("online" or "offline"), where online represents online and offline represents offline.
The primary key of the state table S is the AP terminal ID, and the corresponding value is status. The state table S can be expressed as:
[<APID_1,status_1>,<APID_2,status_2>,…,<APID_N,status_N>]。
the InformServer node inserts an element into the state table S, and the element stores the state corresponding to the AP terminal ID as "online".
And step 106, the InformServer node creates an Inform operation response message which is a field < cwmp: InformResponse >, and the InformServer node returns the field to the HTTPServer node.
Step 107, the HTTPServer node receives the < cwmp: Inform Response > field, encapsulates it into an Inform Response message, and then sends the message to the AP terminal.
And 108, initiating a service discovery request to the Zookeeper node by the InformServer node, reading a root node on the Zookeeper node, acquiring IP and port information of the WebServer node, then initiating a WebSocket request to the WebServer node, and establishing a bidirectional path.
Step 109, the http server node encapsulates the AP terminal ID and the corresponding status into a message in JSON format, sends the message to the WebServer node, and the WebServer node parses the received JSON message and displays the AP terminal ID and the corresponding status on a page.
As shown in fig. 4, the steps of implementing the GetParameterValues message operation by the broadband wireless network management system based on the TR069 protocol provided by the embodiment of the present invention are specifically as follows:
step 201, the HTTPServer node calls an httpcore library to start an HTTP server, creates a ProtocolHandler thread to monitor an HTTP request at a specified port, and waits for an AP terminal to initiate HTTP connection.
Step 202, the AP terminal initiates an HTTP request to the HTTP server node, and establishes an HTTP connection with the HTTP server node.
Step 203, the GetParamServer node initiates connection to the Zookeeper node, reads a root node on the Zookeeper node, obtains IP and port information of the WebServer node, and then initiates a WebSocket request to the WebServer node to establish a bidirectional path.
Step 204, the WebServer node issues an AP terminal read operation request to the GetParamServer node, where the request is in JSON format and can be expressed as:
[ AP terminal ID, Paramname1, Paramname2, …, ParamnameN ].
Step 205, the GetParamServer node receives the AP terminal read operation request:
[ AP terminal ID, Paramname1, Paramname2, …, ParamnameN ],
resolving an AP terminal ID and a parameter list:
[ParamName1,ParamName2,…,ParamNameN]。
and step 206, initiating connection to the Zookeeper node by the GetParamServer node, reading a root node on the Zookeeper node, and acquiring the IP and port information of the InfoServer node.
Step 207, the GetParamServer node initiates RPC connection to the InfoServer node, and sends the parameter "AP terminal ID". The InfoServer traverses the state table S and searches for the key as the element of the ID of the AP terminal.
And if the corresponding element is found and the value of the element is 'online', which indicates that the AP terminal is online, returning the information of 'AP terminal is online' to the GetParam Server.
Step 208, the GetParamServer node receives the information of "AP terminal is online" returned by the InfoServer node, creates < ParameterNames > field and < ID > field, encapsulates the parameter list [ ParamName1, ParamName2, …, ParamName n ] into < ParameterNames > field, creates < cwmp: GetParameterValues > field, inserts < ParameterNames > field into < cwmp: GetParameterValues > field, finally encapsulates the AP terminal ID into < ID > field, and inserts ID field into < cwmp: GetParameterValues > field.
Step 209, the GetParamServer node initiates connection to the Zookeeper node, reads the root node on the Zookeeper node, obtains the IP and port information of the HTTPServer node, then initiates an RPC request to the HTTPServer node, and sends the < cwmp: GetParameterValues > field to the HTTPServer node.
Step 210, the HTTPServer node parses the received < cwmp: GetParameterValues > field, parses out the AP terminal ID, deletes the < ID > field from the < cwmp: GetParameterValues > field, and then queries the hash table H through the AP terminal ID:
[<APID_1,HttpContext_1>,<APID_2,HttpContext_2>,…,
<APID_N,HttpContext_N>];
and obtaining the HTTP Session context corresponding to the AP terminal ID.
And step 211, the HTTPServer node creates a < soap: Envelope > message, inserts a < cwmp: GetParameterValues > field into the < soap: Envelope > message, creates a < soap: Header > message, encapsulates the AP terminal ID into the < soap: Header > message, and finally sends the < soap: Envelope > message to the AP terminal corresponding to the terminal ID through the HTTP Session context.
Step 212, the AP terminal corresponding to the terminal ID receives the message < soap: Envelope >, parses the message < soap: Envelope >, reads the < cwmp: GetParameterValues > field in the message to obtain a parameter list, and then executes the read operation command according to the parameter list to generate a state list.
And then, encapsulating the state list into a < cwmp: GetParameterValueResponse > field, encapsulating the field into a < soap: Envelope > message, and finally returning the message to the HTTPServer node.
Step 213, the HTTPServer node receives the message of < soap: Envelope >, resolves the field of < cwmp: GetParameterValuesResponse >, and returns the field to the GetParamServer node.
Step 214, the GetParamServer node receives the < cwmp: GetParameterValuesResponse > field, parses the < ParameterList > and further parses the < ParameterList > sub-field < ParameterValueStruct >, and then parses the parameter list and the corresponding state list from the < ParameterValueStruct > sub-field.
Step 215, the GetParamServer node encapsulates the parameter list and the corresponding state list into JSON data, and sends the data to the WebServer node through the WebSocket channel.
And step 216, the WebServer node analyzes the received JSON data and displays the parameter list and the corresponding state list on the webpage.
As shown in fig. 5, the steps of implementing the SetParameterValues message operation by the broadband wireless network management system based on the TR069 protocol provided by the present invention are specifically as follows:
step 301, the HTTPServer node calls an httpcore library to start an HTTP server, creates a ProtocolHandler thread to monitor an HTTP request at a specified port, and waits for an AP terminal to initiate HTTP connection.
Step 302, the AP terminal initiates an HTTP request to the HTTPServer node and establishes HTTP connection with the HTTPServer node.
Step 303, the SetParamServer node initiates connection to the Zookeeper node, reads a root node on the Zookeeper node, obtains IP and port information of the WebServer node, and then initiates a WebSocket request to the WebServer node to establish a bidirectional path.
Step 304, the WebServer node issues an AP terminal write operation request to the SetParamServer node, where the request is in JSON format and can be expressed as:
[ AP terminal ID, [ ParamName1, ParamValue1], [ ParamName2, ParamValue2] …,
[ParamNameN,ParamValueN]。
step 305, the SetParamServer node receives the AP terminal write operation request:
[ AP terminal ID, [ ParamName1, ParamValue1], [ ParamName2, ParamValue2] …,
[ParamNameN,ParamValueN];
the AP terminal ID and the parameter list [ [ ParamName1, ParamValue1], [ ParamName2, ParamValue2] …, [ ParamNameN, ParamValueN ] ] ] are analyzed.
Step 306, the SetParamServer node initiates connection to the Zookeeper node, reads a root node on the Zookeeper node, and obtains the IP and port information of the InfoServer node.
Step 307, the SetParamServer node initiates an RPC connection to the InfoServer node, and sends a parameter "AP terminal ID".
The Inform Server traverses the state table S, searches for an element with a key as the ID of the AP terminal, and returns information of 'AP terminal is online' to the SetParam Server if a corresponding element is found and the value of the element is 'online', which indicates that the AP terminal is online.
Step 308, the SetParamServer node receives the information that the AP terminal returned by the InfoServer node is online, creates a < parametervaluestart > field and a < ID > field, and lists the parameters:
[[ParamName1,ParamValue1],[ParamName2,ParamValue2]…,[ParamNameN,Param ValueN]]
packaging into the < ParameteValueStatc > field, creating the < ParameteList > field, and inserting the < ParameteValueStatc > field into the < ParameteList > field;
then create < cwmp: SetParameterValues > field and insert < ParameterList > field into < cwmp: SetParameterValues > field;
finally, the AP terminal ID is encapsulated into the < ID > field and the ID field is inserted into the < cwmp: SetParameterValues > field.
Step 309, the SetParamServer node initiates connection to the Zookeeper node, reads the "root" node on the Zookeeper node, obtains the IP and port information of the HTTPServer node, then initiates an RPC request to the HTTPServer node, and sends the < cwmp: SetParameterValues > field to the HTTPServer node.
Step 310, the HTTPServer node analyzes the received < cwmp: SetParameterValues > field, analyzes the AP terminal ID, deletes the < ID > field from the < cwmp: SetParameterValues > field, and then queries the hash table H through the AP terminal ID:
[<APID_1,HttpContext_1>,<APID_2,HttpContext_2>,…,
<APID_N,HttpContext_N>];
and obtaining the HTTPSession context corresponding to the AP terminal ID.
Step 311, the HTTPServer node creates a message of < soap: Envelope >, and inserts the field of < cwmp: SetParameterValues > into the message of < soap: Envelope >.
Then, a < soap: Header > message is created, and the AP terminal ID is packaged into the < soap: Header > message.
And finally, transmitting the < soap: Envelope > message to the AP terminal corresponding to the terminal ID through the HTTP Session context.
Step 312, the AP terminal corresponding to the terminal ID receives the message < soap: Envelope >, parses the message < soap: Envelope >, reads the < cwmp: SetParameterValues > field in the message, and obtains a parameter list:
[[ParamName1,ParamValue1],[ParamName2,ParamValue2]…,[ParamNameN,P aramValueN]];
then executing a write operation command according to the parameter list, then creating a < cwmp: SetParameterValueResponse > field, and saving a write operation result into a sub-field < status > of the < cwmp: SetParameterValueResponse > field;
and then encapsulating the < cwmp: SetParameterValueResponse > field into a < soap: Enterope > message, and returning the message to the HTTPServer node.
Step 313, the HTTPServer node receives the message of < soap: Envelope >, resolves the field of < cwmp: SetParameterValuesResponse >, and returns the field to the SetParamServer node.
In step 314, the SetParamServer node receives the < cwmp: SetParameterValuesResponse > field, parses the < status > field, and the value of the field indicates the result of the write operation.
And 315, encapsulating the AP terminal ID and the < status > field into JSON data by the SetParamServer node, and sending the data to the WebServer node through the WebSocket channel.
And step 316, the WebServer node analyzes the received JSON data and displays the write operation result on a webpage.
Example 3
The embodiment of the invention provides a wireless network management system, which comprises a processor and a storage medium;
the storage medium is used for storing instructions;
the processor is configured to operate in accordance with the instructions to perform the steps of the method according to embodiment 2.
Example 4
Embodiments of the present invention provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the method described in embodiment 2.
To sum up, the TR069 protocol-based broadband wireless network management system, method, and storage medium provided in the embodiments of the present invention can deploy processing flows of multiple messages specified by the TR069 protocol to different micro service nodes, each micro service node only processes one operation message, and the micro service nodes communicate with each other through RPC and WebSocket, thereby reducing the complexity of implementing the TR069 protocol, enabling the broadband wireless network management system and method to have good scalability, and being applicable to a scenario in which a large-scale AP terminal is managed in a broadband wireless network environment.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.

Claims (10)

1. The broadband wireless network management system based on the TR069 protocol is characterized by comprising an AP terminal, an HTTPServer node, an InfoServer node, a GetParamServer node, a SetParamServer node, a WebServer node and a Zookeeper node;
HTTP connection is established between the AP terminal and the HTTPServer node, RPC connection is established between the HTTPServer node and the InfoServer node, the GetParamServer node and the SetParamServer node respectively, and WebSocket connection is established between the WebServer node and the InfoServer node, the GetParamServer node and the SetParamServer node respectively;
the InfoServer node, the GetParamServer node, the SetParamServer node, the WebServer node and the HTTPServer node realize service registration and service discovery through the Zookeeper node.
2. The broadband wireless network management system based on the TR069 protocol as claimed in claim 1, wherein said HTTPServer node is configured to parse an Inform message, a GetParameterValues message, and a SetParameterValues message of the TR069 protocol, and send the Inform message, the GetParameterValues message, and the SetParameterValues message to said InfoServer node, the getparameterserver node, and the setparameterserver node, respectively;
the InfoServer node is used for processing an Inform message, the GetParamServer node is used for processing a GetParameterValues message, and the SetParamServer node is used for processing a SetParameterValues message;
and the WebServer node is used for responding to an AP terminal operation command issued by a user.
3. The broadband wireless network management system according to claim 1, wherein the TR069 protocol is built on top of an XML-based SOAP protocol, and the Inform message, the GetParameterValues message, and the SetParameterValues message are encapsulated by the SOAP protocol, respectively.
4. A wireless network management method for a TR069 protocol-based broadband wireless network management system of claims 1-3, comprising the steps of:
the HTTPServer node establishes HTTP connection with the AP terminal to acquire an Inform message, a GetParameterValues message and a SetParameterValues message of a TR069 protocol;
the HTTPServer node respectively sends the Inform message, the GetParameterValues message and the SetParameterValues message to an InfoServer node, a GetParamServer node and a SetParamServer node for message processing, so as to respond to triggering:
the InfoServer node sends an AP terminal ID on-line message to the WebServer node and displays the AP terminal ID on-line message on a page; the GetParamServer node sends the AP terminal read operation return value to a WebServer node, and the WebServer node analyzes the AP terminal read operation return value and displays the AP terminal read operation return value on a webpage; and the SetParamServer sends the AP terminal write operation return value to the WebServer node, and the WebServer node analyzes the AP terminal write operation return value and displays the AP terminal write operation return value on a webpage.
5. The wireless network management method as claimed in claim 4, wherein the method for implementing the Inform message processing via the InfoServer node comprises the following steps:
s101) the AP terminal initiates an HTTP request to the HTTPServer node and establishes HTTP connection with the HTTPServer node;
s102) an AP terminal initiates an Inform Request to an HTTPServer, wherein the Inform Request consists of a < cwmp: Inform > field, the < cwmp: Inform > field comprises a terminal manufacturer and a terminal ID, the terminal ID is globally unique, and different terminals have different terminal IDs;
s103) the HTTPServer node receives the Inform Request, analyzes the (cwmp: Inform) field, obtains a terminal ID, and then creates a hash table H to record an HTTP Session context corresponding to the obtained terminal ID;
s104) the HTTPServer node initiates a service discovery request to the Zookeeper node to obtain the IP and port information of the InformServer node, then initiates RPC connection to the InformServer node, and sends the < cwmp: Inform > field to the InformServer node;
s105) the InformServer node receives the < cwmp: Inform > field, analyzes the terminal ID from the < cwmp: Inform > field, then creates a state table S and records that the terminal ID is 'on-line state';
s106) the InformServer node creates an Inform message operation response message, wherein the response message is < cwmp: InformResponse > field, and the InformServer node returns the response message field to the HTTPServer node;
s107) the HTTPServer node receives the < cwmp: Inform Response > field, encapsulates the field into an Inform Response message, and then sends the Inform Response message to the AP terminal;
s108) the InformServer node initiates a service discovery request to the Zookeeper node to obtain the IP and port information of the WebServer node, and then initiates a WebSocket request to the WebServer node to establish a bidirectional path;
s109) the InformServer node sends an AP terminal ID on-line message to the WebServer node, and the WebServer node displays the AP terminal ID on-line message on a page.
6. The method for managing wireless network according to claim 5, wherein the method for implementing GetParameterValues message processing by a GetParamServer node comprises the following steps:
s201) the AP terminal initiates an HTTP request to the HTTPServer node and establishes HTTP connection with the HTTPServer node;
s202) the GetParamServer node initiates a service discovery request to the Zookeeper node to obtain the IP and port information of the WebServer node, and then initiates a WebSocket request to the WebServer node to establish a bidirectional path;
s203) the WebServer node issues an AP terminal reading operation request to the GetParamServer node;
s204) the GetParamServer node receives the AP terminal reading operation request and analyzes the AP terminal ID and the reading operation parameter list;
s205) the GetParamServer node initiates a service discovery request to the Zookeeper node to obtain the IP and port information of the InformServer node, then initiates RPC connection to the InformServer node, and queries whether the ID of the AP terminal is in an online state;
s206) the InformServer node inquires the state table S and returns the state information of the AP terminal to the GetParamServer node;
s207) if the AP terminal ID is in an online state, the GetParamServer node initiates a service discovery request to the Zookeeper node to obtain the IP and port information of the HTTPServer node, and then initiates RPC connection to the HTTPServer node;
s208) the GetParamServer node encapsulates the AP terminal ID and the read operation parameter list into a < cwmp: GetParameterValues > field and sends the < cwmp: GetParameterValues > field to the HTTPServer node;
s209) the HTTPServer node analyzes the received < cwmp: GetParameterValues > field, analyzes the ID of the AP terminal, and then queries the hash table H to obtain the HTTP Session context corresponding to the ID of the AP terminal;
s210) the HTTPServer node encapsulates the < cwmp: GetParameterValues > field into a < SOAP: Envelope > message of a SOAP protocol, and then sends the < SOAP: Envelope > message to an AP terminal corresponding to a terminal ID through an HTTP Session context;
s211) the AP terminal corresponding to the terminal ID receives the < soap: Environment > message, reads the corresponding state of the AP terminal, generates a state list, packages the state list to a < cwmp: GetParameterValueResponse > field, packages the < cwmp: GetParameterValueResponse > field into the < soap: Environment > message, and finally returns the < soap: Environment > message to the HTTPServer node;
s212) the HTTPServer node receives the message of < soap: Envelope > and analyzes the field of < cwmp: GetParameterValueResponse > and returns the field to the GetParamServer node;
s213) the GetParamaServer node receives the < cwmp: GetParameterValueResponse > field, analyzes a parameter list and a corresponding state list, packages the parameter list and the corresponding state list into AP terminal read operation return values and sends the AP terminal read operation return values to the WebServer node through a WebSocket channel;
s214) the WebServer node analyzes the AP terminal reading operation return value and displays the obtained parameter list and the corresponding state list on a webpage.
7. The method for managing wireless network according to claim 6, wherein the method for implementing the SetParameterValues message processing by the SetParamServer node comprises the following steps:
s301) the AP terminal initiates an HTTP request to the HTTPServer node and establishes HTTP connection with the HTTPServer node;
s302) the SetParamServer node initiates a service discovery request to the Zookeeper node to obtain the IP and port information of the WebServer node, and then initiates a WebSocket request to the WebServer node to establish a bidirectional path;
s303) the WebServer node issues an AP terminal write operation request to the SetParamServer node;
s304) the SetParamServer node receives the AP terminal write operation request and analyzes the AP terminal ID and the write operation parameter list;
s305) the SetParamserver node initiates a service discovery request to the Zookeeper node to obtain the IP and port information of the InformServer node, then initiates RPC connection to the InformServer node to inquire whether the AP terminal ID is in an online state;
s306) the InformServer queries the state table S and returns the state information of the AP terminal to the SetParamServer node;
s307) if the AP terminal ID is in an online state, the SetParamServer node initiates a service discovery request to the Zookeeper node to obtain the IP and port information of the HTTPServer node, and then initiates RPC connection to the HTTPServer node;
s308) the SetParamserver node packages the AP terminal ID and the write operation parameter list to a < cwmp: SetParameterValues > field and sends the < cwmp: SetParameterValues > field to the HTTPServer node;
s309) the HTTPServer node analyzes the received < cwmp: SetParameterValues > field, analyzes the AP terminal ID, and then queries the hash table H to obtain the HTTP Session context corresponding to the AP terminal ID;
s310) the HTTPServer node encapsulates the < cwmp: SetParameterValues > field into the < soap: Enterprise > message, and then sends the < soap: Enterprise > message to the AP terminal corresponding to the terminal ID through the HTTP Session context;
s311) the AP terminal corresponding to the terminal ID receives the < soap: Envelope > message, analyzes the < cwmp: SetParameterValues > field, writes the AP terminal, encapsulates the write operation result into the < cwmp: SetParameterValuesResponse > field, encapsulates the < cwmp: SetParameterValuesResponse > field into the < soap: Envelope > message, and finally returns the < soap: Envelope > message to the HTTPServer node;
s312) the HTTPServer node receives the message of < soap: Envelope >, analyzes the field of < cwmp: SetParameterValuesResponse >, and returns the field of < cwmp: SetParameterValuesResponse > to the SetParamServer node;
s313) the SetParamserver node receives the < cwmp: SetParameterValueResponse > field, analyzes the write operation result, packages the write operation result into an AP terminal write operation return value, and sends the AP terminal write operation return value to the WebServer node through a WebSocket channel;
s314) the WebServer node analyzes the write operation return value of the AP terminal and displays the obtained write operation result on a webpage.
8. The method as claimed in claim 4, wherein the TR069 protocol is built on top of a SOAP protocol based on XML, and the Inform message, the GetParameterValues message and the SetParameterValues message are encapsulated by the SOAP protocol respectively.
9. A wireless network management system, comprising a processor and a storage medium;
the storage medium is used for storing instructions;
the processor is configured to operate in accordance with the instructions to perform the steps of the method according to any one of claims 4 to 8.
10. Computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 4 to 8.
CN202011508236.8A 2020-12-18 2020-12-18 Broadband wireless network management system, method and storage medium based on TR069 protocol Withdrawn CN112653754A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011508236.8A CN112653754A (en) 2020-12-18 2020-12-18 Broadband wireless network management system, method and storage medium based on TR069 protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011508236.8A CN112653754A (en) 2020-12-18 2020-12-18 Broadband wireless network management system, method and storage medium based on TR069 protocol

Publications (1)

Publication Number Publication Date
CN112653754A true CN112653754A (en) 2021-04-13

Family

ID=75355327

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011508236.8A Withdrawn CN112653754A (en) 2020-12-18 2020-12-18 Broadband wireless network management system, method and storage medium based on TR069 protocol

Country Status (1)

Country Link
CN (1) CN112653754A (en)

Similar Documents

Publication Publication Date Title
EP1542409B1 (en) Protocol for multi-hop ad-hoc networks
US8150982B2 (en) Method, system for accessing home network device and home network access device
JP5093598B2 (en) Control relay program, control relay device, and control relay method
US9391837B2 (en) Method, proxy device, and system for managing terminal device
JP2007188505A (en) Management method of network-enabled devices and medium
CN109379291B (en) Method and device for processing service request in networking
EP2640002B1 (en) Method, apparatus and system for configuring device
CN104883266A (en) Network configuration accessing method and device thereof
CN116633775B (en) Container communication method and system of multi-container network interface
CN112751947B (en) Communication system and method
US8843644B2 (en) Method and apparatus for enabling a management system to interface with managed devices
CN112307486A (en) Authority obtaining method, equipment and system
EP3025475B1 (en) Xmpp based upnp device architecture for cloud computing in a network environment
CN112653754A (en) Broadband wireless network management system, method and storage medium based on TR069 protocol
US11863368B2 (en) Method and apparatus for subscribing to event streams
JP2004254346A (en) Server for routing connection to client device
CN112929211B (en) Method for realizing non-IP management and control equipment to be accessed to IP DCN network to be managed
CN105577433B (en) A kind of ACS cluster management method, device and system
JP2010130113A (en) System and method of network management, manager, and agent
WO2023005543A1 (en) Query method and apparatus, and device
CN114125843B (en) Intelligent equipment network distribution method, device and equipment
US20070198732A1 (en) Object-oriented discovery framework
EP3799357A1 (en) Method for automatically exiting trial run, device, and system
JP2007188298A (en) Snmp agent apparatus
CN115277625A (en) Communication management method, electronic device, storage medium, and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20210413

WW01 Invention patent application withdrawn after publication