Communication protocol function monitoring and maintenance method, device and equipment and storage medium

The method addresses network anomalies in vehicle Ethernet-based SOME/IP protocols by monitoring health counters and initiating corrective actions, enhancing stability and reliability in vehicle communication systems.

CN120321156AInactive Publication Date: 2025-07-15LISHENG AUTOMOBILE TECHNOLOGY (GUANGZHOU) CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510408937.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-02
Publication Date
2025-07-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the prior art, the SOMEIP protocol for in-vehicle Ethernet communication has abnormal network communication problems during operation, resulting in poor user experience, especially when functions such as remote control and GPS navigation are unavailable for a long time.

Method used

By monitoring the operating status of the communication protocol function, including OfferService message, SubscribeEventgroup message, endpoint registration connection status and Ethernet network card status, the health count of the service function is updated, and abnormal handling is performed when the health count is below the threshold, and the corresponding repair strategy is used to restore the service function.

Benefits of technology

Real-time monitoring and rapid fault repair of communication protocol functions are realized, the stability and reliability of the system are improved, the system interruption time is reduced, and the self-healing ability is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120321156A_ABST
    Figure CN120321156A_ABST
Patent Text Reader

Abstract

According to the communication protocol function monitoring and maintenance method and device, the equipment and the storage medium provided by the invention, the running state of the communication protocol function is monitored in response to the protocol function monitoring request, the health count of the service function is updated according to the monitoring result, and when the health count of the service function is lower than the preset health threshold, the service function is monitored. And if yes, performing exception processing on the service function. According to the invention, through real-time monitoring and health count updating of the communication protocol function, the abnormal state of each key function can be found in time, and when the health count is lower than the preset threshold value, the corresponding abnormity processing measure is rapidly started, so that the abnormal condition is automatically repaired, and the overall stability of the system is greatly improved. And moreover, the exception repair strategy is determined according to the types of different service functions, so that the fault link can be accurately positioned, each service function can be quickly recovered, the system interruption time is shortened, and the self-healing capability of the communication protocol function is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic communications, and in particular, to a method, apparatus, device, and storage medium for monitoring and maintaining communication protocol functions. Background Art

[0002] With the development of intelligent connected vehicles, the traditional CAN bus itself has limitations in bandwidth and latency, and it has become difficult to meet the requirements of network interconnection in the increasingly intelligent era. Therefore, in the context of the Internet of Vehicles, the SOMEIP protocol based on in-vehicle Ethernet communication has become the mainstream application trend due to its more cost-effective advantages such as service orientation, easy maintenance and expansion, software-hardware separation, flexible deployment, and high data throughput. However, affected by the in-vehicle Ethernet environment, the stability and maturity of the SOMEIP protocol stack, etc., network communication anomalies and other problems often occur during the operation of actual functions, resulting in poor user experience when customers use common functions such as remote control and GPS navigation, and even the navigation function cannot be used for a long time.

[0003] In summary, the problems existing in the prior art need to be solved urgently. Summary of the Invention

[0004] The present invention provides a method, apparatus, device, and storage medium for monitoring and maintaining communication protocol functions to solve the defects in the prior art and improve the stability of the interaction function during communication.

[0005] The present invention provides a method for monitoring and maintaining communication protocol functions, including:

[0006] In response to a protocol function monitoring request, monitor the running state of the communication protocol function, and update the health count of the service function according to the monitoring result, where the communication protocol function includes several service functions;

[0007] When the health count of the service function is lower than a preset health threshold, perform anomaly processing on the service function.

[0008] According to the method for monitoring and maintaining communication protocol functions provided by the present invention, the step of monitoring the running state of the communication protocol function in response to a protocol function monitoring request specifically includes:

[0009] In response to a protocol function monitoring request, obtain health monitoring items, where the health monitoring items include OfferService messages, SubscribeEventgroup messages, the registration connection status of endpoints, and the running state of Ethernet network cards;

[0010] Extract all real-time service function IDs and Ethernet network card IPs from the health monitoring items.

[0011] According to a method for monitoring and maintaining communication protocol functions provided by the present invention, the step of updating the health count of service functions according to the monitoring results specifically includes:

[0012] Read all protocol service function IDs from the configuration file of the communication protocol function, and the protocol service function ID corresponds uniquely to the service function;

[0013] Compare the read protocol service function ID with the real-time service function ID;

[0014] When it is determined that a service function is missing in the real-time service function ID, deduct the health count corresponding to this service function;

[0015] When the network card corresponding to the Ethernet network card IP cannot be started normally, deduct the health count of the Ethernet network card.

[0016] According to a method for monitoring and maintaining communication protocol functions provided by the present invention, after reading all protocol service function IDs from the configuration file of the communication protocol function, the method further includes:

[0017] Based on the protocol service function ID, match the corresponding health count in the health status database.

[0018] According to a method for monitoring and maintaining communication protocol functions provided by the present invention, after the step of matching the corresponding health count in the health status database based on the protocol service function ID, the method further includes:

[0019] When the corresponding health count cannot be matched in the health status database, register in the health status database according to this protocol service function ID, and use the preset initial value as the health count corresponding to the service function.

[0020] According to a method for monitoring and maintaining communication protocol functions provided by the present invention, the step of performing abnormal processing on the service function when the health count of the service function is lower than the preset health threshold specifically includes:

[0021] Determine an abnormal repair strategy according to the type of fault abnormality;

[0022] The abnormal repair strategy includes:

[0023] When the fault abnormality is an OfferService message abnormality, re-initialize the service configuration to re-send the OfferService message;

[0024] When the fault anomaly is an abnormal SubscribeEventgroup message, re-initialize the service configuration and make it re-send the SubscribeEventgroup message;

[0025] When the fault anomaly is an abnormal registration or connection status of the endpoint, re-initialize the endpoint configuration and make it re-generate the endpoint and establish a connection;

[0026] When the fault anomaly is an abnormal operation of the Ethernet network card, perform an abnormal repair operation on the Ethernet network card, including uninstalling the Ethernet driver and reinstalling the driver to restore normalcy.

[0027] According to a method for monitoring and maintaining a communication protocol function provided by the present invention, after the step of, when the health count of the service function is lower than a preset health threshold, performing abnormal processing on the service function, the method further includes:

[0028] Detect the service function after abnormal processing. When it is detected that the service function resumes to the normal state again, increase the health count corresponding to the service function according to a preset recovery rule until it resumes above the health threshold.

[0029] The present invention also provides a device for monitoring and maintaining a communication protocol function, including:

[0030] A service detection module, configured to monitor the running status of a communication protocol function in response to a protocol function monitoring request, and update the health count of the service function according to the monitoring result, where the communication protocol function includes a number of the service functions;

[0031] An abnormal processing module, configured to perform abnormal processing on the service function when the health count of the service function is lower than a preset health threshold.

[0032] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where when the processor executes the program, it implements the method for monitoring and maintaining a communication protocol function as described in any one of the above.

[0033] The present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the method for monitoring and maintaining a communication protocol function as described in any one of the above.

[0034] The present invention also provides a computer program product, including a computer program, and when the computer program is executed by a processor, it implements the method for monitoring and maintaining a communication protocol function as described in any one of the above.

[0035] The monitoring and maintenance method, device, equipment and storage medium for communication protocol functions provided by the present invention monitor the running status of communication protocol functions in response to protocol function monitoring requests, update the health count of service functions according to the monitoring results, and perform abnormal processing on the service functions when the health count of the service functions is lower than a preset health threshold. By means of real-time monitoring of communication protocol functions and updating of health counts, the present invention can promptly detect abnormal statuses of key functions, quickly initiate corresponding abnormal processing measures when the health count is lower than the preset threshold, achieve automatic repair of abnormal situations, and thus greatly improve the overall stability of the system. Moreover, by determining abnormal repair strategies according to the types of different service functions, the fault links can be accurately located, various service functions can be quickly restored, the system interruption time can be reduced, and the self-healing ability of communication protocol functions can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0037] Figure 1 is a schematic flowchart of the monitoring and maintenance method for communication protocol functions provided by the present invention;

[0038] Figure 2 is a schematic structural diagram of the monitoring and maintenance device for communication protocol functions provided by the present invention;

[0039] Figure 3 is a schematic structural diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0040] To make the objectives, technical solutions and advantages of the present invention clearer, the following will clearly and completely describe the technical solutions in the present invention in conjunction with the drawings in the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art without creative efforts based on the embodiments in the present invention belong to the scope of protection of the present invention.

[0041] To solve the problems in the prior art, the present invention proposes a method for monitoring and maintaining communication protocol functions to improve the stability of interactive functions during communication. The following describes the method for monitoring and maintaining communication protocol functions. In the following text, "communication protocol function" refers to communication functions such as service discovery, event subscription, endpoint registration, connection status monitoring, and Ethernet network card status detection implemented through the SOME / IP protocol in a vehicle-mounted communication system, while "service function" is a specific component of the communication protocol function, such as the OfferService message of the server, the SubscribeEventgroup message of the client, and functions related to the endpoint and network card status. As Figure 1 shown, it includes but is not limited to the following steps:

[0042] Step 110: In response to a protocol function monitoring request, monitor the operating status of the communication protocol function and update the health count of the service function according to the monitoring results. The communication protocol function includes several of the service functions.

[0043] In step 110, when the system receives a protocol function monitoring request from the monitoring center or the upper control module, the communication protocol function monitoring module starts the monitoring process. The monitoring request here can be triggered periodically or be an immediate request activated by an exception alarm.

[0044] According to the pre-set health monitoring items, the monitoring module detects the following items:

[0045] OfferService message status: By monitoring whether the server periodically sends OfferService messages within a specified time interval, determine whether the server function is working properly.

[0046] SubscribeEventgroup message status: Detect whether the client sends a SubscribeEventgroup message within a specified time to determine whether the client's event subscription function is normal.

[0047] Endpoint registration and connection status: For the endpoints of all configured service functions, detect their registration status in the service discovery module and the current connection status.

[0048] Ethernet network card operating status: By detecting the IP address, network interface status, and communication with external nodes (such as Ping test) of the Ethernet network card in the system, determine whether the network card is in a normal working state.

[0049] For each monitored service function, compare the actual monitoring results with the pre-set health status:

[0050] If within the monitoring period, a certain service function fails to execute as expected (such as missing messages, abnormal connections, or communication failures), then a certain value is deducted from the health count corresponding to the service function.

[0051] If it is monitored that the service function is running normally, then the health count of the service function is maintained or increased according to the recovery rule until the preset initial value is reached.

[0052] Finally, the system updates the health counts of each service function to the health status database, providing a basis for subsequent exception handling.

[0053] Step 120: When the health count of the service function is lower than the preset health threshold, abnormal handling is performed on the service function.

[0054] In step 120, the system continuously monitors the health counts of each service function and compares them with the preset health threshold. When it is found that the health count of any service function is lower than the threshold, it indicates that there is an abnormal risk or the function has failed.

[0055] According to the type of service function, the system determines the corresponding abnormal repair strategy. The specific operations include but are not limited to:

[0056] When it is detected that the status of the OfferService message is abnormal (i.e., the health count is zero), the system re-initializes the configuration parameters of the service to make it re-send the OfferService message.

[0057] When it is detected that the status of the SubscribeEventgroup message is abnormal, the system re-executes the initialization operation on the corresponding service and prompts it to re-send the SubscribeEventgroup message.

[0058] When it is detected that the registration or connection status of the endpoint is abnormal, the system re-configures the endpoint of the service, regenerates the endpoint, and attempts to establish a connection.

[0059] When it is detected that the operating status of the Ethernet network card is abnormal, the system performs network card abnormal repair operations, such as uninstalling and reinstalling the Ethernet driver, to ensure that the network card returns to the normal operating state.

[0060] In addition, after the abnormal handling operation is completed, the system can monitor the corresponding service function again, and after confirming that the service function has returned to normal, the health count is restored to the healthy state according to the preset rule.

[0061] Through the above steps, this embodiment realizes the real-time monitoring and health count update of each service function in the vehicle communication protocol function. When an anomaly is detected during monitoring, the fault is quickly repaired according to the preset anomaly handling strategy, effectively avoiding system failures caused by abnormal communication protocol functions, and thus improving the stability and reliability of the vehicle network communication.

[0062] As a further optional embodiment, the step of monitoring the operating state of the communication protocol function in response to a protocol function monitoring request specifically includes:

[0063] In response to a protocol function monitoring request, obtain health monitoring items, where the health monitoring items include OfferService messages, SubscribeEventgroup messages, the registration connection status of endpoints, and the operating state of the Ethernet network card;

[0064] Extract all real-time service function IDs and the Ethernet network card IP in the health monitoring items.

[0065] In this embodiment, the step of "monitoring the operating state of the communication protocol function in response to a protocol function monitoring request" includes the following operations:

[0066] When the system receives a protocol function monitoring request from the upper control module or the monitoring center, the monitoring module first starts the health monitoring process. At this time, the system obtains health monitoring items from the pre-configured health monitoring parameters, and the health monitoring items include:

[0067] OfferService message: Reflects the status of the server periodically sending service registration messages;

[0068] SubscribeEventgroup message: Reflects the sending status of the client's service subscription message for services with event (EVENT) methods;

[0069] Registration connection status of endpoints: Used to detect the registration and connection status of endpoints in each service function;

[0070] Operating state of the Ethernet network card: Used to detect whether the Ethernet network card in the system is normally started and its communication status with external nodes (e.g., through Ping tests).

[0071] After obtaining the above health monitoring items, the monitoring module parses and extracts all real-time service function IDs and the IP addresses of the relevant Ethernet network cards.

[0072] The real-time service function ID is a unique identifier used to identify all service functions in the current monitoring state. These identifiers are obtained by parsing the messages sent from the server or client and the endpoint registration information;

[0073] The Ethernet network card IP is extracted from the configuration and operating status information of the network card and serves as an important basis for judging whether the network card is operating normally.

[0074] After extracting the above information, the system compares the real-time service function ID with the preset configuration data, updates various health counts, and provides data support for subsequent anomaly judgment and processing. In addition, the extracted Ethernet network card IP is also used for subsequent network card status detection to ensure that the network connection is in a normal state.

[0075] As a further optional embodiment, the step of updating the health count of the service function according to the monitoring result specifically includes:

[0076] Read all protocol service function IDs from the configuration file of the communication protocol function. The protocol service function ID corresponds uniquely to the service function;

[0077] Compare the read protocol service function ID with the real-time service function ID;

[0078] When it is determined that a service function is missing in the real-time service function ID, deduct the health count corresponding to this service function;

[0079] When the network card corresponding to the Ethernet network card IP cannot be started normally, deduct the health count of the Ethernet network card.

[0080] In this embodiment, the step of "updating the health count of the service function according to the monitoring result" includes the following operations:

[0081] Before the system starts or performs periodic monitoring, load all preset protocol service function IDs from the configuration file of the communication protocol function. The configuration file records the unique identification information of all service functions in the system, and these identification information are used to identify the OfferService message of the server, the SubscribeEventgroup message of the client, and other related service functions.

[0082] During the health monitoring process, the system parses out all real-time service function IDs and the IP address of the Ethernet network card from the obtained health monitoring items. The real-time service function ID reflects the message sending and endpoint registration situation of the service function in the current actual operating state, while the network card IP is used to detect the operating state of the network card.

[0083] The system compares each protocol service function ID read from the configuration file with the real-time service function IDs one by one to determine whether each service function is operating normally within a predetermined monitoring period.

[0084] If a certain protocol service function ID in the configuration file can be matched in the real-time service function IDs, it indicates that the service function is in a normal state during the current monitoring period, and its health count remains unchanged or is appropriately restored according to the recovery rule;

[0085] If a certain protocol service function ID is found missing in the real-time service function IDs, it means that the corresponding service function is abnormal, and the system will deduct the health count corresponding to the service function.

[0086] For the Ethernet network card, the system detects whether the corresponding network card has been started normally and communicates with external nodes (e.g., through Ping test) based on the extracted network card IP address. If the detection result indicates that the network card cannot be started normally or the communication fails, the system will deduct the health count corresponding to the Ethernet network card to reflect its abnormal operating state.

[0087] Through this embodiment, the system can use the preset protocol service function IDs in the configuration file as a reference to compare the actual operating state with the expected state, and finely update each health count according to the detection results, so as to achieve an accurate assessment of the overall health state of the communication protocol function. This method not only improves the accuracy of monitoring but also provides reliable data support for the triggering of subsequent exception handling strategies.

[0088] As a further optional embodiment, after reading all the protocol service function IDs from the configuration file of the communication protocol function, the method further includes:

[0089] Based on the protocol service function IDs, match the corresponding health counts in the health status database.

[0090] In this embodiment, after the step of "reading all the protocol service function IDs from the configuration file of the communication protocol function", the method further includes the following steps:

[0091] The system pre-establishes a health status database for storing the health count information of each service function. The health counts recorded in the database correspond one by one to each protocol service function ID and can be updated in real time.

[0092] After reading all the preset protocol service function IDs, the system uses these IDs as keywords to query and match in the health status database. The specific process includes:

[0093] For each protocol service function ID read from the configuration file, the system queries whether there is a corresponding record in the health status database;

[0094] If there is, extract the current health count information of the service function and use it as the basis for subsequent judgment of the service function status;

[0095] If not, it is regarded that the service function has not been registered in the health status database. At this time, the system can register the service function according to the preset initial value and use the preset initial value as its initial health count.

[0096] By comparing the protocol service function IDs preset in the configuration file with the health counts recorded in the health status database, the system can quickly locate the service functions with health counts lower than the preset threshold and trigger subsequent exception handling operations or health count recovery measures accordingly.

[0097] As a further optional embodiment, after the step of matching the corresponding health count in the health status database based on the protocol service function ID, the method further includes:

[0098] When the corresponding health count cannot be matched in the health status database, register in the health status database according to the protocol service function ID and use the preset initial value as the health count corresponding to the service function.

[0099] In this embodiment, the system first reads all the preset protocol service function IDs through the configuration file and matches them in the health status database to obtain the health counts corresponding to each protocol service function. After this step, the method further includes the following operations:

[0100] The system traverses the query results to determine whether there is a corresponding health count record in the health status database for each protocol service function ID read from the configuration file.

[0101] If there is a corresponding record, directly use the health count of this record for subsequent health status evaluation;

[0102] For the protocol service function IDs that cannot match the corresponding health counts in the health status database, the system performs the following operations:

[0103] Create a new record in the health status database according to the protocol service function ID;

[0104] Use the preset initial health count (for example, the preset value can be a fixed number or a default value set according to the importance of the service function) as the initial health count of this record.

[0105] After registration is completed, the system uses the updated health status database as the data basis for subsequent monitoring, comparison, and exception handling, ensuring that all protocol service functions have health count records and providing accurate starting data for subsequent deduction or restoration of health counts.

[0106] As a further optional embodiment, the step of performing exception handling on the service function when the health count of the service function is lower than a preset health threshold specifically includes:

[0107] Determine an exception repair strategy according to the type of fault exception;

[0108] The exception repair strategy includes:

[0109] When the fault exception is an OfferService message exception, re-initialize the service configuration to re-send the OfferService message;

[0110] When the fault exception is a SubscribeEventgroup message exception, re-initialize the service configuration and make it re-send the SubscribeEventgroup message;

[0111] When the fault exception is an abnormal registration or connection status of the endpoint, re-initialize the endpoint configuration and make it re-generate the endpoint and establish a connection;

[0112] When the fault exception is an abnormal operation of the Ethernet network card, perform an exception repair operation on the Ethernet network card, including uninstalling the Ethernet driver and reinstalling the driver to restore normalcy.

[0113] In this embodiment, when the system detects that the health count of a certain service function is lower than the preset health threshold, it performs exception handling on the service function. This exception handling step specifically includes the following operations:

[0114] The system first determines which type of fault exception the exception belongs to according to the fault information detected by the monitoring module. The types of fault exceptions include but are not limited to the following categories:

[0115] OfferService message exception;

[0116] SubscribeEventgroup message exception;

[0117] Abnormal registration or connection status of the endpoint;

[0118] Abnormal operation of the Ethernet network card.

[0119] For different types of fault anomalies, the system adopts corresponding anomaly repair strategies respectively to achieve the normal operation of quickly restoring the service function. The specific anomaly repair strategies include:

[0120] OfferService message anomaly: When it is detected that the OfferService message of the server is abnormal (for example, the health count is zero), the system re-initializes the configuration parameters of the service and prompts it to re-send the OfferService message to restore the service registration and discovery functions;

[0121] SubscribeEventgroup message anomaly: When it is detected that the SubscribeEventgroup message of the client is abnormal, the system re-performs the configuration initialization for the corresponding service and makes it re-send the SubscribeEventgroup message to ensure that the client can subscribe to events in a timely manner;

[0122] endpoint registration or connection status anomaly: When it is detected that the registration or connection status of the endpoint is abnormal, the system re-initializes the endpoint configuration of the corresponding service, makes it re-generate the endpoint and establish a connection to restore the normal communication of the service;

[0123] Ethernet network card operation anomaly: When it is detected that the operation of the Ethernet network card is abnormal (for example, it cannot be started normally or fails to communicate with external nodes), the system performs network card anomaly repair operations, including uninstalling the existing Ethernet driver and reinstalling the driver to make the network card return to the normal operation state.

[0124] According to the determined anomaly repair strategies above, the system automatically performs corresponding repair operations. After the execution is completed, the system monitors the service function again, verifies the repair effect, and decides whether further adjustment or repetition of the anomaly handling process is needed according to the repair result.

[0125] Through the above embodiments, the system can adopt targeted anomaly handling measures according to different fault anomaly types, achieve quick repair and restoration of the service function, ensure the stable operation of the communication protocol function, and further improve the reliability and self-healing ability of the system.

[0126] As a further optional embodiment, after the step of when the health count of the service function is lower than the preset health threshold, anomaly handling is performed on the service function, the method further includes:

[0127] Detect the service function after anomaly handling. When it is detected that the service function returns to the normal state again, increase the health count corresponding to the service function according to the preset recovery rule until it returns above the health threshold.

[0128] In this embodiment, after performing exception handling on the service function in an abnormal state, the system further performs the following operations:

[0129] After the exception handling operation is completed, the monitoring module continues to perform real-time detection on the service function for which exception handling has been performed to determine whether the service function has returned to the normal operating state. This detection process can use the same health monitoring items as the initial monitoring, such as the sending status of OfferService messages, the sending status of SubscribeEventgroup messages, the registration and connection status of endpoints, and the operating status of Ethernet network cards.

[0130] When it is detected that the processed service function meets the preset normal operating conditions, the system determines that the service function has returned to the normal state. At this time, the monitoring module will confirm the recovery status of the service function and record the recovery time point and related data.

[0131] After confirming that the service function has returned to normal, the system gradually increases the health count corresponding to the service function according to the preset recovery rules. The preset recovery rules can include:

[0132] Gradually increase the health count by a fixed increment or percentage;

[0133] Stop recovery when the health count reaches or exceeds the preset health threshold;

[0134] The recovery process can be synchronized with the system state adjustment to ensure that the increase in the health count is consistent with the actual operating state of the service function.

[0135] After increasing the health count, the system will update the health count record of the corresponding service function in the health status database and feedback the recovery information to the upper-level monitoring system or the log recording module for subsequent statistics and analysis.

[0136] Through the above further optional embodiments, continuous detection is performed on the service function after exception handling, and the health count is gradually increased according to the preset recovery rules to ensure that the service function can promptly reflect its good state after returning to normal. This not only further improves the self-healing closed-loop mechanism of the system but also enhances the overall stability and reliability of the system, ensuring fast and automated recovery in case of failures.

[0137] Next, a monitoring and maintenance device for the communication protocol function provided by the present invention will be described. As Figure 2 shown, the monitoring and maintenance device for the communication protocol function described below can be correspondingly referred to the monitoring and maintenance method for the communication protocol function described above.

[0138] A monitoring and maintenance device for a communication protocol function includes:

[0139] A service detection module 210, configured to monitor the running status of a communication protocol function in response to a protocol function monitoring request, and update the health count of a service function according to the monitoring result, where the communication protocol function includes a plurality of the service functions;

[0140] An exception handling module 220, configured to perform exception handling on the service function when the health count of the service function is lower than a preset health threshold.

[0141] Figure 3 An entity structure diagram of an electronic device is exemplified, as Figure 3 shown. The electronic device may include: a processor 310, a communication interface 320, a memory 330, and a communication bus 340. Among them, the processor 310, the communication interface 320, and the memory 330 communicate with each other through the communication bus 340. The processor 310 may call logic instructions in the memory 330 to execute a method for monitoring and maintaining a communication protocol function. The method includes:

[0142] In response to a protocol function monitoring request, monitor the running status of a communication protocol function, and update the health count of a service function according to the monitoring result, where the communication protocol function includes a plurality of the service functions;

[0143] When the health count of the service function is lower than a preset health threshold, perform exception handling on the service function.

[0144] In addition, when the logic instructions in the foregoing memory 330 are implemented in the form of a software functional unit and sold or used as an independent product, they may be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that makes a contribution to the prior art, or a part of the technical solution, may be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: various media such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk, or an optical disc that can store program codes.

[0145] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the monitoring and maintenance method for the communication protocol functions provided by the above-mentioned various methods. The method includes:

[0146] In response to a protocol function monitoring request, monitor the running state of the communication protocol function, and update the health count of the service function according to the monitoring result. The communication protocol function includes several service functions;

[0147] When the health count of the service function is lower than a preset health threshold, perform abnormal processing on the service function.

[0148] In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it realizes the monitoring and maintenance method for the communication protocol functions provided by the above-mentioned various methods. The method includes:

[0149] In response to a protocol function monitoring request, monitor the running state of the communication protocol function, and update the health count of the service function according to the monitoring result. The communication protocol function includes several service functions;

[0150] When the health count of the service function is lower than a preset health threshold, perform abnormal processing on the service function.

[0151] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative labor.

[0152] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course also by hardware. Based on this understanding, the above technical solutions, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0153] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for monitoring and maintaining communication protocol functions, characterized in that Including: In response to a protocol function monitoring request, monitor the running status of the communication protocol function, and update the health count of the service function according to the monitoring result. The communication protocol function includes several of the service functions; When the health count of the service function is lower than the preset health threshold, perform exception handling on the service function.

2. The monitoring and maintenance method for the communication protocol function according to claim 1, characterized in that, The step of, in response to a protocol function monitoring request, monitoring the running status of the communication protocol function specifically includes: In response to a protocol function monitoring request, obtain health monitoring items, where the health monitoring items include OfferService messages, SubscribeEventgroup messages, the registration connection status of the endpoint, and the running status of the Ethernet network card; Extract all real-time service function IDs and Ethernet network card IPs from the health monitoring items.

3. The monitoring and maintenance method for the communication protocol function according to claim 2, characterized in that, The step of updating the health count of the service function according to the monitoring result specifically includes: Read all protocol service function IDs from the configuration file of the communication protocol function, where the protocol service function IDs correspond uniquely to the service functions; Compare the read protocol service function IDs with the real-time service function IDs; When it is determined that a service function is missing from the real-time service function IDs, deduct the health count corresponding to the service function; When the network card corresponding to the Ethernet network card IP cannot be started normally, deduct the health count of the Ethernet network card.

4. The monitoring and maintenance method for the communication protocol function according to claim 3, characterized in that After the step of reading all protocol service function IDs from the configuration file of the communication protocol function, the method further includes: Based on the protocol service function IDs, match the corresponding health counts in the health status database.

5. The monitoring and maintenance method for the communication protocol function according to claim 4, characterized in that After the step of, based on the protocol service function IDs, matching the corresponding health counts in the health status database, the method further includes: When the corresponding health count cannot be matched in the health status database, register in the health status database according to the protocol service function ID, and use the preset initial value as the health count corresponding to the service function.

6. The monitoring and maintenance method for the communication protocol function according to claim 1, characterized in that The step of, when the health count of the service function is lower than the preset health threshold, performing exception handling on the service function specifically includes: Determine an exception repair strategy according to the type of fault exception; The exception repair strategy includes: When the fault exception is an OfferService message exception, re-initialize the service configuration to re-send the OfferService message; When the fault exception is a SubscribeEventgroup message exception, re-initialize the service configuration to re-send the SubscribeEventgroup message; When the fault exception is an exception in the registration or connection status of the endpoint, re-initialize the endpoint configuration and make it re-generate the endpoint and establish a connection; When the fault exception is an abnormal operation of the Ethernet network card, perform an exception repair operation on the Ethernet network card, including uninstalling the Ethernet driver and reinstalling the driver to restore normalcy.

7. The monitoring and maintenance method for the communication protocol function according to claim 1, characterized in that, After the step of performing exception handling on the service function when the health count of the service function is lower than a preset health threshold, the method further includes: Detecting the service function after exception handling, and when it is detected that the service function resumes to the normal state, increasing the health count corresponding to the service function according to a preset recovery rule until it resumes above the health threshold.

8. A monitoring and maintenance device for communication protocol functions, characterized in that, Including: A service detection module, configured to monitor the running state of a communication protocol function in response to a protocol function monitoring request, and update the health count of the service function according to the monitoring result, where the communication protocol function includes a number of the service functions; An exception handling module, configured to perform exception handling on the service function when the health count of the service function is lower than a preset health threshold.

9. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein, When the processor executes the program, the method for monitoring and maintaining the communication protocol function according to any one of claims 1 to 7 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, the method for monitoring and maintaining the communication protocol function according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Ethernet communication abnormity monitoring processing method and system based on SOMEIP protocol

    CN113938406A

  • SOME / IP protocol-based communication data anomaly detection method and system

    CN113992344A

  • Method and device for testing vehicle-mounted SOMEIP protocol

    CN116614420A

  • Vehicle-mounted Ethernet SOME / IP message analysis method, device, equipment and storage medium

    CN119583331A

  • Anomaly detection device and anomaly detection method

    US20210281595A1