Router, ONU and gateway alarm information acquisition method based on CWMP

By using the CWMP protocol and multiple encryption technologies between smart terminals and ACS to process alarm information, the problems of low efficiency and insufficient security of the SNMP protocol are solved, the timely and safe transmission of alarm information is realized, and the timeliness of obtaining alarm information is improved. and security.

CN118677749APending Publication Date: 2024-09-20FUJIAN NEWLAND COMM SCI TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410765885.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

The existing SNMP protocol is inefficient and not real-time enough when obtaining intelligent terminal alarm information, and there is a risk of plain text theft and tampering during the transmission process.

Method used

The SOAP format based on the CWMP protocol is used to generate and encrypt alarm notifications and reporting instructions, which are transmitted in real time between the smart terminal and the ACS through the HTTP protocol, and are encrypted based on the data model and alarm information specifications, including RC2 and 3DES. , ECDSA, SHA-3, AES-256, RSA, HKDF, ChaCha20, AES-GCM, ECDH, ElGamal and ECDSA and other multiple encryption measures.

Benefits of technology

It significantly improves the timeliness and security of obtaining alarm information, ensures the security of alarm notifications, reporting instructions and lists during transmission, prevents plain text theft and tampering, and facilitates qualitative recording and traceability of alarm events.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118677749A
    Figure CN118677749A
Patent Text Reader

Abstract

The invention provides a router, ONU and gateway alarm information acquisition method based on a CWMP in the technical field of intelligent terminal management. The method comprises the following steps: S1, defining a data model specification and an alarm information specification of the CWMP; s2, when the intelligent terminal detects an alarm event based on the alarm information specification, encrypting the generated alarm notification to obtain an encrypted notification uploading ACS; s3, the ACS decrypts the encrypted notification to obtain the alarm notification, and generates an alarm reporting instruction; s4, the ACS encrypts the alarm reporting instruction to obtain an encrypted instruction and sends the encrypted instruction to the intelligent terminal; s5, the intelligent terminal decrypts the encryption instruction to obtain an alarm reporting instruction, and based on the alarm reporting instruction and the alarm information corresponding to the data model standard matching alarm event, an alarm list is generated; s6, the intelligent terminal encrypts the alarm list into an encrypted list and uploads the encrypted list to an ACS; and S7, the ACS decrypts the encrypted list to obtain an alarm list. The method has the advantages that the timeliness and the safety of alarm information acquisition are greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent terminal management, and in particular to a method for obtaining alarm information of routers, ONUs and gateways based on CWMP. Background Art

[0002] During the operation of intelligent terminals such as routers, ONUs, and gateways, alarm information is inevitably generated. The SNMP protocol (Simple Network Management Protocol) is usually used to obtain the alarm information of intelligent terminals. However, the SNMP protocol has the following limitations in terms of alarm information acquisition: the SNMP protocol usually requires network administrators to periodically poll intelligent terminals to obtain alarm information, which not only consumes a lot of network resources, but is also inefficient and not real-time enough. It cannot reflect the latest status of intelligent terminals in real time, and traditional alarm information is not encrypted during transmission, which poses a risk of being stolen and tampered with in plain text.

[0003] Therefore, how to provide a method for obtaining alarm information of routers, ONUs, and gateways based on CWMP to improve the timeliness and security of alarm information acquisition has become a technical problem that needs to be solved urgently. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a method for obtaining alarm information of routers, ONUs and gateways based on CWMP, so as to improve the timeliness and security of obtaining alarm information.

[0005] The present invention is implemented as follows: a method for obtaining alarm information of a router, ONU, and gateway based on CWMP, comprising the following steps:

[0006] Step S1, the intelligent terminal and the ACS define the data model specification and alarm information specification of the CWMP protocol; the intelligent terminal is a router, ONU or gateway;

[0007] Step S2: When the intelligent terminal detects an alarm event based on the alarm information specification, it generates an alarm notification based on the SOAP format of the CWMP protocol, encrypts the alarm notification to obtain an encrypted notification, and uploads the encrypted notification to the ACS through the HTTP protocol;

[0008] Step S3, the ACS decrypts the received encrypted notification to obtain an alarm notification, and generates an alarm reporting instruction based on the SOAP format of the CWMP protocol;

[0009] Step S4, the ACS encrypts the alarm reporting instruction to obtain an encrypted instruction, and sends the encrypted instruction to the intelligent terminal through the HTTP protocol;

[0010] Step S5: the intelligent terminal decrypts the received encrypted instruction to obtain an alarm reporting instruction, matches the alarm information corresponding to the alarm event based on the alarm reporting instruction and the data model specification, and generates an alarm list based on the alarm information;

[0011] Step S6: The intelligent terminal encrypts the alarm list into an encrypted list, and uploads the encrypted list to the ACS via the HTTP protocol;

[0012] Step S7: The ACS decrypts the received encrypted list to obtain an alarm list, and displays and analyzes the alarm list.

[0013] Further, in step S1, the data model specification includes at least alarm parameters, alarm quantity, and current alarm list;

[0014] The alarm information specification includes at least the alarm name, alarm number, alarm level, and trigger condition;

[0015] The alarm names include at least device restart, port unavailable, WLAN hardware failure, high CPU usage, administrator login error times exceeded, file server unreachable, username and password error, file download timeout, server has no specified file, configuration file update failure, configuration file unavailable, software upgrade failure, and DDNS server unreachable.

[0016] Furthermore, the step S2 is specifically as follows:

[0017] When the intelligent terminal detects an alarm event based on the alarm information specification, it generates an alarm notification carrying an event code based on the SOAP format of the CWMP protocol, and the event code is 6CONNECT ION REQUEST;

[0018] The intelligent terminal encrypts the alarm notification through the RC2 algorithm to obtain first-level encrypted data, randomly generates a character string of a specified length, adds the character string to a specified position of the first-level encrypted data to obtain second-level encrypted data, encrypts the second-level encrypted data through the 3DES algorithm to obtain third-level encrypted data, divides the third-level encrypted data based on a preset division ratio and exchanges the front-to-back order to obtain fourth-level encrypted data, maps the fourth-level encrypted data through a preset mapping rule to obtain fifth-level encrypted data, encrypts the fifth-level encrypted data through the ECDSA algorithm to obtain an encrypted notification, and uploads the encrypted notification to the ACS in real time through the HTTP protocol.

[0019] Furthermore, the step S3 is specifically as follows:

[0020] The ACS receives the encrypted notification, decrypts the encrypted notification by using the ECDSA algorithm to obtain level-five encrypted data, maps the level-five encrypted data by using a preset mapping rule to obtain level-four encrypted data, divides the level-four encrypted data based on the inverse of a preset division ratio and swaps the order to obtain level-three encrypted data, decrypts the level-three encrypted data by using the 3DES algorithm to obtain level-two encrypted data, locates a character string in the level-two encrypted data by using a specified position and a specified length, removes the character string from the level-two encrypted data to obtain level-one encrypted data, and decrypts the level-one encrypted data by using the RC2 algorithm to obtain an alarm notification;

[0021] The ACS generates an alarm reporting instruction that carries the GetParameterValues ​​RPC method based on the SOAP format of the CWMP protocol.

[0022] Furthermore, the step S4 is specifically as follows:

[0023] The ACS performs a hash calculation on the alarm reporting instruction through the SHA-3 algorithm to obtain a first hash value, obtains a current timestamp, encrypts the alarm reporting instruction, the first hash value and the timestamp through the AES-256 algorithm to obtain a first encrypted string, right-shifts each character in the first encrypted string based on a preset displacement to obtain a second encrypted string, replaces each character in the second encrypted string based on a preset mapping rule to generate a third encrypted string, encrypts the third encrypted string through the RSA algorithm to obtain an encrypted instruction, and sends the encrypted instruction to the smart terminal in real time through the HTTP protocol.

[0024] Furthermore, the step S5 is specifically as follows:

[0025] The intelligent terminal receives the encrypted instruction, decrypts the encrypted instruction through the RSA algorithm to obtain a third encrypted string, replaces each character in the third encrypted string based on a preset mapping rule to generate a second encrypted string, shifts each character in the second encrypted string to the left based on a preset displacement to obtain a first encrypted string, decrypts the first encrypted string through the AES-256 algorithm to obtain an alarm reporting instruction, a first hash value and a timestamp, performs a timeliness check through the timestamp, and then performs an integrity check through the first hash value;

[0026] The intelligent terminal matches the alarm information corresponding to the alarm event based on the alarm reporting instruction and the data model specification, and generates an alarm list based on the alarm information;

[0027] The alarm information includes at least the alarm name, alarm number, alarm level, alarm time, serial number, and installation location.

[0028] Furthermore, the step S6 is specifically as follows:

[0029] The intelligent terminal performs MAC calculation on the alarm list to obtain a MAC value, generates a random number as a seed of the symmetric key through the HKDF algorithm, generates a symmetric key through the ChaCha20 algorithm and the seed, encrypts the alarm list through the ChaCha20 algorithm and the symmetric key to obtain ciphertext data, encapsulates the symmetric key through the AES-GCM algorithm, encrypts the encapsulated symmetric key through the RSA algorithm to obtain an encryption key, encrypts the ciphertext data, the encryption key and the MAC value through the AES-KW algorithm to obtain an encryption list, and uploads the encryption list to the ACS in real time through the HTTP protocol.

[0030] Furthermore, the step S7 is specifically as follows:

[0031] The ACS receives the encryption list, decrypts the encryption list through the AES-KW algorithm to obtain ciphertext data, encryption key and MAC value, decrypts the encryption key through the RSA algorithm to obtain an encapsulated symmetric key, unseals the symmetric key through the AES-GCM algorithm, decrypts the ciphertext data through the ChaCha20 algorithm and the unsealable symmetric key to obtain an alarm list, performs integrity verification on the alarm list through the MAC value, and then performs visualization and big data analysis on the alarm list.

[0032] Furthermore, the step S7 further includes:

[0033] ACS creates a pair of public keys and private keys through the ECDH algorithm, encrypts the public key through the ElGamal algorithm to obtain an encrypted public key, performs hash calculation on the alarm list to obtain a second hash value, encrypts the alarm list through the private key to obtain encrypted data A, adds a random character string of a preset length to a specified position of the encrypted data A to obtain encrypted data B, encrypts the encrypted data B through the IDEA algorithm to obtain encrypted data C, encrypts the first secret data C, the second hash value and the encrypted public key through the ECDSA algorithm to obtain an archive list, and stores and distributes the archive list.

[0034] Furthermore, the step S7 further includes:

[0035] The ACS pushes the encryption list to the pre-associated management terminal in real time.

[0036] The advantages of the present invention are:

[0037] 1. Define the data model specification and alarm information specification of CWMP protocol through smart terminal and ACS. When the smart terminal detects an alarm event based on the alarm information specification, it generates an alarm notification based on the SOAP format of CWMP protocol, encrypts the alarm notification to obtain an encrypted notification and uploads it to ACS; ACS decrypts the encrypted notification to obtain the alarm notification, and generates an alarm reporting instruction based on the SOAP format of CWMP protocol, encrypts the alarm reporting instruction to obtain an encrypted instruction and sends it to the smart terminal; the smart terminal decrypts the encrypted instruction to obtain the alarm reporting instruction, and based on the alarm reporting instruction and data According to the model specification, the alarm information corresponding to the alarm event is matched, an alarm list is generated based on the alarm information, the alarm list is encrypted into an encrypted list and uploaded to the ACS, and finally the ACS decrypts the encrypted list to obtain the alarm list, and the alarm list is displayed and analyzed; that is, when the intelligent terminal detects an alarm event, it reports the alarm notification to the ACS in real time based on the CWMP protocol, and the ACS obtains the alarm list including the alarm information in real time based on the alarm notification, and encrypts the alarm notification, alarm reporting instruction, and alarm list during the transmission process, which ultimately greatly improves the timeliness and security of alarm information acquisition.

[0038] 2. By setting the data model specifications to at least include alarm parameters, alarm quantity, and current alarm list, and the alarm information specifications to at least include alarm name, alarm number, alarm level, and trigger conditions, it is convenient for the smart terminal to reasonably characterize and record the alarm event when an alarm event is generated, and to facilitate later tracing.

[0039] 3. Encrypt the alarm notification by RC2 algorithm to obtain the first-level encrypted data, randomly generate a string of specified length, add the string to the specified position of the first-level encrypted data to obtain the second-level encrypted data, encrypt the second-level encrypted data by 3DES algorithm to obtain the third-level encrypted data, divide the third-level encrypted data based on the preset division ratio and exchange the order to obtain the fourth-level encrypted data, map the fourth-level encrypted data by the preset mapping rule to obtain the fifth-level encrypted data, encrypt the fifth-level encrypted data by ECDSA algorithm to obtain the encrypted notification, and upload the encrypted notification to ACS in real time through HTTP protocol; if the corresponding encryption algorithm or data transformation rule is not known, the encrypted notification cannot be cracked. At least seven security measures (RC2 algorithm, specified length, specified position, 3DES algorithm, division ratio, mapping rule, ECDSA algorithm) are taken before and after, which greatly improves the security of alarm notification upload and prevents the alarm notification from being stolen and tampered with in plain text.

[0040] 4. Perform hash calculation on the alarm reporting instruction through the SHA-3 algorithm to obtain a first hash value, obtain the current timestamp, encrypt the alarm reporting instruction, the first hash value and the timestamp through the AES-256 algorithm to obtain a first encrypted string, shift each character in the first encrypted string to the right based on a preset displacement to obtain a second encrypted string, replace each character in the second encrypted string based on a preset mapping rule to generate a third encrypted string, encrypt the third encrypted string through the RSA algorithm to obtain an encrypted instruction, and send the encrypted instruction to the smart terminal in real time through the HTTP protocol; subsequently, the integrity check can be performed through the first hash value, and the timeliness check can be performed through the timestamp. If the corresponding encryption algorithm or data transformation rule is not known, the alarm reporting instruction cannot be cracked. At least six security measures (SHA-3 algorithm, timestamp, AES-256 algorithm, displacement, mapping rule, RSA algorithm) are taken before and after, which greatly improves the security of the alarm reporting instruction and prevents the alarm reporting instruction from being stolen and tampered with in plain text.

[0041] 5. By setting the alarm information to at least include the alarm name, alarm number, alarm level, alarm time, serial number, and installation location, it is convenient to quickly locate and solve the problem.

[0042] 6. MAC value is obtained by performing MAC calculation on the alarm list, a random number is generated as the seed of the symmetric key by the HKDF algorithm, a symmetric key is generated by the ChaCha20 algorithm and the seed, the alarm list is encrypted by the ChaCha20 algorithm and the symmetric key to obtain ciphertext data, the symmetric key is encapsulated by the AES-GCM algorithm, the encapsulated symmetric key is encrypted by the RSA algorithm to obtain the encryption key, the ciphertext data, the encryption key and the MAC value are encrypted by the AES-KW algorithm to obtain the encryption list, and the encryption list is uploaded to the ACS in real time through the HTTP protocol; MAC calculation is based on the hash function with a secret key, which is more secure than ordinary hash calculation. The symmetric key used to encrypt the alarm list is generated based on the HKDF algorithm and the ChaCha20 algorithm, which effectively improves the complexity of the symmetric key, and the symmetric key is encrypted at multiple levels. At least six security measures are taken before and after (MAC calculation, HKDF algorithm, ChaCha20 algorithm, AES-GCM algorithm, RSA algorithm, AES-KW algorithm), which greatly improves the security of alarm list upload and prevents the alarm list from being stolen and tampered with in plain text.

[0043] 7. Create a pair of public and private keys through the ECDH algorithm, encrypt the public key through the ElGamal algorithm to obtain an encrypted public key, perform hash calculation on the alarm list to obtain a second hash value, encrypt the alarm list through the private key to obtain encrypted data A, add a random string of preset length to the specified position of the encrypted data A to obtain encrypted data B, encrypt the encrypted data B through the IDEA algorithm to obtain encrypted data C, encrypt the first secret data C, the second hash value and the encrypted public key through the ECDSA algorithm to obtain an archive list, and store and distribute the archive list; since the data encrypted by the private key can only be decrypted by the public key, the public key is encrypted multiple times, and if the corresponding encryption algorithm and data transformation rules are not known, the archive list cannot be cracked. At least nine security measures are taken before and after (ECDH algorithm, public and private keys, ElGamal algorithm, hash calculation, specified position, preset length, IDEA algorithm, ECDSA algorithm, distributed backup), which greatly improves the security of the alarm list storage and backup, and prevents the alarm list from being stolen and tampered with in plain text.

[0044] 8. By pushing the encrypted list to the pre-associated management terminal in real time, it is convenient to remotely manage the intelligent terminals (routers, ONUs, gateways) and improve the real-time performance of management.

[0045] 9. Security is further improved by adopting different encryption schemes in each link of alarm notification transmission, alarm reporting instruction transmission, alarm list transmission, and alarm list storage. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.

[0047] Figure 1 The invention discloses a flow chart of a method for obtaining alarm information of a router, an ONU and a gateway based on CWMP. DETAILED DESCRIPTION

[0048] The technical solution in the embodiment of the present application has the following overall idea: when an alarm event is detected, the intelligent terminal reports the alarm notification to the ACS in real time based on the CWMP protocol. The ACS obtains the alarm list including the alarm information in real time based on the alarm notification, and encrypts the alarm notification, alarm reporting instruction, and alarm list during the transmission process to improve the timeliness and security of the acquisition of alarm information.

[0049] Please refer to Figure 1 As shown, a preferred embodiment of a method for obtaining alarm information of a router, ONU, and gateway based on CWMP of the present invention comprises the following steps:

[0050] Step S1, the intelligent terminal and ACS (Auto Configuration Server, automatic configuration server / management server) define the data model specification and alarm information specification of the CWMP protocol; the intelligent terminal is a router, ONU or gateway;

[0051] The CWMP protocol obtains information based on a data model. The data model is used to define and manage various parameters and configuration information of client devices. The data model is organized in a hierarchical manner and defines various parameters and configuration information based on an XML description language, which includes multiple levels and objects. Each object includes multiple parameters. For example, the TR098 data model defines parameters for remote management and home gateway configuration, such as wireless LAN settings, firewall configuration, port mapping, device diagnosis, etc.

[0052] Step S2: When the intelligent terminal detects an alarm event based on the alarm information specification, it generates an alarm notification based on the SOAP format of the CWMP protocol, encrypts the alarm notification to obtain an encrypted notification, and uploads the encrypted notification to the ACS through the HTTP protocol;

[0053] Step S3, the ACS decrypts the received encrypted notification to obtain an alarm notification, and generates an alarm reporting instruction based on the SOAP format of the CWMP protocol;

[0054] Step S4, the ACS encrypts the alarm reporting instruction to obtain an encrypted instruction, and sends the encrypted instruction to the intelligent terminal through the HTTP protocol;

[0055] Step S5: the intelligent terminal decrypts the received encrypted instruction to obtain an alarm reporting instruction, matches the alarm information corresponding to the alarm event based on the alarm reporting instruction and the data model specification, and generates an alarm list based on the alarm information;

[0056] Step S6: The intelligent terminal encrypts the alarm list into an encrypted list, and uploads the encrypted list to the ACS via the HTTP protocol;

[0057] Step S7: The ACS decrypts the received encrypted list to obtain an alarm list, and displays and analyzes the alarm list.

[0058] In step S1, the data model specification includes at least alarm parameters, alarm quantity, and current alarm list;

[0059] The alarm information specification includes at least the alarm name, alarm number, alarm level, and trigger condition;

[0060] The alarm names include at least device restart, port unavailable, WLAN hardware failure, high CPU usage, administrator login error times exceeded, file server unreachable, username and password error, file download timeout, server has no specified file, configuration file update failure, configuration file unavailable, software upgrade failure, and DDNS server unreachable.

[0061] By setting the data model specifications to at least include alarm parameters, alarm quantity, and current alarm list, and the alarm information specifications to at least include alarm name, alarm number, alarm level, and trigger conditions, it is convenient for the gateway to reasonably characterize and record alarm events when they are generated, and to facilitate later tracing.

[0062] The data model specification is specifically:

[0063]

[0064]

[0065] The warning information specification is specifically as follows:

[0066]

[0067] In specific implementation, the detection process of each alarm event (alarm name) is as follows:

[0068] Device restart: Monitor the startup log of the gateway to detect whether there is a record of gateway restart; regularly check the running time of the gateway. If the running time is suddenly reset to zero, it means that the gateway has been restarted.

[0069] Port unavailable: Regularly check the port status of the gateway through port scanning tools to determine whether any port is in an unavailable state; monitor the network connection status to detect whether any port cannot establish a connection.

[0070] CPU usage is too high: Regularly obtain the CPU utilization data of the gateway and compare it with the preset threshold; monitor the system load to detect whether the CPU load is too high.

[0071] Administrator login consecutive error limit: monitor the login log, count the number of consecutive login failures, and trigger an alarm notification when the number of login failures exceeds the preset threshold.

[0072] File server unreachable: Periodically try to connect to the file server and detect the connection status. If the file server cannot be connected, an alarm notification is triggered.

[0073] Username and password error: When connecting to the file server, check whether the username and password are correct. When the username or password is incorrect, an alarm notification is triggered.

[0074] Download file timeout: monitor the time consumed during the file download process to determine whether it exceeds the preset download time threshold. When the download time times out, an alarm notification is triggered.

[0075] The specified file does not exist on the server: Regularly check whether the specified file on the server exists. When the specified file does not exist, an alarm notification is triggered.

[0076] Failed to update configuration file: Monitor the status of the configuration file update process to detect whether the update is successful. When the update fails, trigger an alarm notification.

[0077] Configuration file is unavailable: The integrity and validity of the configuration file are checked regularly. When the configuration file is damaged or unavailable, an alarm notification is triggered.

[0078] Software upgrade failure: Determine whether the software version number changes before and after the software upgrade to detect whether the upgrade is successful. When the upgrade fails, an alarm notification is triggered.

[0079] DDNS server unreachable: Periodically try to connect to the DDNS server and detect the connection status. If the DDNS server cannot be connected, an alarm notification is triggered.

[0080] The step S2 is specifically as follows:

[0081] When the intelligent terminal detects an alarm event based on the alarm information specification, it generates an alarm notification carrying an event code based on the SOAP format of the CWMP protocol, and the event code is 6CONNECT ION REQUEST;

[0082] The intelligent terminal encrypts the alarm notification through the RC2 algorithm to obtain first-level encrypted data, randomly generates a character string of a specified length, adds the character string to a specified position of the first-level encrypted data to obtain second-level encrypted data, encrypts the second-level encrypted data through the 3DES algorithm to obtain third-level encrypted data, divides the third-level encrypted data based on a preset division ratio and exchanges the front-to-back order to obtain fourth-level encrypted data, maps the fourth-level encrypted data through a preset mapping rule to obtain fifth-level encrypted data, encrypts the fifth-level encrypted data through the ECDSA algorithm to obtain an encrypted notification, and uploads the encrypted notification to the ACS in real time through the HTTP protocol.

[0083] The alarm notification is encrypted by the RC2 algorithm to obtain the first-level encrypted data, a string of a specified length is randomly generated, and the string is added to the specified position of the first-level encrypted data to obtain the second-level encrypted data. The second-level encrypted data is encrypted by the 3DES algorithm to obtain the third-level encrypted data. The third-level encrypted data is divided based on a preset division ratio and the order is swapped to obtain the fourth-level encrypted data. The fourth-level encrypted data is mapped by a preset mapping rule to obtain the fifth-level encrypted data. The fifth-level encrypted data is encrypted by the ECDSA algorithm to obtain an encrypted notification, and the encrypted notification is uploaded to the ACS in real time through the HTTP protocol. If the corresponding encryption algorithm or data transformation rule is not known, the encrypted notification cannot be cracked. At least seven security measures are taken before and after (RC2 algorithm, specified length, specified position, 3DES algorithm, division ratio, mapping rule, ECDSA algorithm), which greatly improves the security of alarm notification upload and prevents the alarm notification from being stolen and tampered with in plain text.

[0084] The alarm notification is a SOAP message, and an example of a SOAP message is as follows:

[0085] <soap-env:body>

[0086] <cwmp:inform>

[0087] <Event SOAP-ENC:arrayType="cwmp:EventStruct[1]">

[0088] <eventstruct>

[0089] <eventcode>6 CONNECTION REQUEST< / eventcode> / / Indicates that the gateway actively initiates the request

[0090] < / eventstruct>

[0091]

[0092] <ParameterList

[0093] SOAP-ENC:arrayType="cwmp:ParameterValueStruct[1]">

[0094] <parametervaluestruct>

[0095] <name>Internet Gateway Device.Device Info.X_NEWLAND_Alarm.Alarm Number< / name> / / Indicates that the gateway has alarm information

[0096] <value> 2< / value> / / 2 warning messages

[0097] < / parametervaluestruct>

[0098]

[0099] < / cwmp:inform>

[0100] < / soap-env:body>

[0101] The step S3 is specifically as follows:

[0102] The ACS receives the encrypted notification, decrypts the encrypted notification by using the ECDSA algorithm to obtain level-five encrypted data, maps the level-five encrypted data by using a preset mapping rule to obtain level-four encrypted data, divides the level-four encrypted data based on the inverse of a preset division ratio and swaps the order to obtain level-three encrypted data, decrypts the level-three encrypted data by using the 3DES algorithm to obtain level-two encrypted data, locates a character string in the level-two encrypted data by using a specified position and a specified length, removes the character string from the level-two encrypted data to obtain level-one encrypted data, and decrypts the level-one encrypted data by using the RC2 algorithm to obtain an alarm notification;

[0103] The ACS generates an alarm reporting instruction that carries the GetParameterValues ​​RPC method based on the SOAP format of the CWMP protocol.

[0104] An example of the alarm reporting instruction is as follows:

[0105] <soap-env:body>

[0106] <cwmp:getparametervalues>

[0107] <ParameterNames SOAP-ENC:arrayType="xsd:string[1]">

[0108] <string>Internet Gateway Device.Device Info.X_NEWLAND_Alarm.Alarm List< / string> / / Indicates obtaining the gateway alarm list

[0109]

[0110] < / cwmp:getparametervalues>

[0111] < / soap-env:body>

[0112] In the CWMP protocol, the RPC (Remote Procedure Call) method is used as a way to communicate between a device and an ACS. The RPC methods include GetParameterValues, SetParameterValues, AddObject, DeleteObject, etc. They allow the ACS to perform operations such as parameter query, setting, object addition and deletion between the ACS and the device. The present invention uses the GetParameterValues ​​RPC method.

[0113] In the CWMP protocol, SOAP (Simple Object Access Protocol) is used as a communication protocol for interaction between the gateway and the ACS; SOAP is an XML-based protocol. Through SOAP, the CWMP protocol can implement RPC remote calls between the gateway and the ACS.

[0114] The step S4 is specifically as follows:

[0115] The ACS performs a hash calculation on the alarm reporting instruction through the SHA-3 algorithm to obtain a first hash value, obtains a current timestamp, encrypts the alarm reporting instruction, the first hash value and the timestamp through the AES-256 algorithm to obtain a first encrypted string, right-shifts each character in the first encrypted string based on a preset displacement to obtain a second encrypted string, replaces each character in the second encrypted string based on a preset mapping rule to generate a third encrypted string, encrypts the third encrypted string through the RSA algorithm to obtain an encrypted instruction, and sends the encrypted instruction to the smart terminal in real time through the HTTP protocol.

[0116] The alarm reporting instruction is hashed by the SHA-3 algorithm to obtain a first hash value, the current timestamp is obtained, the alarm reporting instruction, the first hash value and the timestamp are encrypted by the AES-256 algorithm to obtain a first encrypted string, each character in the first encrypted string is shifted rightward based on a preset displacement to obtain a second encrypted string, each character in the second encrypted string is replaced based on a preset mapping rule to generate a third encrypted string, the third encrypted string is encrypted by the RSA algorithm to obtain an encrypted instruction, and the encrypted instruction is sent to the smart terminal in real time through the HTTP protocol; subsequently, the integrity check can be performed through the first hash value, and the timeliness check can be performed through the timestamp. If the corresponding encryption algorithm or data transformation rule is not known, the alarm reporting instruction cannot be cracked. At least six security measures (SHA-3 algorithm, timestamp, AES-256 algorithm, displacement, mapping rule, RSA algorithm) are taken before and after, which greatly improves the security of the issuance of the alarm reporting instruction and prevents the alarm reporting instruction from being stolen and tampered with in plain text.

[0117] The step S5 is specifically as follows:

[0118] The intelligent terminal receives the encrypted instruction, decrypts the encrypted instruction through the RSA algorithm to obtain a third encrypted string, replaces each character in the third encrypted string based on a preset mapping rule to generate a second encrypted string, shifts each character in the second encrypted string to the left based on a preset displacement to obtain a first encrypted string, decrypts the first encrypted string through the AES-256 algorithm to obtain an alarm reporting instruction, a first hash value and a timestamp, performs a timeliness check through the timestamp, and then performs an integrity check through the first hash value;

[0119] The intelligent terminal matches the alarm information corresponding to the alarm event based on the alarm reporting instruction and the data model specification, and generates an alarm list based on the alarm information;

[0120] The alarm information includes at least the alarm name, alarm number, alarm level, alarm time, serial number, and installation location.

[0121] By setting the alarm information to at least include the alarm name, alarm number, alarm level, alarm time, serial number, and installation location, it is easy to quickly locate and solve the problem.

[0122] The step S6 is specifically as follows:

[0123] The intelligent terminal performs MAC calculation on the alarm list to obtain a MAC value, generates a random number as a seed of the symmetric key through the HKDF algorithm, generates a symmetric key through the ChaCha20 algorithm and the seed, encrypts the alarm list through the ChaCha20 algorithm and the symmetric key to obtain ciphertext data, encapsulates the symmetric key through the AES-GCM algorithm, encrypts the encapsulated symmetric key through the RSA algorithm to obtain an encryption key, encrypts the ciphertext data, the encryption key and the MAC value through the AES-KW algorithm to obtain an encryption list, and uploads the encryption list to the ACS in real time through the HTTP protocol.

[0124] The MAC value is obtained by performing MAC calculation on the alarm list, a random number is generated as the seed of the symmetric key through the HKDF algorithm, a symmetric key is generated through the ChaCha20 algorithm and the seed, the alarm list is encrypted through the ChaCha20 algorithm and the symmetric key to obtain ciphertext data, the symmetric key is encapsulated through the AES-GCM algorithm, the encapsulated symmetric key is encrypted through the RSA algorithm to obtain the encryption key, the ciphertext data, the encryption key and the MAC value are encrypted through the AES-KW algorithm to obtain the encryption list, and the encryption list is uploaded to the ACS in real time through the HTTP protocol; the MAC calculation is based on the hash function with a secret key, which is more secure than the ordinary hash calculation. The symmetric key used to encrypt the alarm list is generated based on the HKDF algorithm and the ChaCha20 algorithm, which effectively improves the complexity of the symmetric key. The symmetric key is encrypted at multiple levels, and at least six security measures are taken before and after (MAC calculation, HKDF algorithm, ChaCha20 algorithm, AES-GCM algorithm, RSA algorithm, AES-KW algorithm), which greatly improves the security of uploading the alarm list and prevents the alarm list from being stolen and tampered with in plain text.

[0125] An example of a message uploaded in the alarm list is as follows:

[0126] <soap-env:body>

[0127] <cwmp:getparametervaluesresponse>

[0128] <ParameterList

[0129] SOAP-ENC:arrayType="cwmp:ParameterValueStruct[1]">

[0130] <parametervaluestruct>

[0131] <name>

[0132] InternetGatewayDevice.DeviceInfo.X_NEWLAND_Alarm.AlarmList

[0133] < / name>

[0134] <Value

[0135] xsi:type="xsd:string">

[0136] 104050,104143 / / Indicates that the file server is unreachable and the username / password is incorrect.

[0137]

[0138] < / parametervaluestruct>

[0139]

[0140] < / cwmp:getparametervaluesresponse>

[0141] < / soap-env:body>

[0142] The step S7 is specifically as follows:

[0143] The ACS receives the encryption list, decrypts the encryption list through the AES-KW algorithm to obtain ciphertext data, encryption key and MAC value, decrypts the encryption key through the RSA algorithm to obtain an encapsulated symmetric key, unseals the symmetric key through the AES-GCM algorithm, decrypts the ciphertext data through the ChaCha20 algorithm and the unsealable symmetric key to obtain an alarm list, performs integrity verification on the alarm list through the MAC value, and then performs visualization and big data analysis on the alarm list.

[0144] The step S7 further comprises:

[0145] ACS creates a pair of public keys and private keys through the ECDH algorithm, encrypts the public key through the ElGamal algorithm to obtain an encrypted public key, performs hash calculation on the alarm list to obtain a second hash value, encrypts the alarm list through the private key to obtain encrypted data A, adds a random character string of a preset length to a specified position of the encrypted data A to obtain encrypted data B, encrypts the encrypted data B through the IDEA algorithm to obtain encrypted data C, encrypts the first secret data C, the second hash value and the encrypted public key through the ECDSA algorithm to obtain an archive list, and stores and distributes the archive list.

[0146] A pair of public and private keys is created through the ECDH algorithm, the public key is encrypted through the ElGamal algorithm to obtain an encrypted public key, the alarm list is hashed to obtain a second hash value, the alarm list is encrypted through the private key to obtain encrypted data A, a random string of preset length is added to the specified position of the encrypted data A to obtain encrypted data B, the encrypted data B is encrypted through the IDEA algorithm to obtain encrypted data C, the third data C, the second hash value and the encrypted public key are encrypted through the ECDSA algorithm to obtain an archive list, and the archive list is stored and distributedly backed up; since the data encrypted by the private key can only be decrypted by the public key, the public key is encrypted multiple times, and if the corresponding encryption algorithm and data transformation rules are not known, the archive list cannot be cracked. At least nine security measures are taken before and after (ECDH algorithm, public and private keys, ElGamal algorithm, hash calculation, specified position, preset length, IDEA algorithm, ECDSA algorithm, distributed backup), which greatly improves the security of the alarm list storage and backup, and prevents the alarm list from being stolen and tampered with in plain text.

[0147] Security is further improved by adopting different encryption schemes in each link of alarm notification transmission, alarm reporting instruction transmission, alarm list transmission, and alarm list storage.

[0148] The step S7 further comprises:

[0149] The ACS pushes the encryption list to the pre-associated management terminal in real time.

[0150] By pushing the encrypted list to the pre-associated management terminal in real time, it is convenient to remotely manage the smart terminal and improve the real-time performance of the management.

[0151] In summary, the advantages of the present invention are:

[0152] 1. Define the data model specification and alarm information specification of CWMP protocol through smart terminal and ACS. When the smart terminal detects an alarm event based on the alarm information specification, it generates an alarm notification based on the SOAP format of CWMP protocol, encrypts the alarm notification to obtain an encrypted notification and uploads it to ACS; ACS decrypts the encrypted notification to obtain the alarm notification, and generates an alarm reporting instruction based on the SOAP format of CWMP protocol, encrypts the alarm reporting instruction to obtain an encrypted instruction and sends it to the smart terminal; the smart terminal decrypts the encrypted instruction to obtain the alarm reporting instruction, and based on the alarm reporting instruction and data According to the model specification, the alarm information corresponding to the alarm event is matched, an alarm list is generated based on the alarm information, the alarm list is encrypted into an encrypted list and uploaded to the ACS, and finally the ACS decrypts the encrypted list to obtain the alarm list, and the alarm list is displayed and analyzed; that is, when the intelligent terminal detects an alarm event, it reports the alarm notification to the ACS in real time based on the CWMP protocol, and the ACS obtains the alarm list including the alarm information in real time based on the alarm notification, and encrypts the alarm notification, alarm reporting instruction, and alarm list during the transmission process, which ultimately greatly improves the timeliness and security of alarm information acquisition.

[0153] 2. By setting the data model specifications to at least include alarm parameters, alarm quantity, and current alarm list, and the alarm information specifications to at least include alarm name, alarm number, alarm level, and trigger conditions, it is convenient for the smart terminal to reasonably characterize and record the alarm event when an alarm event is generated, and to facilitate later tracing.

[0154] 3. Encrypt the alarm notification by RC2 algorithm to obtain the first-level encrypted data, randomly generate a string of specified length, add the string to the specified position of the first-level encrypted data to obtain the second-level encrypted data, encrypt the second-level encrypted data by 3DES algorithm to obtain the third-level encrypted data, divide the third-level encrypted data based on the preset division ratio and exchange the order to obtain the fourth-level encrypted data, map the fourth-level encrypted data by the preset mapping rule to obtain the fifth-level encrypted data, encrypt the fifth-level encrypted data by ECDSA algorithm to obtain the encrypted notification, and upload the encrypted notification to ACS in real time through HTTP protocol; if the corresponding encryption algorithm or data transformation rule is not known, the encrypted notification cannot be cracked. At least seven security measures (RC2 algorithm, specified length, specified position, 3DES algorithm, division ratio, mapping rule, ECDSA algorithm) are taken before and after, which greatly improves the security of alarm notification upload and prevents the alarm notification from being stolen and tampered with in plain text.

[0155] 4. Perform hash calculation on the alarm reporting instruction through the SHA-3 algorithm to obtain a first hash value, obtain the current timestamp, encrypt the alarm reporting instruction, the first hash value and the timestamp through the AES-256 algorithm to obtain a first encrypted string, shift each character in the first encrypted string to the right based on a preset displacement to obtain a second encrypted string, replace each character in the second encrypted string based on a preset mapping rule to generate a third encrypted string, encrypt the third encrypted string through the RSA algorithm to obtain an encrypted instruction, and send the encrypted instruction to the smart terminal in real time through the HTTP protocol; subsequently, the integrity check can be performed through the first hash value, and the timeliness check can be performed through the timestamp. If the corresponding encryption algorithm or data transformation rule is not known, the alarm reporting instruction cannot be cracked. At least six security measures (SHA-3 algorithm, timestamp, AES-256 algorithm, displacement, mapping rule, RSA algorithm) are taken before and after, which greatly improves the security of the alarm reporting instruction and prevents the alarm reporting instruction from being stolen and tampered with in plain text.

[0156] 5. By setting the alarm information to at least include the alarm name, alarm number, alarm level, alarm time, serial number, and installation location, it is convenient to quickly locate and solve the problem.

[0157] 6. MAC value is obtained by performing MAC calculation on the alarm list, a random number is generated as the seed of the symmetric key by the HKDF algorithm, a symmetric key is generated by the ChaCha20 algorithm and the seed, the alarm list is encrypted by the ChaCha20 algorithm and the symmetric key to obtain ciphertext data, the symmetric key is encapsulated by the AES-GCM algorithm, the encapsulated symmetric key is encrypted by the RSA algorithm to obtain the encryption key, the ciphertext data, the encryption key and the MAC value are encrypted by the AES-KW algorithm to obtain the encryption list, and the encryption list is uploaded to the ACS in real time through the HTTP protocol; MAC calculation is based on the hash function with a secret key, which is more secure than ordinary hash calculation. The symmetric key used to encrypt the alarm list is generated based on the HKDF algorithm and the ChaCha20 algorithm, which effectively improves the complexity of the symmetric key, and the symmetric key is encrypted at multiple levels. At least six security measures are taken before and after (MAC calculation, HKDF algorithm, ChaCha20 algorithm, AES-GCM algorithm, RSA algorithm, AES-KW algorithm), which greatly improves the security of alarm list upload and prevents the alarm list from being stolen and tampered with in plain text.

[0158] 7. Create a pair of public and private keys through the ECDH algorithm, encrypt the public key through the ElGamal algorithm to obtain an encrypted public key, perform hash calculation on the alarm list to obtain a second hash value, encrypt the alarm list through the private key to obtain encrypted data A, add a random string of preset length to the specified position of the encrypted data A to obtain encrypted data B, encrypt the encrypted data B through the IDEA algorithm to obtain encrypted data C, encrypt the first secret data C, the second hash value and the encrypted public key through the ECDSA algorithm to obtain an archive list, and store and distribute the archive list; since the data encrypted by the private key can only be decrypted by the public key, the public key is encrypted multiple times, and if the corresponding encryption algorithm and data transformation rules are not known, the archive list cannot be cracked. At least nine security measures are taken before and after (ECDH algorithm, public and private keys, ElGamal algorithm, hash calculation, specified position, preset length, IDEA algorithm, ECDSA algorithm, distributed backup), which greatly improves the security of the alarm list storage and backup, and prevents the alarm list from being stolen and tampered with in plain text.

[0159] 8. By pushing the encrypted list to the pre-associated management terminal in real time, it is convenient to remotely manage the intelligent terminals (routers, ONUs, gateways) and improve the real-time performance of management.

[0160] 9. Security is further improved by adopting different encryption schemes in each link of alarm notification transmission, alarm reporting instruction transmission, alarm list transmission, and alarm list storage.

[0161] Although the specific implementation modes of the present invention are described above, those skilled in the art should understand that the specific implementation modes described are only illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included in the scope of protection of the claims of the present invention.

Claims

1. A method for obtaining alarm information of routers, ONUs, and gateways based on CWMP, characterized in that: The steps include: Step S1, the intelligent terminal and the ACS define the data model specification and alarm information specification of the CWMP protocol; the intelligent terminal is a router, ONU or gateway; Step S2: When the intelligent terminal detects an alarm event based on the alarm information specification, it generates an alarm notification based on the SOAP format of the CWMP protocol, encrypts the alarm notification to obtain an encrypted notification, and uploads the encrypted notification to the ACS through the HTTP protocol; Step S3, the ACS decrypts the received encrypted notification to obtain an alarm notification, and generates an alarm reporting instruction based on the SOAP format of the CWMP protocol; Step S4, the ACS encrypts the alarm reporting instruction to obtain an encrypted instruction, and sends the encrypted instruction to the intelligent terminal through the HTTP protocol; Step S5: the intelligent terminal decrypts the received encrypted instruction to obtain an alarm reporting instruction, matches the alarm information corresponding to the alarm event based on the alarm reporting instruction and the data model specification, and generates an alarm list based on the alarm information; Step S6: The intelligent terminal encrypts the alarm list into an encrypted list, and uploads the encrypted list to the ACS via the HTTP protocol; Step S7: The ACS decrypts the received encrypted list to obtain an alarm list, and displays and analyzes the alarm list.

2. A method for obtaining alarm information of routers, ONUs, and gateways based on CWMP as claimed in claim 1, characterized in that: In step S1, the data model specification includes at least alarm parameters, alarm quantity, and current alarm list; The alarm information specification includes at least the alarm name, alarm number, alarm level, and trigger condition; The alarm names include at least device restart, port unavailable, WLAN hardware failure, high CPU usage, administrator login error times exceeded, file server unreachable, username and password error, file download timeout, server has no specified file, configuration file update failure, configuration file unavailable, software upgrade failure, and DDNS server unreachable.

3. A method for obtaining alarm information of routers, ONUs, and gateways based on CWMP as claimed in claim 1, characterized in that: The step S2 is specifically as follows: When the intelligent terminal detects an alarm event based on the alarm information specification, it generates an alarm notification carrying an event code based on the SOAP format of the CWMP protocol, where the event code is 6CONNECTION REQUEST; The intelligent terminal encrypts the alarm notification through the RC2 algorithm to obtain first-level encrypted data, randomly generates a character string of a specified length, adds the character string to a specified position of the first-level encrypted data to obtain second-level encrypted data, encrypts the second-level encrypted data through the 3DES algorithm to obtain third-level encrypted data, divides the third-level encrypted data based on a preset division ratio and exchanges the front-to-back order to obtain fourth-level encrypted data, maps the fourth-level encrypted data through a preset mapping rule to obtain fifth-level encrypted data, encrypts the fifth-level encrypted data through the ECDSA algorithm to obtain an encrypted notification, and uploads the encrypted notification to the ACS in real time through the HTTP protocol.

4. A method for obtaining alarm information of routers, ONUs, and gateways based on CWMP as claimed in claim 1, characterized in that: The step S3 is specifically as follows: The ACS receives the encrypted notification, decrypts the encrypted notification by using the ECDSA algorithm to obtain level-five encrypted data, maps the level-five encrypted data by using a preset mapping rule to obtain level-four encrypted data, divides the level-four encrypted data based on the inverse of a preset division ratio and swaps the order to obtain level-three encrypted data, decrypts the level-three encrypted data by using the 3DES algorithm to obtain level-two encrypted data, locates a character string in the level-two encrypted data by using a specified position and a specified length, removes the character string from the level-two encrypted data to obtain level-one encrypted data, and decrypts the level-one encrypted data by using the RC2 algorithm to obtain an alarm notification; The ACS generates an alarm reporting instruction that carries the GetParameterValues ​​RPC method based on the SOAP format of the CWMP protocol.

5. A method for obtaining alarm information of routers, ONUs, and gateways based on CWMP as claimed in claim 1, characterized in that: The step S4 is specifically as follows: The ACS performs a hash calculation on the alarm reporting instruction through the SHA-3 algorithm to obtain a first hash value, obtains a current timestamp, encrypts the alarm reporting instruction, the first hash value and the timestamp through the AES-256 algorithm to obtain a first encrypted string, right-shifts each character in the first encrypted string based on a preset displacement to obtain a second encrypted string, replaces each character in the second encrypted string based on a preset mapping rule to generate a third encrypted string, encrypts the third encrypted string through the RSA algorithm to obtain an encrypted instruction, and sends the encrypted instruction to the smart terminal in real time through the HTTP protocol.

6. A method for obtaining alarm information of routers, ONUs, and gateways based on CWMP as claimed in claim 1, characterized in that: The step S5 is specifically as follows: The intelligent terminal receives the encrypted instruction, decrypts the encrypted instruction through the RSA algorithm to obtain a third encrypted string, replaces each character in the third encrypted string based on a preset mapping rule to generate a second encrypted string, shifts each character in the second encrypted string to the left based on a preset displacement to obtain a first encrypted string, decrypts the first encrypted string through the AES-256 algorithm to obtain an alarm reporting instruction, a first hash value and a timestamp, performs a timeliness check through the timestamp, and then performs an integrity check through the first hash value; The intelligent terminal matches the alarm information corresponding to the alarm event based on the alarm reporting instruction and the data model specification, and generates an alarm list based on the alarm information; The alarm information includes at least the alarm name, alarm number, alarm level, alarm time, serial number, and installation location.

7. A method for obtaining alarm information of routers, ONUs, and gateways based on CWMP as claimed in claim 1, characterized in that: The step S6 is specifically as follows: The intelligent terminal performs MAC calculation on the alarm list to obtain a MAC value, generates a random number as a seed of the symmetric key through the HKDF algorithm, generates a symmetric key through the ChaCha20 algorithm and the seed, encrypts the alarm list through the ChaCha20 algorithm and the symmetric key to obtain ciphertext data, encapsulates the symmetric key through the AES-GCM algorithm, encrypts the encapsulated symmetric key through the RSA algorithm to obtain an encryption key, encrypts the ciphertext data, the encryption key and the MAC value through the AES-KW algorithm to obtain an encryption list, and uploads the encryption list to the ACS in real time through the HTTP protocol.

8. A method for obtaining alarm information of routers, ONUs, and gateways based on CWMP as claimed in claim 1, characterized in that: The step S7 is specifically as follows: The ACS receives the encryption list, decrypts the encryption list through the AES-KW algorithm to obtain ciphertext data, encryption key and MAC value, decrypts the encryption key through the RSA algorithm to obtain an encapsulated symmetric key, unseals the symmetric key through the AES-GCM algorithm, decrypts the ciphertext data through the ChaCha20 algorithm and the unsealable symmetric key to obtain an alarm list, performs integrity verification on the alarm list through the MAC value, and then performs visualization and big data analysis on the alarm list.

9. A method for obtaining alarm information of routers, ONUs, and gateways based on CWMP as claimed in claim 1, characterized in that: The step S7 further comprises: ACS creates a pair of public keys and private keys through the ECDH algorithm, encrypts the public key through the ElGamal algorithm to obtain an encrypted public key, performs hash calculation on the alarm list to obtain a second hash value, encrypts the alarm list through the private key to obtain encrypted data A, adds a random character string of a preset length to a specified position of the encrypted data A to obtain encrypted data B, encrypts the encrypted data B through the IDEA algorithm to obtain encrypted data C, encrypts the first secret data C, the second hash value and the encrypted public key through the ECDSA algorithm to obtain an archive list, and stores and distributes the archive list.

10. A method for obtaining alarm information of routers, ONUs, and gateways based on CWMP as claimed in claim 1, characterized in that: The step S7 further comprises: The ACS pushes the encryption list to the pre-associated management terminal in real time.

Citation Information

Cited By

  • City drainage pipe network management method and system based on thermodynamic diagram

    CN120068333A