Time delay segmentation detection method, device, system and equipment and storage medium
By using optical mirroring at the core network egress point to collect three message exchange information between the vehicle and the server, the latency of each side is determined in segments and outliers are eliminated. This solves the problem of segmented detection in existing technologies and improves the efficiency of operation and maintenance troubleshooting.
Patent Information
- Application Number
- CN202511174756.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-21
- Publication Date
- 2025-12-30
AI Technical Summary
Existing latency detection methods can only obtain the overall round-trip latency between the two ends of the communication, and cannot detect the latency of the vehicle end, server end, access side and core side in segments, which makes operation and maintenance troubleshooting difficult.
By setting up a split-image acquisition point at the network exit on the core side, the three-way message exchange information and interaction time between the vehicle end and the server end are obtained. The latency of the vehicle end, server end, access side and core side are determined in segments, and outliers are eliminated to achieve accurate detection.
It enables segmented latency detection at the vehicle end, server end, access side, and core side, improving the efficiency of operation and maintenance troubleshooting.
Smart Images

Figure CN121240126A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to computer technology, and more particularly to a delay segmentation detection method, apparatus, device, and storage medium. Background Technology
[0002] With the increasing intelligence of in-vehicle systems, the demand for latency-sensitive applications has gradually emerged, thus placing higher requirements on the end-to-end latency and jitter of vehicle-server communication. Existing latency detection methods detect the round-trip latency between the two ends of the communication. However, in the process of implementing this disclosure, at least the following problems were found in the prior art:
[0003] In cellular communication, end-to-end latency and jitter depend on a variety of factors. Existing detection methods can only obtain the overall round-trip latency between the two ends of the communication, which is not helpful for operation and maintenance troubleshooting. Summary of the Invention
[0004] This invention provides a delay segmentation detection method, apparatus, device, and storage medium to achieve accurate detection of segmented delays at the vehicle end, server end, access side, and core side, thereby improving operation and maintenance troubleshooting efficiency.
[0005] In a first aspect, embodiments of the present invention provide a delay segmentation detection method, comprising:
[0006] Multiple latency test cases collected within the collection period are obtained. Each latency test case includes: three message interaction information between the vehicle and the server and the collection time of the three interaction messages collected through the optical mirror collection point. The optical mirror collection point is set at the core side network exit.
[0007] Based on the three message exchange information and the collection time of the three exchange messages in each latency test case, determine the vehicle-side processing latency, server-side processing latency, access-side network latency and core-side network latency corresponding to each latency test case;
[0008] Outlier values are removed from the vehicle-side processing latency, the server-side processing latency, the access-side network latency, and the core-side network latency, and the target latency for vehicle-side processing, server-side processing, access-side network, and core-side network within the collection period are determined.
[0009] Secondly, embodiments of the present invention also provide a time delay segmentation detection device, comprising:
[0010] The latency test case acquisition module is used to acquire multiple latency test cases collected within the acquisition period. Each latency test case includes: three message interaction information between the vehicle and the server and the acquisition time of the three interaction messages collected through the optical mirror acquisition point. The optical mirror acquisition point is set at the core side network exit.
[0011] The latency segmentation determination module is used to determine the vehicle-side processing latency, server-side processing latency, access-side network latency, and core-side network latency corresponding to each latency test case based on the three message interaction information and the acquisition time of the three interaction messages in each latency test case.
[0012] The target latency determination module is used to remove outliers from the vehicle-side processing latency, the server-side processing latency, the access-side network latency, and the core-side network latency, and to determine the target latency for vehicle-side processing, server-side processing, access-side network, and core-side network within the collection period.
[0013] Thirdly, embodiments of the present invention also provide a time delay segmentation detection system, the system comprising a vehicle end, a server end, and a detection end;
[0014] The detection end is used to implement the time delay segmentation detection method provided in any embodiment of the present invention.
[0015] Fourthly, embodiments of the present invention also provide an electronic device, the electronic device comprising:
[0016] At least one processor; and
[0017] A memory communicatively connected to the at least one processor; wherein,
[0018] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the delay segmentation detection method provided in any embodiment of the present invention.
[0019] Fifthly, embodiments of the present invention also provide a computer-readable storage medium storing computer instructions, which are used to cause a processor to execute and implement the delay segmentation detection method provided in any embodiment of the present invention.
[0020] One embodiment of the above invention has the following advantages or beneficial effects:
[0021] By acquiring multiple latency test cases collected within the acquisition period, each latency test case includes: three message exchange information between the vehicle and the server, and the acquisition time of the three exchange messages collected at the core-side network egress through the optical mirror acquisition point. Based on the three message exchange information and the acquisition time of the three exchange messages in each latency test case, the vehicle-side processing latency, server-side processing latency, access-side network latency, and core-side network latency corresponding to each latency test case can be accurately determined. Outliers in all vehicle-side processing latency, server-side processing latency, access-side network latency, and core-side network latency are removed, and the target latency for vehicle-side processing, server-side processing, access-side network, and core-side network corresponding to the entire acquisition period after removal is determined. This achieves accurate detection of segmented latency at the vehicle, server, access, and core sides, thereby improving the efficiency of operation and maintenance troubleshooting.
[0022] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0023] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0024] Figure 1 This is a flowchart of a time delay segmentation detection method provided in one embodiment of the present invention;
[0025] Figure 2 This is an example diagram illustrating a three-way message exchange process between a vehicle and a server according to an embodiment of the present invention;
[0026] Figure 3 This is an example diagram illustrating the detection process of a time delay segmentation detection system according to an embodiment of the present invention;
[0027] Figure 4 This is an example diagram of the first message protocol stack according to an embodiment of the present invention;
[0028] Figure 5 This is an example diagram of a second message protocol stack according to an embodiment of the present invention;
[0029] Figure 6 This is a flowchart of another delay segmentation detection method provided in one embodiment of the present invention;
[0030] Figure 7 This is a flowchart of another delay segmentation detection method provided in one embodiment of the present invention;
[0031] Figure 8 This is a schematic diagram of the structure of a time delay segmentation detection device provided in one embodiment of the present invention;
[0032] Figure 9 This is a schematic diagram of a time delay segmentation detection system provided in one embodiment of the present invention;
[0033] Figure 10 This is a schematic diagram of the structure of an electronic device that implements the time delay segmentation detection method of the present invention. Detailed Implementation
[0034] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0035] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention 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 the invention 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 a 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.
[0036] Figure 1 This is a flowchart illustrating a latency segmentation detection method according to an embodiment of the present invention. This embodiment is applicable to situations where latency is segmented for communication between a vehicle and a server. The method can be executed by a latency segmentation detection device, which can be implemented in software and / or hardware and can be configured in an electronic device. Figure 1 As shown, the method specifically includes the following steps:
[0037] S110. Obtain multiple latency test cases collected within the collection period. Each latency test case includes: three message interaction information between the vehicle and the server, and the collection time of the three interaction messages collected through the optical mirror collection point.
[0038] The data collection period is a pre-set time period (e.g., minutes, hours, days, weeks) to statistically analyze the maximum, minimum, or average latency of all latency test cases within that period. Each latency test case consists of three complete message exchanges between the vehicle and the server. The first exchange is from the vehicle to the server, the second from the server to the vehicle, and the third from the vehicle to the server. The information from each exchange can include the message sending and receiving times for each interaction.
[0039] The optical splitting and mirroring acquisition point is located at the core-side network egress. The core-side network refers to the core component of the communication network between the vehicle and the server. For example, the core-side network refers to the 4G core network (Evolved Packet Core, EPC) or the 5G core network (5Generation Core, 5GC). By setting up the optical splitting and mirroring acquisition point at the core-side network egress, the traffic at the core-side network egress is split / mirrored, allowing the acquisition of packets from each interaction between the vehicle and the server at the core-side network egress, and recording the acquisition time of each acquired packet.
[0040] Specifically, the vehicle and server can exchange messages three times via User Datagram Protocol (UDP), carrying the collection sequence number of the latency test case and the local time. The collection sequence number of the latency test case can be randomly generated and used to identify the three interaction messages belonging to the same latency test case. During the collection period, the vehicle and server continuously exchange messages, and each three successful message interactions are considered as one latency test case, thus obtaining all latency test cases within the collection period.
[0041] For example, the three message interaction information in each latency test case may include: the reception time of the first message, the transmission time of the second message, the reception time of the second message, and the transmission time of the third message.
[0042] The first message is sent from the vehicle to the server via User Datagram Protocol (UDP). The second message is sent from the server to the vehicle via UDP after receiving the first message. The third message is sent from the vehicle to the server via UDP after receiving the second message.
[0043] For example, the acquisition time of the three interactive messages in each latency test case may include: the acquisition time of the first message, the acquisition time of the second message, and the acquisition time of the third message.
[0044] See Figure 2 , Figure 2 This document presents three complete message exchange processes in a latency test case. Tc1 is the time when the vehicle first sends a message (the time the first message is sent). Ti1 is the time when the first message is acquired through the optical mirror acquisition point (the time the first message is acquired). Ts1 is the time when the server receives the first message (the time the first message is received). Ts2 is the time when the server first sends a message (the time the second message is sent). Ti2 is the time when the second message is acquired through the optical mirror acquisition point (the time the second message is acquired). Tc2 is the time when the vehicle receives the second message (the time the second message is received). Tc3 is the time when the vehicle second sends a message (the time the third message is sent). Ti3 is the time when the third message is acquired through the optical mirror acquisition point (the time the third message is acquired). Ts3 is the time when the server receives the third message (the time the third message is received).
[0045] S120. Based on the three message exchange information and the collection time of the three exchange messages in each latency test case, determine the vehicle-side processing latency, server-side processing latency, access-side network latency, and core-side network latency corresponding to each latency test case.
[0046] The access side refers to the network portion of the communication network responsible for vehicle-side access. For example, the access side includes wireless communication and base stations. See also... Figure 2 The access side refers to the network stage between the vehicle-mounted terminal and the optical mirror acquisition point. The core side refers to the network stage between the optical mirror acquisition point and the server. Vehicle-mounted processing latency characterizes the processing time of the vehicle's own equipment or application. Server-side processing latency characterizes the processing time of the server's own equipment or application. Access-side network latency characterizes the round-trip time of access-side network transmission. Core-side network latency characterizes the round-trip time of core-side network transmission.
[0047] Specifically, for each latency test case, latency analysis is performed based on the three message exchange information and the collection time of the three exchange messages to obtain the vehicle-side processing latency, server-side processing latency, access-side network latency and core-side network latency corresponding to the latency test case, thereby realizing segmented detection of end-to-end latency in the vehicle network.
[0048] For example, step S120 may include: for each latency test case, determining the vehicle-side processing latency corresponding to the latency test case based on the reception time of the second message and the transmission time of the third message in the latency test case;
[0049] Based on the reception time of the first message and the sending time of the second message in this latency test case, determine the server processing latency corresponding to this latency test case;
[0050] Based on the acquisition time of the second message, the acquisition time of the third message, the reception time of the second message, and the transmission time of the third message in this latency test case, determine the access-side network latency corresponding to this latency test case;
[0051] Based on the acquisition time of the first message, the acquisition time of the second message, the reception time of the first message, and the transmission time of the second message in this latency test case, the core-side network latency corresponding to this latency test case is determined.
[0052] Specifically, see Figure 2 Subtract the second message's reception time Tc2 from the third message's sending time Tc3 in the latency test case to obtain the vehicle-side processing latency ΔTc corresponding to that latency test case, i.e., ΔTc = Tc3 - Tc2.
[0053] See also Figure 2 Subtract the sending time Ts2 of the second message in the latency test case from the receiving time Ts1 of the first message to obtain the server processing latency ΔTs corresponding to the latency test case, that is, ΔTs = Ts2 - Ts1.
[0054] See also Figure 2 Subtract the reception time Tc2 of the second message in the latency test case from the acquisition time Ti2 of the second message to obtain the access-side first latency ΔTdl1, i.e., ΔTdl1 = Tc2 - Ti2. Subtract the acquisition time Ti3 of the third message in the latency test case from the transmission time Tc3 of the second message to obtain the access-side second latency ΔTdl2, i.e., ΔTdl2 = Ti3 - Tc3. Add the access-side first latency ΔTdl1 and the access-side second latency ΔTdl2 to obtain the access-side network latency ΔTa corresponding to the latency test case, i.e., ΔTa = ΔTdl1 + ΔTdl2.
[0055] See also Figure 2Subtract the first packet's reception time Ts1 from the first packet's acquisition time Ti1 in the latency test case to obtain the core-side first latency ΔTul1, i.e., ΔTul1 = Ts1 - Ti1. Subtract the second packet's acquisition time Ti2 from the second packet's transmission time Ts2 in the latency test case to obtain the core-side second latency ΔTul2, i.e., ΔTul2 = Ti2 - Ts2. Add the core-side first latency ΔTul1 and the core-side second latency ΔTul2 to obtain the core-side network latency ΔTn corresponding to the latency test case, i.e., ΔTn = ΔTul1 + ΔTul2.
[0056] S130. Remove outliers from vehicle-side processing latency, server-side processing latency, access-side network latency, and core-side network latency, and determine the target latency for vehicle-side processing, server-side processing, access-side network, and core-side network within the collection period.
[0057] Outliers are values that are abnormally large or small due to errors at the detection end or in the transmission and reception of messages. To ensure the accuracy of segmented latency detection, these outliers need to be removed before overall latency statistics are performed. The target latency for vehicle-side processing, server-side processing, access-side network, and core-side network are all used to evaluate the latency statistics throughout the entire data collection period, thereby reducing latency detection errors and improving the accuracy of segmented latency detection. For example, the target latency for vehicle-side processing can include the maximum, minimum, and average latency for vehicle-side processing within the data collection period. The target latency for server-side processing can include the maximum, minimum, and average latency for server-side processing within the data collection period. The target latency for access-side network can include the maximum, minimum, and average latency for access-side network within the data collection period. The target latency for core-side network can include the maximum, minimum, and average latency for core-side network within the data collection period.
[0058] Specifically, to accurately assess latency quality within the collection period, outliers are removed from all vehicle-side processing latency corresponding to all latency test cases, and the target latency for vehicle-side processing within the collection period is determined based on the remaining vehicle-side processing latency. Similarly, outliers are removed from all server-side processing latency corresponding to all latency test cases, and the target latency for server-side processing within the collection period is determined based on the remaining server-side processing latency. Outliers are also removed from all access-side network latency corresponding to all latency test cases, and the target latency for access-side network within the collection period is determined based on the remaining access-side network latency. Furthermore, outliers are removed from all core-side network latency corresponding to all latency test cases, and the target latency for core-side network within the collection period is determined based on the remaining core-side network latency. Since vehicle-side processing latency, server-side processing latency, access-side network latency, and core-side network latency all affect the end-to-end latency of communication between the vehicle and server, the obtained segmented latency allows for faster troubleshooting and maintenance, improving troubleshooting efficiency.
[0059] The technical solution of this embodiment acquires multiple latency test cases collected within the collection period. Each latency test case includes: three message interaction information between the vehicle and the server, and the collection time of the three interaction messages collected at the core-side network egress through the optical mirror collection point. Based on the three message interaction information and the collection time of the three interaction messages in each latency test case, the vehicle-side processing latency, server-side processing latency, access-side network latency, and core-side network latency corresponding to each latency test case can be accurately determined. Outliers in all vehicle-side processing latency, server-side processing latency, access-side network latency, and core-side network latency are removed, and the target latency for vehicle-side processing, server-side processing, access-side network, and core-side network corresponding to the entire collection period after removal is determined. This achieves accurate detection of segmented latency at the vehicle, server, access, and core sides, thereby improving the efficiency of operation and maintenance troubleshooting.
[0060] Based on the above technical solutions, the vehicle and server sides exchange messages three times via UDP. See also Figure 3 The vehicle and server sides send and receive packets via a UDP program. This UDP program consists of three sub-modules: a UDP sending sub-module, a UDP processing sub-module, and a UDP receiving sub-module. The UDP processing sub-module is mainly used for time stamping, packet decapsulation, adding specific information, and re-encapsulating the packets.
[0061] Each UDP packet sent by the vehicle or server includes an IP header, a UDP header, and a payload. The payload consists of three parts: the first is the sequence number of the latency test case, which is randomly generated; the second is the packet sending order (count_flag), which records the step of the packet transmission within the latency test case, incrementing from 1 to 3 for each complete test case; and the third is the packet sending time and / or receiving time.
[0062] For example, the data payload information in the first message includes the collection sequence number of this latency test case, the order of this packet transmission, and the transmission time of the first message; the data payload information in the second message includes the collection sequence number of this latency test case, the order of this packet transmission, the transmission time of the first message, the reception time of the first message, and the transmission time of the second message; the data payload information in the third message includes the collection sequence number of this latency test case, the order of this packet transmission, the transmission time of the first message, the reception time of the first message, the transmission time of the second message, the reception time of the second message, and the transmission time of the third message.
[0063] See Figure 4 The data payload information in the protocol stack of the first message sent by the vehicle to the server includes the collection sequence number of this latency test case, the order of packet transmission (count_flag = 1), and the transmission time (Tc1) of the first message. Since this is the first packet transmission from the vehicle, count_flag = 1. See also... Figure 3 When the first message enters the detection end through the split / mirror acquisition point, the detection end hashes the five-tuple of the message and parses the data payload information. The hash value is used as the unique identifier of the two ends to establish a hash table. The acquisition sequence number of the latency test case is used as the unique ID of this latency test case under the same hash value. A new latency test case table is created, and count_flag=1 and the sending time Tc1 of the first message are recorded in the latency test case table.
[0064] See Figure 5 The data payload information in the protocol stack of the second message sent by the server to the vehicle for the first time includes the collection sequence number of this latency test case, the order of this packet transmission (count_flag = 2), the transmission time of the first message (Tc1), the reception time of the first message (Ts1), and the transmission time of the second message (Ts2). Since it is the second packet transmission in this latency test case, count_flag = 2. When the server receives the first message, it parses the first message to obtain the transmission time (Tc1). See also... Figure 3When the second message enters the detection terminal after passing through the splitter / mirror acquisition point, the detection terminal hashes the five-tuple of the message and parses the data payload information. The hash value is then matched against the corresponding hash table in the database. The latency test case table is matched against the acquisition sequence number of this latency test case and updated, storing count_flag=2, the reception time Ts1 of the first message, and the transmission time Ts2 of the second message in the table.
[0065] Similarly, the data payload information in the protocol stack of the third message sent by the vehicle to the server for the second time includes the collection sequence number of this latency test case, the order of this packet transmission (count_flag = 3), the transmission time Tc1 of the first message, the reception time Ts1 of the first message, the transmission time Ts2 of the second message, the reception time Tc2 of the second message, and the transmission time Tc3 of the third message. When the third message enters the detection end after passing through the splitter / mirror collection point, the detection end hashes the five-tuple of the message and parses the data payload information. It matches the hash value with the corresponding hash table in the database. Based on the collection sequence number of this latency test case, it matches and updates the latency test case table, storing count_flag = 3, the reception time Tc2 of the second message, and the transmission time Tc3 of the third message in the table.
[0066] See also Figure 3 The detection end can consist of five parts: a mirror acquisition module, a 5-tuple parsing table establishment module, a UDP packet parsing module, a single test case latency statistics module, and a time period latency statistics module. The mirror acquisition module is used to collect data from the optical splitter at the core network egress. The 5-tuple parsing table establishment module identifies specific source IPs, destination IPs, ports, and protocol types to establish tables for subsequent statistics. The UDP packet parsing module parses and identifies the payload in UDP packets. The single test case latency statistics module calculates the vehicle-side processing latency ΔTc, server-side processing latency ΔTs, access-side network latency ΔTdl1+ΔTdl2, and core-side network latency ΔTul1+ΔTul2 for a single latency test case. The time period latency statistics module performs latency statistics for a specific set of two-end tests (corresponding to 5-tuple hash values) within a set acquisition period.
[0067] By setting up UDP packet sending and receiving programs at the vehicle and server ends to exchange messages and record the time of sending and receiving packets, and setting up optical mirroring collection points at the core side, the association of data packets corresponding to a certain data stream is realized by analyzing the collection sequence number in the UDP packets. Specific packets are sent to the detection end for latency detection and analysis, thereby realizing segmented latency statistics of a certain data stream from the vehicle end, access side, core side and server end in the end-to-end.
[0068] While UDP has low resource overhead, network errors, packet loss, and out-of-order delivery are common. Directly analyzing statistical data without proper filtering and identification can lead to significant errors. Therefore, to prevent incorrect table updates at the detection end, special packets need to be processed to achieve accurate data stream correlation and transmission / reception delay statistics.
[0069] For example, the method may further include: if the packet sending order in the current message received by the server is 1, and the sequence number in the current message is the collection sequence number of the current latency test case, then the server is controlled to send a second message to the vehicle; if the packet sending order in the current message received by the vehicle is 2, and the sequence number in the current message is the collection sequence number of the current latency test case, then the vehicle is controlled to send a third message to the server; if the vehicle or the server does not receive the sending message of the current latency test case within a preset timeout period, then the collection operation of the current latency test case is stopped, and the collection of the next latency test case is performed after a preset time.
[0070] Specifically, the server-side special message handling is as follows: For received UDP messages, the server only responds to messages whose packet sending order is 1 (i.e., count_flag = 1) and whose sequence number is the same as the current test message. A timer can also be set; if no message for the current latency test case is received within a preset timeout period (e.g., 5 seconds), the collection operation for this latency test case is stopped, i.e., the message sending program for this test case is stopped, and the collection of the next latency test case is resumed after a preset time (e.g., 60 seconds).
[0071] The vehicle-side special message handling is as follows: For received UDP messages, the vehicle-side only responds to messages whose packet sending order is 2 (i.e., count_flag = 2) and whose sequence number is the same as the current test message. A timer can also be set; if no message for the current latency test case is received within a preset timeout period (e.g., 5 seconds), the collection operation for this latency test case is stopped, i.e., the message sending program for this test case is stopped, and the vehicle waits for a preset time (e.g., 60 seconds) before resuming the collection of the next latency test case. If the vehicle-side receives a message whose count_flag ≠ 2, or a message whose sequence number does not match the current terminal's, it is considered a message not belonging to this test case and is discarded without responding. The detection terminal will also delete the relevant records for this failed test case and will not perform latency calculations.
[0072] By embedding random numbers in UDP packets and using a count_flag mechanism, it is possible to effectively identify scenarios such as packet errors, packet loss, and out-of-order packets, preventing errors in table updates at the detection end and further ensuring the accuracy of latency segmentation detection.
[0073] Figure 6This is a flowchart illustrating another latency segmentation detection method provided in one embodiment of the present invention. Based on the above embodiments, this embodiment describes in detail the process of removing outliers and determining the target latency for vehicle-side processing, server-side processing, access-side network target latency, and core-side network target latency. Explanations of terms that are the same as or corresponding to those in the above embodiments are not repeated here.
[0074] See Figure 6 Another delay segmentation detection method provided in this embodiment specifically includes the following steps:
[0075] S610. Obtain multiple latency test cases collected within the collection period. Each latency test case includes: three message interaction information between the vehicle and the server, and the collection time of the three interaction messages collected through the optical mirror collection point.
[0076] S620. Based on the three message exchange information and the collection time of the three exchange messages in each latency test case, determine the vehicle-side processing latency, server-side processing latency, access-side network latency, and core-side network latency corresponding to each latency test case.
[0077] S630. Outliers in the vehicle-side processing latency are removed by using the standard deviation method, and the target vehicle-side processing latency within the collection period is determined.
[0078] Specifically, by determining the standard deviation of all vehicle-side processing delays, outliers in all vehicle-side processing delays are identified and removed, thereby enabling a more accurate determination of the target vehicle-side processing delays within the data collection period, such as maximum delay, minimum delay, and average delay.
[0079] For example, step S630 may include: averaging the processing delays of each vehicle terminal to obtain the current average processing delay of the vehicle terminal, and determining the current standard deviation of the processing delay of the vehicle terminal based on the processing delays of each vehicle terminal and the current average processing delay of the vehicle terminal; identifying and removing abnormal processing delays of the vehicle terminal based on the current standard deviation of the processing delays of the vehicle terminal, returning to the averaging operation based on the remaining processing delays after removal, until there are no abnormal processing delays of the vehicle terminal, and determining the current average processing delay of the vehicle terminal as the target processing delay of the vehicle terminal within the collection period.
[0080] It should be noted that, in order to accurately evaluate the network end-to-end average latency quality within a sampling period of N times, some abnormally large or small values observed within the period may be due to errors in the detection end or transceiver program, thus requiring the removal of such data. Specifically, the average latency of all vehicle-side processing is calculated to obtain the current average latency of vehicle-side processing. Based on all vehicle-side processing delays and the current average vehicle-side processing delay, determine the current standard deviation S of the vehicle-side processing delay, i.e. It also checks whether the difference between the processing latency of each vehicle and the current average processing latency is greater than a preset multiple of the current standard deviation, such as 3 seconds, and identifies vehicle processing latencies that are greater than the preset multiple of the current standard deviation as abnormal vehicle processing latencies, and removes them from the list. The vehicle-side processing latency is calculated. The average latency of all remaining vehicle-side processing latencies after removal is recalculated to obtain the current average latency. Based on the vehicle-side processing latencies and the current average latency, the current standard deviation of the vehicle-side processing latency is redefined until the difference between all vehicle-side processing latencies and the current average latency is less than or equal to a preset multiple of the current standard deviation, i.e., no latency exists. The vehicle-side processing delay is calculated up to the current average vehicle-side processing delay. The target latency for vehicle-side processing within the data collection period is determined as the average latency for vehicle-side processing within the data collection period.
[0081] S640. By using the standard deviation method, outliers in the server processing latency are removed, and the target server processing latency within the collection period is determined.
[0082] Specifically, by determining the standard deviation of all server-side processing latency, outliers in all server-side processing latency can be identified and removed, thereby more accurately determining the target server-side processing latency within the collection period, such as maximum latency, minimum latency, and average latency.
[0083] For example, step S640 may include: averaging the processing latency of each server to obtain the current average processing latency of the server, and determining the current standard deviation of the server processing latency based on the processing latency of each server and the current average processing latency of the server; identifying and removing abnormal server processing latency based on the current standard deviation of the server processing latency, returning to the averaging operation based on the remaining server processing latency after removal, until there is no abnormal server processing latency, and determining the current average processing latency of the server as the target server processing latency within the collection period.
[0084] It should be noted that the calculation process for the target latency on the server side is the same as the calculation process for the target latency on the vehicle side described above. For related explanations, please refer to the above description, which will not be repeated here.
[0085] S650. By using the standard deviation method, outliers in the access-side network latency are removed, and the target latency of the access-side network within the collection period is determined.
[0086] Specifically, by determining the standard deviation of the latency of all access-side networks, outliers in the latency of all access-side networks can be identified and removed, thereby enabling a more accurate determination of the target latency of the access-side network within the collection period, such as the maximum latency, minimum latency, and average latency.
[0087] For example, step S650 may include: averaging the latency of each access-side network to obtain the current average latency of the access-side network, and determining the current standard deviation of the access-side network latency based on the latency of each access-side network and the current average latency of the access-side network; identifying and removing abnormal access-side network latency based on the current standard deviation of the access-side network latency, returning to the averaging operation based on the remaining access-side network latency after removal, until there is no abnormal access-side network latency, and determining the current average latency of the access-side network as the target latency of the access-side network within the collection period.
[0088] It should be noted that the calculation process for the target latency of the access-side network is the same as that for the calculation process of the target latency of the vehicle-side processing described above. The relevant explanation can be found in the above description and will not be repeated here.
[0089] S660. Outlier values in the core-side network latency are removed by standard deviation, and the target latency of the core-side network within the collection period is determined.
[0090] Specifically, by determining the standard deviation of the latency of all core-side networks, outliers in the latency of all core-side networks are identified and removed, thereby enabling a more accurate determination of the target latency of the core-side networks within the acquisition period, such as the maximum latency, minimum latency, and average latency.
[0091] For example, step S660 may include: averaging the latency of each core-side network to obtain the current average latency of the core-side network, and determining the current standard deviation of the core-side network latency based on the latency of each core-side network and the current average latency of the core-side network; identifying and removing abnormal core-side network latency based on the current standard deviation of the core-side network latency, returning to the averaging operation based on the remaining core-side network latency after removal, until there is no abnormal core-side network latency, and determining the current average latency of the core-side network as the target latency of the core-side network within the acquisition period.
[0092] It should be noted that the calculation process for the target latency of the core-side network is the same as that for the target latency of the vehicle-side processing described above. For related explanations, please refer to the above description, which will not be repeated here.
[0093] The technical solution of this embodiment, by determining the standard deviation of all delays, can more quickly and effectively identify and remove outliers in all delays, thereby more accurately determining the target delay within the acquisition period and further improving the accuracy of end-to-end segmented delay detection.
[0094] Figure 7 This is a flowchart illustrating another delay segmentation detection method according to an embodiment of the present invention. Based on the above embodiments, this embodiment describes in detail the process of locating the problem point of increased end-to-end delay. Explanations of terms that are the same as or corresponding to those in the above embodiments are not repeated here.
[0095] See Figure 7 Another delay segmentation detection method provided in this embodiment specifically includes the following steps:
[0096] S710. Obtain multiple latency test cases collected within the collection period. Each latency test case includes: three message interaction information between the vehicle and the server, and the collection time of the three interaction messages collected through the optical mirror collection point.
[0097] S720. Based on the three message exchange information and the collection time of the three exchange messages in each latency test case, determine the vehicle-side processing latency, server-side processing latency, access-side network latency, and core-side network latency corresponding to each latency test case.
[0098] S730 performs outlier removal on vehicle-side processing latency, server-side processing latency, access-side network latency, and core-side network latency, and determines the target latency for vehicle-side processing, server-side processing, access-side network, and core-side network within the collection period.
[0099] S740. In response to the fact that the end-to-end latency of the current collection period is greater than the end-to-end latency of the previous collection period, the target latency of vehicle-side processing, server-side processing, access-side network, and core-side network in the current collection period are compared with the target latency of vehicle-side processing, server-side processing, access-side network, and core-side network in the previous collection period, respectively.
[0100] The end-to-end latency for each acquisition period can be determined based on the end-to-end latency corresponding to each latency test case within the acquisition period. The end-to-end latency for each latency test case can be determined based on the transmission time of the first message and the reception time of the second message in each latency test case. For example, the end-to-end latency for each latency test case is obtained by subtracting the transmission time Tc1 of the first message from the reception time Tc2 of the second message in each latency test case. The end-to-end latency for the acquisition period can be obtained by averaging the end-to-end latency for all latency test cases, or by removing outliers from the end-to-end latency for all latency test cases and averaging the remaining end-to-end latency. This embodiment does not limit the calculation method for the end-to-end latency of each acquisition period.
[0101] Specifically, if the end-to-end latency of the current acquisition period is greater than that of the previous acquisition period, it indicates that the current end-to-end latency has increased. At this time, the target latency for vehicle-side processing in the current acquisition period can be compared with that of the previous acquisition period, the target latency for server-side processing in the current acquisition period can be compared with that of the previous acquisition period, the target latency for access-side network in the current acquisition period can be compared with that of the previous acquisition period, and the target latency for core-side network in the current acquisition period can be compared with that of the previous acquisition period, thereby achieving a comparison of segmented latency within two acquisition periods.
[0102] S750. Based on the comparison results, determine the target location that causes the end-to-end latency increase in the current collection cycle. The target location is at least one of the vehicle end, server end, access side, and core side.
[0103] Specifically, based on the comparison results of the latency of each segment, the problem point causing the increase in end-to-end latency in the current collection cycle can be located more accurately and quickly, whether it is on the vehicle end, server end, access side and / or core side. This allows for accurate and rapid identification of the source of the latency increase, greatly assisting in operation and maintenance troubleshooting and improving the efficiency of operation and maintenance troubleshooting.
[0104] For example, step S750 may include: if the target latency of vehicle-side processing in the current collection period is greater than the target latency of vehicle-side processing in the previous collection period, then the target location causing the increase in end-to-end latency in the current collection period is determined to include the vehicle-side; if the target latency of server-side processing in the current collection period is greater than the target latency of server-side processing in the previous collection period, then the target location causing the increase in end-to-end latency in the current collection period is determined to include the server-side; if the target latency of access-side network in the current collection period is greater than the target latency of access-side network in the previous collection period, then the target location causing the increase in end-to-end latency in the current collection period is determined to include the access side; if the target latency of core-side network in the current collection period is greater than the target latency of core-side network in the previous collection period, then the target location causing the increase in end-to-end latency in the current collection period is determined to include the core side.
[0105] After identifying the target location causing increased end-to-end latency in the current data collection cycle, targeted segmented latency optimization can be performed to improve the optimization effect. For example, if the target location includes the vehicle end, it indicates increased vehicle end latency. In this case, the vehicle end system resource usage and program operation status can be checked. If resource usage is high, non-critical resource usage can be stopped, the vehicle end device can be restarted, or vehicle end performance can be improved. If the target location includes the server end, it indicates increased server end latency. In this case, the server end system resource usage and program operation status can be checked. If resource usage is high, non-critical resource usage can be stopped, the server end device can be restarted, or server end performance can be improved. If the target location includes the access side, it indicates increased access side latency. In this case, access side latency can be optimized by setting up dedicated slices for vehicle-to-everything (V2X) on 5G base stations, increasing the priority of V2X services, and reserving resources. If the target location includes the core side, it indicates increased core side latency. In this case, core side latency can be optimized by introducing content sources, expanding bandwidth, scheduling queue resources, and optimizing access paths.
[0106] The technical solution of this embodiment compares the target latency of vehicle-side processing, server-side processing, access-side network, and core-side network in the current collection period with those in the previous collection period when the end-to-end latency of the current collection period is greater than that of the previous collection period. Based on the comparison results, the target location causing the increase in end-to-end latency in the current collection period can be located more accurately and quickly. This allows for a more accurate and rapid understanding of the problem causing the increased latency, greatly aiding in operation and maintenance troubleshooting and improving efficiency.
[0107] The following are embodiments of the delay segmentation detection device provided in this invention. This device and the delay segmentation detection method in the above embodiments belong to the same inventive concept. For details not described in detail in the embodiments of the delay segmentation detection device, please refer to the embodiments of the delay segmentation detection method described above.
[0108] Figure 8 This is a schematic diagram of a delay segmentation detection device provided in an embodiment of the present invention. This embodiment is applicable to situations where delay is detected in segments during communication between the vehicle and the server. Figure 8 As shown, the device specifically includes: a delay test case acquisition module 810, a delay segmentation determination module 820, and a target delay determination module 830.
[0109] The latency test case acquisition module 810 is used to acquire multiple latency test cases collected within the acquisition period. Each latency test case includes: three message interaction information between the vehicle and the server, and the acquisition time of the three interaction messages collected through the optical mirror acquisition point, wherein the optical mirror acquisition point is set at the core side network exit. The latency segmentation determination module 820 is used to determine the vehicle processing latency, server processing latency, access side network latency, and core side network latency corresponding to each latency test case based on the three message interaction information and the acquisition time of the three interaction messages in each latency test case. The target latency determination module 830 is used to remove outliers from the vehicle processing latency, server processing latency, access side network latency, and core side network latency, and determine the target latency of vehicle processing, server processing, access side network, and core side network within the acquisition period.
[0110] The technical solution of this embodiment acquires multiple latency test cases collected within the collection period. Each latency test case includes: three message interaction information between the vehicle and the server, and the collection time of the three interaction messages collected at the core-side network egress through the optical mirror collection point. Based on the three message interaction information and the collection time of the three interaction messages in each latency test case, the vehicle-side processing latency, server-side processing latency, access-side network latency, and core-side network latency corresponding to each latency test case can be accurately determined. Outliers in all vehicle-side processing latency, server-side processing latency, access-side network latency, and core-side network latency are removed, and the target latency for vehicle-side processing, server-side processing, access-side network, and core-side network corresponding to the entire collection period after removal is determined. This achieves accurate detection of segmented latency at the vehicle, server, access, and core sides, thereby improving the efficiency of operation and maintenance troubleshooting.
[0111] Optionally, the three message exchange information includes: the reception time of the first message, the sending time of the second message, the reception time of the second message, and the sending time of the third message, wherein the first message is a message sent by the vehicle to the server via the User Datagram Protocol (UDP), the second message is a message sent by the server to the server via UDP after receiving the first message, and the third message is a message sent by the vehicle to the server via UDP after receiving the second message;
[0112] The collection time of the three interactive messages includes: the collection time of the first message, the collection time of the second message, and the collection time of the third message.
[0113] Optionally, the delay segmentation determination module 870 is specifically used for:
[0114] For each latency test case, the vehicle-side processing latency corresponding to the latency test case is determined based on the reception time of the second message and the transmission time of the third message in the latency test case; the server-side processing latency corresponding to the latency test case is determined based on the reception time of the first message and the transmission time of the second message in the latency test case; the access-side network latency corresponding to the latency test case is determined based on the collection time of the second message, the collection time of the third message, the reception time of the second message and the transmission time of the third message in the latency test case; and the core-side network latency corresponding to the latency test case is determined based on the collection time of the first message, the collection time of the second message, the reception time of the first message and the transmission time of the second message in the latency test case.
[0115] Optionally, the data payload information in the first message includes the collection sequence number of this latency test case, the order of this packet transmission, and the transmission time of the first message;
[0116] The data payload information in the second message includes the collection sequence number of this latency test case, the order of this packet transmission, the sending time of the first message, the receiving time of the first message, and the sending time of the second message;
[0117] The data payload information in the third message includes the collection sequence number of this latency test case, the order of this packet transmission, the sending time of the first message, the receiving time of the first message, the sending time of the second message, the receiving time of the second message, and the sending time of the third message.
[0118] Optionally, the server is further configured to: if the packet sending order in the received current message is 1, and the sequence number in the current message is the collection sequence number of this latency test case, then control the server to send the second message to the vehicle; if the sending message of this latency test case is not received within a preset timeout period, then stop the collection operation of this latency test case, and wait for a preset time before collecting the next latency test case;
[0119] The vehicle terminal is also used to: if the packet sending order in the received current message is 2, and the sequence number in the current message is the collection sequence number of this latency test case, then control the vehicle terminal to send the third message to the server; if the sending message of this latency test case is not received within the preset timeout period, then stop the collection operation of this latency test case, and wait for the preset time to perform the collection of the next latency test case.
[0120] Optionally, the target delay determination module 880 includes:
[0121] The vehicle-side processing target latency determination unit is used to remove outliers from the vehicle-side processing latency by means of standard deviation, and to determine the vehicle-side processing target latency within the collection period.
[0122] The server-side processing target latency determination unit is used to remove outliers from the server-side processing latency by means of standard deviation, and to determine the server-side processing target latency within the collection period.
[0123] The access-side network target latency determination unit is used to remove outliers from the access-side network latency by means of standard deviation, and to determine the access-side network target latency within the collection period.
[0124] The core-side network target latency determination unit is used to remove outliers from the core-side network latency by means of standard deviation, and to determine the core-side network target latency within the acquisition period.
[0125] Optionally, the vehicle-side target delay determination unit is specifically used for:
[0126] The average processing latency of each vehicle-end processing unit is averaged to obtain the current average latency of vehicle-end processing. Based on the individual vehicle-end processing latencies and the current average latency of vehicle-end processing, the current standard deviation of the vehicle-end processing latency is determined. Based on the current standard deviation of the vehicle-end processing latency, abnormal vehicle-end processing latencies are identified and removed. Based on the remaining vehicle-end processing latencies after removal, the averaging operation is repeated until there are no abnormal vehicle-end processing latencies. The current average latency of vehicle-end processing is then determined as the target latency of vehicle-end processing within the collection period.
[0127] Optionally, the device further includes:
[0128] The latency comparison module is used to compare the target latency of vehicle-side processing, server-side processing, access-side network target latency, and core-side network target latency in the current acquisition period with the target latency of vehicle-side processing, server-side processing, access-side network target latency, and core-side network target latency in the previous acquisition period, respectively, in response to the fact that the end-to-end latency of the current acquisition period is greater than the end-to-end latency of the previous acquisition period.
[0129] The target location determination module is used to determine, based on the comparison results, the target location that causes the end-to-end latency to increase in the current acquisition cycle. The target location is at least one of the vehicle end, server end, access side, and core side.
[0130] Optionally, the target location determination module has features for:
[0131] If the target latency for vehicle-side processing in the current collection period is greater than the target latency for vehicle-side processing in the previous collection period, then the target location causing the increase in end-to-end latency in the current collection period includes the vehicle-side; if the target latency for server-side processing in the current collection period is greater than the target latency for server-side processing in the previous collection period, then the target location causing the increase in end-to-end latency in the current collection period includes the server-side; if the target latency for access-side network in the current collection period is greater than the target latency for access-side network in the previous collection period, then the target location causing the increase in end-to-end latency in the current collection period includes the access side; if the target latency for core-side network in the current collection period is greater than the target latency for core-side network in the previous collection period, then the target location causing the increase in end-to-end latency in the current collection period includes the core side.
[0132] The delay segmentation detection device provided in this embodiment of the invention can execute the delay segmentation detection method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects for executing the delay segmentation detection method.
[0133] It is worth noting that in the embodiments of the above-mentioned delay segmentation detection device, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the scope of protection of the present invention.
[0134] Figure 9 This is a schematic diagram of a delay segmentation detection system provided in an embodiment of the present invention. This embodiment is applicable to situations where delay is detected in segments during communication between the vehicle and the server. Figure 9 As shown, the system specifically includes: vehicle terminal 910, server terminal 920, and detection terminal 930.
[0135] The detection end 930 is used to implement the time delay segmentation detection method provided in any embodiment of the present invention.
[0136] In the latency segmentation detection system of this invention, the vehicle terminal 910 and the server terminal 920 exchange messages three times in each latency test case. The detection terminal 930 collects the messages of each exchange through the optical mirror acquisition point set at the core side network exit. Based on the message exchange information and acquisition time of the three exchange messages in each latency test case, the system can accurately determine the vehicle terminal processing latency, server terminal processing latency, access side network latency, and core side network latency corresponding to each latency test case. The system also removes outliers from all vehicle terminal processing latency, server terminal processing latency, access side network latency, and core side network latency, and determines the target latency of vehicle terminal processing, server terminal processing, access side network, and core side network for the entire acquisition cycle after removal. This achieves accurate detection of segmented latency at the vehicle terminal, server, access side, and core side, thereby improving the efficiency of operation and maintenance troubleshooting.
[0137] Figure 10 A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0138] like Figure 10 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0139] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0140] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, central processing unit (CPU), graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various delay segmentation detection methods and processes described above.
[0141] In some embodiments, the delay segmentation detection method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the delay segmentation detection method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the delay segmentation detection method by any other suitable means (e.g., by means of firmware).
[0142] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0143] Computer programs used to implement the delay segmentation detection method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The computer programs can be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0144] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0145] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0146] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0147] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0148] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0149] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method of time delay segment detection, the method comprising: The method comprises: acquiring a plurality of time delay test cases collected in a collection period, each time delay test case comprising: three times of message interaction information between a vehicle side and a service side, and collection times of the three times of interaction messages collected through a split optical mirror image collection point, wherein the split optical mirror image collection point is arranged at a core side network outlet; determining, according to the three times of message interaction information and the collection times of the three times of interaction messages in each time delay test case, a vehicle side processing time delay, a service side processing time delay, an access side network time delay and a core side network time delay corresponding to each time delay test case; performing outlier rejection on the vehicle side processing time delay, the service side processing time delay, the access side network time delay and the core side network time delay, and determining a vehicle side processing target time delay, a service side processing target time delay, an access side network target time delay and a core side network target time delay in the collection period.
2. The method according to claim 1, wherein the three times of message interaction information comprises: a receiving time of a first message, a sending time of a second message, a receiving time of the second message and a sending time of a third message, wherein the first message is a message sent by a vehicle side to a service side through a user datagram protocol, the second message is a message sent by the service side to the vehicle side through the user datagram protocol after receiving the first message, and the third message is a message sent by the vehicle side to the service side through the user datagram protocol after receiving the second message; the collection times of the three times of interaction messages comprise: a collection time of the first message, a collection time of the second message and a collection time of the third message.
3. The method of claim 2, wherein, determining, according to the three times of message interaction information and the collection times of the three times of interaction messages in each time delay test case, a vehicle side processing time delay, a service side processing time delay, an access side network time delay and a core side network time delay corresponding to each time delay test case, comprises: for each time delay test case, determining a vehicle side processing time delay corresponding to the time delay test case according to a receiving time of a second message and a sending time of a third message in the time delay test case; determining a service side processing time delay corresponding to the time delay test case according to a receiving time of a first message and a sending time of a second message in the time delay test case; determining an access side network time delay corresponding to the time delay test case according to a collection time of the second message, a collection time of the third message, a receiving time of the second message and a sending time of the third message in the time delay test case; determining a core side network time delay corresponding to the time delay test case according to a collection time of the first message, a collection time of the second message, a receiving time of the first message and a sending time of the second message in the time delay test case.
4. The method according to claim 2, wherein data load information in the first message comprises a collection serial number of the current time delay test case, a sequence of the current packet and a sending time of the first message; data load information in the second message comprises the collection serial number of the current time delay test case, the sequence of the current packet, the sending time of the first message, a receiving time of the first message and a sending time of the second message; The data payload information in the third packet includes a collection sequence number of the current time delay test case, a packet sending sequence of the current packet, a sending time of the first packet, a receiving time of the first packet, a sending time of the second packet, a receiving time of the second packet, and a sending time of the third packet.
5. The method of claim 4, wherein, The method further comprises: if the packet sending sequence in the current packet received by the server is 1 and the sequence number in the current packet is the collection sequence number of the current time delay test case, controlling the server to send the second packet to the vehicle end; if the packet sending sequence in the current packet received by the vehicle end is 2 and the sequence number in the current packet is the collection sequence number of the current time delay test case, controlling the vehicle end to send the third packet to the server; if the vehicle end or the server does not receive the sending packet of the current time delay test case within a preset timeout time, stopping the collection operation of the current time delay test case and waiting for a preset time before collecting the next time delay test case.
6. The method of claim 1, wherein, The vehicle end processing time delay, the server processing time delay, the access side network time delay, and the core side network time delay are subjected to outlier elimination, and the vehicle end processing target time delay, the server processing target time delay, the access side network target time delay, and the core side network target time delay in the collection period are determined, comprising: The vehicle end processing time delay is subjected to outlier elimination by a standard deviation method, and the vehicle end processing target time delay in the collection period is determined. The server processing time delay is subjected to outlier elimination by a standard deviation method, and the server processing target time delay in the collection period is determined. The access side network time delay is subjected to outlier elimination by a standard deviation method, and the access side network target time delay in the collection period is determined. The core side network time delay is subjected to outlier elimination by a standard deviation method, and the core side network target time delay in the collection period is determined.
7. The method of claim 6, wherein, The vehicle end processing time delay is subjected to outlier elimination by a standard deviation method, and the vehicle end processing target time delay in the collection period is determined, comprising: The vehicle end processing time delays are subjected to average processing to obtain a vehicle end processing current average time delay, and the current standard deviation of the vehicle end processing time delay is determined according to the vehicle end processing time delays and the vehicle end processing current average time delay; The abnormal vehicle end processing time delay is determined and eliminated according to the current standard deviation of the vehicle end processing time delay, the average processing operation is returned to be executed based on the remaining vehicle end processing time delay after elimination until there is no abnormal vehicle end processing time delay, and the vehicle end processing current average time delay is determined as the vehicle end processing target time delay in the collection period.
8. The method according to any one of claims 1 to 7, characterized in that, After the vehicle end processing target time delay, the server processing target time delay, the access side network target time delay, and the core side network target time delay in the collection period are determined, further comprising: In response to the end-to-end delay of the current collection cycle being greater than the end-to-end delay of the last collection cycle, the vehicle end processing target delay, the service end processing target delay, the access side network target delay, and the core side network target delay in the current collection cycle are compared with the vehicle end processing target delay, the service end processing target delay, the access side network target delay, and the core side network target delay in the last collection cycle, respectively. According to the comparison result, the target position causing the increase of the end-to-end delay of the current collection cycle is determined, and the target position is at least one of the vehicle end, the service end, the access side, and the core side.
9. The method of claim 8, wherein, According to the comparison result, the target position causing the increase of the end-to-end delay of the current collection cycle is determined, and the target position is at least one of the vehicle end, the service end, the access side, and the core side. If the vehicle end processing target delay in the current collection cycle is greater than the vehicle end processing target delay in the last collection cycle, it is determined that the target position causing the increase of the end-to-end delay of the current collection cycle includes the vehicle end. If the service end processing target delay in the current collection cycle is greater than the service end processing target delay in the last collection cycle, it is determined that the target position causing the increase of the end-to-end delay of the current collection cycle includes the service end. If the access side network target delay in the current collection cycle is greater than the access side network target delay in the last collection cycle, it is determined that the target position causing the increase of the end-to-end delay of the current collection cycle includes the access side. If the core side network target delay in the current collection cycle is greater than the core side network target delay in the last collection cycle, it is determined that the target position causing the increase of the end-to-end delay of the current collection cycle includes the core side.
10. A delay segment detection apparatus characterized by comprising: The system comprises a vehicle end, a service end, and a detection end. The detection end is configured to implement the delay segment detection method in any one of claims 1-9. The electronic device comprises: at least one processor; and 11. A latency segment detection system, characterized by, a memory connected with the at least one processor in communication; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the delay segment detection method in any one of claims 1-9.
12. An electronic device, comprising: the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the delay segment detection method in any one of claims 1-9. 13. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions for causing the processor to implement the time delay segment detection method in any one of claims 1-9 when executed.