CN107968725B - Method and device for returning and configuring configuration information of home gateway unit type terminal device - Google Patents

Method and device for returning and configuring configuration information of home gateway unit type terminal device Download PDF

Info

Publication number
CN107968725B
CN107968725B CN201711160936.0A CN201711160936A CN107968725B CN 107968725 B CN107968725 B CN 107968725B CN 201711160936 A CN201711160936 A CN 201711160936A CN 107968725 B CN107968725 B CN 107968725B
Authority
CN
China
Prior art keywords
terminal equipment
type terminal
tftp
hgu
configuration file
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.)
Active
Application number
CN201711160936.0A
Other languages
Chinese (zh)
Other versions
CN107968725A (en
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.)
Raisecom Technology Co Ltd
Original Assignee
Raisecom Technology 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 Raisecom Technology Co Ltd filed Critical Raisecom Technology Co Ltd
Priority to CN201711160936.0A priority Critical patent/CN107968725B/en
Publication of CN107968725A publication Critical patent/CN107968725A/en
Application granted granted Critical
Publication of CN107968725B publication Critical patent/CN107968725B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • 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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Abstract

The invention discloses a method and a device for returning and configuring configuration information of a home gateway unit type terminal device, wherein the method comprises the following steps: broadcasting a dynamic host configuration protocol discovery message to a network on a home gateway unit type terminal device; receiving a dynamic host configuration protocol provided response message returned by a dynamic host configuration protocol server, wherein the response message comprises selection information which can be used for automatic deployment in a network to which the dynamic host configuration protocol server belongs, and the selection information comprises one or a combination of the following option information: a uniform resource locator, a user name and a password of TR069, a simple file transfer protocol IP address and a general configuration file of terminal equipment; and configuring the terminal equipment on the terminal equipment according to the selection information. By adopting the invention, the management and configuration issuing of the terminal equipment can be finished under the condition of zero configuration of the terminal equipment, thereby being beneficial to the automatic deployment of a plurality of terminal equipment.

Description

Method and device for returning and configuring configuration information of home gateway unit type terminal device
Technical Field
The invention relates to the technical field of computer network communication, in particular to a method and equipment for returning and configuring configuration information of a home gateway unit type terminal device.
Background
HGU (Home Gateway Unit) type terminal equipment is mainly used for a single Home user, has a Home Gateway function, can provide functions such as Internet access and IPTV (Internet Protocol Television), and supports TRO69 remote Management, and a TR069 Protocol is a network Management Protocol for terminal equipment established by a broadband forum, and is also called CWMP (CPE Wan Management Protocol, user terminal equipment wide area network Management Protocol).
Most of the current configurations of HGU type terminal devices are deployed by issuing configurations through TR069, but the disadvantages are that: the automatic deployment of the HGU type terminal equipment cannot be realized under the scheme.
Disclosure of Invention
The invention provides a home gateway unit type terminal device configuration information returning and configuring method, a computer device and a computer readable storage medium, which are used for solving the deployment problem of HGU type terminal devices.
The embodiment of the invention provides a configuration information returning method of HGU type terminal equipment, which comprises the following steps:
receiving a dynamic host configuration protocol discovery DHCP Discover message broadcasted to a network by HGU type terminal equipment on a dynamic host configuration protocol server DHCP server, wherein the message requests to return information of one or a combination of the following options: a uniform resource locator, a user name and a password of TR069, a TFTP IP address and a general configuration file of HGU type terminal equipment;
returning a dynamic host configuration protocol providing DHCP offer response message to the HGU type terminal equipment, wherein the response message comprises selection information which can be used for automatic deployment in a network to which the DHCP server belongs, and the selection information comprises one or the combination of the following information: a uniform resource locator, a user name and a password of TR069, a TFTP IP address and a general configuration file of HGU type terminal equipment.
In implementation, the TFTP IP address provided by the DHCP server is a TFTP service address;
the TFTP service is used for providing a special configuration file and/or a general configuration file, wherein the special configuration file is a configuration file aiming at the performance of a specific class of terminal equipment, and the general configuration file is a configuration file meeting the basic opening requirement of the terminal equipment on the performance.
The embodiment of the invention provides a configuration method of HGU type terminal equipment, which comprises the following steps:
broadcasting a DHCP Discover message to a network on HGU type terminal equipment, wherein the message requests to return information of one or a combination of the following options: a uniform resource locator, a user name and a password of TR069, a TFTP IP address and a general configuration file of HGU type terminal equipment;
receiving a DHCP offer response message returned by a DHCP server, where the response message includes selection information that can be used for automatic deployment in a network to which the DHCP server belongs, and the selection information includes one or a combination of the following information: a uniform resource locator, a user name and a password of TR069, a TFTP IP address and a general configuration file of HGU type terminal equipment;
and configuring the HGU type terminal equipment on the HGU type terminal equipment according to the selection information.
In implementation, the HGU type terminal device is configured according to the selection information, and the HGU type terminal device is configured according to the selection information through a TR069 platform, a TFTP server, or a remote access through a WAN port.
In implementation, the HGU-type terminal device is configured according to the selection information in one of the following ways:
when the selection information comprises a uniform resource locator, a user name and a password of TR069, configuring the HGU type terminal equipment through a TR069 platform according to the selection information; or the like, or, alternatively,
when the selection information comprises a TFTP IP address, configuring the HGU type terminal equipment through a TFTP server according to the selection information; or the like, or, alternatively,
when the selection information comprises a general configuration file of the HGU type terminal equipment, configuring the HGU type terminal equipment through a TFTP server according to the selection information; or the like, or, alternatively,
and when the selection information comprises an invalid Uniform Resource Locator (URL) of TR069, a user name and a password, an invalid TFTP IP address and an invalid general configuration file of the HGU type terminal equipment, configuring the HGU type terminal equipment through remote access of a WAN port according to the selection information.
In an implementation, the selection information includes: a uniform resource locator, a username and a password of TR 069;
configuring the HGU type terminal equipment on the HGU type terminal equipment through a TR069 platform according to the selection information, wherein the configuration comprises the following steps:
adding the uniform resource locator, the user name and the password of the TR069 into a URL, the user name and the password corresponding to the HGU type terminal equipment;
sending a DHCP REQUEST message to a DHCP server, wherein the message carries a uniform resource locator, a user name and a password of TR 069;
after receiving a DHCP ACK message returned by a DHCP server and carrying out information confirmation, allocating an IP address for the terminal equipment through a DHCP protocol;
and after the HGU type terminal equipment is communicated with the TR069 platform, the HGU type terminal equipment is configured through the TR069 platform.
In an implementation, the method further comprises the following steps:
and carrying all the information in the selection information in a DHCP REQUEST message.
In an implementation, the method further comprises the following steps:
and when the HGU type terminal equipment cannot communicate with the TR069 platform, configuring the HGU type terminal equipment through the TFTP server when the selection information comprises the TFTP IP address.
In implementation, when the number of times of failed communication between the HGU type terminal equipment and the TR069 platform reaches a preset number, it is determined that the HGU type terminal equipment cannot communicate with the TR069 platform.
In an implementation, the selection information includes: a TFTP IP address;
configuring the HGU type terminal equipment through a TFTP server on the HGU type terminal equipment according to the selection information, wherein the configuration comprises the following steps:
initiating a request of a GET special configuration file to a TFTP server according to the TFTP IP address;
and when the TFTP server can provide the special configuration file, configuring the HGU type terminal equipment according to the special configuration file provided by the TFTP server.
In an implementation, the method further comprises the following steps:
and when the TFTP server can not provide the special configuration file and the selection information comprises the general configuration file of the HGU type terminal equipment, configuring the HGU type terminal equipment through the TFTP server.
In implementation, it is determined that the TFTP server can provide the dedicated configuration file, and when the HGU-type terminal device determines that the dedicated configuration file delivered by the TFTP server can be received within the set waiting time, it is determined that the TFTP server can provide the dedicated configuration file.
In an implementation, the selection information includes: a general configuration file of the HGU type terminal equipment;
configuring the HGU type terminal equipment through a TFTP server on the HGU type terminal equipment according to the selection information, wherein the configuration comprises the following steps:
sending a DHCP REQUEST message to a DHCP server, wherein the message carries a TFTP IP address and a general configuration file of HGU type terminal equipment;
after receiving a DHCP ACK message returned by a DHCP server and carrying out information confirmation, allocating an IP address for the terminal equipment through a DHCP protocol;
initiating a request of GET general configuration file to TFTP server;
and when the TFTP server can provide the general configuration file, configuring the HGU type terminal equipment according to the special configuration file provided by the TFTP server.
In implementation, the TFTP server is determined according to the TFTP IP address in the selection information.
In an implementation, the method further comprises the following steps:
and when the TFTP server can not provide the general configuration file, configuring the HGU type terminal equipment through remote access of a WAN port according to the selection information including an invalid uniform resource locator, a user name and a password of TR069, an invalid TFTP IP address and an invalid general configuration file of the HGU type terminal equipment.
The embodiment of the invention provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize a configuration information returning method of HGU type terminal equipment.
An embodiment of the present invention provides a computer-readable storage medium storing a computer program for executing a configuration information returning method of an HGU-type terminal device.
The embodiment of the invention provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the configuration method of HGU type terminal equipment is realized when the processor executes the computer program.
An embodiment of the present invention provides a computer-readable storage medium storing a computer program for executing a configuration method of an HGU-type terminal device.
The invention has the following beneficial effects:
in the technical scheme provided by the embodiment of the invention, after accessing the network, the HGU type terminal equipment broadcasts a DHCP Discover message, and the corresponding DHCP server returns the uniform resource locator, the user name and the password which relate to TR069 and can be used for automatic deployment in the network to the HGU type terminal equipment, the TFTP IP address and the selection information of the general configuration file of the HGU type terminal equipment, so that the HGU type terminal equipment can obtain configuration from the corresponding channel according to one or more information in the information, thereby completing the self deployment.
Furthermore, in the process, because the selection information is provided from the network side, the HGU type terminal equipment manufacturer is not required to pre-configure different operators in the deployment process, the management and configuration issuing of the HGU type terminal equipment can be completed even under the condition of zero configuration of the HGU type terminal equipment, the problem that different HGU customized versions are required under different environments is solved, and the automatic deployment of a plurality of HGU type terminal equipment is facilitated.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic flow chart of an implementation process of a configuration information returning method of HGU-type terminal equipment in an embodiment of the present invention;
fig. 2 is a schematic flow chart of an implementation of a configuration method of an HGU-type terminal device according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an HGU type terminal device deployment implementation flow in an embodiment of the present invention.
Detailed Description
The inventor notices in the process of invention that:
because the configuration of the current HGU type terminal equipment is mostly configured by issuing through TR069, it is necessary for HGU type terminal equipment manufacturers to pre-configure different operators, which results in different software versions of HGU type terminal equipment in different places. Further, if the HGU-type terminal device needs to be automatically deployed, it is difficult to complete the automatic deployment because the configuration information setting condition of the office is unknown.
Based on this, the embodiment of the invention provides a scheme for automatically deploying the HGU type terminal equipment under the condition of zero configuration, so as to realize the automatic configuration of the HGU type terminal equipment. The following describes embodiments of the present invention with reference to the drawings.
In the description process, the implementation of the network and the HGU type terminal device side will be described separately, and then an example of the implementation of the two in cooperation will be given to better understand the implementation of the scheme given in the embodiment of the present invention. Such an explanation does not mean that the two devices must be implemented in cooperation or separately, and actually, when the network and the HGU type terminal device are implemented separately, the problems on the network and the HGU type terminal device side are solved separately, and when the two devices are used in combination, a better technical effect is obtained.
Fig. 1 is a schematic diagram of an implementation flow of a configuration information returning method for HGU-type terminal equipment, as shown in the figure, including:
step 101, receiving a DHCP Discover message broadcasted by the HGU-type terminal device to the network on a DHCP server (DHCP server; DHCP: Dynamic Host Configuration Protocol), wherein the message requests to return information of one or a combination of the following options: a uniform resource locator, a user name and a password of TR069, a TFTP IP address and a general configuration file of HGU type terminal equipment;
102, returning a DHCP offer response message to the HGU-type terminal device, where the response message includes selection information that can be used for automatic deployment in a network to which the DHCP server belongs, and the selection information includes one or a combination of the following information: a uniform resource locator, a user name and a password of TR069, a TFTP IP address and a general configuration file of HGU type terminal equipment.
Specifically, the HGU-type terminal device applies to the DHCP server for retrieving the information listed in the options, and the DHCP server returns one or more of the information of the corresponding options. In a specific implementation, the returned information may be invalid information, but the information still corresponds to the corresponding option.
In implementation, the TFTP IP address provided by the DHCP server is a TFTP service address;
the TFTP (simple File Transfer Protocol) service is used to provide a dedicated configuration File and/or a general configuration File, where the dedicated configuration File is a configuration File for the performance of a specific class of terminal devices, and the general configuration File is a configuration File for meeting the basic performance requirements of the terminal devices.
Specifically, the TFTP IP address may be set as a preset TFTP service address, and a dedicated configuration file and a general configuration file are deployed on the TFTP service, where the dedicated configuration file may be distinguished from the general configuration file by different predetermined names, for example, the naming format of the dedicated configuration file is the mac.cfg format of the WAN interface of the HGU-type terminal device, and the name of the general configuration file is: cfg; the two types of configuration files are respectively deployed in predetermined directories of the TFTP.
The specific use of this arrangement will also be explained in connection with the implementation and example of the HGU type end device side.
Fig. 2 is a schematic flow chart of an implementation process of a configuration method of an HGU-type terminal device, as shown in the figure, including:
step 201, broadcasting a DHCP Discover message to a network on an HGU-type terminal device, wherein a request is made in the message to return information of one or a combination of the following options: a uniform resource locator, a user name and a password of TR069, a TFTP IP address and a general configuration file of HGU type terminal equipment;
step 202, receiving a DHCP offer response packet returned by the DHCP server, where the response packet includes selection information that can be used for automatic deployment in a network to which the DHCP server belongs, and the selection information includes one or a combination of the following information: a uniform resource locator, a user name and a password of TR069, a TFTP IP address and a general configuration file of HGU type terminal equipment;
and 203, configuring the HGU type terminal equipment on the HGU type terminal equipment according to the selection information.
In implementation, the HGU type terminal device is configured according to the selection information, and the HGU type terminal device is configured according to the selection information through a TR069 platform, a TFTP server, or a remote access through a WAN port.
In implementation, the HGU-type terminal device is configured according to the selection information in one of the following ways:
when the selection information comprises a uniform resource locator, a user name and a password of TR069, configuring the HGU type terminal equipment through a TR069 platform according to the selection information; or the like, or, alternatively,
when the selection information comprises a TFTP IP address, configuring the HGU type terminal equipment through a TFTP server according to the selection information; or the like, or, alternatively,
when the selection information comprises a general configuration file of the HGU type terminal equipment, configuring the HGU type terminal equipment through a TFTP server according to the selection information; or the like, or, alternatively,
and when the selection information comprises an invalid uniform resource locator, a user name and a password of TR069, an invalid TFTP IP address and an invalid general configuration file of the HGU type terminal equipment, configuring the HGU type terminal equipment through remote access of a WAN port.
The specific implementation can be as follows:
1. the selection information includes: a uniform resource locator, a username and a password of TR 069;
configuring the HGU type terminal equipment on the HGU type terminal equipment through a TR069 platform according to the selection information, wherein the configuration comprises the following steps:
adding the uniform resource locator, the user name and the password of the TR069 into a URL, the user name and the password corresponding to the HGU type terminal equipment;
sending a DHCP REQUEST message to a DHCP server, wherein the message carries a uniform resource locator, a user name and a password of TR 069;
after receiving a DHCP ACK message returned by a DHCP server and carrying out information confirmation, allocating an IP address for the terminal equipment through a DHCP protocol;
and after the HGU type terminal equipment is communicated with the TR069 platform, the HGU type terminal equipment is configured through the TR069 platform.
In specific implementation, the method may further include:
and carrying all the information in the selection information in a DHCP REQUEST message.
In specific implementation, the method may further include:
and when the HGU type terminal equipment cannot communicate with the TR069 platform, configuring the HGU type terminal equipment through the TFTP server when the selection information comprises the TFTP IP address.
In specific implementation, when the number of times of failed communication between the HGU type terminal equipment and the TR069 platform reaches a preset number, it is determined that the HGU type terminal equipment cannot communicate with the TR069 platform.
2. The selection information includes: a TFTP IP address;
configuring the HGU type terminal equipment through a TFTP server on the HGU type terminal equipment according to the selection information, wherein the configuration comprises the following steps:
initiating a request of a GET special configuration file to a TFTP server according to the TFTP IP address;
and when the TFTP server can provide the special configuration file, configuring the HGU type terminal equipment according to the special configuration file provided by the TFTP server.
In specific implementation, the method may further include:
and when the TFTP server can not provide the special configuration file and the selection information comprises the general configuration file of the HGU type terminal equipment, configuring the HGU type terminal equipment through the TFTP server.
In specific implementation, it is determined that the TFTP server can provide the dedicated configuration file, and when the HGU-type terminal device determines that the dedicated configuration file delivered by the TFTP server can be received within the set waiting time, it is determined that the TFTP server can provide the dedicated configuration file.
3. The selection information includes: a general configuration file of the HGU type terminal equipment;
configuring the HGU type terminal equipment through a TFTP server on the HGU type terminal equipment according to the selection information, wherein the configuration comprises the following steps:
sending a DHCP REQUEST message to a DHCP server, wherein the message carries a TFTP IP address and a general configuration file of HGU type terminal equipment;
after receiving a DHCP ACK message returned by a DHCP server and carrying out information confirmation, allocating an IP address for the terminal equipment through a DHCP protocol;
initiating a request of GET general configuration file to TFTP server;
and when the TFTP server can provide the general configuration file, configuring the HGU type terminal equipment according to the special configuration file provided by the TFTP server.
In a specific implementation, the TFTP server is determined according to the TFTP IP address in the selection information.
In specific implementation, the method may further include:
and when the TFTP server can not provide the general configuration file, configuring the HGU type terminal equipment through remote access of a WAN port according to the selection information including an invalid uniform resource locator, a user name and a password of TR069, an invalid TFTP IP address and an invalid general configuration file of the HGU type terminal equipment.
4. And when the selection information comprises an invalid uniform resource locator, a user name and a password of TR069, an invalid TFTP IP address and an invalid general configuration file of the HGU type terminal equipment, configuring the HGU type terminal equipment through remote access of a WAN port according to the selection information.
The following example is about an implementation mode combining the above 4 modes, it should be noted that the combining mode is not only an example, but also can be combined as required in specific practice as long as automatic deployment can be achieved.
A DHCP server (Dynamic Host Configuration Protocol server) is preset at a network side office, and one or more of option fields 43, 66, 67 information of a DHCP message in the DHCP server are set according to an actual networking situation, the option fields 43, 66, 67 information are selection information that can be used for automatic deployment, wherein the option43 field information is: TR069 uniform resource locator + username + password (URL + username + password); the option66 field information is: TFTP IP address (TFTP IP address; TFTP: Trivisual File Transfer Protocol, simple File Transfer Protocol); the option67 field information is: generic configuration files for HGU type terminal equipment. In the example, the information of the fields 43, 66, and 67 is taken as an example, because the existing protocol can carry the information in the fields, which is easier to implement, but in the specific implementation, the specific way of carrying the information of the uniform resource locator, the user name and the password of TR069, the TFTP IP address, the general configuration file of the HGU-type terminal device, and the like can be determined according to the actual needs, and even a new message can be carried and constructed by adding a new field, so long as the information can be identified, the fields 43, 66, and 67 are only used for teaching a person skilled in the art how to implement the present invention specifically, but do not mean that only one of the fields 43, 66, and 67 can be used to determine the corresponding way according to the practical needs in the implementation process.
Further, a TFTP IP address carried by option66 may be used as a preset TFTP service address, and a dedicated configuration file and a general configuration file are deployed on the TFTP service, where the dedicated configuration file may be distinguished from the general configuration file by different predetermined names, for example, the naming format of the dedicated configuration file is the mac.cfg format of the WAN interface of the HGU-type terminal device, and the name of the general configuration file is: cfg; the two types of configuration files are respectively deployed in a predetermined directory of the TFTP; the special configuration file is a configuration file aiming at all performances of the terminal equipment of a specific class; the general configuration file is a configuration file meeting the basic opening requirement performance of the terminal equipment, and is suitable for automatic deployment of the terminal equipment when no special configuration file exists in the initial stage of opening test.
Fig. 3 is a schematic diagram of a deployment implementation flow of the HGU-type terminal device, and as shown in the figure, after the HGU-type terminal device which is not configured for deployment is powered on, the following steps are performed:
step 300: the HGU type terminal device broadcasts a DHCP Discover message to the Network through a WAN (Wide Area Network) connection configured by the HGU type terminal device, where the DHCP Discover message includes not only general Network parameters but also an option43, an option66, and an option67, and at this time, each option value may be null or invalid.
Step 301: after receiving the DHCP Discover message, the DHCP server sends a DHCP offer response message to the terminal device when judging that the selection information available for automatic deployment exists locally, where the response message includes all the selection information available for automatic deployment preset locally.
In this step, the selection information available for automatic deployment is one or more of the preset options 43, 66, 67; the selection information carried by the DHCP offer response message may include all locally configured selection information, specifically, if only option43 is configured, the selection information carries information of option43, if options 66 and 67 are configured, the selection information carries information of options 66 and 67, and if options 43, 66 and 67 are all configured in advance, the selection information carries information of options 43, 66 and 67; wherein:
wherein, the option43 field is: TR069 URL + username + password;
the option66 field is: TFTP IP address;
the option67 field is: a general configuration file of the HGU type terminal equipment;
step 302: the terminal equipment receives a DHCP offer response message sent by a DHCP server, if the option43 is judged to have effective information, step 303 is executed, if the option43 does not have the effective information, but the option66 has the effective information, step 307 is executed, and if the option43 and the option66 do not have the effective information, step 313 is executed;
step 303: the terminal equipment respectively adds URL + username + password of information TR069 in option43 field in DHCP offer response message to URL (Uniform resource Locator), user name and password corresponding to HGU type terminal equipment; then, sending a DHCP REQUEST message to a DHCP server through the terminal equipment is completed, wherein the DHCP REQUEST message contains general network parameters and option43 option information; receiving DHCP ACK (DHCP acknowledge) message sent by DHCP server to confirm information and completing the process of distributing IP address to terminal device by DHCP protocol;
in the implementation, in this step, when the terminal device sends the DHCP REQUEST message to the DHCP server, all the selection information (option43, option66, or option67) that can be used for automatic deployment and is obtained according to the DHCP OFFER response message may be included, so that when the automatic deployment using the information carried by option43 fails and automatic deployment using other information is performed, it is not necessary to perform information confirmation such as address with the DHCP server many times. That is, all the information in the selection information may be carried in the DHCP REQUEST message.
Step 304: the terminal equipment judges whether the communication with a TR069 platform can be realized, if so, the step 305 is executed, and the management and configuration of the HGU type terminal equipment are issued through the TR069 platform; if not, indicating that the HGU type terminal equipment cannot pass through the TR069 platform, and executing step 306;
in this step, whether the communication between the terminal device and the TR069 platform can be realized is determined by the following method: if the terminal device fails to initiate interaction with the TR069 platform for multiple times (for example, 3 times), the terminal device is considered to be unable to pass between the terminal device and the TR069 platform, otherwise, the terminal device is considered to be able to pass normally. That is, when the number of times of failed communication between the HGU-type terminal device and the TR069 platform reaches a preset number, it is determined that the HGU-type terminal device cannot communicate with the TR069 platform.
Step 305: and receiving a configuration message issued by the TR069 platform to the HGU type terminal equipment, and automatically configuring the terminal equipment.
Step 306: the terminal equipment judges whether the option66 in the DHCP offer response message has effective information, if so, the terminal equipment sends a DHCP REQUEST message to the DHCP server, wherein the DHCP REQUEST message comprises general network parameters and option66 and option67 option information; receiving a DHCP ACK message issued by a DHCP server to carry out information confirmation, thereby completing the process of allocating the IP address to the terminal equipment through a DHCP protocol; then step 307 is executed, otherwise step 313 is executed;
step 307: the terminal equipment acquires the information in the option66 field in the DHCP offer response message, and automatically initiates a request of GET (GET) special configuration file to the TFTP server according to the option66 field information TFTP IP address;
step 308: the terminal equipment judges whether a special configuration file sent by the TFTP server is received within a set first waiting time, if so, the special configuration file which is matched with the TFTP server exists on the TFTP server is shown, step 309 is executed, otherwise, the special configuration file which is not matched with the TFTP server is shown, and step 306 is executed;
in this step, the file may be sent to the terminal device if there is a matched dedicated configuration file on the TFTP server, and the matched dedicated configuration file may be considered to exist only if a file with a preset file name is stored in a specific location of the TFTP server, which may specifically be as follows:
when receiving a GET special configuration file request sent by HGU type terminal equipment, a TFTP server judges whether a file with a set name exists in a preset directory of the TFTP, for example, a file named in an MAC.cfg format of a WAN interface of the HGU type terminal equipment, if so, the TFTP server indicates that a matching special configuration file corresponding to the application exists, and the special configuration file is issued to the HGU type terminal equipment; otherwise, it is considered to be absent.
Step 309: and the HGU type terminal equipment automatically configures the HGU type terminal equipment according to the special configuration file.
Step 310: HGU type terminal equipment obtains the information in option67 field in DHCP offer response message, and automatically initiates a GET general configuration file request to TFTP server according to option66 field information TFTP IP address;
step 311: HGU type terminal equipment judges whether a general configuration file sent by TFTP server is received in the set second waiting time, if so, the step 312 is executed to indicate that the TFTP server has a matched general configuration file, otherwise, the step 313 is executed to indicate that the TFTP server has no matched general configuration file;
in this step, when a matching general configuration file exists on the TFTP server, the file may be issued to the HGU-type terminal device, and when a file with a preset file name is stored in a specific location of the TFTP server, the matching general configuration file may be considered to exist, which may specifically be as follows:
when receiving a GET general configuration file request sent by HGU type terminal equipment, a TFTP server judges whether a file with a set name, such as a file named in default. cfg format, exists in a predetermined directory of the TFTP, if so, the TFTP server indicates that a matching general configuration file corresponding to the application exists, and the TFTP server issues the general configuration file to the HGU type terminal equipment; otherwise, no matching general configuration file is considered.
Step 312: and the HGU type terminal equipment automatically configures the HGU type terminal equipment according to the general configuration file.
Step 313: the HGU type terminal equipment allows the function of remotely accessing the WEB page of the terminal equipment through a WAN port, and loads the management of the HGU type terminal equipment in a WEB mode.
In this step, how to remotely access the WEB page of the terminal device through the WAN port may be implemented in any manner known to those skilled in the art, and is not limited herein.
Therefore, the configuration process of the HGU type terminal equipment during automatic deployment can be completed through the scheme, and a configuration means which can be utilized by the local side equipment is not needed to be known at the terminal equipment side, so that the field configuration process is easier, and the workload of equipment opening and maintenance in the existing network is reduced; meanwhile, the limitation that different versions of the terminal equipment need to be customized to cooperate with automatic deployment and upgrading under different existing network environments is also solved.
Based on the same inventive concept, the embodiment of the invention also provides a computer device and a computer readable storage medium, and as the principle of solving the problems of the devices is similar to a method for returning and configuring configuration information of the home gateway unit type terminal device, the implementation of the devices can refer to the implementation of the method, and repeated parts are not repeated.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following method when executing the computer program:
receiving a DHCP Discover message broadcasted to a network by HGU type terminal equipment on a DHCP server, wherein the message requests to return information of one or a combination of the following options: a uniform resource locator, a user name and a password of TR069, a TFTP IP address and a general configuration file of HGU type terminal equipment;
and returning a DHCP offer response message to the HGU type terminal equipment, wherein the response message comprises selection information which can be used for automatic deployment in a network to which the DHCP server belongs, and the selection information comprises one or the combination of the following information: a uniform resource locator, a user name and a password of TR069, a TFTP IP address and a general configuration file of HGU type terminal equipment.
A computer-readable storage medium storing a computer program that performs a method comprising:
receiving a DHCP Discover message broadcasted to a network by HGU type terminal equipment on a DHCP server, wherein the message requests to return information of one or a combination of the following options: a uniform resource locator, a user name and a password of TR069, a TFTP IP address and a general configuration file of HGU type terminal equipment;
and returning a DHCP offer response message to the HGU type terminal equipment, wherein the response message comprises selection information which can be used for automatic deployment in a network to which the DHCP server belongs, and the selection information comprises one or the combination of the following information: a uniform resource locator, a user name and a password of TR069, a TFTP IP address and a general configuration file of HGU type terminal equipment.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method as described below when executing the computer program.
The embodiment of the invention provides a configuration method of HGU type terminal equipment, which comprises the following steps:
broadcasting a DHCP Discover message to a network on HGU type terminal equipment, wherein the message requests to return information of one or a combination of the following options: a uniform resource locator, a user name and a password of TR069, a TFTP IP address and a general configuration file of HGU type terminal equipment;
receiving a DHCP offer response message returned by a DHCP server, where the response message includes selection information that can be used for automatic deployment in a network to which the DHCP server belongs, and the selection information includes one or a combination of the following information: a uniform resource locator, a user name and a password of TR069, a TFTP IP address and a general configuration file of HGU type terminal equipment;
and configuring the HGU type terminal equipment on the HGU type terminal equipment according to the selection information.
A computer-readable storage medium storing a computer program that performs a method comprising:
broadcasting a DHCP Discover message to a network on HGU type terminal equipment, wherein the message requests to return information of one or a combination of the following options: a uniform resource locator, a user name and a password of TR069, a TFTP IP address and a general configuration file of HGU type terminal equipment;
receiving a DHCP offer response message returned by a DHCP server, where the response message includes selection information that can be used for automatic deployment in a network to which the DHCP server belongs, and the selection information includes one or a combination of the following information: a uniform resource locator, a user name and a password of TR069, a TFTP IP address and a general configuration file of HGU type terminal equipment;
and configuring the HGU type terminal equipment on the HGU type terminal equipment according to the selection information.
In summary, in the technical solution provided in the embodiment of the present invention, the HGU management and configuration issue can be completed for the zero configuration of the HGU, so as to solve the problem that different HGUs are required to customize versions in different environments;
after the scheme is adopted, the configuration issuing of the HGU can be realized no matter in any environment, so that the workload of maintenance and opening is reduced;
furthermore, the option67 carrying general configuration information can meet the condition of temporarily opening the test, so that the terminal equipment completes initial deployment.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (17)

1. A method for returning configuration information of Home Gateway Unit (HGU) type terminal equipment is characterized by comprising the following steps:
receiving a dynamic host configuration protocol discovery DHCP Discover message broadcasted to a network by HGU type terminal equipment on a dynamic host configuration protocol server DHCP server, wherein the message requests to return the following information in the following options: a uniform resource locator, a user name and a password of TR069, a TFTP IP address of a simple file transfer protocol, and a general configuration file of HGU type terminal equipment;
returning a dynamic host configuration protocol providing DHCP offer response message to the HGU type terminal equipment, wherein the response message comprises all selection information which is preset locally and can be used for automatic deployment in a network to which the DHCP server belongs, and the selection information comprises one or the combination of the following information: a uniform resource locator, a user name and a password of TR069, a TFTP IP address and a general configuration file of HGU type terminal equipment;
the HGU type terminal equipment is configured according to the selection information in one of the following modes:
when the selection information comprises a uniform resource locator, a user name and a password of TR069, configuring the HGU type terminal equipment through a TR069 platform according to the uniform resource locator, the user name and the password of TR 069; or the like, or, alternatively,
when the selection information comprises a TFTP IP address, configuring the HGU type terminal equipment through a TFTP server according to the TFTP IP address; or the like, or, alternatively,
when the selection information comprises a general configuration file of the HGU type terminal equipment, configuring the HGU type terminal equipment through a TFTP server according to the general configuration file of the HGU type terminal equipment; or the like, or, alternatively,
and when the selection information comprises an invalid uniform resource locator, a user name and a password of TR069, an invalid TFTP IP address and an invalid general configuration file of the HGU type terminal equipment, configuring the HGU type terminal equipment through remote access of a WAN port.
2. The method of claim 1, wherein the TFTP IP address provided by the DHCP server is a TFTP service address;
the TFTP service is used for providing a special configuration file and/or a general configuration file, wherein the special configuration file is a configuration file aiming at the performance of a specific class of terminal equipment, and the general configuration file is a configuration file meeting the basic opening requirement of the terminal equipment on the performance.
3. A configuration method of HGU type terminal equipment is characterized by comprising the following steps:
broadcasting a DHCP Discover message to a network on HGU type terminal equipment, wherein the message requests to return the following information in the following options: a uniform resource locator, a user name and a password of TR069, a TFTP IP address and a general configuration file of HGU type terminal equipment;
receiving a DHCP offer response message returned by a DHCP server, where the response message includes all locally preset selection information that can be used for automatic deployment in a network to which the DHCP server belongs, and the selection information includes one or a combination of the following information: a uniform resource locator, a user name and a password of TR069, a TFTP IP address and a general configuration file of HGU type terminal equipment;
configuring the HGU type terminal equipment according to the selection information in one of the following modes:
when the selection information comprises a uniform resource locator, a user name and a password of TR069, configuring the HGU type terminal equipment through a TR069 platform according to the uniform resource locator, the user name and the password of TR 069; or the like, or, alternatively,
when the selection information comprises a TFTP IP address, configuring the HGU type terminal equipment through a TFTP server according to the TFTP IP address; or the like, or, alternatively,
when the selection information comprises a general configuration file of the HGU type terminal equipment, configuring the HGU type terminal equipment through a TFTP server according to the general configuration file of the HGU type terminal equipment; or the like, or, alternatively,
and when the selection information comprises an invalid uniform resource locator, a user name and a password of TR069, an invalid TFTP IP address and an invalid general configuration file of the HGU type terminal equipment, configuring the HGU type terminal equipment through remote access of a WAN port.
4. The method of claim 3, wherein the selection information comprises: a uniform resource locator, a username and a password of TR 069;
configuring the HGU type terminal equipment on the HGU type terminal equipment through a TR069 platform according to the selection information, wherein the configuration comprises the following steps:
adding the uniform resource locator, the user name and the password of the TR069 into a URL, the user name and the password corresponding to the HGU type terminal equipment;
sending a dynamic host configuration protocol REQUEST DHCP REQUEST message to a DHCP server, wherein the message carries a uniform resource locator, a user name and a password of TR 069;
after receiving a dynamic host configuration protocol acknowledgement DHCP ACK message returned by a DHCP server to carry out information acknowledgement, allocating an IP address for the terminal equipment through a DHCP protocol;
and after the HGU type terminal equipment is communicated with the TR069 platform, the HGU type terminal equipment is configured through the TR069 platform.
5. The method of claim 4, further comprising:
and carrying all the information in the selection information in a DHCP REQUEST message.
6. The method of claim 4, further comprising:
and when the HGU type terminal equipment cannot communicate with the TR069 platform, configuring the HGU type terminal equipment through the TFTP server when the selection information comprises the TFTP IP address.
7. The method of claim 5, wherein it is determined that the HGU type terminal device cannot communicate with the TR069 platform when the number of failed communications between the HGU type terminal device and the TR069 platform reaches a preset number.
8. The method of claim 3 or 6, wherein the selection information comprises: a TFTP IP address;
configuring the HGU type terminal equipment through a TFTP server on the HGU type terminal equipment according to the selection information, wherein the configuration comprises the following steps:
initiating a request of a GET special configuration file to a TFTP server according to the TFTP IP address;
and when the TFTP server can provide the special configuration file, configuring the HGU type terminal equipment according to the special configuration file provided by the TFTP server.
9. The method of claim 8, further comprising:
and when the TFTP server can not provide the special configuration file and the selection information comprises the general configuration file of the HGU type terminal equipment, configuring the HGU type terminal equipment through the TFTP server.
10. The method as claimed in claim 9, wherein the determining that the TFTP server can provide the dedicated configuration file is performed when the HGU-type terminal device determines that the dedicated configuration file delivered by the TFTP server can be received within the set waiting time.
11. The method of claim 3 or 9, wherein the selection information comprises: a general configuration file of the HGU type terminal equipment;
configuring the HGU type terminal equipment through a TFTP server on the HGU type terminal equipment according to the selection information, wherein the configuration comprises the following steps:
sending a DHCP REQUEST message to a DHCP server, wherein the message carries a TFTP IP address and a general configuration file of HGU type terminal equipment;
after receiving a DHCP ACK message returned by a DHCP server and carrying out information confirmation, allocating an IP address for the terminal equipment through a DHCP protocol;
initiating a request for acquiring a GET general configuration file to a TFTP server;
and when the TFTP server can provide the general configuration file, configuring the HGU type terminal equipment according to the special configuration file provided by the TFTP server.
12. The method of claim 11, wherein the TFTP server is determined based on a TFTP IP address in the selection information.
13. The method of claim 11, further comprising:
and when the TFTP server can not provide the general configuration file, configuring the HGU type terminal equipment through remote access of a WAN port according to the selection information including an invalid uniform resource locator, a user name and a password of TR069, an invalid TFTP IP address and an invalid general configuration file of the HGU type terminal equipment.
14. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1 to 2 when executing the computer program.
15. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the method of any one of claims 1 to 2.
16. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 3 to 13 when executing the computer program.
17. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the method of any of claims 3 to 13.
CN201711160936.0A 2017-11-20 2017-11-20 Method and device for returning and configuring configuration information of home gateway unit type terminal device Active CN107968725B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711160936.0A CN107968725B (en) 2017-11-20 2017-11-20 Method and device for returning and configuring configuration information of home gateway unit type terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711160936.0A CN107968725B (en) 2017-11-20 2017-11-20 Method and device for returning and configuring configuration information of home gateway unit type terminal device

Publications (2)

Publication Number Publication Date
CN107968725A CN107968725A (en) 2018-04-27
CN107968725B true CN107968725B (en) 2021-02-26

Family

ID=62001271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711160936.0A Active CN107968725B (en) 2017-11-20 2017-11-20 Method and device for returning and configuring configuration information of home gateway unit type terminal device

Country Status (1)

Country Link
CN (1) CN107968725B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109361554A (en) * 2018-11-30 2019-02-19 深圳市普威技术有限公司 The method and apparatus of the customized management page and default configuration
CN113014406B (en) * 2019-12-19 2023-10-24 阿里巴巴集团控股有限公司 Equipment deployment method, device, server and storage medium
CN115296960A (en) * 2022-08-04 2022-11-04 上海市共进通信技术有限公司 Method for realizing remote management of home gateway based on DHCP protocol

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127631A (en) * 2006-08-15 2008-02-20 华为技术有限公司 Method and system for managing configuration of network devices
CN101296203A (en) * 2007-04-23 2008-10-29 华为技术有限公司 Device, system and method for automatically configuring application terminal in family network
CN103188107A (en) * 2011-12-31 2013-07-03 北京大唐高鸿数据网络技术有限公司 Automatic finding and configured deployment system and method of terminal devices
CN104461697A (en) * 2014-12-25 2015-03-25 中国科学院信息工程研究所 Automatic setting system and method for batched online IP addresses of virtual machine
CN106888117A (en) * 2017-02-15 2017-06-23 金钱猫科技股份有限公司 A kind of method and system for obtaining network element IP

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127631A (en) * 2006-08-15 2008-02-20 华为技术有限公司 Method and system for managing configuration of network devices
CN101296203A (en) * 2007-04-23 2008-10-29 华为技术有限公司 Device, system and method for automatically configuring application terminal in family network
CN103188107A (en) * 2011-12-31 2013-07-03 北京大唐高鸿数据网络技术有限公司 Automatic finding and configured deployment system and method of terminal devices
CN104461697A (en) * 2014-12-25 2015-03-25 中国科学院信息工程研究所 Automatic setting system and method for batched online IP addresses of virtual machine
CN106888117A (en) * 2017-02-15 2017-06-23 金钱猫科技股份有限公司 A kind of method and system for obtaining network element IP

Also Published As

Publication number Publication date
CN107968725A (en) 2018-04-27

Similar Documents

Publication Publication Date Title
KR102202660B1 (en) A method and apparatus for controlling devices for a smart home service
JP5574544B2 (en) Unified device management method and system
US8612604B2 (en) System and method for server initiation beacon
WO2015143794A1 (en) Creating and upgrading methods, server, terminal, upgrading system, and storage media
CN106549789B (en) Method and system for realizing server installation
CN107968725B (en) Method and device for returning and configuring configuration information of home gateway unit type terminal device
CN102594944B (en) A kind of method of automatic configuration and the network equipment
CN103580921A (en) Automatic network equipment upgrading method and automatic network equipment upgrading system
CN103957117A (en) System and method for achieving intelligent installation of network equipment
CN103442026A (en) Application program processing method, device and system
CN104717282A (en) Method, device and system for controlling intelligent terminals with Android operating system
CN103973474A (en) Network terminal update configuration method
CN108471361B (en) Version upgrading method and device
US20120166519A1 (en) Provisioning a Swarm
EP2693691B1 (en) Method and apparatus for initializing gateway in device management system
WO2020177020A1 (en) Internet of things device discovery method, apparatus, and terminal device
JP2019016070A (en) Device and method for remotely managing device and program therefor
CN106254105A (en) A kind of assembly update method and device
CN105827496A (en) Method and apparatus for managing PE device
CN105530187B (en) Physical address acquisition methods and device
CN110247778B (en) Operating system installation method and device, electronic equipment and storage medium
CN111130865A (en) Network equipment firmware batch upgrading method and system based on two-layer switching
EP2014022B1 (en) Apparatus, system and method for executing discovery in network
CN105763667B (en) A kind of method and device realizing Hadoop host and finding automatically
CN111726367B (en) Method, device, system and equipment for binding access of Customer Premises Equipment (CPE)

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
CB02 Change of applicant information

Address after: 100094 First to Fifth Floors of Building 11, East Yard, No. 10 Wangdong Road, Northwest Haidian District, Beijing

Applicant after: Raisecom Technology Inc.

Address before: 100085 No. 2 Building, No. 28 Shangdi Sixth Street, Haidian District, Beijing

Applicant before: Raisecom Technology Inc.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant