Software method for measuring Ethernet service interruption
A software-based method for Ethernet business interruption measurement addresses the high cost and complexity of hardware-dependent methods by using software monitoring to accurately detect and analyze network performance.
Patent Information
- Application Number
- CN202510583593.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-07
- Publication Date
- 2025-07-15
AI Technical Summary
The prior art methods that rely on FPGAs or chips when measuring Ethernet service interruptions are expensive and complex, making it difficult to effectively test the service interruption time of the Ethernet MAC layer.
Using software methods, the measurement of Ethernet service interruption is realized by starting Ethernet service performance monitoring and polling tasks, the transmission and reception rate is detected, the service interruption time is calculated, and the data packets are counted.
It realizes low-cost, simple and effective Ethernet service interruption measurement, which can accurately reflect the switching performance of network equipment and supports the stable operation and management of the network.
Smart Images

Figure CN120321139A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Ethernet measurement, and specifically to a software method for measuring Ethernet service interruption. Background Art
[0002] With the rapid development of information technology, Ethernet has become one of the most widely used computer network technologies today. For various services relying on Ethernet, the continuity and reliability of the services are crucial. Therefore, it is necessary to test and evaluate the service interruption risk of Ethernet under different conditions and take corresponding measures to improve the reliability of the network.
[0003] In a high-speed network environment, once a fault occurs, network devices usually perform protection switching operations to reduce the impact on services. However, during the entire service switching process, Ethernet alarm messages are often not sent downstream. In this case, test instruments cannot effectively test the service interruption time through alarms or interruptions at the Ethernet PCS layer. In view of this, it is necessary to test the service interruption time at the Ethernet MAC layer to accurately reflect the switching performance of the device.
[0004] Currently in the market, there are methods to implement MAC layer service interruption statistics by means of packet sequence with the help of FPGA or chips. However, this method is extremely costly and time-consuming and laborious in the implementation process. On the one hand, using FPGA or chips means a large amount of capital investment is required to purchase these hardware devices, which is a significant expense for many enterprises and projects. On the other hand, in practical applications, its development and debugging processes are also extremely complex and require a large amount of time and human resources. Summary of the Invention
[0005] To overcome the existing technical problems, the present invention provides a software method for measuring Ethernet service interruption.
[0006] The present invention adopts the following technical solutions.
[0007] A software method for measuring Ethernet service interruption includes the following steps:
[0008] Start the Ethernet service performance monitoring and polling tasks, and send Ethernet services;
[0009] The polling task detects whether there is a service interruption in the Ethernet service. If so, view the performance monitoring. If not, continue to detect whether there is a service interruption;
[0010] Detect whether the sending rate and the receiving rate are the same. If so, determine that the Ethernet service has resumed, pause the Ethernet service sending, count the received and sent data packets, calculate the Ethernet service interruption time and save it, and resume the Ethernet service sending. If not, continue to detect whether the rates are the same.
[0011] As a further improvement of the present invention, the steps of calculating the interruption time of the Ethernet service specifically include:
[0012] Statistical total number of bytes T X总字节数 and total number of frames T X总帧数 on the sending side, statistical total number of words R X总字节数 and total number of frames R X总帧数 on the receiving side, and calculating the service interruption time T 中断时间 ;
[0013] wherein R 全速 is the maximum theoretical transmission rate, and P 速率 is the percentage of the sending rate during the current service operation.
[0014] As a further improvement of the present invention, the specific steps of detecting whether there is a service interruption in the Ethernet service are to detect whether there is a packet loss event, or detect whether there is an FCS error packet, or detect whether there is a PCS layer alarm interruption.
[0015] As a further improvement of the present invention, after suspending the sending of the Ethernet service, the following steps are further included: waiting for the preset return time in the performance monitoring, so that the data packets of the entire link can be transmitted back to the receiving side.
[0016] As a further improvement of the present invention, the specific steps of sending the Ethernet service include: sending the Ethernet service at a fixed rate.
[0017] As a further improvement of the present invention, after calculating and saving the interruption time of the Ethernet service, the following steps are further included: calculating the minimum service interruption time, the maximum service interruption time since the current performance monitoring, and recording the events of each service interruption.
[0018] As a further improvement of the present invention, it can be applied in an application program or in a programmable logic device.
[0019] As a further improvement of the present invention, it can be applied in a test instrument, a switch, or a router.
[0020] As a further improvement of the present invention, the sending rate of the Ethernet service includes greater than or equal to 1600GE, 800GE, 400GE, 200GE, 100GE, 50GE, 25GE, 10GE, or less than or equal to 1GE.
[0021] As a further improvement of the present invention, the specific way of sending the Ethernet service includes directly sending through an Ethernet interface or transmitting through mapping to an optical transport network OTN.
[0022] The beneficial effects of the present invention are as follows: The implementation method of the present invention is simple and effective. There is no need to implement service interruption measurement based on the order of data packets in the FPGA or chip. Only by means of application layer software can service interruption measurement be achieved. This measurement method can accurately reflect the switching performance of the current network device, providing strong technical support for the stable operation and efficient management of the network. It can not only detect service interruption in a timely manner, but also deeply analyze the performance of protection switching, providing key data basis for network optimization and troubleshooting, ensuring that the network always maintains a good operating state and meets the high requirements for network reliability and stability in various application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0024] Figure 1 is a schematic flowchart of the present invention without closing performance monitoring;
[0025] Figure 2 is a test result graph based on 400GE services;
[0026] Figure 3 is a test result graph based on mapping 10GE to OTU4 services. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0027] The drawings are only for illustrative purposes and cannot be construed as a limitation of this patent. To better illustrate this embodiment, some components in the drawings will be omitted, enlarged or reduced, which do not represent the dimensions of the actual product.
[0028] For those skilled in the art, it is understandable that some well-known structures and their descriptions in the drawings may be omitted. The technical solutions of the present invention will be further described below with reference to the drawings and embodiments.
[0029] Refer to Figures 1 - 3 , a software method for measuring Ethernet service interruption, including the following steps:
[0030] Start the Ethernet service performance monitoring and polling tasks, and send Ethernet services;
[0031] The polling task detects whether there is a service interruption in the Ethernet service. If so, view the performance monitoring. If not, continue to detect whether there is a service interruption;
[0032] Detect whether the sending rate is the same as the receiving rate. If so, determine that the Ethernet service has been restored and suspend the sending of the Ethernet service. Statistically count the received and sent data packets, calculate and save the Ethernet service interruption time, and then resume the sending of the Ethernet service. If not, continue to detect whether the rates are the same.
[0033] The implementation method of the present invention is simple and effective. There is no need to implement service interruption measurement based on the order of data packets in the FPGA or chip. It can be achieved only through the application layer software. The polling task can detect in real time whether there is a service interruption in the Ethernet service and automatically determine whether the service is interrupted or restored, greatly improving the monitoring efficiency while ensuring the accuracy rate. Since it does not need to rely on specific hardware facilities, this solution can flexibly adjust the monitoring parameters and strategies according to different test requirements, and is applicable to the evaluation of Ethernet service continuity and reliability in a variety of network environments, thus promoting network optimization.
[0034] As a further improvement of the present invention, the steps of calculating the Ethernet service interruption time specifically include:
[0035] Statistically count the total number of bytes T X总字节数 and the total number of frames T X总帧数 on the sending side, statistically count the total number of words R X总字节数 and the total number of frames R X总帧数 on the receiving side, and calculate the service interruption time T 中断时间 ;
[0036] where R 全速 is the maximum theoretical transmission rate, and P 速率 is the percentage of the sending rate when the current service is running.
[0037] Calculating the difference between the total number of bytes on the sending side and the receiving side can calculate the loss amount of direct data, which reflects the net loss of effective data in the actual transmission process. Calculating the difference in the total number of frames and multiplying it by the sum of the preamble and inter-packet gap can calculate all the protocol overheads required to transmit these lost frames. The sum of the preamble and inter-packet gap represents the number of bytes of these overheads required per frame on average. Since calculations are performed in bytes during network transmission and the unit is bits when converted to bandwidth calculation, multiply by 8 to convert the unit. R 全速 is related to the interface standard rate and can be 800GE, 400GE, 200GE, etc. Taking 400GE as an example, R full speed = 400 Gbps. R 全速 ×P 速率 can calculate the sending rate of the current service. Dividing all the data by the sending rate can obtain the service interruption time T 中断时间 . Among them, the typical value of the preamble is 8 bytes, and the typical value of the inter-packet gap is 12 bytes. These values are only for illustration, and other values that conform to the Ethernet standard can actually be selected.
[0038] As a further improvement of the present invention, the specific steps for detecting whether there is a service interruption in the Ethernet service are to detect whether there is a packet loss event, or to detect whether there is an FCS error packet, or to detect whether there is an alarm interruption at the PCS layer.
[0039] As a further improvement of the present invention, after pausing the transmission of the Ethernet service, the following steps are further included: waiting for the preset return time in performance monitoring, so that all data packets of the entire link can be transmitted back to the receiving side.
[0040] Since the service interruption time of the present invention needs to be calculated based on the total number of bytes, in order to improve the accuracy of the service interruption time calculation, letting all data packets of the entire link be transmitted back to the receiving side before calculation can effectively improve the calculation accuracy. Specifically, if it is in a local area network environment with a transmission rate of 1 Gbps and a link length not exceeding 100 meters, considering that the signal propagation speed is approximately 200 meters per microsecond, the return time may only be a few microseconds to dozens of microseconds. If it is a wide area network environment, assuming a transmission rate of 10 Gbps and a link length of about 1000 kilometers, since the propagation speed of the optical signal in the optical fiber is close to two-thirds of the speed of light in a vacuum, that is, about 200 kilometers per millisecond, the return time may take several milliseconds.
[0041] As a further improvement of the present invention, the specific steps for sending the Ethernet service include: sending the Ethernet service at a fixed rate. Sending at a fixed rate helps to create a predictable environment in which it is easier to calculate the service interruption time, which enables the performance monitoring based on the MAC layer to more accurately capture the details of the service interruption and further improve the accuracy of the service interruption time calculation.
[0042] As a further improvement of the present invention, the process of the present invention continues until the performance monitoring is turned off. The performance monitoring can seamlessly switch to the test phase to realize the automation of the test process, thereby continuously recording the service interruption time and interruption events and providing detailed test data for optimizing the network. At the same time, it can reduce the delay and errors of manual operations.
[0043] As a further improvement of the present invention, after calculating and saving the Ethernet service interruption time, the following steps are further included: calculating the minimum service interruption time, the maximum service interruption time since the current performance monitoring, and recording the events of each service interruption.
[0044] The minimum service interruption time represents the best performance of the device under ideal conditions, reflecting its switching efficiency in the optimal state. The maximum service interruption time represents the worst performance of the device under extreme conditions, which can intuitively reflect the performance stability of the device. For example, when the maximum service interruption time is much higher than the average value, it may indicate that a specific event has caused obvious anomalies. When it is found that the minimum value or the average value gradually increases, it may indicate device aging. This can guide network design, maintenance, and decision-making. At the same time, it is also convenient to conduct a review based on the recorded service interruption events.
[0045] As a further improvement of the present invention, the present invention can be applied in an application program or in a programmable logic device.
[0046] As a further improvement of the present invention, the present invention can be applied in a test instrument, a switch, or a router.
[0047] As a further improvement of the present invention, the rate of sending Ethernet services includes greater than or equal to 1600GE, 800GE, 400GE, 200GE, 100GE, 50GE, 25GE, 10GE, or less than or equal to 1GE.
[0048] As a further improvement of the present invention, the specific manner of sending Ethernet services includes directly sending through an Ethernet interface or transmitting through mapping to an Optical Transport Network (OTN).
[0049] Taking a 400GE Ethernet interface as an example, first, turn on the service interruption test function based on Ethernet alarms at the PCS layer. At the same time, also turn on the service interruption test function based on MAC layer data packets in the present invention. Then, conduct a comprehensive test on various possible service interruption methods, and the results are as Figure 2 shown. By comparing the service interruption times at the PCS layer and the MAC layer, it is found that the test results of the present invention fully meet the expectations. This result fully proves the accuracy and reliability of the present invention in Ethernet service interruption testing. Whether for high-speed Ethernet interfaces or other types of network environments, the present invention can play an important role, providing strong support for the stable operation of the network and fault troubleshooting. It can not only accurately detect service interruption situations but also provide detailed test data for network administrators to help them quickly locate problems and take effective solutions.
[0050] Taking a 10GE Ethernet service as an example, first map the 10GE service to ODU2 (Optical Data Unit 2), then multiplex it to ODU4 (Optical Data Unit 4), and then perform optical transmission through OTU4 (Optical Transport Unit 4). Conduct a service interruption test in this specific environment, and the test results are as Figure 3As shown. By deeply comparing the service interruption times of OTU4, ODU2, and the MAC layer, it can be found that the test results of the present invention fully meet expectations. This result strongly proves that the present invention has high accuracy and reliability in service interruption tests at different network levels. Whether it is at the high level of optical transmission such as OTU4, at the data unit level such as ODU2, or at the MAC layer, the present invention can accurately detect service interruption situations, providing a solid guarantee for the stable operation of the network. It not only provides comprehensive test data for network engineers and administrators to help them quickly and accurately locate problems, but also provides strong technical support for further optimizing network performance and improving network reliability.
[0051] In the present invention, unless otherwise clearly specified and defined, terms such as "install", "connect", "link", "fix", etc. shall be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or integrated; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, and it can be the internal communication of two components or the interaction relationship between two components. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0052] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, rather than limitations on the implementation manners of the present invention. For those of ordinary skill in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all implementation manners here. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present invention shall be included in the protection scope of the claims of the present invention.
Claims
1. A software method for measuring Ethernet service interruption, characterized in that, It includes the following steps: Start the Ethernet service performance monitoring and polling tasks, and send Ethernet services; The polling task detects whether there is a service interruption in the Ethernet service. If so, view the performance monitoring. If not, continue to detect whether there is a service interruption; Detect whether the sending rate and the receiving rate are the same. If so, determine that the Ethernet service has recovered and suspend the sending of the Ethernet service, count the received and sent data packets, calculate and save the Ethernet service interruption time, and resume the sending of the Ethernet service. If not, continue to detect whether the rates are the same.
2. The software method for measuring Ethernet service interruption according to claim 1, characterized in that, The steps for calculating the Ethernet service interruption time specifically include: Statistically calculate the total number of bytes T on the sending side X总字节数 and the total number of frames T X总帧数 , statistically calculate the total number of words R on the receiving side X总字节数 and the total number of frames R X总帧数 , calculate the service interruption time T 中断时间 ; Where R 全速 is the maximum theoretical transmission rate, and P 速率 is the percentage of the transmission rate during the current service operation.
3. A software method for measuring Ethernet service interruption according to claim 1, characterized in that, The specific steps for detecting whether there is a service interruption in the Ethernet service are to detect whether there is a packet loss event, or detect whether there is an FCS error packet, or detect whether there is a PCS layer alarm interruption.
4. A software method for measuring Ethernet service interruption according to claim 2, characterized in that, After suspending the sending of the Ethernet service, it further includes the step of waiting for the preset feedback time in the performance monitoring, so that the data packets of the entire link can be transmitted back to the receiving side.
5. A software method for measuring Ethernet service interruption according to claim 1, characterized in that, The specific steps for sending the Ethernet service include sending the Ethernet service at a fixed rate.
6. A software method for measuring Ethernet service interruption according to claim 1, characterized in that, After calculating and saving the Ethernet service interruption time, it further includes the steps of calculating the minimum service interruption time, the maximum service interruption time since the current performance monitoring, and recording the events of each service interruption.
7. A software method for measuring Ethernet service interruption according to claim 1, characterized in that, It can be applied in an application program or in a programmable logic device.
8. A software method for measuring Ethernet service interruption according to claim 1, characterized in that, It can be applied in a test instrument, a switch, or a router.
9. A software method for measuring Ethernet service interruption according to claim 1, characterized in that, The rate of sending the Ethernet service includes greater than or equal to 1600GE, 800GE, 400GE, 200GE, 100GE, 50GE, 25GE, 10GE, or less than or equal to 1GE.
10. A software method for measuring Ethernet service interruption according to claim 1, characterized in that, The specific method of sending the Ethernet service includes directly sending through an Ethernet interface or transmitting through mapping to an optical transport network (OTN).
Citation Information
Patent Citations
Interruption measuring method, device and system
CN102215139A
Communication controller and facsimile controller
JP1998327308A
Rate-based scheduling for packet applications
US20030185155A1
Service disruption time determination apparatus and method therefor
US20050163053A1
Method and apparatus for isochronous datagram delivery over contention-based data link
US20050195828A1