SPC service switching record management method and device, equipment and storage medium

By dynamically adjusting the storage location of SPC service switching records according to query priority and frequency in multiple cache areas, the problem of query performance bottlenecks when network instability is solved, and query efficiency and user experience are improved.

CN119094923APending Publication Date: 2024-12-06FIBERHOME TELECOMMUNICATION TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411342778.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-25
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

When the network is unstable, frequent SPC service switching record query results in too many database read operations, resulting in query performance bottlenecks and affecting network system performance evaluation and user experience.

Method used

Multiple cache areas are used to store SPC service switching records in advance, and the cache area location is dynamically adjusted according to query priority and query frequency. Hot spot records are stored in high priority areas, non-hot spot records are stored in low priority areas, and in the cache area Direct query and update records in the database to reduce the number of times the database is loaded.

Benefits of technology

It improves the efficiency of querying SPC service switching records by external interfaces, reduces database loading time, and improves the timeliness and user experience of network system performance evaluation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119094923A_ABST
    Figure CN119094923A_ABST
Patent Text Reader

Abstract

A SPC service switching record management method, apparatus and device, and a storage medium, the method comprising the following steps: in response to a query signal for querying a switching record of an SPC service by an external interface, querying the switching record of the corresponding SPC service in a plurality of cache regions in a descending order according to a preset query priority corresponding to the plurality of cache regions; if the SPC service is not queried, the SPC service is loaded from the database and then sent to the external interface, and a switching record of the SPC service is added to the cache region with the lowest query priority; if so, sending a switching record of the SPC service to an external interface; according to the number of inquired times of the SPC service in the set first time period, whether the cache region where the SPC service is located needs to be adjusted or not is judged, and the cache region where the SPC service is located is adjusted when the cache region needs to be adjusted. The efficiency of an external interface for carrying out switching record query on a hotspot SPC service under most conditions is improved, and the possibility that each SPC service can be quickly queried subsequently can be improved according to the query frequency of the previous SPC service.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of automatic switching optical network service processing, and in particular to a management method, device, equipment and storage medium for SPC service switching records. Background Art

[0002] The switching record of SPC (Soft Permanent Connection) services is an important part of network maintenance and management. Recording service switching events can help network administrators analyze the causes of failures. By analyzing the switching records, administrators can evaluate the performance of the network or system and determine whether there are frequent switching. This can guide maintenance activities such as replacing aging equipment, upgrading software, or improving network configuration, helping to ensure high availability and continuity of services.

[0003] When a large amount of business switching occurs due to network instability, a large number of business switching records will be generated on the network management system and alarm information will be triggered multiple times in the external interface. When the external interface queries the switching record information based on the alarm message trigger to diagnose network performance, the traditional approach is for the network management system to read the switching record information from the database and return it to the calling third party.

[0004] However, when there are many queries triggered in a short period of time, the network management will have more database reading operations, because database reading is a slow IO operation. When the query volume is large, the query performance of the switching record will have bottlenecks. The network management cannot timely feedback the switching status of the control plane SPC (Soft Permanent Connection) service, which affects the user's correct evaluation of the performance of the entire network system and thus affects the user's perception. Summary of the invention

[0005] The present application provides a management method, device, equipment and storage medium for SPC service switching records, which can solve the problems existing in the above-mentioned related technologies.

[0006] In a first aspect, an embodiment of the present application provides a method for managing SPC service switching records, which adopts the following technical solutions:

[0007] A method for managing SPC service switching records, the method comprising the following steps:

[0008] In response to a query signal of an external interface for querying a switching record of an SPC service, query the corresponding switching record of the SPC service in the multiple cache areas in descending order according to the query priorities corresponding to the preset multiple cache areas; wherein each of the cache areas includes switching records of multiple different types of SPC services;

[0009] If the switching record of the SPC service is not found, the switching record of the corresponding SPC service is loaded from the database, the switching record of the SPC service is sent to the external interface, and the switching record of the SPC service is added to the cache area with the lowest query priority;

[0010] If the switching record of the SPC service is found, the switching record of the SPC service is sent to the external interface;

[0011] According to the number of queries of the SPC service within the set first time period, it is determined whether the cache area where the switching record of the SPC service is located needs to be adjusted, and the cache area where the switching record of the SPC service is located is adjusted when necessary.

[0012] In combination with the first aspect, in one implementation, judging whether it is necessary to adjust the cache area where the switching record of the SPC service is located according to the number of times the SPC service is queried within a set first time period, and adjusting the cache area where the switching record of the SPC service is located when necessary, includes the following steps:

[0013] Whether the number of queries for the SPC service within a set first time period is greater than a corresponding number threshold;

[0014] If it is greater, the switching record of the SPC service is adjusted to a cache area with a higher priority until it is in the cache area with the highest priority.

[0015] In combination with the first aspect, in one implementation, adjusting the switching record of the SPC service to a higher priority buffer area until it is in the highest priority buffer area includes the following steps:

[0016] If the switching record of the SPC service needs to be adjusted to the highest priority cache area, and the cache size of the highest priority cache area exceeds the set storage space threshold, after removing the switching record of the SPC service that has not been queried for the longest time in the highest priority cache area, the switching record of the SPC service will be adjusted to the highest priority cache area.

[0017] In combination with the first aspect, in one implementation, the method further includes the following steps:

[0018] When the switching record of any SPC service in the highest priority cache area is queried, or when the switching record of the SPC service in the highest priority cache area is deleted or modified, the switching records of each SPC service in the highest priority cache area are reordered according to the time when the switching records of each SPC service in the highest priority cache area were last queried.

[0019] In combination with the first aspect, in one implementation, the method further includes the following steps:

[0020] When receiving a switching message of any SPC service reported by the service device, determining whether the SPC service exists in each of the buffer areas;

[0021] If so, write the switching message of the SPC service into the switching record of the SPC service, and determine the number threshold corresponding to the SPC service according to the number of times the switching message of the SPC service is received within the set second time period;

[0022] If not, add a switching record corresponding to the SPC service in the cache area with the lowest query priority, and determine the number threshold corresponding to the SPC service according to the switching message of the SPC service received within the set second time period.

[0023] In combination with the first aspect, in one implementation, according to receiving the switching message of the SPC service within the set second time period, determining the number threshold corresponding to the SPC service,

[0024] The switching message of the SPC service is a message reported after message suppression according to the service source network element Id and the channel index Indx information, and the number threshold is obtained according to the number of message suppression and reception times of the switching message of the SPC service within the second time period.

[0025] In combination with the first aspect, in one implementation, the method further includes the following steps:

[0026] If the time of the most recent query of the switching record of any SPC service exceeds the set record time range relative to the current time, it will be removed from the cache area.

[0027] In a second aspect, an embodiment of the present application provides a management device for SPC service switching records, which adopts the following technical solution:

[0028] A management device for SPC service switching records, the management device for SPC service switching records comprising:

[0029] A query response module, configured to respond to a query signal of an external interface querying a switching record of an SPC service, and query the corresponding switching record of the SPC service in the multiple cache areas in descending order according to the query priorities corresponding to the preset multiple cache areas; wherein each of the cache areas includes a plurality of switching records of different types of SPC services;

[0030] A management module, which is configured to, if no switching record of the SPC service is found, load the corresponding switching record of the SPC service from a database and send the switching record of the SPC service to the external interface, and add the switching record of the SPC service in the cache area with the lowest query priority; if the switching record of the SPC service is found, send the switching record of the SPC service to the external interface; determine whether it is necessary to adjust the cache area where the switching record of the SPC service is located based on the number of times the SPC service is queried within a set first time period, and adjust the cache area where the switching record of the SPC service is located when necessary.

[0031] In a third aspect, an embodiment of the present application provides a management device for SPC service switching records, which adopts the following technical solution:

[0032] A management device for SPC service switching records, the management device for SPC service switching records comprising a processor, a memory, and a management program for SPC service switching records stored in the memory and executable by the processor, wherein when the management program for SPC service switching records is executed by the processor, the steps of the management method for SPC service switching records as described above are implemented.

[0033] In a fourth aspect, an embodiment of the present application provides a storage medium, which adopts the following technical solution:

[0034] A storage medium stores a management program for SPC service switching records, wherein when the management program for SPC service switching records is executed by a processor, the steps of the management method for SPC service switching records as described above are implemented.

[0035] The beneficial effects brought by the technical solution provided by the embodiments of the present application include:

[0036] By first establishing multiple cache areas to pre-store the switching records of different SPC services, there are differences in query priorities between different cache areas, and the SPC services that are more likely to be queried, that is, the switching records of hot SPC services, are stored in the cache areas with high priorities. Therefore, when searching for the switching records of related SPC services, it is possible to first search in the small-range, high-priority cache areas, thereby improving the efficiency of external interfaces in most cases for querying switching records for hot SPC services; at the same time, when the switching records are queried in the cache area, they can also be directly sent to the external interface without loading in the database, reducing time consumption, and when there are no switching records of related SPC services in multiple cache areas, they can be selected to be loaded from the database, and after loading, the present application improves the subsequent external interface search efficiency by adding them to the cache area with the lowest priority; in addition, for multiple SPC services in each cache area, the number of times they are queried in the first time period will be used to determine the cache area with which the SPC service is in which query priority, so that the present application can improve the possibility of being quickly queried in the future according to the frequency of each SPC service being queried in the past. Finally, the query efficiency of the external interface when querying related SPC business switching records is effectively improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 A flowchart of an embodiment of a method for managing SPC service switching records of the present application;

[0038] Figure 2 A schematic diagram of functional modules of an embodiment of a management device for SPC service switching records of the present application;

[0039] Figure 3 This is a schematic diagram of the hardware structure of the SPC service switching record management device involved in the embodiment of the present application. DETAILED DESCRIPTION

[0040] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0041] The switching record of SPC (Soft Permanent Connection) services is an important part of network maintenance and management. Recording service switching events can help network administrators analyze the causes of failures. By analyzing the switching records, administrators can evaluate the performance of the network or system and determine whether there are frequent switching. This can guide maintenance activities such as replacing aging equipment, upgrading software, or improving network configuration, helping to ensure high availability and continuity of services.

[0042] When a large amount of business switching occurs due to network instability, a large number of business switching records will be generated on the network management system and alarm information will be triggered multiple times on the external interface. When the external interface queries the switching record information based on the alarm message trigger to diagnose network performance, the traditional approach is for the network management system to read the switching record information from the database and return it to the calling third party.

[0043] However, when there are many queries triggered in a short period of time, the network management will have more database reading operations, because database reading is a slow IO operation. When the query volume is large, the query performance of the switching record will have a bottleneck. The network management cannot timely feedback the switching status of the control plane SPC service, which affects the user's correct evaluation of the performance of the entire network system, thereby affecting the user's perception.

[0044] Based on the above problems, the present application provides a management method, device, equipment and storage medium for SPC service switching records. The key point of the invention is that multiple cache areas are first established to pre-store switching records of different SPC services. At the same time, there are differences in query priorities between different cache areas, and the switching records of SPC services with a greater possibility of being queried, that is, hot SPC services, are stored in high-priority cache areas. Therefore, when searching for related SPC service switching records, it is possible to first search in a small-range, high-priority cache area, thereby improving the efficiency of external interfaces in querying switching records for hot SPC services in most cases; at the same time, When a switching record is found in the cache area, it can also be sent directly to the external interface without loading it in the database, which reduces time consumption. When there is no switching record of the relevant SPC service in multiple cache areas, you can choose to load it from the database. After loading, this application improves the subsequent search efficiency of the external interface by adding it to the cache area with the lowest priority. In addition, for the various SPC services in each cache area, the number of times it is queried in the first time period will determine the cache area with the query priority of the SPC service, so that this application can improve the possibility of being quickly queried in the future according to the frequency of each SPC service being queried in the past. Finally, the query efficiency of the external interface when querying the relevant SPC service switching record is effectively improved.

[0045] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0046] In a first aspect, an embodiment of the present application provides a method for managing SPC service switching records.

[0047] In one embodiment, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the management method of the SPC service switching record of this application. Figure 1 As shown, the management method of SPC service switching records includes:

[0048] S100, responding to a query signal of an external interface for querying a switching record of an SPC service, querying corresponding switching records of the SPC service in a plurality of cache areas in descending order according to the query priorities corresponding to the preset plurality of cache areas; wherein each of the cache areas includes switching records of a plurality of different types of SPC services;

[0049] S200, if the switching record of the SPC service is not found, the switching record of the corresponding SPC service is loaded from the database, the switching record of the SPC service is sent to the external interface, and the switching record of the SPC service is added to the cache area with the lowest query priority;

[0050] S300: If a switching record of the SPC service is found, the switching record of the SPC service is sent to the external interface;

[0051] S400: Determine whether it is necessary to adjust the cache area where the switching record of the SPC service is located according to the number of queries of the SPC service within a set first time period, and adjust the cache area where the switching record of the SPC service is located when necessary.

[0052] Specifically, in this embodiment, two cache areas are specifically set, namely a temporary cache area with a relatively low query priority and a main cache area with a higher query priority. Both the temporary cache area and the main cache area are defined by a bidirectional queue and a hash table. At the same time, in order to grasp the number of times each SPC service is queried within the first time period, a historical access record cache structure will be established to record the number of times each SPC service is queried within at least the first time period and the timestamp of each query.

[0053] When receiving a query signal from an external interface using the source network element ID and channel index as key values, the primary cache will be queried first. If the data item is in the primary cache, the corresponding data will be returned to the external interface. If not, the temporary cache will be further queried. If the data item is in the temporary cache, the corresponding data will be returned to the external interface. If the switching record of the corresponding SPC service is not found in the primary cache and the temporary cache, it will be loaded from the database and sent to the external interface. At the same time, the switching record of the SPC service will be added to the temporary cache, and the number of times the SPC service is queried and the timestamp data of the query will be added to the historical access record cache structure.

[0054] In this way, the switching records of different SPC services are pre-stored by first establishing multiple cache areas. At the same time, there are differences in query priorities between different cache areas, and the switching records of SPC services with a greater possibility of being queried, that is, hot SPC services, are stored in the cache areas with high priorities. Therefore, when searching for switching records of related SPC services, it is possible to first search in the cache areas with small ranges and high priorities, thereby improving the efficiency of external interfaces in querying switching records for hot SPC services in most cases; at the same time, when the switching records are queried in the cache area, they can also be directly sent to The external interface does not need to be loaded in the database, which reduces time consumption. When there is no switching record of the relevant SPC service in multiple cache areas, you can choose to load it from the database. After loading, this application will improve the subsequent external interface search efficiency by adding it to the cache area with the lowest priority. In addition, for the various SPC services in each cache area, it will also determine the cache area with the query priority of the SPC service according to the number of times it is queried in the first time period, so that this application can improve the possibility of being quickly queried in the future according to the frequency of each SPC service being queried in the past. Finally, it is achieved to effectively improve the query efficiency of the external interface when querying the relevant SPC service switching records.

[0055] Further, in one embodiment, the step S400, judging whether it is necessary to adjust the cache area where the switching record of the SPC service is located according to the number of queries of the SPC service within the set first time period, and adjusting the cache area where the switching record of the SPC service is located when necessary, includes the following steps:

[0056] S410, according to whether the number of inquiries of the SPC service within the set first time period is greater than the corresponding number threshold;

[0057] S420: If it is greater, adjust the switching record of the SPC service to a cache area with a higher priority until it is in the cache area with the highest priority.

[0058] Specifically, the first time period is set by the technician based on experience, and the number of queries of the SPC service in the first time period is compared with the number threshold corresponding to the SPC service, and the number threshold can be set by the technician in advance according to the type of the SPC service, or it can be obtained by relevant calculation based on all the switching data that occurred in the recent period. The present application does not limit this. In order to achieve the ability to grasp the number threshold corresponding to each SPC service, in this embodiment, a k-value cache structure covering the number threshold information corresponding to each SPC service is first established, which is defined by a hash table structure, and then when it is necessary to determine the number threshold corresponding to the SPC service, the k-value cache structure can be queried. When the number of queries of the switching record of a certain SPC service in the temporary cache area in the first time period is greater than the number threshold, the frequency of the query of the SPC service in the recent period is high, and it belongs to the hotspot query service of the external interface, and then by adjusting it from the temporary cache area to the main cache area, it is realized that when it is queried again in the subsequent process, it can be quickly queried in the main cache area.

[0059] Further, in some embodiments, the S420, adjusting the switching record of the SPC service to a higher priority buffer area until it is in the highest priority buffer area, includes the following steps:

[0060] S421. If the switching record of the SPC service needs to be adjusted to the highest priority cache area, and the cache size of the highest priority cache area exceeds the set storage space threshold, remove the switching record of the SPC service that has not been queried for the longest time in the highest priority cache area, and then adjust the switching record of the SPC service to the highest priority cache area.

[0061] Specifically, when the main cache is full of switching records of multiple SPC services, in order to successfully write the switching records of the SPC services into the main cache, it is necessary to first remove the switching record of the SPC service that has not been queried for the longest time in the main cache, and then write it into the main cache for subsequent query.

[0062] In order to quickly determine the SPC service that needs to be removed, further, in some embodiments, the following steps are further included:

[0063] S430. When the switching record of any SPC service in the highest priority cache area is queried, or when the switching record of the SPC service in the highest priority cache area is deleted or modified, the switching records of each SPC service in the highest priority cache area are reordered according to the time when the switching records of each SPC service in the highest priority cache area were last queried.

[0064] That is, in the main buffer, the switching records of each SPC service will be sorted according to the time when each was last queried to form a queue. Whenever any SPC service is queried, it will be moved to the head of the queue. In this way, the SPC service that has not been queried for the longest time will be at the end of the queue. In this way, when a switching record of a new SPC service is needed, it is only necessary to remove the SPC service at the end of the queue, and the switching record of the newly written SPC service will be placed at the head of the queue.

[0065] Furthermore, in some embodiments, the method for managing SPC service switching records further includes the following steps:

[0066] S500, upon receiving a switching message of any SPC service reported by a service device, determining whether the SPC service exists in each of the buffer areas;

[0067] Specifically, since the control plane needs to report messages twice or multiple times for some service data, the network manager needs to process the data reported multiple times before it can be stored in the database. There is a certain delay in the processing of the switching record, which has a certain impact on the user experience. When a large number of SPC service switching occurs in the network, the control plane will report a large number of channel messages to the network manager in a short period of time. The network manager will bear a large processing pressure in a short period of time when processing the switching records. It may not be able to timely feedback the switching situation of the control plane SPC service due to reasons such as computing efficiency or query efficiency, which affects the user's correct evaluation of the entire network system. Therefore, in this embodiment, the switching message of each SPC service is a message reported after message suppression based on the service source network element Id and channel index Index information. That is, when the SPC service of the device bottom layer is switched, the network manager receives the message reported by the control plane, and at the same time suppresses these messages according to the service source network element Id and channel index Index information. For example, in a short period of time, the "add, modify, delete" message of the same service will eventually retain a "delete" message as the switching message after message suppression.

[0068] After receiving a switching message of an SPC service, the SPC service is searched in each main buffer area and temporary buffer area by parsing the source network element ID and the channel index ID in the switching message as key values.

[0069] This setting enables

[0070] S600, if it exists, write the switching message of the SPC service into the switching record of the SPC service, and determine the number threshold corresponding to the SPC service according to the switching message of the SPC service received within the set second time period;

[0071] Specifically, the number threshold is obtained in this embodiment according to the weighted calculation of the number of message suppressions and the number of receptions of the switching message of the SPC service in the second time period. After the number threshold is obtained, it is correspondingly updated to the k value cache structure. Among them, the second time period is an empirical value set by a technician, and the number of message suppressions is the number of messages suppressed except for the reported message when the switching message is obtained.

[0072] S700: If not, add a switching record corresponding to the SPC service in the cache area with the lowest query priority, and determine a number threshold corresponding to the SPC service according to a switching message of the SPC service received within a set second time period.

[0073] When the switching record corresponding to the SPC service is added to the temporary cache area, the corresponding related data of the SPC service will be updated synchronously in the historical access record cache structure and the k value cache structure.

[0074] Furthermore, in some embodiments, the SPC service switching record management method further includes the following steps:

[0075] S800: If the time of the most recent query of the switching record of any SPC service exceeds the set record time range relative to the current time, remove it from the cache area.

[0076] Specifically, after the switching of each SPC service is completed, the corresponding switching record data will be updated in the main cache area or the temporary cache area, and the historical access record cache structure and the k-value cache structure will also be updated. In order to avoid the SPC service that has not been queried for a long time occupying the cache space in the main cache area and the temporary cache area, this embodiment will determine whether the difference between the timestamp of the last access in the historical access record and the current time exceeds the specified time threshold. If it exceeds, it is considered that it is no longer active, and the data corresponding to the SPC service will be removed from each cache area, the historical access record cache structure and the k-value cache structure.

[0077] In a second aspect, an embodiment of the present application also provides a management device for SPC service switching records.

[0078] In one embodiment, referring to Figure 2 , Figure 2 This is a functional module diagram of an embodiment of a management device for SPC service switching records of this application. Figure 2 As shown, the management device for SPC service switching records includes:

[0079] A query response module, configured to respond to a query signal of an external interface querying a switching record of an SPC service, and query the corresponding switching record of the SPC service in the multiple cache areas in descending order according to the query priorities corresponding to the preset multiple cache areas; wherein each of the cache areas includes a plurality of switching records of different types of SPC services;

[0080] A management module, which is configured to, if no switching record of the SPC service is found, load the corresponding switching record of the SPC service from a database and send the switching record of the SPC service to the external interface, and add the switching record of the SPC service in the cache area with the lowest query priority; if the switching record of the SPC service is found, send the switching record of the SPC service to the external interface; determine whether it is necessary to adjust the cache area where the switching record of the SPC service is located based on the number of times the SPC service is queried within a set first time period, and adjust the cache area where the switching record of the SPC service is located when necessary.

[0081] Among them, the functional implementation of each module in the above-mentioned SPC service switching record management device corresponds to each step in the above-mentioned SPC service switching record management method embodiment, and its functions and implementation processes are no longer repeated here.

[0082] In a third aspect, an embodiment of the present application provides a management device for SPC service switching records. The management device for SPC service switching records may be a personal computer (PC), a laptop computer, a server, or other device with data processing capabilities.

[0083] Reference Figure 3 , Figure 3 The hardware structure diagram of the SPC service switching record management device involved in the embodiment of the present application is shown in FIG. In the embodiment of the present application, the SPC service switching record management device may include a processor, a memory, a communication interface, and a communication bus.

[0084] The communication bus may be of any type and is used to interconnect the processor, the memory, and the communication interface.

[0085] The communication interface includes input / output (I / O) interfaces, physical interfaces, and logical interfaces, which are used to interconnect devices within the management device for SPC service switching records, and interfaces used to interconnect the management device for SPC service switching records with other devices (such as other computing devices or user devices). The physical interface can be an Ethernet interface, an optical fiber interface, an ATM interface, etc.; the user device can be a display, a keyboard, etc.

[0086] The memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.

[0087] The processor may be a general-purpose processor, and the general-purpose processor may call the management program of the SPC service switching record stored in the memory, and execute the management method of the SPC service switching record provided in the embodiment of the present application. For example, the general-purpose processor may be a central processing unit (CPU). The method executed when the management program of the SPC service switching record is called may refer to the various embodiments of the management method of the SPC service switching record of the present application, and will not be repeated here.

[0088] Those skilled in the art will understand that Figure 3 The hardware structure shown in the figure does not constitute a limitation on the present application, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0089] In a fourth aspect, an embodiment of the present application also provides a storage medium.

[0090] The storage medium of the present application stores a management program for SPC service switching records, wherein when the management program for SPC service switching records is executed by a processor, the steps of the management method for SPC service switching records as described above are implemented.

[0091] Among them, the method implemented when the SPC service switching record management program is executed can refer to the various embodiments of the SPC service switching record management method of the present application, and will not be repeated here.

[0092] It should be noted that the serial numbers of the above-mentioned embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.

[0093] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit "first", "second" and "third" to different types.

[0094] In the description of the embodiments of the present application, "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific way.

[0095] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.

[0096] In some processes described in the embodiments of the present application, multiple operations or steps that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish the different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.

[0097] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, and includes a number of instructions for a terminal device to execute the methods described in each embodiment of the present application.

[0098] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for managing SPC service switching records, characterized in that: The method comprises the following steps: In response to a query signal of an external interface for querying a switching record of an SPC (Soft Permanent Connection) service, query the corresponding switching record of the SPC service in the multiple cache areas in descending order according to the query priorities corresponding to the preset multiple cache areas; wherein each of the cache areas includes at least one switching record of the SPC service, and the types of the switching records of the SPC services in different cache areas are different; If the switching record of the SPC service is not found, the switching record of the corresponding SPC service is loaded from the database, the switching record of the SPC service is sent to the external interface, and the switching record of the SPC service is added to the cache area with the lowest query priority; If the switching record of the SPC service is found, the switching record of the SPC service is sent to the external interface; According to the number of queries of the SPC service within the set first time period, it is determined whether the cache area where the switching record of the SPC service is located needs to be adjusted, and the cache area where the switching record of the SPC service is located is adjusted when necessary.

2. The SPC service switching record management method according to claim 1, characterized in that: The step of determining whether it is necessary to adjust the cache area where the switching record of the SPC service is located according to the number of queries of the SPC service within a set first time period, and adjusting the cache area where the switching record of the SPC service is located when necessary, comprises the following steps: Whether the number of queries for the SPC service within a set first time period is greater than a corresponding number threshold; If it is greater, the switching record of the SPC service is adjusted to a cache area with a higher priority until it is in the cache area with the highest priority.

3. The SPC service switching record management method according to claim 2, characterized in that: The step of adjusting the switching record of the SPC service to a higher priority buffer area until it is in the highest priority buffer area comprises the following steps: If the switching record of the SPC service needs to be adjusted to the highest priority cache area, and the cache size of the highest priority cache area exceeds the set storage space threshold, after removing the switching record of the SPC service that has not been queried for the longest time in the highest priority cache area, the switching record of the SPC service will be adjusted to the highest priority cache area.

4. The method for managing SPC service switching records according to claim 3, characterized in that: The following steps are also included: When the switching record of any SPC service in the highest priority cache area is queried, or when the switching record of the SPC service in the highest priority cache area is deleted or modified, the switching records of each SPC service in the highest priority cache area are reordered according to the time when the switching records of each SPC service in the highest priority cache area were last queried.

5. The SPC service switching record management method according to claim 2, characterized in that: The following steps are also included: When receiving a switching message of any SPC service reported by the service device, determining whether the SPC service exists in each of the buffer areas; If so, write the switching message of the SPC service into the switching record of the SPC service, and determine the number threshold corresponding to the SPC service according to the number of times the switching message of the SPC service is received within the set second time period; If not, add a switching record corresponding to the SPC service in the cache area with the lowest query priority, and determine the number threshold corresponding to the SPC service according to the switching message of the SPC service received within the set second time period.

6. The SPC service switching record management method according to claim 5, characterized in that: In the step of determining the number threshold corresponding to the SPC service according to receiving the switching message of the SPC service within the set second time period, The switching message of the SPC service is a message reported after message suppression according to the service source network element Id and the channel index Indx information, and the number threshold is obtained according to the number of message suppression and reception times of the switching message of the SPC service within the second time period.

7. The SPC service switching record management method according to claim 1, characterized in that: The following steps are also included: If the time of the most recent query of the switching record of any SPC service exceeds the set record time range relative to the current time, it will be removed from the cache area.

8. A management device for SPC service switching records, characterized in that: The management device of the SPC service switching record includes: A query response module, configured to respond to a query signal of an external interface querying a switching record of an SPC service, and query the corresponding switching record of the SPC service in the multiple cache areas in descending order according to the query priorities corresponding to the preset multiple cache areas; wherein each of the cache areas includes a plurality of switching records of different types of SPC services; A management module, which is configured to, if no switching record of the SPC service is found, load the corresponding switching record of the SPC service from a database, send the switching record of the SPC service to the external interface, and add the switching record of the SPC service in the cache area with the lowest query priority; if the switching record of the SPC service is found, send the switching record of the SPC service to the external interface; and, based on the number of times the SPC service is queried within a set first time period, determine whether it is necessary to adjust the cache area where the switching record of the SPC service is located, and adjust the cache area where the switching record of the SPC service is located when necessary.

9. A management device for SPC service switching records, characterized in that: The SPC service switching record management device includes a processor, a memory, and an SPC service switching record management program stored in the memory and executable by the processor, wherein when the SPC service switching record management program is executed by the processor, the steps of the SPC service switching record management method as described in any one of claims 1 to 7 are implemented.

10. A storage medium, characterized in that: The storage medium stores a management program for SPC service switching records, wherein when the management program for SPC service switching records is executed by a processor, the steps of the management method for SPC service switching records according to any one of claims 1 to 7 are implemented.