Hierarchical measurement method and apparatus, electronic device, and computer-readable storage medium
By carrying only the in-band OAM overhead that is adapted to the current forwarding domain and protocol layer in the in-band OAM measurement technology, and monitoring the multi-layer forwarding process using a layered measurement indicator, the low in-band OAM measurement efficiency in the prior art is solved. and high processing depth, achieving more efficient customer service transmission and lower chip processing depth.
Patent Information
- Application Number
- PCT/CN2024/088398
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-30
- Filing Date
- 2024-04-17
- Publication Date
- 2024-12-05
AI Technical Summary
The existing in-band OAM measurement technology needs to encapsulate the in-band OAM overhead of the multi-layer protocol layer separately in the isomorphic single forwarding domain or the heterogeneous multi-forming domain, resulting in a reduced customer service transmission efficiency and an increase in chip processing depth.
A hierarchical measurement method is proposed. The target service flow only carries in-band OAM overhead that is adapted to the current forwarding domain and protocol layer, and monitors the multi-layer forwarding process through the hierarchical measurement indicator, supporting the multi-layer in-band OAM overhead Convert to a single-layer in-band OAM, and optimized in-band OAM measurement technology.
It improves the transmission efficiency of customer services, reduces the requirements for chip processing depth, and realizes effective monitoring of multi-layer forwarding processing processes.
Smart Images

Figure CN2024088398_05122024_PF_FP_ABST
Abstract
Description
Layer measurement method, device, electronic device and computer-readable storage medium
[0001] Related applications
[0002] This application claims priority to Chinese patent application No. 202310628793.0 filed on May 30, 2023, the entire contents of which are incorporated by reference into this application. Technical Field
[0003] The embodiments of the present application relate to the field of communication technologies, and in particular to a layered measurement method, device, electronic device, and computer-readable storage medium. Background Art
[0004] In scenarios where multi-protocol layer forwarding processing is required across homogeneous single forwarding domains or heterogeneous multiple forwarding domains, existing in-band OAM measurement technologies require encapsulating in-band OAM overhead at each protocol layer to monitor the forwarding processing at each protocol layer. This approach not only reduces customer service transmission efficiency but also increases the processing depth requirements of the chip.
[0005] Summary of the Invention
[0006] The main purpose of the embodiments of the present application is to provide a layered measurement method, device, electronic device and computer-readable storage medium, aiming to optimize the existing in-band OAM measurement technology, improve the transmission efficiency of customer services, and reduce the requirements for chip processing depth.
[0007] To achieve the above objectives, an embodiment of the present application provides a hierarchical measurement method, which includes:
[0008] Get the current position of the target business flow;
[0009] When a target service flow enters a first protocol layer of a first forwarding domain, encapsulating a first in-band OAM overhead of the first forwarding domain for the target service flow, and setting a layered measurement indicator of the first in-band OAM overhead to a value for monitoring a forwarding process of the first protocol layer;
[0010] When the target service flow leaves the first protocol layer and enters the second protocol layer of the first forwarding domain, setting the layered measurement indicator of the first in-band OAM overhead to a value for monitoring the forwarding process of the second protocol layer;
[0011] When the target service flow leaves the first forwarding domain and enters the third protocol layer of the second forwarding domain, the first in-band OAM overhead is deleted, the second in-band OAM overhead of the second forwarding domain is encapsulated for the target service flow, and the layered measurement indicator of the second in-band OAM overhead is set to a value for monitoring the forwarding processing process of the third protocol layer.
[0012] In addition, to achieve the above-mentioned purpose, an embodiment of the present application further provides a layered measurement device, the layered measurement device comprising:
[0013] An acquisition module, configured to acquire a current position of a target service flow;
[0014] an execution module, wherein the execution module is configured to, when a target service flow enters a first protocol layer of a first forwarding domain, encapsulate a first in-band OAM overhead of the first forwarding domain for the target service flow, and set a layered measurement indicator of the first in-band OAM overhead to a value for monitoring a forwarding process of the first protocol layer;
[0015] The execution module is further configured to set the layered measurement indicator of the first in-band OAM overhead to a value for monitoring the forwarding process of the second protocol layer when the target service flow leaves the first protocol layer and enters the second protocol layer of the first forwarding domain;
[0016] The execution module is also configured to delete the first in-band OAM overhead when the target service flow leaves the first forwarding domain and enters the third protocol layer of the second forwarding domain, encapsulate the second in-band OAM overhead of the second forwarding domain for the target service flow, and set the layered measurement indicator of the second in-band OAM overhead to a value for monitoring the forwarding processing process of the third protocol layer.
[0017] In addition, to achieve the above-mentioned purpose, an embodiment of the present application also provides an electronic device, which includes: a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, it implements the hierarchical measurement method described above.
[0018] In addition, to achieve the above-mentioned purpose, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the layered measurement method described above is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only part of the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0020] FIG1 is a schematic diagram of a process of a layered measurement method provided in one embodiment of the present application;
[0021] FIG2 is a schematic diagram of an application scenario of a layered measurement method provided in an embodiment of the present application;
[0022] FIG3 is a schematic diagram of another application scenario of a layered measurement method provided in an embodiment of the present application;
[0023] FIG4 is a schematic structural diagram of a layered measurement device provided in one embodiment of the present application;
[0024] FIG5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] In the following description, specific details such as specific system structures and technologies are provided for illustration rather than limitation to facilitate a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the embodiments of the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the embodiments of the present application.
[0026] It should be noted that although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be performed in a different order than that shown in the flowcharts. The terms "first," "second," and the like in the specification, claims, and drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0027] It should also be understood that references to "one embodiment" or "some embodiments" described in the description of the embodiments of the present application mean that one or more embodiments of the embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Thus, the phrases "in one embodiment," "in some embodiments," "in some other embodiments," "in some other embodiments," etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and their variations all mean "including but not limited to," unless otherwise specifically emphasized.
[0028] In-band OAM (Operation Administration and Maintenance) measurement technology inserts specific measurement instructions at fixed locations within actual service flow packets to accurately measure the transmission and reception of service flow packets and their timestamps. This allows the service quality analysis system to accurately calculate packet loss and latency for the service flow. It is a foundational technology for intelligent network operation and maintenance.
[0029] In scenarios where multi-protocol layer forwarding processing is required within a homogeneous single forwarding domain (a single network element collection with the same protocol layer for service forwarding processing) or a heterogeneous multi-forwarding domain (composed of two or more homogeneous single forwarding domains that are nested or parallel), existing in-band OAM measurement technologies require encapsulating in-band OAM overhead at each protocol layer to monitor the forwarding processing at each protocol layer. This approach not only reduces customer service transmission efficiency but also increases the processing depth requirements of the chip.
[0030] Embodiments of the present application provide a layered measurement method, apparatus, device, and computer-readable storage medium. In the layered measurement method provided by the embodiments of the present application, a target service flow only carries one type of in-band OAM overhead adapted to the current forwarding domain and current protocol layer at a given time, and does not overlay multiple types of in-band OAM overhead as it enters different forwarding domains. This method supports converting multiple layers of in-band OAM overhead into a single layer of in-band OAM, and this single layer of in-band OAM supports monitoring of multi-layer forwarding processing. This optimizes existing in-band OAM measurement technology, improves the transmission efficiency of customer services, and reduces chip processing depth requirements.
[0031] The layered measurement method, apparatus, device, and computer-readable storage medium provided in the embodiments of the present application are specifically described through the following embodiments. First, the layered measurement method in the embodiments of the present application is described.
[0032] 1 , which is a flow chart of a hierarchical measurement method provided in one embodiment of the present application, the hierarchical measurement method may be applied to electronic devices. As shown in FIG1 , the hierarchical measurement method provided in this embodiment includes steps S10 to S40.
[0033] Step S10, obtaining the current position of the target service flow;
[0034] This embodiment is applied to the scenario where the target service flow undergoes multi-protocol layer forwarding processing through heterogeneous multi-forwarding domains. Therefore, it is necessary to obtain the current position of the target service flow in the forwarding domain in real time, and then determine how to implement in-band OAM measurement based on the real-time position of the target service flow in the forwarding domain.
[0035] Step S20: When the target service flow enters the first protocol layer of the first forwarding domain, encapsulate the target service flow with the first in-band OAM overhead of the first forwarding domain, and set the layered measurement indicator of the first in-band OAM overhead to a value for monitoring the forwarding process of the first protocol layer;
[0036] Step S30: When the target service flow leaves the first protocol layer and enters the second protocol layer of the first forwarding domain, set the layered measurement indicator of the first in-band OAM overhead to a value for monitoring the forwarding process of the second protocol layer;
[0037] Step S40, when the target service flow leaves the first forwarding domain and enters the third protocol layer of the second forwarding domain, delete the first in-band OAM overhead, encapsulate the second in-band OAM overhead of the second forwarding domain for the target service flow, and set the layered measurement indicator of the second in-band OAM overhead to a value for monitoring the forwarding processing process of the third protocol layer.
[0038] The above steps S20 to S40 are corresponding processing methods made according to different real-time locations of the target service flow, wherein the first in-band OAM overhead is the message data used to measure the service quality of the first forwarding domain, and the second in-band OAM overhead is the message data used to measure the service quality of the second forwarding domain. The first forwarding domain and the second forwarding domain are both homogeneous single forwarding domains. The first forwarding domain and the second forwarding domain can form a heterogeneous multi-forwarding domain. The first forwarding domain includes two protocol layers, namely the first protocol layer and the second protocol layer, and the second forwarding domain includes one protocol layer, namely the third protocol layer. In this embodiment, "first", "second" and "third" are only used to indicate that the first forwarding domain and the second forwarding domain are two different forwarding domains, and the first protocol layer, the second protocol layer and the third protocol layer are all different protocol layers; it can be seen from the above steps that when the target service flow is in different forwarding domains, its in-band OAM overhead will change accordingly, but no matter which forwarding domain it is in, its in-band OAM overhead has only one and only one type, and will not encapsulate multiple in-band OAM overheads at the same time, that is, the target service flow will only carry the first in-band OAM overhead or the second OAM in-band overhead at the same time, and will not carry the first in-band OAM overhead and the second OAM in-band overhead at the same time; at the same time, when the target service flow moves between different protocol layers in the same forwarding domain, it only needs to change the layered measurement indicator of the current in-band OAM overhead and set it to the value of monitoring the forwarding processing process of the current protocol layer, so that the current in-band OAM overhead can support OAM measurement of the service quality of the protocol layer where the target service flow is currently located.
[0039] In some feasible embodiments, before the step of encapsulating the target service flow with the first in-band OAM overhead of the first forwarding domain in step S20, the hierarchical measurement method further includes:
[0040] Encapsulate and transmit overhead for the target service flow.
[0041] In order for the target service flow to be normally transmitted between the protocol layers of each forwarding domain, it needs to be encapsulated with transmission overhead first.
[0042] In some feasible embodiments, the above-mentioned layered measurement method further includes:
[0043] When the target service flow leaves the second forwarding domain and no longer enters other forwarding domains, the encapsulation transmission overhead and the second in-band OAM overhead are deleted.
[0044] After the target service flow leaves the forwarding domains that require service quality monitoring, it no longer needs to carry transport overhead and in-band OAM overhead, so these overheads can be stripped from the target service flow.
[0045] This embodiment provides a hierarchical measurement method. In this embodiment, a target service flow only carries one type of in-band OAM overhead compatible with the current forwarding domain and protocol layer at a time. Multiple types of in-band OAM overhead are not added as the flow enters different forwarding domains. This method supports converting multiple layers of in-band OAM overhead into a single layer of in-band OAM. This single layer of in-band OAM supports monitoring of multi-layer forwarding processing. This optimizes existing in-band OAM measurement technology, improves customer service transmission efficiency, and reduces chip processing depth requirements.
[0046] In some feasible embodiments, the above-mentioned layered measurement method may further include:
[0047] Step A: selecting a specified number of bits from reserved bits of the first in-band OAM overhead for generating a defined value set of a layered measurement indicator, wherein each value in the defined value set is used to monitor service quality of forwarding processing at different protocol layers; and / or
[0048] Step B: Select a specified number of bits from the reserved bits of the second in-band OAM overhead to generate a defined value set of a layered measurement indicator, where each value in the defined value set is used to monitor the service quality of the forwarding processing process at different protocol layers.
[0049] The operation of setting the hierarchical measurement indicator of the in-band OAM overhead to a specified value in steps S20 to S40 requires the technical support provided by this embodiment. This embodiment proposes a technical means for selecting a specified number of bits from the reserved bits of the in-band OAM overhead to generate a defined value set for the hierarchical measurement indicator. The defined value set includes multiple values with different meanings, each corresponding to a protocol layer. In this way, it is possible to determine which protocol layer in which forwarding domain the in-band OAM overhead is monitoring service quality by simply reading the value of the hierarchical measurement indicator.
[0050] In this embodiment, the specified number may be n, and the number of values in the defined value set may be a power of two, that is, in the bits reserved for the single-layer in-band OAM overhead, n bits are selected to define 2^n values for use as protocol layer measurement indicators, and different values are defined to indicate service quality monitoring of forwarding processing processes at different protocol layers.
[0051] As an example, assuming that there are two forwarding domains, heterogeneous forwarding domain A and heterogeneous forwarding domain B, and each forwarding domain has two protocol layers, Level 1 and Level 2, respectively, then this embodiment can select 2 bits with a total of 4 values, with 00 representing the quality of monitoring the Level 1 forwarding processing layer of the heterogeneous forwarding domain B, 01 representing the quality of monitoring the Level 2 forwarding processing layer of the heterogeneous forwarding domain B, 10 representing the quality of monitoring the Level 1 forwarding processing layer of the heterogeneous forwarding domain A, and 11 representing the quality of monitoring the Level 2 forwarding processing layer of the heterogeneous forwarding domain A.
[0052] In some feasible embodiments, the above-mentioned layered measurement method may further include:
[0053] Step J, keeping the first in-band OAM overhead at the outermost layer of the service encapsulation message of the target service flow; and / or,
[0054] Step K: Keep the second in-band OAM overhead at the outermost layer of the service encapsulation message of the target service flow.
[0055] In this embodiment, to ensure consistent chip processing depth when the target service flow moves to different protocol layers, after encapsulating the in-band OAM overhead, the single-layer in-band OAM overhead must always be retained at the outermost layer of the service packet encapsulation for the target service flow, regardless of the number of protocol layers added to the forwarding process. Therefore, after encapsulating the first in-band OAM overhead and the second in-band OAM overhead, a detection step can be added to confirm whether the in-band OAM overhead remains at the outermost layer of the service packet encapsulation. Based on the detection result, it is determined whether step J or step K of this embodiment needs to be executed.
[0056] In some feasible embodiments, the above-mentioned layered measurement method may further include:
[0057] Step X: marking first performance data generated by monitoring the forwarding process of the first protocol layer, and outputting the first performance data to a service quality analyzer to obtain a first service quality condition of the first protocol layer; and / or,
[0058] Step Y: marking the second performance data generated by monitoring the forwarding process of the second protocol layer, and outputting the second performance data to a service quality analyzer to obtain a second service quality condition of the second protocol layer; and / or,
[0059] Step Z: Mark the third performance data generated by monitoring the forwarding process of the third protocol layer, and output the third performance data to the service quality analyzer to obtain the third service quality status of the third protocol layer.
[0060] In this embodiment, after the target service flow reaches any protocol layer, the forwarding processing process of the protocol layer will be monitored based on the in-band OAM overhead, and the generated performance data will be output to the service quality analyzer for analysis. It can be seen from the above embodiment that the layered measurement indicators of the in-band OAM overhead of different protocol layers are different. Therefore, the performance data of different layers can be marked to distinguish them, so that after receiving these performance data, the service instruction analyzer can send them to the calculation module that monitors the forwarding processing process of the corresponding protocol layer according to the label classification, and then calculate the service quality of the corresponding protocol layer.
[0061] As an example, based on the hierarchical measurement methods provided in the above embodiments, this embodiment proposes an application scenario as shown in FIG2 , and the specific steps are as follows:
[0062] The target service flow enters the Level 1 protocol layer forwarding process of heterogeneous forwarding domain B, completes the encapsulation of the single-layer in-band OAM overhead, and sets the layered measurement indicator of the in-band OAM overhead to the value used to monitor the Level 1 protocol layer forwarding process of heterogeneous forwarding domain B.
[0063] When the target service flow enters the Level 1 protocol layer forwarding process of heterogeneous forwarding domain A, the layered measurement indicator of the in-band OAM overhead is set to the value of monitoring the Level 1 protocol layer forwarding process of heterogeneous forwarding domain A. The in-band OAM overhead is kept in the outermost layer of the service packet encapsulation.
[0064] When the target service flow enters the Level 2 protocol layer forwarding process of heterogeneous forwarding domain A, the layered measurement indicator of the in-band OAM overhead is set to the value of monitoring the Level 2 protocol layer forwarding process of heterogeneous forwarding domain A. The in-band OAM overhead is kept in the outermost layer of the service packet encapsulation.
[0065] The target service flow leaves the Level 2 protocol layer forwarding process of heterogeneous forwarding domain A and enters the Level 1 protocol layer forwarding process of heterogeneous forwarding domain A. The layered measurement indicator of the in-band OAM overhead is set to the value of monitoring the Level 1 protocol layer forwarding process of heterogeneous forwarding domain A. The in-band OAM overhead is kept in the outermost layer of the service packet encapsulation.
[0066] When the target service flow leaves heterogeneous forwarding domain A and enters the Level 1 protocol layer forwarding process of heterogeneous forwarding domain B, the layered measurement indicator of the in-band OAM overhead is set to the value for monitoring the Level 1 protocol layer forwarding process of heterogeneous forwarding domain B. The in-band OAM overhead is kept in the outermost layer of the service packet encapsulation.
[0067] When the target service flow enters the Level 2 protocol layer forwarding process of heterogeneous forwarding domain B, the layered measurement indicator of the in-band OAM overhead is set to the value for monitoring the Level 2 protocol layer forwarding process of heterogeneous forwarding domain B. The in-band OAM overhead is kept in the outermost layer of the service packet encapsulation.
[0068] The target service flow leaves the Level 2 protocol layer forwarding process of heterogeneous forwarding domain B and enters the Level 1 protocol layer forwarding process of heterogeneous forwarding domain B. The layered measurement indicator of the in-band OAM overhead is set to the value of monitoring the Level 1 protocol layer forwarding process of heterogeneous forwarding domain B. The in-band OAM overhead is kept in the outermost layer of the service packet encapsulation.
[0069] The target service flow leaves heterogeneous forwarding domain B, removes the in-band OAM overhead encapsulation, and restores the original target service flow.
[0070] In the above steps, the performance data generated by monitoring the forwarding processing of each protocol layer is marked with the corresponding layer and reported to the service quality analyzer. After the service quality analyzer collects the performance data, it is sent to the calculation module that monitors the forwarding processing of the corresponding protocol layer according to the label classification to calculate the service quality of the corresponding layer.
[0071] As an example, based on the hierarchical measurement methods provided in the above embodiments, this embodiment proposes another application scenario, as shown in Figure 3. In the mobile backhaul network, cloud-entering dedicated line services are overhead encapsulated and transmitted based on SR MPLS, and in the cloud-enterprise network, they are overhead encapsulated and transmitted based on SRv6. The service quality analyzer is responsible for receiving performance data collected and reported in the SR MPLS forwarding domain and the SRv6 forwarding domain, and performing hierarchical calculation and measurement. The specific steps are as follows:
[0072] When cloud-entry private line services are transmitted to the UPE, the in-band OAM overhead of the SRv6 forwarding domain is encapsulated along with the transport overhead. The layered measurement indicator of this in-band OAM overhead is set to the value used to monitor the forwarding process of the Level 1 protocol layer in the SRv6 forwarding domain.
[0073] When transmitting to P1, the in-band OAM overhead of the SRv6 forwarding domain is deleted, and the in-band OAM overhead of the SR MPLS forwarding domain is encapsulated. The layered measurement indicator of the in-band OAM overhead is set to the value of the Level 1 protocol layer forwarding process monitoring the SR MPLS forwarding domain. The in-band OAM overhead is kept in the outermost layer of the service packet encapsulation.
[0074] When transmitting to P2, the layer measurement indicator of the in-band OAM overhead is set to the value of the Level 2 protocol layer forwarding process monitoring the SR MPLS forwarding domain, and the in-band OAM overhead is kept in the outermost layer of the service packet encapsulation;
[0075] When transmitting to the NPE, the in-band OAM overhead of the SR MPLS forwarding domain is deleted, and the in-band OAM overhead of the SRv6 forwarding domain is encapsulated. The layered measurement indicator of the in-band OAM overhead is set to the value used to monitor the Level 1 protocol layer forwarding process of the SRv6 forwarding domain. The in-band OAM overhead is kept in the outermost layer of the service packet encapsulation.
[0076] When transmitting to the network PE, the layer measurement indicator of the in-band OAM overhead is set to the value of the Level 2 protocol layer forwarding process monitoring the SRv6 forwarding domain, and the in-band OAM overhead is kept in the outermost layer of the service message encapsulation;
[0077] When transmitting to P3, it maintains the functionality as it was at the network PE;
[0078] When transmitting to the cloud PE, the layered measurement indicator of the in-band OAM overhead is set to the value of the Level 1 protocol layer forwarding process monitoring the SRv6 forwarding domain, and the in-band OAM overhead is kept in the outermost layer of the service message encapsulation;
[0079] When leaving the cloud PE, the transport overhead and in-band OAM overhead of the SRv6 forwarding domain are stripped away;
[0080] In the above steps, the performance data generated by monitoring the forwarding processing of each protocol layer is marked with the corresponding layer and reported to the service quality analyzer. After the service quality analyzer collects the performance data, it is sent to the calculation module that monitors the forwarding processing of the corresponding protocol layer according to the label classification to calculate the service quality of the corresponding protocol layer.
[0081] In addition, an embodiment of the present application also provides a layered measurement device. Referring to Figure 4, Figure 4 is a structural diagram of a layered measurement device provided in an embodiment of the present application. As shown in Figure 4, in this embodiment, the layered measurement device includes: an acquisition module 100 and an execution module 200.
[0082] The acquisition module 100 is used to obtain the current position of the target service flow;
[0083] The execution module 200 is configured to, when a target service flow enters a first protocol layer of a first forwarding domain, encapsulate a first in-band OAM overhead of the first forwarding domain for the target service flow, and set a layered measurement indicator of the first in-band OAM overhead to a value for monitoring a forwarding process of the first protocol layer;
[0084] The execution module 200 is further configured to set the layered measurement indicator of the first in-band OAM overhead to a value for monitoring the forwarding process of the second protocol layer when the target service flow leaves the first protocol layer and enters the second protocol layer of the first forwarding domain;
[0085] The execution module 200 is also used to delete the first in-band OAM overhead when the target service flow leaves the first forwarding domain and enters the third protocol layer of the second forwarding domain, encapsulate the second in-band OAM overhead of the second forwarding domain for the target service flow, and set the layered measurement indicator of the second in-band OAM overhead to a value for monitoring the forwarding processing process of the third protocol layer.
[0086] The layered measurement device provided in this embodiment and the layered measurement method provided in the above embodiment belong to the same inventive concept. Technical details not fully described in this embodiment can be referred to any of the above embodiments, and this embodiment has the same beneficial effects as executing the layered measurement method.
[0087] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, i.e., they may be located in one place or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of this embodiment.
[0088] In addition, embodiments of the present application further provide an electronic device. The hierarchical measurement method applied to the electronic device can be performed by a hierarchical measurement device. The hierarchical measurement device can be implemented in software and / or hardware and integrated into the electronic device. The electronic device can be a terminal device such as a personal computer (PC), a mobile phone, a laptop, or a tablet computer that can communicate with a network.
[0089] Referring to Figure 5, Figure 5 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. As shown in Figure 5, the electronic device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0090] Those skilled in the art will appreciate that the structure shown in FIG5 does not limit the electronic device and may include more or fewer components than shown, or combine certain components, or arrange the components differently. As shown in FIG5 , the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module, and a computer program.
[0091] In the electronic device shown in Figure 5, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in this embodiment can be set in the electronic device, and the electronic device calls the computer program stored in the memory 1005 through the processor 1001 and executes the hierarchical measurement method applied to the electronic device provided in any of the above embodiments.
[0092] The electronic device proposed in this embodiment and the hierarchical measurement method applied to electronic devices proposed in the above embodiments belong to the same inventive concept. Technical details not fully described in this embodiment can be referred to any of the above embodiments, and this embodiment has the same beneficial effects as executing the hierarchical measurement method.
[0093] In addition, an embodiment of the present application also provides a computer-readable storage medium, which can be a non-volatile computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the layered measurement method provided in any of the above embodiments is implemented.
[0094] Those skilled in the art will appreciate that all or some of the steps and systems in the method disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, and the computer-readable medium can include computer storage media (or non-transitory media) and communication media (or temporary media). As known to those skilled in the art, the term computer storage media is included in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data) and is volatile and non-volatile, removable, and non-removable. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory, or other memory technology, CD-ROM, digital versatile disks (DVD), or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage, or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, as is well known to those skilled in the art, communication media typically embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0095] The above is a specific description of the preferred implementation of the embodiments of the present application, but the embodiments of the present application are not limited to the above-mentioned implementation methods. Technical personnel familiar with the art can also make various equivalent modifications or substitutions without violating the spirit of the embodiments of the present application. These equivalent modifications or substitutions are all included in the scope defined by the claims of the embodiments of the present application.
Claims
1. A hierarchical measurement method, wherein: The layered measurement method comprises: Get the current position of the target business flow; In the case where the target service flow enters the first protocol layer of the first forwarding domain, encapsulating the first in-band OAM overhead of the first forwarding domain for the target service flow, and setting the hierarchical measurement indicator of the first in-band OAM overhead to a value for monitoring the forwarding process of the first protocol layer; When the target service flow leaves the first protocol layer and enters the second protocol layer of the first forwarding domain, setting the hierarchical measurement indicator of the first in-band OAM overhead to a value for monitoring the forwarding process of the second protocol layer; When the target service flow leaves the first forwarding domain and enters the third protocol layer of the second forwarding domain, the first in-band OAM overhead is deleted, the second in-band OAM overhead of the second forwarding domain is encapsulated for the target service flow, and the layered measurement indicator of the second in-band OAM overhead is set to a value for monitoring the forwarding processing process of the third protocol layer.
2. The layered measurement method according to claim 1, wherein: The layered measurement method further comprises: Selecting a specified number of bits from reserved bits of the first in-band OAM overhead for generating a defined value set of a hierarchical measurement indicator, wherein each value in the defined value set is used to monitor service quality of forwarding processing at different protocol layers; and / or, A specified number of bits are selected from the reserved bits of the second in-band OAM overhead to generate a defined value set of a layered measurement indicator, wherein each value in the defined value set is used to monitor service quality of forwarding processing at different protocol layers.
3. The layered measurement method according to claim 2, wherein: The specified number is n, and the number of values in the defined value set is two to the power of n.
4. The layered measurement method according to claim 1, wherein: The layered measurement method further comprises: maintaining the first in-band OAM overhead at the outermost layer of the service encapsulation message of the target service flow; and / or, The second in-band OAM overhead is kept at the minimum of the service encapsulation message of the target service flow. Outer layer.
5. The layered measurement method according to claim 1, wherein: The layered measurement method further comprises: marking first performance data generated by monitoring the forwarding process of the first protocol layer, and outputting the first performance data to a service quality analyzer to obtain a first service quality condition of the first protocol layer; and / or, marking the second performance data generated by monitoring the forwarding process of the second protocol layer, and outputting the second performance data to a service quality analyzer to obtain a second service quality condition of the second protocol layer; and / or, The third performance data generated by monitoring the forwarding process of the third protocol layer is marked, and the third performance data is output to the service quality analyzer to obtain the third service quality status of the third protocol layer.
6. The layered measurement method according to claim 1, wherein: Before the step of encapsulating the first in-band OAM overhead of the first forwarding domain for the target service flow, the hierarchical measurement method further includes: The target service flow is encapsulated with transmission overhead.
7. The layered measurement method according to claim 6, wherein: The layered measurement method further comprises: When the target service flow leaves the second forwarding domain and no longer enters other forwarding domains, the encapsulation transmission overhead and the second in-band OAM overhead are deleted.
8. A layered measurement device, wherein: The layered measurement device comprises: An acquisition module, wherein the acquisition module is configured to acquire a current position of a target service flow; an execution module, wherein the execution module is configured to encapsulate a first in-band OAM overhead of the first forwarding domain for the target service flow when the target service flow enters the first protocol layer of the first forwarding domain, and set a hierarchical measurement indicator of the first in-band OAM overhead to a value for monitoring a forwarding process of the first protocol layer; The execution module is further configured to, when the target service flow leaves the first protocol layer and enters the second protocol layer of the first forwarding domain, The measurement indicator is set to a value for monitoring the forwarding process of the second protocol layer; The execution module is also configured to delete the first in-band OAM overhead, encapsulate the second in-band OAM overhead of the second forwarding domain for the target service flow, and set the layered measurement indicator of the second in-band OAM overhead to a value for monitoring the forwarding processing process of the third protocol layer when the target service flow leaves the first forwarding domain and enters the third protocol layer of the second forwarding domain.
9. An electronic device, wherein: The electronic device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the hierarchical measurement method according to any one of claims 1 to 7 when executed by the processor.
10. A computer-readable storage medium, wherein: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the layered measurement method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Triggered in-band operations, administration, and maintenance in a network environment
CN108028775A
Network performance measurement method, device and system, equipment and storage medium
CN113765732A
In-situ operations, administration, and management (IOAM) and network event correlation for internet of things (IOT)
US20190268267A1
Self-describing packet headers for concurrent processing
WO2019067945A1
