CN114567549A - CPE configuration self-adaption method and device, computer equipment and storage medium - Google Patents

CPE configuration self-adaption method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN114567549A
CN114567549A CN202210210330.8A CN202210210330A CN114567549A CN 114567549 A CN114567549 A CN 114567549A CN 202210210330 A CN202210210330 A CN 202210210330A CN 114567549 A CN114567549 A CN 114567549A
Authority
CN
China
Prior art keywords
acs
format
interaction
normal
configuration
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.)
Granted
Application number
CN202210210330.8A
Other languages
Chinese (zh)
Other versions
CN114567549B (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.)
Guangzhou Tongze Kangwei Technology Co ltd
Original Assignee
Guangzhou Tongze Kangwei Intelligent 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 Guangzhou Tongze Kangwei Intelligent Technology Co ltd filed Critical Guangzhou Tongze Kangwei Intelligent Technology Co ltd
Priority to CN202210210330.8A priority Critical patent/CN114567549B/en
Publication of CN114567549A publication Critical patent/CN114567549A/en
Application granted granted Critical
Publication of CN114567549B publication Critical patent/CN114567549B/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
    • 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
    • H04L41/0886Fully automatic configuration
    • 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/2866Architectures; Arrangements
    • H04L67/30Profiles
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the invention discloses a CPE configuration self-adaption method, a CPE configuration self-adaption device, computer equipment and a storage medium. The method comprises the following steps: powering on when the CPE is started; configuring a TR069 parameter; operating the TR 069; acquiring a fixed path saved by a configuration file; judging whether the generated UCI configuration file exists under the fixed path; if not, generating a UCI configuration item in a self-adaptive manner to form a UCI configuration file; saving the UCI configuration file to the fixed path; and interacting with the ACS according to the UCI configuration file under the fixed path. The method of the embodiment of the invention can realize the configuration self-adaptive management, reduce the cost of manpower and operation and maintenance to the maximum extent, realize the configuration accurate adaptation to the requirements of the ACS of the client, realize the self-adaptive configuration and the access of the CPE for the ACS which is accessed for the first time, manage the CPE in time and improve the configuration efficiency.

Description

CPE configuration self-adaption method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a CPE configuration adaptive method, apparatus, computer device, and storage medium.
Background
With the popularization of VoIP (Voice over IP), IPTV and other multi-user terminal devices, especially while 5G is gradually popularized, the high bandwidth and low delay characteristics of 5G make the user terminal device faster and better experience, but at the same time, the frequency band of 5G is high and the penetration capability is weak, and as a result, it is desired to cover high-quality signals in the same space, and the required 5G user terminal device is certainly much more than 4G, which further expands the demand of the market for 5G user terminal devices, and the configuration and maintenance of the mass user terminal devices become more and more complex, which greatly increases the cost of network product operators, and limits the development speed and scale of broadband access market. TR-069 defines a mechanism for safe automatic Configuration and management, which implements a fault diagnosis function of providing Configuration and dynamic services to a remote terminal device, managing software and firmware images thereof, monitoring states and performance, and saving a large amount of manpower, material resources, and operation and maintenance costs for terminal management of an operator, so that the operator can really perform zero-contact service Configuration, but in the face of different Customer needs and ACS (Auto-Configuration Server) thereof, more and more development and maintenance personnel are required, and under such a large background, the existing CPE (Customer Premise Equipment) Configuration control technology has obvious shortages and limitations.
The existing CPE configuration technology is that each time a software version is released or an ACS is accessed, each configuration item needs to be configured according to the requirements of customers, such as whether ACS authentication allows sending null packets or not, authentication type selection, cookie format alignment and the like; for the access of a new ACS, an engineer is required to joint debug and interface, and the CPE and the ACS can normally interact after configuration items related to each flow in interaction between the CPE and the ACS are confirmed. The technology needs a large amount of manpower and material resources, increases operation and maintenance cost, is easy to make mistakes, can cause function failure once the mistakes are made, and causes serious consequences, for the access of a new ACS, an engineer is needed to joint debugging and docking, each configuration item in interaction with the ACS is confirmed, details are easy to ignore, and the efficiency is very low.
Therefore, it is necessary to design a new method to implement configuration adaptive management, reduce the cost of manpower and operation and maintenance to the maximum extent, achieve configuration accuracy to adapt to the requirements of ACS of customers, for the ACS accessed for the first time, CPE can be adaptively configured and accessed well, manage CPE in time, and improve configuration efficiency.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a CPE configuration self-adaption method, a CPE configuration self-adaption device, computer equipment and a storage medium.
In order to realize the purpose, the invention adopts the following technical scheme: the CPE configuration self-adaption method comprises the following steps:
powering on when the CPE is started;
configuring a TR069 parameter;
operating the TR 069;
acquiring a fixed path saved by a configuration file;
judging whether the generated UCI configuration file exists under the fixed path;
if the generated UCI configuration file does not exist in the fixed path, generating a UCI configuration item in a self-adaptive mode to form the UCI configuration file;
saving the UCI configuration file to the fixed path;
and interacting with the ACS according to the UCI configuration file under the fixed path.
The further technical scheme is as follows: after the step of judging whether the generated UCI configuration file exists in the fixed path, the method further comprises the following steps:
and if the generated UCI configuration file exists in the fixed path, executing the interaction with the ACS according to the UCI configuration file in the fixed path.
The further technical scheme is as follows: the adaptively generating the UCI configuration item to form the UCI configuration file comprises the following steps:
sending an empty data packet to the ACS to acquire the HTTP status code fed back by the ACS;
judging whether the interaction with the ACS is normal or not according to the HTTP status code;
if the interaction with the ACS is normal, sending an authentication parameter to the ACS in a mode of using digest authentication connection to obtain a message fed back by the ACS;
judging whether the interaction with the ACS is normal again according to the message;
if the interaction with the ACS is normal, judging whether the cookie format in the message is a row or not;
if the cookie format in the message is one line, adopting a default one-line format to interact with the ACS;
judging whether an interaction process of adopting a default line format to interact with the ACS is normal or not;
if the interaction process of the ACS interaction by adopting the default row format is normal, saving the cookie format configuration item as the default row format, and saving the cookie format configuration item into a UCI configuration file;
if the interaction process of the default row format and the ACS is not normal, switching to a format of adding a fixed field, and interacting with the ACS by adopting the format of adding the fixed field;
judging whether the interactive process of interaction with the ACS by adopting a format of adding the fixed field is normal or not;
if the interaction process of the ACS interaction by adopting the format of adding the fixed field is normal, saving the cookie format configuration item as the format of adding the fixed field, and saving the cookie format configuration item into the UCI configuration file;
and if the interactive process of the format of adding the fixed field and the ACS is not normal, executing the switching to the format of adding the fixed field, and interacting with the ACS by adopting the format of adding the fixed field.
The further technical scheme is as follows: after the step of judging whether the cookie format in the message is a row, the method further includes:
if the cookie format in the message is not one line, adopting a default two-line format to interact with the ACS;
judging whether an interaction process of interacting with the ACS by adopting a default two-line format is normal or not;
if the interaction process of the ACS interaction by adopting the default two-line format is normal, saving the cookie format configuration item as the default two-line format, and saving the cookie format configuration item into a UCI configuration file;
if the interaction process of the default two-line format and the ACS is not normal, switching to a one-line format of cross collocation, and interacting with the ACS by adopting a one-line format of cross collocation;
judging whether the interaction process of the ACS interaction by adopting a cross collocation one-line format is normal or not;
if the interaction process of the ACS interaction by adopting the cross collocation one-line format is normal, storing the cookie format configuration item into the cross collocation one-line format, and storing the cookie format configuration item into a UCI configuration file;
and if the interaction process of the ACS interaction by adopting the cross collocation in one line format is not normal, executing the switching to the cross collocation in one line format, and interacting with the ACS by adopting the cross collocation in one line format.
The further technical scheme is as follows: after judging whether the interaction with the ACS is normal according to the HTTP status code, the method further comprises the following steps:
and if the interaction with the ACS is abnormal, sending an authentication data packet containing a packet body to the ACS so as to acquire an HTTP state code fed back by the ACS, and executing the HTTP state code to judge whether the interaction with the ACS is normal or not.
The further technical scheme is as follows: the judging whether the interaction with the ACS is normal or not according to the HTTP status code comprises the following steps:
judging whether the HTTP status code is 400;
if the HTTP status code is 400, determining that the interaction with the ACS is abnormal;
and if the HTTP status code is not 400, determining that the interaction with the ACS is normal.
The further technical scheme is as follows: after judging whether the interaction with the ACS is normal again according to the message, the method further comprises the following steps:
and if the interaction with the ACS is abnormal, switching to a basic authentication connection mode to send authentication parameters to the ACS so as to obtain a message fed back by the ACS, and executing the step of judging whether the interaction with the ACS is normal again according to the message.
The invention also provides a CPE configuration self-adaptive device, which comprises:
the power-on processing unit is used for performing power-on operation when the CPE is started;
the parameter configuration unit is used for configuring a TR069 parameter;
an operation unit for operating the TR 069;
the path acquisition unit is used for acquiring a fixed path saved by the configuration file;
the file judging unit is used for judging whether the generated UCI configuration file exists under the fixed path;
the adaptive generating unit is used for adaptively generating a UCI configuration item to form a UCI configuration file if the generated UCI configuration file does not exist in the fixed path;
a saving unit, configured to save the UCI configuration file to the fixed path;
and the interaction unit is used for interacting with the ACS according to the UCI configuration file under the fixed path.
The invention also provides computer equipment which comprises a memory and a processor, wherein the memory is stored with a computer program, and the processor realizes the method when executing the computer program.
The invention also provides a storage medium storing a computer program which, when executed by a processor, implements the method described above.
Compared with the prior art, the invention has the beneficial effects that: the method judges whether the generated UCI configuration file exists or not by acquiring the fixed path stored by the configuration file, and if not, generates the UCI configuration item in a configuration self-adaptive mode and stores the UCI configuration item under the fixed path so as to be convenient for subsequent interaction with the ACS, thereby realizing configuration self-adaptive management, reducing the cost of manpower and operation and maintenance to the maximum extent, configuring the ACS requirement of a precise adaptive customer, leading the CPE to be capable of carrying out self-adaptive configuration and access well for the ACS accessed for the first time, managing the CPE in time and improving the configuration efficiency.
The invention is further described below with reference to the accompanying drawings and specific embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a CPE configuration adaptive method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a CPE configuration adaptive method according to an embodiment of the present invention;
fig. 3 is a schematic sub-flow diagram of a CPE configuration adaptive method according to an embodiment of the present invention;
fig. 4 is a schematic sub-flow diagram of a CPE configuration adaptive method according to an embodiment of the present invention;
fig. 5 is a schematic block diagram of a CPE configuration adaptive apparatus according to an embodiment of the present invention;
fig. 6 is a schematic block diagram of an adaptive generation unit of a CPE configuration adaptive apparatus according to an embodiment of the present invention;
fig. 7 is a schematic block diagram of a first determining subunit of a CPE configuration adaptive apparatus according to an embodiment of the present invention;
FIG. 8 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic view of an application scenario of a CPE configuration adaptive method according to an embodiment of the present invention. Fig. 2 is a schematic flow chart of a CPE configuration adaptive method according to an embodiment of the present invention. The CPE configuration self-adaption method is applied to the CPE. The CPE and the ACS carry out data interaction, and the gateway protocol TR069 is utilized to carry out self-adaptive management on the CPE, so that the ACS connection configuration self-adaptation is realized, and the CPE is managed in real time.
Fig. 2 is a schematic flowchart of a CPE configuration adaptive method according to an embodiment of the present invention. As shown in fig. 2, the method includes the following steps S110 to S180.
And S110, carrying out power-on operation when the CPE is started.
In this embodiment, after the CPE is started, the CPE needs to be powered on, so that the CPE has a hard condition for performing a subsequent operation.
And S120, configuring TR069 parameters.
In this embodiment, the TR069 parameter includes an ACS address, a heartbeat cycle, an authentication password account, and the like.
And S130, operating the TR 069.
In this embodiment, when the CPE starts up and starts to operate TR069 for the first time, the CPE adaptively generates correct UCI configuration, stores and exports the UCI, and the whole process is fast and efficient, and finally, performs normal interaction with the ACS successfully.
And S140, acquiring a fixed path saved by the configuration file.
In this embodiment, the fixed path refers to a path for storing a file corresponding to UCI (unified interface configuration).
S150, judging whether the generated UCI configuration file exists in the fixed path.
In this embodiment, it is checked whether a generated UCI configuration file exists under a fixed path saved in a configuration file, the fixed path is customizable and meets the requirement of not resetting a file during restart, the generated UCI configuration file such as/etc/productive fo/main _ config, etc., it is checked whether the UCI configuration file exists and is not empty, and when the UCI configuration file exists and is not empty, it indicates that the generated UCI configuration file exists under the fixed path; when the UCI configuration file does not exist or is empty, it indicates that there is no generated UCI configuration file in the fixed path, and at this time, a correct UCI configuration file needs to be adaptively generated.
And S160, if the generated UCI configuration file does not exist in the fixed path, generating a UCI configuration item in a self-adaptive mode to form the UCI configuration file.
In this embodiment, the UCI configuration file refers to a file storing a correct UCI configuration item.
When the/etc/production fo/main _ config file is not existed or is empty after the TR069 process is started, the UCI configuration file is generated according to a configuration self-adaptive mode to connect the ACS.
In one embodiment, referring to fig. 3, the step S160 may include steps S160a to S160S.
S160a, sending a null data packet to the ACS to obtain the HTTP status code fed back by the ACS.
In this embodiment, the CPE sends an empty data packet to the ACS, waits for an ACS reply, and if the return HTTP status code after the ACS reply is not 400, that is, the CPE and the ACS are normal, records that the first packet is an empty packet configuration item, for example, the first packet sent by the CPE is an authentication packet without a packet body, and if the ACS reply is 401, it proves that the authentication is not passed, but the ACS accepts that the first packet is an empty packet.
And S160b, judging whether the interaction with the ACS is normal or not according to the HTTP status code.
In an embodiment, referring to fig. 4, the step S160b may include steps S160b 1-S160 b 3.
S160b1, judging whether the HTTP status code is 400;
s160b2, if the HTTP status code is 400, determining that the interaction with the ACS is abnormal;
and S160b3, if the HTTP status code is not 400, determining that the interaction with the ACS is normal.
S160c, if the interaction with ACS is not normal, sending the authentication data packet containing packet body to ACS to obtain the HTTP status code fed back by ACS, and executing the step S160 b.
In this embodiment, if the returned HTTP status code is the error code 400, it is determined that the ACS does not accept the first packet as an empty packet, the CPE sends an authentication data packet including a packet body, so that the CPE interacts with the ACS, and at this time, if the CPE interacts with the ACS normally, it records that the first packet is not an empty packet configuration item; such as: the first packet sent by the CPE is an authentication packet containing a packet body, if the ACS replies 400, the ACS proves that the ACS does not accept the configuration item that the first packet is an empty packet and needs to be changed into the configuration item that the first packet is not an empty packet.
And S160d, if the interaction with the ACS is normal, sending the authentication parameters to the ACS by using a digest authentication connection mode to obtain the message fed back by the ACS.
When the CPE and the ACS are normal in interaction, the CPE can firstly defaultly use digest authentication to connect the ACS, and authentication parameters are carried: using the MD5 algorithm, the fields of username, password, realm, nonce, uri, qop, cnonce, nc, domain, opaque, etc. are used to calculate HA1 using username, password, realm, nonce, cnonce, such as when user [ acs ], pwd [5GCPE ], realm [ TR069 integrity ], nc [00000001], cnonce [12345678123456781234567812345678], calculated HA1 ═ 2c9eb4f1446de06aa85 cb20fbf0434 04 0434d, calculated HA2 using the requested method (generally POST) and uri parameters such as uri [/], HA2 ═ cb87efb867da8b de 74d 26f 839235 f 3403), and finally using HA 1: and (4) nonce: nc: cnonce: and qop: HA2 calculates a response character string, such as HA1[2c9eb4f1446de06aa85ccb20fbf0434 04 0434d ], nonce [1629172191108: ba12ad9cfb9718d1282267e4bdbab914], nc [00000001], nonce [12345678123456781234567812345678], qop [ auth ], HA2 ═ cb87efb867da8b74de35d26f83349203, and the calculated response ═ 320d9d4ea572f8bc03f43cff19818c20 is sent to ACS for verification, waits for an ACS reply, confirms whether the interaction is normal, and if the returned status code is 200/204, the authentication type configuration item is recorded as digest authentication.
S160e, judging whether the interaction with the ACS is normal again according to the message;
s160f, if the interaction with the ACS is not normal, switching to a basic authentication connection mode to send the authentication parameters to the ACS so as to obtain the message fed back by the ACS, and executing the step S160 e.
In this embodiment, if the ACS returns another error code, such as 401, that is, the authentication type is an error, the CPE determines the authentication type according to the "WWW-authentication" character string in the HTTP response, switches to Basic authentication to continue connecting to the ACS, and if the interaction is normal, records that the authentication type configuration item is Basic authentication, and the process continues downward, for example, after the digest authentication fails, the ACS replies that the header includes the WWW-authentication, and that Basic realm is "cpasicgein", and switches to Basic authentication to connect to the ACS.
S160g, if the interaction with the ACS is normal, judging whether the cookie format in the message is a row.
In this embodiment, according to a Set-Cookie in a message replied by an ACS, it is determined whether the obtained Cookie format is one line or two lines, if so, the default one-line format is used for interacting with the ACS, the ACS replies are waited, whether the interaction is normal is determined, if the returned status code is 200/204, the Cookie format configuration item is saved as the default one-line format, and all configuration items are saved in the UCI configuration file.
In the present embodiment, the cookie format description is shown in table 1.
TABLE 1 cookie Format description
Figure BDA0003532973600000091
S160h, if the cookie format in the message is one line, adopting a default one-line format to interact with the ACS;
s160i, judging whether the interaction process of the ACS and the default line format is normal or not;
s160j, if the interaction process of the ACS interaction by adopting the default row format is normal, saving the cookie format configuration item as the default row format, and saving the cookie format configuration item into a UCI configuration file;
s160, 160k, if the interaction process of the default row format and the ACS is not normal, switching to the format of adding the fixed field, and interacting with the ACS by adopting the format of adding the fixed field;
s160, 160l, judging whether the interactive process of interaction with the ACS by adopting the format of adding the fixed field is normal or not;
s160m, if the interactive process between the ACS and the format of adding the fixed field is normal, saving the cookie format configuration item as the format of adding the fixed field, and saving the cookie format configuration item into the UCI configuration file;
if the interactive process of interacting with the ACS in the format of adding the fixed field is not normal, the step S160k is executed.
If the ACS returns other error codes, such as 401, the error codes are abnormal, the format is switched to the format of adding the fixed field, at the moment, the interaction between the CPE and the ACS is normal, the cookie format configuration item is saved to the format of adding the fixed field, and all the configuration items are saved to the UCI configuration file.
S160n, if the cookie format in the message is not one line, adopting a default two-line format to interact with the ACS;
s160o, judging whether the interaction process of the ACS and the default two-line format is normal or not;
s160p, if the interaction process of the ACS interaction by adopting the default two-line format is normal, saving the cookie format configuration item as the default two-line format, and saving the cookie format configuration item into a UCI configuration file;
s160, 160q, if the interaction process of the default two-line format and the ACS is not normal, switching to a cross-matching one-line format, and interacting with the ACS by adopting the cross-matching one-line format;
s160, 160r, judging whether the interaction process of the ACS interaction by adopting a cross collocation one-line format is normal or not;
S160S, if the interaction process of the ACS interaction by adopting the cross collocation one-line format is normal, saving the cookie format configuration item into the cross collocation one-line format, and saving the cookie format configuration item into a UCI configuration file;
if the interaction process of interacting with the ACS in the cross-row format is not normal, the step S160q is executed.
If the cookie format in the message is two lines, sending the cookie format to the ACS by using a default two-line format, waiting for the ACS to reply, determining whether the interaction is normal, if the returned state code is 200/204, saving the cookie format configuration item as the default two-line format, and saving all the configuration items in the UCI configuration file; if the ACS returns other error codes, such as 401, the codes are abnormal, the format is switched to a cross collocation one-line format, at the moment, the interaction is normal, the cookie format configuration item is stored in the cross collocation one-line format, and all the configuration items are stored in the UCI configuration file.
S170, saving the UCI configuration file to the fixed path;
and S180, interacting with an ACS according to the UCI configuration file under the fixed path.
The CPE interacts with the ACS according to the generated UCI configuration file, and then interacts with the ACS according to the generated UCI configuration when the TR069 is restarted at the CPE, so that other operations are not needed, and the CPE is managed in time.
If there is a generated UCI configuration file in the fixed path, the step S180 is executed.
In this embodiment, if there is a UCI configuration file, the configuration file is read for interaction, and the following adaptive configuration is skipped. For example: if the fixed path of the set configuration file is/etc/production fo and the file name is main _ config, but the CPE retrieves that the/etc/production fo/main _ config file exists after starting the TR069 process and the file is not empty, then the ACS is connected according to the UCI configuration file.
The connection of CPE with ACS self-adaptive configuration is realized based on TR069 protocol, and CPE can be managed in real time; the automatic management of CPE configuration is realized, and the method is also suitable for network terminal equipment under the management of other similar communication protocols; for the ACS accessed for the first time, the CPE can be adaptively configured and accessed, and the CPE is managed in real time.
With the popularization of 5G, the demand of people on 5G user terminal equipment is further expanded, with the demand of massive customers, when different customer demands and ACS (auto-configuration server) of the customers are met, more and more development and maintenance personnel are needed, and under the large background, the technology not only can save a large amount of manpower and material resources for operators, but also can be faster and more reliable. Artificial participation is reduced, correct configuration is explored in a self-adaptive mode of the CPE, and the reliability and the effectiveness are greatly improved.
Through the self-adaptation of the configuration, the CPE can be managed in real time, the development process is shortened, and meanwhile, the operation and maintenance cost is also reduced. For the ACS accessed by the CPE for the first time, without knowing the detailed parameters of the ACS configuration, the CPE may automatically explore the configurations of the ACS of the customer on a zero basis, for example, the interaction first package does not support null package, whether the authentication type is digest authentication or basic authentication, whether the cookie format is customized by the customer, and the like, and then save all correct configurations, thereby maximizing efficiency.
In the process of accessing the ACS, when the CPE is started up and the TR069 is operated for the first time, the equipment can generate correct UCI configuration in a self-adaptive mode, store and export the UCI configuration, the whole process is fast and efficient, and finally normal interaction is successfully carried out with the ACS. Before comparison, each special processing configuration item needs to be configured, which is not only cumbersome, but also causes the interaction between the CPE and the ACS to be wrong once the configuration is wrong, and the function related to the TR069 is broken down.
According to the CPE configuration self-adaption method, whether the generated UCI configuration file exists or not is judged by obtaining the fixed path stored by the configuration file, if not, the UCI configuration item is generated in a configuration self-adaption mode and is stored under the fixed path, so that the interaction with the ACS is carried out subsequently, the configuration self-adaption management is realized, the labor and operation and maintenance cost is reduced to the maximum extent, the configuration is accurately adapted to the ACS requirement of a customer, for the ACS accessed for the first time, the CPE can be well adaptively configured and accessed, the CPE is managed in time, and the configuration efficiency is improved.
Fig. 5 is a schematic block diagram of a CPE configuration adaptive apparatus 300 according to an embodiment of the present invention. As shown in fig. 5, the present invention further provides a CPE configuration adaptive apparatus 300 corresponding to the above CPE configuration adaptive method. The CPE configuration adaptation apparatus 300 includes a unit for performing the above-described CPE configuration adaptation method, and the apparatus may be configured in a terminal. Specifically, referring to fig. 5, the CPE configuration adaptive apparatus 300 includes a power-on processing unit 301, a parameter configuration unit 302, an operation unit 303, a path obtaining unit 304, a file determining unit 305, an adaptive generation unit 306, a saving unit 307, and an interaction unit 308.
A power-on processing unit 301, configured to perform a power-on operation when the CPE is powered on; a parameter configuration unit 302, configured to configure a TR069 parameter; an operation unit 303, configured to operate the TR 069; a path obtaining unit 304, configured to obtain a fixed path saved in a configuration file; a file determining unit 305, configured to determine whether there is a generated UCI configuration file in the fixed path; and if the generated UCI configuration file exists in the fixed path, executing the interaction with the ACS according to the UCI configuration file in the fixed path. An adaptive generating unit 306, configured to generate a UCI configuration item adaptively to form a UCI configuration file if the generated UCI configuration file does not exist in the fixed path; a saving unit 307, configured to save the UCI configuration file to the fixed path; and the interaction unit 308 is configured to interact with the ACS according to the UCI configuration file in the fixed path.
In one embodiment, as shown in fig. 6, the adaptation generating unit 306 includes a first transmitting sub-unit 3061, a first judging sub-unit 3062, a second transmitting sub-unit 3063, a second judging sub-unit 3064, a third judging sub-unit 3065, a first interacting sub-unit 3066, a fourth judging sub-unit 3067, a first saving sub-unit 3068, a first switching sub-unit 3069, a fifth judging sub-unit 30610, a second saving sub-unit 30611, a second interacting sub-unit 30612, a sixth judging sub-unit 30613, a third saving sub-unit 30614, a second switching sub-unit 30615, a seventh judging sub-unit 30616, a fourth saving sub-unit 30617, a third transmitting sub-unit 3018, and a third switching sub-unit 3019.
A first sending subunit 3061, configured to send a null data packet to the ACS, so as to obtain the HTTP status code fed back by the ACS; a first judging subunit 3062, configured to judge, according to the HTTP state code, whether the interaction with the ACS is normal; a second sending subunit 3063, configured to send, if the interaction with the ACS is normal, the authentication parameter to the ACS in a digest authentication connection manner, so as to obtain a message fed back by the ACS; a second judging subunit 3064, configured to judge whether the interaction with the ACS is normal again according to the message; a third determining subunit 3065, configured to determine whether the cookie format in the message is a row if the interaction with the ACS is normal; a first interaction subunit 3066, configured to interact with the ACS by using a default line format if the cookie format in the packet is a line; a fourth judging subunit 3067, configured to judge whether an interaction process of interacting with the ACS using the default row format is normal; a first storing subunit 3068, configured to, if the interaction process between the ACS and the default row format is normal, store the cookie format configuration item as the default row format, and store the cookie format configuration item in the UCI configuration file; a first switching subunit 3069, configured to switch to a format of adding a fixed field if an interaction process of interacting with the ACS using the default row format is not normal, and interact with the ACS using the format of adding the fixed field; a fifth judging subunit 30610, configured to judge whether an interaction process of interacting with the ACS in the format of adding the fixed field is normal; and if the interactive process of the format of adding the fixed field and the ACS is not normal, executing the switching to the format of adding the fixed field, and interacting with the ACS by adopting the format of adding the fixed field. A second saving subunit 30611, configured to, if the interaction process between the ACS and the format in which the fixed field is added is normal, save the cookie format configuration item as the format in which the fixed field is added, and save the cookie format configuration item in the UCI configuration file; a second interaction subunit 30612, configured to interact with the ACS by using a default two-line format if the cookie format in the message is not one line; a sixth judging subunit 30613, configured to judge whether the interaction process with the ACS using the default two-line format is normal; a third saving subunit 30614, configured to, if the interaction process between the ACS and the default two-line format is normal, save the cookie format configuration item as the default two-line format, and save the cookie format configuration item in the UCI configuration file; a second switching subunit 30615, configured to switch to a cross-match one-line format if the interaction process with the ACS using the default two-line format is not normal, and interact with the ACS using the cross-match one-line format; a seventh judging subunit 30616, configured to judge whether an interaction process of interacting with the ACS in a cross-collocation as a line is normal; and if the interactive process of the ACS interaction by adopting the cross-collocation one-line format is not normal, executing the switching to the cross-collocation one-line format, and interacting with the ACS by adopting the cross-collocation one-line format. A fourth saving subunit 30617, configured to, if the interaction process between the ACS and the cross-match one-line format is normal, save the cookie format configuration item in the cross-match one-line format, and save the cookie format configuration item in the UCI configuration file; and a third sending subunit 3018, configured to send, if the interaction with the ACS is not normal, an authentication data packet including a packet body to the ACS, to obtain an HTTP state code fed back by the ACS, and execute the HTTP state code to determine whether the interaction with the ACS is normal. And a third switching subunit 3019, configured to switch to a basic authentication connection mode to send an authentication parameter to the ACS if the interaction with the ACS is not normal, to obtain a message fed back by the ACS, and execute the step of determining whether the interaction with the ACS is normal again according to the message.
In one embodiment, as shown in FIG. 7, the first determination subunit 3062 includes a state code determination module 30621, a first determination module 30622, and a second determination module 30623.
A status code determination module 30621, configured to determine whether the HTTP status code is 400; a first determination module 30622, configured to determine that the interaction with the ACS is not normal if the HTTP status code is 400; a second determining module 30623, configured to determine that the interaction with the ACS is normal if the HTTP status code is not 400.
It should be noted that, as can be clearly understood by those skilled in the art, the specific implementation process of the CPE configuration adaptive apparatus 300 and each unit may refer to the corresponding description in the foregoing method embodiment, and for convenience and conciseness of description, no further description is provided herein.
The CPE configuration adaptation apparatus 300 described above may be implemented in the form of a computer program that can be run on a computer device as shown in fig. 8.
Referring to fig. 8, fig. 8 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 may be a terminal, wherein the terminal may be an electronic device with a communication function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device.
Referring to fig. 8, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer programs 5032 include program instructions that, when executed, cause the processor 502 to perform a CPE configuration adaptation method.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the execution of the computer program 5032 in the non-volatile storage medium 503, and when executed by the processor 502, the computer program 5032 causes the processor 502 to perform a CPE configuration adaptation method.
The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 8 is a block diagram of only a portion of the configuration relevant to the present teachings and does not constitute a limitation on the computer device 500 to which the present teachings may be applied, and that a particular computer device 500 may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
Wherein the processor 502 is configured to run the computer program 5032 stored in the memory to perform the steps of:
powering on when the CPE is started; configuring a TR069 parameter; operating the TR 069; acquiring a fixed path stored by a configuration file; judging whether the generated UCI configuration file exists under the fixed path; if the generated UCI configuration file does not exist in the fixed path, generating a UCI configuration item in a self-adaptive mode to form the UCI configuration file; saving the UCI configuration file to the fixed path; and interacting with the ACS according to the UCI configuration file under the fixed path.
In an embodiment, after implementing the step of determining whether there is a generated UCI profile in the fixed path, the processor 502 further implements the following steps:
and if the generated UCI configuration file exists in the fixed path, executing the interaction with the ACS according to the UCI configuration file in the fixed path.
In an embodiment, after the step of adaptively generating the UCI configuration items to form the UCI configuration file, the processor 502 further implements the following steps:
sending an empty data packet to the ACS to acquire the HTTP status code fed back by the ACS; judging whether the interaction with the ACS is normal or not according to the HTTP status code; if the interaction with the ACS is normal, sending an authentication parameter to the ACS in a mode of using digest authentication connection to obtain a message fed back by the ACS; judging whether the interaction with the ACS is normal again according to the message; if the interaction with the ACS is normal, judging whether the cookie format in the message is a line or not; if the cookie format in the message is one line, adopting a default one-line format to interact with the ACS; judging whether an interaction process of adopting a default line format to interact with the ACS is normal or not; if the interaction process of the ACS interaction by adopting the default row format is normal, saving the cookie format configuration item as the default row format, and saving the cookie format configuration item into a UCI configuration file; if the interaction process of the default row format and the ACS is not normal, switching to a format of adding a fixed field, and interacting with the ACS by adopting the format of adding the fixed field; judging whether the interactive process of interaction with the ACS by adopting a format of adding the fixed field is normal or not; if the interactive process of the ACS interaction by adopting the format of adding the fixed field is normal, saving the cookie format configuration item as the format of adding the fixed field, and saving the cookie format configuration item into the UCI configuration file; and if the interactive process of the format of adding the fixed field and the ACS is not normal, executing the switching to the format of adding the fixed field, and interacting with the ACS by adopting the format of adding the fixed field.
In an embodiment, after implementing the step of determining whether the cookie format in the packet is a line, the processor 502 further implements the following steps:
if the cookie format in the message is not one line, adopting a default two-line format to interact with the ACS; judging whether an interaction process of interacting with the ACS by adopting a default two-line format is normal or not; if the interaction process of the ACS interaction by adopting the default two-line format is normal, saving the cookie format configuration item as the default two-line format, and saving the cookie format configuration item into a UCI configuration file; if the interaction process of the default two-line format and the ACS is not normal, switching to a one-line format of cross collocation, and interacting with the ACS by adopting a one-line format of cross collocation; judging whether the interaction process of the ACS interaction by adopting a cross collocation one-line format is normal or not; if the interaction process of the ACS interaction by adopting the cross collocation one-line format is normal, storing the cookie format configuration item into the cross collocation one-line format, and storing the cookie format configuration item into a UCI configuration file; and if the interaction process of the ACS interaction by adopting the cross collocation in one line format is not normal, executing the switching to the cross collocation in one line format, and interacting with the ACS by adopting the cross collocation in one line format.
In an embodiment, after implementing the step of determining whether the interaction with the ACS is normal according to the HTTP status code, the processor 502 further implements the following steps:
and if the interaction with the ACS is abnormal, sending an authentication data packet containing the packet body to the ACS to acquire the HTTP status code fed back by the ACS, and executing the HTTP status code to judge whether the interaction with the ACS is normal or not.
In an embodiment, when implementing the step of determining whether the interaction with the ACS is normal according to the HTTP status code, the processor 502 specifically implements the following steps:
judging whether the HTTP status code is 400; if the HTTP status code is 400, determining that the interaction with the ACS is abnormal; and if the HTTP status code is not 400, determining that the interaction with the ACS is normal.
In an embodiment, after the step of determining whether the interaction with the ACS is normal again according to the packet is implemented, the processor 502 further implements the following steps:
if the interaction with the ACS is abnormal, switching to a basic authentication connection mode to send authentication parameters to the ACS so as to obtain a message fed back by the ACS, and executing the step of judging whether the interaction with the ACS is normal again according to the message.
It should be understood that in the embodiment of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program includes program instructions, and the computer program may be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program, when executed by a processor, causes the processor to perform the steps of:
when the CPE is started up, the power-on operation is carried out; configuring a TR069 parameter; operating the TR 069; acquiring a fixed path saved by a configuration file; judging whether the generated UCI configuration file exists under the fixed path; if the generated UCI configuration file does not exist in the fixed path, generating a UCI configuration item in a self-adaptive mode to form the UCI configuration file; saving the UCI configuration file to the fixed path; and interacting with the ACS according to the UCI configuration file under the fixed path.
In an embodiment, after the processor executes the computer program to implement the step of determining whether there is a generated UCI profile in the fixed path, the processor further implements the following steps:
and if the generated UCI configuration file exists in the fixed path, executing the interaction with the ACS according to the UCI configuration file in the fixed path.
In an embodiment, after the step of executing the computer program to implement the adaptive generating of the UCI configuration items to form the UCI configuration file, the processor further implements the steps of:
sending an empty data packet to the ACS to acquire the HTTP status code fed back by the ACS; judging whether the interaction with the ACS is normal or not according to the HTTP status code; if the interaction with the ACS is normal, sending an authentication parameter to the ACS in a mode of using digest authentication connection to obtain a message fed back by the ACS; judging whether the interaction with the ACS is normal again according to the message; if the interaction with the ACS is normal, judging whether the cookie format in the message is a row or not; if the cookie format in the message is one line, adopting a default one-line format to interact with the ACS; judging whether an interaction process of adopting a default line format to interact with the ACS is normal or not; if the interaction process of the ACS interaction by adopting the default row format is normal, saving the cookie format configuration item as the default row format, and saving the cookie format configuration item into a UCI configuration file; if the interaction process of the default row format and the ACS is not normal, switching to a format of adding a fixed field, and interacting with the ACS by adopting the format of adding the fixed field; judging whether the interactive process of interaction with the ACS by adopting a format of adding the fixed field is normal or not; if the interaction process of the ACS interaction by adopting the format of adding the fixed field is normal, saving the cookie format configuration item as the format of adding the fixed field, and saving the cookie format configuration item into the UCI configuration file; and if the interactive process of the ACS interaction by adopting the format of adding the fixed field is not normal, executing the switching to the format of adding the fixed field, and interacting with the ACS by adopting the format of adding the fixed field.
In one embodiment, after the processor executes the computer program to implement the step of determining whether the cookie format in the packet is a line, the processor further implements the following steps:
if the cookie format in the message is not one line, adopting a default two-line format to interact with the ACS; judging whether an interaction process of interacting with the ACS by adopting a default two-line format is normal or not; if the interaction process of the ACS interaction by adopting the default two-line format is normal, saving the cookie format configuration item as the default two-line format, and saving the cookie format configuration item into a UCI configuration file; if the interaction process of the default two-line format and the ACS is not normal, switching to a one-line format of cross collocation, and interacting with the ACS by adopting a one-line format of cross collocation; judging whether the interaction process of the ACS interaction by adopting a cross collocation one-line format is normal or not; if the interaction process of the ACS interaction by adopting the cross collocation one-line format is normal, storing the cookie format configuration item into the cross collocation one-line format, and storing the cookie format configuration item into a UCI configuration file; and if the interactive process of the ACS interaction by adopting the cross-collocation one-line format is not normal, executing the switching to the cross-collocation one-line format, and interacting with the ACS by adopting the cross-collocation one-line format.
In an embodiment, after the step of determining whether the interaction with the ACS is normal according to the HTTP status code is implemented by the processor by executing the computer program, the following steps are further implemented:
and if the interaction with the ACS is abnormal, sending an authentication data packet containing a packet body to the ACS so as to acquire an HTTP state code fed back by the ACS, and executing the HTTP state code to judge whether the interaction with the ACS is normal or not.
In an embodiment, when the processor executes the computer program to implement the step of determining whether the interaction with the ACS is normal according to the HTTP status code, the following steps are specifically implemented:
judging whether the HTTP status code is 400; if the HTTP status code is 400, determining that the interaction with the ACS is abnormal; and if the HTTP status code is not 400, determining that the interaction with the ACS is normal.
In an embodiment, after the processor executes the computer program to implement the step of determining again whether the interaction with the ACS is normal according to the message, the processor further implements the following steps:
and if the interaction with the ACS is abnormal, switching to a basic authentication connection mode to send authentication parameters to the ACS so as to obtain a message fed back by the ACS, and executing the step of judging whether the interaction with the ACS is normal again according to the message.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media of program codes.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

  1. A CPE configuration adaptation method, comprising:
    powering on when the CPE is started;
    configuring a TR069 parameter;
    operating the TR 069;
    acquiring a fixed path saved by a configuration file;
    judging whether the generated UCI configuration file exists under the fixed path;
    if the generated UCI configuration file does not exist in the fixed path, generating a UCI configuration item in a self-adaptive mode to form the UCI configuration file;
    saving the UCI configuration file to the fixed path;
    and interacting with the ACS according to the UCI configuration file under the fixed path.
  2. 2. The CPE configuration adaptation method according to claim 1, wherein after determining whether the generated UCI configuration file exists in the fixed path, the method further comprises:
    and if the generated UCI configuration file exists in the fixed path, executing the interaction with the ACS according to the UCI configuration file in the fixed path.
  3. 3. The CPE configuration adaptation method according to claim 1, wherein the adaptively generating UCI configuration items to form a UCI configuration file comprises:
    sending an empty data packet to the ACS to acquire the HTTP status code fed back by the ACS;
    judging whether the interaction with the ACS is normal or not according to the HTTP status code;
    if the interaction with the ACS is normal, sending an authentication parameter to the ACS in a mode of using digest authentication connection to obtain a message fed back by the ACS;
    judging whether the interaction with the ACS is normal again according to the message;
    if the interaction with the ACS is normal, judging whether the cookie format in the message is a line or not;
    if the cookie format in the message is one line, adopting a default one-line format to interact with the ACS;
    judging whether an interaction process of adopting a default line format to interact with the ACS is normal or not;
    if the interaction process of the ACS interaction by adopting the default row format is normal, saving the cookie format configuration item as the default row format, and saving the cookie format configuration item into a UCI configuration file;
    if the interaction process of the default row format and the ACS is not normal, switching to a format for adding the fixed field, and interacting with the ACS by adopting the format for adding the fixed field;
    judging whether the interactive process of interaction with the ACS by adopting a format of adding the fixed field is normal or not;
    if the interaction process of the ACS interaction by adopting the format of adding the fixed field is normal, saving the cookie format configuration item as the format of adding the fixed field, and saving the cookie format configuration item into the UCI configuration file;
    and if the interactive process of the format of adding the fixed field and the ACS is not normal, executing the switching to the format of adding the fixed field, and interacting with the ACS by adopting the format of adding the fixed field.
  4. 4. The CPE configuration adaptation method according to claim 3, wherein after determining whether a cookie format in the packet is a row, the method further comprises:
    if the cookie format in the message is not one line, adopting a default two-line format to interact with the ACS;
    judging whether an interaction process of interacting with the ACS by adopting a default two-line format is normal or not;
    if the interactive process of the two-line default format and the ACS is normal, saving the cookie format configuration item as the two-line default format, and saving the cookie format configuration item into a UCI configuration file;
    if the interaction process of the default two-line format and the ACS is not normal, switching to a one-line format of cross collocation, and interacting with the ACS by adopting a one-line format of cross collocation;
    judging whether the interaction process of the ACS interaction by adopting a cross collocation one-line format is normal or not;
    if the interaction process of the ACS interaction by adopting the cross collocation one-line format is normal, storing the cookie format configuration item into the cross collocation one-line format, and storing the cookie format configuration item into a UCI configuration file;
    and if the interaction process of the ACS interaction by adopting the cross collocation in one line format is not normal, executing the switching to the cross collocation in one line format, and interacting with the ACS by adopting the cross collocation in one line format.
  5. 5. The CPE configuration adaptation method according to claim 3, wherein after determining whether interaction with the ACS is normal based on the HTTP status code, the method further comprises:
    and if the interaction with the ACS is abnormal, sending an authentication data packet containing a packet body to the ACS so as to acquire an HTTP state code fed back by the ACS, and executing the HTTP state code to judge whether the interaction with the ACS is normal or not.
  6. 6. The CPE configuration adaptation method according to claim 3, wherein the determining whether interaction with an ACS is normal based on the HTTP status code comprises:
    judging whether the HTTP status code is 400;
    if the HTTP status code is 400, determining that the interaction with the ACS is abnormal;
    and if the HTTP status code is not 400, determining that the interaction with the ACS is normal.
  7. 7. The CPE configuration adaptive method according to claim 3, wherein after re-determining whether interaction with an ACS is normal based on the message, the method further comprises:
    if the interaction with the ACS is abnormal, switching to a basic authentication connection mode to send authentication parameters to the ACS so as to obtain a message fed back by the ACS, and executing the step of judging whether the interaction with the ACS is normal again according to the message.
  8. CPE configuration adaptation apparatus, comprising:
    the power-on processing unit is used for performing power-on operation when the CPE is started;
    the parameter configuration unit is used for configuring a TR069 parameter;
    an operation unit for operating the TR 069;
    the path acquisition unit is used for acquiring a fixed path saved by the configuration file;
    the file judging unit is used for judging whether the generated UCI configuration file exists under the fixed path;
    the adaptive generating unit is used for adaptively generating a UCI configuration item to form a UCI configuration file if the generated UCI configuration file does not exist in the fixed path;
    a saving unit, configured to save the UCI configuration file to the fixed path;
    and the interaction unit is used for interacting with the ACS according to the UCI configuration file under the fixed path.
  9. 9. A computer device, characterized in that the computer device comprises a memory, on which a computer program is stored, and a processor, which when executing the computer program implements the method according to any of claims 1 to 7.
  10. 10. A storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 7.
CN202210210330.8A 2022-03-04 2022-03-04 CPE configuration self-adaption method, device, computer equipment and storage medium Active CN114567549B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210210330.8A CN114567549B (en) 2022-03-04 2022-03-04 CPE configuration self-adaption method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210210330.8A CN114567549B (en) 2022-03-04 2022-03-04 CPE configuration self-adaption method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114567549A true CN114567549A (en) 2022-05-31
CN114567549B CN114567549B (en) 2023-05-26

Family

ID=81718594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210210330.8A Active CN114567549B (en) 2022-03-04 2022-03-04 CPE configuration self-adaption method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114567549B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859160A (en) * 2005-04-30 2006-11-08 华为技术有限公司 Method and its system for managing user stationed equipment configuration
CN102624557A (en) * 2012-03-09 2012-08-01 浪潮通信信息系统有限公司 Method for automatic check, configuration and backup for client-side equipment configuration
CN106533803A (en) * 2016-12-21 2017-03-22 锐捷网络股份有限公司 CPE (Customer Premise Equipment) configuration method and device based on TR069 protocol
CN108683740A (en) * 2018-05-18 2018-10-19 烽火通信科技股份有限公司 A kind of method and system of the promotion configuration access speed based on UCI
CN108683537A (en) * 2018-05-18 2018-10-19 烽火通信科技股份有限公司 The configuring management method and system of home gateway node based on UCI files
CN112953764A (en) * 2021-01-29 2021-06-11 深圳数联天下智能科技有限公司 Networking terminal configuration method and device, networking terminal and computer storage medium
WO2022039835A1 (en) * 2020-08-19 2022-02-24 Intel Corporation Ue identification using its source ip address

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859160A (en) * 2005-04-30 2006-11-08 华为技术有限公司 Method and its system for managing user stationed equipment configuration
CN102624557A (en) * 2012-03-09 2012-08-01 浪潮通信信息系统有限公司 Method for automatic check, configuration and backup for client-side equipment configuration
CN106533803A (en) * 2016-12-21 2017-03-22 锐捷网络股份有限公司 CPE (Customer Premise Equipment) configuration method and device based on TR069 protocol
CN108683740A (en) * 2018-05-18 2018-10-19 烽火通信科技股份有限公司 A kind of method and system of the promotion configuration access speed based on UCI
CN108683537A (en) * 2018-05-18 2018-10-19 烽火通信科技股份有限公司 The configuring management method and system of home gateway node based on UCI files
WO2022039835A1 (en) * 2020-08-19 2022-02-24 Intel Corporation Ue identification using its source ip address
CN112953764A (en) * 2021-01-29 2021-06-11 深圳数联天下智能科技有限公司 Networking terminal configuration method and device, networking terminal and computer storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CLEVERLEMON: "UCI配置文件介绍及配置", 《HTTPS://BLOG.CSDN.NET/CLEVERLEMON/ARTICLE/DETAILS/118692593?OPS_REQUEST_MISC=%257B%2522REQUEST%255FID%2522%253A%2522168204463516800180610440%2522%252C%2522SCM%2522%253A%252220140713.130102334.PC%255FALL.%2522%257D&REQUEST_ID=168204463516800180610440 *
JASON WALLS: "TR-069: A Brief Overview", 《IEEE》 *

Also Published As

Publication number Publication date
CN114567549B (en) 2023-05-26

Similar Documents

Publication Publication Date Title
CN101605108B (en) Method, system and apparatus for instant communication
WO2021121370A1 (en) Message loss detection method and apparatus for message queue
CN109586969A (en) Content distributing network disaster recovery method, device, computer equipment and storage medium
CN111880852B (en) Operating system initialization method, system, computer device and storage medium
CN104935621A (en) Remote monitoring system and remote monitoring method
CN113114760A (en) Construction method of remote Internet of things platform based on heterogeneous equipment
US20150378719A1 (en) Information processing device and program updating method
JP5813891B2 (en) Processing method and processing apparatus for automatically setting Internet access mode
WO2009009968A1 (en) A method, device and system for acquiring login information
CN101656633A (en) Method for testing network in instant messaging device
CN111526046A (en) Method, device, equipment and storage medium for setting BMC (baseboard management controller) time
CN115314540A (en) Request response timeout processing method, device, equipment and medium
US7899680B2 (en) Storage of administrative data on a remote management device
US20150120903A1 (en) System for monitoring XMPP-based communication services
CN114567549A (en) CPE configuration self-adaption method and device, computer equipment and storage medium
EP3065387A1 (en) Method and device for achieving matching between acquisition system and analysis system
CN101136756A (en) Electric self-checking method, system and BMC chip on network long-range control host machine
US20220109607A1 (en) Customer premises equipment configuration management method and apparatus
US8977899B1 (en) Assisted device recovery
EP3158713A1 (en) Cloud service supplementing embedded natural language processing engine
CN116232617A (en) Network anomaly monitoring method, device, equipment and storage medium
CN114925135A (en) Data export method, device, system, electronic equipment and storage medium
CN112153113A (en) Method, system, equipment and product for improving data transmission quality of host interface
CN114442765A (en) Fan control method for computer equipment, baseboard management controller and storage medium
CN110968491B (en) Operation and maintenance operation method 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
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 510000 room 1301, No. 37, Jinlong street, Xiangjiang financial and business center, Nansha District, Guangzhou City, Guangdong Province (office only)

Patentee after: Guangzhou Tongze Kangwei Technology Co.,Ltd.

Address before: 510000 room 1301, No. 37, Jinlong street, Xiangjiang financial and business center, Nansha District, Guangzhou City, Guangdong Province (office only)

Patentee before: Guangzhou Tongze Kangwei Intelligent Technology Co.,Ltd.