Method, device, storage medium and computer equipment for updating data feature set of CPE
Through the method of automatically updating the data feature set, the problem of inefficient update efficiency of CPE equipment is solved, efficient and accurate data feature set update is achieved, ensuring the continuous operation and user experience of the equipment.
Patent Information
- Application Number
- CN202411165890.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2044-08-23
AI Technical Summary
The data feature set update method of traditional CPE equipment is inefficient and prone to errors, affecting device performance and user experience.
By receiving data feature set update instructions, obtaining the updated data feature set, determining whether the database needs to be updated, interrupting user data management operations, creating and replacing databases, restarting management operations, realizing automatic updates, and improving efficiency and accuracy.
Automatic update of data feature sets is realized, update efficiency and accuracy is improved, and continuous operation and user experience of CPE equipment is ensured.
Smart Images

Figure CN118689891B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a method, device, storage medium and computer equipment for updating a CPE data feature set. Background Art
[0002] With the rapid development of wireless communication technology, customer terminal equipment (CPE) is increasingly used in various fields. CPE devices not only serve as a bridge to access mobile networks, but also undertake important tasks such as data packet processing, data analysis and management. In order to achieve efficient and accurate data processing, CPE devices usually store data feature sets inside. These data feature sets contain the rules and parameters required for operations such as data packet collection, analysis, marking and control.
[0003] However, in actual applications, the network environment is complex and changeable, and new application requirements are constantly emerging, which puts higher requirements on the data feature set of CPE devices. Traditional data feature set update methods often rely on manual operations, which are not only inefficient but also prone to errors. At the same time, during the update process, if handled improperly, it may also cause the CPE device to suspend the management of user data, thereby affecting user experience and device performance.
[0004] Therefore, it is necessary to propose a data feature set updating method that is more efficient, accurate and does not affect the normal operation of CPE devices. Summary of the invention
[0005] The main purpose of the present invention is to provide a method, device, storage medium and computer equipment for updating a data feature set of a CPE, so as to solve the problem of low efficiency in updating the data feature set of the CPE device in the prior art.
[0006] To achieve the above-mentioned object, the first aspect of the present invention provides a method for updating a data feature set of a CPE, which is applied to a CPE device, wherein the CPE device receives or sends a data packet by routing forwarding, and connects the data packet to a mobile network through a mobile network data module provided in the CPE device, wherein a first database is stored in the CPE device, wherein the first database stores a currently used data feature set, and the CPE device performs management operations on the data packet according to the data feature set in the first database, wherein the management operations include at least one of collecting, analyzing, marking and controlling the data packet, and the method includes:
[0007] Determining whether an update instruction of a data feature set is received;
[0008] If so, obtain an updated data feature set;
[0009] Determining whether the first database needs to be updated;
[0010] If yes, then creating a new second database and storing the updated data feature set in the second database;
[0011] Interrupting the management operation of the CPE device on user data;
[0012] replacing the first database with the second database;
[0013] Restart the management operation of the CPE device on the user data.
[0014] Furthermore, the step of obtaining an updated data feature set includes:
[0015] Acquire a first commonly used feature set from a server; and
[0016] A temporary feature set is obtained locally; the updated data feature set includes the first common feature set and / or the temporary feature set.
[0017] Furthermore, the step of obtaining a temporary feature set locally includes:
[0018] Analyze the data packet to obtain a first parameter attribute and a current time corresponding to the data packet;
[0019] Determine whether the first parameter attribute is included in a second common feature set, wherein the second common feature set is a common feature set downloaded from the server and saved locally when the data feature set was last updated;
[0020] If it is not included in the second common feature set, determining whether the first parameter attribute has been recorded in a local cache feature set; wherein the cache feature set records each parameter attribute and the corresponding recording time in an associated manner;
[0021] If the first parameter attribute has been recorded, determining whether the first parameter attribute in the cache feature set is marked;
[0022] If it is not marked, determining whether the duration between the current time and the recording time corresponding to the first parameter attribute in the cache feature set exceeds a preset duration;
[0023] If so, the first parameter attribute is added to the temporary feature set, and the first parameter attribute is marked in the cache feature set.
[0024] Furthermore, the step of determining whether the first database needs to be updated includes:
[0025] Comparing the first common feature set with the second common feature set to determine whether the first common feature set is different from the second common feature set;
[0026] If they are different, it is determined that the first database needs to be updated.
[0027] Furthermore, after the step of comparing the first common feature set with the second common feature set to determine whether the first common feature set is different from the second common feature set, the step further includes:
[0028] If they are the same, determining whether parameter attribute data is stored in the temporary feature set;
[0029] If the parameter attribute data is stored, it is determined that the first database needs to be updated.
[0030] Furthermore, the step of restarting the management operation of the CPE device on the user data includes:
[0031] Determine whether there is a new data packet incoming;
[0032] If so, the new data packet is operated and managed according to the data feature set in the second database, and the management operation includes at least one of collecting, analyzing, marking and controlling the new data packet.
[0033] Further, after the step of restarting the management operation of the CPE device on the user data, the step further includes:
[0034] Deleting the remaining commonly used feature sets stored locally except the first commonly used feature set,
[0035] deleting the parameter attribute data in the temporary feature set that has been added to the second database, and
[0036] The parameter attribute data added into the second database is sent to the server.
[0037] A second aspect of the present invention provides a device for updating a data feature set of a CPE, which is applied to a CPE device, wherein the CPE device receives or sends a data packet by routing forwarding, and connects the data packet to a mobile network through a mobile network data module provided in the CPE device, wherein a first database is stored in the CPE device, wherein the first database stores a currently used data feature set, and the CPE device performs a management operation on the data packet according to the data feature set in the first database, wherein the management operation includes at least one of collecting, analyzing, marking and controlling the data packet, and the device includes:
[0038] An instruction receiving module, used to determine whether an update instruction of a data feature set is received;
[0039] A data updating module, configured to obtain an updated data feature set upon receiving an update instruction for the data feature set;
[0040] A judging module, used for judging whether the first database needs to be updated;
[0041] A database establishment module, used for creating a new second database if the data feature set needs to be updated, and storing the updated data feature set in the second database;
[0042] An interruption module, used for interrupting the management operation of the CPE device on user data;
[0043] A replacement module, used to replace the first database with the second database;
[0044] A restart module is used to restart the management operation of the CPE device on the user data.
[0045] A third aspect of the present invention provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned method for updating a CPE data feature set when executing the computer program.
[0046] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-mentioned method for updating a CPE data feature set.
[0047] The present invention provides a method, device, storage medium and computer equipment for updating a CPE data feature set. The method obtains an updated data feature set after receiving an update instruction for the data feature set; after determining that the data feature set needs to be updated, creates a second database and stores the updated data feature set in the second database; interrupts the CPE device's management operation on user data; replaces the first database with the second database; and restarts the CPE device's management operation on the user data, thereby realizing automatic update of the data feature set without manual intervention, greatly improving update efficiency and accuracy, and realizing basically seamless update of the data feature set by creating a second database and replacing the first database, ensuring continuous operation of the CPE device, avoiding long-term interruption of data management operations during the update process, and improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 It is a flowchart of a method for CPE to update a data feature set in one embodiment of the present invention;
[0049] Figure 2 It is a schematic block diagram of the structure of a device for updating a data feature set of a CPE in one embodiment of the present invention;
[0050] Figure 3 It is a schematic block diagram of the structure of a computer device according to an embodiment of the present invention.
[0051] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0053] Reference Figure 1 The embodiment of the present invention provides a method for updating a data feature set of a CPE, which is applied to a CPE device, wherein the CPE device receives or sends a data packet by routing forwarding, and connects the data packet to a mobile network through a mobile network data module provided in the CPE device, wherein a first database is stored in the CPE device, wherein the first database stores a currently used data feature set, and the CPE device performs a management operation on the data packet according to the data feature set in the first database, wherein the management operation includes at least one of collecting, analyzing, marking and controlling the data packet, and the method includes:
[0054] S1, determining whether an update instruction of a data feature set is received;
[0055] S2. If yes, obtain an updated data feature set;
[0056] S3, determining whether the first database needs to be updated;
[0057] S4. If yes, create a new second database and store the updated data feature set in the second database;
[0058] S5, interrupting the CPE device's management operation on user data;
[0059] S6. Replace the first database with the second database;
[0060] S7: Restart the management operation of the CPE device on the user data.
[0061] In this embodiment, in the above step S1, the CPE device can periodically check whether a new data feature set update instruction has arrived, or trigger this step based on certain user instructions. For example, the CPE device periodically connects to the remote TR069 ACS server to check whether the latest feature set version can be obtained, and if so, the compressed package download URL is obtained.
[0062] In the above step S2, the CPE device will obtain the latest data feature set from the server or other data sources.
[0063] In step S3, the acquired update data feature set is further judged to determine whether it is really necessary to perform an operation of updating the database, thereby avoiding unnecessary updates and saving resources and time.
[0064] In step S4, if it is determined that an update is required, a new second database is created and the updated data feature set is stored in the second database, thereby ensuring that the original data feature set (stored in the first database) will not be destroyed or lost during the update process.
[0065] In step S5, the management operation of the CPE device on the user data is interrupted to avoid interference or errors in the management operation on the user data when the data feature set is updated.
[0066] In step S6, the first database is directly replaced with the second database that has stored the updated data feature set. The update process is fast and simple, which greatly improves the update speed and reduces the impact of the CPE device interruption. In addition, during the previous second database collection process, the CPE device does not hinder the management operation of the data packet. By replacing the database, the CPE device will start to use the updated data feature set to manage user data.
[0067] In step S7, the management operation of the CPE device on the user data is restarted. After the update is completed, the normal management operation of the CPE device on the user data is restored to ensure the continuity and stability of the service.
[0068] The embodiment of the present invention realizes automatic updating of the data feature set through the above steps without manual intervention, greatly improving the updating efficiency and accuracy, and realizes basically seamless updating of the data feature set by creating a second database and replacing the first database, thereby ensuring the continuous operation of the CPE device, avoiding long-term interruption of data management operations during the updating process, and improving the user experience.
[0069] In a specific embodiment, the step S2 of obtaining an updated data feature set includes:
[0070] S201, obtaining a first commonly used feature set from a server; and
[0071] S202. Acquire a temporary feature set locally; the updated data feature set includes the first commonly used feature set and / or the temporary feature set.
[0072] This embodiment achieves comprehensive acquisition of updated data feature sets by acquiring the first commonly used feature set from the server and the temporary feature set locally, and the commonly used feature set and the temporary feature set are updated separately, thereby providing better flexibility and providing the possibility of updating one or more feature sets according to specific update needs, thereby accelerating update efficiency.
[0073] In step S201, the CPE device obtains a first commonly used feature set from the server, wherein the first commonly used feature set includes the latest rules and parameters for data packet management operations, such as common apps / websites, user device type data, etc. The first commonly used feature set is transmitted from the remote server to the CPE device in a compressed package. The first commonly used feature set covers the conventional needs of most users. By obtaining the first commonly used feature set from the server, the CPE device can ensure the applicability of the data feature set used, thereby taking into account the problem of less storage space of the CPE device and minimizing the amount of data in the temporary feature set.
[0074] In the above step S202, the CPE device obtains a temporary feature set from the local device. The temporary feature set is generated by the CPE device according to the characteristics of the real-time data packet, and it may contain some special rules and parameters for specific data packets or specific network environments. By obtaining the temporary feature set, the CPE device can achieve real-time response and flexible update of the data packet characteristics.
[0075] It is understandable that the updated data feature set may include only the first commonly used feature set obtained from the server, or may include only the temporary feature set obtained locally, or may include both, depending on the specific update requirements.
[0076] In a specific embodiment, the step S202 of obtaining a temporary feature set locally includes:
[0077] S203, analyzing the data packet to obtain a first parameter attribute and a current time corresponding to the data packet;
[0078] S204, determining whether the first parameter attribute is included in a second common feature set, wherein the second common feature set is a common feature set downloaded from the server and saved locally when the data feature set was last updated;
[0079] S205: If the first parameter attribute is not included in the second common feature set, determine whether the first parameter attribute has been recorded in a local cache feature set; wherein the cache feature set records each parameter attribute and the corresponding recording time in an associated manner;
[0080] S206: If the first parameter attribute has been recorded, determine whether the first parameter attribute in the cache feature set is marked;
[0081] S207: If it is not marked, determine whether the duration between the current time and the recording time corresponding to the first parameter attribute in the cache feature set exceeds a preset duration;
[0082] S208: If yes, add the first parameter attribute to the temporary feature set, and mark the first parameter attribute in the cache feature set.
[0083] This embodiment executes the above steps S203-S208 to update the data in the temporary feature set, flexibly updates the data feature set according to the parameter attributes of the real-time data packet, and improves the management efficiency and accuracy of the data packet.
[0084] In the above step S203, the CPE device analyzes the received data packet to obtain the first parameter attribute and the current time corresponding to the data packet. The first parameter attribute may exemplarily include at least one of the user name, type, source, destination, size, etc. of the data packet. The current time is the specific time point when the data packet is received.
[0085] In the above step S204, the CPE device determines whether the first parameter attribute is included in the second common feature set. If the first parameter attribute is already included in the second common feature set, it means that the attribute has been processed and does not need to be added to the temporary feature set again.
[0086] In the above step S205, if the first parameter attribute is not included in the second commonly used feature set, the CPE device will further determine whether the first parameter attribute has been recorded in the local cache feature set. The cache feature set is a temporary storage area that associates and records each parameter attribute with the corresponding recording time. By querying the cache feature set, the CPE device can quickly determine whether a parameter attribute has been processed.
[0087] In the above step S206, the tag may be a special identifier or text description, which is used to indicate whether a parameter attribute has been added to the temporary feature set.
[0088] In the above step S207, if the first parameter attribute is not marked, the CPE device will further determine whether the duration between the current time and the recording time corresponding to the first parameter attribute in the cache feature set exceeds the preset duration. The above preset duration can be pre-set and stored in the CPE device, for example, 30 minutes, and the preset duration can also be configured and adjusted remotely. In this way, only the parameter attributes of the app / website and user device type that the user has used for a long time and many times can be extracted and actually stored and recorded, and some parameter attributes that do not need to be paid attention to and are only used once or for a short time can be filtered out.
[0089] S208. If the duration between the current time and the recording time exceeds the preset duration, the CPE device will add the first parameter attribute to the temporary feature set and mark this attribute in the cache feature set. The first parameter attribute is considered to have been processed and will not be added again.
[0090] In a specific embodiment, the step S3 of determining whether the first database needs to be updated includes:
[0091] S301, comparing the first commonly used feature set with the second commonly used feature set to determine whether the first commonly used feature set is different from the second commonly used feature set;
[0092] S302: If they are different, it is determined that the first database needs to be updated.
[0093] In this embodiment, the first commonly used feature set and the second commonly used feature set are compared. Specifically, the two commonly used feature sets can be compared in terms of version, size and other parameters to determine whether the two commonly used feature sets are different. If there is a difference, it indicates that the latest first commonly used feature set on the server is updated relative to the currently used second commonly used feature set, and it is determined that the data feature set needs to be updated.
[0094] In a specific embodiment, after the step S301 of comparing the first commonly used feature set with the second commonly used feature set to determine whether the first commonly used feature set is different from the second commonly used feature set, the step further includes:
[0095] S303, if they are the same, determining whether parameter attribute data is stored in the temporary feature set;
[0096] S304: If the parameter attribute data is stored, determine that the first database needs to be updated.
[0097] In this embodiment, if the first common feature set is the same as the second common feature set, it indicates that the common feature set does not need to be updated, and it is necessary to further determine whether there is data that needs to be updated in the local temporary feature set. If so, it is still determined that the data feature set needs to be updated.
[0098] In a specific embodiment, the step S7 of restarting the management operation of the CPE device on the user data includes:
[0099] S701, determine whether there is a new data packet access;
[0100] S702: If yes, perform management operations on the new data packet according to the data feature set in the second database, and the management operations include at least one of collecting, analyzing, marking and controlling the new data packet.
[0101] In this embodiment, after the CPE device is restarted, if a new data packet is detected to be connected, the new data packet is operated and managed according to the data feature set in the second database, and the management operation of the data by the restarted CPE device directly points to the new second database, thereby realizing the update of the data feature set. The CPE device only needs to replace one database during the process of real-time collection and processing of user data, and the processing speed is very fast. The update of the database is completed in a very short time. The real-time collection and analysis processing process of user data by the CPE device runs more smoothly, and will not have adverse effects on user services.
[0102] In a specific embodiment, after the step S7 of restarting the management operation of the CPE device on the user data, the method further includes:
[0103] S8, deleting the remaining commonly used feature sets stored locally except the first commonly used feature set,
[0104] S9, deleting the parameter attribute data in the temporary feature set that has been added to the second database, and
[0105] S10. Send the parameter attribute data added into the second database to the server.
[0106] In this embodiment, after the CPE device is restarted, a series of subsequent steps need to be performed to clean up and update the locally stored data feature set, and to synchronously update the data on the server.
[0107] In the above step S8, the remaining commonly used feature sets except the first commonly used feature set stored locally are deleted, so that the local storage can be cleaned up and only the version used for comparing whether the commonly used feature sets need to be updated next time is retained, so as to save the storage space of the CPE device and improve the efficiency of data processing.
[0108] In the above steps S9 and S10, the parameter attribute data in the temporary feature set that has been added to the second database is deleted, thereby releasing the storage space of the CPE device. At the same time, the parameter attribute data added to the second database is sent to the server. Thus, the server can add these parameter attribute data to the common feature set to ensure that the data on the server is also the latest and maintain the data synchronization between the client and the server.
[0109] Reference Figure 2 In an embodiment of the present invention, there is also provided a device for updating a CPE data feature set, which is applied to a CPE device. The CPE device receives or sends a data packet by routing forwarding, and connects the data packet to a mobile network through a mobile network data module provided in the CPE device. The CPE device stores a first database, and the first database stores a currently used data feature set. The CPE device performs management operations on the data packet according to the data feature set in the first database. The management operations include at least one of collecting, analyzing, marking and controlling the data packet. The device includes:
[0110] The instruction receiving module 10 is used to determine whether an update instruction of a data feature set is received;
[0111] The data updating module 20 is used to obtain the updated data feature set if an update instruction of the data feature set is received;
[0112] A judging module 30, used to judge whether the first database needs to be updated;
[0113] A database establishment module 40, for creating a new second database if the data feature set needs to be updated, and storing the updated data feature set in the second database;
[0114] An interruption module 50, used for interrupting the management operation of the CPE device on the user data;
[0115] A replacement module 60, configured to replace the first database with the second database;
[0116] The restart module 70 is used to restart the management operation of the CPE device on the user data.
[0117] For the specific implementation of each module in the above device embodiment, please refer to the above method embodiment, which will not be repeated here.
[0118] Reference Figure 3 In an embodiment of the present invention, a computer device is also provided. The computer device may be a server, and its internal structure may be as follows: Figure 3As shown. The computer device includes a processor, a memory, a display screen, an input device, a network interface and a database connected through a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the corresponding data in this embodiment. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the method for updating the data feature set of the CPE mentioned above is implemented.
[0119] The processor executes the steps of updating the CPE data feature set, including:
[0120] The processor determines whether an update instruction of the data feature set is received;
[0121] If so, obtain an updated data feature set;
[0122] Determining whether the first database needs to be updated;
[0123] If yes, then creating a new second database and storing the updated data feature set in the second database;
[0124] Interrupting the management operation of the CPE device on user data;
[0125] replacing the first database with the second database;
[0126] Restart the management operation of the CPE device on the user data.
[0127] In a specific embodiment, the step of obtaining an updated data feature set includes:
[0128] The processor obtains a first common feature set from the server; and
[0129] A temporary feature set is obtained locally; the updated data feature set includes the first common feature set and / or the temporary feature set.
[0130] In a specific embodiment, the step of obtaining a temporary feature set locally includes:
[0131] The processor analyzes the data packet to obtain a first parameter attribute and a current time corresponding to the data packet;
[0132] Determine whether the first parameter attribute is included in a second common feature set, wherein the second common feature set is a common feature set downloaded from the server and saved locally when the data feature set was last updated;
[0133] If it is not included in the second common feature set, determining whether the first parameter attribute has been recorded in a local cache feature set; wherein the cache feature set records each parameter attribute and the corresponding recording time in an associated manner;
[0134] If the first parameter attribute has been recorded, determining whether the first parameter attribute in the cache feature set is marked;
[0135] If it is not marked, determining whether the duration between the current time and the recording time corresponding to the first parameter attribute in the cache feature set exceeds a preset duration;
[0136] If so, the first parameter attribute is added to the temporary feature set, and the first parameter attribute is marked in the cache feature set.
[0137] In a specific embodiment, the step of determining whether the first database needs to be updated includes:
[0138] The processor compares the first common feature set with the second common feature set to determine whether the first common feature set is different from the second common feature set;
[0139] If they are different, it is determined that the first database needs to be updated.
[0140] In a specific embodiment, after the step of comparing the first commonly used feature set with the second commonly used feature set to determine whether the first commonly used feature set is different from the second commonly used feature set, the step further includes:
[0141] If they are the same, the processor determines whether parameter attribute data is stored in the temporary feature set;
[0142] If the parameter attribute data is stored, it is determined that the first database needs to be updated.
[0143] In a specific embodiment, the step of restarting the management operation of the CPE device on the user data includes:
[0144] The processor determines whether there is a new data packet incoming;
[0145] If so, the new data packet is operated and managed according to the data feature set in the second database, and the management operation includes at least one of collecting, analyzing, marking and controlling the new data packet.
[0146] In a specific embodiment, after the step of restarting the management operation of the CPE device on the user data, the step further includes:
[0147] The processor deletes the remaining commonly used feature sets stored locally except the first commonly used feature set,
[0148] deleting the parameter attribute data in the temporary feature set that has been added to the second database, and
[0149] The parameter attribute data added into the second database is sent to the server.
[0150] Those skilled in the art will understand that Figure 3 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied.
[0151] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented. It can be understood that the computer-readable storage medium in this embodiment can be a volatile readable storage medium or a non-volatile readable storage medium.
[0152] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided by the present invention and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM.
[0153] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.
[0154] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for updating a data feature set by a CPE, It is characterized in that The method is applied to a CPE device with little storage space, wherein the CPE device receives or sends a data packet by routing forwarding, and connects the data packet to a mobile network through a mobile network data module provided in the CPE device. The CPE device stores a first database, and the first database stores a currently used data feature set. The CPE device performs management operations on the data packet according to the data feature set in the first database, and the management operations include at least one of collecting, analyzing, marking and controlling the data packet. The method includes: Determining whether an update instruction of a data feature set is received; If yes, then obtain an updated data feature set; the step of obtaining the updated data feature set includes: obtaining a first common feature set from the server in a compressed package; and obtaining a temporary feature set from the local; the updated data feature set includes the first common feature set and the temporary feature set; wherein, before the step of obtaining the temporary feature set from the local, it also includes: analyzing the data packet to obtain the first parameter attribute and the current time corresponding to the data packet; judging whether the first parameter attribute is included in the second common feature set, wherein the second common feature set is the common feature set downloaded from the server and saved locally when the data feature set is updated last time; if not included in the second common feature set, then judging whether the first parameter attribute has been recorded in the local cache feature set; wherein the cache feature set records each parameter attribute and the corresponding recording time in association; if the first parameter attribute has been recorded, then judging whether the first parameter attribute in the cache feature set is marked; if not marked, then judging whether the duration between the current time and the recording time corresponding to the first parameter attribute in the cache feature set exceeds the preset duration; if yes, then adding the first parameter attribute to the temporary feature set, and marking the first parameter attribute in the cache feature set; Determining whether the first database needs to be updated; If yes, then creating a new second database and storing the updated data feature set in the second database; Interrupting the management operation of the CPE device on user data; replacing the first database with the second database; Restarting the management operation of the CPE device on the user data; Delete the remaining commonly used feature sets stored locally except the first commonly used feature set, and only keep the version used for comparing whether the commonly used feature set needs to be updated next time, deleting the parameter attribute data in the temporary feature set that has been added to the second database, and The parameter attribute data added into the second database is sent to the server, and the server adds the parameter attribute data into the common feature set on the server.
2. The method for updating a CPE data feature set according to claim 1, It is characterized in that The step of determining whether the first database needs to be updated includes: Comparing the first common feature set with the second common feature set to determine whether the first common feature set is different from the second common feature set; If they are different, it is determined that the first database needs to be updated.
3. The method for updating a CPE data feature set according to claim 2, It is characterized in that After the step of comparing the first commonly used feature set with the second commonly used feature set to determine whether the first commonly used feature set is different from the second commonly used feature set, the method further includes: If they are the same, determining whether parameter attribute data is stored in the temporary feature set; If the parameter attribute data is stored, it is determined that the first database needs to be updated.
4. The method for updating a CPE data feature set according to claim 1, It is characterized in that The step of restarting the management operation of the CPE device on the user data includes: Determine whether there is a new data packet incoming; If so, the new data packet is operated and managed according to the data feature set in the second database, and the management operation includes at least one of collecting, analyzing, marking and controlling the new data packet.
5. A device for updating a data feature set of a CPE, It is characterized in that The invention is applied to a CPE device with little storage space, wherein the CPE device receives or sends a data packet by routing forwarding, and connects the data packet to a mobile network through a mobile network data module provided in the CPE device, wherein a first database is stored in the CPE device, wherein a currently used data feature set is stored in the first database, and the CPE device performs management operations on the data packet according to the data feature set in the first database, wherein the management operations include at least one of collecting, analyzing, marking and controlling the data packet, and the device includes: An instruction receiving module, used to determine whether an update instruction of a data feature set is received; A data update module, for obtaining an updated data feature set upon receiving an update instruction of a data feature set; obtaining a first commonly used feature set from a server in a compressed package; and obtaining a temporary feature set locally; the updated data feature set includes the first commonly used feature set and the temporary feature set; wherein, before the step of obtaining the temporary feature set locally, the step also includes: analyzing the data packet to obtain a first parameter attribute and a current time corresponding to the data packet; determining whether the first parameter attribute is included in a second commonly used feature set, wherein the second commonly used feature set is the one downloaded from the server and saved locally when the data feature set was last updated. common feature set; if it is not included in the second common feature set, then determining whether the first parameter attribute has been recorded in the local cache feature set; wherein the cache feature set records each parameter attribute and the corresponding recording time in association; if the first parameter attribute has been recorded, then determining whether the first parameter attribute in the cache feature set is marked; if it is not marked, then determining whether the duration between the current time and the recording time corresponding to the first parameter attribute in the cache feature set exceeds a preset duration; if so, then adding the first parameter attribute to the temporary feature set, and marking the first parameter attribute in the cache feature set; A judging module, used for judging whether the first database needs to be updated; A database establishment module, used for creating a new second database if the data feature set needs to be updated, and storing the updated data feature set in the second database; An interruption module, used for interrupting the management operation of the CPE device on user data; A replacement module, used to replace the first database with the second database; A restart module is used to restart the CPE device's management operation on the user data; delete the remaining commonly used feature sets stored locally except the first commonly used feature set, and only retain the version used for comparing whether the commonly used feature set needs to be updated next time, delete the parameter attribute data in the temporary feature set that has been added to the second database, and send the parameter attribute data added to the second database to the server, and the server adds the parameter attribute data to the commonly used feature set on the server.
6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, It is characterized in that When the processor executes the computer program, the steps of the method for updating a CPE data feature set according to any one of claims 1 to 4 are implemented.
7. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method for updating a CPE data feature set according to any one of claims 1 to 4 are implemented.
