Service flow time delay dyeing method, time delay detection method and dyeing and detection system
By setting the delay dyeing license parameters on the main control board card, the delay dyeing process of the service board card is controlled, and the problem of inaccurate delay measurement of service flow in 4G/5G base stations is solved, ensuring the accuracy of delay measurement.
Patent Information
- Application Number
- CN202411243862.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2024-12-27
AI Technical Summary
In 4G/5G base stations, because the board of the carrying device performs delay dyeing independently, multiple packets are delay dyeing for the same service flow within one detection cycle, and accurate delay measurement values cannot be obtained.
By setting the delay dyeing license parameters in the main control board card's service flow identifier list, we ensure that only one service board card's service flow packets are time-delayed in one measurement cycle, and the first and second delay dyeing is used. Permit parameters control the delayed dyeing process to avoid multiple dyeing.
It realizes that a business flow is only once in a detection cycle, ensuring the accuracy of delay measurement, and solving the problem of inaccurate measurement values caused by multiple staining.
Smart Images

Figure CN119212070A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of transmission and bearing technology, and in particular to a service flow delay coloring method, a delay detection method, and a coloring and detection system. Background Art
[0002] 4G / 5G usually uses flow detection technology to implement traffic and quality detection. Due to the large number of 4G / 5G base stations, 4G / 5G bearer devices generally face the problem of serious over-limit of detection instance specifications, making it impossible to detect all base stations. To this end, flow aggregation technology is used to reduce the number of detection instances, aggregate the IP addresses of multiple 5G core networks connected to the same end bearer device into one network segment, and reduce the number of flow detection instances.
[0003] During flow detection, the delay coloring action is independently completed by a single service board of the bearer device. Because different boards have service flows going to the same base station, each board performs delay coloring independently, resulting in more than one message (from different boards) being delayed colored for one service flow (same flow ID) in the same detection cycle, making it impossible to obtain accurate delay measurement values. Summary of the invention
[0004] The present application provides a service flow delay coloring method, a delay detection method and a coloring and detection system to solve the defect that accurate delay measurement values cannot be obtained in the prior art.
[0005] The present application provides a service flow delay coloring method, which is applicable to a first bearer node of a sending end, wherein the bearer node includes at least one main control board and at least one service board. The method includes: Setting the first delay coloring permission parameter in the current measurement period in the service flow identifier list corresponding to the main control board; Acquire messages of a service flow initiated by at least one of the service boards in the current measurement period, and perform delay coloring on the messages of the service flow initiated by one of the service boards in the current measurement period according to the first delay coloring permission parameter.
[0006] In one embodiment, it further includes: Setting a second delay coloring permission parameter in the current measurement period in the service flow identifier list corresponding to the service board; Correspondingly, the acquiring of the message of the service flow initiated by at least one of the service boards in the current measurement period, and performing delay coloring on the message of the service flow initiated by one of the service boards in the current measurement period according to the first delay coloring permission parameter, includes: Obtain messages of a service flow initiated by at least one of the service boards in the current measurement period, and perform delay coloring on the messages of the service flow initiated by one of the service boards in the current measurement period according to the first delay coloring permission parameter and the second delay coloring permission parameter.
[0007] As an embodiment, the obtaining of a message of a service flow initiated by at least one of the service boards in the current measurement period, and performing delay coloring on a message of a service flow initiated by one of the service boards in the current measurement period according to the first delay coloring permission parameter and the second delay coloring permission parameter, includes: Acquire the packets of the service flow in a current measurement period and the first delay coloring permission parameter corresponding to the packets of the service flow; If the first delay coloring permission parameter corresponding to the message of the service flow indicates that it is not permitted, the coloring process is terminated; If the first delay coloring permission parameter corresponding to the message of the business flow indicates permission, initiate a permission application for message delay coloring, wherein the permission application includes a flow identifier of the business flow to be colored and a cycle number of the current measurement cycle; According to the permission application, obtaining the second delay coloring permission parameter corresponding to the message of the business flow, if the second delay coloring permission parameter corresponding to the message of the business flow indicates that it is not permitted, ending the coloring process; If the second delay coloring permission parameter corresponding to the message of the service flow indicates permission, delay coloring is performed on the message of the service flow.
[0008] As an embodiment, before performing delay coloring on the message of the service flow, the method further includes: The second delay coloring permission parameter corresponding to the message of the business flow is modified to not permitted.
[0009] As an embodiment, before entering the current measurement cycle, the method further includes: Each of the first delayed dyeing permission parameters and each of the second delayed dyeing permission parameters are set to permitted.
[0010] The present application also provides a service flow delay detection method, which is applicable to a management and control device and is implemented based on the service flow delay coloring method. The service flow delay detection method includes: Acquire first delay coloring message information of a target service flow reported by a sending end, where the first delay coloring message information at least includes a first entry timestamp; Acquire second delay coloring message information of the target service flow reported by the receiving end, where the second delay coloring message information at least includes a second entry timestamp; Determine the delay of the target service flow according to the first inlet timestamp and the second inlet timestamp.
[0011] As an embodiment, determining the delay of the target service flow according to the first ingress timestamp and the second ingress timestamp includes: Determine the delay of the target service flow according to the time difference between the first inlet timestamp and the second inlet timestamp.
[0012] As an embodiment, the first delay coloring message information and the second delay coloring message information also include a service flow identifier, a measurement cycle number and a service flow direction.
[0013] The present application also provides a service flow delay coloring and detection system, including a sending end, a receiving end and a management and control device, the sending end is used to execute the service flow delay coloring method, and the management and control device is used to execute the service flow delay detection method.
[0014] As an embodiment, the sending end is further used to forward the service flow after the delay coloring is completed to the receiving end based on a preset forwarding route after the delay coloring is completed.
[0015] As an embodiment, the receiving end is further used to use the time of receiving the message with the delay coloring mark in the service flow as the second entry timestamp.
[0016] The service flow delay coloring method, delay detection method and coloring and detection system provided by the present application set the first delay coloring permission parameter in the current measurement cycle in the service flow identifier list corresponding to the main control board; obtain the message of the service flow initiated by at least one of the service boards in the current measurement cycle, and perform delay coloring on the message of the service flow initiated by one of the service boards in the current measurement cycle according to the first delay coloring permission parameter. The present application ensures that only the service flow message initiated by one service board is delayed colored in the current measurement cycle through the first delay coloring permission parameter, which solves the problem that more than one message (from different boards) of one service flow (same flow ID) in the same detection cycle will be delayed colored, thereby failing to obtain accurate delay measurement values. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0018] Figure 1This is a schematic diagram of the delay detection principle of existing flow detection.
[0019] Figure 2 This is a schematic diagram of the latency detection defects of the existing flow aggregation scenario.
[0020] Figure 3 This is one of the flow charts of the business flow delay coloring method provided in this application.
[0021] Figure 4 This is the second flow chart of the business flow delay coloring method provided in this application.
[0022] Figure 5 It is a flow chart of the service flow delay detection method provided in this application.
[0023] Figure 6 It is a structural diagram of the business flow delay coloring and detection system provided in this application.
[0024] Figure 7 This is a schematic diagram of delay detection implemented based on the business flow delay coloring and detection system provided in this application.
[0025] Figure 8 It is a structural schematic diagram of the electronic device provided by this application. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0027] It should be noted that all actions of acquiring signals, information or data in this application are carried out in compliance with the relevant data protection laws and policies of the country where they are located, and with the authorization given by the owner of the corresponding device.
[0028] The wireless backhaul of 5G base stations adopts a three-layer (L3) to edge bearer solution, so InBand OAM technology is generally used to implement traffic and quality detection. Generally, the service flow is identified and the flow ID is assigned based on the IP quintuple (source IP, sink IP, source port, destination port, protocol number) to detect the traffic and quality of each base station.
[0029] Figure 1 This is the principle diagram of the existing delay detection of flow detection, such as Figure 1 As shown, both the sending and receiving network elements are deployed with high-precision time synchronization.
[0030] The transmitter is used to perform delay coloring on a packet in a service flow of a certain flow ID detected in the current cycle in each measurement cycle, record the ingress timestamp T1 / T3 and current cycle number of the packet, and report the service flow ID, ingress timestamp, and current cycle number to the control plane.
[0031] The receiving end is used to record the egress timestamp T2 / T4 and the current measurement cycle number of the detected service flow delay colored message in the current measurement cycle according to the same measurement cycle as the sending end, and report the service flow ID, egress timestamp and the current measurement cycle number to the control plane.
[0032] Based on the information reported by the sender and receiver, the control plane calculates the one-way delay of the ID service flow in both directions in this measurement period: Delay[i] = t2-t1, Delay[i] = t4-t3.
[0033] For the scenario where the detected service flow has a bidirectional same path, the control plane calculates the bidirectional delay of the ID service flow in this measurement period based on the information reported by the sender and the receiver: Delay[i] = (t2-t1)+(t4-t3).
[0034] Through flow aggregation, the number of flow monitoring instances of bearer network elements can be greatly reduced: the IP addresses of multiple 5G core network devices connected to the same end bearer device are aggregated into a network segment, and as long as the service flow from this bearer network element to a certain base station is marked with the same flow ID. The same end bearer device is connected to the 5G core network device through multiple service boards. The 5G core network is grouped in a pool. One 5G base station may have service flows to each 5G core network user plane function (UPF), and each service board may have service flows to the same base station. At present, the delay coloring action is independently completed by a single service board of the bearer device. Because different boards have service flows to the same base station, each board performs delay coloring independently, resulting in more than one message (from different boards) being delayed colored for one service flow (same flow ID) in the same cycle.
[0035] Figure 2 This is a schematic diagram of the latency detection defects of the existing flow aggregation scenario. Figure 2As shown below, taking two boards as an example, board 1 performs delay coloring on a message with service flow ID A (going to base station A) at time t1 of a certain measurement cycle; board 2, not knowing that service board 1 has already performed delay coloring on a message with flow ID A, performs delay coloring on a message with service flow ID A (going to base station A) at time t11 of the same measurement cycle. In the same measurement cycle, the control device will receive two ingress timestamps t1 and t11 of the service flow with flow ID A reported by the ingress node, and two egress timestamps t2 and t22 of the service flow with flow ID A reported by the egress node. There are four combinations of delay calculation: Delay[i] = t2-t1, Delay[i] = t22-t1, Delay[i] = t2-t11, Delay[i] = t22-t11, and thus it is impossible to obtain accurate delay measurement values.
[0036] According to the calculation logic of the delay measurement of the current flow detection system, within a measurement period (for example, 30 seconds), on the sending side, one service flow (identified by a flow ID) can only select one message for delay coloring, so as to ensure that the receiving side only receives one delay-colored message within the measurement period.
[0037] In the scenario where flow aggregation is enabled, because the delay coloring is done independently by the service boards of the bearer device, each board on the sending side will perform delay coloring on the same service flow (same service flow ID) in the same measurement cycle, causing the receiving side to receive multiple delay coloring messages for the same service flow ID in the same measurement cycle (if there are N boards on the sending side, a maximum of N delay coloring messages may be received). The control device receives multiple sending times and multiple receiving times of the service flow with the same flow ID in one measurement cycle, and thus cannot accurately obtain the delay value.
[0038] To solve the above-mentioned defects, the present application proposes a business flow delay coloring method, a delay detection method, and a coloring and detection system.
[0039] Figure 3 This is one of the flow charts of the service flow delay coloring method provided by this application, such as Figure 3 As shown, the present application provides a service flow delay coloring method, which is applicable to the first bearer node of the sending end, and the bearer node includes at least one main control board and at least one service board. The method includes steps S110-S120.
[0040] Step S110, set the first delay coloring permission parameter in the current measurement cycle in the service flow identifier list corresponding to the main control board. Specifically, the service flow identifier can be referred to as the flow ID, and a delay coloring permission parameter is added to the flow ID list detected with the flow to control whether delay coloring is allowed to be initiated for the service flow of the flow ID (1 means permission, 0 means no permission).
[0041] Step S120, obtaining messages of a service flow initiated by at least one of the service boards in the current measurement period, and performing delay coloring on the messages of the service flow initiated by one of the service boards in the current measurement period according to the first delay coloring permission parameter.
[0042] In one embodiment, the service flow delay coloring method provided by the present application further comprises in step S110 setting a second delay coloring permission parameter in the current measurement period in the service flow identifier list corresponding to the service board.
[0043] Correspondingly, step S120 includes obtaining messages of the service flow initiated by at least one of the service boards in the current measurement period, and performing delay coloring on the messages of the service flow initiated by one of the service boards in the current measurement period according to the first delay coloring permission parameter and the second delay coloring permission parameter.
[0044] The number of service flow messages corresponds to the number of service boards at the sending end. Only when the delay coloring permission parameters of the service flow of the ID on the main control board and the service board are both permitted, can the messages of the service flow of the flow ID be allowed to be delayed colored.
[0045] In one embodiment, if there are N boards on the sending side, a maximum of N messages may be received. The service flow identifier list corresponding to the main control board can set a delay coloring permission parameter (1 means permission, 0 means no permission) for each service flow message to specify the target message that allows delay coloring, that is, the second delay coloring permission parameter can include N bits. In another embodiment, the second delay coloring permission parameter can include 1 bit, and after completing a specified number of delay colors, the second delay coloring permission parameter can be set to 0, and subsequent messages are not allowed to be delayed colored, thereby controlling the number of delay colored messages.
[0046] It can be understood that the present application ensures that only the service flow messages initiated by a service board are delayed colored in the current measurement cycle through the first delay coloring permission parameter, thereby solving the problem that more than one message (from different boards) of a service flow (same flow ID) will be delayed colored in the same detection cycle, making it impossible to obtain accurate delay measurement values.
[0047] Figure 4This is the second flow chart of the service flow delay coloring method provided by this application, such as Figure 4 As shown, as an embodiment, the obtaining of the message of the service flow initiated by at least one of the service boards in the current measurement period, and performing delay coloring on the message of the service flow initiated by one of the service boards in the current measurement period according to the first delay coloring permission parameter and the second delay coloring permission parameter, include: Step S121, obtain the message of the business flow in the current measurement period and the first delay coloring permission parameter corresponding to the message of the business flow; in the current measurement period, after a certain message of a business flow is received by a certain business board, delay coloring is planned, and the delay coloring permission flag of the flow ID in the business board is first queried.
[0048] Optionally, before entering the current measurement cycle, the method further includes: setting each of the first delay coloring permission parameters and each of the second delay coloring permission parameters to permission. On the first bearer network node receiving the service flow, after entering a new measurement cycle (common measurement cycles include 30 seconds, 1 minute, etc.), the delay coloring permission parameters of all service flow IDs on the main control board and the service board are initialized to permission.
[0049] Step S122: If the first delay coloring permission parameter corresponding to the message of the service flow indicates that it is not permitted, the coloring process ends; the service board queries the delay coloring permission flag of the flow ID in the service board. If the flag is 0, it means that the service board does not permit the delay coloring of the message of the flow ID in the current measurement cycle, and the coloring process ends. If the flag is 1, it means that the service board permits the delay coloring of the message of the flow ID in the current measurement cycle, and the next step is executed.
[0050] Step S123: If the first delay coloring permission parameter corresponding to the message of the business flow represents permission, initiate a permission application for message delay coloring, and the permission application includes the flow identifier of the business flow to be colored and the cycle number of the current measurement cycle; the business board card initiates a permission application for message delay coloring to the network element main control board on the premise that the message of the flow ID is permitted to be delayed colored within the current measurement cycle, and the application message needs to carry information such as the flow ID and measurement cycle number of the business flow.
[0051] Step S124, according to the permission application, obtain the second delay coloring permission parameter corresponding to the message of the business flow, if the second delay coloring permission parameter corresponding to the message of the business flow indicates that it is not permitted, end the coloring process; after the main control board receives the message delay coloring application from the business board, according to the flow ID carried in the application message, query the value of the delay coloring permission bit of the flow ID in the measurement cycle on the main control board (1-permitted, 0-not permitted), if the delay coloring permission bit value of the flow ID in the measurement cycle on the main control board is 0, it means that the business flow of the flow ID has had a message for delay coloring in the current measurement cycle. Because only one message is allowed to be delayed colored in one measurement cycle, the board that initiated the application is notified that the business flow of the ID rejects the delay coloring application in the current measurement cycle; if the delay coloring permission bit value of the flow ID in the measurement cycle on the main control board is 1, proceed to the next step.
[0052] Step S125: If the second delay coloring permission parameter corresponding to the message of the service flow indicates permission, delay coloring is performed on the message of the service flow. The delay coloring permission bit value of the flow ID of the main control board in the current measurement cycle is 1, indicating that no message of the service flow of the flow ID has been delayed colored in the current measurement cycle, so the delay coloring application is approved.
[0053] Optionally, before performing delay coloring on the message of the service flow, the method further includes: modifying the second delay coloring permission parameter corresponding to the message of the service flow to not permitted. The main control board changes the delay coloring permission bit value of the service flow of the ID in the current measurement cycle to 0, which can prevent other service boards from performing delay coloring on the service flow message of the ID in the current measurement cycle, thereby ensuring that in one measurement cycle, only one message of the service flow of one ID can obtain delay coloring.
[0054] Optionally, the main control board replies to the service board that initiated the coloring application, allowing delay coloring to be performed on the message of the ID service flow within the current measurement cycle.
[0055] Optionally, after receiving the delay coloring permission for the message from the main control card, the service card sets the delay coloring mark D Flag (Delay Flag) bit in the flow instruction header (FIH) detected by the flow to 1, completes the delay coloring of the message, and executes the next action. After completing the delay coloring of the service message of the flow ID, the delay coloring permission position of the flow ID in the current measurement cycle on the service card is set to 0. This means that the delay coloring application for the message of the flow ID is prohibited in this cycle.
[0056] It is understandable that in the flow aggregation scenario, before each service board performs delay coloring on a message of a service flow ID within a measurement cycle, it needs to apply for delay coloring permission from the main control board. The delay coloring permission of the main control board for a message of a certain service flow ID within a measurement cycle is only allocated to the first service board that initiates the application. Subsequent delay coloring applications within the measurement cycle will be rejected. In this way, the effect of only one message of a service flow (with the same flow ID) being delayed colored within a measurement cycle is achieved.
[0057] The service flow delay detection method provided in the present application is described below. The service flow delay detection method described below and the service flow delay coloring method described above can be referenced to each other.
[0058] Figure 5 It is a flow chart of the service flow delay detection method provided by this application, such as Figure 5 As shown, the present application also provides a service flow delay detection method, which is applicable to management and control equipment and is implemented based on the service flow delay coloring method. The service flow delay detection method includes steps S210 to S230.
[0059] Step S210, obtaining first delay coloring message information of the target service flow reported by the sender, wherein the first delay coloring message information at least includes a first entry timestamp; optionally, the first delay coloring message information also includes a service flow identifier, a measurement cycle number and a service flow direction.
[0060] After receiving the ingress timestamp t1 of a delay-colored message of a certain flow ID reported by the head node of the flow detection, the control device records the flow ID, cycle number, ingress timestamp, direction and other related information.
[0061] Step S220, obtaining second delay coloring message information of the target service flow reported by the receiving end, wherein the second delay coloring message information at least includes a second entry timestamp; optionally, the second delay coloring message information also includes a service flow identifier, a measurement cycle number and a service flow direction.
[0062] After receiving the egress timestamp t2 of a delay-colored message of a certain flow ID reported by the egress node (i.e., the receiving end) of the flow detection, the control device records the flow ID, cycle number, ingress timestamp, direction, and other related information.
[0063] Step S230: Determine the delay of the target service flow according to the first inlet timestamp and the second inlet timestamp.
[0064] Optionally, determining the delay of the target service flow based on the first inlet timestamp and the second inlet timestamp includes: determining the delay of the target service flow based on a time difference between the first inlet timestamp and the second inlet timestamp.
[0065] Specifically, the control device calculates the delay performance of the service flow of the flow ID in the measurement period (assuming it is the i-th period) as: Delay[i]=t2-t1.
[0066] It can be understood that the present application limits the service flows for delay coloring to avoid delay coloring of multiple service flow messages at the same time, thereby obtaining accurate delay measurement values.
[0067] The business flow delay coloring and detection system provided in the present application is described below. The business flow delay coloring and detection system described below and the business flow delay coloring method and business flow delay detection method described above can be referenced to each other.
[0068] Figure 6 is a timing diagram of the service flow delay coloring and detection system provided by this application, such as Figure 6 As shown, the present application also provides a business flow delay coloring and detection system, including a sending end, a receiving end and a management and control device, the sending end is used to execute the business flow delay coloring method, and the management and control device is used to execute the business flow delay detection method.
[0069] Optionally, the sending end is further used to forward the service flow after the delay coloring is completed to the receiving end based on a preset forwarding route after the delay coloring is completed.
[0070] Optionally, the receiving end is further used to use the time of receiving the message with the delay coloring mark in the service flow as the second entry timestamp.
[0071] Figure 7 This is a schematic diagram of delay detection based on business flow delay coloring and detection system provided by this application, such as Figure 7 As shown in the figure, the first node at the sending end (i.e., the first network element where the service flow accesses the bearer network) performs delay coloring on one service message of a certain flow ID within a measurement cycle, and reports the timestamp t1, flow ID, measurement cycle number, direction and other information of the received message to the control device, ensuring that only one service message of a service flow with a certain ID is delayed colored within a measurement cycle in the flow aggregation scenario.
[0072] After the sender completes the delay coloring at the first node, it forwards the service message according to the normal forwarding route.
[0073] After receiving the ingress timestamp t1 of a delay-colored message of a certain flow ID reported by the head node of the flow detection, the control device records the flow ID, cycle number, ingress timestamp, direction and other related information.
[0074] At the egress node of the receiving end, the arrival timestamp t2 of the message with the delay coloring mark D Flag (DelayFlag) bit set to 1 in the flow instruction header (FIH) is recorded. And the flow ID, measurement cycle number, receiving timestamp t2 and direction and other information are reported to the control device.
[0075] After receiving the egress timestamp t2 of a delay-colored message of a certain flow ID reported by the egress node (i.e., the receiving end) of the flow detection, the control device records the flow ID, cycle number, ingress timestamp, direction, and other related information.
[0076] The control device calculates the delay performance of the service flow of the flow ID in the measurement period (assuming it is the i-th period) as: Delay[i]=t2-t1.
[0077] In summary, the existing flow detection system solutions mainly stay in the scenario of no flow aggregation or simple flow aggregation. Simple flow aggregation cannot achieve cross-board aggregation based on network elements. In the cross-board flow aggregation scenario, the current delay detection solution is that the system directly fixes a certain service board to initiate delay detection. Other service boards are not responsible for delay detection, but only for packet loss detection. This solution will cause many service flows to fail to detect delay performance. Because the probability of base station service flow to the UPF under each service board is the same, but not every base station has service flow to every UPF in every measurement cycle. In a certain measurement cycle, a base station has service flow to the UPF under boards 3 and 4, but no service flow to the UPF under board 1. If service board 1 is designated to initiate delay detection, then because there is no service flow to the base station on service board 1, it will be impossible to obtain delay performance data by delay coloring the service flow message, and there is a high probability of missed detection.
[0078] The solution proposed in this application avoids the above problems very well. In a measurement cycle, any service board that receives a service flow message directly initiates a delay coloring permission application to the main control board. The first one to initiate the delay coloring application is granted permission, and subsequent delay coloring permission applications in the measurement cycle are rejected. This allows the service flow to initiate delay measurement regardless of which service board receives the message from, without the problem of missed measurements. At the same time, the main control board only sends permission to the first service board that initiates the delay coloring application for a flow ID in a measurement cycle, which can ensure that only one message of a service flow (with the same flow ID) is delayed colored in a measurement cycle.
[0079] The control parameters of the service board and main control board introduced in this application for delay coloring permission for each service flow (identified by flow ID) within a measurement cycle are only retained on the board, without modifying any bytes in the original overhead header of the flow detection, and without adding new extension bytes to the overhead header. Therefore, it is completely imperceptible at the level of the flow detection protocol message, and has zero impact on the interoperability and carrying efficiency of the flow detection.
[0080] Figure 8 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 8 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the service flow delay coloring method, the method comprising: setting the first delay coloring permission parameter in the current measurement cycle in the service flow identifier list corresponding to the main control board; obtaining the message of the service flow initiated by at least one of the service boards in the current measurement cycle, and performing delay coloring on the message of the service flow initiated by one of the service boards in the current measurement cycle according to the first delay coloring permission parameter.
[0081] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0082] On the other hand, the present application also provides a computer program product, which includes a computer program, and 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 service flow delay coloring method provided by the above methods, and the method includes: setting a first delay coloring permission parameter within the current measurement cycle in the service flow identifier list corresponding to the main control board; obtaining a message of a service flow initiated by at least one of the service boards within the current measurement cycle, and performing delay coloring on the message of the service flow initiated by one of the service boards within the current measurement cycle according to the first delay coloring permission parameter.
[0083] On the other hand, the present application also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the service flow delay coloring method provided by the above-mentioned methods. The method includes: setting a first delay coloring permission parameter within the current measurement cycle in the service flow identifier list corresponding to the main control board; obtaining a message of a service flow initiated by at least one of the service boards within the current measurement cycle, and performing delay coloring on the message of the service flow initiated by one of the service boards within the current measurement cycle according to the first delay coloring permission parameter.
[0084] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0085] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0086] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for coloring service flow delay, characterized in that: The first bearer node applicable to the transmitting end includes at least one main control board and at least one service board. The method includes: Setting the first delay coloring permission parameter in the current measurement period in the service flow identifier list corresponding to the main control board; Acquire messages of a service flow initiated by at least one of the service boards in the current measurement period, and perform delay coloring on the messages of the service flow initiated by one of the service boards in the current measurement period according to the first delay coloring permission parameter.
2. The service flow delay coloring method according to claim 1, characterized in that: Also includes: Setting a second delay coloring permission parameter in the current measurement period in the service flow identifier list corresponding to the service board; Correspondingly, the acquiring of the message of the service flow initiated by at least one of the service boards in the current measurement period, and performing delay coloring on the message of the service flow initiated by one of the service boards in the current measurement period according to the first delay coloring permission parameter, includes: Obtain messages of a service flow initiated by at least one of the service boards in the current measurement period, and perform delay coloring on the messages of the service flow initiated by one of the service boards in the current measurement period according to the first delay coloring permission parameter and the second delay coloring permission parameter.
3. The method for delay coloring of a service flow according to claim 2, characterized in that: The obtaining of a message of a service flow initiated by at least one of the service boards in the current measurement period, and performing delay coloring on the message of the service flow initiated by one of the service boards in the current measurement period according to the first delay coloring permission parameter and the second delay coloring permission parameter, comprises: Acquire the packets of the service flow in a current measurement period and the first delay coloring permission parameter corresponding to the packets of the service flow; If the first delay coloring permission parameter corresponding to the message of the service flow indicates that it is not permitted, the coloring process is terminated; If the first delay coloring permission parameter corresponding to the message of the business flow indicates permission, initiate a permission application for message delay coloring, wherein the permission application includes a flow identifier of the business flow to be colored and a cycle number of the current measurement cycle; According to the permission application, obtaining the second delay coloring permission parameter corresponding to the message of the business flow, and if the second delay coloring permission parameter corresponding to the message of the business flow indicates that it is not permitted, ending the coloring process; If the second delay coloring permission parameter corresponding to the message of the service flow indicates permission, delay coloring is performed on the message of the service flow.
4. The method for delay coloring of a service flow according to claim 3, characterized in that: Before performing delay coloring on the message of the service flow, the method further includes: The second delay coloring permission parameter corresponding to the message of the business flow is modified to not permitted.
5. The method for coloring service flow delay according to claim 3, characterized in that: Before entering the current measurement cycle, it also includes: Each of the first delayed dyeing permission parameters and each of the second delayed dyeing permission parameters are set to permitted.
6. A method for detecting service flow delay, characterized in that: Applicable to a control device, and implemented based on the service flow delay coloring method according to any one of claims 1 to 5, the service flow delay detection method includes: Acquire first delay coloring message information of a target service flow reported by a sending end, where the first delay coloring message information at least includes a first entry timestamp; Acquire second delay coloring message information of the target service flow reported by the receiving end, where the second delay coloring message information at least includes a second entry timestamp; Determine the delay of the target service flow according to the first inlet timestamp and the second inlet timestamp.
7. The service flow delay detection method according to claim 6, characterized in that: The determining the delay of the target service flow according to the first ingress timestamp and the second ingress timestamp includes: Determine the delay of the target service flow according to the time difference between the first inlet timestamp and the second inlet timestamp.
8. The service flow delay detection method according to claim 6 or 7, characterized in that: The first delay coloring message information and the second delay coloring message information also include a service flow identifier, a measurement cycle number and a service flow direction.
9. A service flow delay coloring and detection system, characterized in that: It includes a sending end, a receiving end and a management and control device, the sending end is used to execute the business flow delay coloring method described in any one of claims 1-5, and the management and control device is used to execute the business flow delay detection method described in any one of claims 6-8.
10. The service flow delay coloring and detection system according to claim 9, characterized in that: The sending end is also used to forward the service flow after the delay coloring is completed to the receiving end based on a preset forwarding route after the delay coloring is completed.
11. The service flow delay coloring and detection system according to claim 9 or 10, characterized in that: The receiving end is further configured to use the time at which the message with the delay coloring mark in the service flow is received as the second entry timestamp.
