Service layer network element cluster service method and device and electronic equipment
By optimizing the business layer network element cluster through a unified authentication entry point and reverse proxy cluster, the slow response problem caused by business requests interacting with large-scale servers was solved, enabling rapid fault recovery and efficient business processing, and improving user experience and system stability.
Patent Information
- Application Number
- CN202511556741.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-28
- Publication Date
- 2026-01-27
AI Technical Summary
The slow response time caused by business requests interacting with large-scale servers in the business layer network element cluster, especially under conditions of network latency, resource contention, data synchronization, and server failure, affects processing speed and user experience.
A unified authentication entry point and reverse proxy cluster are introduced. Business requests are assigned to the reverse proxy server by pre-setting weights, session data is stored using a shared storage system, and requests are forwarded to the business layer network element server that is not abnormal when authentication fails, so as to realize automatic fault switching and retry mechanism, and abnormal handling is carried out in combination with natural language operation and maintenance instructions.
It improved the response speed of business requests, ensured service continuity and user experience, reduced operational complexity and user complaint rate, and enhanced system robustness and user satisfaction.
Smart Images

Figure CN121418480A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of information technology, and more specifically, to a service layer network element cluster service method, apparatus, and electronic device. Background Technology
[0002] In today's highly digitalized world, business layer network element clusters, as critical infrastructure supporting large-scale online services, face unprecedented challenges. With the explosive growth of multimedia services, especially the increasing prevalence of high-bandwidth applications such as high-definition video streaming, real-time audio conferencing, and big data interaction, the number and complexity of business requests have risen dramatically. To address this trend, service providers have widely adopted business layer network element clusters, deploying a large number of servers within the cluster to achieve rapid response and efficient processing of massive business requests.
[0003] However, while the business layer network element cluster can provide powerful computing and concurrent processing capabilities, its internal large-scale server interaction mechanism has become a technical bottleneck. Specifically, when business requests need to be transmitted between multiple servers within the cluster, each interaction may face complex situations such as network latency, resource contention, data synchronization issues, and potential server failures and authentication anomalies. These problems accumulate and significantly impact the processing speed of business requests and the overall service quality, leading to a degraded user experience.
[0004] There is currently no effective solution to the above problems. Summary of the Invention
[0005] This application provides a service method, apparatus, and electronic device for a service layer network element cluster, which at least solves the technical problem of slow response to service requests caused by the need for service requests in the relevant service layer network element cluster to interact with a large number of servers within the cluster.
[0006] According to one aspect of this application, a service method for a service layer network element cluster is provided, comprising: receiving a service request sent by a target multimedia terminal device; sending the service request to a reverse proxy server in a reverse proxy cluster according to a preset weight, wherein the reverse proxy server is used to forward the service request to a target service layer network element server in a service layer network element server cluster, the target service layer network element server is used to process the service request and store session data in a shared storage system; and, if it is determined that an authentication failure has occurred on the target service layer network element server, forwarding subsequent service requests sent by the target multimedia terminal device to a first service layer network element server in the service layer network element server cluster, wherein the first service layer network element server is a service layer network element server that has not experienced an authentication failure, the first service layer network element server is used to obtain session data in the shared storage system, and provide services to the target multimedia terminal device based on the session data.
[0007] Optionally, the method further includes: receiving a request failure response for a service request sent by a target service layer network element server; forwarding the request failure response to a target multimedia terminal device, wherein the request failure response includes at least: fault code information, and the target multimedia terminal device associates the fault code information with the service request; based on the fault code information, initiating a retry mechanism and setting an incremental retry interval; and re-initiating the service request to the service layer network element server according to the retry interval.
[0008] Optionally, the method further includes: receiving a natural language operation and maintenance instruction sent by a mobile communication terminal; parsing the natural language operation and maintenance instruction to obtain an operation and maintenance request, wherein the operation and maintenance request includes at least: an operation type and identification information of the target service layer network element server; generating an authentication information string based on the operation and maintenance request; and sending an interface request to the service layer network element server management system, wherein the interface request includes at least: an operation and maintenance request and an authentication information string, and the interface request is used to trigger the service layer network element server management system to perform the operation and maintenance operation corresponding to the operation type on the target service layer network element server.
[0009] Optionally, based on the operation and maintenance request, an authentication information string is generated, including: combining the operation type, the data information of the business layer network element server, and a random string to obtain a combination result, wherein the data information includes: the network address and identification information of the business layer network element server; and encrypting the combination result using an encryption algorithm to obtain the authentication information string.
[0010] Optionally, the operation type includes at least one of the following: removing the abnormal service layer network element server from the reverse proxy cluster, restoring the abnormal service layer network element server, and repairing the abnormal service layer network element server.
[0011] Optionally, subsequent service requests are service access requests initiated by the target multimedia terminal device during the period when the target service layer network element server is abnormal, due to normal user operation, and the initiation of subsequent service requests does not depend on the restart action of the multimedia terminal device.
[0012] Optionally, if it is determined that the target service layer network element server has experienced an authentication anomaly, the method further includes: stopping the sending of any network traffic to the target service layer network element server until the target service layer network element server returns to normal.
[0013] According to another aspect of this application, a service layer network element cluster service device is also provided, comprising: a receiving module for receiving service requests sent by a target multimedia terminal device; a first sending module for sending the service requests to a reverse proxy server in a reverse proxy cluster according to a preset weight, wherein the reverse proxy server forwards the service requests to a target service layer network element server in a service layer network element server cluster, the target service layer network element server processes the service requests and stores session data in a shared storage system; and a second sending module for forwarding subsequent service requests sent by the target multimedia terminal device to a first service layer network element server in a service layer network element server cluster when it is determined that an authentication failure has occurred on the target service layer network element server, wherein the first service layer network element server is a service layer network element server that has not experienced an authentication failure, the first service layer network element server obtains session data in the shared storage system, and provides services to the target multimedia terminal device based on the session data.
[0014] According to another aspect of this application, a non-volatile storage medium is also provided, the storage medium including a stored program, wherein the program, when running, controls the device where the storage medium is located to execute the above-mentioned business layer network element cluster service method.
[0015] According to another aspect of this application, an electronic device is also provided, including: a memory and a processor, the processor being configured to run a program stored in the memory, wherein the program executes the above-mentioned business layer network element cluster service method during runtime.
[0016] According to another aspect of this application, a computer program is also provided, wherein when the computer program is executed by a processor, it implements the above-described service layer network element cluster service method.
[0017] According to another aspect of this application, a computer program product is also provided, the computer program product including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and the computer program implements the above-mentioned business layer network element cluster service method when executed by a processor.
[0018] In this application, a method is adopted to receive service requests sent by a target multimedia terminal device; send the service requests to a reverse proxy server in a reverse proxy cluster according to a preset weight, wherein the reverse proxy server is used to forward the service requests to a target business layer network element server in a business layer network element server cluster, the target business layer network element server is used to process the service requests and store session data in a shared storage system; if it is determined that the target business layer network element server has encountered an authentication failure, the subsequent service requests sent by the target multimedia terminal device are forwarded to a first business layer network element server in the business layer network element server cluster, wherein the first business layer network element server is a business layer network element server that has not encountered an authentication failure, the first business layer network element server is used to obtain session data in the shared storage system, and provide services to the target multimedia terminal device based on the session data. This method achieves the purpose of interacting with service requests through a unified authentication entry point, thereby improving the technical effect of improving the response speed of service requests, and solving the technical problem of slow response to service requests caused by the need for service requests in the relevant business layer network element cluster to interact with a large number of servers in the cluster. Attached Figure Description
[0019] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments of this application and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0020] Figure 1 This is a flowchart of a service layer network element cluster service method according to an embodiment of this application;
[0021] Figure 2 This is a schematic diagram of an interaction between devices according to an embodiment of this application;
[0022] Figure 3 This is a schematic diagram of an interactive optimization process according to an embodiment of this application;
[0023] Figure 4 This is a flowchart of a set-top box proactive retry request according to an embodiment of this application;
[0024] Figure 5 This is a flowchart illustrating how a natural language interaction is implemented to process EPG servers according to an embodiment of this application.
[0025] Figure 6 A structural diagram of a service layer network element cluster service device according to an embodiment of this application;
[0026] Figure 7 Hardware structure block diagram of a computer terminal for a service layer network element cluster service method according to an embodiment of this application. Detailed Implementation
[0027] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0028] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0029] According to an embodiment of this application, a method embodiment of a service layer network element cluster service method is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0030] Figure 1 This is a flowchart of a service layer network element cluster service method according to an embodiment of this application, such as... Figure 1 As shown, the method includes the following steps:
[0031] Step S102: Receive the service request sent by the target multimedia terminal device.
[0032] In step S102, the unified authentication entry point receives all service requests from multimedia terminal devices. The cluster service entry point can be a load balancer or a master node.
[0033] The target multimedia terminal device can be a smartphone, tablet, laptop, smart TV, or any other device capable of connecting to the internet and initiating service requests. For example, the target multimedia terminal device is a set-top box (STB), specifically an IPTV set-top box, which is a device used to receive and transmit video content to a television via Internet Protocol (IPP).
[0034] Business requests can involve various types such as multimedia streaming, data querying, content uploading, and user authentication.
[0035] Step S104: The service request is sent to the reverse proxy server in the reverse proxy cluster according to the preset weight. The reverse proxy server is used to forward the service request to the target service layer network element server in the service layer network element server cluster. The target service layer network element server is used to process the service request and store the session data in the shared storage system.
[0036] The aforementioned preset weights can be calculated based on parameters such as the reverse proxy server's processing capacity, current load, historical performance, geographical location, and network latency.
[0037] Specifically, processing capacity is used to evaluate the reverse proxy server's hardware resources such as CPU, memory, and disk I / O, ensuring that business requests are assigned to the server with the strongest processing capacity. Current load refers to the number of business requests the server is currently processing; new requests are avoided from being sent to servers already near full capacity to prevent performance degradation. Historical performance is determined based on the server's historical data processing efficiency and response time, giving higher weight to servers with stable performance to improve overall service quality and response speed. Regarding geolocation, business requests are preferentially sent to reverse proxy servers geographically closer to users to reduce network latency. Regarding network latency: business requests are forwarded to the reverse proxy server with the lowest network latency, thereby speeding up request processing.
[0038] The reverse proxy cluster in step S104 is an Nginx reverse proxy cluster, which is used to improve the availability, load balancing, and security of network services. In the Nginx reverse proxy cluster, one or more Nginx servers act as reverse proxies, located between the multimedia terminal device and the business layer network element server cluster. When a client (multimedia terminal device) sends a request to the unified authentication entry point, the Nginx server can forward the request to one or more servers in the business layer network element server cluster according to preset rules and policies.
[0039] A reverse proxy cluster is used to alleviate the direct pressure from the external network on the target business layer network element server, ensuring that business requests can be responded to quickly even in high-concurrency scenarios. When the reverse proxy server receives a business request, it forwards the request to the target business layer network element server in the business layer network element server cluster.
[0040] The business layer network element server is an entity used to process multimedia service requests, execute business logic, and perform data processing and storage. After processing the service request, the target business layer network element server will store the generated session data (such as user login status, personalized settings, historical transaction records, etc.) in the shared storage system.
[0041] Service layer network element servers, such as Electronic Program Guide (EPG) servers, are key components of multimedia services, especially IPTV systems.
[0042] The main functions of an EPG server include: 1. Maintaining detailed information on all playable channels and programs, including program titles, descriptions, categories, and broadcast times, which constitute an electronic program guide. 2. Interacting with front-end devices (such as set-top boxes) to provide data for building a user-friendly program selection interface, enabling users to easily browse and select programs. 3. Receiving the latest program data from program providers and updating it to the database in real time to ensure users see the most accurate and up-to-date program list. 4. Providing personalized content recommendations based on users' viewing history and preferences, increasing user engagement and improving the viewing experience. 5. Identifying different users' account information and providing registered users with account-based personalized services, such as cloud storage and viewing history synchronization.
[0043] The shared storage system provides a unified data storage and retrieval interface for all business-layer network element servers within the reverse proxy cluster. Regardless of which server handles a specific business request, if subsequent requests are related to previous sessions, the first-layer business element server can retrieve session data from the shared storage system, thus achieving seamless service continuity. In other words, even if the target business-layer network element server is temporarily unable to provide service for various reasons (such as authentication failures), the user's session experience will not be significantly affected, and a new first-layer business element server can quickly take over the work and continue to provide service based on existing session data.
[0044] Step S106: If it is determined that the target service layer network element server has an authentication failure, the subsequent service requests sent by the target multimedia terminal device are forwarded to the first service layer network element server in the service layer network element server cluster. The first service layer network element server is the service layer network element server that has not experienced an authentication failure. The first service layer network element server is used to obtain session data in the shared storage system and provide services to the target multimedia terminal device based on the session data.
[0045] In step S106, when an authentication anomaly is detected in the target service layer network element server due to reasons such as certificate expiration, key error, or authentication failure, subsequent service requests are forwarded to the first service layer network element server in the service layer network element server cluster. The "first service layer network element server" refers to those servers that have not experienced authentication anomalies and are able to provide services normally. Through the shared storage system, the first service layer network element server can access and restore session data, thereby continuing to provide services to multimedia terminal devices without requiring users to interrupt their current services or re-authenticate. This mechanism can improve service continuity and user experience.
[0046] Optionally, subsequent service requests are service access requests initiated by the target multimedia terminal device during the period when the target service layer network element server is abnormal, due to normal user operation, and the initiation of subsequent service requests does not depend on the restart action of the multimedia terminal device.
[0047] It should be noted that authentication anomalies refer to problems encountered by the service layer network element server during user authentication or authorization. In related architectures, authentication anomalies may lead to service interruptions until the problem is resolved. However, in this embodiment, a rapid response is achieved by forwarding subsequent requests to the first service layer network element server. This operation ensures the continuity of multimedia services and a seamless user experience, even if the target service layer network element server is temporarily unable to provide services.
[0048] Upon receiving subsequent service requests, the first-layer network element server retrieves relevant session data from the shared storage system to restore the context of the current user session. The shared storage system centrally stores session data for all service requests, including but not limited to user login status, personalized settings, and historical transaction records, ensuring that this data can be quickly accessed and synchronized among servers within the cluster. This means that the first-layer network element server can continue providing services based on existing session data, without requiring the user to log in again or submit the same service request, thus avoiding user experience interruptions and unnecessary resource waste.
[0049] It is worth noting that subsequent service requests are unaffected by the restart of the multimedia terminal device. Even if the target service layer network element server experiences authentication failure, as long as the user continues normal operations on the terminal device, such as clicking to play a video, sending chat messages, or updating personal information, the terminal device will automatically send these service requests to the cluster without requiring the user to interrupt services, exit the application, or restart the device. This design not only simplifies user operations but also significantly improves the flexibility of service processing, enabling rapid recovery and maintenance of normal service even in the face of server failures, thereby ensuring service continuity and user satisfaction.
[0050] Figure 2 This is a schematic diagram of device interaction according to an embodiment of this application, such as... Figure 2 As shown, to improve the performance and reliability of the EPG service, an advanced architecture is adopted, including a load balancer such as Linux Virtual Server (LVS) and an nginx reverse proxy cluster. LVS, as a high-performance load balancer, is responsible for evenly distributing the massive requests from the set-top box to multiple nginx servers in the nginx reverse proxy cluster. Each nginx server acts as a unified authentication entry point, handling all EPG-related authentication requests centrally, thereby simplifying the interaction between the set-top box and the EPG server, eliminating the need to establish separate connections with each EPG server.
[0051] In addition, to ensure high system availability, LVS deploys a keepalived dual-machine hot standby solution. If a single machine fails, it automatically switches to a standby node, ensuring service continuity. Simultaneously, each node in the nginx cluster undergoes periodic health checks, and LVS adjusts its traffic distribution strategy accordingly to avoid sending requests to nginx servers in abnormal states, thereby maintaining the healthy operation of the entire cluster.
[0052] Figure 3 This is a schematic diagram of an interactive optimization process according to an embodiment of this application. Figure 3As can be seen, this embodiment introduces the concept of shared session storage in the EPG server cluster, centrally storing the session data between the set-top box and the EPG in a highly available, distributed service, using Redis as the underlying technology for shared storage. When a user establishes a connection with the EPG server, the session data is serialized and stored in the Redis cluster. Even if one or more EPG servers encounter authentication failures, the user's session information can still be intact in Redis. In other words, when a healthy EPG server receives a subsequent request from the same user, it can quickly retrieve the relevant session data from Redis, immediately take over the service, and thus avoid service interruptions caused by faulty servers. It also eliminates the need to wait for the user to actively restart the server, improving user experience and operational efficiency, reducing the overall ineffective load on the cluster, and achieving the technical effect of efficient resource utilization.
[0053] In summary, by deploying an LVS and nginx reverse proxy cluster in front of the EPG cluster, the continuity of user service can be ensured even in the face of authentication failures on individual EPG servers. User requests are first forwarded by nginx to the various servers in the EPG cluster, and session data is uniformly stored in a Redis distributed cache. Even if a server fails, the session information retained by the user in Redis can still be accessed by other normally functioning EPG servers. This allows the cluster to seamlessly continue providing services without user intervention, guaranteeing a consistent user experience and quality of service.
[0054] In summary, to address potential service anomalies within the business layer network element server cluster, this application introduces a unified authentication entry architecture and an optimized interaction request mechanism for multimedia terminal devices. This enables smooth, seamless recovery of user services during failures, significantly reducing user reporting rates and the need for on-site service from installation and maintenance personnel. Previously, when users encountered EPG authentication or display service anomalies, they often needed to manually restart their set-top boxes, potentially experiencing inconvenience while waiting for technical support. With the set-top box's built-in automated recovery process, users can automatically be redirected to a healthy EPG server in the event of a failure without any user intervention, ensuring service continuity and consistent user experience.
[0055] The following are Figure 1 The steps shown are illustrated and explained by way of example.
[0056] According to some optional embodiments of this application, the service layer network element cluster service method further includes the following steps: receiving a request failure response for a service request sent by a target service layer network element server; forwarding the request failure response to a target multimedia terminal device, wherein the request failure response includes at least: fault code information, and the target multimedia terminal device associates the fault code information with the service request; based on the fault code information, initiating a retry mechanism and setting an incremental retry interval; and re-initiating the service request to the service layer network element server according to the retry interval.
[0057] In this embodiment, when the target service layer network element server fails to successfully process the service request sent by the multimedia terminal device, a request failure response is generated and sent to the unified authentication entry point of the cluster service. The request failure response includes key fault code information, where the fault code is a standardized error code used to identify the specific reason for the failure, such as authentication failure, resource unavailability, data processing error, etc.
[0058] Upon receiving a request failure response, the unified authentication entry point forwards the response to the target multimedia terminal device, enabling the terminal device to immediately understand the status of its service request, including any failure information and corresponding fault codes. After receiving the failure response, the terminal device associates the fault code information with the specific service request; this association facilitates subsequent fault handling and request retries.
[0059] Then, based on the fault code information, the multimedia terminal device initiates its built-in retry mechanism. This retry mechanism is an automatic recovery strategy that allows the terminal device to retry service requests at predetermined retry intervals after receiving a failure response, aiming to successfully complete the service operation once the service status is restored or the problem is resolved. To prevent network congestion and resource waste, the retry interval can be set in an incremental pattern; that is, the first retry interval may be short, but subsequent retry intervals gradually increase. This strategy follows the backoff algorithm principle, helping to reduce the network burden caused by frequent retries and giving backend services more time to recover or resolve the problem.
[0060] Finally, with increasing retry intervals, the multimedia terminal device re-initiates the service request to the service layer network element server cluster until the request succeeds or the retry limit is reached. The retry request is also received by the reverse proxy server in the cluster and, based on the current service status and the preset load balancing strategy, is reallocated to the second service layer network element server within the cluster. The second service layer network element server is any healthy and available server, and it must meet the conditions to process the service request.
[0061] In this way, even if one or more service layer network element servers fail or malfunction, multimedia terminal devices can continue to attempt to access the service, improving service availability and user experience.
[0062] The entire mechanism is designed with the dynamic and complex nature of network services in mind. Through intelligent fault handling and retry strategies, it ensures the continuity and stability of business access. Even in the event of an unstable network environment or a failure of the backend server, it can effectively guarantee the normal operation of multimedia services, thereby improving the overall robustness of the system and user satisfaction.
[0063] Figure 4 This is a flowchart of a set-top box's active retry request according to an embodiment of this application, such as... Figure 4 As shown, when the set-top box (STB) initiates a service request for a specific zone or interface to the EPG server, it automatically displays an EPG display fault code to the user if it encounters an abnormal response or timeout. More importantly, the set-top box automatically records fault information and, referencing the principle of Carrier Sense Multiple Access with Collision Detection (CSMP) algorithm, sets an exponentially increasing retry interval and proactively initiates retry requests. This strategy effectively avoids unnecessary performance pressure on the server cluster due to excessively frequent retry requests. Furthermore, through the set-top box's automatic retry mechanism, users encountering EPG service failures can be automatically redirected to a healthy EPG server without relying on manual intervention or user-initiated set-top box restarts. This significantly reduces the complexity of service exception handling, improves user experience, and effectively reduces user complaint rates.
[0064] Furthermore, when a single EPG server fails, causing abnormal user startup or content display, the system automatically switches to a new session request. Users can seamlessly continue their service on other EPG servers without needing to be aware of this process, avoiding the cumbersome steps of manually intervening and notifying users to restart their set-top boxes to restore service. Especially during platform upgrades or EPG modifications, even a brief surge in EPG error codes can automatically restore service, ensuring an uninterrupted user experience. Real-world testing shows that this optimization solution has no negative impact on business operations and has received no user complaints. It truly achieves smooth self-recovery of EPG authentication and display services without user awareness or intervention, ensuring service continuity and stability.
[0065] According to some optional embodiments of this application, the service layer network element cluster service method further includes the following steps: receiving a natural language operation and maintenance instruction sent by a mobile communication terminal; parsing the natural language operation and maintenance instruction to obtain an operation and maintenance request, wherein the operation and maintenance request includes at least: an operation type and identification information of the target service layer network element server; generating an authentication information string based on the operation and maintenance request; and sending an interface request to the service layer network element server management system, wherein the interface request includes at least: an operation and maintenance request and an authentication information string, and the interface request is used to trigger the service layer network element server management system to perform an operation and maintenance operation corresponding to the operation type on the target service layer network element server.
[0066] Optionally, the authentication information string can be generated based on the operation and maintenance request by combining the operation type, the data information of the business layer network element server, and a random string to obtain the combined result. The data information includes the network address and identification information of the business layer network element server. The combined result is then encrypted using an encryption algorithm to obtain the authentication information string.
[0067] Optionally, the operation type includes at least one of the following: removing the abnormal service layer network element server from the reverse proxy cluster, restoring the abnormal service layer network element server, and repairing the abnormal service layer network element server.
[0068] In this embodiment, the system first receives instructions sent in natural language from a mobile communication terminal (such as a smartphone or tablet). Upon receiving the natural language instructions, natural language processing technology is used to parse them, transforming the ambiguous, colloquial instructions into computer-recognizable operation and maintenance requests. These requests include at least two key pieces of information: the operation type and the identification information of the target service layer network element server.
[0069] To ensure the security and immutability of operations and maintenance (O&M) processes, an authentication information string needs to be generated. This involves combining the operation type from the O&M request, data information from the business layer network element server (such as network address and identification information), and a random string to form a combined result. Subsequently, an encryption algorithm is used to encrypt the combined result, generating the final authentication information string. The choice of encryption algorithm needs to be based on security requirements and computational resource considerations; for example, AES or RSA may be used.
[0070] The generated operation and maintenance request and authentication information string are integrated into an interface request, which is then sent to the business layer network element server management system. Upon receiving the interface request, the management system verifies the validity of the authentication information string. If the verification is successful, it triggers the operation corresponding to the operation type on the target business layer network element server. This mechanism ensures the secure execution of operation and maintenance instructions, preventing unauthorized access and potential system risks.
[0071] It should be noted that the operation type reflects the complexity and comprehensiveness of the operation and maintenance activities. Specifically: **Isolating an Abnormal Server:** When a business layer network element server malfunctions or experiences an anomaly (such as authentication failure), to avoid impacting the overall performance of the cluster and user experience, the server is temporarily isolated from the cluster, ceasing to receive new business requests. This could be network connection-level isolation, rather than physically shutting down the server. **Server Recovery:** For non-permanent faults, such as temporary network interruptions or software anomalies, attempts are made to recover the abnormal server, including restarting the server, resetting network connections, and updating software configurations, aiming to quickly restore the server to normal operation. **Server Repair:** For deeper faults, such as hardware damage or system crashes, more time and complex operations are required to repair the abnormal server, involving hardware replacement, system reinstallation, and data recovery.
[0072] The above steps greatly simplify the operation process for maintenance personnel, enabling them to easily remove abnormal EPG servers on their mobile devices without being restricted by time and location. Especially during non-working hours such as weekends or holidays, they can respond quickly and meet the "1-5-10" fault handling time requirements, that is, to detect the fault within 1 minute, locate the problem within 5 minutes, and complete the handling within 10 minutes. This significantly improves the efficiency of fault handling, reduces maintenance costs, and enhances the flexibility and response speed of maintenance work.
[0073] Figure 5 This is a flowchart illustrating how a natural language interaction is implemented to process EPG servers according to an embodiment of this application, such as... Figure 5 As shown, to improve the user experience and fault self-recovery capabilities of the EPG cluster service, the unified authentication entry point for the cluster underwent architectural optimization and set-top box interaction request upgrades. The core objective of the optimization is to address the issue of users being unable to quickly switch to normal EPG services during service failures or maintenance operations, avoiding the inconvenience of manual intervention and users actively restarting the set-top box as in traditional models. In maintenance scenarios, facing EPG anomalies that cannot be automatically and quickly switched, a rapid response mechanism based on mobile devices was further designed. By implementing natural language interaction on mobile devices, maintenance personnel can quickly isolate abnormal EPG servers manually, especially during off-working hours such as weekends and holidays. This mechanism can significantly shorten fault handling time, meet the timeliness requirements of fault disposal, and effectively reduce maintenance pressure.
[0074] Furthermore, to address the time-consuming and laborious manual operations involved in isolating and repairing abnormal EPG servers, an interface can be established with third-party systems. Through natural language interaction on mobile devices, automated isolation and repair of abnormal EPG servers are achieved. Specifically, this is achieved through three key fields: EPG processing type (escape, recovery, repair), authinfo encrypted string (generated using the AES algorithm to ensure operational security), and EPG data information (including EPG IP and EPGTerminalID for precise server location).
[0075] By retrieving interface field information through real-time database queries and sending processing instructions to third-party systems using HTTP POST requests, and leveraging the data source and functional configuration of the generative model's underlying intelligent agent, operations and maintenance personnel can achieve real-time chat and natural language interaction, directly calling interface requests from mobile devices without needing to log into multiple systems on computers. This enables automated isolation and repair of abnormal EPG servers. It not only significantly reduces labor costs but also improves the speed of business recovery, ensuring business continuity and timely restoration of user services.
[0076] As some optional embodiments of this application, if it is determined that the target service layer network element server has an authentication anomaly, the following steps can also be performed: stop sending any network traffic to the target service layer network element server until the target service layer network element server returns to normal.
[0077] In this embodiment, the strategy of stopping traffic transmission is implemented by updating the routing table or load balancing algorithm of the reverse proxy cluster. Specifically, the target service layer network element server is marked as unavailable by the reverse proxy server or cluster control node. This means that any subsequent service requests from multimedia terminal devices will no longer be forwarded to the abnormal server. Instead, service requests will be redirected to other healthy service layer network element servers within the cluster. The healthy service layer network element servers can retrieve relevant session data from the shared storage system and continue to provide services to users.
[0078] It should be noted that the action of stopping traffic transmission is not static, but a dynamic strategy based on changes in the status of the target service layer network element server. Once the abnormal server has been repaired or restarted and its authentication function has returned to normal, its availability and health status can be reassessed, and the server can be reinstated into the traffic distribution candidate pool at an appropriate time.
[0079] Figure 6 This is a structural diagram of a service layer network element cluster service device according to an embodiment of this application, such as... Figure 6 As shown, the device includes:
[0080] The receiving module 62 is used to receive service requests sent by the target multimedia terminal device.
[0081] The first sending module 64 is used to send the service request to the reverse proxy server in the reverse proxy cluster according to the preset weight. The reverse proxy server is used to forward the service request to the target service layer network element server in the service layer network element server cluster. The target service layer network element server is used to process the service request and store the session data in the shared storage system.
[0082] The second sending module 66 is used to forward subsequent service requests sent by the target multimedia terminal device to the first service layer network element server in the service layer network element server cluster when it is determined that the target service layer network element server has experienced an authentication failure. The first service layer network element server is a service layer network element server that has not experienced an authentication failure. The first service layer network element server is used to obtain session data in the shared storage system and provide services to the target multimedia terminal device based on the session data.
[0083] Optionally, the service layer network element cluster service device is further configured to perform the following steps: receive a request failure response for a service request sent by the target service layer network element server; forward the request failure response to the target multimedia terminal device, wherein the request failure response includes at least: fault code information, and the target multimedia terminal device associates the fault code information with the service request; based on the fault code information, initiate a retry mechanism and set an incremental retry interval; and re-initiate the service request to the service layer network element server according to the retry interval.
[0084] Optionally, the service layer network element cluster service device is further configured to perform the following steps: receiving natural language operation and maintenance instructions sent by the mobile communication terminal; parsing the natural language operation and maintenance instructions to obtain an operation and maintenance request, wherein the operation and maintenance request includes at least: the operation type and the identification information of the target service layer network element server; generating an authentication information string based on the operation and maintenance request; and sending an interface request to the service layer network element server management system, wherein the interface request includes at least: the operation and maintenance request and the authentication information string, and the interface request is used to trigger the service layer network element server management system to perform the operation and maintenance operation corresponding to the operation type on the target service layer network element server.
[0085] Optionally, based on the operation and maintenance request, an authentication information string is generated, which specifically includes the following steps: combining the operation type, the data information of the business layer network element server, and a random string to obtain a combination result, wherein the data information includes: the network address and identification information of the business layer network element server; and encrypting the combination result using an encryption algorithm to obtain the authentication information string.
[0086] Optionally, the operation type includes at least one of the following: removing the abnormal service layer network element server from the reverse proxy cluster, restoring the abnormal service layer network element server, and repairing the abnormal service layer network element server.
[0087] Optionally, subsequent service requests are service access requests initiated by the target multimedia terminal device during the period when the target service layer network element server is abnormal, due to normal user operation, and the initiation of subsequent service requests does not depend on the restart action of the multimedia terminal device.
[0088] Optionally, if it is determined that the target service layer network element server has experienced an authentication anomaly, the service layer network element cluster service device is also used to perform the following steps: stop sending any network traffic to the target service layer network element server until the target service layer network element server returns to normal.
[0089] It should be noted that the above Figure 6 The modules in can be program modules (e.g., a set of program instructions that implements a specific function) or hardware modules. For the latter, they can be represented in the following forms, but are not limited to these: each of the above modules is represented by a processor, or the functions of each of the above modules are implemented by a processor.
[0090] It should be noted that, Figure 6 Preferred embodiments of the shown examples can be found in [reference needed]. Figure 1 The relevant descriptions of the embodiments shown will not be repeated here.
[0091] Figure 7 A hardware block diagram of a computer terminal for implementing a service layer network element cluster service method is shown. Figure 7 As shown, the computer terminal 70 may include one or more processors 702 (shown as 702a, 702b, ..., 702n in the figure) 702 (processor 702 may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 704 for storing data, and a transmission module 706 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of a BUS bus), a network interface, a power supply, and / or a camera. Those skilled in the art will understand that... Figure 7 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, the computer terminal 70 may also include... Figure 7 The more or fewer components shown, or having the same Figure 7 The different configurations shown.
[0092] It should be noted that the aforementioned one or more processors 702 and / or other data processing circuits are generally referred to herein as "data processing circuits". These data processing circuits may be embodied, in whole or in part, in software, hardware, firmware, or any other combination thereof. Furthermore, the data processing circuits may be a single, independent processing module, or may be integrated, in whole or in part, into any other element within the computer terminal 70. As involved in the embodiments of this application, the data processing circuits serve as processor control (e.g., selection of a variable resistor termination path connected to an interface).
[0093] The memory 704 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the service layer network element cluster service method in this embodiment. The processor 702 executes various functional applications and data processing by running the software programs and modules stored in the memory 704, thereby realizing the aforementioned service layer network element cluster service method. The memory 704 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 704 may further include memory remotely located relative to the processor 702, and these remote memories can be connected to the computer terminal 70 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0094] The transmission module 706 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of the computer terminal 70. In one example, the transmission module 706 includes a network interface controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission module 706 may be a radio frequency (RF) module, used for wireless communication with the Internet.
[0095] The display may be, for example, a touchscreen liquid crystal display (LCD) that allows the user to interact with the user interface of the computer terminal 70.
[0096] It should be noted here that, in some optional embodiments, the above... Figure 7 The computer terminal shown may include hardware elements (including circuitry), software elements (including computer code stored on a computer-readable medium), or a combination of both hardware and software elements. It should be noted that... Figure 7 This is only one instance of a specific particular instance, and is intended to illustrate the types of components that may exist in the aforementioned computer terminal.
[0097] It should be noted that, Figure 7 The computer terminal shown is used to execute Figure 1 The service layer network element cluster service method shown above applies to this electronic device as well, and will not be repeated here.
[0098] This application embodiment also provides a non-volatile storage medium, which includes a stored program, wherein the program, when running, controls the device where the storage medium is located to execute the above-mentioned service layer network element cluster service method.
[0099] The non-volatile storage medium performs the following functions: receiving service requests sent by the target multimedia terminal device; sending the service requests to the reverse proxy server in the reverse proxy cluster according to a preset weight, wherein the reverse proxy server is used to forward the service requests to the target business layer network element server in the business layer network element server cluster, the target business layer network element server is used to process the service requests and store session data in the shared storage system; if it is determined that the target business layer network element server has encountered an authentication failure, forwarding subsequent service requests sent by the target multimedia terminal device to the first business layer network element server in the business layer network element server cluster, wherein the first business layer network element server is the business layer network element server that has not encountered an authentication failure, the first business layer network element server is used to obtain session data in the shared storage system, and provide services to the target multimedia terminal device based on the session data.
[0100] This application also provides an electronic device, including: a memory and a processor, wherein the processor is used to run a program stored in the memory, wherein the program executes the above-mentioned service layer network element cluster service method during runtime.
[0101] The processor runs a program that performs the following functions: receiving service requests sent by a target multimedia terminal device; sending the service requests to a reverse proxy server in a reverse proxy cluster according to a preset weight, wherein the reverse proxy server forwards the service requests to a target business layer network element server in a business layer network element server cluster, the target business layer network element server processes the service requests and stores session data in a shared storage system; and, if an authentication failure is detected on the target business layer network element server, forwarding subsequent service requests sent by the target multimedia terminal device to a first business layer network element server in the business layer network element server cluster, wherein the first business layer network element server is a business layer network element server that has not experienced an authentication failure, the first business layer network element server retrieves session data from the shared storage system, and provides services to the target multimedia terminal device based on the session data.
[0102] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0103] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0104] In the above embodiments of this application, the information collected is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data all comply with relevant laws, regulations and standards, take necessary protective measures, do not violate public order and good morals, and provide corresponding operation entry points for users to choose to authorize or refuse.
[0105] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.
[0106] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0107] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0108] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to related technologies, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0109] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A service layer network element cluster service method, characterized in that, include: Receive service requests sent by the target multimedia terminal device; The service request is sent to the reverse proxy server in the reverse proxy cluster according to the preset weight. The reverse proxy server is used to forward the service request to the target service layer network element server in the service layer network element server cluster. The target service layer network element server is used to process the service request and store the session data in the shared storage system. If an authentication anomaly is detected in the target service layer network element server, subsequent service requests sent by the target multimedia terminal device are forwarded to the first service layer network element server in the service layer network element server cluster. The first service layer network element server is a service layer network element server that has not experienced an authentication anomaly. The first service layer network element server is used to obtain the session data in the shared storage system and provide services to the target multimedia terminal device based on the session data.
2. The method according to claim 1, characterized in that, The method further includes: Receive a request failure response for the service request sent by the target service layer network element server; The request failure response is forwarded to the target multimedia terminal device, wherein the request failure response includes at least: fault code information, and the target multimedia terminal device associates the fault code information with the service request; based on the fault code information, a retry mechanism is initiated and an incremental retry interval is set; according to the retry interval, the service request is re-initiated to the service layer network element server.
3. The method according to claim 1, characterized in that, The method further includes: Receive natural language operation and maintenance instructions sent by mobile communication terminals; Parse the natural language operation and maintenance instructions to obtain an operation and maintenance operation request, wherein the operation and maintenance operation request includes at least: the operation type and the identification information of the target service layer network element server; Based on the operation and maintenance request, an authentication information string is generated; An interface request is sent to the business layer network element server management system. The interface request includes at least the operation and maintenance request and the authentication information string. The interface request is used to trigger the business layer network element server management system to perform the operation and maintenance operation corresponding to the operation type on the target business layer network element server.
4. The method according to claim 3, characterized in that, Based on the aforementioned operation and maintenance request, an authentication information string is generated, including: The operation type, the data information of the service layer network element server, and the random string are combined to obtain the combination result, wherein the data information includes: the network address and identification information of the service layer network element server; The combined result is encrypted using an encryption algorithm to obtain the authentication information string.
5. The method according to claim 3, characterized in that, The operation type includes at least one of the following: removing the abnormal service layer network element server from the reverse proxy cluster, restoring the abnormal service layer network element server, and repairing the abnormal service layer network element server.
6. The method according to claim 1, characterized in that, The subsequent service request is a service access request initiated by the target multimedia terminal device during the period when the target service layer network element server is abnormal, due to normal user operation. The initiation of the subsequent service request does not depend on the restart action of the multimedia terminal device.
7. The method according to claim 1, characterized in that, If it is determined that the target service layer network element server has experienced an authentication anomaly, the method further includes: stopping the transmission of any network traffic to the target service layer network element server until the target service layer network element server returns to normal.
8. A service layer network element cluster service device, characterized in that, include: The receiving module is used to receive service requests sent by the target multimedia terminal device; The first sending module is used to send the service request to the reverse proxy server in the reverse proxy cluster according to a preset weight. The reverse proxy server is used to forward the service request to the target service layer network element server in the service layer network element server cluster. The target service layer network element server is used to process the service request and store the session data in the shared storage system. The second sending module is used to forward subsequent service requests sent by the target multimedia terminal device to a first service layer network element server in the service layer network element server cluster when it is determined that the target service layer network element server has experienced an authentication failure. The first service layer network element server is a service layer network element server that has not experienced an authentication failure. The first service layer network element server is used to obtain the session data in the shared storage system and provide services to the target multimedia terminal device based on the session data.
9. A non-volatile storage medium, characterized in that, The non-volatile storage medium includes a stored program, wherein, when the program is executed, it controls the device where the non-volatile storage medium is located to execute the service layer network element cluster service method according to any one of claims 1 to 7.
10. An electronic device, characterized in that, include: A memory and a processor, the processor being configured to run a program stored in the memory, wherein the program, when running, executes the service layer network element cluster service method according to any one of claims 1 to 7.
11. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the service layer network element cluster service method according to any one of claims 1 to 7.