Service transmission method, optical communication device, and storage medium
By migrating the line card forwarding processing module of optical communication equipment to the forwarding device, the problem of high power consumption of the line card is solved, achieving low carbon emissions and high-efficiency transmission.
Patent Information
- Application Number
- PCT/CN2025/099225
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-07-24
- Filing Date
- 2025-06-05
- Publication Date
- 2026-01-29
AI Technical Summary
Optical communication equipment has many integrated modules in its line cards, resulting in high power consumption and failing to meet the green concept requirements of carbon neutrality and carbon peaking.
The forwarding processing module of the line card is moved to an independent forwarding device, which performs forwarding processing such as route lookup, protocol conversion, and QoS control. The line card only performs digital signal processing, reducing the integration of forwarding modules.
It reduces the power consumption of the line card, reduces heat dissipation pressure, improves network performance and reliability, reduces transmission latency, and achieves low carbon emissions.
Smart Images

Figure CN2025099225_29012026_PF_FP_ABST
Abstract
Description
A method for service transmission, an optical communication device, and a storage medium.
[0001] This application claims priority to Chinese Patent Application No. 202411001974.1, filed on July 24, 2024, entitled "A Method for Service Transmission, Optical Communication Device and Storage Medium", the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of optical communication technology, and in particular to a method for service transmission, an optical communication device, and a storage medium. Background Technology
[0003] Broadband access technology has developed rapidly in recent years, with passive optical networks (PONs) achieving large-scale popularization and rapid expansion. As user data demand continues to increase dramatically, 10-gigabit-capable passive optical networks (XG-PONs) have entered the large-scale deployment stage, and next-generation PON system standards (such as 50G PON, 100G PON, and even higher-speed PONs) are being gradually developed and improved. As the bandwidth of optical communication equipment increases, its power consumption will also increase. Under the green concepts of carbon neutrality and carbon peaking, it is necessary to reduce the power consumption of optical communication equipment.
[0004] Optical communication equipment specifically includes a main control board and one or more line cards. Each line card integrates a field-programmable gate array (FPGA) or media access control (MAC) chip for digital signal processing. The line card also integrates a network process (NP), traffic management (TM) module, or protocol processor (PP) for forwarding processing.
[0005] The line cards of optical communication equipment integrate many modules, which increases the power consumption of the line cards and thus the power consumption of the entire optical communication equipment. This makes it impossible to meet the power consumption reduction requirements under the green concept of carbon neutrality and carbon peaking. Summary of the Invention
[0006] This application provides a service transmission method, an optical communication device, and a storage medium, which can effectively reduce the power consumption of the line card, thereby reducing the power consumption of the entire optical communication device.
[0007] In a first aspect, this application provides a service transmission method applied to an optical communication device, the optical communication device including a line card and a forwarding device, the optical communication device being connected between a first device and a second device. For example, the first device may be a network device (such as a switch or router) or a server, and the second device may be an optical network terminal device. The forwarding device may be a separate line card in the optical communication device, different from the line card, or integrated into a switching board, or integrated into a main control board, etc. The forwarding device and the line card are located separately in the optical communication device. The method includes: First, the line card receives a first optical signal from the first device, the first optical signal being used to carry services. Second, the line card converts the first optical signal into a first electrical signal. Third, the line card performs digital signal processing on the first electrical signal to obtain a first message. The digital signal processing may include analog-to-digital conversion, attenuation compensation, message reassembly, equalization processing, etc. Finally, the line card sends the first message without forwarding processing to the forwarding device. Specifically, the line card does not need to perform forwarding processing on the first packet, such as route lookup, protocol conversion, quality of service (QoS) control, priority scheduling, congestion control, or queue scheduling. Instead, it directly sends the digitally processed first packet to the forwarding device. Finally, the forwarding device forwards the first packet to the second device.
[0008] Using the method described in this section, the line card does not need to integrate a power-intensive forwarding module for forwarding processing. Therefore, even as the bandwidth of the optical network increases, the line card only needs to perform digital signal processing through its processing module, without performing forwarding processing. This ensures successful service transmission by the optical communication equipment while reducing the power consumption of the line card. Reducing the power consumption of the line card also reduces its heat dissipation burden.
[0009] Optical communication equipment uses line cards to perform forwarding processes such as route lookup, protocol conversion, QoS control, priority scheduling, congestion control, and queue scheduling to ensure that the first packet can be successfully forwarded to the forwarding device. The forwarding device then performs forwarding processes such as route lookup, protocol conversion, QoS control, priority scheduling, congestion control, and queue scheduling on the first packet to ensure that the first packet can be successfully forwarded to the upper-layer device. This aspect integrates the module on the line card used for performing forwarding processes into the forwarding device, which then performs the forwarding processes such as route lookup, protocol conversion, QoS control, priority scheduling, congestion control, and queue scheduling on the first packet. The forwarding device shown in this aspect (which integrates the module on the line card used for performing forwarding processes) achieves multiplexing of forwarding processes, thus its power consumption does not increase significantly. Furthermore, the power consumption of the line card shown in this aspect is significantly reduced, effectively lowering the power consumption of the entire optical communication equipment.
[0010] Based on the first aspect, in one optional implementation, the forwarding device forwarding the first message to the second device includes: the forwarding device performing forwarding processing on the first message to obtain a first service message; and the forwarding device sending the first service message to the second device.
[0011] With this implementation, as the bandwidth of the optical network increases, the amount of data that the forwarding module needs to process also increases dramatically. Since the line card does not need to be equipped with an independent forwarding module for forwarding processing, the forwarding processing is not performed by the line card, but by the forwarding device, so as to ensure that the first service packet can be transmitted to the second device in a timely manner, thereby reducing transmission latency and improving network performance and reliability.
[0012] Based on the first aspect, in one optional implementation, the forwarding device forwarding the first message to the second device includes: the forwarding device transparently transmitting the first message to the second device.
[0013] In this implementation, the forwarding device determines that the first message is a direct-transmission message based on its attribute information. Therefore, the forwarding device directly transmits the first message to the second device. This means the forwarding device does not perform any forwarding processing on the first message, achieving fast forwarding of the first message, reducing transmission latency, and improving the efficiency and flexibility of forwarding the first message. The attribute information of the first message may include source address information, destination address information, priority information, protocol information, service attribute information of the first service carried by the first message, traffic size, latency requirements, etc.
[0014] Based on the first aspect, in one optional implementation, the line card includes a routing module and a processing module. The routing module can be a chip or module independent of the processing module; alternatively, the routing module can be integrated into the processing module as part of the processing module. The line card performs digital signal processing on the first electrical signal to obtain a first message, including: the processing module performs digital signal processing on the first electrical signal to obtain the first message; the processing module sends the first message to the routing module; the line card sends the first message (without forwarding processing) to the forwarding device, including: the routing module sends the first message to the forwarding device according to a first forwarding relationship, wherein the first forwarding relationship includes a correspondence between address information for identifying the first device, address information for identifying the second device, and the identifier of the forwarding device, wherein the routing module shown in this aspect connects to one or more forwarding devices. The forwarding device included in the first forwarding relationship is one of at least one forwarding device connected to the routing module.
[0015] As shown in this implementation, the routing module included in the line card does not need to perform forwarding processing, but instead forwards the first message to the corresponding forwarding device, ensuring that the first message can be successfully forwarded to the second device and improving the reliability of the first message transmission.
[0016] Based on the first aspect, in one optional implementation, after the line card performs digital signal processing on the first electrical signal to obtain the first message, the method further includes: the line card adding first tag information to the first message, the first tag information being used to identify the path traversed by the first message in the forwarding device.
[0017] In this implementation, the first message sent by the line card to the forwarding device carries first tag information. The first tag information identifies the path traversed by the first message in the forwarding device. The forwarding device then forwards the first message according to the first tag information, thereby effectively avoiding traffic detours for the first message, improving the success rate of the first message transmission, reducing the latency of the first message transmission to the second device, thereby improving communication efficiency and reducing the power consumption consumed in forwarding the first message.
[0018] Based on the first aspect, in one optional implementation, the optical communication device includes a switching module, and the forwarding device includes a forwarding module. For example, the switching module and the forwarding module can be two separate modules, and both are integrated onto a forwarding line card, which is different from a line card. Alternatively, the switching module and the forwarding module can be two separate modules, and each is integrated onto a different forwarding line card. Another example is that the switching module and the forwarding module can be two separate modules, and both are integrated onto a switching board or a main control board. Yet another example is that one of the switching module and the forwarding module is integrated onto a switching board, and the other onto a main control board. Still another example is that the switching module and the forwarding module can be two separate modules, and one is integrated onto a switching board, and the other onto a forwarding line card. For example, the switching module and the forwarding module can be two separate modules, with one integrated onto the main control board and the other onto the forwarding line card. Alternatively, the switching module and the forwarding module can be the same module, integrated onto the forwarding line card, the main control board, or the switching board. The first tag information includes the identifier of the switching module and the identifier of the forwarding module. The line card sending the first message without forwarding processing to the forwarding device includes: the line card sending the first message to the switching module based on the identifier of the switching module; the switching module sending the first message to the forwarding module based on the identifier of the forwarding module; the forwarding device forwarding the first message to the second device includes: the forwarding module forwarding the first message to the second device.
[0019] By adopting this implementation method, the forwarding device forwards the first message according to the identifier of the switching module and the identifier of the forwarding module included in the first tag information, which effectively avoids traffic detour of the first message, improves the success rate of the first message transmission, reduces the latency of the first message transmission to the second device, thereby improving communication efficiency and reducing the power consumption consumed in forwarding the first message.
[0020] Based on the first aspect, in an optional implementation, the optical communication device further includes a switching module and an extended forwarding device, and the method further includes: the line card receiving a first extended optical signal; the line card converting the first extended optical signal into a first extended electrical signal; the line card performing digital signal processing on the first extended electrical signal to obtain a first extended message; the line card sending the first extended message without forwarding processing to the switching module; the switching module sending the first extended message to the extended forwarding device; and the extended forwarding device forwarding the first extended message to a third device.
[0021] This implementation allows for the addition of extended forwarding devices to optical communication equipment as needed, thereby increasing the bandwidth between the optical communication equipment and upper-layer devices. This enables flexible bandwidth expansion and enhances the optical communication equipment's ability to forward packets to upper-layer devices. Furthermore, the extended forwarding module does not require integration with the switching module; instead, the extended forwarding module of the extended forwarding device is connected to the switching module, improving the integration of the optical communication equipment, reducing the power consumption of the extended forwarding device, and simplifying its heat dissipation.
[0022] Based on the first aspect, in one optional implementation, the line card includes a routing module and a processing module. The line card performs digital signal processing on the first extended electrical signal to obtain a first extended message, comprising: the processing module performing digital signal processing on the first extended electrical signal to obtain the first extended message; the processing module sending the first extended message to the routing module; the line card sending the first extended message without forwarding processing to the switching module comprising: the routing module sending the first extended message to the switching module according to a first extended forwarding relationship, wherein the first extended forwarding relationship includes a correspondence between address information for identifying the first device, address information for identifying the third device, the identifier of the switching module, and the identifier of the extended forwarding device; the switching module sending the first extended message to the extended forwarding device according to the first extended forwarding relationship.
[0023] This implementation increases the bandwidth between the optical communication device and the upper-layer device, enabling flexible bandwidth expansion and enhancing the optical communication device's ability to forward packets to the upper-layer device. Furthermore, the extended forwarding module does not require integration with the switching module; instead, the extended forwarding module of the extended forwarding device is connected to the switching module, improving the integration of the optical communication device, reducing the power consumption of the extended forwarding device, and simplifying its heat dissipation.
[0024] Based on the first aspect, in an optional implementation, after the line card performs digital signal processing on the first extended electrical signal to obtain the first extended message, the method further includes: the line card adding first extended tag information to the first extended message, the first extended tag information being used to identify the path traversed by the first extended message. For example, the first extended tag information includes the identifier of the switching module and the identifier of the extended forwarding module.
[0025] In this implementation, to avoid traffic detours during the transmission of the first extended message to the third device, the routing module adds a first extended tag to the header of the first extended message. This first extended tag identifies the path traversed by the first extended message, ensuring successful delivery to the third device. Based on this first extended tag, traffic detours are avoided during the transmission of the first extended message to the third device, effectively reducing the latency of sending the first extended message to the third device, thereby improving communication efficiency and reducing the power consumption of forwarding the first extended message.
[0026] Based on the first aspect, in one optional implementation, the extended forwarding device includes an extended forwarding module. The first extended message carries first extended tag information, which includes the identifier of the switching module and the identifier of the extended forwarding module. The line card sending the first extended message without forwarding processing to the switching module includes: the line card sending the first extended message to the switching module according to the identifier of the switching module; the switching module sending the first extended message to the extended forwarding device includes: the switching module sending the first extended message to the extended forwarding module according to the identifier of the extended forwarding module; the extended forwarding device forwarding the first extended message to the third device includes: the extended forwarding module forwarding the first extended message to the third device.
[0027] In this implementation, the switching module and the extended forwarding device forward the first extended message according to the first extended tag information to ensure that the first extended message is successfully transmitted to the third device. Moreover, it avoids traffic detours during the transmission of the first extended message to the third device, effectively reduces the latency of sending the first extended message to the third device, thereby improving communication efficiency and reducing the power consumption of forwarding the first extended message.
[0028] Based on the first aspect, in one optional implementation, the optical communication device includes a first scheduling unit. For example, the first scheduling unit is integrated into the forwarding module; alternatively, the first scheduling unit is separate from the forwarding module but integrated into the same forwarding device; or alternatively, the first scheduling unit can be integrated into another line card, main control board, or switching board different from the forwarding device; or alternatively, the first scheduling unit is integrated into the line card, etc. Before the line card receives the first optical signal from the first device, the method further includes: the line card receiving a first bandwidth request from the first device; the line card sending the first bandwidth request to the first scheduling unit; the first scheduling unit sending allocation information to the line card according to the first bandwidth request, the allocation information indicating bandwidth; the line card sending the allocation information to the first device, the first device occupying the bandwidth and sending the first optical signal to the line card.
[0029] In this implementation, when the line card receives a first bandwidth request from the optical network terminal device, it does not allocate the first bandwidth. Instead, it sends the first bandwidth request to the first scheduling unit, which then allocates the first bandwidth. Because the line card does not need to allocate the first bandwidth, its power consumption and heat dissipation are effectively reduced, which is beneficial for achieving low carbon emissions.
[0030] Based on the first aspect, in one optional implementation, the optical communication device includes a second scheduling unit. For example, the second scheduling unit is integrated into the forwarding module; alternatively, the second scheduling unit is separate from the forwarding module but integrated into the same forwarding device; or alternatively, the second scheduling unit can be integrated into another line card, main control board, or switching board different from the forwarding device; or alternatively, the second scheduling unit is integrated into the line card, etc. Before the line card sends the allocation information to the first device, the method further includes: the first scheduling unit and the second scheduling unit jointly allocating the bandwidth according to the first bandwidth request.
[0031] In this implementation, the first scheduling unit and the second scheduling unit jointly allocate the first bandwidth, effectively avoiding conflicts between the first bandwidths allocated to different optical network terminal devices and improving the reliability of the optical network terminal devices sending the first service.
[0032] Secondly, this application provides a service transmission method applied to an optical communication device, the optical communication device including a line card and a forwarding device, the method comprising: the forwarding device receiving a second message from a second device; the forwarding device forwarding the second message to the line card; the line card performing digital signal processing on the second message to obtain a second electrical signal, wherein the second message has not undergone forwarding processing by the line card; the line card converting the second electrical signal into a second optical signal and transmitting the second optical signal to a first device. For an explanation of the beneficial effects of this aspect, please refer to the first aspect, which will not be elaborated further.
[0033] Based on the second aspect, in an optional implementation, the forwarding device forwarding the second message to the line card includes: the forwarding device performing forwarding processing on the second message to obtain a second service message; the forwarding device sending the second service message to the line card; and the line card performing digital signal processing on the second message to obtain a second electrical signal, including: the line card performing digital signal processing on the second service message to obtain the second electrical signal.
[0034] Based on the second aspect, in one optional implementation, the forwarding device forwarding the second message to the line card includes: the forwarding device transparently transmitting the second message to the line card.
[0035] Based on the second aspect, in an optional implementation, the forwarding device forwarding the second message to the line card includes: the forwarding device sending the second service message to the line card according to a second forwarding relationship, wherein the second forwarding relationship includes a correspondence between address information for identifying the first device, address information for identifying the second device, and the identifier of the line card, wherein the line card is one of at least one line card connected to the forwarding device.
[0036] Based on the second aspect, in an optional implementation, after the forwarding device receives the second message from the second device, the method further includes: the forwarding device adding second tag information to the second message, the second tag information being used to identify the path traversed by the second message in the line card.
[0037] Based on the second aspect, in an optional implementation, the line card includes a routing module, a processing module, and an optical module. The second tag information includes the identifier of the routing module, the identifier of the processing module, and the identifier of the optical module. The forwarding device forwarding the second message to the line card includes: the forwarding device sending the second message to the routing module according to the identifier of the routing module; the routing module sending the second message to the processing module according to the identifier of the processing module; the line card performing digital signal processing on the second message to obtain a second electrical signal includes: the processing module performing digital signal processing on the second message to obtain a second electrical signal; the processing module sending the second electrical signal to the optical module according to the identifier of the optical module; and the line card converting the second electrical signal into a second optical signal includes: the optical module converting the second electrical signal into a second optical signal.
[0038] Based on the second aspect, in one optional implementation, the extended forwarding device receives a second extended message from a third device; the extended forwarding device sends the second extended message to the switching module; the switching module forwards the second extended message to the line card; the line card performs digital signal processing on the second extended message to obtain a second extended electrical signal, wherein the second extended message has not undergone forwarding processing by the line card; the line card converts the second extended electrical signal into a second extended optical signal and sends the second extended optical signal to the first device.
[0039] Based on the second aspect, in an optional implementation, the extended forwarding device includes an extended forwarding module. After the extended forwarding device receives a second extended message from a third device, the method further includes: the extended forwarding module adding second extended tag information to the second extended message, the second extended tag information including the identifier of the switching module; the extended forwarding device sending the second extended message to the switching module includes: the extended forwarding module sending the second extended message to the switching module according to the identifier of the switching module.
[0040] Based on the second aspect, in an optional implementation, the forwarding device includes a forwarding unit, the optical communication device includes a first scheduling unit, and before the forwarding device receives the second message from the second device, the method further includes: the forwarding unit sending a target bandwidth request to the first scheduling unit; the first scheduling unit sending target allocation information to the line card according to the target bandwidth request, the target allocation information being used to indicate the target bandwidth; the forwarding device forwarding the second message to the line card includes: the forwarding device occupying the target bandwidth and forwarding the second message to the line card.
[0041] Thirdly, this application provides an optical communication device, which includes a line card and a repeater; the line card is used for:
[0042] The system receives a first optical signal from a first device; converts the first optical signal into a first electrical signal; performs digital signal processing on the first electrical signal to obtain a first message; and sends the first message without forwarding processing to the forwarding device. The forwarding device is used to forward the first message to a second device. For an explanation of the structure and beneficial effects of this aspect, please refer to the first aspect; specific details will not be elaborated further.
[0043] Fourthly, this application provides an optical communication device, which includes a line card and a forwarding device. The forwarding device is used to: receive a second message from a second device; forward the second message to the line card; the line card is used to: perform digital signal processing on the second message to obtain a second electrical signal, wherein the second message has not undergone forwarding processing by the line card; convert the second electrical signal into a second optical signal, and send the second optical signal to a first device. For a description of the structure and beneficial effects of this aspect, please refer to the first aspect, which will not be elaborated further.
[0044] Fifthly, this application provides a line card, including an optical module, a processing module, and a routing module; the optical module is used to receive a first optical signal from a first device and to convert the first optical signal into a first electrical signal; the processing module is used to perform digital signal processing on the first electrical signal to obtain a first message; the routing module is used to send the first message, which has not undergone forwarding processing, to a forwarding device. For a description of the method and beneficial effects of the various devices included in the line card performing service transmission, please refer to the description of the line card's execution process and beneficial effects shown in the first aspect; specific details will not be repeated here.
[0045] Sixthly, this application provides a line card, including an optical module, a processing module, and a routing module; the routing module is used to receive a second message from a forwarding device; the processing module is used to perform digital signal processing on the second message to obtain a second electrical signal, wherein the second message has not undergone forwarding processing by the line card; the optical module is used to convert the second electrical signal into a second optical signal and transmit the second optical signal to a first device. For a description of the method and beneficial effects of the various devices included in the line card performing service transmission, please refer to the description of the line card's execution process and beneficial effects shown in the second aspect; specific details will not be repeated here.
[0046] In a seventh aspect, this application provides a forwarding apparatus, including a switching module and a forwarding module. The switching module receives a first message from a line card that has not undergone forwarding processing. The first message is used to carry services. The forwarding module forwards the first message to a second device. For a description of the method and beneficial effects of the various devices included in the forwarding apparatus performing service transmission, please refer to the description of the process and beneficial effects of the forwarding apparatus shown in the first aspect; specific details will not be repeated here.
[0047] Eighthly, this application provides a forwarding apparatus, including a switching module and a forwarding module. The forwarding module is used to receive a second message from a second device, the second message being used to carry services, and the switching module is used to forward the second message to the line card. For an explanation of the method and process by which the various devices in the forwarding apparatus perform service transmission and the beneficial effects, please refer to the explanation of the process and beneficial effects of the forwarding apparatus shown in the second aspect; specific details will not be repeated here.
[0048] Ninthly, this application provides a computer-readable storage medium storing computer instructions that, when executed on a computer, cause the methods described in the first aspect and the second aspect to be performed.
[0049] In a tenth aspect, this application provides an optical network, including optical communication equipment as shown in the fourth or fifth aspect.
[0050] Based on the tenth aspect, in an optional implementation, the optical network further includes a first device and a second device connected to the optical communication equipment.
[0051] Eleventhly, this application provides a chip including a processor and a communication interface, the communication interface being used to receive data and transmit it to the processor, or to send data from the processor to another chip, the processor being used to perform the methods shown in any one of the first to second aspects above. Attached Figure Description
[0052] Figure 1 is a structural example of an optical network;
[0053] Figure 2 shows another example of an optical network structure;
[0054] Figure 3 is a structural example diagram of an optical network central office equipment;
[0055] Figure 4 is a structural example diagram of a first embodiment of the optical communication device provided in this application;
[0056] Figure 5 is an example diagram of the first structure of the forwarding module shown in Figure 4;
[0057] Figure 6 is a flowchart of one embodiment of the service transmission method performed by the optical communication equipment shown in Figure 4;
[0058] Figure 7 is an example of the second structure of the forwarding module shown in Figure 4;
[0059] Figure 8 is a flowchart of one embodiment of the service transmission method performed by the optical communication equipment shown in Figure 7;
[0060] Figure 9 is a structural example diagram of a second embodiment of the optical communication device provided in this application;
[0061] Figure 10 is a flowchart of one embodiment of the service transmission method performed by the optical communication equipment shown in Figure 9;
[0062] Figure 11 is a structural example diagram of a third embodiment of the optical communication device provided in this application;
[0063] Figure 12 is a flowchart of one embodiment of the service transmission method performed by the optical communication equipment shown in Figure 11;
[0064] Figure 13 is a structural example diagram of a fourth embodiment of the optical communication device provided in this application;
[0065] Figure 14 is a flowchart of one embodiment of the service transmission method performed by the optical communication equipment shown in Figure 13;
[0066] Figure 15 is a flowchart of another embodiment of the service transmission method performed by the optical communication equipment shown in Figure 13;
[0067] Figure 16 is a structural example diagram of a fifth embodiment of the optical communication device provided in this application;
[0068] Figure 17 is a flowchart of the first embodiment of the service transmission method performed by the optical communication equipment shown in Figure 16;
[0069] Figure 18 is a flowchart of the steps of a second embodiment of the service transmission method performed by the optical communication equipment shown in Figure 16;
[0070] Figure 19 is a structural example diagram of a sixth embodiment of the optical communication device provided in this application;
[0071] Figure 20 is a flowchart of one embodiment of the service transmission method performed by the optical communication equipment shown in Figure 19;
[0072] Figure 21 is a structural example diagram of the seventh embodiment of the optical communication device provided in this application;
[0073] Figure 22 is a flowchart of the steps of the first embodiment of the service transmission method performed by the optical communication equipment shown in Figure 21;
[0074] Figure 23 is a flowchart of the steps of a second embodiment of the service transmission method performed by the optical communication equipment shown in Figure 21;
[0075] Figure 24 is a structural example diagram of the eighth embodiment of the optical communication device provided in this application;
[0076] Figure 25 is a flowchart of the steps of the first embodiment of the service transmission method performed by the optical communication equipment shown in Figure 24;
[0077] Figure 26 is a flowchart of the steps of a second embodiment of the service transmission method performed by the optical communication equipment shown in Figure 24;
[0078] Figure 27 is a structural example diagram of the ninth embodiment of the optical communication device provided in this application;
[0079] Figure 28 is a flowchart of the steps of the first embodiment of the service transmission method performed by the optical communication equipment shown in Figure 27;
[0080] Figure 29 is a flowchart of the steps of a second embodiment of the service transmission method performed by the optical communication equipment shown in Figure 27;
[0081] Figure 30 is a schematic block diagram of an embodiment of the communication device provided in this application;
[0082] Figure 31 is a schematic diagram of one embodiment of the chip provided in this application. Detailed Implementation
[0083] The technical solutions of the embodiments of this application will be 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 of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0084] This application provides a service transmission method, optical communication equipment, and storage medium. First, the optical network used in this application embodiment is described. This application embodiment does not limit the type of optical network. For example, the type of optical network is a passive optical network (PON). Figure 1 is a structural example diagram of an optical network. The optical network 100 includes an optical network central office equipment 101, an optical distribution network (ODN), and at least one optical network terminal equipment 102. The optical network central office equipment 101 is connected to at least one optical network terminal equipment 102 through the ODN. This example does not limit the number of optical network terminal equipment 102 included in the optical network. The ODN includes a passive optical splitter 103, a backbone fiber (Feeder) connecting the optical network central office equipment 101 and the passive optical splitter 103, and a branch fiber (Drop) connecting the optical network terminal equipment 102 and the passive optical splitter 103. The passive optical splitter 103 will be referred to as the splitter 103 below. In this system, optical network central office equipment 101 transmits optical signals to optical network terminal equipment 102 via ODN (downlink), while optical network terminal equipment 102 transmits optical signals to optical network central office equipment 101 via ODN (uplink). Specifically, when transmitting downlink services, the ODN transmits the downlink services from optical network central office equipment 101 to each optical network terminal equipment 102 via optical splitter 103. When transmitting uplink services, the ODN combines multiple uplink services from multiple optical network terminal equipment 102 into a single optical signal using time division multiplexing (TDM) and transmits it to optical network central office equipment 101. Each optical network terminal equipment 102 transmits the signals sequentially according to the order specified by optical network central office equipment 101, thereby avoiding conflicts between optical network terminal equipment 102.
[0085] The optical network terminal device 102 shown in this example can be an optical network unit (ONU) or an optical network terminal (ONT), and the optical network central office device 101 is an optical line terminal (OLT). The optical network central office device 101 connects to upper-layer devices (such as switches, routers, etc.). The optical network terminal device 102 can connect to user-side devices. For example, the optical network terminal device 102 provides Ethernet user ports or plain old telephone service (POTS) user ports to connect to user-side devices. It should be noted that the description of the optical network type shown in Figure 1 is an optional example and is not limited. For example, the optical network 100 can also be applied to an optical transport network (OTN), in which case both the optical network central office device 101 and the optical network terminal device 102 are OTN devices. If the optical network 100 is applied to a wireless mesh network, also known as a multi-hop network, and this mesh includes multiple transmission devices with mesh functionality, then the optical network central office equipment 101 and the optical network terminal equipment 102 are any two of the multiple transmission devices connected together. The optical network 100 shown in this example can also be applied to any one or more combinations of data center networks (DCN), metropolitan area networks (MANs), optical access networks (OANs), synchronous digital hierarchy (SDH), gigabit-capable passive optical networks (GPONs), Ethernet passive optical networks (EPONs), XG-PON, 50G-PON and higher speed PON standards, Ethernet, or flex Ethernet (FlexE), wavelength division multiplexing (WDM) networks, etc., without specific limitations.
[0086] Taking optical network central office equipment 101 as an example, this example does not limit the type of equipment 101. Depending on the application scenario of the optical network, the type of equipment 101 can also vary. For example, optical network central office equipment 101 can be an optical transmission device, optical access device, router, switch, wireless base station, wireless remote access device, wireless baseband signal processing device, etc., or it can be a computing server (usually referred to as a server), high-performance computer (HPC), storage server, or memory resource pool, etc. This example does not limit the type of optical network central office equipment 101, as long as it has electro-optical conversion function and an optical interface capable of connecting to optical fibers. For a description of the type of optical network terminal equipment 102, please refer to the description of optical network central office equipment 101; details will not be elaborated here.
[0087] Fiber to the home (FTTH) is a fiber optic communication transmission method. The access network portion of the aforementioned optical network can achieve wider coverage through FTTH. Furthermore, fiber to the office (FTTO) and fiber to the building (FTTB) are also proposed as similar communication transmission methods, which can also be the application architecture of the method provided in this application. The example shown in Figure 1 is based on FTTH and is described exemplarily.
[0088] Building upon FTTH, to address the issue of wireless local area network (WLAN) coverage in home networks, fiber optic cables can be extended further into the homes of residents. Optical terminal equipment providing WiFi access is installed inside the rooms, thus reducing the distance between the user's terminal and the WiFi access point and improving signal quality. This application scenario is called Fiber to the Room (FTTR).
[0089] Figure 2 shows another example of an optical network structure, specifically a schematic diagram of the FTTR system architecture. The FTTR and FTTH networks can be viewed as cascaded PON systems. In FTTH, the OLT is deployed in the central office (CO), and the ONU is deployed in the home's information box. The master device in FTTR can replace the ONU in FTTH. This master device has similar functions to the OLT in the FTTH scenario, and also similar functions to the ONU in the FTTH scenario. That is to say, the master device in FTTR is a device that combines the functions of OLT and ONU, and can act as a network device connecting FTTH and FTTR. The slave devices in FTTR can be deployed in each room of the home to connect with user terminals (stations). These slave devices are essentially similar network devices to the ONUs in FTTH. The slave devices in FTTR enter each room, and the slave gateway can also function as an access point (AP), allowing direct WiFi connection with user terminals. User terminals can connect to slave devices and transmit data via a WiFi connection established between them.
[0090] It should be understood that multiple slave devices can be deployed in an FTTR, with each slave device connected to a corresponding downlink port on the master device. The master device can achieve unified management and configuration of all slave devices. It should be noted that the master device can also be called a "master gateway," "master optical modem," or "master FTTR device," and the slave device can also be called a "slave gateway," "slave optical modem," or "slave FTTR device," etc. This application does not limit their specific names. The optical network central office equipment shown in Figure 1 can also be a master device in an FTTR architecture, and the optical network terminal equipment shown in Figure 1 can also be a slave device in an FTTR architecture.
[0091] Based on the architecture in Figure 2 above, in some scenarios, when a slave device in FTTR provides services to a user terminal, the data transmission method by which the user terminal accesses the slave device may be different from the data transmission method of the device in FTTH or FTTR. For example, FTTH or FTTR communicates internally through optical fiber, while the slave device and the terminal can communicate through a wireless network. This wireless network may include, but is not limited to, WiFi, near field communication (NFC), infrared, Bluetooth, or ZigBee.
[0092] It is understood that Figures 1 and 2 are only schematic diagrams. The optical network may also include other devices, such as wavelength division multiplexing (WDM) devices, optical amplifiers, and more optical network terminal devices, which are not shown in Figures 1 and 2.
[0093] Figure 3 shows a structural example of an existing optical network central office equipment. The optical network central office equipment includes: a main control board 301, N line cards, and a switching board 320. Line cards can also be called interface boards, service boards, etc. For example, the optical network central office equipment includes line card 311 and line card 31N. In this example, the value of N is not limited, as long as it is any integer not less than 1. The main control board 301 is used to perform system management and equipment maintenance functions. The switching board 320 can also be called a cross-connect board or a switching board. The switching board 320 is used to complete data exchange between the line cards. The line cards provide various service interfaces, such as synchronous optical network (SONET), SDH, gigabit Ethernet (GE), user-network interface (UNI), and network node interface (NNI).
[0094] Taking line card 311 as an example, line card 311 includes a device board, which includes a processing module 332 and a forwarding module 333. Line card 311 also includes an optical module 331 connected to the device board. This example shows that the optical module 331 is detachably connected to the device board. In other examples, the optical module 331 is integrated with the device board to achieve a non-detachable connection. The processing module 332 may include one or more chips, or one or more integrated circuits. For example, the processing module 332 may include one or more of the following: neural processing unit (NPU), optical digital signal processor (oDSP), field-programmable gate array (FPGA), application-specific integrated circuit (ASIC), system on chip (SoC), central processor unit (CPU), microcontroller unit (MCU), programmable logic device (PLD), network card chip, storage interface chip, or other integrated chip, etc. Specific details are not elaborated here.
[0095] In the uplink direction, line card 311 is used to send the first service to the upper-layer device connected to the main control board 301 via the main control board 301. For example, the upper-layer device can be a network device, such as a switch or router. As shown in Figure 2, the OLT can be located in the center office (CO), which also includes this network device. Alternatively, the upper-layer device can be an OTN. Another example is a server, such as a broadband remote access server (BRAS). Optical module 331 receives the first optical signal from the optical network terminal device via optical fiber. This first optical signal can carry various types of first services, such as SDH services, packet services, Ethernet services, FlexE, fronthaul services, OTN services, storage services, data center services, or supercomputing services, etc., without specific limitations. Optical module 331 performs photoelectric conversion on the first optical signal to obtain a first electrical signal. Processing module 332 performs digital signal processing on the first electrical signal to obtain a first message. For example, processing module 332 performs analog-to-digital conversion using an analog-to-digital converter (ADC) to obtain a digital signal. The digital signal processing in processing module 332 may also include attenuation compensation, message reassembly, multiple-in multiple-out (MIMO) equalization, and hard-decision forward error correction (FEC) based on feed-forward equalizers (FFE), continuous-time linear equalizers (CTLE), or decision feedback equalizers (DFE).
[0096] The forwarding module 333 of line card 311 is used to forward the first packet to obtain the first service packet and forward it to the main control board 301. For example, the forwarding module 333 performs packet parsing based on NP, and then forwards the parsed first packet to obtain the first service packet. Specifically, the forwarding module 333 can perform forwarding processing such as route lookup, protocol conversion, and quality of service (QoS) control based on NP. The forwarding module 333 can also perform forwarding processing such as priority scheduling, congestion control, and queue scheduling based on TM to obtain the first service packet. The first service packet is forwarded by the forwarding module 333 of line card 311 to ensure that the first service packet can be accurately transmitted to the main control board 301. When the main control board 301 receives the first service packet from line card 311, the forwarding module 334 of the main control board 301 also forwards the first service packet. Specifically, the forwarding module 334 performs packet parsing on the first service packet and then forwards the parsed first service packet. For example, forwarding module 334 can perform forwarding processing on the first service packet, including route lookup, protocol conversion, QoS control, priority scheduling, congestion control, and queue scheduling, to ensure that the first service packet can be successfully transmitted to the upper-layer device. It should be clarified that the forwarding processing described in this embodiment of the forwarding module 333 of line card 311 and the forwarding module 334 of main control board 301 is an optional example and is not limited, as long as it ensures that the first service packet can be accurately transmitted to main control board 301 and to the upper-layer device. For example, in the uplink direction, forwarding module 333 performs route lookup on the first service packet to determine the next-hop address of the first service packet (i.e., the address of main control board 301). Forwarding module 334 of main control board 301 performs route lookup on the first service packet to determine the next-hop address of the first service packet (i.e., the address of the upper-layer device). As another example, one of the forwarding modules 333 of line card 311 and 334 of main control board 301 is used for protocol conversion. This example uses the forwarding module 334 for protocol conversion. The forwarding module 334 performs protocol conversion on the frame format of the first service message to ensure that the frame format of the first service message corresponds to the frame format and protocol supported by the upper-layer device, so that the first service message can be subsequently processed by the upper-layer device. For example, the frame format of the first service message is a PON protocol frame. This example does not limit the type of PON protocol frame; for example, it could be an OTN frame, optical channel data unit (ODUk), ODUc, ODU flex, optical channel transport unit (OTUk), OTUc, or OTN Flex, etc.Here, k represents different rate levels, and Cn indicates a variable rate. An OTN frame can also be an optical service unit (OSU) frame. The forwarding module 334 converts the frame format of the first service packet into an Ethernet frame based on protocol conversion and forwards the Ethernet frame to the upper-layer device. It should be noted that this example does not limit the frame format of the first service packet or the frame format of the first service packet after protocol conversion.
[0097] In the downlink direction, the forwarding module 334 included in the main control board 301 receives a second message from the upper-layer device. For a description of the second service carried in the second message, please refer to the description of the first service in the uplink direction; details will not be repeated here. The forwarding module 334 performs packet parsing on the second message, and then forwards it to obtain the second service message, which is then forwarded to the line card 311. For example, the forwarding module 334 performs routing lookup, protocol conversion, QoS control, priority scheduling, congestion control, and queue scheduling on the parsed second message to ensure that the second service message can be successfully transmitted to the line card 311. For a description of the forwarding process performed by the forwarding module 334, please refer to the description of the forwarding process performed by the forwarding module 334 in the uplink direction; details will not be repeated here. For example, the forwarding module 334 performs protocol conversion on the second message to obtain the second service message. Specifically, the forwarding module 334 performs protocol conversion on the frame format of the second message (e.g., Ethernet protocol format) to obtain a converted second service message. The frame format of the converted second service message corresponds to the frame format and protocol supported by the optical network terminal equipment (e.g., PON protocol format), so that the second service carried by the converted second service message can be received by the optical network terminal equipment for subsequent processing. The forwarding module 333 of the line card 311 receives the second service message from the main control board 301. The forwarding module 333 performs packet parsing on the second service message and then performs forwarding processing on the parsed second service message. For example, the forwarding module 333 performs forwarding processing such as route lookup, protocol conversion, QoS control, priority scheduling, congestion control, and queue scheduling on the second service message to ensure that the second service message can be successfully forwarded to the optical network terminal equipment. For a description of the forwarding processing performed by the forwarding module 333 of the line card 311, please refer to the description of the forwarding processing performed by the forwarding module 333 in the uplink direction, which will not be repeated here.
[0098] The forwarding module 333 of line card 311 forwards the second service message to the processing module 332. The processing module 332 performs digital signal processing on the second service message to obtain a second electrical signal. For example, the processing module 332 performs digital signal processing such as digital-to-analog conversion, constellation mapping, and attenuation compensation based on a digital-to-analog converter (DAC), but the specifics are not limited. The processing module 332 sends the second electrical signal to the optical module 331. The optical module 331 performs electro-optical conversion on the second electrical signal to obtain a second optical signal, which is then transmitted to the optical network terminal equipment via optical fiber.
[0099] In the architecture shown in Figure 3, each line card requires an independent forwarding module for forwarding processing. As PON bandwidth increases, the amount of data the forwarding module needs to process also increases dramatically, placing higher demands on its performance and processing capabilities. To meet these demands, the forwarding module needs higher forwarding capabilities; for example, it needs lower latency and higher throughput. Simultaneously, to alleviate the pressure from high-speed data processing, the buffer capacity of the forwarding module also needs to be increased accordingly. Furthermore, each line card has an independent forwarding module, resulting in very high power consumption and significant heat dissipation pressure on each line card, which is detrimental to achieving low carbon emissions. Therefore, this application provides an optical communication device whose line cards do not integrate forwarding modules. This ensures successful service transmission while reducing the power consumption and heat dissipation pressure of each line card, thus contributing to low carbon emissions. This embodiment uses the optical network central office equipment shown in Figure 1 or the master equipment shown in Figure 2 as examples. In other examples, the optical communication device can also be the optical network terminal equipment shown in Figure 1 or the slave equipment shown in Figure 2, etc. This embodiment does not limit the type of optical communication device. The optical communication device shown in this embodiment is used to realize the transmission of services between the upper-layer device and the optical network terminal device. The optical network terminal device can also be referred to as the first device, and the upper-layer device can also be referred to as the second device. The specific meaning is not limited.
[0100] Figure 4 is a structural example diagram of a first embodiment of the optical communication device provided in this application. The optical communication device shown in this embodiment is connected between an upper-layer device 420 and an optical network terminal device 440. The upper-layer device 420 is one of at least one upper-layer device connected to the optical communication device, and the optical network terminal device is one of at least one optical network terminal device connected to the optical communication device. This embodiment does not limit the number of upper-layer devices and optical network terminal devices connected to the optical communication device. In specific applications, the number of upper-layer devices connected to the optical communication device may be greater than the number of optical network terminal devices connected. The optical communication device specifically includes a line card 410 and one or more forwarding devices connected to the line card 410. This embodiment takes the line card 410 connecting to two forwarding devices as an example. It should be noted that this embodiment does not limit the number of forwarding devices connected to the line card 410. For example, the line card 410 connects to forwarding devices 400 and 430. This embodiment does not limit the number of line cards and forwarding devices included in the optical communication device. The forwarding device 400 shown in this embodiment can be an independent line card different from the line card 410 in an optical communication device, or integrated into a switching board, or integrated into a main control board, etc., and is not specifically limited. The line card 410 includes a device board and one or more optical modules 411 connected to the device board. For an explanation of the connection between the device board and the optical modules 411, please refer to the description corresponding to Figure 1, which will not be repeated here. The device board includes a processing module 412 and a routing module 413. The optical module 411 can also be called a photoelectric conversion module, an optical transceiver module, or an optical transceiver, etc. This embodiment does not limit the type and packaging form of the optical module 411. The packaging form of the optical module 411 can be a near package optics (NPO), an on-board optics (OBO), or a co-package optics (CPO), etc. This embodiment does not limit the number of line cards 410. Line cards 410 are integrated with the optical communication equipment, or they are independent, pluggable line cards. For a description of the processing module 412, please refer to the description corresponding to Figure 3; details will not be repeated here. The forwarding device 400 includes a switch block (SWB) 401 and one or more forwarding modules connected to the switch block 401. This embodiment does not limit the number of forwarding modules or the number of switch modules included in the forwarding device 400. The forwarding module 402 shown in this embodiment may include an NP, TM module, or PP, etc., and is not specifically limited. For example, the function of the forwarding module can also be implemented through DSP, oDSP, FPGA, ASIC, SoC, CPU, MCU, PLD, etc. For a detailed description, please refer to the description of the forwarding module corresponding to Figure 3; details will not be repeated here.Comparing Figures 4 and 3, it can be seen that the line card 410 shown in this embodiment does not include a high-power forwarding module. Therefore, the line card 410 does not need to be configured with a forwarding module that supports complex NP, TM, PP, and double data rate (DDR). It can be understood that, as shown in Figure 4, the forwarding module is separated from the line card 410 and placed as an independent device in the optical communication equipment. Because the line card 410 does not include a high-power forwarding module, the power consumption of the line card 410 is effectively reduced, the heat dissipation pressure of the line card 410 is reduced, and it is beneficial to achieve low carbon emissions. The routing module 413 shown in this embodiment can be a chip or module independent of the processing module 412. In other examples, the routing module 413 can also be integrated into the processing module 412 as part of the processing module. An example of the structure of the forwarding device 400 can be:
[0101] Example 1: The switching module 401 and the forwarding module 402 can be two separate modules. Moreover, both the switching module 401 and the forwarding module 402 are integrated onto the forwarding line card, which is different from the line card 410.
[0102] Example 2: The switching module 401 and the forwarding module 402 can be two separate modules. Moreover, the switching module 401 and the forwarding module 402 are integrated onto different forwarding line cards, and each forwarding line card is different from the line card 410.
[0103] Example 3: The switching module 401 and the forwarding module 402 can be two separate modules, and both the switching module 401 and the forwarding module 402 can be integrated onto the switching board or the main control board.
[0104] Example 4: The switching module 401 and the forwarding module 402 can be two separate modules. Moreover, one of the switching module 401 and the forwarding module 402 is integrated into the switching board, and the other is integrated into the main control board.
[0105] Example 5: The switching module 401 and the forwarding module 402 can be two separate modules. Moreover, one of the switching module 401 and the forwarding module 402 is integrated into the switching board, and the other is integrated into the forwarding line card.
[0106] Example 6: The switching module 401 and the forwarding module 402 can be two separate modules. Moreover, one of the switching module 401 and the forwarding module 402 is integrated into the main control board, and the other is integrated into the forwarding line card.
[0107] Example 7: Switching module 401 and forwarding module 402 can be the same module, which is integrated into the forwarding line card, main control board or switching board.
[0108] Taking the example of forwarding device 400 connected to upper-layer device 420 and forwarding device 430 connected to upper-layer device 421, it should be noted that this embodiment uses the example of forwarding device 400 and forwarding device 430 being connected to different upper-layer devices. In other examples, forwarding device 400 and forwarding device 430 may also be connected to the same upper-layer device. For a description of forwarding device 430, please refer to the description of forwarding device 400, which will not be repeated here.
[0109] Figure 5 is a first structural example of the forwarding module shown in Figure 4. Figure 5 illustrates the structure of the forwarding module shown in Figure 4. It should be noted that the description of the forwarding module structure in this embodiment is an optional example and is not limited, as long as the forwarding module can successfully forward the first service from the line card to the upper-layer device 420. Specifically, the forwarding module 402 shown in Figure 5 includes a TM 501, a service function (SF) 502, and an NP 503 connected in sequence. The TM 501 is connected to the upper-layer device 420, and the SF 502 is connected to the switching module 401.
[0110] Method Example 1
[0111] Based on Figures 4 and 5, and in conjunction with Figure 6, the execution process of the service transmission method provided in this application embodiment will be described, wherein Figure 6 is a flowchart of an embodiment of the service transmission method executed by the optical communication device shown in Figure 4. Based on Figure 6, the optical communication device can successfully transmit the first service from the optical network terminal device 440 to the upper layer device 420.
[0112] Step 601: The optical network terminal device sends a first optical signal to the optical module of the line card.
[0113] This embodiment uses an optical communication device as an example of an optical network central office device. The optical module 411 of the line card 410 receives a first optical signal from the optical network terminal device 440. The optical module 411 of the line card and the optical module of the optical network terminal device 440 are connected via optical fiber. The optical module 411 of the line card receives the first optical signal from the optical network terminal device 440 through this optical fiber. This first optical signal carries a first service. For an explanation of the first service type, please refer to the corresponding description in Figure 3; details will not be elaborated further.
[0114] Step 602: The optical module of the line card converts the first optical signal into a first electrical signal and sends the first electrical signal to the processing module.
[0115] The optical module 411 of the line card includes a photoelectric converter, which is used to perform photoelectric conversion (demodulation) on the first optical signal to output a first electrical signal. The photoelectric converter can be a photodiode (positive intrinsic-negative diode, PIN diode) or an avalanche photodiode (APD), etc., and is not specifically limited.
[0116] Step 603: The line card's processing module performs digital signal processing on the first electrical signal to obtain the first message, and sends the first message to the line card's routing module.
[0117] The line card's processing module performs digital signal processing on the first electrical signal to obtain the first message. For an explanation of the digital signal processing, please refer to the corresponding description in Figure 3, which will not be elaborated further here.
[0118] Step 604: The routing module sends the first message to the switching module of the forwarding device.
[0119] In this embodiment, the routing module of the line card can be connected to multiple forwarding devices. The line card sends the first message to one of the multiple forwarding devices. The forwarding device then forwards the first message to the upper-layer device.
[0120] To achieve the purpose of the routing module of the line card sending the first message to the forwarding device, the routing module has created the first forwarding relationship as shown in Table 1:
[0121] Table 1
[0122] It can be understood that the first forwarding relationship shown in Table 1 includes the correspondence between source address information, destination address information, the identifier of the switching module, and the identifier of the forwarding module. The source address information is used to identify the address of the optical network terminal device 440. This embodiment does not limit the type of source address information; for example, the source address information can be at least one of the following: the source media access control address (MAC), source internet protocol address (IP), source virtual local area network (VLAN), generic encapsulation method (GEM) port, identifier (ID) of the optical network terminal device 440, port ID of the optical communication device, tunnel identifier, priority used for controlling service scheduling, etc. The destination address information is used to identify the address of the upper-layer device 420. This embodiment does not limit the type of destination address information; for example, the destination address information can be at least one of the following: the destination MAC, destination IP, destination VLAN, ID of the upper-layer device, identifier of the first destination port, priority, tunnel identifier, etc. The identifier of the first target port is used to identify the first target port, the first target port of the upper-layer device 420, which is connected to the forwarding device 400. The switching modules identified by the identifiers of the switching modules shown in Table 1, the forwarding modules identified by the identifiers of the forwarding modules, and the upper-layer device 420 are connected in sequence. Among them, the identifiers of the switching modules shown in Table 1 are used to identify the switching module 401, and the identifiers of the forwarding modules are used to identify the forwarding module 402. Based on the first forwarding relationship shown in Table 1, the routing module 413 can successfully send the first message to the upper-layer device 420. Specifically, the routing module 413 can be connected to one or more switching modules. The switching module 401 used to forward the first message is a switching module connected to the routing module 413. The switching module 401 can be connected to one or more forwarding modules. The forwarding module 402 used to forward the first message is a forwarding module connected to the switching module 401. The routing module 413, the switching module 401, the forwarding module 402, and the upper-layer device 420 are connected in sequence. According to Table 1, the routing module 413 sends the first message to the switching module 401. The first message will be forwarded to the upper-layer device 420 via the switching module 401 and the forwarding module 402 shown in Table 1.
[0123] It should be clarified that the content of the first forwarding relationship shown in Table 1 is not limited, as long as the line card and forwarding device forward the first message according to Table 1 to successfully send it to the upper-layer device 420. For example, Table 1 may also include a routing port number, which is used to identify the routing port where the routing module 413 is connected to the switching module 401. Table 1 may also include a switching port number, which is used to identify the switching port where the switching module 401 is connected to the forwarding module 402. Table 1 may also include a first port number, which is used to identify the first port, which is a port included in the forwarding module and is connected to the upper-layer device 420. Table 1 may also include a first destination port number, which is used to identify the first destination port of the upper-layer device 420, which is connected to the first port of the forwarding device. It can be understood that the first message sent by the forwarding module 402 from the first port is received by the upper-layer device 420 via the first destination port.
[0124] To establish the first forwarding relationship as shown in Table 1, the routing module 413 performs packet parsing on the first packet to obtain the source address information and destination address information shown in Table 1. The routing module also needs to obtain the identifiers of the switching module 401 and the forwarding module 402 connected to the upper-layer device 420, so that the first packet can be successfully forwarded to the upper-layer device 420. The following describes the process by which the routing module 413 obtains the identifiers of the switching module 401 and the forwarding module 402:
[0125] If the first message received by routing module 413 is the first message carrying the source and destination address information as described above, then routing module 413 has not yet successfully established the first forwarding relationship shown in Table 1. That is, routing module 413 has not yet determined the identifiers of the switching modules and forwarding modules that need to be traversed to send the first message to the upper-layer device. Therefore, routing module 413 can broadcast a probe message to each switching module connected to it. Through the forwarding of each switching module and forwarding module, each upper-layer device connected to routing module 413 will receive the probe message and send a response message to routing module 413. Routing module 413 obtains the identifiers of the switching modules and forwarding modules based on the response messages from each upper-layer device. An optional example is that the routing module 413 receives a first response message and a second response message from two different upper-layer devices. The first response message comes from an upper-layer device with MAC address a1, and the first response message transmits to the routing module 413 the identifiers of the forwarding modules it traversed through, designated ID a2, and the identifiers of the switching modules it traversed through, designated ID a3. The second response message comes from an upper-layer device with MAC address b1, and the second response message transmits to the routing module 413 the identifiers of the forwarding modules it traversed through, designated ID b2, and the identifiers of the switching modules it traversed through, designated ID b3. The routing module 413 determines that the destination address information carried by the first message includes MAC address a1. Therefore, it determines that the upper-layer device with MAC address a1 is the upper-layer device 420 to receive the first message. Thus, it determines that the identifiers of the forwarding modules included in the first forwarding relationship shown in Table 1 are ID a2 and ID a3. Then, the routing module 413 sends the first message to the switching module 401 according to the first forwarding relationship.
[0126] If the first message received by the routing module 413 is not the first message received by the routing module 413 that carries the source address information and destination address information as shown above, then it means that the routing module 413 has successfully created the first forwarding relationship as shown in Table 1. The routing module 413 directly sends the first message to the switching module 401 according to the first forwarding relationship shown in Table 1.
[0127] To prevent traffic detours during the transmission of the first message to the upper-layer device 420, the routing module 413 can add first tag information to the header of the first message. This first tag information carries the identifiers of the switching module and the forwarding module as shown in Table 1. Optionally, the first tag information may also include a first port number and a first destination port number, etc. This embodiment does not limit the specific content of the first tag information, as long as it identifies the path the first message traverses in the forwarding device 400, the first message transmitted via this path can be successfully sent to the upper-layer device 420. Based on this first tag information, traffic detours are avoided during the transmission of the first message to the upper-layer device 420, effectively reducing the latency of sending the first message to the upper-layer device 420. In this context, traffic detour refers to a situation where the routing module 413 needs to send a first message to the upper-layer device 420. However, the routing module 413 sends the first message to the switching module 431. The forwarding module 432 receives the first message and, through parsing, finds that the target address information carried by the first message is different from the address of the upper-layer device 421. Therefore, the forwarding module 432 returns the first message to the switching module 431, and the switching module 431 then returns the first message to the routing module 413, which then re-schedules the first message. Based on the first forwarding relationship shown in Table 1, the routing module 413 shown in this embodiment can accurately send the first message to the switching module 401, so that the first message transmitted along the path indicated by the first tag information can be successfully sent to the upper-layer device 420, thereby improving the success rate of the first message transmission, avoiding traffic detours in the transmission of the first message, reducing the latency of the first message transmission to the upper-layer device 420, thereby improving communication efficiency and reducing the power consumption consumed in forwarding the first message.
[0128] Step 605: The switching module sends the first message to the forwarding module.
[0129] In this embodiment, taking the switching module 401 as an example, when the switching module 401 receives the first message from the routing module 413, it obtains the identifier of the forwarding module (the identifier of the forwarding module is used to identify the forwarding module 402) based on the first tag information carried by the first message. Then, the switching module 401 forwards the first message to the forwarding module 402.
[0130] Step 606: The forwarding module forwards the first message to obtain the first service message and forwards the first service message to the upper-layer device.
[0131] Upon receiving the first packet, the forwarding module 402 forwards it to obtain the first service packet. It can be understood that the first packet received by the forwarding module 402 does not undergo routing lookup, protocol conversion, QoS control, priority scheduling, congestion control, or queue scheduling via the line card. Referring to Figure 5, SF502 forwards the first packet to NP503, which performs routing lookup, protocol conversion, and QoS control to obtain the first service packet. Protocol conversion is optional. If the protocol supported by the forwarding device 402 is the same as that supported by the upper-layer device 420, no protocol conversion is needed for the first packet. If the protocol supported by the forwarding device 402 is different from that supported by the upper-layer device 420, protocol conversion is performed to make the protocol of the first service packet the same as that supported by the upper-layer device 420. For a detailed explanation of the forwarding processes such as routing lookup, protocol conversion, and QoS control, please refer to the corresponding description in Figure 3; further details are omitted here. NP503 sends the first service packet to SF502. SF502 sends the first service packet to TM501. TM501 performs priority scheduling, congestion control, and queue scheduling on the first service packet to ensure that it can be transmitted to the upper-layer device 420 in a timely manner, reducing transmission latency and improving network performance and reliability. Based on the first tag information, the forwarding module 402 forwards the first service packet to the upper-layer device 420 through the first port.
[0132] Using the method shown in this embodiment, the line card does not include a forwarding module for forwarding processing such as route lookup, protocol conversion, QoS control, priority scheduling, congestion control, and queue scheduling. Therefore, the line card does not need to forward the first message; instead, it directly sends the first message to the forwarding device via the routing module. The forwarding device is separated from the line card (e.g., the forwarding device is located on a different forwarding line card), effectively reducing the power consumption of the line card when forwarding the first service to upper-layer devices. Furthermore, reducing the power consumption of the line card effectively reduces the overall power consumption of the optical communication equipment. Specifically, the optical communication equipment can connect N optical network terminal devices and M upper-layer devices; generally, N is greater than M. The optical communication equipment can allocate K gigabit (G) of bandwidth to each optical network terminal device. For example, the optical communication equipment may include 17 line cards, each line card including 16 optical ports (an optical module may include one or more optical ports), and each optical port connecting 16 optical network terminal devices. If the optical communication equipment allocates 1G of bandwidth to each optical network terminal device... In this example, the optical communication equipment connects 17,408 optical network terminal devices, and the bandwidth allocated to these 17,408 devices is 17 terabits (T). However, when each optical network terminal device sends its first optical signal to the optical communication equipment, it generally does not occupy the entire allocated bandwidth. It can be understood that the bandwidth actually occupied by the first optical signals received by the optical communication equipment from each optical network terminal device is less than 17T. Therefore, the total bandwidth occupied by all the first messages sent by all the line cards included in the optical communication equipment to the forwarding device is significantly reduced compared to 17T. For example, the total bandwidth occupied by all the first messages sent by all the line cards included in the optical communication equipment to the forwarding device could be 400G. Thus, the bandwidth allocated by the optical communication equipment to M optical network terminal devices converges relative to the total bandwidth occupied by all the line cards sending their first messages to the forwarding device. In existing solutions, as shown in Figure 3, when the forwarding module of the main control board 301 receives the first message from the line card, it also performs certain forwarding processing, such as route lookup, protocol conversion, QoS control, priority scheduling, congestion control, and queue scheduling. In this embodiment, the line card does not perform forwarding processing; instead, the forwarding device forwards the first message from the line card. The power consumption of the forwarding device in this embodiment is equal to or approximately equal to the power consumption of the main control board 301 in Figure 3. Therefore, with the forwarding device in this embodiment performing forwarding processing, there is no significant increase in power consumption compared to the existing main control board, and the power consumption of the line card is significantly reduced, effectively lowering the power consumption of the entire optical communication equipment.
[0133] Because this embodiment significantly reduces the power consumption of the line card, the reduced power consumption suppresses the impact of line card heat generation on the stability of optical devices (such as lasers) in the optical module, thereby ensuring the reliability of the optical module and the signal quality of the transmitted optical signals. The significantly reduced power consumption also effectively lowers the heat dissipation pressure on the line card, contributing to low carbon emissions.
[0134] The forwarding module structure shown in Figure 5 is used to implement the transmission of the first service. The forwarding module structure shown in Figure 7 is used to implement the transmission of the second service, which is the service transmitted from the upper-layer device to the optical network terminal device 440. Figure 7 is an example of a second structure of the forwarding module shown in Figure 4. It should be noted that the description of the forwarding module structure in this embodiment is an optional example and is not limited, as long as the forwarding module can successfully forward the second service from the upper-layer device to the line card. Specifically, the forwarding module 402 shown in Figure 7 includes NP702, SF701, and TM703 connected in sequence. SF701 is connected to the second target port of the upper-layer device 420 through the second port of the forwarding module 402. TM703 is connected to the switching module 401. For a detailed description of SF, NP, and TM, please refer to the corresponding description in Figure 5; further details are omitted here.
[0135] Method Example 2
[0136] Based on Figures 4 and 7, and in conjunction with Figure 8, the transmission process of the second service will be described. Figure 8 is a flowchart illustrating one embodiment of the service transmission method performed by the optical communication device shown in Figure 7. This embodiment continues to use the optical communication device as an example of an optical network central office device.
[0137] Step 801: The upper-layer device sends a second message to the forwarding module of the forwarding device.
[0138] Referring to Figures 4 and 7, the forwarding module 402 receives a second message from the upper-layer device 420 through the second port. This second message carries a second service. For an explanation of the second service type, please refer to the explanation of the first service corresponding to Figure 6; details will not be repeated here.
[0139] Step 802: The forwarding module performs forwarding processing on the second message to obtain the second service message, and sends the second service message to the switching module.
[0140] The forwarding module performs forwarding processing on the second message to obtain the second service message. For an explanation of the forwarding module's forwarding processing of the second message, please refer to the explanation of the forwarding module's forwarding processing of the first message shown above; details will not be repeated here. After obtaining the second service message, the forwarding module 402 sends the second message to the switching module 401.
[0141] Step 803: The switching module sends the second service message to the routing module.
[0142] The switching module can connect to the routing modules of one or more line cards. To ensure that the second service packet can be successfully forwarded to the optical network terminal device 440, the switching module creates the second forwarding relationship as shown in Table 2:
[0143] Table 2
[0144] The source address information identifies the address of the upper-layer device 420, and the destination address information identifies the address of the optical network terminal device 440. For a detailed explanation of the source and destination address information, please refer to Table 1; further details are omitted here. Table 2 shows the identifiers for the routing module 413, the processing module 412, and the optical module 411. It should be noted that the content of the second forwarding relationship shown in Table 2 is not limited, as long as the line card and forwarding device forward the second service message according to Table 2 to successfully send it to the optical network terminal device 440. For example, Table 2 may also include a third port number, which identifies the third port of the switching module 401, which is connected to the routing module 413. Alternatively, Table 2 may also include a fourth port number, which identifies the fourth port of the routing module 413, which is connected to the processing module 412. For example, Table 2 may also include a fifth port number, which identifies the fifth port of the processing module 412, and the fifth port of the processing module 412 is connected to the optical module 411. For example, Table 2 may also include a sixth port number, which identifies the sixth port of the optical module 411, and the sixth port of the optical module 411 is connected to the optical network terminal equipment 440 via optical fiber.
[0145] Based on the second forwarding relationship shown in Table 2, the switching module 401 can successfully send the second service packet to the optical network terminal device 440. Specifically, the switching module 401 can be connected to one or more routing modules, with routing module 413, used for forwarding the second service packet, being a routing module connected to the switching module 401. Routing module 413 can be connected to one or more processing modules, with processing module 412, used for forwarding the second service packet, being a processing module connected to the routing module 413. Processing module 412 can be connected to one or more optical modules, with optical module 411, used for forwarding the second service packet, being an optical module connected to the processing module 412. The switching module 401, routing module 413, processing module 412, optical module 411, and optical network terminal device 440 are connected sequentially. The second service message sent by the switching module 401 is transmitted to the routing module 413 via the third port. The routing module 413 forwards the second service message to the processing module 412 via the fourth port. The processing module 412 forwards the second service message to the optical module 411 via the fifth port. The sixth port of the optical module 411 then sends the second service message to the optical network terminal equipment 440 via optical fiber. To create the second forwarding relationship shown in Table 2, the switching module 401 needs to obtain the source address information, destination address information, the identifier of the routing module 413, the identifier of the processing module 412, and the identifier of the optical module 411 shown in Table 2. The switching module 401 can obtain the source address information and destination address information carried in the second service message based on the second service message. The following describes the process by which the switching module 401 obtains the identifiers of the routing module 413, the processing module 412, and the optical module 411 shown in Table 2:
[0146] If the second service message received by switching module 401 is the first message received by switching module 401 carrying the source address information and destination address information as shown above, then routing module 413 has not yet successfully created the second forwarding relationship as shown in Table 2. That is, switching module 401 has not yet determined the routing modules, processing modules, and optical modules that need to be passed through to send the second service message to the optical network terminal device. Therefore, switching module 401 can broadcast a probe message to each routing module connected to it. Through the forwarding of each routing module, each optical network terminal device connected to switching module 401 will receive the probe message and return a response message to switching module 401. For example, if a probe message sent by switching module 401 is sent to optical network terminal device 440, optical network terminal device 440 will return a response message to switching module 401, carrying the address information of optical network terminal device 440. Based on the response message from the optical network terminal device 440, the switching module 401 obtains the identifiers of the optical module 411, processing module 412, and routing module 413 through which the response message passed. The switching module 401 obtains the address information of the optical network terminal device 440 carried in the response message and determines that this address information is the same as the target address information shown in Table 2. Therefore, it adds the identifiers of the routing module 413, processing module 412, and optical module 411 obtained from the response message to the second forwarding relationship shown in Table 2. Based on this second forwarding relationship, the switching module 401 sends the second service message to the routing module 413 through the third port.
[0147] If the second service message received by the switching module 401 is not the first message received by the switching module 401 carrying the source address information and destination address information as shown above, then the switching module 401 directly sends the second service message to the routing module 413 according to the second forwarding relationship shown in Table 2.
[0148] To prevent traffic detours during the transmission of the second service message to the optical network terminal device 440, the switching module 401 can add second tag information to the header of the second service message. This second tag information carries the identifiers of the routing module, processing module, and optical module as shown in Table 2. Optionally, the second tag information may also include the third, fourth, fifth, and sixth port numbers mentioned above. This embodiment does not limit the specific content of the second tag information; as long as the second tag information is used to identify the path traversed by the second service message in the online card 410, the second service message transmitted via this path can be successfully sent to the optical network terminal device 440. Based on this second tag information, traffic detours are avoided during the transmission of the second service message to the optical network terminal device 440, effectively reducing the latency of sending the second service message to the optical network terminal device 440, thereby improving communication efficiency and reducing the power consumption consumed in forwarding the second service message.
[0149] Step 804: The routing module sends the second service message to the processing module.
[0150] In this embodiment, when the routing module 413 receives the second service message, it can send the second service message to the processing module 412 according to the identifier of the processing module in the second tag information carried by the second service message.
[0151] Step 805: The processing module performs digital signal processing on the second service message to obtain the second electrical signal, and sends the second electrical signal to the optical module.
[0152] The line card's processing module 412 performs digital signal processing on the second service message to obtain a second electrical signal. For an explanation of the digital signal processing, please refer to the corresponding description in Figure 3; details will not be repeated here. The processing module 412 sends the second electrical signal to the optical module 411 based on the optical module's identifier in the second tag information.
[0153] Step 806: The optical module sends a second optical signal to the optical network terminal equipment.
[0154] The optical module shown in this embodiment includes an optical modulator, which can be a direct modulation laser (DML), an electro-absorption modulated laser (EML), or a vertical cavity surface emitting laser (VCSEL). Alternatively, the optical modulator can also employ a structure combining a laser and a modulator, where the modulator can be a Mach-Zehnder modulator (MZM) or a micro-ring modulator (MRM), etc. The optical modulator performs electro-optic conversion on the second electrical signal to obtain a second optical signal. This second optical signal is then transmitted from the optical module 411 to the optical network terminal device 440 via the optical fiber connected between the optical module 411 and the optical network terminal device 440.
[0155] Using the method shown in this embodiment, the line card does not include a forwarding module for forwarding processing. Therefore, the forwarding device forwards the second message to obtain the second service message. The switching module of the forwarding device then sends the second service message to the routing module of the corresponding line card. The routing module directly sends the second service message to the processing module, enabling the processing module to perform digital signal processing on the second service message. The forwarding device is separated from the line card (e.g., the forwarding device is located on a different forwarding line card), effectively reducing the power consumption of the line card when forwarding the second service to the optical network terminal equipment, reducing the heat dissipation pressure on the line card, and contributing to low carbon emissions.
[0156] Figure 9 is a structural example diagram of a second embodiment of the optical communication device provided in this application. The optical communication device shown in this embodiment includes a line card 910 and one or more forwarding devices 900 connected to the line card 910. This embodiment does not limit the number of line cards 910 and forwarding devices 900 included in the optical communication device. The forwarding device 900 shown in this embodiment can be a line card independent of the line card 910 in the optical communication device, or integrated into a switching board, or integrated into a main control board. For specific details, please refer to the description corresponding to Figure 4; further details will not be elaborated here. The line card 910 includes an optical module 911, a processing module 912, and a routing module 913. For specific details, please refer to the description of the line card corresponding to Figure 4; further details will not be elaborated here. The forwarding device 900 includes a switching module 901 and one or more forwarding modules 902 connected to the switching module 901. The forwarding module 902 specifically includes a forwarding unit 904 and a direct forwarding unit (DF) 903. The forwarding unit 904 shown in this embodiment specifically includes SF, NP, and TM. For detailed explanation, please refer to the description corresponding to Figure 5, which will not be repeated here. The pass-through unit 903 and the forwarding unit 904 are connected by SF in this embodiment. This embodiment takes the integration of the pass-through unit 903 into the forwarding module 902 as an example. In other examples, the pass-through unit 903 and the forwarding module 902 can be two separate independent modules, chips, circuits, or interface cards, etc., and are not limited thereto.
[0157] Method Example 3
[0158] Based on the optical communication equipment shown in Figure 9, the following description, in conjunction with Figure 10, illustrates the process by which the first service sent by the optical network terminal equipment 931 can be transmitted to the upper-layer equipment 920 via forwarding by the optical communication equipment. Figure 10 is a flowchart illustrating an embodiment of the service transmission method performed by the optical communication equipment shown in Figure 9.
[0159] Step 1001: The optical network terminal device sends a first optical signal to the optical module of the line card.
[0160] Step 1002: The optical module of the line card converts the first optical signal into a first electrical signal and sends the first electrical signal to the processing module.
[0161] Step 1003: The line card's processing module performs digital signal processing on the first electrical signal to obtain the first message, and sends the first message to the line card's routing module.
[0162] Step 1004: The routing module sends the first message to the switching module of the forwarding device.
[0163] Step 1005: The switching module sends the first message to the forwarding module.
[0164] For an explanation of the execution process of steps 1001 to 1005 shown in this embodiment, please refer to steps 601 to 605 in Figure 6, which will not be described in detail here.
[0165] Step 1006: The forwarding module determines whether the first message is a direct message. If yes, proceed to step 1007; otherwise, proceed to step 1008.
[0166] In this embodiment, the switching module 901 sends the first message to the SF of the forwarding unit 904. The SF determines whether the first message is a direct-transmission message based on its attribute information. A direct-transmission message refers to a message with low latency and high reliability transmission requirements. If the SF determines that the first message is a direct-transmission message, it will not forward the first message to the NP and TM, but will directly send it to the direct-transmission unit 903, which then transmits the first message to the upper-layer device 920. Specifically, when the direct-transmission unit 903 receives the first message from the switching module 901, it does not modify or forward the first message, but directly transmits it to the connected upper-layer device 920. It can be understood that transmitting the first message to the upper-layer device 920 via the direct-transmission unit 903 eliminates the need for processing by the NP and TM, reducing the latency of the first message transmission to the upper-layer device 920. The attribute information of the first message may include the source address information and destination address information shown in Table 1. The attribute information of the first message may also include priority information, protocol information, service attribute information of the first service carried by the first message, traffic size, latency requirements, etc. The protocol information may be Transmission Control Protocol (TCP) or User Datagram Protocol (UDP) header information, etc. This embodiment does not limit the attribute information of the first message, as long as the forwarding unit 904 can determine whether the first message is a direct-transmission message based on its attribute information.
[0167] Optionally, the optical communication device shown in this embodiment further includes a computing power module 930. For a description of the type of computing power module 930, please refer to the description of the processing module corresponding to Figure 2; specific details will not be repeated here. The computing power module 930 can be integrated onto the forwarding device 900. Alternatively, the computing power module 930 can be integrated onto another line card, main control board, or switching board different from the forwarding device 900. For example, the computing power module 930 can be integrated onto the line card 910, etc. This embodiment does not limit the specific location of the computing power module 930. The computing power module 930 is connected to the forwarding module 902. In this embodiment, the forwarding unit 904 can send the attribute information of the first message to the computing power module 930, and the computing power module 930 determines whether the first message is a direct-transmission message based on the attribute information of the first message. The computing power module 930 sends indication information to the forwarding unit, which is used to indicate whether the first message is a direct-transmission message. For example, the forwarding unit 904 can directly send the first message to the computing module 930, which can then directly determine whether the first message is a direct-transmission message. The computing module 930 can add the indication information to the header of the first message and return the first message to the forwarding unit 904. This embodiment does not limit the process by which the forwarding unit 904 obtains whether the first message is a direct-transmission message. Optionally, the optical communication device shown in Figure 4 may also include the computing module 930 to improve the data processing capability of the optical communication device shown in Figure 4, and the type of data processing performed by the computing module 930 is not limited. It should be noted that this embodiment does not limit the specific function of the computing module 930, such as analyzing and calculating the characteristics of service messages and customer needs, and feeding back the analysis results.
[0168] Step 1007: The pass-through unit of the forwarding module transmits the first message to the upper-layer device.
[0169] Upon receiving the first packet, the pass-through unit 903 directly forwards the first packet to the connected upper-layer device. It can be understood that since the forwarding module 902 forwards the first packet to the upper-layer device 920, the forwarding module 902 does not perform complex processing on the first packet such as priority scheduling, QoS control, protocol analysis, and route lookup using NP, TM, etc. This enables the forwarding device 900 to quickly forward the first packet, reducing the latency of forwarding the first packet from the forwarding device 900 to the upper-layer device 920, and improving the efficiency and flexibility of forwarding the first packet.
[0170] Step 1008: The forwarding unit of the forwarding module forwards the first message to obtain the first service message and forwards the first service message to the upper layer device.
[0171] If the SF determines that the first message is not a direct message, it forwards the first message through NP and TM to obtain the first service message. For an explanation of the forwarding module's forwarding process and the first service message, please refer to step 606 in Figure 6; details will not be elaborated further.
[0172] Using the method shown in this embodiment, the line card does not include a forwarding module for forwarding processing, thus reducing the power consumption of the line card. Moreover, if the first message is a direct-transmission message, the forwarding module does not need to perform forwarding processing on the first message based on NP, TM, etc. Instead, the direct-transmission unit directly transmits the first message to the upper-layer device, realizing fast forwarding of the first message by the forwarding device, reducing the latency and power consumption of the forwarding device in forwarding the first message to the upper-layer device, and improving the efficiency and flexibility of forwarding the first message.
[0173] Figure 11 is a structural example diagram of a third embodiment of the optical communication device provided in this application. The optical communication device shown in this embodiment includes a line card 1110 and one or more forwarding devices 1100 connected to the line card 1110. This embodiment does not limit the number of line cards 1110 and forwarding devices 1100 included in the optical communication device; for details, please refer to the description corresponding to Figure 9, which will not be repeated here. The line card 1110 includes an optical module 1111, a processing module 1112, and a routing module 1113; for details, please refer to the description of the line card corresponding to Figure 9, which will not be repeated here. The forwarding device 1100 includes a switching module 1101 and one or more forwarding modules 1102 connected to the switching module 1101. The forwarding module 1102 specifically includes a forwarding unit 1104 and a pass-through unit 1105. The forwarding unit 1104 shown in this embodiment specifically includes SF, NP, and TM; for details, please refer to the description corresponding to Figure 7, which will not be repeated here. The pass-through unit 1105 shown in this embodiment is connected to the switching module 1101. For a description of the pass-through unit 1105, please refer to the description corresponding to Figure 9, which will not be repeated here.
[0174] Method Example 4
[0175] Based on Figure 11 and in conjunction with Figure 12, the process by which the second service issued by the upper-layer device 1120 is transmitted to the optical network terminal device 1131 via forwarding by the optical communication device is described. Figure 12 is a flowchart illustrating one embodiment of the service transmission method performed by the optical communication device shown in Figure 11.
[0176] Step 1201: The upper-layer device sends a second message to the forwarding module of the forwarding device.
[0177] For an explanation of the execution process of step 1201 shown in this embodiment, please refer to step 801 in Figure 8, which will not be described in detail here.
[0178] Step 1202: The forwarding module determines whether the second message is a direct message. If yes, proceed to step 1203; otherwise, proceed to step 1204.
[0179] In this embodiment, the SF receives a second message from the upper-layer device 1120. Based on the attribute information of the second message, the SF determines whether the second message is a direct message. For an explanation of direct messages and the determination of whether the second message is a direct message, please refer to step 1006 in Figure 10; details will not be elaborated further.
[0180] Optionally, the optical communication device shown in this embodiment further includes a computing power module 1130. For a description of the computing power module 1130, please refer to the description corresponding to Figure 9; details will not be repeated here. The computing power module 1130 is connected to the forwarding module 1102. In this embodiment, the forwarding unit 1104 can send the attribute information of the second message to the computing power module 1130, and the computing power module 1130 determines whether the second message is a direct-transmission message based on the attribute information. The computing power module 1130 sends indication information to the forwarding unit 1104, which indicates whether the second message is a direct-transmission message. Alternatively, the forwarding unit 1104 can directly send the second message to the computing power module 1130, and the computing power module 1130 can directly determine whether the second message is a direct-transmission message based on the second message. The computing power module 1130 can add the indication information to the header of the second message and return the second message to the forwarding unit 1104. This embodiment does not limit the process by which the forwarding unit 1104 obtains whether the second message is a direct message.
[0181] Step 1203: The pass-through unit of the forwarding module transmits the second message to the switching module.
[0182] If the forwarding unit's SF determines that the second packet is a direct packet, the SF sends the second packet to the direct packet unit 1105. The direct packet unit 1105 then directly transmits the second packet to the switching module 1101. It can be understood that the forwarding module 1102 does not perform complex forwarding processing on the second packet using NP, TM, etc., such as priority scheduling, congestion control, or queue scheduling. This enables the forwarding device 1100 to quickly forward the second packet, reducing the latency of the forwarding device 1100 forwarding the second service packet to the optical network terminal equipment 1131, and improving the efficiency and flexibility of forwarding the second service packet.
[0183] Step 1204: The forwarding unit of the forwarding module forwards the second message to obtain the second service message and sends the second service message to the switching module.
[0184] If the forwarding unit's SF determines that the second message is not a direct message, the forwarding unit 1104 performs forwarding processing on the second message based on NP, TM, etc., to obtain the second service message, and sends the second service message to the switching module 1101. For an explanation of the process by which the forwarding unit performs forwarding processing on the second message to obtain the second service message, please refer to step 802 in Figure 8, which will not be elaborated further.
[0185] Step 1205: The switching module sends the target message to the routing module.
[0186] In this embodiment, the target message may be a second service message from the direct connection unit, or the target message may be a second service message from the forwarding unit. The switching module sends the target message to the routing module 1113 identified by the second tag information.
[0187] Step 1206: The routing module sends the target message to the processing module.
[0188] Step 1207: The processing module performs digital signal processing on the target message to obtain a second electrical signal, and sends the second electrical signal to the optical module.
[0189] Step 1208: The optical module sends a second optical signal to the optical network terminal equipment.
[0190] For an explanation of the execution process of steps 1205 to 1208 shown in this embodiment, please refer to steps 803 to 806 in Figure 8, which will not be described in detail here.
[0191] Using the method shown in this embodiment, the line card does not include a forwarding module for forwarding processing, thus reducing the power consumption of the line card. Furthermore, if the second message is a direct-transmission message, the forwarding module does not need to perform forwarding processing based on NP, TM, etc. Instead, the direct-transmission unit directly transmits the second message to the line card, enabling rapid forwarding of the second message by the forwarding device. This reduces the latency and power consumption of the forwarding device when forwarding the second message to the optical network terminal equipment, improving the efficiency and flexibility of forwarding the second message. If the second message is not a direct-transmission message, the forwarding module performs the forwarding processing, effectively reducing the power consumption of the line card and consequently reducing the overall power consumption of the optical communication equipment.
[0192] Figure 13 is a structural example diagram of a fourth embodiment of the optical communication device provided in this application. The optical communication device shown in this embodiment specifically includes a line card 1310 and a forwarding device 1300 connected to the line card 1310. The line card 1310 includes a routing module 1314, a processing module 1313, and an optical module 1311 connected in sequence. The forwarding device 1300 specifically includes a switching module 1301 and a forwarding module 1302, with the forwarding module 1302 connected to an upper-layer device 1331. For a detailed description of the line card 1310 and the forwarding device 1300, please refer to Figures 4, 5, 9, and 11; further details are omitted. The optical communication device shown in this embodiment also includes an extended forwarding device 1320, which includes an extended forwarding module 1321. The extended forwarding module 1321 may include NP, SF, and TM, etc. For a detailed description of its structure, please refer to the description of the forwarding module structure above; further details are omitted. This embodiment does not limit the number of extended forwarding devices included in the optical communication device. The extended forwarding module 1321 is connected to the switching module 1301 of the forwarding device 1300. The upper-layer device 1331 connected to the forwarding module 1302 shown in this embodiment and the upper-layer device 1332 connected to the extended forwarding module 1321 can be the same upper-layer device or different upper-layer devices; no specific limitation is made. This embodiment uses the example of the forwarding module 1302 connected to the upper-layer device 1331 and the extended forwarding module 1321 connected to the upper-layer device 1332.
[0193] Method Example 5
[0194] Based on Figure 13 and in conjunction with Figure 14, the process of implementing the first service transmission when an extended forwarding device is added to the optical communication equipment is explained. Figure 14 is a flowchart illustrating one embodiment of the service transmission method performed by the optical communication equipment shown in Figure 13.
[0195] Step 1401: The optical network terminal device sends a first optical signal and a first extended optical signal to the optical module of the line card.
[0196] The first optical signal and the first extended optical signal shown in this embodiment can come from the same optical network terminal device or from different optical network terminal devices, without specific limitations. Therefore, the optical network terminal devices shown in Figure 14 can represent the same optical network terminal device or different optical network terminal devices. Referring to Figure 13, this embodiment uses optical network terminal device 1341 sending the first optical signal to an optical communication device and optical network terminal device 1342 sending the first extended optical signal as an example. The first optical signal and the first extended optical signal are sent to optical module 1311 via time-division multiplexing. The first service carried by the first optical signal is used for transmission to upper-layer device 1331. The first extended service carried by the first extended optical signal is used for transmission to upper-layer device 1332. For a description of the first service and the first extended service, please refer to the description of the first service corresponding to Figure 6, which will not be repeated here. This embodiment takes the transmission of the first optical signal and the first extended optical signal to the same line card 1310 as an example. In other examples, the line card receiving the first optical signal and the line card receiving the first extended optical signal may be different, as long as the line card receiving the first optical signal and the line card receiving the first extended optical signal are connected to the same switching module 1301. In this embodiment, no specific limitation is made.
[0197] Step 1402: The optical module of the line card converts the first optical signal into a first electrical signal and sends the first electrical signal to the processing module.
[0198] Step 1403: The optical module of the line card converts the first extended optical signal into a first extended electrical signal and sends the first extended electrical signal to the processing module.
[0199] This embodiment does not limit the execution sequence between steps 1402 and 1403. For a description of the execution process of steps 1402 and 1403 shown in this embodiment, please refer to step 602 in Figure 6, which will not be elaborated further.
[0200] Step 1404: The line card's processing module performs digital signal processing on the first electrical signal to obtain the first message, and sends the first message to the routing module.
[0201] Step 1405: The line card's processing module performs digital signal processing on the first extended electrical signal to obtain the first extended message, and sends the first extended message to the routing module.
[0202] This embodiment does not limit the execution sequence between steps 1404 and 1405. For a description of the execution process of steps 1404 and 1405 shown in this embodiment, please refer to step 603 in Figure 6, which will not be elaborated further.
[0203] Step 1406: The routing module sends the first message to the switching module of the forwarding device.
[0204] For an explanation of the execution process of step 1406 shown in this embodiment, please refer to step 604 in Figure 6, which will not be elaborated further.
[0205] Step 1407: The routing module sends the first extended message to the switching module of the forwarding device.
[0206] To achieve the purpose of the routing module of the line card sending the first extended message to the extended forwarding device, the routing module has created the first extended forwarding relationship as shown in Table 3:
[0207] Table 3
[0208] It is understood that the first extended forwarding relationship shown in Table 3 includes the correspondence between source address information, destination address information, the identifier of the switching module, and the identifier of the extended forwarding module. The source address information is used to identify the address of the optical network terminal device 1342 that emits the first extended optical signal. The destination address information is used to identify the address of the upper-layer device 1332. For explanations of the source and destination address information types, please refer to the corresponding explanations in Table 1; no specific limitations are imposed. The switching module 1301 identified by the switching module identifier, the extended forwarding module 1321 identified by the extended forwarding module identifier, and the upper-layer device 1332 are connected sequentially. Optionally, the first extended forwarding relationship shown in this embodiment may further include an extended port number, which is used to identify an extended port, which is a port included in the extended forwarding module 1321, and this extended port is connected to the upper-layer device 1332. The first extended forwarding relationship may also include a third destination port number, which is used to identify a third destination port, and the extended forwarding module 1321 is connected to the third destination port of the upper-layer device 1332. Based on the first extended forwarding relationship shown in Table 3, the routing module can successfully send the first extended message to the upper-layer device 1332. For instructions on creating the first extended forwarding relationship as shown in Table 3, please refer to the instructions on creating the first forwarding relationship shown in Table 1, which will not be repeated here.
[0209] To prevent traffic detours during the transmission of the first extended message to the upper-layer device 1332, the routing module can add a first extended label to the header of the first extended message. This first extended label carries the identifiers of the switching module and the extended forwarding module as shown in Table 3. Optionally, the first extended label may also include a third destination port number and an extended port, etc. This embodiment does not limit the specific content of the first extended label, as long as it identifies the path the first extended message traverses in the forwarding device 1300 and the path it traverses in the extended forwarding device 1320, the first extended message transmitted via this path can be successfully sent to the upper-layer device 1332. Based on this first extended label, traffic detours are avoided during the transmission of the first extended message to the upper-layer device 1332, effectively reducing the latency of sending the first extended message to the upper-layer device 1332, thereby improving communication efficiency and reducing the power consumption of forwarding the first extended message.
[0210] This embodiment does not limit the execution timing between steps 1406 and 1407.
[0211] Step 1408: The switching module sends the first message to the forwarding module.
[0212] For an explanation of the execution process of step 1410 shown in this embodiment, please refer to step 605 in Figure 6, which will not be elaborated further.
[0213] Step 1409: The switching module sends the first extended message to the extended forwarding module.
[0214] In this embodiment, when the switching module 1301 receives the first extended message from the routing module 1314, it obtains the identifier of the extended forwarding module 1321 based on the first extended tag information carried in the first extended message. Then, the switching module 1301 forwards the first extended message to the extended forwarding module 1321. This embodiment does not limit the execution timing between steps 1408 and 1409.
[0215] Step 1410: The forwarding module forwards the first message to obtain the first service message and forwards the first service message to the upper-layer device.
[0216] For an explanation of the execution process of step 1410 shown in this embodiment, please refer to step 606 in Figure 6, which will not be elaborated further.
[0217] Step 1411: The extended forwarding module forwards the first extended message to obtain the first extended service message and forwards the first extended service message to the upper layer device.
[0218] Upon receiving the first extended message, the extended forwarding module 1321 forwards the first extended message to obtain the first extended service message. For a description of the forwarding process performed by the extended forwarding module 1321, please refer to the description of the forwarding module's forwarding process shown in step 606 of Figure 6; details will not be repeated here. The extended forwarding module 1321 sends the first extended service message to the upper-layer device 1332 based on the first extended tag information carried in the first extended service message. The upper-layer device shown in Figure 14 can represent the same upper-layer device or different upper-layer devices; no limitation is made.
[0219] Using the method shown in this embodiment, an extended forwarding device can be added to the optical communication equipment as needed, thereby increasing the uplink bandwidth between the optical communication equipment and the upper-layer equipment, realizing flexible expansion of the uplink bandwidth, and improving the forwarding capability of the optical communication equipment to forward packets to the upper-layer equipment. Moreover, the extended forwarding module does not need to integrate a switching module; instead, the extended forwarding module of the extended forwarding device is connected to the switching module of the forwarding device, which improves the integration of the optical communication equipment, reduces the power consumption of the extended forwarding device, and reduces the heat dissipation difficulty of the extended forwarding device.
[0220] Method Example Six
[0221] Figure 14 illustrates the process of an optical communication device sending messages to an upper-layer device, and Figure 15 illustrates the process of an optical communication device sending messages to an optical network terminal device. Figure 15 is a flowchart of another embodiment of the service transmission method performed by the optical communication device shown in Figure 13.
[0222] Step 1501: The upper-layer device sends a second message to the forwarding module of the forwarding device.
[0223] Step 1502: The upper-layer device sends a second extended message to the extended forwarding module of the extended forwarding device.
[0224] The upper-layer devices shown in Figure 15 may represent the same upper-layer device or different upper-layer devices, and are not specifically limited. For a description of the execution process of steps 1501 and 1502 shown in this embodiment, please refer to step 801 in Figure 8, which will not be repeated here. This embodiment does not limit the execution sequence between steps 1501 and 1502.
[0225] Step 1503: The forwarding module performs forwarding processing on the second message to obtain the second service message, and sends the second service message to the switching module.
[0226] Step 1504: The extended forwarding module of the extended forwarding device forwards the second extended message to obtain the second extended service message, and sends the second extended service message to the switching module.
[0227] For a description of the execution process of steps 1503 and 1504 shown in this embodiment, please refer to step 802 in Figure 8, which will not be repeated here. This embodiment does not limit the execution sequence between steps 1503 and 1504.
[0228] Step 1505: The switching module sends the second service message to the routing module.
[0229] For an explanation of the execution process of step 1505 shown in this embodiment, please refer to step 803 in Figure 8, which will not be elaborated further.
[0230] Step 1506: The switching module sends a second extended service message to the routing module.
[0231] To ensure that the second extended service packets can be successfully forwarded to the corresponding optical network terminal equipment, the switching module creates the second extended forwarding relationship as shown in Table 4:
[0232] Table 4
[0233] The source address information identifies the address of the upper-layer device 1332, and the destination address information identifies the address of the optical network terminal device 1342. For details on the source and destination address information, please refer to Table 1; further details will not be elaborated here. The routing module identifier identifies the routing module 1314, the processing module identifier identifies the processing module 1313, and the optical module identifier identifies the optical module 1311. It should be noted that the content of the second extended forwarding relationship shown in Table 4 is not limited, as long as the line card and extended forwarding device forward the second extended service packets according to Table 4 to successfully send them to the optical network terminal device 1342. For a description of the second extended forwarding relationship shown in Table 4, please refer to the description of the second forwarding relationship shown in Table 2; further details will not be elaborated here.
[0234] Based on the second extended forwarding relationship shown in Table 4, the switching module 1301 can successfully send the second extended service packet to the optical network terminal device 1342. Specifically, the switching module 1301 can be connected to one or more routing modules. The routing module 1314 used for forwarding the second extended service packet is a routing module connected to the switching module 1301. In this embodiment, the routing module 1314 used for forwarding the second extended service packet and the second service packet is the same routing module. In other examples, the routing module used for forwarding the second extended service packet may be different from the routing module used for forwarding the second service packet. The processing module 1313 can be connected to one or more optical modules. The optical module 1311 used for forwarding the second extended service packet is an optical module connected to the processing module 1313. In this embodiment, the optical module 1311 used for forwarding the second service packet and the second extended service packet is the same optical module. In other examples, the optical module used for forwarding the second service packet may be different from the optical module used for forwarding the second extended service packet. In this embodiment, the switching module 1301, routing module 1314, processing module 1313, optical module 1311, and optical network terminal device 1342 are connected sequentially. The second extended service message sent by the switching module 1301 is then transmitted to the optical network terminal device 1342 via the routing module 1314, processing module 1313, and optical module 1311. The explanation of how the switching module 1301 creates the second extended forwarding relationship shown in Table 4 can be found in the explanation of creating the second forwarding relationship shown in Table 2 in step 803 of Figure 8; further details are omitted here.
[0235] To avoid traffic detours during the transmission of the second extended service message to the optical network terminal equipment, the switching module can add second extended label information to the header of the second extended service message. This second extended label information carries the identifiers of the routing module, processing module, and optical module, as shown in Table 4. For a description of the second extended label information, please refer to the description of the second label information corresponding to Figure 8; further details will not be provided here.
[0236] Step 1507: The routing module sends the second service message to the processing module.
[0237] Step 1508: The routing module sends a second extended message to the processing module.
[0238] For an explanation of the execution process of steps 1507 and 1508 shown in this embodiment, please refer to step 804 in Figure 8. Specific details will not be repeated. This embodiment does not limit the execution sequence between steps 1507 and 1508.
[0239] Step 1509: The processing module performs digital signal processing on the second service message to obtain the second electrical signal, and sends the second electrical signal to the optical module.
[0240] Step 1510: The processing module performs digital signal processing on the second extended message to obtain the second extended electrical signal, and sends the second extended electrical signal to the optical module.
[0241] For an explanation of the execution process of steps 1509 and 1510 shown in this embodiment, please refer to step 805 in Figure 8. Specific details will not be repeated. This embodiment does not limit the execution sequence between steps 1509 and 1510.
[0242] Step 1511: The optical module sends a second optical signal to the optical network terminal equipment.
[0243] Step 1512: The optical module sends a second extended optical signal to the optical network terminal equipment.
[0244] For a description of the execution process of steps 1511 and 1512 shown in this embodiment, please refer to step 806 in Figure 8. Specific details will not be repeated here. The optical network terminal devices shown in Figure 15 may represent the same optical network terminal device or different optical network terminal devices; no specific limitation is made. This embodiment does not limit the execution timing between steps 1511 and 1512.
[0245] Using the method shown in this embodiment, an extended forwarding device can be added to the optical communication equipment as needed, thereby increasing the downlink bandwidth between the upper-layer device and the optical communication equipment, realizing flexible expansion of the downlink bandwidth, and improving the forwarding capability of the optical communication equipment. Moreover, the extended forwarding module does not need to integrate a switching module; instead, the extended forwarding module of the extended forwarding device is connected to the switching module of the forwarding device, which improves the integration of the optical communication equipment, reduces the power consumption of the extended forwarding device, and reduces the heat dissipation difficulty of the extended forwarding device.
[0246] Figure 16 is a structural example diagram of a fifth embodiment of the optical communication device provided in this application. The optical communication device shown in this embodiment includes a line card 1600 and one or more forwarding devices 1610 connected to the line card 1600. This embodiment does not limit the number of line cards 1600 and forwarding devices 1610 included in the optical communication device. For a description of the type of forwarding device 1610 shown in this embodiment, please refer to the description corresponding to Figure 4; specific details will not be repeated here. The line card 1600 shown in this embodiment includes a routing module 1604, a processing module 1603, and an optical module 1602 connected in sequence. For a description of the specific structure, please refer to the description of the line card structure in the above embodiments; specific details will not be repeated here. The forwarding device 1610 includes a switching module 1614 and one or more forwarding modules 1611 connected to the switching module 1614. This embodiment does not limit the number of forwarding modules or the number of switching modules included in the forwarding device 1610. For a description of each forwarding module shown in this embodiment, please refer to any of the above embodiments; specific details will not be repeated here. The forwarding module 1611 includes a first scheduling unit 1612 and a forwarding unit 1613 connected to each other. The forwarding unit 1613 is connected to the switching module 1614. For a description of the structure of the forwarding unit 1613, please refer to the description corresponding to Figure 9, which will not be repeated here. In this embodiment, the first scheduling unit 1612 is integrated into the forwarding module 1611 as an example. In other examples, the first scheduling unit 1612 may also be separate from the forwarding module 1611 and integrated into the same forwarding device 1610. For example, the first scheduling unit 1612 may be integrated into another line card, main control board, or switching board different from the forwarding device 1200. For example, the first scheduling unit 1612 may be integrated into the line card 1600, etc. The specific location of the first scheduling unit 1612 is not limited in this embodiment.
[0247] Method Example 7
[0248] Based on Figure 16, and in conjunction with Figure 17, the process of the forwarding module allocating the first bandwidth is explained. Figure 17 is a flowchart of the first embodiment of the service transmission method performed by the optical communication device shown in Figure 16. Specifically, based on Figure 17, the first scheduling unit of the forwarding device can allocate the first bandwidth of each optical network terminal device. This first bandwidth is the bandwidth occupied by the first service sent by the optical network terminal device to the optical communication device. The first scheduling unit 1612 shown in this embodiment can be a dynamic bandwidth allocation (DBA). It should be noted that this embodiment does not limit the type of the first scheduling unit 1612, as long as the first scheduling unit 1612 can allocate the first bandwidth.
[0249] Step 1701: The optical network terminal device sends a first request optical signal to the optical module of the line card.
[0250] In this embodiment, if the optical network terminal device 1601 needs to apply for a first bandwidth from the optical communication device in order to send a first service to the optical communication device through the first bandwidth, the optical network terminal device 1601 sends the first application optical signal to the optical communication device, and the first application optical signal carries the first bandwidth request. This embodiment illustrates sending the first application optical signal to the optical communication device before the optical network terminal device sends the first optical signal shown in Figure 6. It should be noted that this embodiment does not limit the timing between the first application optical signal and the first optical signal shown in Figure 6. For example, the first application optical signal and the first optical signal corresponding to Figure 6 may be the same optical signal or different optical signals; specific timing is not limited in this embodiment.
[0251] Step 1702: The optical module of the line card converts the first application optical signal into a first application electrical signal and sends the first application electrical signal to the processing module.
[0252] Step 1703: The line card's processing module performs digital signal processing on the first application electrical signal to obtain the first application message, and sends the first application message to the line card's routing module.
[0253] For the description of steps 1701 to 1703 shown in this embodiment, please refer to the description of steps 601 to 603 corresponding to Figure 6, which will not be repeated here.
[0254] Step 1704: The routing module sends the first request message to the switching module of the forwarding device.
[0255] In this embodiment, the routing module of the line card can be connected to multiple forwarding devices. The line card sends the first request message to one of the multiple forwarding devices. For this purpose, the routing module creates a first forwarding relationship as shown in Table 1. For an explanation of the first forwarding relationship, please refer to Table 1, which will not be elaborated further.
[0256] Step 1705: The switching module of the forwarding device sends a first bandwidth request to the first scheduling unit of the forwarding module.
[0257] In this embodiment, the switching module 1614 can parse the first bandwidth request from the first application message and send the first bandwidth request to the first scheduling unit 1612. For example, the switching module 1614 sends the first bandwidth request to the forwarding unit 1613, and then the forwarding unit 1613 forwards the first bandwidth request to the first scheduling unit 1612. Alternatively, if the switching module 1614 is connected to the first scheduling unit 1612, then the switching module 1614 can directly send the first bandwidth request to the first scheduling unit 1612. Or, the switching module 1614 sends the first application message to the forwarding unit 1613, and the forwarding unit 1613 parses the first bandwidth request from the first application message and then sends the first bandwidth request to the first scheduling unit 1612. Or, the switching module 1614 can send the first application message to the first scheduling unit 1612, and the first scheduling unit 1612 parses the first bandwidth request from the first application message. It should be clarified that this embodiment does not limit the method by which the first scheduling unit 1612 obtains the first bandwidth request, as long as the first scheduling unit 1612 can successfully receive the first bandwidth request from the optical network terminal device 1601.
[0258] Step 1706: The first scheduling unit of the forwarding module sends the first allocation information to the switching module.
[0259] The first scheduling unit 1612 allocates first bandwidth to the optical network terminal device 1601 according to the scheduling strategy and the first bandwidth request. The first scheduling unit 1612 shown in this embodiment can receive first bandwidth requests from multiple optical network terminal devices. The first scheduling unit 1612 can allocate first bandwidth to each of the multiple optical network terminal devices according to the scheduling strategy, the first bandwidth request, or the network status. This embodiment does not limit the specific process of the first scheduling unit 1612 in allocating the first bandwidth, as long as the first bandwidth allocated by the first scheduling unit to each optical network terminal device can effectively avoid conflicts between the first bandwidths allocated to different optical network terminal devices and improve bandwidth utilization. The scheduling strategy includes requirements such as optical module port bandwidth, forwarding capability of line card 1600, forwarding capability of forwarding device 1610, user access request bandwidth, service priority, and service value. Specifically, the optical module port bandwidth is the actual bandwidth of the optical module port of optical module 1602 of line card 1600, which is connected to the optical network terminal device 1601 via optical fiber. Forwarding capacity can refer to forwarding data volume, service latency, packet forwarding rate, or packet loss rate. User access request bandwidth refers to the bandwidth requested by the optical network terminal equipment to access the optical communication equipment. When the optical communication equipment receives different types of primary services (e.g., voice, video, and data transmission services) from multiple optical network terminal equipment, different primary services may have different priority requirements. Service priority refers to the priority requirements of different types of primary services. The first scheduling unit 1612 can obtain the service priority from the forwarding unit 1613. Therefore, the first scheduling unit 1612 allocates primary bandwidth according to the service priority, allocating more bandwidth to primary services with high priority requirements to reduce transmission latency. Service value refers to the importance of the primary service from the optical network terminal equipment. Service latency refers to the time interval between the moment the optical network terminal equipment sends the first message and the moment the optical network terminal equipment receives the message from the upper-layer device, indicating successful reception of the first message. Service jitter refers to the fluctuations in the transmission process of services sent from the optical network terminal equipment to the optical communication equipment. Network status may include network traffic, congestion, etc., without specific limitations. The first scheduling unit 1612 comprehensively considers various indicators in the scheduling strategy and / or network status to allocate first bandwidth to the optical network terminal equipment according to the first bandwidth request. If the first scheduling unit 1612 successfully allocates the first bandwidth to the optical network terminal according to the first bandwidth request, it sends first allocation information to the switching module 1614. The first allocation information is used to indicate the first bandwidth so that the optical network terminal equipment can occupy the first bandwidth and send the first service to the optical communication equipment.This embodiment does not limit the process of the first scheduling unit 1612 sending the first allocation information to the switching module 1614. Alternatively, the first scheduling unit 1612 can send the first allocation information directly to the switching module 1614, or it can send the first allocation information to the switching module 1614 through the forwarding unit 1613.
[0260] Step 1707: The switching module sends the first allocation information to the routing module.
[0261] Step 1708: The routing module sends the first allocation information to the processing module.
[0262] Step 1709: The processing module sends the first allocation electrical signal to the optical module.
[0263] Step 1710: The optical module sends the first allocated optical signal to the optical network terminal equipment.
[0264] In this embodiment, the first allocation electrical signal is an electrical signal obtained by the processing module through digital signal processing of the first allocation information. The first allocation optical signal is an optical signal obtained by the optical module through electro-optical conversion of the first allocation electrical signal. For the explanation of steps 1707 to 1710 in this embodiment, which describes the switching module sending the first allocation information to the optical network terminal device, please refer to steps 803 to 806 in Figure 8, which describes the process of the line card sending the second service message to the optical network terminal device. Specific details will not be elaborated further.
[0265] Using the method shown in this embodiment, when the line card receives a first bandwidth request from the optical network terminal device, it does not allocate the first bandwidth. Instead, it sends the first bandwidth request to the forwarding device, whereby the forwarding module of the forwarding device allocates the first bandwidth. Because the line card does not need to allocate the first bandwidth, its power consumption is effectively reduced, its heat dissipation pressure is lowered, and it is beneficial to achieve low carbon emissions.
[0266] Method Example 8
[0267] Figure 18 is a flowchart illustrating the steps of a second embodiment of the service transmission method performed by the optical communication device shown in Figure 16. The first scheduling unit 1612 shown in this embodiment can be a dynamic service handling (DSH) unit or a control plane (CP). The first scheduling unit 1612 is used to allocate a first target bandwidth, wherein the first target bandwidth is the bandwidth occupied by the forwarding device 1610 when sending messages to the line card 1600.
[0268] Step 1801: The forwarding unit of the forwarding device sends a first target bandwidth request to the first scheduling unit.
[0269] In this embodiment, the forwarding unit 1613 may need to send a first target bandwidth request to the first scheduling unit 1612 to apply for the first target bandwidth. The switching module 1614 then sends the second service from the upper-layer device 1621 to the line card 1600 through the first target bandwidth. The first scheduling unit 1612 allocates the first target bandwidth between the forwarding device 1610 and the line card 1600 according to the first target bandwidth request. This embodiment takes the first scheduling unit 1612 obtaining the first target bandwidth request from the forwarding unit 1613 as an example. In other examples, the first scheduling unit 1612 may also obtain the first target bandwidth request from the switching module 1614, and the specific method is not limited.
[0270] Step 1802: The first scheduling unit sends the first target allocation information to the forwarding unit.
[0271] The first scheduling unit 1612 shown in this embodiment allocates first target bandwidth according to the first target bandwidth request, ensuring that the allocated first target bandwidth is less than or equal to the total downlink bandwidth between the switching module 1614 and the line card 1600. Packets from the forwarding device 1610 occupy this first target bandwidth and are sent to the line card 1600. This embodiment does not limit the specific process of the first scheduling unit 1612 allocating the first target bandwidth. For example, the first scheduling unit can allocate the first target bandwidth based on the total downlink bandwidth between the switching module 1614 and the line card 1600, the forwarding capacity of the line card 1600, service priority, service value, etc. For a detailed explanation, please refer to Figure 16 showing the process of allocating the first bandwidth; further details are omitted here. Optionally, the first scheduling unit sets up a token pool based on the total downlink bandwidth. This token pool includes a certain number of tokens, each token representing a certain bandwidth resource. The first scheduling unit obtains first target allocation information according to the first target bandwidth request. The first target allocation information includes K first tokens in the token pool, and these K first tokens are used to indicate the first target bandwidth. The first target bandwidth indicated by the K first tokens is less than or equal to the total downlink bandwidth between the switching module 1614 and the line card 1600. The first scheduling unit improves the finer control of downlink bandwidth and enhances resource utilization by indicating the first target bandwidth using the K tokens. It should be noted that this embodiment does not limit the method by which the first scheduling unit indicates the first target bandwidth to the forwarding device.
[0272] Step 1803: The upper-layer device sends a second message to the forwarding unit of the forwarding device.
[0273] Specifically, the forwarding unit 1613 of the first forwarding device 1610 receives the second message from the upper-layer device 1621. For a detailed explanation of the process, please refer to the explanation of the forwarding device receiving the second message shown in step 801 of Figure 8. The details will not be repeated here.
[0274] Step 1804: The forwarding unit of the forwarding device performs forwarding processing on the second message according to the first target allocation information to obtain the second service message, and sends the second service message to the switching module.
[0275] According to the first target allocation information, the forwarding unit 1613 performs forwarding processing on the second message to obtain the second service message. For an explanation of the forwarding process of the forwarding unit 1613 on the second message, please refer to step 802 in Figure 8. The specific details will not be repeated. Moreover, the second service message after being processed by the forwarding unit 1613 occupies the bandwidth of the first target bandwidth.
[0276] Step 1805: The switching module sends the second service message to the routing module.
[0277] Step 1806: The routing module sends the second service message to the processing module.
[0278] Step 1807: The processing module performs digital signal processing on the second service message to obtain the second electrical signal, and sends the second electrical signal to the optical module.
[0279] Step 1808: The optical module sends a second optical signal to the optical network terminal equipment.
[0280] For an explanation of the execution process of steps 1805 to 1807 shown in this embodiment, please refer to steps 803 to 806 in Figure 8, which will not be described in detail here.
[0281] As shown in this embodiment, the first scheduling unit of the forwarding device allocates the first target bandwidth, effectively ensuring that the second service from the upper-layer device can be successfully and efficiently transmitted to the optical network terminal device, thus improving the reliability of the second service transmission. Since the line card does not need to allocate the first target bandwidth, the power consumption of the line card is effectively reduced, the heat dissipation pressure on the line card is reduced, and low carbon emissions are achieved.
[0282] Figure 19 is a structural example diagram of a sixth embodiment of the optical communication device provided in this application. Specifically, the optical communication device shown in this embodiment includes a line card 1900 and one or more forwarding devices 1910 connected to the line card 1900. This embodiment does not limit the number of line cards 1900 and forwarding devices 1910 included in the optical communication device. For a description of the type of forwarding device 1910 shown in this embodiment, please refer to the description corresponding to Figure 4, which will not be repeated here. The line card 1900 shown in this embodiment specifically includes an optical module 1901, a processing module 1902, and a routing module 1903. The processing module 1902 shown in this embodiment specifically includes a second scheduling unit 1904 and a processing unit 1905 connected to each other. The processing unit 1905 is connected to the routing module 1903 and the optical module 1901 respectively, and is used for digital signal processing. This embodiment uses the integration of the second scheduling unit 1904 into the processing module 1902 as an example. In other examples, the second scheduling unit 1904 can also be separate from the processing module 1902 and integrated into the same line card 1900. Alternatively, the second scheduling unit 1904 can be integrated into another line card, main control board, or switching board different from the line card 1900. This embodiment does not limit the specific location of the second scheduling unit 1904. For descriptions of the digital signal processing of the processing unit 1905, the routing module 1903, and the optical module 1901, please refer to the embodiments described above; specific details will not be repeated. The forwarding device 1910 includes a switching module 1914 and one or more forwarding modules 1911 connected to the switching module 1914. This embodiment does not limit the number of forwarding modules or the number of switching modules included in the forwarding device 1910. For descriptions of the forwarding modules shown in this embodiment, please refer to any of the embodiments described above; specific details will not be repeated. The forwarding module 1911 includes a first scheduling unit 1912 and a forwarding unit 1913 connected to each other. The forwarding unit 1913 is connected to the switching module 1914. For a description of the structure of the forwarding unit 1913, please refer to the description corresponding to Figure 9, which will not be repeated here. For a description of the first scheduling unit 1912, please refer to the description corresponding to Figure 16, which will not be repeated here.
[0283] Method Example 9
[0284] Figure 20 is a flowchart illustrating an embodiment of the service transmission method performed by the optical communication device shown in Figure 19. The optical communication device shown in Figure 17 can allocate a first bandwidth through a forwarding device. In the embodiment shown in Figure 20, the forwarding device and the line card jointly allocate the first bandwidth.
[0285] Step 2001: The optical network terminal equipment sends a first request optical signal to the optical module of the line card.
[0286] Step 2002: The optical module of the line card converts the first application optical signal into a first application electrical signal and sends the first application electrical signal to the processing unit of the processing module.
[0287] Step 2003: The processing unit of the line card performs digital signal processing on the first application electrical signal to obtain the first application message, and sends the first application message to the routing module of the line card.
[0288] Step 2004: The routing module sends the first request message to the switching module of the forwarding device.
[0289] Step 2005: The switching module of the forwarding device sends a first bandwidth request to the first scheduling unit of the forwarding module.
[0290] For an explanation of the execution process of steps 2001 to 2005 shown in this embodiment, please refer to steps 1701 to 1705 corresponding to Figure 17. Detailed explanations will not be repeated here.
[0291] Step 2006: The first scheduling unit of the forwarding module sends the first allocation information to the switching module.
[0292] The difference between Figure 20 and Figure 17 is that the first scheduling unit of the forwarding device and the second scheduling unit of the line card are used together to allocate the first bandwidth of the optical network terminal device 1920. Therefore, the first scheduling unit 1912 allocates the first bandwidth to multiple optical network terminal devices according to the scheduling policy, the first bandwidth request, or the network status. For the specific allocation process and explanation of the first allocation information, please refer to step 1706 in Figure 17, which will not be elaborated further.
[0293] Step 2007: The switching module sends the first allocation information to the routing module.
[0294] Step 2008: The routing module sends the first allocation information to the processing unit of the processing module.
[0295] The description of steps 2007 to 2008 in this embodiment, which shows the switching module sending the first allocation information to the processing unit, is described in steps 807 to 808 of Figure 8, which describes the process of the switching module sending the second service message to the processing module. The details will not be repeated here.
[0296] Step 2009: The processing unit sends the first allocation information to the second scheduling unit of the processing module.
[0297] To achieve the goal of the first scheduling unit and the second scheduling unit jointly allocating the first bandwidth, the second scheduling unit receives the first allocation information to obtain the first bandwidth allocated by the first allocation information. The second scheduling unit can modify the first bandwidth indicated by the first allocation information based on historical bandwidth requests from the optical network terminal device 1920, and send the modified first bandwidth allocation information to the optical network terminal device 1920. Historical bandwidth requests can be records of first bandwidth requests made by the optical network terminal device 1920 to the optical communication equipment over a past period. It should be noted that this embodiment does not limit the process of the first scheduling unit and the second scheduling unit jointly allocating the first bandwidth. For example, the second scheduling unit allocates the first bandwidth, and then the first scheduling unit modifies it according to the needs of the first bandwidth. The key is that the first bandwidth allocated to the optical network terminal device 1920 by the first and second scheduling units avoids conflicts between bandwidth occupied by other optical network terminal devices sending services, thereby improving the reliability of the optical network terminal device 1920 sending the first service.
[0298] Step 2010: The second scheduling unit sends the modified first allocation information to the processing unit.
[0299] Step 2011: The processing unit sends the modified first allocation information to the optical module.
[0300] Step 2012: The optical module sends the modified first allocation information to the optical network terminal equipment.
[0301] The process of the line card sending the modified first allocation information to the optical network terminal device, as shown in steps 2011 to 2012 of this embodiment, is explained in steps 1709 to 1710 of Figure 17, which describes the process of the line card sending the first allocation information to the optical network terminal device. The details will not be repeated here.
[0302] This embodiment illustrates the allocation of a first bandwidth by both the first and second scheduling units. In other examples, the first and second scheduling units may also jointly allocate a first target bandwidth. For a description of the first target bandwidth, please refer to Figure 18; further details will not be provided here. For an explanation of how the first and second scheduling units jointly allocate the first target bandwidth, please refer to Figure 20, which illustrates the allocation of the first bandwidth by both the first and second scheduling units; further details will not be provided here.
[0303] Using the method shown in this embodiment, the first scheduling unit and the second scheduling unit of the forwarding device jointly allocate the first bandwidth, effectively avoiding conflicts between the first bandwidths allocated to different optical network terminal devices, and improving the reliability of the optical network terminal devices sending the first service.
[0304] Figure 21 is a structural example diagram of the seventh embodiment of the optical communication device provided in this application. The optical communication device shown in this embodiment includes multiple forwarding devices. This embodiment takes an optical communication device including a first forwarding device 2110 and a second forwarding device 2120 as an example. It should be noted that this embodiment does not limit the number of forwarding devices included in the optical communication device. The first forwarding device 2110, the first line card 2101, and the first optical network terminal device 2102 are connected sequentially. The second forwarding device 2120, the second line card 2103, and the second optical network terminal device 2104 are connected sequentially. The first forwarding device 2110 includes a switching module 2114 and a forwarding module 2111. The forwarding module 2111 specifically includes a forwarding unit 2113 and a first scheduling unit 2112. For a description of the first scheduling unit 2112, please refer to the description corresponding to Figure 16, which will not be repeated here. The first scheduling unit 2112 is connected to the forwarding unit 2113. The switching module 2114 is connected to the first line card 2101. The second forwarding device 2120 includes a forwarding module 2122 and a switching module 2121. The forwarding module 2122 is connected to the upper-layer device 2132, the switching module 2121, and the first scheduling unit 2112. The switching module 2121 is connected to the second line card 2103. The second line card 2103 is connected to the second optical network terminal device 2104. In this embodiment, the number of optical network terminal devices connected to the first line card 2101 and the second line card 2103 is not limited.
[0305] Method Example 10
[0306] Based on Figure 21, and in conjunction with Figure 22, the process of the first forwarding device allocating the first bandwidth and the second bandwidth is explained. Figure 22 is a flowchart of the first embodiment of the service transmission method performed by the optical communication device shown in Figure 21. Specifically, based on Figure 22, the first scheduling unit of the first forwarding device can allocate the first bandwidth and the second bandwidth. Then, the first optical network terminal device 2102 occupies the first bandwidth to send the first service to the optical communication device, and the second optical network terminal device 2104 occupies the second bandwidth to send the second service to the optical communication device. The first scheduling unit 2112 shown in this embodiment can be a DBA (Data Access Controller).
[0307] Step 2201: The first optical network terminal device sends a first application optical signal to the optical module of the first line card.
[0308] In this embodiment, if the first optical network terminal device 2102 needs to request a first bandwidth from the optical communication device to use that first bandwidth to send a first service to the first forwarding device 2110, then the first optical network terminal device 2102 sends the first request optical signal to the optical communication device. This first request optical signal carries the first bandwidth request. For a description of the first request optical signal in this embodiment, please refer to step 1701 in Figure 17; further details will not be provided here.
[0309] Step 2202: The second optical network terminal device sends a second application optical signal to the optical module of the second line card.
[0310] In this embodiment, if the second optical network terminal device 2104 needs to request a second bandwidth from the optical communication device to use that second bandwidth to send the first service to the second forwarding device 2120, then the second optical network terminal device 2104 sends the second request optical signal to the second forwarding device 2120. This second request optical signal carries the second bandwidth request. For a description of the second bandwidth request and the second request optical signal shown in this embodiment, please refer to the description of the first bandwidth request and the first request optical signal shown in step 2201; further details will not be repeated here.
[0311] This embodiment does not limit the execution sequence between steps 2201 and 2202.
[0312] Step 2203: The optical module of the first line card converts the first application optical signal into a first application electrical signal and sends the first application electrical signal to the processing module.
[0313] Step 2204: The optical module of the second line card converts the second application optical signal into a second application electrical signal and sends the second application electrical signal to the processing module.
[0314] For an explanation of the execution process of steps 2203 and 2204 shown in this embodiment, please refer to step 1702 in Figure 17. The specific details will not be repeated, and there is no limitation on the execution sequence between steps 2203 and 2204.
[0315] Step 2205: The processing module of the first line card performs digital signal processing on the first application electrical signal to obtain the first application message, and sends the first application message to the routing module.
[0316] Step 2206: The processing module of the second line card performs digital signal processing on the second application electrical signal to obtain the second application message, and sends the second application message to the routing module.
[0317] For an explanation of the execution process of steps 2205 and 2206 shown in this embodiment, please refer to step 1703 in Figure 17. The specific details will not be repeated, and there is no limitation on the execution sequence between steps 2205 and 2206.
[0318] Step 2207: The routing module of the first line card sends a first request message to the switching module of the first forwarding device.
[0319] Step 2208: The routing module of the second line card sends a second request message to the switching module of the second forwarding device.
[0320] For an explanation of the execution process of steps 2207 and 2208 shown in this embodiment, please refer to step 1704 corresponding to Figure 17. Detailed explanations will not be repeated here, and the execution sequence between steps 2207 and 2208 is not limited.
[0321] Step 2209: The switching module of the first forwarding device sends a first bandwidth request to the first scheduling unit of the forwarding module.
[0322] Step 2210: The switching module of the second forwarding device sends a second bandwidth request to the first scheduling unit of the forwarding module.
[0323] For a description of the execution process of steps 2209 to 2210 shown in this embodiment, please refer to step 1705 in Figure 17, which will not be elaborated upon here. This embodiment does not limit the execution sequence between steps 2209 and 2210.
[0324] Step 2211: The first scheduling unit sends the first allocation information to the switching module.
[0325] For an explanation of the execution process of step 2211 shown in this embodiment, please refer to step 1706 in Figure 17, which will not be elaborated further.
[0326] Step 2212: The first scheduling unit sends the second allocation information to the switching module of the second forwarding device.
[0327] Specifically, the first scheduling unit sends the second allocation information to the forwarding module of the second forwarding device, and the forwarding module then forwards the second allocation information to the switching module of the second forwarding device. For an explanation of how the first scheduling unit requests the allocation of second bandwidth to obtain the second allocation information based on the second bandwidth request, please refer to step 2211 for the explanation of how the first scheduling unit requests the allocation of first bandwidth to obtain first allocation information based on the first bandwidth request; further details will not be elaborated here.
[0328] Step 2213: The switching module of the first forwarding device sends the first allocation information to the routing module of the first line card.
[0329] Step 2214: The routing module sends the first allocation information to the processing module.
[0330] Step 2215: The processing module sends the first allocation electrical signal to the optical module.
[0331] Step 2216: The optical module sends the first allocated optical signal to the first optical network terminal device.
[0332] Step 2217: The switching module of the second forwarding device sends the second allocation information to the routing module of the second line card.
[0333] Step 2218: The routing module sends the second allocation information to the processing module.
[0334] Step 2219: The processing module sends a second distribution electrical signal to the optical module.
[0335] Step 2220: The optical module sends a second distribution optical signal to the second optical network terminal device.
[0336] The process of sending the first allocation information shown in steps 2213 to 2216 and the process of sending the second allocation information shown in steps 2217 to 2220 in this embodiment are shown in steps 1707 to 1710 in Figure 17, and will not be described in detail here.
[0337] Using the method shown in this embodiment, when the first line card receives a first bandwidth request from the first optical network terminal device, it does not allocate the first bandwidth but instead sends the first bandwidth request to the first forwarding device, which then allocates the first bandwidth. When the second line card receives a second bandwidth request from the second optical network terminal device, it does not allocate the second bandwidth but instead sends the second bandwidth request to the second forwarding device, which then forwards the second bandwidth request to the first forwarding device, where it allocates the second bandwidth. Therefore, the first forwarding device shown in this embodiment can allocate bandwidth to the second optical network terminal device connected to it. The second forwarding device does not require a scheduling unit, reducing its power consumption and heat dissipation, thus contributing to low carbon emissions. Furthermore, among multiple forwarding devices, only one forwarding device needs a first scheduling unit to achieve bandwidth allocation, improving the integration of optical communication equipment.
[0338] Method Example Eleven
[0339] Figure 23 is a flowchart illustrating the steps of a second embodiment of the service transmission method performed by the optical communication device shown in Figure 21. The first scheduling unit 2112 shown in this embodiment can be a DSH or a CP. The first scheduling unit 2112 is used to allocate a first target bandwidth and a second target bandwidth, wherein the first target bandwidth is the bandwidth occupied by the first forwarding device 2110 sending a message to the first line card 2101. The second target bandwidth is the bandwidth occupied by the second forwarding device 2120 sending a message to the second line card 2103.
[0340] Step 2301: The forwarding unit of the first forwarding device sends a first target bandwidth request to the first scheduling unit.
[0341] Step 2302: The forwarding module of the second forwarding device sends a second target bandwidth request to the first scheduling unit.
[0342] The first scheduling unit allocates the first target bandwidth between the first forwarding device and the first line card 2101, and allocates the second target bandwidth between the second forwarding device 2120 and the second line card 2003, based on the first target bandwidth request and the second target bandwidth request. This enables the first forwarding device 2110 to occupy the first target bandwidth and send messages to the first line card 2101, and the second forwarding device 2120 to occupy the second target bandwidth and send messages to the second line card 2103. For a description of the first target bandwidth request and the second target bandwidth request, please refer to the description of the first target bandwidth request in step 1801 of Figure 18, which will not be elaborated here.
[0343] Step 2303: The first scheduling unit sends the first target allocation information to the forwarding unit of the first forwarding device.
[0344] Step 2304: The first scheduling unit sends the second target allocation information to the forwarding module of the second forwarding device.
[0345] The first scheduling unit shown in this embodiment allocates the first target bandwidth and the second target bandwidth according to the first target bandwidth request and the second target bandwidth request, so that the first target bandwidth is less than the total downlink bandwidth between the first forwarding device 2110 and the first line card 2101, and the second target bandwidth is less than the total downlink bandwidth between the second forwarding device 2120 and the second line card 2103. This embodiment does not limit the specific process of the first scheduling unit allocating the first target bandwidth and the second target bandwidth. For example, taking the allocation of the first target bandwidth as an example, the first scheduling unit 2112 can allocate the first target bandwidth according to the total downlink bandwidth between the switching module 2114 of the first forwarding device and the first line card 2101, the forwarding capability of the first line card 2101, service priority, service value, etc. For an explanation of the forwarding capability of the first line card 2101, please refer to Figure 16, which will not be elaborated further. For an explanation of the first target allocation information and the second target allocation information, please refer to the explanation of the first target allocation information shown in step 1802 of Figure 18, which will not be elaborated further.
[0346] Step 2305: The upper-layer device sends a second message to the forwarding unit of the first forwarding device.
[0347] Step 2306: The upper-layer device sends a third message to the forwarding module of the second forwarding device.
[0348] The upper-layer devices shown in Figure 23 can represent the same upper-layer device or different upper-layer devices, and are not specifically limited. In this embodiment, the upper-layer devices shown in Figure 23 include upper-layer device 2131 and upper-layer device 2132. Specifically, the forwarding unit 2113 of the first forwarding device 2110 receives the second message from upper-layer device 2131, and the forwarding module 2122 of the second forwarding device 2120 receives the third message from upper-layer device 2132. For a detailed explanation of the process, please refer to step 1803 corresponding to Figure 18, which will not be elaborated further. This embodiment does not limit the execution timing between steps 2305 and 2306.
[0349] Step 2307: The forwarding unit of the first forwarding device performs forwarding processing on the second message according to the first target allocation information to obtain the second service message, and sends the second service message to the switching module.
[0350] Step 2308: The forwarding module of the second forwarding device forwards the third message according to the second target allocation information to obtain the third service message, and sends the third service message to the switching module.
[0351] The first forwarding device 2110 performs forwarding processing on the second packet according to the first target allocation information to obtain the second service packet. For a description of the forwarding module's processing of the second packet, please refer to step 1804 in Figure 18; details will not be elaborated further. Furthermore, the second service packet processed by forwarding unit 2113 occupies the bandwidth of the first target bandwidth. The second forwarding device 2120 performs forwarding processing on the third packet according to the second target allocation information to obtain the third service packet. For a description of the forwarding module's processing of the third packet, please refer to step 1804 in Figure 18; details will not be elaborated further. Furthermore, the third service packet processed by forwarding module 2122 occupies the bandwidth of the second target bandwidth.
[0352] This embodiment does not limit the execution timing between steps 2307 and 2308.
[0353] Step 2309: The switching module of the first forwarding device sends the second service message to the first line card.
[0354] Step 2310: The first line card sends the second service message to the first optical network terminal.
[0355] For a description of the execution process of steps 2309 to 2310 shown in this embodiment, please refer to steps 1805 to 1808 corresponding to Figure 18, which will not be repeated here. The optical network terminals shown in Figure 23 may represent the same optical network terminal device or different optical network terminal devices. For example, the optical network terminals shown in Figure 23 include a first optical network terminal device 2102 and an optical network terminal device 2104.
[0356] Step 2311: The switching module of the second forwarding device sends a third service message to the second line card.
[0357] Step 2312: The second line card sends a third service message to the second optical communication device.
[0358] For an explanation of the execution process of steps 2311 to 2312 shown in this embodiment, please refer to steps 1805 to 1808 corresponding to Figure 18. Detailed explanations will not be repeated here.
[0359] Using the method shown in this embodiment, the first scheduling unit of the first forwarding device can allocate downlink bandwidth between multiple different forwarding devices and line cards, effectively ensuring that second services from upper-layer devices can be successfully and efficiently transmitted to the optical network terminal equipment, avoiding conflicts during the transmission of second services from different upper-layer devices from the switching module to the line card. Therefore, the second forwarding device does not need to be configured with a scheduling unit, reducing its power consumption and heat dissipation pressure, which is beneficial for achieving low carbon emissions. Moreover, among multiple forwarding devices, only one forwarding device needs to be configured with the first scheduling unit to achieve bandwidth allocation, improving the integration of optical communication equipment.
[0360] Figure 24 is a structural example diagram of the eighth embodiment of the optical communication device provided in this application. The optical communication device shown in this embodiment includes a forwarding device and at least one extended forwarding device. This embodiment takes an optical communication device including a forwarding device 2410 and an extended forwarding device 2420 as an example. It should be noted that this embodiment does not limit the number of forwarding devices or the number of extended forwarding devices included in the optical communication device. The forwarding device 2410 is connected to one or more optical network terminal devices via a line card 2403. For example, the line card 2403 is connected to the first optical network terminal device 2401 and the second optical network terminal device 2402, respectively. The forwarding device 2410 includes a switching module 2412 and a forwarding module 2411. The forwarding unit 2413 is connected to the upper-layer device 2431. The forwarding module 2411 specifically includes the forwarding unit 2413 and a first scheduling unit 2414. For a description of the first scheduling unit 2414, please refer to the description corresponding to Figure 16, which will not be repeated here. The first scheduling unit 2414 is connected to the forwarding unit 2413. The switching module 2412 connects to the line card 2403. The extended forwarding device 2420 includes an extended forwarding module 2421, which is connected to the first scheduling unit 2414, the switching module 2412, and the upper-layer device 2432. For a description of the structure of the extended forwarding device 2420, please refer to the description corresponding to Figure 13, which will not be elaborated further.
[0361] Method Example Twelve
[0362] Based on Figure 24, and in conjunction with Figure 25, the process of the forwarding device allocating the first bandwidth is explained. Figure 25 is a flowchart of the first embodiment of the service transmission method performed by the optical communication device shown in Figure 24. Specifically, based on Figure 25, the first scheduling unit of the forwarding device can allocate the first bandwidth to each optical network terminal device. This first bandwidth is the bandwidth occupied by the first service sent by the optical network terminal device to the optical communication device. In this embodiment, the first scheduling unit 2414 can be a DBA (Data Access Controller).
[0363] Step 2501: The first optical network terminal device sends a first request optical signal to the optical module of the line card.
[0364] Step 2502: The second optical network terminal device sends a second application optical signal to the optical module of the line card.
[0365] For an explanation of the execution process of steps 2501 to 2502 shown in this embodiment, please refer to steps 2201 to 2202 shown in Figure 22. Detailed explanations will not be repeated here.
[0366] Step 2503: The optical module of the line card converts the first application optical signal into a first application electrical signal and sends the first application electrical signal to the processing module.
[0367] Step 2504: The optical module of the line card converts the second application optical signal into a second application electrical signal and sends the second application electrical signal to the processing module.
[0368] For a description of the execution process of steps 2503 and 2504 shown in this embodiment, please refer to steps 2203 and 2204 corresponding to Figure 22, which will not be elaborated further. It can be understood that in Figure 22, different line cards' optical modules convert different request optical signals. In this embodiment, the same line card converts the first request optical signal and the second request optical signal respectively. This embodiment does not limit the execution timing between steps 2503 and 2504.
[0369] Step 2505: The line card's processing module performs digital signal processing on the first application electrical signal to obtain the first application message, and sends the first application message to the routing module.
[0370] Step 2506: The line card's processing module performs digital signal processing on the second application electrical signal to obtain the second application message, and sends the second application message to the routing module.
[0371] For a description of the execution process of steps 2505 and 2506 shown in this embodiment, please refer to step 2205 in Figure 22. Specific details will not be repeated here. This embodiment does not limit the execution timing between steps 2505 and 2506. It can be understood that, compared to Figure 22, this embodiment shows the same line card processing module performing digital signal processing on the first application electrical signal and the second application electrical signal respectively.
[0372] Step 2507: The routing module of the line card sends the first request message to the switching module of the forwarding device.
[0373] Step 2508: The routing module of the line card sends a second request message to the switching module of the forwarding device.
[0374] For an explanation of the execution process of steps 2507 and 2508 shown in this embodiment, please refer to step 2207 in Figure 22. Detailed explanations will not be repeated here. This embodiment does not limit the execution sequence between steps 2507 and 2508.
[0375] Step 2509: The switching module of the first forwarding device sends a first bandwidth request to the first scheduling unit of the forwarding module.
[0376] For an explanation of the execution process of step 2509 shown in this embodiment, please refer to step 2209 in Figure 22, which will not be elaborated further.
[0377] Step 2510: The switching module of the forwarding device sends a second request message to the extended forwarding module of the extended forwarding device.
[0378] Step 2511: The extended forwarding module of the extended forwarding device sends a second bandwidth request to the first scheduling unit of the forwarding module.
[0379] In this embodiment, the extended forwarding module 2421 of the extended forwarding device 2420 is connected to the first scheduling unit 2414 of the forwarding device. The extended forwarding module 2421 of the extended forwarding device obtains the second bandwidth request according to the second application message and sends the second bandwidth request to the first scheduling unit 2414 of the forwarding device. For an explanation of the second bandwidth request, please refer to the explanation of the first bandwidth request shown in step 2509. The specific details will not be repeated.
[0380] Step 2512: The first scheduling unit sends the first allocation information to the switching module of the forwarding device.
[0381] For an explanation of the execution process of step 2512 shown in this embodiment, please refer to step 2211 corresponding to Figure 22, which will not be elaborated further.
[0382] Step 2513: The first scheduling unit sends the second allocation information to the extended forwarding module of the extended forwarding device.
[0383] For an explanation of how the first scheduling unit allocates the second bandwidth according to the second bandwidth request to obtain the second allocation information, please refer to the explanation of how the first scheduling unit allocates the first bandwidth according to the first bandwidth request to obtain the first allocation information shown in step 2512. Specific details will not be repeated here.
[0384] Step 2514: The extended forwarding device sends the second allocation information to the switching module of the forwarding device.
[0385] Step 2515: The switching module of the forwarding device sends the first allocation information and the second allocation information to the routing module of the line card.
[0386] Step 2516: The routing module sends the first allocation information and the second allocation information to the processing module.
[0387] Step 2517: The processing module sends a first allocation signal and a second allocation signal to the optical module.
[0388] Step 2518: The optical module sends the first allocated optical signal to the first optical network terminal device.
[0389] Step 2519: The optical module sends a second distribution optical signal to the second optical network terminal device.
[0390] For a description of steps 2512 to 2519 shown in this embodiment, please refer to steps 2213 to 2220 corresponding to Figure 22. Detailed explanations will not be repeated here.
[0391] The method shown in this embodiment allows for the addition of extended forwarding devices to optical communication equipment as needed, thereby increasing the uplink bandwidth between the optical communication equipment and upper-layer devices. This enables flexible expansion of uplink bandwidth and enhances the forwarding capability of the optical communication equipment to forward packets to upper-layer devices. With the added extended forwarding device, the first scheduling unit of the forwarding device allocates the second bandwidth between the optical network terminal equipment and the extended forwarding device, eliminating the need for the extended forwarding device to allocate the second bandwidth itself. This effectively reduces the power consumption and heat dissipation pressure of the extended forwarding device, contributing to low-carbon emissions. Furthermore, bandwidth allocation can be achieved by configuring only the first scheduling unit in the forwarding device, improving the integration of the optical communication equipment.
[0392] Method Example Thirteen
[0393] Figure 26 is a flowchart illustrating the steps of a second embodiment of the service transmission method performed by the optical communication device shown in Figure 24. The first scheduling unit 2414 shown in this embodiment can be a DSH or a CP. The first scheduling unit 2414 is used to allocate a first target bandwidth and a second target bandwidth, wherein the first target bandwidth is the bandwidth occupied by the forwarding device 2410 when sending the second service (service from the upper-layer device 2431) to the line card 2403. The second target bandwidth is the bandwidth occupied by the forwarding device 2410 when sending the third service (service from the upper-layer device 2432) to the line card 2403.
[0394] Step 2601: The forwarding unit of the forwarding device sends a first target bandwidth request to the first scheduling unit.
[0395] Step 2602: The extended forwarding module of the extended forwarding device sends a second target bandwidth request to the first scheduling unit.
[0396] The first scheduling unit allocates the first target bandwidth between the forwarding device and the line card 2403, and allocates the second target bandwidth between the forwarding device and the line card 2403, according to the first target bandwidth request and the second target bandwidth request, so that the forwarding device 2410 can occupy the first target bandwidth to send messages from the upper-layer device 2431 to the line card 2403, and the forwarding device 2410 can also occupy the second target bandwidth to send messages from the upper-layer device 2432 to the line card 2403.
[0397] Step 2603: The first scheduling unit sends the first target allocation information to the forwarding unit of the forwarding device.
[0398] Step 2604: The first scheduling unit sends the second target allocation information to the forwarding module of the extended forwarding device.
[0399] The first scheduling unit shown in this embodiment allocates the first target bandwidth and the second target bandwidth according to the first target bandwidth request and the second target bandwidth request, so that the sum of the first target bandwidth and the second target bandwidth is less than or equal to the total downlink bandwidth between the switching module 2412 and the line card 2403. Packets from the forwarding device occupy the first target bandwidth and are sent to the line card 2403. Packets from the extended forwarding device 2420 occupy the second target bandwidth and are sent to the line card 2403. This embodiment does not limit the specific process of the first scheduling unit allocating the first target bandwidth and the second target bandwidth. For example, the first scheduling unit 2414 can allocate the first target bandwidth and the second target bandwidth according to the total downlink bandwidth between the switching module 2412 and the line card 2403, the forwarding capability of the line card 2403, service priority, service value, etc. For an explanation of the forwarding capability of the line card 2403, please refer to Figure 16, which will not be elaborated further. For example, the first scheduling unit sets up a token pool according to the total downlink bandwidth. The token pool includes a certain number of tokens, and each token has a certain bandwidth resource. The first scheduling unit obtains first target allocation information and second target allocation information based on the first target bandwidth request and the second target bandwidth request. The first target allocation information includes K first tokens from a token pool, which are used to indicate the first target bandwidth. The second target allocation information includes M second tokens from a token pool, which are used to indicate the second target bandwidth. The sum of the first target bandwidth indicated by the K first tokens and the second target bandwidth supported by the M second tokens is less than or equal to the total downlink bandwidth between the switching module 2412 and the line card 2403. By indicating the first and second target bandwidths using tokens, the first scheduling unit improves the finer control of downlink bandwidth and enhances the resource utilization of downlink bandwidth. It should be noted that this embodiment does not limit the method by which the first scheduling unit indicates the first target bandwidth to the forwarding device and the second target bandwidth to the extended forwarding device.
[0400] Step 2605: The upper-layer device sends a second message to the forwarding unit of the forwarding device.
[0401] Step 2606: The upper-layer device sends a third message to the extended forwarding module of the extended forwarding device.
[0402] Specifically, the forwarding unit 2413 of the forwarding device 2410 receives the second message from the upper-layer device 2431, and the extended forwarding module 2421 of the extended forwarding device 2420 receives the third message from the upper-layer device 2432. For a detailed description of the process, please refer to steps 2305 and 2306 in Figure 23. The specific details will not be elaborated further. This embodiment does not limit the execution timing between steps 2605 and 2606.
[0403] Step 2607: The forwarding unit of the forwarding device performs forwarding processing on the second message according to the first target allocation information to obtain the second service message, and sends the second service message to the switching module.
[0404] Step 2608: The forwarding module of the second forwarding device forwards the third message according to the second target allocation information to obtain the third service message, and sends the third service message to the switching module.
[0405] For a description of the execution process of steps 2607 to 2608 shown in this embodiment, please refer to steps 2307 and 2308 in Figure 23, which will not be elaborated upon here. This embodiment does not limit the execution sequence between steps 2607 and 2608.
[0406] Step 2609: The switching module of the forwarding device sends the second service message and the third service message to the line card.
[0407] Step 2610: The line card sends the second service message to the first optical network terminal device.
[0408] Step 2611: The line card sends a third service message to the second optical network terminal device.
[0409] For a description of the execution process of steps 2609 to 2611 shown in this embodiment, please refer to steps 2309 to 2312 corresponding to Figure 23, which will not be elaborated further. The optical network terminal devices shown in Figure 26 represent the first optical network terminal device and the second optical network terminal device.
[0410] As shown in this embodiment, an extended forwarding device can be added to the optical communication equipment as needed, thereby increasing the downlink bandwidth between the optical communication equipment and the upper-layer equipment. This enables flexible expansion of the downlink bandwidth and enhances the forwarding capability of the upper-layer equipment to forward packets to the optical network terminal equipment. With the added extended forwarding device, the first and second target bandwidths are allocated through the first scheduling unit of the forwarding device, eliminating the need for bandwidth allocation by the extended forwarding device itself. This effectively reduces the power consumption and heat dissipation pressure of the extended forwarding device, contributing to low carbon emissions. Furthermore, bandwidth allocation is achieved only by configuring the first scheduling unit in the forwarding device, improving the integration of the optical communication equipment. This embodiment also effectively avoids conflicts during the transmission of second and third services from different upper-layer equipment from the switching module to the line card, improving the reliability of sending first and third services to the optical network terminal equipment. Moreover, the third service packets sent by the extended forwarding device are transmitted to the line card via the switching module of the forwarding device. When the switching module of the forwarding device receives a third service message from the extended forwarding device, it can directly use the second target bandwidth to send it to the line card. The switching module does not need to send the third service message to the forwarding unit. Therefore, the forwarding unit does not need to forward the second service message and the second service message, avoiding traffic detours for the third service message, improving the transmission efficiency of the third service message, and reducing the transmission latency of the third service message.
[0411] Figure 27 is a structural example diagram of the ninth embodiment of the optical communication device provided in this application. The optical communication device shown in this embodiment includes a forwarding device 2700, a first line card 2710, and a second line card 2720. For a description of the forwarding device 2700 and the first line card 2710, please refer to the above embodiments; specific details will not be repeated here. The second line card 2720 specifically includes an optical module 2721, a processing module 2722, and a forwarding module 2723. For a description of the optical module 2721 and the processing module 2722, please refer to the description of the optical module and processing module included in the line card shown in the above embodiments; specific details will not be repeated here. For a description of the forwarding module 2723, please refer to the description of the forwarding module included in the line card in the example corresponding to Figure 3; specific details will not be repeated here. It can be understood that the structure of the second line card 2720 shown in this embodiment is the same as the line card structure shown in Figure 3; specific details will not be repeated here. The forwarding device 2700 includes a switching module 2701 and a forwarding module 2702. For a description of the switching module 2701 and the forwarding module 2702, please refer to the above embodiment; further details will not be repeated here. The forwarding module 2723 of the second line card 2720 is connected to the switching module 2701 of the forwarding device 2700.
[0412] Method Example Fourteen
[0413] Based on the structure of the optical communication device shown in Figure 27, and in conjunction with Figure 28, the execution process of the service transmission method provided in this application will be described, wherein Figure 28 is a flowchart of the first embodiment of the service transmission method executed by the optical communication device shown in Figure 27.
[0414] Step 2801: The optical network terminal device sends a first optical signal to the optical module of the second line card.
[0415] For example, as shown in Figure 27, the optical network terminal device 2731 sends the first optical signal to the second line card 2720. For a description of the first optical signal, please refer to step 601 in Figure 6, which will not be elaborated here.
[0416] Step 2802: The optical module of the line card converts the first optical signal into a first electrical signal and sends the first electrical signal to the processing module.
[0417] The execution process of step 2802 shown in this embodiment is described in detail in step 602 of Figure 6.
[0418] Step 2803: The line card's processing module performs digital signal processing on the first electrical signal to obtain the first message, and sends the first message to the forwarding module.
[0419] The structure of the forwarding module 2723 shown in this embodiment can be found in the description corresponding to Figure 3. The forwarding module shown in this embodiment may include TM, SF, and NP, etc. For specific details, please refer to the description of the forwarding module corresponding to Figure 3; further details will not be elaborated here. The forwarding module shown in this embodiment is used to implement the routing module function of the first line card 2710. For a description of the routing module implemented by the forwarding module 2723 included in the second line card 2720, please refer to the description of the routing module corresponding to Figure 6; further details will not be elaborated here.
[0420] Step 2804: The forwarding module sends the first message to the switching module of the forwarding device.
[0421] Step 2805: The switching module sends the first message to the forwarding module.
[0422] Step 2806: The forwarding module forwards the first message to obtain the first service message and forwards the first service message to the upper-layer device.
[0423] For an explanation of the execution process from step 2804 to step 2806 shown in this embodiment, please refer to steps 604 to 606 in Figure 6. Detailed explanations will not be repeated here.
[0424] As shown in Figure 27, taking the forwarding module 2723 of the second line card as an example of implementing the routing module function of the first line card, in other examples, the forwarding module 2723 of the second line card 2720 can also implement the forwarding processing function. For a description of the forwarding processing function implemented by the forwarding module 2723 of the second line card 2720, please refer to the description of the forwarding module of the line card corresponding to Figure 3, which will not be elaborated here. It can be understood that, as shown in this embodiment, the forwarding module 2723 and the forwarding device 2700 of the second line card have two modes. For example, in mode 1, the forwarding module 2723 of the second line card 2720 in this mode is specifically as shown in steps 2803 to 2804 above. The forwarding device is specifically as shown in steps 2804 and 2805 above. In mode 2, the second line card can use the forwarding module to perform NP, TM, and other forwarding functions on the first message. For a detailed description, please refer to the description corresponding to Figure 3, which will not be elaborated here. In this mode, the forwarding module of the forwarding device 2700 does not need to perform forwarding functions such as NP and TM, but only performs routing forwarding to successfully forward the first packet to the upper layer device.
[0425] Method Example 15
[0426] Figure 28 illustrates the process of sending services to upper-layer devices using the second line card as an example, and Figure 29 illustrates the process of sending services to optical network terminal devices using the second line card. Figure 29 is a flowchart of the second embodiment of the service transmission method performed by the optical communication equipment shown in Figure 27.
[0427] Step 2901: The upper-layer device sends a second message to the forwarding module of the forwarding device.
[0428] Step 2902: The forwarding module performs forwarding processing on the second message to obtain the second service message, and sends the second service message to the switching module.
[0429] For an explanation of the execution process of steps 2901 to 2902 shown in this embodiment, please refer to steps 801 to 802 in Figure 8. Detailed explanations will not be repeated here.
[0430] Step 2903: The switching module sends the second service message to the forwarding module of the second line card.
[0431] The switching module shown in this embodiment sends the second service message to the forwarding module of the second line card. For a detailed description of the sending process, please refer to step 803 in Figure 8, which will not be elaborated further.
[0432] Step 2904: The forwarding module of the second line card sends the second service message to the processing module of the second line card.
[0433] The forwarding module of the second line card shown in this embodiment implements the function of the routing module of the line card shown in Figure 8. For the explanation of the execution process of steps 2903 to 2904 shown in this embodiment, please refer to steps 803 to 804 in Figure 8. The specific details will not be repeated.
[0434] Step 2905: The processing module of the second line card performs digital signal processing on the second service message to obtain the second electrical signal, and sends the second electrical signal to the optical module of the second line card.
[0435] Step 2906: The optical module of the second line card sends a second optical signal to the optical network terminal equipment.
[0436] For an explanation of the execution process of steps 2905 to 2906 shown in this embodiment, please refer to steps 805 to 806, which will not be repeated here.
[0437] In this embodiment, the forwarding module and forwarding device of the second line card have two modes. For example, in mode 1, the forwarding module of the second line card is specifically shown in steps 2903 to 2904 above. The forwarding device is specifically shown in steps 2901 to 2902 above, and will not be described in detail. In mode 2, the second line card can use the forwarding module to perform NP, TM, and other forwarding functions on the second service packets. For a detailed explanation, please refer to the description of the forwarding module implementing the forwarding processing function in Figure 3, which will not be described in detail here.
[0438] Regarding the above method embodiments, it should be noted that:
[0439] (1) The step numbers of the flowcharts described in the embodiments are only examples of the execution flow and do not constitute a restriction on the order of execution of the steps. There is no strict execution order between steps that have no temporal dependency relationship with each other in the embodiments of this application. In addition, not all steps shown in the flowcharts are mandatory steps. Some steps can be added or deleted based on the actual needs of each flowchart.
[0440] (2) In the various embodiments of this application, unless otherwise specified or logically conflicting, the terms and / or descriptions of different embodiments are consistent and can be referenced by each other. The technical features of different embodiments can be combined to form new embodiments according to their inherent logical relationship.
[0441] (3) The above embodiments use some messages and parameters from the PON system, but in actual implementation, different messages or message names may be used, and this application embodiment does not limit this. Furthermore, in some of the above embodiments, examples are mainly provided using devices in existing PON network architectures (optical network central office equipment, optical network terminal equipment). It should be understood that this application embodiment does not limit the specific form of the equipment. For example, any device that can achieve the same function in the future is applicable to this application embodiment.
[0442] (4) In the above method embodiments, the methods and operations implemented by the device (such as optical network central office equipment or optical network terminal equipment) can also be implemented by the device components (such as chips or circuits), without limitation.
[0443] The methods provided by the embodiments of this application have been described in detail above. The apparatus and chip provided by the embodiments of this application will be described in detail below. It should be understood that the descriptions of the apparatus embodiments correspond to the descriptions of the method embodiments; therefore, any content not described in detail can be referred to the method embodiments above, and for the sake of brevity, will not be repeated here.
[0444] The above communication methods are mainly described from the perspective of optical communication equipment. It is understandable that, in order to achieve the above functions, optical communication equipment includes the corresponding hardware structure and / or software modules for executing each function.
[0445] It is understood that, in order to achieve the functions in the above embodiments, the optical communication device includes hardware structures and / or software modules corresponding to perform each function. Those skilled in the art should readily recognize that, based on the units and method steps described in conjunction with the embodiments disclosed in this application, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application scenario and design constraints of the technical solution.
[0446] Figure 30 is a schematic block diagram of an embodiment of the communication device provided in this application. Specifically, the communication device 3000 includes a transmitting module 3001, a processing module 3002, and a receiving module 3003. The transmitting module 3001 may also be referred to as a transmitter, transmitting unit, transmitting device, etc. The receiving module 3003 may also be referred to as a receiver, receiving unit, receiving device, etc. The processing module 3002 is used to implement corresponding processing functions. The transmitting module 3001 and the receiving module 3003 may also be referred to as a communication interface or communication unit. Optionally, the communication device 3000 may be a device including an optical communication device, or a component configured in an optical communication device, such as a chip of the optical communication device. In this case, the receiving module 3003 and the transmitting module 3001 may be interface circuits, pins, etc. Specifically, the interface circuit may include input circuits and output circuits, wherein the receiving module 3003 may include an input circuit, the transmitting module 3001 may include an output circuit, and the processing module 3002 may include a processing circuit.
[0447] Optionally, the communication device 3000 further includes a storage unit, which can be used to store instructions and / or data. The processing module 3002 can read the instructions and / or data in the storage unit to execute corresponding processing control actions.
[0448] For example, the communication device can be an optical communication device used to perform the above method embodiments, or it can be a line card or module (such as a chip) used to perform the above method embodiments of the optical communication device. The transmitting module 3001 is used to perform the transmitting action in the above method embodiments, the receiving module 3003 is used to perform the receiving action in the above method embodiments, and the processing module 3002 is used to perform the processing action in the above method embodiments.
[0449] It should be understood that the specific process of each module performing the above-mentioned steps has been described in detail in the above method embodiments, and will not be repeated here for the sake of brevity.
[0450] Figure 31 is a schematic diagram of an embodiment of the chip provided in this application. The chip 3100 (or may also be referred to as a processing system) includes logic circuitry 3110 and an input / output interface 3120.
[0451] The logic circuit 3110 can be a processing circuit within the chip 3100. The logic circuit 3110 can be coupled to a memory unit, calling instructions from the memory unit, enabling the chip 3100 to implement the methods and functions of the embodiments of this application. The input / output interface 3120 can be an input / output circuit within the chip 3100, outputting processed information from the chip 3100, or inputting data or signaling information to be processed into the chip 3100 for processing.
[0452] Optionally, the logic circuit 3110 may be implemented by one or more processors, including the one or more processors or the processing portion of the one or more processors.
[0453] Optionally, the input / output interface 3120 may include transceiver circuitry, a transceiver, input / output circuitry, or a communication interface.
[0454] As one approach, the chip 3100 is used to implement the operations performed by the optical communication device in the various method embodiments described above.
[0455] Specifically, the logic circuit 3110 is used to implement the processing-related operations performed by the optical communication device in the above method embodiment; the input / output interface 3120 is used to implement the sending and / or receiving-related operations performed by the optical communication device in the above method embodiment.
[0456] This application also provides a computer-readable storage medium storing computer instructions for implementing the methods executed by an optical network central office device or an optical network terminal device in the above-described method embodiments.
[0457] For example, when the computer program is executed by a computer, it enables the computer to implement the methods executed by the optical network central office equipment or the optical network terminal equipment in the various embodiments of the above methods.
[0458] This application also provides a computer program product containing instructions that, when executed by a computer, implement the methods performed by the optical network central office equipment or the optical network terminal equipment in the above-described method embodiments.
[0459] This application also provides an optical network, which includes the optical network central office equipment, upper layer equipment, and optical network terminal equipment in the above embodiments.
[0460] The explanations and beneficial effects of the relevant contents in any of the devices provided above can be found in the corresponding method embodiments provided above, and will not be repeated here.
[0461] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of apparatus or units may be electrical, mechanical, or other forms.
[0462] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions shown in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. For example, the computer can be a personal computer, a server, or a network device, etc. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state disks, SSDs). For example, the aforementioned available media include, but are not limited to, USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks, and other media capable of storing program code.
[0463] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method of service transmission, characterized by, The method is applied to an optical communication device, the optical communication device comprising a line card and a forwarding device, and the method comprises: The line card receives a first optical signal from a first device; The line card converts the first optical signal into a first electrical signal; The line card performs digital signal processing on the first electrical signal to obtain a first packet; The line card sends the first packet, which has not been subjected to forwarding processing, to the forwarding device; The forwarding device forwards the first packet to a second device.
2. The method of claim 1, wherein, The forwarding device forwards the first packet to a second device, which comprises: The forwarding device performs forwarding processing on the first packet to obtain a first service packet; The forwarding device sends the first service packet to the second device.
3. The method of claim 1, wherein, The forwarding device forwards the first packet to a second device, which comprises: The forwarding device transmits the first packet to the second device.
4. The method according to any one of claims 1 to 3, characterized in that, The line card comprises a routing module and a processing module, and the line card performs digital signal processing on the first electrical signal to obtain a first packet, which comprises: The processing module performs digital signal processing on the first electrical signal to obtain the first packet; The processing module sends the first packet to the routing module; The line card sends the first packet, which has not been subjected to forwarding processing, to the forwarding device, which comprises: The routing module sends the first packet to the forwarding device according to a first forwarding relationship, wherein the first forwarding relationship comprises a correspondence relationship between address information used for identifying the first device, address information used for identifying the second device, and an identifier of the forwarding device, wherein the forwarding device is one of at least one forwarding device connected to the routing module.
5. The method according to any one of claims 1 to 4, characterized in that, After the line card performs digital signal processing on the first electrical signal to obtain a first packet, the method further comprises: The line card adds first label information in the first packet, wherein the first label information is used for identifying a path passed by the first packet in the forwarding device.
6. The method of claim 5, wherein, The optical communication device comprises a switching module, the forwarding device comprises a forwarding module, the first label information comprises an identifier of the switching module and an identifier of the forwarding module, and the line card sends the first packet, which has not been subjected to forwarding processing, to the forwarding device, which comprises: The line card sends the first packet to the switching module according to the identifier of the switching module; The switching module sends the first packet to the forwarding module according to the identifier of the forwarding module; The forwarding device forwards the first packet to a second device, which comprises: The forwarding module forwards the first packet to the second device.
7. The method according to any one of claims 1 to 6, characterized in that, The optical communication device further comprises a switching module and an extended forwarding device, and the method further comprises: The line card receives a first extended optical signal; The line card converts the first extended optical signal into a first extended electrical signal; The line card performs digital signal processing on the first extended electrical signal to obtain a first extended packet; The line card sends the first extended packet, which has not been subjected to forwarding processing, to the switching module; The switching module sends the first extended packet to the extended forwarding device; The extension forwarding device forwards the first extension packet to a third device.
8. The method of claim 7, wherein, The extension forwarding device comprises an extension forwarding module, the first extension packet carries first extension label information, the first extension label information comprises an identifier of the switching module and an identifier of the extension forwarding module, and the line card sends the first extension packet, which has not undergone forwarding processing, to the switching module, comprising: The line card sends the first extension packet to the switching module according to the identifier of the switching module; The switching module sends the first extension packet to the extension forwarding device, comprising: The switching module sends the first extension packet to the extension forwarding module according to the identifier of the extension forwarding module; The extension forwarding device forwards the first extension packet to a third device, comprising: The extension forwarding module forwards the first extension packet to the third device.
9. The method according to any one of claims 1 to 8, characterized in that, The optical communication device comprises a first scheduling unit, and before the line card receives the first optical signal from the first device, the method further comprises: The line card receives a first bandwidth request from the first device; The line card sends the first bandwidth request to the first scheduling unit; The first scheduling unit sends allocation information to the line card according to the first bandwidth request, and the allocation information is used to indicate a bandwidth; The line card sends the allocation information to the first device, and the first device is used to occupy the bandwidth and send the first optical signal to the line card.
10. The method of claim 9, wherein, The optical communication device comprises a second scheduling unit, and before the line card sends the allocation information to the first device, the method further comprises: The first scheduling unit and the second scheduling unit jointly allocate the bandwidth according to the first bandwidth request.
11. A method of service transmission, characterized by, The method is applied to an optical communication device, the optical communication device comprises a line card and a forwarding device, and the method comprises: The forwarding device receives a second packet from a second device; The forwarding device forwards the second packet to the line card; The line card performs digital signal processing on the second packet to obtain a second electrical signal, wherein the second packet has not undergone forwarding processing of the line card; The line card converts the second electrical signal into a second optical signal and sends the second optical signal to a first device.
12. The method of claim 11, wherein, The forwarding device forwards the second packet to the line card, comprising: The forwarding device performs forwarding processing on the second packet to obtain a second service packet; The forwarding device sends the second service packet to the line card; The line card performs digital signal processing on the second packet to obtain a second electrical signal, comprising: The line card performs digital signal processing on the second service packet to obtain the second electrical signal.
13. The method of claim 12, wherein, The forwarding device forwards the second packet to the line card, comprising: The forwarding device transmits the second packet to the line card transparently.
14. The method according to any one of claims 11 to 13, characterized in that, The forwarding device forwards the second packet to the line card, comprising: The forwarding device sends the second packet to the line card according to a second forwarding relationship, wherein the second forwarding relationship comprises a correspondence between address information used for identifying the first device, address information used for identifying the second device and an identifier of the line card, and the line card is one of at least one line card connected to the forwarding device.
15. The method according to any one of claims 11 to 14, characterized in that, After the forwarding device receives the second packet from the second device, the method further comprises: The forwarding device adds second label information to the second packet, and the second label information is used for identifying a path of the second packet in the line card.
16. The method of claim 15, wherein, The line card comprises a routing module, a processing module and an optical module, the second label information comprises an identifier of the routing module, an identifier of the processing module and an identifier of the optical module, and the forwarding device forwarding the second packet to the line card comprises: The forwarding device sends the second packet to the routing module according to the identifier of the routing module; The routing module sends the second packet to the processing module according to the identifier of the processing module; The line card performs digital signal processing on the second packet to obtain a second electrical signal, and the digital signal processing on the second packet comprises: The processing module performs digital signal processing on the second packet to obtain a second electrical signal; The processing module sends the second electrical signal to the optical module according to the identifier of the optical module; The line card converts the second electrical signal into a second optical signal, and the conversion of the second electrical signal into the second optical signal comprises: The optical module converts the second electrical signal into a second optical signal.
17. The method according to any one of claims 11 to 16, characterized in that, The optical communication device comprises a switching module and an extended forwarding device, and the method further comprises: The extended forwarding device receives a second extended packet from a third device; The extended forwarding device sends the second extended packet to the switching module; The switching module forwards the second extended packet to the line card; The line card performs digital signal processing on the second extended packet to obtain a second extended electrical signal, wherein the second extended packet does not pass through the forwarding processing of the line card; The line card converts the second extended electrical signal into a second extended optical signal and sends the second extended optical signal to the first device.
18. The method of claim 17, wherein, The extended forwarding device comprises an extended forwarding module, and after the extended forwarding device receives the second extended packet from the third device, the method further comprises: The extended forwarding module adds second extended label information to the second extended packet, and the second extended label information comprises an identifier of the switching module; The extended forwarding device sending the second extended packet to the switching module comprises: The extended forwarding module sends the second extended packet to the switching module according to the identifier of the switching module.
19. The method according to any one of claims 11 to 18, characterized in that, The forwarding device comprises a forwarding module, the optical communication device comprises a first scheduling unit, and before the forwarding device receives the second packet from the second device, the method further comprises: The forwarding module sends a target bandwidth request to the first scheduling unit; The first scheduling unit sends target allocation information to the line card according to the target bandwidth request, and the target allocation information is used for indicating a target bandwidth; The forwarding device forwards the second packet to the line card, including: The forwarding device occupies the target bandwidth and forwards the second packet to the line card.
20. An optical communication device, comprising: The optical communication device includes a line card and a forwarding device; The line card is configured to: receive a first optical signal from a first device; convert the first optical signal into a first electrical signal; perform digital signal processing on the first electrical signal to obtain a first packet; send the first packet, which has not been processed by the forwarding device, to the forwarding device; The forwarding device is configured to forward the first packet to a second device.
21. An optical communication device, comprising: The optical communication device includes a line card and a forwarding device; The forwarding device is configured to: receive a second packet from a second device; forward the second packet to the line card; The line card is configured to: perform digital signal processing on the second packet to obtain a second electrical signal, wherein the second packet has not been processed by the forwarding device; convert the second electrical signal into a second optical signal and send the second optical signal to a first device.
22. A line card, comprising: The optical communication device includes an optical module, a processing module, and a routing module; The optical module is configured to receive a first optical signal from a first device and convert the first optical signal into a first electrical signal; The processing module is configured to perform digital signal processing on the first electrical signal to obtain a first packet; The routing module is configured to send the first packet, which has not been processed by the forwarding device, to the forwarding device.
23. A line card, comprising: The optical communication device includes an optical module, a processing module, and a routing module; The routing module is configured to receive a second packet from a forwarding device; The processing module is configured to perform digital signal processing on the second packet to obtain a second electrical signal, wherein the second packet has not been processed by the forwarding device; The optical module is configured to convert the second electrical signal into a second optical signal and send the second optical signal to a first device.
24. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions, when the computer instructions run on a computer, cause the execution of the method of any one of claims 1 to 10, and the execution of the method of any one of claims 11 to 19.
Citation Information
Patent Citations
Transponder and related network node for an optical transmission network
CN103250368A
Message forwarding method and device
CN107306220A
Message processing method and device
CN112153493A
Management of routing information in a carrier-grade router
US20240080278A1