Method and device for counting ethernet frame quantity of 50g pon network

By receiving and decapsulating PON optical signals, extracting bandwidth mapping and Ethernet frame fragmentation information, and counting the number of uplink and downlink Ethernet frames, the problem of difficult packet loss location in 50G PON networks is solved, and accurate packet loss location and network monitoring capabilities are improved.

CN116248177BActive Publication Date: 2025-11-18CHINA ACADEMY OF INFORMATION & COMM
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211647012.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-21
Publication Date
2025-11-18
Estimated Expiration
2042-12-21

AI Technical Summary

Technical Problem

In 50G PON networks, existing technologies struggle to accurately pinpoint the location of uplink and downlink packet loss issues without affecting testing, especially given the lack of credible statistical results among equipment from different manufacturers, which makes location difficult.

Method used

By receiving and decapsulating PON optical signals, bandwidth mapping information and Ethernet frame fragmentation information are extracted, the number of uplink and downlink Ethernet frames is counted, and the difference in frame count is compared to determine the location of packet loss.

Benefits of technology

It enables accurate location of uplink and downlink packet loss without affecting testing, improves online network monitoring capabilities, and provides a solution for packet loss faults in network devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116248177B_ABST
    Figure CN116248177B_ABST
Patent Text Reader

Abstract

The application discloses a method for counting the number of Ethernet frames in a 50G PON network, comprising the following steps: receiving a downlink PON optical signal, unpacking a downlink FS frame, extracting downlink bandwidth mapping information of a measured ONU, extracting downlink Ethernet frame fragmentation information, and counting the number of downlink Ethernet frames of the measured ONU; forwarding the downlink PON optical signal; receiving an uplink PON optical signal, unpacking an uplink FS burst through the downlink bandwidth mapping information corresponding to the measured ONU, extracting uplink Ethernet frame fragmentation information of the measured ONU, and counting the number of uplink Ethernet frames; forwarding the uplink PON optical signal; and determining the position of Ethernet frame loss. The application also comprises a device for implementing the method. The application solves the problem of how to accurately locate the packet loss in the 50G PON network without affecting the test, realizes the location of the uplink and downlink packet loss, provides a solution for accurately finding the packet loss fault of the network device, and improves the online monitoring capability of the network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of network communication, and in particular to a method and apparatus for counting the number of Ethernet frames in a 50G PON network. Background Technology

[0002] Passive Optical Network (PON) technology is a point-to-multipoint fiber optic access technology. It consists of an Optical Line Terminal (OLT) at the central office, Optical Network Units (ONUs) at the user side, and an Optical Distribution Network (ODN). 50G PON will be the next-generation evolution direction for PON in my country, with uplink and downlink speeds increased to 50G, which will be able to meet the networking needs of more services.

[0003] However, uplink and downlink packet loss frequently occurs during PON product testing. Testing typically uses Ethernet data, while optical layer data is transmitted between the ONU and OLT, making it difficult to pinpoint and locate packet loss issues. Although OLT and ONU products usually have frame statistics functions, their results lack credibility and are difficult to gain consistent acceptance when testing equipment from different manufacturers. Therefore, a device for counting uplink and downlink Ethernet packets in PON networks is needed to pinpoint whether packet loss occurs on the OLT or ONU side, and whether it occurs in the uplink or downlink direction. How to accurately pinpoint and locate packet loss issues without affecting testing is the problem this application aims to solve. Summary of the Invention

[0004] This application proposes a method and apparatus for counting Ethernet frames in a 50G PON network, which solves the problem of accurately delineating and locating packet loss issues in a 50G PON network without affecting testing. It achieves the delineation and location of packet loss issues in both uplink and downlink directions, provides a solution for accurately detecting packet loss faults in network devices, and improves the network's online monitoring capabilities.

[0005] This application provides a method for counting the number of Ethernet frames in a 50G PON network, including:

[0006] Receive downlink PON optical signals, decapsulate downlink FS frames, extract downlink bandwidth mapping information of the ONU under test, extract downlink Ethernet frame fragmentation information, and count the number of downlink Ethernet frames of the ONU under test.

[0007] Forwarding downlink PON optical signals;

[0008] Receive uplink PON optical signal, decapsulate uplink FS burst through downlink bandwidth mapping information corresponding to the ONU under test, extract uplink Ethernet frame fragmentation information of the ONU under test, and count the number of uplink Ethernet frames.

[0009] Forwarding uplink PON optical signals;

[0010] Determine the location where the Ethernet frame loss occurred.

[0011] In some embodiments, the process of decapsulating the downlink FS frame and extracting the downlink bandwidth mapping information of the ONU under test includes: delimiting by searching for the physical synchronization sequence in the optical signal data; extracting the allocation identifier assigned to the ONU under test from the frame header of the downlink FS frame; extracting the downlink bandwidth mapping information of the ONU under test from the bandwidth mapping field; extracting the burst time slot information used for uplink data transmission; and extracting the downlink XGEM frame corresponding to the ONU under test from the payload of the FS frame.

[0012] In some embodiments, extracting downlink Ethernet frame fragmentation information and counting the number of downlink Ethernet frames of the tested ONU includes: in the downlink XGEM frames, counting the number of all downlink XGEM frames where the XGEM port-ID field is a specified XGEM port-ID and the LF field is 1, to obtain the number of downlink Ethernet frames.

[0013] In some embodiments, the step of decapsulating the uplink FS burst using the downlink bandwidth mapping information corresponding to the ONU under test includes: delimiting the data frames using the configuration template in the downlink bandwidth mapping information, and extracting the uplink XGEM frame corresponding to the ONU under test from the payload of the uplink FS burst.

[0014] In some embodiments, determining the location of Ethernet frame loss includes: comparing the number of Ethernet frames that the OLT should send to the tested ONU in the downlink direction, the statistically counted number of downlink Ethernet frames, and the number of Ethernet frames received by the tested ONU, and / or comparing the number of Ethernet frames that the tested ONU should send to the OLT in the uplink direction, the statistically counted number of uplink Ethernet frames, and the number of Ethernet frames received by the OLT, to determine the location of Ethernet frame loss.

[0015] This application also provides a device for counting the number of Ethernet frames in a 50G PON network, comprising: a first optical transceiver module, a second optical transceiver module, a data storage module, a downlink data analysis module, an uplink data analysis module, an input module, and an output module.

[0016] The first optical transceiver module is used to receive downlink PON optical signals, convert them into electrical layer data for transmission to the data storage module, and forward uplink PON optical signals.

[0017] The second optical transceiver module is used to receive uplink PON optical signals, convert them into electrical layer data for transmission to the data storage module, and forward downlink PON optical signals.

[0018] The data storage module is used to store the data received and transmitted by the first optical transceiver module and the data received and transmitted by the second optical transceiver module, and to provide data to the uplink data analysis module and the downlink data analysis module.

[0019] The downlink data analysis module is used to decapsulate downlink FS frames, extract downlink bandwidth mapping information of the ONU under test, and send the downlink bandwidth mapping information to the uplink data analysis module to extract downlink Ethernet frame fragmentation information and count the number of downlink Ethernet frames of the ONU under test.

[0020] The uplink data analysis module is used to decapsulate the uplink FS burst through the downlink bandwidth mapping information corresponding to the ONU under test, extract the uplink Ethernet frame fragmentation information of the ONU under test, and count the number of uplink Ethernet frames.

[0021] The input module is used to input the ONU identifier and XGEM port-ID used by the ONU under test.

[0022] The output module is used to output the number of downlink Ethernet frames and the number of uplink Ethernet frames to determine the location where Ethernet frame loss occurred.

[0023] The above-mentioned at least one technical solution adopted in the embodiments of this application can achieve the following beneficial effects: it solves the problem of accurately delineating and locating packet loss in 50GPON networks without affecting testing, realizes the delineation and location of packet loss in the uplink and downlink directions, provides a solution for accurately detecting packet loss faults in network devices, and improves the online monitoring capability of the network. Attached Figure Description

[0024] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0025] Figure 1 A flowchart illustrating a method for counting the number of Ethernet frames in a 50G PON network, provided in this application embodiment;

[0026] Figure 2 This is a schematic diagram of the 50G-PON downlink FS frame structure provided in an embodiment of this application;

[0027] Figure 3 This is a schematic diagram of the BWmap allocation structure provided in an embodiment of this application;

[0028] Figure 4Reference diagram of the downlink FS net load structure provided in the embodiments of this application;

[0029] Figure 5 This is a schematic diagram of the XGEM frame structure provided in an embodiment of this application;

[0030] Figure 6 This is a schematic diagram of the uplink FS burst format provided in an embodiment of this application;

[0031] Figure 7 A block diagram of a device for counting the number of Ethernet frames in a 50G PON network provided in an embodiment of this application;

[0032] Figure 8 This is a schematic diagram of a statistical device network application provided in an embodiment of this application;

[0033] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0034] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0035] The technical solutions provided by the various embodiments of this application are described in detail below with reference to the accompanying drawings.

[0036] Example 1

[0037] like Figure 1 As shown in the embodiment of this application, a method for counting the number of Ethernet frames in a 50G PON network is provided, the method including steps 110 to 150:

[0038] Step 110: Receive downlink PON optical signal, decapsulate downlink FS frame, extract downlink bandwidth mapping information of ONU under test, extract downlink Ethernet frame fragmentation information, and count the number of downlink Ethernet frames of ONU under test.

[0039] In one embodiment, the process of decapsulating the downlink FS frame and extracting the downlink bandwidth mapping information of the ONU under test includes: delimiting by searching for the physical synchronization sequence in the optical signal data; extracting the allocation identifier assigned to the ONU under test from the frame header of the downlink FS frame; extracting the downlink bandwidth mapping information of the ONU under test from the bandwidth mapping field; extracting the burst time slot information used for uplink data transmission; and extracting the downlink XGEM frame corresponding to the ONU under test from the payload of the FS frame.

[0040] like Figure 2 As shown, the header of the downlink FS frame consists of Hlend, BWmap, and PLOAMd. Hlend is four bytes long and defines the length of BWmap and the number PLOAMd. PLOAMd consists of P downlink PLOAM messages of length 48 bytes each. The downlink PLOAM message of type Assign_Alloc-ID contains the Alloc-ID information assigned to the ONU under test. Its message format definition is shown in Table 1.

[0041] Extract the allocation identifier (Alloc-ID) assigned to the ONU under test from the downlink FS frame header. By filtering messages whose ONU-ID field equals the identifier of the specified ONU under test and whose message type ID equals 0x0A, the Alloc-ID assigned to the ONU under test can be obtained.

[0042] The ONU identifier and XGEM port-ID used by the tested ONU can be specified by the user or set through a configuration file. There are no restrictions on the specific format.

[0043] Table 1 Assign_Alloc-ID Message Format

[0044]

[0045] like Figure 3 As shown, the bandwidth mapping field BWmap of the tested ONU is extracted from the downlink FS frame header, and the burst time slot information used for uplink data transmission is extracted. The length of the BWmap field is determined by the HLend field of the frame header in the FS frame header. By analyzing the BWmap field, the uplink physical layer overhead (Physical Layer OAM upstream, PLOAMu) flag of the first time slot allocated to the tested ONU, and the uplink dynamic bandwidth report (DBRu) flag, start time, grant size field GrantSize, and selected burst template BurstProfile of all allocated time slots are filtered out based on the Alloc-ID field. This information is then transmitted to the uplink data analysis module.

[0046] like Figure 4The diagram shows the FS payload structure. The length of the FS frame header is determined by the HLend field, allowing the determination of the starting position of the FS payload and the extraction of the FS payload data. The FS payload contains one or more XGEM frames (10-Gigabit-capable PON Encapsulation Method). The same FS payload structure is used in downlink FS frames and uplink FS bursts.

[0047] like Figure 5 As shown, each XGEM frame consists of an XGEM frame header and an XGEM payload. The XGEM frame header is fixed at 8 bytes, and the PLI field (Payload Length Indicator) indicates the length of the XGEM payload. Based on this, each XGEM frame can be obtained, and the value of the LF field (Last Fragment) in each XGEM frame can be obtained.

[0048] The step of extracting downlink Ethernet frame fragmentation information and counting the number of downlink Ethernet frames of the tested ONU includes: in the downlink XGEM frames, counting the number of all downlink XGEM frames where the XGEM port-ID field is a specified XGEM port-ID and the LF field is 1, to obtain the number of downlink Ethernet frames.

[0049] In one embodiment, an XGEM frame can carry at most one Ethernet frame or Ethernet frame fragment. Idle XGEM frames do not carry Ethernet frames; in this case, the idle frame XGEM Port-ID = 0xFFFF, and idle XGEM frames can be discarded accordingly. When there is no Ethernet frame fragmentation, the XGEM frame carries a complete Ethernet frame, and the LF value in the XGEM frame header is 1. The number of downlink Ethernet frames is obtained by counting the number of XGEM frames with LF = 1. When Ethernet frame fragmentation exists, the XGEM frame carries one Ethernet frame fragment. If there are other fragments following its fragment, the LF value in the XGEM frame header is 0; if there are no other fragments following its fragment, the LF value in the XGEM frame header is 1. The number of downlink Ethernet frames is obtained by counting the number of XGEM frames with LF = 1.

[0050] Step 120: Forward the downlink PON optical signal;

[0051] The received downlink PON optical signal is forwarded.

[0052] Step 130: Receive the uplink PON optical signal, decapsulate the uplink FS burst through the downlink bandwidth mapping information corresponding to the ONU under test, extract the uplink Ethernet frame fragmentation information of the ONU under test, and count the number of uplink Ethernet frames.

[0053] In one embodiment, the step of decapsulating the uplink FS burst using the downlink bandwidth mapping information corresponding to the ONU under test includes: delimiting the data frames using the configuration template in the downlink bandwidth mapping information, and extracting the uplink XGEM frame corresponding to the ONU under test from the payload of the uplink FS burst.

[0054] Uplink data is not continuous but bursty. Uplink bandwidth resources are time-division multiplexed among ONUs. Within an uplink frame, the ONU under test transmits data in one or more time slots allocated to it. These time slots are determined based on the start time and license size in the downlink bandwidth mapping information (BWmap). The receiving end extracts the data from the ONU under test based on the allocated time slots. This data may be divided into several segments (one segment per time slot), and these segments are then concatenated to form the ONU's uplink data frame.

[0055] The uplink data analysis module obtains the uplink data sent by the tested ONU by determining the allocated start time and license size. The configuration template used for the uplink FS burst is determined by the BurstProfile field in the downlink bandwidth mapping information. Data frames are delimited by searching the configuration template to extract the uplink FS burst data. (See attached format for details.) Figure 4 .

[0056] In one embodiment, extracting the uplink Ethernet frame fragmentation information of the ONU under test and counting the number of uplink Ethernet frames includes: counting the number of all uplink XGEM frames in the uplink XGEM frames where the XGEM port-ID field is a specified XGEM port-ID and the LF field is 1, to obtain the number of uplink Ethernet frames.

[0057] An XGEM frame can carry at most one Ethernet frame or Ethernet frame fragment. Idle XGEM frames do not carry Ethernet frames; their XGEM Port-ID is 0xFFFF, and they can be discarded. When there is no Ethernet frame fragmentation, the XGEM frame carries a complete Ethernet frame, and the LF value in the XGEM frame header is 1. The number of uplink Ethernet frames is obtained by counting the number of XGEM frames with LF=1. When Ethernet frame fragmentation exists, the XGEM frame carries one Ethernet frame fragment. If there are other fragments following its fragment, the LF value in the XGEM frame header is 0; otherwise, it is 1. The number of uplink Ethernet frames is obtained by counting the number of XGEM frames with LF=1.

[0058] Step 140: Forward the uplink PON optical signal;

[0059] The received uplink PON optical signal is forwarded.

[0060] Step 150: Determine the location where the Ethernet frame loss occurred.

[0061] In one embodiment, determining the location of Ethernet frame loss includes: comparing the number of Ethernet frames that the OLT should send to the tested ONU in the downlink direction, the statistically counted number of downlink Ethernet frames, and the number of Ethernet frames received by the tested ONU, and / or comparing the number of Ethernet frames that the tested ONU should send to the OLT in the uplink direction, the statistically counted number of uplink Ethernet frames, and the number of Ethernet frames received by the OLT, to determine the location of Ethernet frame loss.

[0062] The number of Ethernet frames sent by the OLT to the tested ONU in the downlink direction, the statistically recorded number of downlink Ethernet frames, and the number of Ethernet frames received by the tested ONU are respectively represented by M. t M s and M r Indicates. If M t Greater than M s And M s Equal to M r This indicates that the frame loss problem occurs on the OLT side. If M t Equal to M s And M s Greater than M r This indicates that the frame loss problem occurs on the ONU side. If M t Greater than M s And M s Greater than M r This indicates that frame loss exists on both the OLT and ONU sides.

[0063] The number of Ethernet frames sent by the ONU to the OLT in the uplink direction, the statistically recorded number of uplink Ethernet frames, and the number of Ethernet frames received by the OLT are respectively represented by N. t N s and N r Indicates. Compare with N t N s and N r If N t Greater than N s And N s equals N r This indicates that the frame loss problem occurs on the ONU side. If N t equals N s And N s Greater than N r If N, it indicates that the frame loss problem occurs on the OLT side. t Greater than N s And N s Greater than N r This indicates that frame loss exists on both the OLT and ONU sides.

[0064] By acquiring XGEM frames from uplink and downlink optical signals and counting the number of Ethernet frames, the location of frame loss in the passive optical network can be determined, thereby improving the network's real-time monitoring capabilities.

[0065] It should be noted that the execution subject of each step of the method provided in Embodiment 1 can be the same device, or the method can be executed by different devices. For example, the execution subject of steps 110 and 120 can be device 1, and the execution subject of step 130 can be device 2; or the execution subject of step 110 can be device 1, and the execution subject of steps 120 and 130 can be device 2; and so on.

[0066] Example 2

[0067] like Figure 7 As shown, this embodiment provides a device for counting the number of Ethernet frames in a 50G PON network, used to implement the method of any embodiment of this application, including: a first optical transceiver module 710, a second optical transceiver module 720, a data storage module 730, a downlink data analysis module 740, an uplink data analysis module 750, an input module 760, and an output module 770.

[0068] The first optical transceiver module 710 is used to receive downlink PON optical signals, convert them into electrical layer data for transmission to the data storage module, and forward uplink PON optical signals.

[0069] The second optical transceiver module 720 is used to receive uplink PON optical signals, convert them into electrical layer data for transmission to the data storage module, and forward downlink PON optical signals.

[0070] The data storage module 730 is used to store the data received and transmitted by the first optical transceiver module and the data received and transmitted by the second optical transceiver module, and to provide data to the uplink data analysis module and the downlink data analysis module.

[0071] The downlink data analysis module 740 is used to decapsulate downlink FS frames, extract downlink bandwidth mapping information of the ONU under test, and send the downlink bandwidth mapping information to the uplink data analysis module to extract downlink Ethernet frame fragmentation information and count the number of downlink Ethernet frames of the ONU under test.

[0072] The uplink data analysis module 750 is used to decapsulate the uplink FS burst through the downlink bandwidth mapping information corresponding to the ONU under test, extract the uplink Ethernet frame fragmentation information of the ONU under test, and count the number of uplink Ethernet frames.

[0073] Input module 760 is used to input the ONU identifier and XGEM port-ID used by the ONU under test.

[0074] The output module 770 is used to output the number of downlink Ethernet frames and the number of uplink Ethernet frames to determine the location where Ethernet frame loss occurred.

[0075] Optionally, the first optical transceiver module is connected to the OLT, and the second optical transceiver module is connected to the ONU.

[0076] Optionally, the first optical transceiver module is connected to the OLT, and the second optical transceiver module is connected to the ODN.

[0077] Optionally, the first optical transceiver module is connected to the ODN, and the second optical transceiver module is connected to the ONU.

[0078] Example 3

[0079] like Figure 8 The diagram shown is a schematic diagram of the application of the statistical device of this application.

[0080] The statistical device is connected between the OLT and ONU devices. It can be connected between the OLT and ODN, between the ODN and ONU, or between the OLT and ONU when no ODN is deployed. Both ends of the statistical device are connected to the corresponding devices via optical transceiver modules. The analysis process for uplink and downlink frames is exactly the same in all three connection methods.

[0081] This embodiment illustrates various deployment methods for the statistical device. It offers flexible deployment options to adapt to diverse network detection application scenarios during the uplink and downlink Ethernet frame statistics process.

[0082] The device provided in this application embodiment has the same implementation principle and technical effect as the aforementioned method embodiment. For the sake of brevity, any parts not mentioned in the device embodiment can be referred to the corresponding content in the aforementioned method embodiment.

[0083] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system and apparatus described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0084] The method of using the statistical device described in this application includes the following steps:

[0085] Step 1: The statistical device is connected between the OLT and the ONU. It can be connected between the OLT and the ODN, or between the ODN and the ONU. It can also be connected between the OLT and the ONU when the ODN is not deployed. The two ends of the statistical device are connected to the corresponding devices through optical transceiver modules.

[0086] In this embodiment, as Figure 8 As shown, the statistical device is connected between the OLT and the ONU equipment.

[0087] Step 2: Enter the ONU-ID and XGEM Port-ID used by the ONU under test;

[0088] Step 3: The ONU is successfully registered with the OLT. Bandwidth authorization is granted to the ONU, service channels are configured, and the data channel between the ONU and the OLT is established.

[0089] Step 4: The data analyzer sends downlink Ethernet data streams to the OLT, and the OLT forwards the traffic to the ONU; the data analyzer sends uplink Ethernet data streams to the ONU, and the ONU forwards the traffic to the OLT.

[0090] Step 5: The statistical device analyzes and stores the received uplink and downlink data, and counts the number of uplink and downlink Ethernet frames, where the number of uplink and downlink Ethernet frames are N respectively. s and M s .

[0091] Step 6: The data analyzer stops transmitting data. The data analyzer confirms that the number of uplink Ethernet frames transmitted is N. t The number of Ethernet frames received uplink is N r The data analyzer confirmed that the number of downlink Ethernet frames transmitted was M. t The number of downlink received Ethernet frames is M r .

[0092] Step 7: Calculate the number of Ethernet frames sent by the OLT to the tested ONU in the downlink direction, the statistically recorded number of downlink Ethernet frames, and the number of Ethernet frames received by the tested ONU using M... t M s and M r Indicates. If M t Greater than M s And M s Equal to M r This indicates that the frame loss problem occurs on the OLT side. If M t Equal to M s And M s Greater than M r This indicates that the frame loss problem occurs on the ONU side. If M t Greater than M s And M s Greater than M r This indicates that frame loss exists on both the OLT and ONU sides.

[0093] Step 8: Calculate the number of Ethernet frames sent by the tested ONU to the OLT in the uplink direction, the statistically recorded number of uplink Ethernet frames, and the number of Ethernet frames received by the OLT, respectively using N. t N s and N r Indicates. Compare with N tN s and N r If N t Greater than N s And N s equals N r This indicates that the frame loss problem occurs on the ONU side. If N t equals N s And N s Greater than N r If N, it indicates that the frame loss problem occurs on the OLT side. t Greater than N s And N s Greater than N r This indicates that frame loss exists on both the OLT and ONU sides.

[0094] This embodiment illustrates the deployment and usage of the statistical device. It has a flexible deployment method and can adapt to various application scenarios in the process of completing uplink and downlink Ethernet frame statistics.

[0095] Example 4

[0096] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0097] Therefore, this application also proposes a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the methods described in any embodiment of this application.

[0098] Furthermore, this application also proposes an electronic device (or computing device) including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method described in any embodiment of this application.

[0099] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device 900 shown in the figure is merely an example and should not impose any limitations on the function and scope of use of the embodiments of this application.

[0100] It includes: one or more processors 920; and a storage device 910 for storing one or more programs, which, when executed by the one or more processors 920, enable the one or more processors 920 to implement the method for counting the number of Ethernet frames in a 50G PON network provided in this application embodiment, the method including:

[0101] Receive downlink PON optical signals, decapsulate downlink FS frames, extract downlink bandwidth mapping information of the ONU under test, extract downlink Ethernet frame fragmentation information, and count the number of downlink Ethernet frames of the ONU under test.

[0102] Forwarding downlink PON optical signals;

[0103] Receive uplink PON optical signal, decapsulate uplink FS burst through downlink bandwidth mapping information corresponding to the ONU under test, extract uplink Ethernet frame fragmentation information of the ONU under test, and count the number of uplink Ethernet frames.

[0104] Forwarding uplink PON optical signals;

[0105] Determine the location where the Ethernet frame loss occurred.

[0106] The number of processors 920 in an electronic device can be one or more. Figure 9 Taking a processor 920 as an example; the processor 920, storage device 910, input device 930 and output device 940 in the electronic device can be connected by a bus or other means, and the figure shows an example of being connected by a bus 950.

[0107] Storage device 910, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and module units, such as the program instructions corresponding to the 50G PON network Ethernet frame count method in this embodiment. Storage device 910 may mainly include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a function; the data storage area may store data created based on terminal usage. Furthermore, storage device 910 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some instances, storage device 910 may further include memory remotely located relative to processor 920, and these remote memories can be connected via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0108] Input device 930 can be used to receive input digital, character, or voice information, and to generate key signal inputs related to user settings and function control of the electronic device. Output device 940 may include electronic devices such as a display screen and a speaker.

[0109] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0110] The above description is merely an embodiment of this application and is not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

Claims

1. A method for counting the number of Ethernet frames in a 50G PON network, characterized in that, include: Receive downlink PON optical signals, decapsulate downlink FS frames, and extract downlink bandwidth mapping information of the ONU under test, including: delimiting by searching for physical synchronization sequences in optical signal data, extracting the allocation identifier assigned to the ONU under test from the frame header of the downlink FS frame, extracting downlink bandwidth mapping information of the ONU under test from the bandwidth mapping field, extracting burst time slot information used for uplink data transmission, and extracting the downlink XGEM frame corresponding to the ONU under test from the payload of the FS frame. Extract downlink Ethernet frame fragmentation information and count the number of downlink Ethernet frames in the tested ONU; Forwarding downlink PON optical signals; Receive uplink PON optical signal, decapsulate uplink FS burst through downlink bandwidth mapping information corresponding to the ONU under test, extract uplink Ethernet frame fragmentation information of the ONU under test, and count the number of uplink Ethernet frames. Forwarding uplink PON optical signals; By comparing the number of Ethernet frames that the OLT should send to the ONU under test in the downlink direction, the statistical number of downlink Ethernet frames, and the number of Ethernet frames received by the ONU under test, and / or by comparing the number of Ethernet frames that the ONU under test should send to the OLT in the uplink direction, the statistical number of uplink Ethernet frames, and the number of Ethernet frames received by the OLT, the location where the Ethernet frame loss occurred is determined.

2. The method according to claim 1, characterized in that, The step of extracting downlink Ethernet frame fragmentation information and counting the number of downlink Ethernet frames of the tested ONU includes: in the downlink XGEM frames, counting the number of all downlink XGEM frames where the XGEM port-ID field is a specified XGEMport-ID and the LF field is 1, to obtain the number of downlink Ethernet frames.

3. The method according to claim 1, characterized in that, The step of decapsulating the uplink FS burst using the downlink bandwidth mapping information corresponding to the ONU under test includes: delimiting the data frames using the configuration template in the downlink bandwidth mapping information, and extracting the uplink XGEM frame corresponding to the ONU under test from the payload of the uplink FS burst.

4. The method according to claim 1, characterized in that, The step of extracting the uplink Ethernet frame fragmentation information of the tested ONU and counting the number of uplink Ethernet frames includes: in the uplink XGEM frames, counting the number of all uplink XGEM frames where the XGEM port-ID field is a specified XGEM port-ID and the LF field is 1, to obtain the number of uplink Ethernet frames.

5. An apparatus for counting the number of Ethernet frames in a 50G PON network, used to implement the method described in any one of claims 1 to 4, characterized in that, include: The system comprises: a first optical transceiver module, a second optical transceiver module, a data storage module, a downlink data analysis module, an uplink data analysis module, an input module, and an output module. The first optical transceiver module is used to receive downlink PON optical signals, convert them into electrical layer data for transmission to the data storage module, and forward uplink PON optical signals. The second optical transceiver module is used to receive uplink PON optical signals, convert them into electrical layer data for transmission to the data storage module, and forward downlink PON optical signals. The data storage module is used to store the data received and transmitted by the first optical transceiver module and the data received and transmitted by the second optical transceiver module, and to provide data to the uplink data analysis module and the downlink data analysis module. The downlink data analysis module is used to decapsulate downlink FS frames, extract downlink bandwidth mapping information of the ONU under test, and send the downlink bandwidth mapping information to the uplink data analysis module to extract downlink Ethernet frame fragmentation information and count the number of downlink Ethernet frames of the ONU under test. The uplink data analysis module is used to decapsulate the uplink FS burst through the downlink bandwidth mapping information corresponding to the ONU under test, extract the uplink Ethernet frame fragmentation information of the ONU under test, and count the number of uplink Ethernet frames. The input module is used to input the ONU identifier and XGEM port-ID used by the ONU under test; The output module is used to output the number of downlink Ethernet frames and the number of uplink Ethernet frames to determine the location where Ethernet frame loss occurred.

6. The apparatus according to claim 5, characterized in that, The first optical transceiver module is connected to the OLT, and the second optical transceiver module is connected to the ONU.

7. The apparatus according to claim 5, characterized in that, The first optical transceiver module is connected to the OLT, and the second optical transceiver module is connected to the ODN.

8. The apparatus according to claim 5, characterized in that, The first optical transceiver module is connected to the ODN, and the second optical transceiver module is connected to the ONU.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-4.

10. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Service data transmission method, related equipment and digital processing chip

    CN112671462A

  • ONU fault processing method, ONU, PON system and storage medium

    CN112822229A