Configuration method and apparatus for traffic data forwarding, OLT, and storage medium

By receiving configuration instructions from the controller, the OLT creates a repeater and configures VLAN sub-interfaces in the optical network unit, solving the problem of poor traffic forwarding mode flexibility in the optical network unit and realizing efficient forwarding of east-west traffic.

WO2026045559A1PCT designated stage Publication Date: 2026-03-05CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/104166
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-08-26
Filing Date
2025-06-27
Publication Date
2026-03-05

AI Technical Summary

Technical Problem

In existing technologies, the traffic forwarding mode of optical network units suffers from poor flexibility, especially when east-west traffic forwarding is required. The configuration process is complex and it is difficult to identify the ports that need to perform east-west traffic forwarding, which increases the complexity of network management and the probability of errors.

Method used

By receiving configuration commands from the controller, the OLT configures itself according to the target VLAN identifier included in the configuration commands, creates a forwarder, adds the VLAN sub-interface to the forwarder, determines the target VLAN sub-interface, and realizes the forwarding of east-west traffic data.

Benefits of technology

It simplifies the configuration process, improves the flexibility and efficiency of traffic forwarding, and enables flexible configuration based on configuration commands, thus simplifying the complexity of network management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025104166_05032026_PF_FP_ABST
    Figure CN2025104166_05032026_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to a configuration method and apparatus for traffic data forwarding, an optical line terminal (OLT), a computer-readable storage medium, and a computer program product. The method is applied to the OLT. The method comprises: receiving a configuration instruction sent by a controller, the configuration instruction comprising a target virtual local area network (VLAN) identifier; and configuring the OLT on the basis of the configuration instruction, so that the OLT forwards, to a target VLAN sub-interface that is in a first ONU and corresponds to the target VLAN identifier, target traffic data sent by a second ONU.
Need to check novelty before this filing date? Find Prior Art

Description

Configuration methods, devices, OLTs, and storage media for traffic data forwarding

[0001] Related applications

[0002] This application claims priority to Chinese patent application filed on August 26, 2024, with application number 202411175139X, entitled "Configuration Method, Apparatus, OLT and Storage Medium for Traffic Data Forwarding", the entire contents of which are incorporated herein by reference. Technical Field

[0003] This application relates to the field of communication technology, and in particular to a configuration method, apparatus, OLT, computer-readable storage medium, and computer program product for traffic data forwarding. Background Technology

[0004] Software-defined networking (SDN) is a network design scheme that separates the network infrastructure layer from the control layer. In SDN-based fiber optic access networks, the traffic forwarding mode involves connecting a large number of user-side optical network units (ONUs) through optical line terminals (OLTs) to forward traffic from the server to the corresponding ports within the ONUs.

[0005] Currently, the corresponding ports in the optical network unit mainly handle north-south traffic (north-south traffic refers to traffic between the server and the client). However, this traffic forwarding mode suffers from poor flexibility in traffic forwarding. Summary of the Invention

[0006] This application provides a configuration method, apparatus, OLT, computer-readable storage medium, and computer program product for traffic data forwarding, which can improve the flexibility of traffic forwarding.

[0007] In a first aspect, this application provides a configuration method for traffic data forwarding, the method being used in an optical line terminal (OLT), the method comprising:

[0008] Receive configuration instructions sent by the controller, the configuration instructions including the target virtual local area network (VLAN) identifier;

[0009] According to the configuration instructions, the OLT is configured to forward the target traffic data sent by the second ONU to the target VLAN sub-interface in the first ONU that corresponds to the target VLAN identifier.

[0010] In some embodiments, the configuration instructions include a first configuration instruction and a second configuration instruction, wherein the first configuration instruction includes a repeater identifier, and the second configuration instruction includes the target VLAN identifier. Configuring the OLT according to the configuration instructions includes:

[0011] A repeater is created in the OLT according to the repeater identifier;

[0012] Configure the repeater according to the target VLAN identifier.

[0013] In some embodiments, the configuration instruction further includes a third configuration instruction, the third configuration instruction including sub-interface identifiers of multiple VLAN sub-interfaces corresponding to multiple target ONUs, the multiple target ONUs including at least the first ONU and the second ONU, and configuring the repeater according to the target VLAN identifiers includes:

[0014] Each VLAN sub-interface is added to the repeater according to its sub-interface identifier;

[0015] Based on the target VLAN identifier, the target VLAN sub-interface is determined among the VLAN sub-interfaces that have joined the repeater.

[0016] In some embodiments, the configuration instruction further includes a fourth configuration instruction, the fourth configuration instruction including a first data forwarding field, wherein determining the target VLAN sub-interface among the VLAN sub-interfaces joined to the forwarder based on the target VLAN identifier includes:

[0017] When the first data forwarding field indicates that traffic data forwarding is allowed, the target VLAN sub-interface corresponding to the target VLAN identifier in each of the VLAN sub-interfaces is associated with the first data forwarding field.

[0018] In some embodiments, the method further includes:

[0019] Receive initial traffic data carrying a VLAN identifier sent by the second ONU, wherein the VLAN identifier may be the same as or different from the target VLAN identifier;

[0020] Based on the initial traffic data, the target traffic data is forwarded to the target VLAN sub-interface.

[0021] In some embodiments, forwarding target traffic data to the target VLAN sub-interface in the first ONU corresponding to the target VLAN identifier based on the initial traffic data includes:

[0022] If the VLAN identifier is the same as the target VLAN identifier, the initial traffic data is used as the target traffic data, and the target traffic data is forwarded to the target VLAN sub-interface;

[0023] If the VLAN identifier is different from the target VLAN identifier, the VLAN identifier is replaced with the target VLAN identifier in the initial traffic data to obtain the target traffic data, and the target traffic data is forwarded to the target VLAN sub-interface.

[0024] In some embodiments, after forwarding the target traffic data to the target VLAN sub-interface in the first ONU corresponding to the target VLAN identifier based on the initial traffic data, the method further includes:

[0025] Receive a fifth configuration instruction sent by the controller, the fifth configuration instruction including a second data forwarding field;

[0026] If the second data forwarding field indicates that data forwarding is not allowed, the association between the first data forwarding field and the target VLAN sub-interface is terminated to prevent the OLT from forwarding the target traffic data to the target VLAN sub-interface.

[0027] Secondly, this application also provides an apparatus for use in an optical line terminal (OLT), the apparatus comprising:

[0028] The first receiving module is used to receive configuration instructions sent by the controller, wherein the configuration instructions include the target virtual local area network (VLAN) identifier;

[0029] The first configuration module is used to configure the OLT according to the configuration instructions, so that the OLT forwards the target traffic data sent by the second ONU to the target VLAN sub-interface in the first ONU corresponding to the target VLAN identifier.

[0030] Thirdly, this application also provides an OLT. The OLT includes: a receiver and a processor;

[0031] The receiver is used to receive configuration instructions sent by the controller, the configuration instructions including the target virtual local area network (VLAN) identifier;

[0032] The processor is configured to configure the OLT according to the configuration instructions, so that the OLT forwards the target traffic data sent by the second ONU to the target VLAN sub-interface in the first ONU corresponding to the target VLAN identifier.

[0033] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in the first aspect above.

[0034] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the method described in the first aspect above.

[0035] Details of one or more embodiments of this application are set forth in the following drawings and description. Other features, objects, and advantages of this application will become apparent from the specification, drawings, and claims. Attached Figure Description

[0036] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the published drawings without creative effort.

[0037] Figure 1 shows the application environment of the configuration method for traffic data forwarding in some embodiments;

[0038] Figure 2 is a flowchart illustrating the configuration method for traffic data forwarding in some embodiments;

[0039] Figure 3 is a flowchart of step 202 in some other embodiments;

[0040] Figure 4 is a flowchart of step 302 in some other embodiments;

[0041] Figure 5 is a flowchart illustrating the configuration method for traffic data forwarding in some other embodiments;

[0042] Figure 6 is a flowchart illustrating the configuration method for traffic data forwarding in some other embodiments;

[0043] Figure 7 is a flowchart illustrating the configuration method for traffic data forwarding in some other embodiments;

[0044] Figure 8 is a structural block diagram of the configuration device for traffic data forwarding in some embodiments;

[0045] Figure 9 shows the internal structure of the OLT in some embodiments. Detailed Implementation

[0046] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0047] Figure 1 is a schematic diagram of an application scenario for a traffic data forwarding configuration method provided in some embodiments of this application. As shown in Figure 1, the scenario includes an optical line terminal 100, a first optical network unit 200, a second optical network unit 300, and a controller 400. The first optical network unit 200 and the optical line terminal 100 transmit traffic data via a network, and the optical line terminal 100 and the second optical network unit 300 transmit traffic data via a network. The controller 400 sends instructions to the optical line terminal 100 via the network. The optical line terminal 100 receives the configuration instructions sent by the controller 400. The configuration instructions include a target VLAN identifier. The optical line terminal 100 configures itself according to the configuration instructions so that it can forward the target traffic data sent by the second optical network unit 300 to the target VLAN sub-interface in the first optical network unit 200 corresponding to the target VLAN identifier.

[0048] The Optical Line Terminal (OLT) 100 is a key device in the optical fiber access network. Its main function is to enable uplink access to the Passive Optical Network (PON) and connect to the user's Optical Network Unit (ONU) via the network, thereby enabling control and management of the ONU. The first optical network unit 200 and the second optical network unit 300 are user-end devices in the optical fiber access network, used to receive services transmitted by the OLT and respond to commands sent by the OLT.

[0049] In fiber optic access networks, the OLT at the central office can connect to a large number of ONUs at the user end. Typically, the user-end ONUs primarily send access requests to the server, thus handling mostly north-south traffic. Therefore, in scenarios where SDN networks are introduced into fiber optic access networks and a centralized control strategy is adopted, relevant configuration nodes can be designed to prohibit frame forwarding between specific types of repeater ports, i.e., prohibiting the forwarding of east-west traffic. However, in industrial scenarios, east-west traffic forwarding is necessary.

[0050] In traditional technologies, configuring east-west traffic forwarding requires first identifying which ports need to perform east-west traffic forwarding, and then configuring those ports to enable this function. However, this configuration process is multi-step and makes it difficult to identify the ports that need east-west traffic forwarding, increasing network management complexity and the probability of errors. Therefore, traditional technologies suffer from poor flexibility in traffic forwarding.

[0051] Based on the above-mentioned traditional technology, this application provides a configuration method for traffic data forwarding. The OLT receives a configuration instruction sent by the controller, which includes a target virtual local area network (VLAN) identifier. Then, the OLT is configured according to the configuration instruction, so that the OLT forwards the target traffic data sent by the second ONU to the target VLAN sub-interface in the first ONU that corresponds to the target VLAN identifier, thereby improving the flexibility of traffic forwarding.

[0052] It should be noted that the beneficial effects or technical problems solved by the embodiments of this application are not limited to this one, but may also be other implicit or related problems. For details, please refer to the description of the embodiments below.

[0053] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0054] In some embodiments, as shown in FIG2, a configuration method for traffic data forwarding is provided. Taking the application of this method to the optical line terminal in FIG1 as an example, the method includes the following steps:

[0055] Step 201: Receive configuration instructions sent by the controller, which include the target virtual local area network (VLAN) identifier.

[0056] It should be noted that in SDN-based fiber optic access networks, by separating the control layer from the network infrastructure layer, flexible configuration and management of network resources are achieved. This means that control devices send control information to multiple devices to control the entire physical network. In this embodiment, a centralized controller can send control information to the OLT, enabling the OLT to configure itself accordingly and thus achieve east-west traffic forwarding.

[0057] The configuration command is used by the controller to send control information to the OLT to instruct the OLT to perform the corresponding configuration. The configuration command may include a target Virtual Local Area Network (VLAN) identifier. This target VLAN identifier is a VLAN identifier that allows traffic data forwarding between ONUs, that is, each ONU can send traffic data with the target VLAN identifier to each other.

[0058] It should be noted that, to improve overall network performance, a physical LAN can be logically divided into multiple broadcast domains, i.e., VLANs. To enable devices to distinguish between packets from different VLANs, a field identifying VLAN information, i.e., a VLAN tag, can be added to the packet. For example, a 4-byte VLAN tag can be added after the destination MAC (Media Access Control) address and source MAC address, and before the protocol type field, to identify VLAN information. In this embodiment, one VLAN tag can correspond to one service flow; adding the VLAN tag to the packet before sending it is used to distinguish different service flows.

[0059] It is understood that in the traffic data forwarding configuration method provided in this application embodiment, in order to prevent the OLT from forwarding the received traffic data to the ONU that sent the traffic data, the OLT can be configured to disable traffic data forwarding in advance based on horizontal splitting technology. Here, horizontal splitting technology refers to prohibiting information received from a certain interface from being sent back through that interface.

[0060] In this embodiment, when the OLT starts up, it can be automatically configured according to the pre-set configuration information, that is, the forwarding of traffic data between all PON ports of the OLT is prohibited in advance. Then, the OLT receives the configuration command sent by the controller through the network, and obtains the target VLAN identifier by parsing the configuration command and the parsing result.

[0061] Step 202: Configure the OLT according to the configuration instructions so that the OLT forwards the target traffic data sent by the second ONU to the target VLAN sub-interface in the first ONU that corresponds to the target VLAN identifier.

[0062] It's important to note that in a Virtual LAN (VLAN), typically one physical interface corresponds to one VLAN. On a network with multiple VLANs, a single physical interface cannot be used to achieve inter-VLAN communication. Therefore, to overcome the limitations of physical interfaces, a physical interface can be divided into multiple sub-interfaces to enable routing and communication between VLANs. A VLAN sub-interface is a logical interface; each VLAN sub-interface can be configured with a different VLAN identifier, thus enabling multiple VLANs to be supported on a single physical port. Each VLAN sub-interface can be independently configured with an IP address and other network parameters, allowing for flexible allocation and management of network resources. VLAN sub-interfaces have wide applications, especially in enterprise networks, where different VLANs can be configured to isolate different user or device groups, improving network security and manageability.

[0063] In this implementation, when each VLAN sub-interface receives traffic data, if the VLAN identifier of the traffic data matches the identifier of the VLAN sub-interface, the identifier can be removed before forwarding the traffic data; otherwise, it is discarded. Alternatively, the VLAN sub-interface identifier can be added to the received traffic data before transmission. Therefore, if the sub-interface identifier of a VLAN sub-interface matches the VLAN identifier, the VLAN sub-interface and the VLAN identifier can be considered to correspond. In this embodiment, the VLAN sub-interface corresponding to the target VLAN identifier is determined as the target VLAN sub-interface, which can receive traffic data with the target VLAN identifier. In some embodiments, the target VLAN identifier can be a service flow identifier that allows east-west traffic data forwarding; therefore, the target VLAN sub-interface can receive east-west traffic data.

[0064] In this configuration, the first ONU receives traffic data forwarded by the OLT, and the second ONU sends traffic data to the OLT. The traffic data sent by the second ONU to the OLT and then forwarded by the OLT to the first ONU is defined as the target traffic data. It is understood that both the first and second ONUs have target VLAN sub-interfaces, and therefore, the first and second ONUs can transmit traffic data through these target VLAN sub-interfaces.

[0065] For example, taking a PON system applied in an industrial field for traffic data forwarding as an example, such as monitoring network communication between a host computer and a programmable logic controller in an industrial production line. In this embodiment, after the OLT is configured according to the configuration instructions, if the second ONU receives traffic data generated and sent by the industrial control computer, it can send it to the OLT through the target VLAN sub-interface. Upon receiving the target traffic data sent by the second ONU, the OLT sends the target traffic data to the target VLAN sub-interface in the first ONU, thereby realizing the transmission of traffic data between the second ONU and the first ONU, that is, realizing the transmission of east-west traffic data.

[0066] In the above-described traffic data forwarding configuration method, the OLT receives a configuration instruction sent by the controller. The configuration instruction includes the target Virtual Local Area Network (VLAN) identifier. Then, the OLT is configured according to the configuration instruction so that it forwards the target traffic data sent by the second ONU to the target VLAN sub-interface in the first ONU corresponding to the target VLAN identifier. In this configuration method, the OLT can configure the corresponding target VLAN sub-interface according to the target VLAN identifier in the configuration instruction. This configuration process is simple and accurate, and can be flexibly configured according to the configuration instruction, simplifying the complexity of the configuration process, improving the efficiency of the configuration process, and thus improving the flexibility of traffic forwarding.

[0067] In some embodiments, in the scenario where the OLT is configured according to the configuration instructions described above, the configuration instructions include a first configuration instruction and a second configuration instruction. The first configuration instruction includes a repeater identifier, and the second configuration instruction includes a target VLAN identifier. The OLT can be configured according to the repeater identifier and the target VLAN identifier, respectively. In one embodiment, as shown in FIG3, step 202 includes steps 301 and 302.

[0068] Step 301: Create a repeater in the OLT based on the repeater identifier.

[0069] It should be noted that after receiving traffic data, the OLT can unpack and process the traffic data, and then forward the processed traffic data through a repeater. Different repeaters correspond to different forwarding modes. Therefore, the repeater specified by the controller can be configured in the OLT to forward traffic data according to the set forwarding mode.

[0070] In this context, a repeater is a logical virtual object within the OLT, used to forward traffic data. A repeater identifier is a unique identifier for a repeater; the OLT can create a corresponding repeater based on this identifier.

[0071] In this embodiment, the OLT can obtain the first configuration instruction from the received configuration instruction, then obtain the repeater identifier based on the parsing result of the first configuration instruction, and then create the repeater corresponding to the repeater identifier in the OLT so that the OLT can configure the corresponding forwarding mode.

[0072] Step 302: Configure the repeater according to the target VLAN identifier.

[0073] The target VLAN identifier refers to the VLAN identifier that allows east-west traffic data forwarding. In this embodiment, the OLT can obtain the second configuration instruction from the received configuration instruction, then obtain the target VLAN identifier based on the parsing result of the second configuration instruction, and then configure the target VLAN identifier in the repeater, so that the repeater can forward target traffic data to the target VLAN sub-interface corresponding to the target VLAN identifier.

[0074] In this embodiment, the OLT creates a forwarder in the OLT according to the forwarder identifier, and then configures the forwarder according to the target VLAN identifier. This enables the OLT to forward target traffic data to the target VLAN sub-interface through the forwarder. This configuration process is relatively simple, which can simplify the configuration process and improve configuration efficiency.

[0075] In some embodiments, in the scenario where the repeater is configured according to the target VLAN identifier, the configuration instruction further includes a third configuration instruction. The third configuration instruction includes the sub-interface identifiers of multiple VLAN sub-interfaces corresponding to multiple target ONUs. In one embodiment, the OLT can be configured according to the sub-interface identifiers of each VLAN sub-interface. As shown in Figure 4, step 302 above includes:

[0076] Step 401: Add each VLAN sub-interface to the repeater according to the sub-interface identifier.

[0077] In this context, the target ONU refers to the ONU that needs to transmit east-west traffic. For example, if an industrial PON system includes 10 ONUs and east-west traffic needs to be transmitted between 8 of them, then these 8 ONUs can be identified as target ONUs. Each target ONU corresponds to multiple VLAN sub-interfaces, and each VLAN sub-interface corresponds to a unique sub-interface identifier. The sub-interface identifier is a unique identifier for each sub-interface. Essentially, each VLAN sub-interface must be added to the repeater for the repeater to forward traffic data to that VLAN sub-interface.

[0078] In this embodiment, the OLT can obtain the third configuration instruction from the received configuration instruction, then obtain the identifier of each sub-interface based on the parsing result of the third configuration instruction, and then establish the correspondence between each sub-interface identifier and the repeater, thereby adding each VLAN sub-interface to the repeater.

[0079] Step 402: Determine the target VLAN sub-interface from among the VLAN sub-interfaces joined to the repeater based on the target VLAN identifier.

[0080] In this embodiment, the OLT can compare the sub-interface identifier corresponding to each VLAN sub-interface added to the repeater with the target VLAN identifier. If a sub-interface identifier matches the target VLAN identifier, then the VLAN sub-interface corresponding to that sub-interface identifier can be considered the target VLAN sub-interface. For example, if the target VLAN identifier is 1001, and the sub-interface identifier corresponding to a certain VLAN sub-interface is also 1001, then the VLAN sub-interface with the identifier 1001 can be determined to be the target VLAN sub-interface.

[0081] In this embodiment, the OLT can add each VLAN sub-interface to the repeater based on the sub-interface identifier. Then, based on the target VLAN identifier, the target VLAN sub-interface is determined among the VLAN sub-interfaces added to the repeater, thereby determining the VLAN sub-interface that can receive east-west traffic. This enables the OLT to forward traffic data sent by other ONUs to the ONUs that include the target VLAN sub-interface.

[0082] In some embodiments, in the scenario described above where the target VLAN sub-interface is determined among the VLAN sub-interfaces joined to the repeater based on the target VLAN identifier, the configuration instruction further includes a fourth configuration instruction, which includes a first data forwarding field. In some embodiments, the OLT can determine the target sub-interface based on the first data forwarding field and the target VLAN identifier. Step 402 includes: when the first data forwarding field indicates that traffic data forwarding is allowed, associating the target VLAN sub-interface corresponding to the target VLAN identifier among the VLAN sub-interfaces with the first data forwarding field.

[0083] The first data forwarding field indicates whether traffic data forwarding is allowed. For example, if the first data forwarding field is true, it indicates that traffic data forwarding is allowed; if the first data forwarding field is false, it indicates that traffic data forwarding is not allowed. In some embodiments of this application, the first data forwarding field can indicate whether east-west traffic data forwarding is allowed, that is, whether traffic data forwarding between ONUs is allowed.

[0084] In this embodiment, the OLT can obtain the fourth configuration instruction from the received configuration instruction, and then obtain the first data forwarding field based on the parsing result of the fourth configuration instruction. Then, if it is determined that the first data forwarding field indicates that traffic data forwarding is allowed, the sub-interface identifier of the target VLAN sub-interface is bound to the target VLAN identifier, thereby establishing the association between the target VLAN sub-interface and the target VLAN identifier.

[0085] In this embodiment, when the first data forwarding field indicates that traffic data forwarding is allowed, the OLT can associate the target VLAN sub-interface corresponding to the target VLAN identifier with the first data forwarding field in each VLAN sub-interface. This allows the OLT to configure the forwarder according to the target VLAN identifier, enabling the OLT to forward target traffic data to the target VLAN sub-interface through the forwarder.

[0086] After the process of configuring the OLT according to the configuration instructions is completed, the OLT can forward the received target traffic data to the target VLAN sub-interface. The process of the OLT forwarding the received target traffic data is described in detail below. In some embodiments, as shown in Figure 5, the above method further includes:

[0087] Step 501: Receive initial traffic data carrying a VLAN identifier sent by the second ONU. The VLAN identifier may be the same as or different from the target VLAN identifier.

[0088] The VLAN identifier is the identification information carried in the traffic data sent by the second ONU to the OLT. This VLAN identifier may be the target VLAN identifier or another VLAN identifier; therefore, the VLAN identifier may be the same as or different from the target VLAN identifier. In this embodiment, the traffic data sent by the second ONU to the OLT is defined as the initial traffic data, and the second ONU can be any of the target ONUs. It is understood that the second ONU can send traffic data to the OLT through any VLAN sub-interface, and the second ONU can also send traffic data to the OLT through the target VLAN sub-interface.

[0089] In this embodiment, after the OLT completes the configuration according to the configuration instructions, it can receive the initial traffic data sent by the second ONU. By parsing the received initial traffic data, it can determine the VLAN identifier carried in the initial traffic data based on the parsing result.

[0090] Step 502: Based on the initial traffic data, forward the target traffic data to the target VLAN sub-interface.

[0091] The target traffic data refers to the traffic data that is permitted to be forwarded to other ONUs. It should be noted that when the OLT forwards the target traffic data, it must ensure that the target traffic data carries a VLAN identifier that allows data traffic forwarding. Only then can the target traffic data be sent to the target VLAN sub-interface, enabling traffic data forwarding between ONUs.

[0092] If the initial traffic data is traffic data that is allowed to be forwarded, the OLT can directly forward the initial traffic data. If the initial traffic data is traffic data that is not allowed to be forwarded, the OLT needs to convert the initial traffic data before forwarding it. In this embodiment, the OLT can first determine whether the initial traffic data carries the target VLAN identifier, and then determine whether the initial traffic data needs to be converted based on the determination result.

[0093] In one possible implementation of step 502, if the VLAN identifier is the same as the target VLAN identifier, the initial traffic data is used as the target traffic data and the target traffic data is forwarded to the target VLAN sub-interface.

[0094] In this implementation, if the VLAN identifier is the same as the target VLAN identifier, it indicates that the initial traffic data sent by the second ONU is traffic data that allows traffic data forwarding. Therefore, the OLT does not need to convert the initial traffic data, but can use the initial traffic data as the target traffic data and forward the target traffic data to the target VLAN sub-interface corresponding to the first ONU.

[0095] In another possible implementation of step 502, if the VLAN identifier is different from the target VLAN identifier, the VLAN identifier in the initial traffic data is replaced with the target VLAN identifier to obtain the target traffic data, and the target traffic data is forwarded to the target VLAN sub-interface.

[0096] In this implementation, if the VLAN identifier is different from the target VLAN identifier, it indicates that the initial traffic data sent by the second ONU is traffic data that is not allowed to be forwarded. Therefore, the OLT needs to convert the initial traffic data. The OLT can parse the frame structure of the initial traffic data, then delete the VLAN identifier carried in the initial traffic data, and add the target VLAN identifier to the initial traffic data, thereby identifying the added initial traffic data as the target traffic data, and forwarding the target traffic data to the target VLAN sub-interface corresponding to the first ONU.

[0097] In this embodiment, the OLT first receives initial traffic data carrying a VLAN identifier sent by the second ONU. The VLAN identifier may be the same as or different from the target VLAN identifier. If the VLAN identifier is the same as the target VLAN identifier, the initial traffic data is determined as the target traffic data. If the VLAN identifier is different from the target VLAN identifier, the initial traffic data is converted and the converted initial traffic data is determined as the target traffic data. Thus, the OLT can obtain the target traffic data based on the initial traffic data and forward the target traffic data to the target VLAN sub-interface, thereby ensuring the reliability of the OLT forwarding the target traffic data.

[0098] After the OLT forwards the target traffic data to the target VLAN sub-interface in the first ONU corresponding to the target VLAN identifier based on the initial traffic data, the controller can also send a new configuration command to the OLT. The new configuration command can specify that traffic data forwarding is not allowed. In some embodiments, as shown in FIG6, the above method further includes steps 601 and 602.

[0099] Step 601: Receive the fifth configuration instruction sent by the controller. The fifth configuration instruction includes the second data forwarding field.

[0100] The second data forwarding field is a new control message sent by the controller to the OLT after the OLT completes its configuration and forwards the target traffic data, following the sending of the first data forwarding field. In some embodiments, if the second data forwarding field is true, it indicates that traffic data forwarding is allowed; if the second data field is false, it indicates that traffic data forwarding is not allowed. In some embodiments of this application, the second data forwarding field can characterize whether east-west traffic data forwarding is allowed, that is, whether traffic data forwarding between ONUs is allowed.

[0101] In this embodiment, the OLT can receive the second configuration instruction sent by the controller via the network, then parse the fifth configuration instruction, and obtain the second data forwarding field based on the parsing result.

[0102] Step 602: If the second data forwarding field indicates that data forwarding is not allowed, the association between the first data forwarding field and the target VLAN sub-interface is removed to prevent the OLT from forwarding target traffic data to the target VLAN sub-interface.

[0103] Understandably, if the second data forwarding field indicates that data forwarding is not allowed, then traffic data forwarding between each ONU is not possible. Therefore, it is necessary to remove the association between the first data forwarding field and the target VLAN sub-interface.

[0104] In this embodiment, when the second data forwarding field indicates that data forwarding is not allowed, the OLT can configure the OLT to remove the association between the first data forwarding field and the target VLAN sub-interface. This prevents the target VLAN sub-interface from receiving data sent from other ONUs forwarded by the OLT. As a result, after the second ONU sends initial traffic data to the OLT, the OLT cannot send target traffic data to the target VLAN sub-interface based on the initial traffic data, thus prohibiting the OLT from forwarding target traffic data to the target VLAN sub-interface.

[0105] In this embodiment, the OLT receives a fifth configuration instruction sent by the controller. The fifth configuration instruction includes a second data forwarding field. When the second data forwarding field indicates that data forwarding is not allowed, the OLT removes the association between the first data forwarding field and the target VLAN sub-interface to prevent the OLT from forwarding target traffic data to the target VLAN sub-interface. This allows the OLT to perform different configurations according to the configuration instructions sent by the controller, reducing configuration complexity while meeting diverse configuration requirements and improving the flexibility of the configuration method.

[0106] To facilitate understanding by those skilled in the art, as shown in Figure 7, the following describes in detail the configuration method for traffic data forwarding provided in this application, taking OLT as an example. This method may include the following steps.

[0107] Step 701: Start the OLT and automatically configure all PON ports to disable traffic data forwarding.

[0108] Step 702: Receive a first configuration instruction sent by the controller. The first configuration instruction includes a repeater identifier.

[0109] Step 703: Create a repeater in the OLT based on the repeater identifier.

[0110] Step 704: Receive the third configuration instruction sent by the controller. The third configuration instruction includes the sub-interface identifiers of multiple VLAN sub-interfaces corresponding to multiple target ONUs.

[0111] Step 705: Add each VLAN sub-interface to the repeater according to the sub-interface identifier.

[0112] Step 706: Receive a second configuration instruction sent by the controller. The second configuration instruction includes the target VLAN identifier.

[0113] Step 707: Determine the target VLAN sub-interface from among the VLAN sub-interfaces joined to the repeater based on the target VLAN identifier.

[0114] Step 707: Receive the fourth configuration instruction sent by the controller. The fourth configuration instruction includes the first data forwarding field.

[0115] Step 709: Determine whether the first data forwarding field indicates that traffic data forwarding is allowed.

[0116] Step 7010: If the first data forwarding field indicates that traffic data forwarding is allowed, associate the target VLAN sub-interface corresponding to the target VLAN identifier with the first data forwarding field in each VLAN sub-interface.

[0117] Step 7011: Receive initial traffic data carrying VLAN identifier sent by the second ONU.

[0118] Step 7012: Determine whether the VLAN ID is the same as the target VLAN ID.

[0119] Step 7013: If the VLAN ID is the same as the target VLAN ID, the initial traffic data is used as the target traffic data and forwarded to the target VLAN sub-interface.

[0120] Step 7014: If the VLAN identifier is different from the target VLAN identifier, replace the VLAN identifier with the target VLAN identifier in the initial traffic data to obtain the target traffic data, and forward the target traffic data to the target VLAN sub-interface.

[0121] Step 7015: Receive the fifth configuration instruction sent by the controller. The fifth configuration instruction includes the second data forwarding field.

[0122] Step 7016: Determine whether the second data forwarding field indicates that traffic data forwarding is allowed.

[0123] Step 7017: If the second data forwarding field indicates that data forwarding is not allowed, the association between the first data forwarding field and the target VLAN sub-interface is removed to prevent the OLT from forwarding target traffic data to the target VLAN sub-interface.

[0124] It should be understood that although the steps in the flowchart above are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowchart above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps.

[0125] In one embodiment, as shown in FIG8, a configuration device for traffic data forwarding is provided, including: a first receiving module 801 and a first configuration module 802.

[0126] The first receiving module 801 is used to receive configuration instructions sent by the controller, which include the target virtual local area network (VLAN) identifier.

[0127] The first configuration module 802 is used to configure the OLT according to the configuration instructions, so that the OLT forwards the target traffic data sent by the second ONU to the target VLAN sub-interface in the first ONU corresponding to the target VLAN identifier.

[0128] The traffic data forwarding configuration device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0129] In some embodiments, the configuration instruction includes a first configuration instruction and a second configuration instruction. The first configuration instruction includes a repeater identifier, and the second configuration instruction includes a target VLAN identifier. The first configuration module 802 includes a creation unit and a configuration unit.

[0130] Create a unit, used to create a repeater in the OLT based on the repeater identifier.

[0131] The configuration unit is used to configure the repeater according to the target VLAN identifier.

[0132] The traffic data forwarding configuration device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0133] In some embodiments, the configuration instruction further includes a third configuration instruction, which includes sub-interface identifiers of multiple VLAN sub-interfaces corresponding to multiple target ONUs, wherein the multiple target ONUs include at least a first ONU and a second ONU. The above configuration unit is used for:

[0134] Add each VLAN sub-interface to the repeater based on its sub-interface identifier.

[0135] Based on the target VLAN identifier, determine the target VLAN sub-interface among the VLAN sub-interfaces that have been added to the repeater.

[0136] The traffic data forwarding configuration device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0137] In some embodiments, the configuration instruction further includes a fourth configuration instruction, the fourth configuration instruction including a first data forwarding field, and the above configuration unit is used for:

[0138] When the first data forwarding field indicates that traffic data forwarding is allowed, the target VLAN sub-interface corresponding to the target VLAN identifier in each VLAN sub-interface is associated with the first data forwarding field.

[0139] The traffic data forwarding configuration device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0140] In one embodiment, the above-described apparatus further includes a second receiving module and a transmitting module.

[0141] The second receiving module is used to receive initial traffic data carrying a VLAN identifier sent by the second ONU. The VLAN identifier may be the same as or different from the target VLAN identifier.

[0142] The sending module is used to forward target traffic data to the target VLAN sub-interface based on the initial traffic data.

[0143] The traffic data forwarding configuration device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0144] In one embodiment, the above-mentioned transmitting module includes: a first transmitting unit and a second transmitting unit.

[0145] The first sending unit is used to forward the initial traffic data as the target traffic data to the target VLAN sub-interface when the VLAN identifier is the same as the target VLAN identifier.

[0146] The second sending unit is used to replace the VLAN identifier with the target VLAN identifier in the initial traffic data when the VLAN identifier is different from the target VLAN identifier, to obtain the target traffic data, and to forward the target traffic data to the target VLAN sub-interface.

[0147] The traffic data forwarding configuration device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0148] In one embodiment, the above-described apparatus further includes: a third receiving module and a second configuration module.

[0149] The third receiving module is used to receive the fifth configuration instruction sent by the controller. The fifth configuration instruction includes the second data forwarding field.

[0150] The second configuration module is used to remove the association between the first data forwarding field and the target VLAN sub-interface when the second data forwarding field indicates that data forwarding is not allowed, so as to prevent the OLT from forwarding target traffic data to the target VLAN sub-interface.

[0151] The traffic data forwarding configuration device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0152] Specific limitations regarding the configuration device for traffic data forwarding can be found in the limitations of the configuration method for traffic data forwarding described above, and will not be repeated here. Each module in the aforementioned configuration device for traffic data forwarding can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.

[0153] Figure 9 is a schematic diagram of the structure of an OLT provided in some embodiments of this application. The OLT may include a receiver 901, a memory 902, a processor 903, at least one communication bus 904, and a transmitter 905. The communication bus 904 is used to implement communication connections between components. The memory 902 may include high-speed random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device. Various programs can be stored in the memory 902 to perform various processing functions and implement the method steps of this embodiment. In this embodiment, the transmitter 905 can be a radio frequency processing module or a baseband processing module in an access network device, and the receiver 901 can also be a radio frequency processing module or a baseband processing module in an access network device. The transmitter 905 and receiver 901 can be integrated together to form a transceiver. Both the transmitter 905 and receiver 901 can be coupled to the processor 903, and can perform receiving or transmitting actions under the instruction or control of the processor 903.

[0154] In this embodiment, receiver 901 is used to receive configuration instructions sent by the controller, the configuration instructions including the target virtual local area network (VLAN) identifier.

[0155] The processor 903 is configured according to configuration instructions to enable the OLT to forward target traffic data sent by the second ONU to the target VLAN sub-interface in the first ONU corresponding to the target VLAN identifier.

[0156] In one embodiment, the configuration instructions include a first configuration instruction and a second configuration instruction. The first configuration instruction includes a repeater identifier, and the second configuration instruction includes the target VLAN identifier. The processor 903 is configured to create a repeater in the OLT based on the repeater identifier.

[0157] The processor 903 is also used to configure the repeater based on the target VLAN identifier.

[0158] In one embodiment, the configuration instruction further includes a third configuration instruction, which includes sub-interface identifiers of multiple VLAN sub-interfaces corresponding to multiple target ONUs. The multiple target ONUs include at least the first ONU and the second ONU. The processor 903 is used to add each VLAN sub-interface to the repeater according to each sub-interface identifier.

[0159] The processor 903 is also used to determine the target VLAN sub-interface among the VLAN sub-interfaces joined to the repeater based on the target VLAN identifier.

[0160] In one embodiment, the configuration instruction further includes a fourth configuration instruction, which includes a first data forwarding field. The processor 903 is used to associate the target VLAN sub-interface corresponding to the target VLAN identifier in each VLAN sub-interface with the first data forwarding field when the first data forwarding field indicates that traffic data forwarding is allowed.

[0161] In one embodiment, receiver 901 is used to receive initial traffic data carrying a VLAN identifier sent by a second ONU, wherein the VLAN identifier may be the same as or different from the target VLAN identifier.

[0162] Transmitter 905 is used to forward target traffic data to the target VLAN sub-interface based on initial traffic data.

[0163] In one embodiment, the transmitter 905 is configured to use the initial traffic data as the target traffic data and forward the target traffic data to the target VLAN sub-interface when the VLAN identifier is the same as the target VLAN identifier.

[0164] Transmitter 905 is used to replace the VLAN identifier with the target VLAN identifier in the initial traffic data when the VLAN identifier is different from the target VLAN identifier, obtain the target traffic data, and forward the target traffic data to the target VLAN sub-interface.

[0165] In one embodiment, receiver 901 is configured to receive a fifth configuration instruction sent by the controller, the fifth configuration instruction including a second data forwarding field.

[0166] The processor 903 is used to remove the association between the first data forwarding field and the target VLAN sub-interface when the second data forwarding field indicates that data forwarding is not allowed, so as to prevent the OLT from forwarding target traffic data to the target VLAN sub-interface.

[0167] In some embodiments, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, performs the following steps:

[0168] Receive configuration instructions sent by the controller, which include the target virtual local area network (VLAN) identifier;

[0169] According to the configuration instructions, the OLT is configured to forward the target traffic data sent by the second ONU to the target VLAN sub-interface in the first ONU that corresponds to the target VLAN identifier.

[0170] In some embodiments, when a computer program is executed by a processor, it further performs the following steps:

[0171] Create a repeater in the OLT based on the repeater identifier;

[0172] Configure the repeater according to the target VLAN identifier.

[0173] In some embodiments, when a computer program is executed by a processor, it further performs the following steps:

[0174] Add each VLAN sub-interface to the repeater based on its sub-interface identifier;

[0175] Based on the target VLAN identifier, determine the target VLAN sub-interface among the VLAN sub-interfaces that have been added to the repeater.

[0176] In some embodiments, when a computer program is executed by a processor, it further performs the following steps:

[0177] When the first data forwarding field indicates that traffic data forwarding is allowed, the target VLAN sub-interface corresponding to the target VLAN identifier in each VLAN sub-interface is associated with the first data forwarding field.

[0178] In some embodiments, when a computer program is executed by a processor, it further performs the following steps:

[0179] Receive initial traffic data carrying a VLAN identifier sent by the second ONU. The VLAN identifier may be the same as or different from the target VLAN identifier.

[0180] Based on the initial traffic data, forward the target traffic data to the target VLAN sub-interface.

[0181] In some embodiments, when a computer program is executed by a processor, it further performs the following steps:

[0182] If the VLAN ID is the same as the target VLAN ID, the initial traffic data is used as the target traffic data and forwarded to the target VLAN sub-interface.

[0183] If the VLAN identifier and the target VLAN identifier are different, the VLAN identifier is replaced with the target VLAN identifier in the initial traffic data to obtain the target traffic data, and the target traffic data is forwarded to the target VLAN sub-interface.

[0184] In some embodiments, when the computer program is executed by the processor, the following steps are also performed:

[0185] Receive a fifth configuration instruction sent by the controller, the fifth configuration instruction including a second data forwarding field;

[0186] If the second data forwarding field indicates that data forwarding is not allowed, the association between the first data forwarding field and the target VLAN sub-interface is removed to prevent the OLT from forwarding target traffic data to the target VLAN sub-interface.

[0187] Some embodiments of this application also provide a computer program product containing instructions that, when run on a computer, cause the computer to perform the following steps:

[0188] Receive configuration instructions sent by the controller, which include the target virtual local area network (VLAN) identifier;

[0189] According to the configuration instructions, the OLT is configured to forward the target traffic data sent by the second ONU to the target VLAN sub-interface in the first ONU that corresponds to the target VLAN identifier.

[0190] In some embodiments, when a computer program is executed by a processor, it further performs the following steps:

[0191] Create a repeater in the OLT based on the repeater identifier;

[0192] Configure the repeater according to the target VLAN identifier.

[0193] In some embodiments, when a computer program is executed by a processor, it further performs the following steps:

[0194] Add each VLAN sub-interface to the repeater based on its sub-interface identifier;

[0195] Based on the target VLAN identifier, determine the target VLAN sub-interface among the VLAN sub-interfaces that have been added to the repeater.

[0196] In some embodiments, when a computer program is executed by a processor, it further performs the following steps:

[0197] When the first data forwarding field indicates that traffic data forwarding is allowed, the target VLAN sub-interface corresponding to the target VLAN identifier in each VLAN sub-interface is associated with the first data forwarding field.

[0198] In some embodiments, when a computer program is executed by a processor, it further performs the following steps:

[0199] Receive initial traffic data carrying a VLAN identifier sent by the second ONU. The VLAN identifier may be the same as or different from the target VLAN identifier.

[0200] Based on the initial traffic data, forward the target traffic data to the target VLAN sub-interface.

[0201] In some embodiments, when a computer program is executed by a processor, it further performs the following steps:

[0202] If the VLAN ID is the same as the target VLAN ID, the initial traffic data is used as the target traffic data and forwarded to the target VLAN sub-interface.

[0203] If the VLAN identifier and the target VLAN identifier are different, the VLAN identifier is replaced with the target VLAN identifier in the initial traffic data to obtain the target traffic data, and the target traffic data is forwarded to the target VLAN sub-interface.

[0204] In some embodiments, when a computer program is executed by a processor, it further performs the following steps:

[0205] Receive a fifth configuration instruction sent by the controller, the fifth configuration instruction including a second data forwarding field;

[0206] If the second data forwarding field indicates that data forwarding is not allowed, the association between the first data forwarding field and the target VLAN sub-interface is removed to prevent the OLT from forwarding target traffic data to the target VLAN sub-interface.

[0207] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.

[0208] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0209] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A configuration method for traffic data forwarding, used in an optical line terminal (OLT), the method comprising: Receive configuration instructions sent by the controller, the configuration instructions including the target virtual local area network (VLAN) identifier; According to the configuration instructions, the OLT is configured to forward the target traffic data sent by the second ONU to the target VLAN sub-interface in the first optical network unit (ONU) that corresponds to the target VLAN identifier.

2. The method according to claim 1, wherein, The configuration instructions include a first configuration instruction and a second configuration instruction. The first configuration instruction includes a repeater identifier, and the second configuration instruction includes the target VLAN identifier. Configuring the OLT according to the configuration instructions includes: A repeater is created in the OLT according to the repeater identifier; Configure the repeater according to the target VLAN identifier.

3. The method according to claim 2, wherein, The configuration instruction further includes a third configuration instruction, which includes sub-interface identifiers of multiple VLAN sub-interfaces corresponding to multiple target ONUs. The multiple target ONUs include at least the first ONU and the second ONU. The configuration of the repeater based on the target VLAN identifiers includes: Each VLAN sub-interface is added to the repeater according to its sub-interface identifier; Based on the target VLAN identifier, the target VLAN sub-interface is determined among the VLAN sub-interfaces that have joined the repeater.

4. The method according to claim 2, wherein, The configuration instructions further include a fourth configuration instruction, which includes a first data forwarding field. The step of determining the target VLAN sub-interface among the VLAN sub-interfaces joined to the forwarder based on the target VLAN identifier includes: When the first data forwarding field indicates that traffic data forwarding is allowed, the target VLAN sub-interface corresponding to the target VLAN identifier in each of the VLAN sub-interfaces is associated with the first data forwarding field.

5. The method according to any one of claims 2-4, wherein, The method further includes: Receive initial traffic data carrying a VLAN identifier sent by the second ONU, wherein the VLAN identifier may be the same as or different from the target VLAN identifier; Based on the initial traffic data, the target traffic data is forwarded to the target VLAN sub-interface.

6. The method according to claim 5, wherein, The step of forwarding target traffic data to the target VLAN sub-interface in the first ONU corresponding to the target VLAN identifier based on the initial traffic data includes: If the VLAN identifier is the same as the target VLAN identifier, the initial traffic data is used as the target traffic data, and the target traffic data is forwarded to the target VLAN sub-interface; If the VLAN identifier is different from the target VLAN identifier, the VLAN identifier in the initial traffic data is replaced with the target VLAN identifier to obtain the target traffic data, and the target traffic data is forwarded to the target VLAN sub-interface.

7. The method according to claim 5, wherein, After forwarding the target traffic data to the target VLAN sub-interface in the first ONU corresponding to the target VLAN identifier based on the initial traffic data, the method further includes: Receive a fifth configuration instruction sent by the controller, the fifth configuration instruction including a second data forwarding field; If the second data forwarding field indicates that data forwarding is not allowed, the association between the first data forwarding field and the target VLAN sub-interface is terminated to prevent the OLT from forwarding the target traffic data to the target VLAN sub-interface.

8. The method according to claim 1, wherein, Before receiving configuration instructions sent by the controller, the method further includes: When the OLT starts up, based on split horizon technology, all PON ports of the OLT are configured to disable traffic data forwarding.

9. The method according to claim 5, wherein, The VLAN identifier is set after the destination MAC address and source MAC address in the data frame and before the protocol type field.

10. A configuration device for traffic data forwarding, used in an optical line terminal (OLT), the device comprising: The first receiving module is used to receive configuration instructions sent by the controller, wherein the configuration instructions include the target virtual local area network (VLAN) identifier; The first configuration module is used to configure the OLT according to the configuration instructions, so that the OLT forwards the target traffic data sent by the second ONU to the target VLAN sub-interface in the first ONU corresponding to the target VLAN identifier.

11. An optical line terminal (OLT), comprising: Receiver and processor; The receiver is used to receive configuration instructions sent by the controller, the configuration instructions including the target virtual local area network (VLAN) identifier; The processor is configured to configure the OLT according to the configuration instructions, so that the OLT forwards the target traffic data sent by the second ONU to the target VLAN sub-interface in the first ONU corresponding to the target VLAN identifier.

12. The OLT according to claim 11, wherein, The configuration instructions include a first configuration instruction and a second configuration instruction. The first configuration instruction includes a repeater identifier, and the second configuration instruction includes the target VLAN identifier. The processor is used to: A repeater is created in the OLT according to the repeater identifier; Configure the repeater according to the target VLAN identifier.

13. The OLT according to claim 12, wherein, The configuration instruction further includes a third configuration instruction, which includes sub-interface identifiers of multiple VLAN sub-interfaces corresponding to multiple target ONUs. The multiple target ONUs include at least the first ONU and the second ONU. The processor configures the repeater according to the target VLAN identifiers, including: Each VLAN sub-interface is added to the repeater according to its sub-interface identifier; Based on the target VLAN identifier, the target VLAN sub-interface is determined among the VLAN sub-interfaces that have joined the repeater.

14. The OLT according to claim 12, wherein, The configuration instructions further include a fourth configuration instruction, the fourth configuration instruction including a first data forwarding field, and the processor is further configured to: When the first data forwarding field indicates that traffic data forwarding is allowed, the target VLAN sub-interface corresponding to the target VLAN identifier in each of the VLAN sub-interfaces is associated with the first data forwarding field.

15. The OLT according to any one of claims 12-14, further comprising a transmitter, in, The receiver is also used to receive initial traffic data carrying a VLAN identifier sent by the second ONU, wherein the VLAN identifier may be the same as or different from the target VLAN identifier; The transmitter is used to forward target traffic data to the target VLAN sub-interface based on the initial traffic data.

16. The OLT according to claim 15, wherein, The transmitter is used for: If the VLAN identifier is the same as the target VLAN identifier, the initial traffic data is used as the target traffic data, and the target traffic data is forwarded to the target VLAN sub-interface; If the VLAN identifier is different from the target VLAN identifier, the VLAN identifier in the initial traffic data is replaced with the target VLAN identifier to obtain the target traffic data, and the target traffic data is forwarded to the target VLAN sub-interface.

17. The OLT according to claim 15, wherein, The receiver is also configured to receive a fifth configuration instruction sent by the controller, the fifth configuration instruction including a second data forwarding field. The processor is also used to remove the association between the first data forwarding field and the target VLAN sub-interface when the second data forwarding field indicates that data forwarding is not allowed.

18. A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 9.

19. A computer program product comprising a computer program that, when executed by a processor, implements the steps of the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Peer to peer communicating method of gigabit passive optical network

    CN101227752A

  • Passive optical network traffic flow configuration

    CN117278885A

  • Flow data forwarding configuration method and device, OLT and storage medium

    CN119172663A

  • Supporting optical line terminals of a passive optical network

    US11245971B1