Message forwarding method and device, OLT device and storage medium
By introducing a logical binding mechanism between multiple XFI interfaces and OLT interfaces between the NP forwarding chip and the FPGA chip, the problem that the XFI interface in the OLT device can only be bound to one OLT interface is solved, enabling the OLT device to connect more ONUs and improving the performance of the PON network.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NEW H3C TECH CO LTD
- Filing Date
- 2025-09-29
- Publication Date
- 2026-06-19
AI Technical Summary
In existing technologies, the XFI interface between the NP forwarding chip and the FPGA chip of the optical line terminal (OLT) device can only be bound to one OLT interface, which limits the number of ONUs that the OLT device can connect to, resulting in the PON network performance not being fully utilized.
A logical binding mechanism between multiple XFI interfaces and multiple OLT interfaces is introduced between the NP forwarding chip and the FPGA chip. By carrying the identifier of the OLT interface and the binding relationship of the XFI interface in the GEM VLAN information, accurate packet forwarding is achieved.
It enables dynamic sharing of multiple OLT interfaces under one XFI interface, making full use of the forwarding capability and port bandwidth of the NP forwarding chip, thereby improving the performance of the PON network.
Smart Images

Figure CN121310002B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to message forwarding methods, apparatus, OLT devices and storage media. Background Technology
[0002] Passive Optical Network (PON) is a core technology in the field of fiber optic access. Fully utilizing the forwarding capabilities of the Network Processor (NP) chip in the Optical Line Terminal (OLT), which is responsible for high-speed data forwarding, is crucial for improving the performance of the PON network.
[0003] Currently, the message forwarding method of Optical Line Terminal (OLT) restricts the communication between NP forwarding chips and PON chips (i.e., Field-Programmable Gate Array (FPGA) chips). One expansive firmware interface (XFI) on the NP forwarding chip can only be bound to one OLT interface on the FPGA chip. This limits the number of optical network units (ONUs) that the OLT device can connect to, which restricts the full utilization of the forwarding chip's performance and thus affects the performance of the PON network. Summary of the Invention
[0004] In view of this, embodiments of this application provide a message forwarding method, apparatus, OLT device, and storage medium to increase the number of ONUs connected to the OLT device, thereby fully utilizing the performance of the PON chip and improving the performance of the PON network.
[0005] This application provides a message forwarding method applied to an optical line terminal (OLT) device. The OLT device includes a network processor (NP) forwarding chip and a field-programmable gate array (FPGA) chip. The NP forwarding chip has multiple XFI interfaces, and the FPGA chip has multiple OLT interfaces. The method includes:
[0006] When the FPGA chip encapsulates the first packet received by the first OLT interface with Gigabit Ethernet Encapsulated Virtual Local Area Network (GEM VLAN) information, the first GEM VLAN information carries the GEM PORT ID corresponding to the first OLT interface and the identifier of the first OLT interface. Through the XFI interface indicated by the GEM PORT ID carried in the first GEM VLAN information, the first packet encapsulated with the first GEM VLAN information is sent to the NP forwarding chip, so that the NP forwarding chip learns the binding relationship between the GEMPORT ID carried in the first GEM VLAN information, the identifier of the first OLT interface, and the source MAC address carried in the first packet. Multiple OLT interfaces bound to one XFI interface correspond to the same GEMPORT ID.
[0007] When the second packet destined for the Optical Network Unit (ONU) is encapsulated with second GEM VLAN information via the NP forwarding chip, the GEM PORT ID and OLT interface identifier matching the destination MAC address of the second packet are obtained from the already learned binding relationship between the source MAC address, GEM PORT ID, and OLT interface identifier. The obtained GEM PORT ID and OLT interface identifier are carried in the second GEM VLAN information. The GEM PORT ID carried in the second GEM VLAN information is used to indicate the XFI port required for forwarding the second packet on the NP forwarding chip. The OLT interface identifier carried in the second GEM VLAN information is used to indicate the OLT interface required for forwarding the second packet on the FPGA chip.
[0008] The second packet containing the second GEM VLAN information is sent to the FPGA chip via the XFI interface indicated by the GEM PORT ID on the NP forwarding chip; and a second packet stripped of the second GEM VLAN information is sent to the ONU device via the OLT interface indicated by the identifier of the OLT interface carried in the second GEM VLAN information on the FPGA chip.
[0009] This application also provides a message forwarding device.
[0010] This device is applied to an optical line terminal (OLT) device, which includes a network processor (NP) forwarding chip and a field-programmable gate array (FPGA) chip. The NP forwarding chip has multiple XFI interfaces, and the FPGA chip has multiple OLT interfaces. The device includes:
[0011] The encapsulation module is used to encapsulate first gigabit wireless network encapsulation virtual local area network (GEM VLAN) information into a first packet received by the first OLT interface through the FPGA chip. The first GEM VLAN information carries the gigabit wireless network encapsulation port identifier (GEM PORT ID) corresponding to the first OLT interface and the identifier of the first OLT interface. Through the XFI interface indicated by the GEM PORT ID carried in the first GEM VLAN information, the module sends a first packet encapsulated with the first GEM VLAN information to the NP forwarding chip, so that the NP forwarding chip learns the binding relationship between the GEM PORT ID carried in the first GEM VLAN information, the identifier of the first OLT interface, and the source MAC address carried in the first packet. Multiple OLT interfaces bound to one XFI interface correspond to the same GEM PORT ID.
[0012] When the second packet destined for the Optical Network Unit (ONU) is encapsulated with second GEM VLAN information via the NP forwarding chip, the GEM PORT ID and OLT interface identifier matching the destination MAC address of the second packet are obtained from the already learned binding relationship between the source MAC address, GEM PORT ID, and OLT interface identifier. The obtained GEM PORT ID and OLT interface identifier are carried in the second GEM VLAN information. The GEM PORT ID carried in the second GEM VLAN information is used to indicate the XFI port required for forwarding the second packet on the NP forwarding chip. The OLT interface identifier carried in the second GEM VLAN information is used to indicate the OLT interface required for forwarding the second packet on the FPGA chip.
[0013] The forwarding module is used to send a second packet encapsulating the second GEM VLAN information to the FPGA chip through the XFI interface indicated by the GEM PORT ID on the NP forwarding chip; and to send a second packet stripped of the second GEM VLAN information to the ONU device through the OLT interface indicated by the identifier of the OLT interface carried in the second GEM VLAN information on the FPGA chip.
[0014] This application embodiment also provides an OLT device, including: a network processor NP forwarding chip and a field-programmable gate array (FPGA) chip; one 10 Gigabit serial independent XFI interface of the NP forwarding chip is bound to N OLT interfaces on the FPGA chip;
[0015] The FPGA chip is used to encapsulate a first gigabit wireless network encapsulation virtual local area network (GEM VLAN) information into a first packet received by the first OLT interface. In the first GEM VLAN information, the chip carries the gigabit wireless network encapsulation port identifier (GEM PORT ID) corresponding to the first OLT interface and the identifier of the first OLT interface. Through the XFI interface indicated by the GEM PORT ID carried in the first GEM VLAN information, the chip sends a first packet encapsulated with the first GEM VLAN information to the NP forwarding chip, so that the NP forwarding chip learns the binding relationship between the GEM PORT ID carried in the first GEM VLAN information, the identifier of the first OLT interface, and the source MAC address carried in the first packet. Multiple OLT interfaces bound to one XFI interface correspond to the same GEM PORT ID.
[0016] The NP forwarding chip is used to, when encapsulating second GEM VLAN information into a second packet destined for an Optical Network Unit (ONU) device, obtain the GEM PORT ID and OLT interface identifier matching the destination MAC address of the second packet from the already learned binding relationship between the source MAC address, GEM PORT ID, and OLT interface identifier; carry the obtained GEM PORT ID and OLT interface identifier in the second GEM VLAN information; the GEM PORT ID carried in the second GEM VLAN information is used to indicate the XFI port required for forwarding the second packet on the NP forwarding chip; the OLT interface identifier carried in the second GEM VLAN information is used to indicate the OLT interface required for forwarding the second packet on the FPGA chip;
[0017] The second packet, which encapsulates the second GEM VLAN information, is sent to the FPGA chip through the XFI interface indicated by the GEM PORT ID;
[0018] The FPGA chip is also used for:
[0019] The second message, stripped of the second GEM VLAN information, is sent to the ONU device through the OLT interface indicated by the identifier of the OLT interface on the FPGA chip.
[0020] This application also provides a machine-readable storage medium storing computer program instructions that, when executed, enable the implementation of the steps described above.
[0021] As can be seen from the above technical solution, in this embodiment, when the FPGA chip encapsulates the first GEM VLAN information into the first packet received by the first OLT interface, in addition to carrying the GEM PORTID matching the source MAC address of the first packet, it also adds the identifier of the OLT interface, and then sends it to the NP forwarding chip through the XFI interface indicated by the carried GEM PORT ID. This allows the NP forwarding chip to learn the binding relationship between the GEM PORT ID carried in the first GEM VLAN information, the newly added identifier of the OLT interface, and the source MAC address carried in the first packet. When the NP forwarding chip encapsulates the second packet destined for the ONU device with the second GEM VLAN, it obtains the GEM PORT ID and OLT interface identifier that match the destination MAC address of the second packet from the learned binding relationship between the source MAC address, GEM PORT ID, and OLT interface identifier. The obtained GEM PORT ID and OLT interface identifier are then carried in the second GEM VLAN information, enabling the second packet to be sent to the FPGA chip through the XFI interface indicated by the GEM PORT ID in the second GEM VLAN. The FPGA chip then sends the packet to the ONU device through the OLT interface indicated by the OLT interface identifier carried in the second GEM VLAN. Thus, even when one XFI interface is logically bound to multiple OLT interfaces, the FPGA chip can accurately send the second packet out through the OLT interface indicated by the OLT interface identifier carried in the second GEM VLAN, achieving precise forwarding.
[0022] The method in this application embodiment enables precise forwarding even when one XFI interface is bound to multiple OLT interfaces. This allows the resources of one XFI interface on the NP forwarding chip to be dynamically shared by ONUs under multiple OLT ports bound to it. Compared to the logical binding of one XFI interface to one OLT interface in traditional OLT devices, one OLT interface only uses one XFI interface resource, which makes fuller and more efficient use of the forwarding capability and port bandwidth of the NP forwarding chip, thereby effectively improving the performance of the network system. Attached Figure Description
[0023] Figure 1 This is a schematic diagram of the structure of an OLT device in the related technology provided in the embodiments of this application;
[0024] Figure 2 This is a schematic diagram of the structure of the OLT device provided in the embodiments of this application;
[0025] Figure 3 A structural schematic diagram illustrating the process flow of the method provided in this application embodiment;
[0026] Figure 4 This is a schematic diagram of GEM VLAN information provided in an embodiment of this application;
[0027] Figure 5 This is a schematic diagram of the device provided in the embodiments of this application;
[0028] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0029] To enable those skilled in the art to better understand the technical solutions provided in the embodiments of this application, and to make the above-mentioned objectives, features and advantages of the embodiments of this application more apparent and understandable, the technical solutions in the embodiments of this application will be further described in detail below with reference to the accompanying drawings.
[0030] Before introducing the method provided in the embodiments of this application, let's first combine... Figure 1 The technical problems existing in the OLT device shown are explained:
[0031] See Figure 1 , Figure 1 This is a schematic diagram of the structure of the OLT device provided in the embodiments of this application.
[0032] like Figure 1 As shown, the OLT device mainly consists of three parts: a central processing unit (CPU) responsible for control plane and protocol message processing, an NP forwarding chip responsible for high-speed data forwarding, and a PON chip (i.e., FPGA chip) responsible for PON service processing.
[0033] exist Figure 1 In the architecture shown, the XFI interface from the NP forwarding chip and the OLT interface on the FPGA are in one-to-one correspondence.
[0034] Data flow:
[0035] Uplink: ONU connected to OLT0 interface --- OLT0 --- FPGA chip --- XFI0 --- NP forwarding chip --- Ethernet port
[0036] Downlink: Ethernet port --- NP forwarding chip --- XFI0 --- FPGA --- OLT0 --- ONU connected to the OLT interface
[0037] Protocol message flow:
[0038] Uplink: ONU connected to OLT0 interface --- OLT0 --- FPGA --- XFI0 --- NP forwarding chip --- CPU
[0039] Downlink: CPU---NP forwarding chip---XFI0---FPGA---OLT0---ONU connected to OLT0 interface
[0040] at present Figure 1 The packet forwarding method in the illustrated architecture is as follows: The NP forwarding chip encapsulates both protocol and data packets with a GEM VLAN after the Ethernet header. The GEM VLAN occupies 2 bytes, and its GEM PORT ID indicates the XFI interface. The forwarding chip forwards the packet to the FPGA chip based on the XFI interface indicated by this GEM VLAN. The FPGA chip then forwards the packet to the ONU based on the OLT interface corresponding to the XFI interface indicated by the GEM PORT ID in the GEM VLAN.
[0041] This message forwarding method determines that one XFI interface is bound to one OLT interface (abbreviated as: one-to-one binding). Because the GEM PORT ID indicates the XFI interface, if one XFI interface corresponds to multiple OLT interfaces, such as two OLT interfaces, the FPGA chip cannot know which OLT interface to send the message to when it receives the message. Therefore, in the prior art, only one OLT interface can correspond to one OLT interface.
[0042] However, due to limitations in the performance of the NP forwarding chip and the XFI interface, the number of XFI interfaces that the NP forwarding chip can support is limited. This means that the number of OUN devices that an OLT device can connect to is fixed. Furthermore, the data forwarding capacity of the OLT interface is generally greater than that of the OLT interface. In a one-to-one binding architecture, the performance of the NP forwarding chip cannot be fully utilized, which will affect network performance.
[0043] Based on this, embodiments of this application provide a message forwarding method, apparatus, OLT device, and storage medium to increase the number of ONUs connected to the OLT device, thereby fully utilizing the performance of the PON chip and improving the performance of the PON network.
[0044] See Figure 2 , Figure 2 This is a schematic diagram of the structure of the OLT device provided in an embodiment of this application. Figure 2 As shown, the OLT device includes a CPU, an NP forwarding chip, and an FPGA chip. The NP forwarding chip has multiple XFI interfaces, and the FPGA chip has multiple OLT interfaces.
[0045] The following is based on Figure 2 The OLT device shown illustrates the method provided in the embodiments of this application.
[0046] See Figure 3 , Figure 3 This is a flowchart illustrating the method provided in an embodiment of this application.
[0047] like Figure 3 As shown, the process may include the following steps:
[0048] S301, when the FPGA chip encapsulates the first packet received by the first OLT interface with the first Gigabit Ethernet Encapsulated Virtual Local Area Network (GEM VLAN) information, the first GEM VLAN information carries the GEM PORT ID corresponding to the first OLT interface and the identifier of the first OLT interface. Through the XFI interface indicated by the GEM PORT ID carried in the first GEM VLAN information, the first packet encapsulated with the first GEM VLAN information is sent to the NP forwarding chip, so that the NP forwarding chip learns the binding relationship between the GEM PORT ID carried in the first GEM VLAN information, the identifier of the first OLT interface, and the source MAC address carried in the first packet. Multiple OLT interfaces bound to one XFI interface correspond to the same GEM PORT ID.
[0049] In this embodiment, the first interface is any interface on the FPGA chip.
[0050] In this embodiment, during the learning phase, the first GEM VLAN information is improved when the first packet is sent uplink. In related technologies, the GEM VLAN occupies 2 bytes (16 bits), with the first 10 bits being the GEM PORT ID and the remaining 6 bits being empty. In this embodiment, the identifier of the newly added OLT interface occupies M bits in the first GEM VLAN information. These M bits are consecutive to the bits occupied by the original GEM PORT ID in the first GEM VLAN information, and M is greater than or equal to 1.
[0051] First, set a GEM PORT ID for each XFI interface. Then, depending on the network structure, configure the identifier of the XFI interface on the OLT interface connected to the ONU device on the FPGA to determine which OUN device's message should be sent to the NP forwarding chip via which XFI interface. In this way, multiple OLT interfaces can form a logical binding relationship with one XFI interface through the same GEM PORT ID.
[0052] The identifier for each OLT interface on the FPGA chip is also pre-configured. Specifically, the value of each bit in the GEM VLAN information is either a first value (e.g., 1) or a second value (e.g., 0). M is determined based on how many OLT interfaces are logically bound to one XFI port. The setting of M follows the principle: 1 XFI interface corresponds to 2 M There are multiple OLT interfaces. For example, if you want to logically bind one XFI interface to two OLT interfaces, then M = 1. Of course, if you need to logically bind one XFI interface to N OLT interfaces, you can use more bits to indicate one OLT interface. If you want to bind one XFI interface to four OLT interfaces, then M = 2. Thus, different OLT interfaces are identified by the combination of the first and second values on M bits. M One OLT interface.
[0053] For example, such as Figure 4 As shown, when M=1, the GEM PORT ID occupies 8 bits of the first byte and the first and second bits of the second byte in the first GEM VLAN information, while the OLT interface identifier occupies the third bit of the second byte in the first GEM VLAN information. The identifier for the OLT11 interface is 0, the identifier for the OLT12 interface is 1, the identifier for the OLT13 interface is 0, and the identifier for the OLT14 interface is 1. Thus, originally... Figure 1 The OLT device shown can only connect 4 OLT interfaces, but now it can connect 8 OLT interfaces. While controlling costs, the number of OLT interfaces has been directly doubled, thus doubling the number of ONUs that can be connected to this PON board.
[0054] When M=2, the OLT interface identifier occupies the 3rd and 4th bits of the 2nd byte in the first GEM VLAN information. Each value (00, 01, 10, 11) represents an OLT interface. Thus, one XFI interface can correspond to four OLT interfaces: OLT11 is identified as 00, OLT12 as 01, OLT13 as 10, and OLT14 as 11. However, due to limitations in chip performance and the number of bits in the GEM VLAN, currently, a maximum of one XFI interface can correspond to 64 OLT interfaces.
[0055] The first packet is encapsulated with the first GEM VLAN information. In addition to the first GEM VLAN information encapsulation, an Ethernet header (containing the five elements of the packet: source IP address, source MAC address, destination IP address, destination MAC address, and protocol type) is also encapsulated. The encapsulated first packet is then sent to the NP forwarding chip via the XFI interface indicated by the GEM PORT ID. Upon receiving the encapsulated first packet, the NP forwarding chip performs a decapsulation operation to remove the first GEM VLAN information. The NP forwarding chip learns the binding relationship between the GEM PORT ID carried in the first GEM VLAN information, the OLT interface identifier, and the source MAC address in the Ethernet header.
[0056] The above provides a detailed explanation of the learning phase of uplink messages.
[0057] S302, when the second packet destined for the Optical Network Unit (ONU) device is encapsulated with second GEM VLAN information via the NP forwarding chip, the GEM PORT ID and OLT interface identifier that match the destination MAC address of the second packet are obtained from the already learned binding relationship between the source MAC address, GEM PORT ID, and OLT interface identifier; the obtained GEM PORT ID and OLT interface identifier are carried in the second GEM VLAN information; the GEM PORT ID carried in the second GEM VLAN information is used to indicate the XFI port required for forwarding the second packet on the NP forwarding chip; the OLT interface identifier carried in the second GEM VLAN information is used to indicate the OLT interface required for forwarding the second packet on the FPGA chip.
[0058] In this embodiment, the second packet is a unicast packet during the downlink packet forwarding phase. To enable the second packet to be sent to the corresponding OUN device via the corresponding XFI interface and OLT interface, the second GEM VLAN information has been improved. In addition to carrying the GEM PORT ID indicating the XFI interface required for forwarding the second packet, the second GEM VLAN information also includes an identifier for the OLT interface required for forwarding the second packet. In this embodiment, the newly added OLT interface identifier occupies M bits in the second GEM VLAN information. These M bits are consecutive to the bits occupied by the original GEM PORT ID in the second GEM VLAN information. Similarly, M=1, and the OLT interface identifier occupies the third bit of the second byte in the second GEM VLAN information. That is, the preset formats of the uplink and downlink GEM VLAN information are similar.
[0059] Through the learning phase of step S301 described above, the NP forwarding chip locally stores the binding relationship between the MAC address, OLT interface identifier, and GEM PORT ID. Therefore, based on the destination MAC address of the second packet, the GEM PORT ID corresponding to the XFI interface that the second packet needs to pass through can be obtained. Furthermore, based on the destination MAC address of the second packet, the identifier of the OLT interface corresponding to the OLT interface that the second packet needs to pass through can be obtained. Thus, after constructing the second GEM VLAN information according to the set format using the GEM PORT ID matching the destination MAC address and the identifier of the OLT interface matching the destination MAC address, it is possible to determine which XFI interface and which OLT interface the second packet encapsulating the second GEM VLAN information will be sent to the OUN device.
[0060] It should be noted that downlink messages can also be broadcast messages or multicast messages. The situation where downlink messages are broadcast messages or multicast messages will be described in detail later with specific examples, and will not be repeated here.
[0061] S303 sends a second packet containing the second GEM VLAN information to the FPGA chip via the XFI interface indicated by the GEM PORT ID on the NP forwarding chip; and sends a second packet stripped of the second GEM VLAN information to the ONU device via the OLT interface indicated by the OLT interface identifier on the FPGA chip.
[0062] This concludes the process. Figure 3 The process is shown below.
[0063] pass Figure 3As shown in the process, when the FPGA chip encapsulates the first GEM VLAN information into the first packet received by the first OLT interface, in addition to carrying the GEM PORT ID matching the source MAC address of the first packet, it also adds the identifier of the OLT interface, and then sends it to the NP forwarding chip through the XFI interface indicated by the carried GEM PORT ID. This allows the NP forwarding chip to learn the binding relationship between the GEM PORT ID carried in the first GEM VLAN information, the newly added identifier of the OLT interface, and the source MAC address carried in the first packet. When the NP forwarding chip encapsulates the second packet destined for the ONU device with the second GEM VLAN, it obtains the GEM PORT ID and OLT interface identifier that match the destination MAC address of the second packet from the already learned binding relationship between the source MAC address, GEM PORT ID, and OLT interface identifier. The obtained GEM PORT ID and OLT interface identifier are then carried in the second GEM VLAN information, enabling the second packet to be sent to the FPGA chip through the XFI interface indicated by the GEM PORT ID in the second GEM VLAN. The FPGA chip then sends the packet to the ONU device through the OLT interface indicated by the OLT interface identifier carried in the second GEM VLAN. Thus, even when one XFI interface is logically bound to multiple OLT interfaces, the FPGA chip can accurately send the second packet out through the OLT interface indicated by the OLT interface identifier carried in the second GEM VLAN, achieving precise forwarding.
[0064] The method in this application embodiment enables precise forwarding even when one XFI interface is bound to multiple OLT interfaces. This allows the resources of one XFI interface on the NP forwarding chip to be dynamically shared by ONUs under multiple OLT ports bound to it. Compared to the logical binding of one XFI interface to one OLT interface in traditional OLT devices, one OLT interface only uses one XFI interface resource, which makes fuller and more efficient use of the forwarding capability and port bandwidth of the NP forwarding chip, thereby effectively improving the performance of the network system.
[0065] The following is a detailed explanation of downlink broadcast or multicast messages:
[0066] Through the learning phase of step S301 described above, the NP forwarding chip learns the binding relationship between the MAC address, OLT interface identifier, and GEMPORT ID. Specifically, the mapping relationship between the MAC address and GEM PORT ID is stored in the MAC table, and the mapping relationship between the MAC address, OLT interface identifier, and GEM PORT ID is stored in the GEM VLAN mapping table.
[0067] When a third packet is sent via the NP forwarding chip to all ONU devices within the target Virtual Local Area Network (VLAN), and this third packet is either a broadcast or multicast packet, carrying the destination MAC address as the default MAC address of the VLAN, not the MAC address of a specific ONU device, the MAC address is not in the MAC table, and the corresponding GEM PORT ID cannot be obtained. In this case, default encapsulation information is used as the third GEM VLAN information for encapsulation. The default encapsulation information is used to indicate multiple XFI interfaces on the NP forwarding chip belonging to this VLAN, and multiple OLT interfaces on the FPGA chip belonging to this VLAN.
[0068] It should be noted that the NP forwarding chip pre-defines the default encapsulation information for each VLAN, the mapping relationship of the default MAC address for that VLAN, and the mapping relationship of multiple XFI interfaces and multiple OLT interfaces for that VLAN. The default encapsulation information can be obtained based on the default MAC address carried in the packet.
[0069] After encapsulating the third message, the encapsulated third message is copied according to the number of XFI interfaces in the VLAN, and the copied message is sent to the PFGA chip through each XFI interface in the VLAN. After decapsulation, the PFGA chip copies the third message according to the number of OLT interfaces belonging to the VLAN, and broadcasts or multicasts the third message through the OLT interfaces belonging to the VLAN.
[0070] For example, when broadcasting a message, Figure 2 The network structure is a VLAN. At this time, the default encapsulation information of the VLAN is 0x4000. The encapsulated third packet is copied 4 times and sent through XFI1, XFI2, XFI3 and XFI4 respectively. Then, the 4 copies are copied into 8 packets and sent through OLT11, OLT12, OLT13, OLT14, OLT21, OLT22, OLT23 and OLT24 respectively.
[0071] The above provides a detailed explanation of downlink broadcast or multicast messages.
[0072] It is known that the XFI interface on the NP forwarding chip can be bound not only to the OLT interface on the FPGA chip, but also directly to the Ethernet port. The following describes the transmission of packets to the Ethernet port:
[0073] As an example, when the fourth packet destined for an Ethernet network device is encapsulated with fourth GEM VLAN information by the NP forwarding chip, the fourth GEM VLAN information carries a GEM PORT ID. The GEM PORT ID indicates an XFI interface on the NP forwarding chip, used to indicate the XFI port required for forwarding the fourth packet on the NP forwarding chip. This XFI interface is determined based on the destination MAC address of the fourth packet.
[0074] Since the XFI interface is bound to the Ethernet port, the fourth GEM VLAN information only carries the GEM PORT ID. The NP forwarding chip's local MAC table stores the correspondence between MAC addresses and GEM PORT IDs (this MAC address is the MAC address of the Ethernet device). At this time, the GEM PORT ID can only be found in the MAC table, and the corresponding OLT interface identifier cannot be found in the GEM VLAN mapping table. Therefore, the GEM PORT ID carried by the fourth GEM VLAN information can be determined based on the MAC address of the fourth packet.
[0075] The NP forwarding chip sends the XFI interface bound to the Ethernet port indicated by the GEM PORT ID in the fourth GEM VLAN information of the encapsulated fourth packet to the Ethernet device.
[0076] The following section provides a detailed explanation of transmitting messages to the Ethernet port.
[0077] To illustrate this solution in more detail, the method of this application will be described in more detail below with reference to specific embodiments:
[0078] I. Learning Stage:
[0079] Data packet / protocol packet uplink and downlink:
[0080] The first uplink GEM VLAN is used to guide the learning of source MAC addresses on the OLT and XFI interfaces. Specifically, it learns the GEM PORT ID carried in the first GEM VLAN information, the OLT interface identifier, and the binding relationship between the source MAC addresses. Then, after the packet is forwarded to the NP forwarding chip, the NP forwarding chip removes the GEM VLAN and forwards it from the corresponding interface according to the MAC table on the NP forwarding chip.
[0081] Specifically, the steps include the following:
[0082] 1. Message X travels from the ONU device to the OLT interface and enters the FPGA chip. The FPGA chip encapsulates the corresponding first GEMVLAN into message X.
[0083] After each ONU device registers, it knows which OLT interface to transmit packets through. Each OLT interface on the FPGA chip is assigned a GEM PORT ID and a corresponding OLT interface identifier. For each ONU device, by identifying which OLT interface it connects to during registration, the pre-configured OLT interface identifier and the pre-assigned GEM PORT ID on that OLT interface can be obtained. When encapsulating the first GEM VLAN based on the obtained OLT interface identifier and GEM PORT ID, a mapping relationship is established between the source MAC address carried in the packets sent by the ONU device, the obtained GEM PORT ID, and the OLT interface identifier.
[0084] 2. The FPGA chip sends the encapsulated packet X to the NP forwarding chip (the NP forwarding chip type can be CTC) from the XFI port indicated by the GEM PORT ID in the first GEM VLAN.
[0085] At this point, message X has completed its uplink.
[0086] 3. After receiving packet X, the NP forwarding chip queries its local MAC table to obtain the outgoing port and removes the GEM VLAN header. The NP forwarding chip then converts packet X into an Ethernet packet and sends it out according to the corresponding outgoing port.
[0087] That is, the local MAC address is queried to obtain the GEM PORT ID of the destination MAC address (at this time, the destination MAC address is generally the MAC address of the pre-configured Ethernet device). If no matching GEM PORT ID (and OLT interface identifier) is found in the local GEM VLAN mapping table, the NP forwarding chip uses the fourth GEM VLAN with only the GEM PORT ID to encapsulate the packet X, and the encapsulated packet X is forwarded out according to the Ethernet port connected to the XFI interface indicated by the fourth GEM VLAN encapsulation.
[0088] Of course, if a matching GEM PORT ID and OLT interface identifier for the destination MAC address are found in the local GEM VLAN mapping table, then the downstream operation will be performed according to the subordinate unicast message.
[0089] At this point, message X completes its downlink.
[0090] II. Learning phase completed, application phase:
[0091] Downlink data message / protocol message: Prerequisite: Learning has been completed.
[0092] (a) A unicast message includes the following steps:
[0093] 1. When message A enters the NP forwarding chip, the NP forwarding chip queries its local MAC table to obtain the GEM PORT ID that matches the destination MAC address of message A.
[0094] Finding a matching GEM PORT ID for the destination MAC address in the MAC table only indicates that mass transmission is not required. To determine whether the transmission should be sent to an OUN or an Ethernet device, it is necessary to query the GEM VLAN mapping table.
[0095] 2. Then, look up the GEM VLAN mapping table to obtain the GEM PORT ID and OLT interface identifier that match the destination MAC address (that is, to know the corresponding XFI interface and the corresponding OLT interface), and obtain the second GEM VLAN information. Use the second GEM VLAN information to encapsulate the packet X, and 3. send it to the FPGA chip according to the XFI port indicated by the second GEM VLAN information.
[0096] 3. After receiving the encapsulated message A, the FPGA chip decapsulates it and sends message A to the ONU device connected to the corresponding OLT interface according to the identifier of the OLT interface indicated by the second GEM VLAN information.
[0097] (ii) Broadcasting or multicasting specifically includes the following steps:
[0098] 1. When message B enters the NP forwarding chip, the corresponding GEM PORT ID cannot be found in the MAC table of the NP forwarding chip.
[0099] 2. Directly use a fixed GEM VLBN to encapsulate the GEM VLBN header, such as 0X4000. The encapsulated message B is copied and sent to the FPGB chip according to all XFI interfaces in VLBN1 indicated by the fixed GEM VLBN.
[0100] 3. The FPGB chip decapsulates the packaged message B and sends all OLT interface headers in VLBN1, as indicated by the fixed GEMVBN, to the corresponding ONU device.
[0101] The methods provided in the embodiments of this application have been described above. The apparatus provided in the embodiments of this application is described below:
[0102] See Figure 5 , Figure 5 This is a structural diagram of the device provided in an embodiment of this application. The device is applied to an Optical Line Terminal (OLT) device, which includes a Network Processor (NP) forwarding chip and a Field Programmable Gate Array (FPGA) chip; the NP forwarding chip has multiple XFI interfaces, and the FPGA chip has multiple OLT interfaces. Figure 5As shown, the device includes an encapsulation module 501 and a forwarding module 502.
[0103] The encapsulation module 501 is used to encapsulate first gigabit wireless network encapsulation virtual local area network (GEM VLAN) information into a first packet received by the first OLT interface through the FPGA chip. In the first GEM VLAN information, the module carries the gigabit wireless network encapsulation port identifier (GEM PORT ID) corresponding to the first OLT interface and the identifier of the first OLT interface. Through the XFI interface indicated by the GEM PORT ID carried in the first GEM VLAN information, the module sends the first packet encapsulated with the first GEM VLAN information to the NP forwarding chip, so that the NP forwarding chip learns the binding relationship between the GEM PORT ID carried in the first GEM VLAN information, the identifier of the first OLT interface, and the source MAC address carried in the first packet. Multiple OLT interfaces bound to one XFI interface correspond to the same GEM PORT ID.
[0104] When the second packet destined for the Optical Network Unit (ONU) is encapsulated with second GEM VLAN information via the NP forwarding chip, the GEM PORT ID and OLT interface identifier matching the destination MAC address of the second packet are obtained from the already learned binding relationship between the source MAC address, GEM PORT ID, and OLT interface identifier. The obtained GEM PORT ID and OLT interface identifier are carried in the second GEM VLAN information. The GEM PORT ID carried in the second GEM VLAN information is used to indicate the XFI port required for forwarding the second packet on the NP forwarding chip. The OLT interface identifier carried in the second GEM VLAN information is used to indicate the OLT interface required for forwarding the second packet on the FPGA chip.
[0105] The forwarding module 502 is used to send a second packet containing the second GEM VLAN information to the FPGA chip through the XFI interface indicated by the GEM PORT ID on the NP forwarding chip; and to send a second packet stripped of the second GEM VLAN information to the ONU device through the OLT interface indicated by the identifier of the OLT interface carried in the second GEM VLAN information on the FPGA chip.
[0106] As an example, the identifier of the first OLT interface occupies M bits in the first GEM VLAN information; the M bits are consecutive to the bits occupied by the existing GEM PORT ID in the first GEM VLAN information; M is greater than or equal to 1;
[0107] The identifier of the OLT interface carried in the second GEM VLAN information occupies M bits in the second GEM VLAN information; the M bits are consecutive to the bits occupied by the existing GEM PORT ID in the second GEM VLAN information.
[0108] As an example, M=1; the identifier of the first OLT interface occupies the third bit of the second byte in the first GEM VLAN information; the identifier of the OLT interface carried in the second GEM VLAN information occupies the third bit of the second byte in the second GEM VLAN information.
[0109] As an example, the second message is a unicast message.
[0110] As an example, the encapsulation module is also used to: when the third packet sent to all ONU devices in the target virtual local area network VLAN is encapsulated with third GEM VLAN information through the NP forwarding chip, the third packet is a broadcast packet or a multicast packet; the default encapsulation information of the VLAN is the third GEM VLAN information, and the default encapsulation information is used to indicate multiple XFI interfaces on the NP forwarding chip that belong to the VLAN, and multiple OLT interfaces on the FPGA chip that belong to the VLAN;
[0111] The forwarding module is also used to: send a third packet encapsulated with the third GEM VLAN information to the FPGA chip through multiple XFI interfaces indicated by the default encapsulation information on the NP forwarding chip; and send a third packet stripped of the third GEM VLAN information to all OUN devices in the VLAN through multiple OLT interfaces indicated by the default encapsulation information on the FPGA chip.
[0112] As an example, the encapsulation module is also used to: when encapsulate the fourth GEM VLAN information of the fourth packet sent to the Ethernet network device through the NP forwarding chip, the GEM PORT ID is used to indicate the XFI port required for forwarding the fourth packet on the NP forwarding chip, and the XFI interface is determined based on the destination MAC address of the fourth packet;
[0113] The forwarding module is also used to: send a fourth packet encapsulating the fourth GEM VLAN information to the Ethernet port bound to the XFI interface via the XFI interface indicated by the GEM PORT ID on the NP forwarding chip.
[0114] This concludes the process. Figure 5 Structural description of the device shown.
[0115] This application also provides an OLT device, see details. Figure 2The device includes a network processor (NP) forwarding chip and a field-programmable gate array (FPGA) chip; the NP forwarding chip has multiple XFI interfaces, and the FPGA chip has multiple OLT interfaces.
[0116] The FPGA chip is used to encapsulate a first gigabit wireless network encapsulation virtual local area network (GEM VLAN) information into a first packet received by the first OLT interface. The first GEM VLAN information carries the gigabit wireless network encapsulation port identifier (GEM PORT ID) corresponding to the first OLT interface and the identifier of the first OLT interface. Through the XFI interface indicated by the GEM PORT ID carried in the first GEM VLAN information, the FPGA chip sends the first packet encapsulated with the first GEM VLAN information to the NP forwarding chip, enabling the NP forwarding chip to learn the binding relationship between the GEM PORT ID carried in the first GEM VLAN information, the identifier of the first OLT interface, and the source MAC address carried in the first packet. Multiple OLT interfaces are bound to one XFI interface, and multiple OLT interfaces bound to the same XFI interface correspond to the same GEM PORT ID.
[0117] The NP forwarding chip is used to encapsulate second GEM VLAN information into a second packet destined for an Optical Network Unit (ONU) device. It obtains the GEM PORT ID and OLT interface identifier matching the destination MAC address of the second packet from the learned binding relationship between the source MAC address, GEM PORT ID, and OLT interface identifier. The obtained GEM PORT ID and OLT interface identifier are carried in the second GEM VLAN information. The GEM PORT ID carried in the second GEM VLAN information indicates the XFI port required for forwarding the second packet on the NP forwarding chip. The OLT interface identifier carried in the second GEM VLAN information indicates the OLT interface required for forwarding the second packet on the FPGA chip.
[0118] The second packet, which encapsulates the second GEM VLAN information, is sent to the FPGA chip through the XFI interface indicated by the GEM PORT ID;
[0119] The FPGA chip is also used to send a second packet, stripped of the second GEM VLAN information, to the ONU device through the OLT interface indicated by the identifier on the OLT interface of the FPGA chip.
[0120] As an example, the identifier of the first OLT interface occupies M bits in the first GEM VLAN information; the M bits are consecutive to the bits occupied by the existing GEM PORT ID in the first GEM VLAN information; M is greater than or equal to 1;
[0121] The identifier of the OLT interface carried in the second GEM VLAN information occupies M bits in the second GEM VLAN information; the M bits are consecutive to the bits occupied by the existing GEM PORT ID in the second GEM VLAN information.
[0122] As an example, M=1; the identifier of the first OLT interface occupies the third bit of the second byte in the first GEM VLAN information; the identifier of the OLT interface carried in the second GEM VLAN information occupies the third bit of the second byte in the second GEM VLAN information.
[0123] As an example, the second message is a unicast message.
[0124] As an example, the NP forwarding chip is also used to: when encapsulate the third GEM VLAN information into the third message sent to all ONU devices in the target virtual local area network VLAN, the third message is a broadcast message or a multicast message; the default encapsulation information of the VLAN is the third GEM VLAN information, and the default encapsulation information is used to indicate the multiple XFI interfaces on the NP forwarding chip that belong to the VLAN, and the multiple OLT interfaces on the FPGA chip that belong to the VLAN;
[0125] The third packet, which encapsulates the third GEM VLAN information, is sent to the FPGA chip through multiple XFI interfaces indicated by the default encapsulation information.
[0126] The FPGA chip is also used to send third packets stripped of the third GEM VLAN information to all OUN devices within the VLAN through multiple OLT interfaces indicated by the default encapsulation information on the FPGA chip.
[0127] As an example,
[0128] The NP forwarding chip is also used for: when encapsulating the fourth GEM VLAN information in the fourth packet sent to the Ethernet network device through the NP forwarding chip, the fourth GEM VLAN information carries the GEM PORT ID; the GEM PORT ID is used to indicate the XFI port required on the NP forwarding chip to forward the fourth packet, and the XFI interface is determined based on the destination MAC address of the fourth packet;
[0129] The fourth packet, which encapsulates the fourth GEM VLAN information, is sent to the Ethernet port bound to the XFI interface through the XFI interface indicated by the GEM PORT ID on the NP forwarding chip.
[0130] See Figure 6 , Figure 6This is a structural diagram of an electronic device provided in an embodiment of this application. Figure 6 As shown, the hardware structure may include: a processor and a machine-readable storage medium, the machine-readable storage medium storing machine-executable instructions that can be executed by the processor; the processor is used to execute the machine-executable instructions to implement the method disclosed in the above example of this application.
[0131] Based on the same application concept as the above method, this application embodiment also provides a machine-readable storage medium storing a plurality of computer instructions, which, when executed by a processor, can implement the method disclosed in the above examples of this application.
[0132] For example, the aforementioned machine-readable storage medium can be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, etc. For instance, machine-readable storage media can be: RAM (Random Access Memory), volatile memory, non-volatile memory, flash memory, storage drives (such as hard disk drives), solid-state drives, any type of storage disk (such as optical discs, DVDs, etc.), or similar storage media, or combinations thereof.
[0133] The above description is merely an embodiment of this application and is not intended to limit 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 principle of this application should be included within the scope of the claims of this application.
Claims
1. A packet forwarding method, characterized by, This method is applied to an optical line terminal (OLT) device, which includes a network processor (NP) forwarding chip and a field-programmable gate array (FPGA) chip; the NP forwarding chip has multiple XFI interfaces, and the FPGA chip has multiple OLT interfaces; the method includes: When the FPGA chip encapsulates the first packet received by the first OLT interface with Gigabit Ethernet Encapsulated Virtual Local Area Network (GEM VLAN) information, the first GEM VLAN information carries the GEM PORT ID corresponding to the first OLT interface and the identifier of the first OLT interface. Through the XFI interface indicated by the GEM PORT ID carried in the first GEM VLAN information, the first packet encapsulated with the first GEM VLAN information is sent to the NP forwarding chip, so that the NP forwarding chip learns the binding relationship between the GEM PORT ID carried in the first GEM VLAN information, the identifier of the first OLT interface, and the source MAC address carried in the first packet. Multiple OLT interfaces bound to one XFI interface correspond to the same GEM PORT ID. When the second packet destined for the Optical Network Unit (ONU) is encapsulated with second GEM VLAN information via the NP forwarding chip, the GEM PORT ID and OLT interface identifier matching the destination MAC address of the second packet are obtained from the already learned binding relationship between the source MAC address, GEM PORT ID, and OLT interface identifier. The obtained GEM PORT ID and OLT interface identifier are carried in the second GEM VLAN information. The GEM PORT ID carried in the second GEM VLAN information is used to indicate the XFI port required for forwarding the second packet on the NP forwarding chip. The OLT interface identifier carried in the second GEM VLAN information is used to indicate the OLT interface required for forwarding the second packet on the FPGA chip. The second packet containing the second GEM VLAN information is sent to the FPGA chip via the XFI interface indicated by the GEM PORT ID on the NP forwarding chip; and a second packet stripped of the second GEM VLAN information is sent to the ONU device via the OLT interface indicated by the identifier of the OLT interface carried in the second GEM VLAN information on the FPGA chip.
2. The method of claim 1, wherein, The identifier of the first OLT interface occupies M bits in the first GEMVLAN information; the M bits are consecutive to the bits occupied by the existing GEM PORT ID in the first GEM VLAN information; M is greater than or equal to 1; The identifier of the OLT interface carried in the second GEM VLAN information occupies M bits in the second GEM VLAN information; the M bits are consecutive to the bits occupied by the existing GEM PORT ID in the second GEM VLAN information.
3. The method of claim 2, wherein, M=1; The identifier of the first OLT interface occupies the third bit of the second byte in the first GEM VLAN information; The identifier of the OLT interface carried in the second GEM VLAN information occupies the third bit of the second byte in the second GEM VLAN information.
4. The method of claim 1, wherein, The second message is a unicast message.
5. The method according to claim 1, characterized in that, The method also includes: When the NP forwarding chip encapsulates the third GEM VLAN information into a third packet destined for all ONU devices within the target VLAN, the third packet is either a broadcast packet or a multicast packet. The default encapsulation information for this VLAN is the third GEM VLAN information. The default encapsulation information is used to indicate multiple XFI interfaces on the NP forwarding chip that belong to this VLAN, and multiple OLT interfaces on the FPGA chip that belong to this VLAN. The third packet encapsulating the third GEM VLAN information is sent to the FPGA chip through multiple XFI interfaces indicated by the default encapsulation information on the NP forwarding chip; and the third packet stripped of the third GEM VLAN information is sent to all OUN devices in the VLAN through multiple OLT interfaces indicated by the default encapsulation information on the FPGA chip.
6. The method of claim 1, wherein, The method also includes: When the fourth packet destined for the Ethernet network device is encapsulated with the fourth GEM VLAN information by the NP forwarding chip, the fourth GEM VLAN information carries a GEM PORT ID; the GEM PORT ID is used to indicate the XFI port required for forwarding the fourth packet on the NP forwarding chip, and the XFI interface is determined based on the destination MAC address of the fourth packet; The fourth packet, encapsulating the fourth GEM VLAN information, is sent to the Ethernet port bound to the XFI interface via the XFI interface indicated by the GEM PORT ID on the NP forwarding chip.
7. A packet forwarding device, characterized by, This device is applied to an optical line terminal (OLT) device, which includes a network processor (NP) forwarding chip and a field-programmable gate array (FPGA) chip. The NP forwarding chip has multiple XFI interfaces, and the FPGA chip has multiple OLT interfaces. The device includes: The encapsulation module is used to encapsulate a first gigabit wireless network encapsulation virtual local area network (GEM VLAN) information into a first packet received by the first OLT interface through the FPGA chip. The first GEM VLAN information carries the gigabit wireless network encapsulation port identifier (GEM PORT ID) corresponding to the first OLT interface and the identifier of the first OLT interface. Through the XFI interface indicated by the GEM PORT ID carried in the first GEM VLAN information, the module sends a first packet encapsulated with the first GEM VLAN information to the NP forwarding chip, enabling the NP forwarding chip to learn the binding relationship between the GEM PORT ID carried in the first GEM VLAN information, the identifier of the first OLT interface, and the source MAC address carried in the first packet. Multiple OLT interfaces bound to one XFI interface correspond to the same GEM PORT ID. When the second packet destined for the Optical Network Unit (ONU) is encapsulated with second GEM VLAN information via the NP forwarding chip, the GEM PORT ID and OLT interface identifier matching the destination MAC address of the second packet are obtained from the already learned binding relationship between the source MAC address, GEM PORT ID, and OLT interface identifier. The obtained GEM PORT ID and OLT interface identifier are carried in the second GEM VLAN information. The GEM PORT ID carried in the second GEM VLAN information is used to indicate the XFI port required for forwarding the second packet on the NP forwarding chip. The OLT interface identifier carried in the second GEM VLAN information is used to indicate the OLT interface required for forwarding the second packet on the FPGA chip. The forwarding module is used to send a second packet encapsulating the second GEM VLAN information to the FPGA chip through the XFI interface indicated by the GEM PORT ID on the NP forwarding chip; and to send a second packet stripped of the second GEM VLAN information to the ONU device through the OLT interface indicated by the identifier of the OLT interface carried in the second GEM VLAN information on the FPGA chip.
8. The apparatus of claim 7, wherein, The identifier of the first OLT interface occupies M bits in the first GEMVLAN information; the M bits are consecutive to the bits occupied by the existing GEM PORT ID in the first GEM VLAN information; M is greater than or equal to 1; The identifier of the OLT interface carried in the second GEM VLAN information occupies M bits in the second GEM VLAN information; the M bits are consecutive to the bits occupied by the existing GEM PORT ID in the second GEM VLAN information; And / or, M=1; The identifier of the first OLT interface occupies the third bit of the second byte in the first GEM VLAN information; The identifier of the OLT interface carried in the second GEM VLAN information occupies the third bit of the second byte in the second GEM VLAN information; And / or, The second message is a unicast message; And / or, The encapsulation module is also used for: When the NP forwarding chip encapsulates the third GEM VLAN information into the third message sent to all ONU devices within the target VLAN, the third message is a broadcast message or a multicast message; the default encapsulation information of the VLAN is the third GEM VLAN information, which is used to indicate multiple XFI interfaces on the NP forwarding chip that belong to the VLAN, and multiple OLT interfaces on the FPGA chip that belong to the VLAN. The forwarding module is also used for: The third packet encapsulating the third GEM VLAN information is sent to the FPGA chip through multiple XFI interfaces indicated by the default encapsulation information on the NP forwarding chip; and the third packet stripped of the third GEM VLAN information is sent to all OUN devices in the VLAN through multiple OLT interfaces indicated by the default encapsulation information on the FPGA chip. And / or, The encapsulation module is also used for: When the fourth packet destined for the Ethernet network device is encapsulated with the fourth GEM VLAN information by the NP forwarding chip, the fourth GEM VLAN information carries a GEM PORT ID; the GEM PORT ID is used to indicate the XFI port required for forwarding the fourth packet on the NP forwarding chip, and the XFI interface is determined based on the destination MAC address of the fourth packet; The forwarding module is also used for: The fourth packet, encapsulating the fourth GEM VLAN information, is sent to the Ethernet port bound to the XFI interface via the XFI interface indicated by the GEM PORT ID on the NP forwarding chip.
9. An OLT device, characterized in that, The device includes: a network processor (NP) forwarding chip and a field-programmable gate array (FPGA) chip; the NP forwarding chip has multiple XFI interfaces, and the FPGA chip has multiple OLT interfaces; The FPGA chip is used to encapsulate a first gigabit wireless network encapsulation virtual local area network (GEM VLAN) information into a first packet received by the first OLT interface. In the first GEM VLAN information, the chip carries the gigabit wireless network encapsulation port identifier (GEM PORT ID) corresponding to the first OLT interface and the identifier of the first OLT interface. Through the XFI interface indicated by the GEM PORT ID carried in the first GEM VLAN information, the chip sends a first packet encapsulated with the first GEM VLAN information to the NP forwarding chip, so that the NP forwarding chip learns the binding relationship between the GEM PORT ID carried in the first GEM VLAN information, the identifier of the first OLT interface, and the source MAC address carried in the first packet. Multiple OLT interfaces bound to one XFI interface correspond to the same GEM PORT ID. The NP forwarding chip is used to, when encapsulating second GEM VLAN information into a second packet destined for an Optical Network Unit (ONU) device, obtain the GEM PORT ID and OLT interface identifier matching the destination MAC address of the second packet from the already learned binding relationship between the source MAC address, GEM PORT ID, and OLT interface identifier; carry the obtained GEM PORT ID and OLT interface identifier in the second GEM VLAN information; the GEM PORT ID carried in the second GEM VLAN information is used to indicate the XFI port required for forwarding the second packet on the NP forwarding chip; the OLT interface identifier carried in the second GEM VLAN information is used to indicate the OLT interface required for forwarding the second packet on the FPGA chip; The second packet, which encapsulates the second GEM VLAN information, is sent to the FPGA chip through the XFI interface indicated by the GEM PORT ID; The FPGA chip is also used for: The second message, stripped of the second GEM VLAN information, is sent to the ONU device through the OLT interface indicated by the identifier of the OLT interface on the FPGA chip.
10. The OLT device according to claim 9, characterized in that, The identifier of the first OLT interface occupies M bits in the first GEM VLAN information; the M bits are consecutive to the bits occupied by the existing GEM PORT ID in the first GEM VLAN information; M is greater than or equal to 1; The identifier of the OLT interface carried in the second GEM VLAN information occupies M bits in the second GEM VLAN information; the M bits are consecutive to the bits occupied by the existing GEM PORT ID in the second GEM VLAN information; And / or, M=1; The identifier of the first OLT interface occupies the third bit of the second byte in the first GEM VLAN information; The identifier of the OLT interface carried in the second GEM VLAN information occupies the third bit of the second byte in the second GEM VLAN information; And / or, The second message is a unicast message; And / or, The NP forwarding chip is also used for: When a third packet sent to all ONU devices within a target VLAN is encapsulated with third GEM VLAN information, the third packet is either a broadcast packet or a multicast packet. The default encapsulation information for this VLAN is the third GEM VLAN information, which is used to indicate multiple XFI interfaces on the NP forwarding chip that belong to this VLAN, and multiple OLT interfaces on the FPGA chip that belong to this VLAN. The third packet, which encapsulates the third GEM VLAN information, is sent to the FPGA chip through multiple XFI interfaces indicated by the default encapsulation information. The FPGA chip is also used for: The third packet, stripped of the third GEM VLAN information, is sent to all OUN devices within the VLAN through multiple OLT interfaces indicated by the default encapsulation information on the FPGA chip. And / or, The NP forwarding chip is also used for: When the fourth packet destined for the Ethernet network device is encapsulated with the fourth GEM VLAN information by the NP forwarding chip, the fourth GEM VLAN information carries a GEM PORT ID; the GEM PORT ID is used to indicate the XFI port required for forwarding the fourth packet on the NP forwarding chip, and the XFI interface is determined based on the destination MAC address of the fourth packet; The fourth packet, which encapsulates the fourth GEM VLAN information, is sent to the Ethernet port bound to the XFI interface indicated by the GEM PORT ID on the NP forwarding chip.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions that, when executed by a processor, cause the processor to perform the steps of the method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Message processing method and network equipment
CN117354395A
Message forwarding processing method, device, equipment, system and storage medium
CN119966644A