Method for determining an ethernet link aggregation interface in an optical communication system and related product

CN122802425APending Publication Date: 2026-09-22HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510347148.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-21
Publication Date
2026-09-22

AI Technical Summary

Technical Problem

[0004]上述配置以太链路聚合接口的方式是由技术人员通过人工操作实现的,导致配置效率低

Benefits of technology

[0037]上述第二方面至第五方面中对应的技术手段获得的技术效果近似,在这里不再赘述。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122802425A_ABST
    Figure CN122802425A_ABST
Patent Text Reader

Abstract

The embodiment of the application discloses a kind of methods for determining Ethernet link aggregation interface in optical communication system and related products, belong to optical communication technical field.Through the method provided in the application embodiment, routing exchange equipment can generate Ethernet link aggregation interface according to the neighbor corresponding to each downstream interface of the downstream interface connected by first center optical module and second center optical module.The method does not need user to configure Ethernet link aggregation interface by artificial method, so the configuration efficiency is higher.And when the networking of optical communication system changes, for example, when the neighbor corresponding to downstream interface changes, Ethernet link aggregation interface can be updated quickly based on the changed networking, also without user to update Ethernet link aggregation interface by artificial method.Satisfy the ease of use requirement of PEN networking.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of optical communication technology, and in particular to a method and related products for determining the Ethernet link aggregation interface in an optical communication system. Background Technology

[0002] In an optical communication system, a central switch communicates with multiple access devices via intermediate devices (also known as passive aggregation modules). The central switch includes multiple downlink interfaces, each corresponding to a different wavelength. At least one central optical module is inserted into the central switch, and each central optical module establishes an electrical connection with a set of downlink interfaces. Each access device has an access-side optical module inserted, which establishes an electrical connection with the access device's uplink interface. Each access-side optical module is connected to the intermediate device via optical fiber, and the intermediate device is connected to the central optical module via optical fiber, thus enabling optical communication between the multiple access devices and the central switch. When the intermediate device receives uplink optical signals from the multiple access-side optical modules, it aggregates these signals to form an uplink aggregated optical signal and transmits it to the central optical module via optical fiber. Upon receiving the uplink aggregated optical signal from the intermediate device, the central optical module performs wavelength division to obtain multiple optical signals, each corresponding to a different wavelength. Then the central optical module sends one of the multiple optical signals to each of the downlink interfaces in a set of downlink interfaces of the central switch to which the central optical module is connected.

[0003] In related technologies, a dual-link backup scheme is implemented between the central switch and intermediate devices. Specifically, the central switch has two central optical modules, each electrically connected to a set of downlink interfaces on the central switch. The intermediate devices are connected to each of these two central optical modules via optical fiber. Thus, after receiving the uplink aggregated optical signal, the intermediate device copies the signal, resulting in two copies, and sends both copies to the two central optical modules. One central optical module continues to forward the uplink aggregated signal, while the other does not. Simultaneously, to facilitate the central switch sending downlink traffic to the access-side optical modules, two downlink interfaces with the same wavelength connected to the two central optical modules are configured as an Ethernet link aggregation (Eth-Trunk) interface. One downlink interface within the Ethernet link aggregation interface is designated as the primary interface, and the other as the backup interface. Thus, when the central switch sends downlink traffic to an access-side optical module, it selects one Ethernet link aggregation interface from multiple Ethernet link aggregation interfaces, and then selects the main interface from the selected Ethernet link aggregation interface to send the downlink traffic.

[0004] The above method of configuring the Ethernet link aggregation interface was implemented manually by technicians, resulting in low configuration efficiency. Summary of the Invention

[0005] This application provides a method and related products for determining Ethernet link aggregation interfaces in an optical communication system. The Ethernet link aggregation interfaces are automatically generated by the routing and switching equipment, eliminating the need for manual configuration by the user. The technical solution is as follows:

[0006] In a first aspect, a method for determining the Ethernet link aggregation interface in an optical communication system is provided. This method is applied to a routing and switching device in the optical communication system. The optical communication system further includes a first central optical module, a second central optical module, an intermediate device, multiple access-side optical modules, and multiple access devices. The routing and switching device includes multiple downlink interfaces that are electrically connected to the first central optical module and multiple downlink interfaces that are electrically connected to the second central optical module. Each access device includes an uplink interface that is electrically connected to an access-side optical module. The first central optical module and the second central optical module are respectively connected to the intermediate device via optical fiber. Each access-side optical module is connected to the intermediate device via optical fiber. The multiple downlink interfaces connected to the first central optical module correspond one-to-one with multiple wavelengths, and the multiple downlink interfaces connected to the second central optical module also correspond one-to-one with these multiple wavelengths. The multiple access-side optical modules also correspond one-to-one with these multiple wavelengths.

[0007] In this method, the neighbors corresponding to each downlink interface in the plurality of downlink interfaces connected to the first central optical module and the neighbors corresponding to each downlink interface in the plurality of downlink interfaces connected to the second central optical module are determined. The neighbors corresponding to each downlink interface refer to the access devices communicating with this downlink interface. Based on the neighbors corresponding to each downlink interface in the plurality of downlink interfaces connected to the first central optical module and the neighbors corresponding to each downlink interface in the plurality of downlink interfaces connected to the second central optical module, at least one Ethernet link aggregation interface is determined. Each Ethernet link aggregation interface includes one downlink interface connected to the first central optical module and one downlink interface connected to the second central optical module. The neighbors corresponding to the two downlink interfaces in the same Ethernet link aggregation interface are the same. In each Ethernet link aggregation interface, one downlink interface is the primary interface and the other downlink interface is the backup interface.

[0008] The method provided in this application allows the routing and switching device to automatically generate Ethernet link aggregation interfaces based on the neighbors corresponding to each downlink interface in the downlink interfaces connected to the first and second central optical modules. This method eliminates the need for manual configuration of the Ethernet link aggregation interfaces by the user, thus achieving high configuration efficiency. It also meets the usability requirements of PEN networking.

[0009] Based on the method provided in the first aspect, in one possible implementation, the process of determining the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the first central optical module and the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the second central optical module can be as follows: obtaining the Link Layer Discovery Protocol (LLDP) neighbor device information received by each downlink interface among the multiple downlink interfaces connected to the first central optical module; obtaining the LLDP neighbor device information received by each downlink interface among the multiple downlink interfaces connected to the second central optical module; wherein, the LLDP neighbor device information received by each downlink interface is used to indicate the access device communicating with this downlink interface.

[0010] In this embodiment, for any access device communicating optically with the routing and switching device, the access device can periodically advertise its LLDP neighbor device information to the routing and switching device. The LLDP neighbor device information advertised by the access device typically includes the access device's identifier, such as its media access control (MAC) address. The LLDP neighbor device information advertised by the access device arrives at the routing and switching device through a downlink interface, and uplink traffic sent by different access devices arrives at the routing and switching device through different downlink interfaces. Based on this, the routing and switching device can identify the neighbor corresponding to each downlink interface according to the LLDP neighbor device information received at each downlink interface.

[0011] Based on the method provided in the first aspect, in one possible implementation, the process of obtaining the Link Layer Discovery Protocol (LLDP) neighbor device information received by each downlink interface among the multiple downlink interfaces connected to the first central optical module can be as follows: shut down the multiple downlink interfaces connected to the second central optical module, and start timing from the time the multiple downlink interfaces connected to the second central optical module are shut down, with the timing duration being a first timing duration; obtain the LLDP neighbor device information received by each downlink interface among the multiple downlink interfaces connected to the first central optical module within the first timing duration.

[0012] Accordingly, the process of obtaining the LLDP neighbor device information received by each downlink interface among the multiple downlink interfaces connected to the second central optical module can be as follows: close the multiple downlink interfaces connected to the first central optical module, and start timing when closing the multiple downlink interfaces connected to the first central optical module, with the timing duration being the second timing duration; obtain the LLDP neighbor device information received by each downlink interface among the multiple downlink interfaces connected to the second central optical module within the second timing duration.

[0013] Since the two downlink interfaces corresponding to the same wavelength in the first and second central optical modules receive the same information, to avoid mutual interference, the multiple downlink interfaces connected to the second central optical module are shut down during the process of acquiring the LLDP neighbor device information received by each downlink interface connected to the first central optical module. Correspondingly, during the process of acquiring the LLDP neighbor device information received by each downlink interface connected to the second central optical module, the multiple downlink interfaces connected to the first central optical module are shut down.

[0014] Based on the method provided in the first aspect, in one possible implementation, the process of determining the neighbor corresponding to each downlink interface among the multiple downlink interfaces connected to the first central optical module and the neighbor corresponding to each downlink interface among the multiple downlink interfaces connected to the second central optical module can be as follows: the routing and switching device sends a neighbor acquisition request to the network management device, such as the network cloud engine (NCE). The neighbor acquisition request carries the identifier of each downlink interface among the multiple downlink interfaces connected to the first central optical module and the identifier of each downlink interface among the multiple downlink interfaces connected to the second central optical module. The routing and switching device receives the neighbor acquisition result from the network management device. The neighbor acquisition result carries the identifier of the neighbor corresponding to each downlink interface among the multiple downlink interfaces connected to the first central optical module and the identifier of the neighbor corresponding to each downlink interface among the multiple downlink interfaces connected to the second central optical module.

[0015] In this embodiment, the routing and switching device can also be connected to the NCE. The NCE manages all devices in the optical communication system. In this scenario, the NCE also stores the network topology, based on which the routing and switching device can determine the neighbors of each downlink interface among the multiple downlink interfaces connected to the first central optical module and the second central optical module from the NCE.

[0016] Based on the method provided in the first aspect, in one possible implementation, the process of determining at least one Ethernet link aggregation interface based on the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the first central optical module and the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the second central optical module can be as follows: determining a first downlink interface from the multiple downlink interfaces connected to the first central optical module, and determining a second downlink interface from the multiple downlink interfaces connected to the second central optical module, wherein the neighbors corresponding to the first downlink interface and the neighbors corresponding to the second downlink interface are both target access devices, and the target access device is one of multiple access devices; in response to the fact that the number of the first downlink interface and the second downlink interface is both one, generating a target Ethernet link aggregation interface identifier, and establishing a correspondence between the target Ethernet link aggregation interface identifier and the first downlink interface and the second downlink interface.

[0017] When there is only one first downlink interface and one second downlink interface, it indicates that there is one first downlink interface among the downlink interfaces connected to the first central optical module, and one second downlink interface among the downlink interfaces connected to the second central optical module. These two downlink interfaces have the same neighbor, and both are target neighbor devices. In this scenario, these two downlink interfaces can be automatically aggregated into a single Ethernet link aggregation interface.

[0018] Based on the method provided in the first aspect, in one possible implementation, after determining the first downlink interface from the multiple downlink interfaces connected to the first central optical module and determining the second downlink interface from the multiple downlink interfaces connected to the second central optical module, in response to the condition that the number of the first downlink interface and the second downlink interface are not both one, a fault notification message is reported, which is used to indicate the downlink interface that has a fault.

[0019] When the number of the first downlink interface and the second downlink interface does not both meet the condition of one, it indicates that there is a faulty downlink interface among the downlink interfaces connected to the first central optical module and / or the second central optical module. At this time, a fault notification message can be reported to network management equipment such as NCE so that the user can intervene to repair the faulty downlink interface.

[0020] Based on the method provided in the first aspect, in one possible implementation, at least one Ethernet link aggregation interface includes a first Ethernet link aggregation interface, the neighbors corresponding to the downlink interfaces in the first Ethernet link aggregation interface are all first access devices, the first access device is one of a plurality of access devices, and the first Ethernet link aggregation interface includes a third downlink interface.

[0021] In this scenario, after determining at least one Ethernet link aggregation interface based on the neighbors corresponding to each downlink interface in the multiple downlink interfaces connected to the first central optical module and the neighbors corresponding to each downlink interface in the multiple downlink interfaces connected to the second central optical module, if the third downlink interface does not receive LLDP neighbor device information from the first access device within the first reference time period before the current time and closest to the current time, then the third downlink interface will be deleted from the first Ethernet link aggregation interface.

[0022] The first reference duration can also be called the neighbor aging duration. If, within the first reference duration closest to the current time, the third downlink interface has not received LLDP neighbor device information from the first access device, it indicates that the first access device has not conducted optical communication with the third downlink interface in the recent period. In this case, it can be considered that the neighbor corresponding to the third downlink interface has been deleted, and the third downlink interface can be directly deleted from the first Ethernet link aggregation interface to update the Ethernet link aggregation interface.

[0023] Based on the method provided in the first aspect, in one possible implementation, at least one Ethernet link aggregation interface includes a second Ethernet link aggregation interface, the neighbors corresponding to the downlink interfaces in the second Ethernet link aggregation interface are all second access devices, the second access device is one of a plurality of access devices, and the second Ethernet link aggregation interface includes a fourth downlink interface.

[0024] In this scenario, based on the neighbors corresponding to each downlink interface in the multiple downlink interfaces connected to the first central optical module and the neighbors corresponding to each downlink interface in the multiple downlink interfaces connected to the second central optical module, after determining at least one Ethernet link aggregation interface, in response to the neighbor corresponding to the fourth downlink interface changing from the second access device to the third access device, the fourth downlink interface is deleted from the second Ethernet link aggregation interface and added to the third Ethernet link aggregation interface. The neighbors corresponding to the downlink interfaces in the third Ethernet link aggregation interface are all third access devices, and the third access device is one of the multiple access devices.

[0025] When the neighbor corresponding to the fourth downlink interface changes from the second access device to the third access device, the fourth downlink interface needs to be deleted from the original second Ethernet link aggregation interface and added to the new third Ethernet link aggregation interface. This is to update the Ethernet link aggregation interface.

[0026] Based on the method provided in the first aspect, in one possible implementation, the routing and switching device is configured with a primary / backup auto-negotiation command, or the routing and switching device is connected to a network management device and the network management device is configured with a primary / backup auto-negotiation function option.

[0027] In this scenario, in response to receiving an enable operation for a primary / backup auto-negotiation command or an enable operation for a primary / backup auto-negotiation function option, at every second reference time interval, the operation of determining at least one Ethernet link aggregation interface is performed based on the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the first central optical module and the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the second central optical module.

[0028] Users can choose whether to automatically generate Ethernet link aggregation interfaces using the solution provided in this application embodiment, either through the primary / backup auto-negotiation command or the primary / backup auto-negotiation function option in the network management device. This offers high flexibility.

[0029] Based on the method provided in the first aspect, in one possible implementation, the routing switching device is a central switch; the central switch includes multiple downlink interfaces that are electrically connected to the first central optical module and multiple downlink interfaces that are electrically connected to the second central optical module.

[0030] In other words, the first central optical module and the second central optical module are two central optical modules plugged into the same central switch. This scenario can be called a standalone scenario.

[0031] Based on the method provided in the first aspect, in one possible implementation, the routing switching device is obtained by stacking multiple central switches, including a first central switch and a second central switch; the first central switch includes multiple downlink interfaces that are electrically connected to a first central optical module, and the second central switch includes multiple downlink interfaces that are electrically connected to a second central optical module.

[0032] In other words, the first central optical module and the second central optical module are two central optical modules plugged into different central switches in a set of stacked switches. This scenario can also be called a stacked scenario.

[0033] Secondly, a routing and switching device in an optical communication system is provided, the routing and switching device having the function of implementing the method behavior of determining the Ethernet link aggregation interface in the optical communication system as described in the first aspect above. The routing and switching device includes at least one module for implementing the method for determining the Ethernet link aggregation interface in the optical communication system provided in the first aspect above.

[0034] Thirdly, a routing and switching device in an optical communication system is provided. The routing and switching device includes a processor and a memory. The memory stores a program that supports the routing and switching device in executing the method for determining the Ethernet link aggregation interface in the optical communication system provided in the first aspect, and stores data related to implementing the method for determining the Ethernet link aggregation interface in the optical communication system provided in the first aspect. The processor is configured to execute the program stored in the memory.

[0035] Fourthly, a computer-readable storage medium is provided, wherein instructions are stored therein, which, when executed on a computer, cause the computer to perform the method described in the first aspect for determining an Ethernet link aggregation interface in an optical communication system.

[0036] Fifthly, a computer program product containing instructions is provided, which, when run on a computer, causes the computer to execute the method described in the first aspect for determining the Ethernet link aggregation interface in an optical communication system.

[0037] The technical effects achieved by the corresponding technical means in the second to fifth aspects mentioned above are similar, and will not be repeated here. Attached Figure Description

[0038] Figure 1 This is a schematic diagram of an implementation environment provided in an embodiment of this application;

[0039] Figure 2 This is a schematic diagram illustrating the connection relationship between a downlink interface, a central optical module, an intermediate device, and an access-side optical module, provided in an embodiment of this application.

[0040] Figure 3 This is a schematic diagram of the architecture of an optical communication system provided in an embodiment of this application;

[0041] Figure 4 This is a schematic diagram of another optical communication system architecture provided in an embodiment of this application;

[0042] Figure 5 This is a schematic diagram of another optical communication system architecture provided in an embodiment of this application;

[0043] Figure 6 This is a flowchart of a method for determining an Ethernet link aggregation interface in an optical communication system, provided in an embodiment of this application.

[0044] Figure 7 This is a schematic diagram of the structure of a routing and switching device in an optical communication system provided in an embodiment of this application;

[0045] Figure 8 This is a schematic diagram of the structure of a communication device provided in an embodiment of this application;

[0046] Figure 9 This is a schematic diagram of the structure of another communication device provided in an embodiment of this application;

[0047] Figure 10 This is a schematic diagram of the structure of another communication device provided in an embodiment of this application. Detailed Implementation

[0048] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.

[0049] To facilitate understanding, some of the terms used in the embodiments of this application will be introduced first.

[0050] Wavelength division multiplexing (WDM): commonly known as wavelength division, it typically utilizes multiple wavelengths to achieve multiple tasks. WDM is a data transmission technology in optical communication systems (also known as optical networking systems), where different optical signals are carried by different colors (i.e., wavelengths or frequencies), and multiple optical signals of different wavelengths are multiplexed and transmitted on a single optical fiber.

[0051] Passive optical network (PON): As an emerging broadband access fiber optic technology covering the last mile, it does not require node equipment at the optical branch point; only a simple optical splitter needs to be installed. Therefore, it has advantages such as saving optical cable resources, sharing bandwidth resources, saving data center investment, high equipment security, fast network construction speed, and low overall network construction cost. The intermediate device in the embodiments of this application is a passive device.

[0052] Passive Ethernet Network (PEN): PEN is a passive all-optical campus network solution based on passive technology (hereinafter referred to as the PEN passive Ethernet all-optical solution). The PEN passive Ethernet all-optical solution is based on the mainstream Ethernet protocol and achieves a passive data transmission network architecture that eliminates the need for a low-voltage equipment room through all-fiber media. Ethernet is the mainstream protocol in the market due to its advantages such as security, reliability, and flexible software-defined networking (SDN) characteristics; currently, over 95% of campuses use Ethernet networks. Meanwhile, the PEN passive Ethernet all-optical solution benefits from the long transmission distance and splitting capabilities of optical fibers, making it suitable for point-to-multipoint network coverage in densely populated room scenarios such as education and healthcare. The optical communication system involved in the embodiments of this application is a PEN-based optical communication system.

[0053] The implementation environment involved in the embodiments of this application will be described next.

[0054] Figure 1This is a schematic diagram of an implementation environment provided in an embodiment of this application. The implementation environment includes an optical communication system, which is a PEN-based optical communication system. Figure 1 As shown, the optical communication system includes routing and switching equipment, intermediate equipment (also known as passive aggregation modules or PEN passive aggregation modules), and access equipment. The routing and switching equipment is connected to the intermediate equipment via optical fiber, and the intermediate equipment is connected to the access equipment via optical fiber.

[0055] The routing and switching equipment can be a single central switch or a group of central switches stacked together. The access equipment can be an access switch or a Wi-Fi access point (AP).

[0056] Continue to refer to Figure 1 Routing and switching equipment includes multiple downlink interfaces, each corresponding to a different wavelength. For example... Figure 1 As shown, at least one central optical module is inserted into the routing and switching equipment. Figure 1 Taking a central optical module as an example, each central optical module establishes an electrical connection with a set of downlink interfaces among multiple downlink interfaces. Each access device has an access-side optical module (also called a remote optical module), which establishes an electrical connection with the uplink interface of the access device. Each access-side optical module is connected to an intermediate device via optical fiber, and each intermediate device is connected to a central optical module via optical fiber, thereby realizing optical communication between these multiple access devices and the routing and switching equipment.

[0057] Figure 2 This is a schematic diagram illustrating the connection relationship between a downlink interface, a central optical module, an intermediate device, and an access-side optical module, as provided in an embodiment of this application. Figure 2 The following explanation uses a central optical module inserted into a routing and switching device as an example.

[0058] Continue to refer to Figure 2 The routing and switching equipment includes two sets of downlink interfaces. The first set includes downlink interfaces 1 to 8, and the second set includes downlink interfaces 9 to 16. Each downlink interface (1 to 16) corresponds to one downlink wavelength and one uplink wavelength. For example, downlink interface 1 corresponds to a downlink wavelength of 1271nm, meaning the downlink traffic sent by downlink interface 1 is converted into an optical signal with a wavelength of 1271nm and transmitted. The uplink wavelength corresponding to downlink interface 1 is 1431nm, meaning the uplink traffic received by downlink interface 1 is converted from an optical signal with a wavelength of 1431nm. The wavelengths corresponding to other downlink interfaces can be found in [reference needed]. Figure 2 Examples will not be provided here.

[0059] Continue to refer to Figure 2 The central optical module includes 16 uplink interfaces, which are divided into two groups. The first group of uplink interfaces is labeled X-1, and the second group of uplink interfaces is labeled X-2. The first group of uplink interfaces X-1 is electrically connected to the first group of downlink interfaces in the routing and switching equipment, and the second group of uplink interfaces X-2 is electrically connected to the second group of downlink interfaces in the routing and switching equipment.

[0060] The central optical module also includes a downlink interface corresponding to the first set of uplink interfaces X-1. Figure 2 (not shown in the image), and a downlink interface corresponding to the second set of uplink interfaces X-2 (not shown in the image), and a downlink interface (not shown in the image). Figure 2 (Not shown in the image). The intermediate device includes two uplink interfaces and a set of downlink interfaces corresponding to each of the two uplink interfaces, with each set of downlink interfaces including eight downlink interfaces.

[0061] Continue to refer to Figure 2 Each downlink interface in the central optical module is connected to an uplink interface in an intermediate device via optical fiber, forming an uplink. For example... Figure 2 As shown, two uplinks are formed between the central optical module and the intermediate equipment, labeled Uplink 1 and Uplink 2 respectively. For example, each uplink may contain only one optical fiber. In this case, the fiber is used not only to transmit uplink optical signals but also to transmit downlink optical signals; that is, the uplink uses a single-fiber bidirectional (BIDI) configuration.

[0062] Continue to refer to Figure 2 The first set of downlink interfaces in the intermediate equipment are labeled 1-1 to 1-8, and the second set of downlink interfaces in the intermediate equipment are labeled 2-1 to 2-8. Each downlink interface in the intermediate equipment is connected to an access-side optical module via optical fiber, and each access-side optical module is plugged into an access device. Figure 2 (The access device is not shown in the diagram). The eight access-side optical modules connected to the first set of downlink interfaces in the intermediate device are labeled A1 to A8, and the eight access-side optical modules connected to the second set of downlink interfaces in the intermediate device are labeled A9 to A16. That is, downlink interface 1-1 of the intermediate device is connected to access-side optical module A1 via optical fiber, downlink interface 1-2 of the intermediate device is connected to access-side optical module A2 via optical fiber, and so on, with downlink interfaces 2-8 of the intermediate device connected to access-side optical module A16 via optical fiber.

[0063] In this example, the number of optical fibers between each downlink interface in the intermediate device and the access-side optical module can be two. One of these two optical fibers is used to transmit uplink optical signals, and the other optical fiber is used to transmit downlink optical signals. That is, the downlink interface of the intermediate device and the access-side optical module adopt a two-fiber bidirectional connection.

[0064] Access-side optical module A1 is used to receive optical signals with a wavelength of 1271nm and to transmit optical signals with a wavelength of 1431nm. In other words, the downlink wavelength corresponding to access-side optical module A1 is 1271nm, and the corresponding uplink wavelength is 1431nm. Based on this, it can be seen that the downlink wavelength corresponding to downlink interface 1 and access-side optical module A1 in the routing switching device is 1271nm, and the corresponding uplink wavelength is 1431nm. For explanations of other access-side optical modules A2 to A8, please refer to access-side optical module A1; they will not be repeated here.

[0065] The following example, using uplink 1, illustrates this point. Figure 1 The communication principle of the optical communication system shown.

[0066] For example, a routing and switching device sends downlink traffic to an access device. The process of sending downlink traffic includes the following steps:

[0067] (1) The first set of uplink interfaces X-1 in the central optical module converts the downlink traffic from downlink interface 1 into a downlink optical signal with a wavelength of 1271nm, converts the downlink traffic from downlink interface 2 into a downlink optical signal with a wavelength of 1291nm, and so on, converts the downlink traffic from downlink interface 8 into a downlink optical signal with a wavelength of 1411nm, and aggregates these 8 downlink optical signals of different wavelengths into a downlink aggregated optical signal, so as to send the downlink aggregated optical signal to the intermediate device through uplink 1. For ease of explanation later, the downlink aggregated optical signal sent by the central optical module is referred to as the first downlink aggregated optical signal.

[0068] (2) When the intermediate device receives the second downlink converged optical signal from the central optical module via uplink 1, it divides the second downlink converged optical signal according to wavelength to obtain multiple downlink optical signals. Different downlink optical signals correspond to different wavelengths. The wavelengths of the multiple downlink optical signals after division are 1271nm, 1291nm, ..., 1411nm, respectively. The intermediate device sends a downlink optical signal with a wavelength of 1271nm to the access side optical module A1 through downlink interface 1-1, sends a downlink optical signal with a wavelength of 1291nm to the access side optical module A2 through downlink interface 1-2, and so on, sending a downlink optical signal with a wavelength of 1411nm to the access side optical module A8 through downlink interface 1-8.

[0069] (3) After receiving a downlink optical signal, access-side optical module A1 converts the received downlink optical signal into an electrical signal and sends the converted electrical signal to the access device connected to it. Similarly, after receiving a downlink optical signal, access-side optical module A2 converts the received downlink optical signal into an electrical signal and sends the converted electrical signal to the access device connected to it. Likewise, after receiving a downlink optical signal, access-side optical module A8 converts the received downlink optical signal into an electrical signal and sends the converted electrical signal to the access device connected to it.

[0070] Based on the aforementioned downlink traffic transmission process, the routing and switching device sends downlink traffic to the access device connected to the access side optical module A1 through downlink interface 1, sends downlink traffic to the access device connected to the access side optical module A2 through downlink interface 2, and so on, sending downlink traffic to the access device connected to the access side optical module A8 through downlink interface 8.

[0071] For example, when an access device sends uplink traffic to a routing and switching device, the uplink traffic sending process includes the following steps:

[0072] (1) Access-side optical module A1 converts the uplink traffic sent by the access device connected to it into an uplink optical signal with a wavelength of 1431nm, and sends the converted uplink optical signal to the intermediate device. Access-side optical module A2 converts the uplink traffic sent by the access device connected to it into an uplink optical signal with a wavelength of 1451nm, and sends the converted uplink optical signal to the intermediate device. Similarly, access-side optical module A8 converts the uplink traffic sent by the access device connected to it into an uplink optical signal with a wavelength of 1571nm, and sends the converted uplink optical signal to the intermediate device.

[0073] (2) After receiving the uplink optical signals from the access side optical modules A1 to A8, the intermediate device aggregates the eight received uplink optical signals into one uplink aggregated optical signal, and sends the uplink aggregated optical signal to the central optical module through uplink 1. For ease of explanation later, the uplink aggregated optical signal sent by the intermediate device is referred to as the first uplink aggregated optical signal.

[0074] (3) After receiving the second uplink converged optical signal from the intermediate device via uplink 1, the central optical module divides the second uplink converged optical signal according to wavelength to obtain multiple uplink optical signals. Different uplink optical signals correspond to different wavelengths. The wavelengths of the divided uplink optical signals are 1431nm, 1451nm, ..., 1571nm. The central optical module sends an uplink optical signal with a wavelength of 1431nm to downlink interface 1, an uplink optical signal with a wavelength of 1451nm to downlink interface 2, and so on, sending an uplink optical signal with a wavelength of 1571nm to downlink interface 8.

[0075] Based on the above uplink traffic transmission process, the access device connected to the access side optical module A1 sends uplink traffic to the downlink interface 1 in the routing switching device, the access device connected to the access side optical module A2 sends uplink traffic to the downlink interface 2 in the routing switching device, and so on, the access device connected to the access side optical module A8 sends uplink traffic to the downlink interface 8 in the routing switching device.

[0076] It should be understood that, considering the loss of optical signals during transmission over long distances in optical fibers, the optical signals transmitted by the central optical module and received by intermediate devices are not entirely the same, and the optical signals transmitted by intermediate devices are not entirely the same as those received by the access-side optical module. Therefore, in this embodiment, terms such as 'first' and 'second' are used to distinguish between the transmitted and received optical signals. Simply put, the aforementioned first downlink converged optical signal becomes the second downlink converged optical signal after transmission through the optical fiber due to loss, and the aforementioned first uplink converged optical signal becomes the second uplink converged optical signal after transmission through the optical fiber due to loss.

[0077] exist Figure 1 and Figure 2 In the scenario shown, the intermediate device is connected to a central optical module via fiber optic cable. In other scenarios, a dual-link backup scheme (also known as a passive aggregation dual-uplink scheme) is implemented between the routing and switching equipment and the intermediate device. That is, for any intermediate device, it is connected to each of the two central optical modules inserted in the routing and switching equipment via fiber optic cable. The connection relationship between the intermediate device and either of these two central optical modules can be referenced... Figure 2 The method provided in this application embodiment is applied to the scenario of implementing a dual-link backup scheme between the aforementioned routing and switching equipment and intermediate equipment.

[0078] Additionally, it should be noted that, Figure 2This is a schematic diagram illustrating the connection relationship between a central optical module, intermediate devices, and access-side optical modules. Optionally, the number of uplink interfaces in the central optical module can be more or fewer; in such scenarios, the connection relationship between the central optical module, intermediate devices, and access-side optical modules can also be referenced. Figure 2 This application does not provide specific examples of this in its embodiments.

[0079] The following sections will describe the optical communication system, the method and apparatus for determining the Ethernet link aggregation interface in the optical communication system, and related products provided in the embodiments of this application.

[0080] Figure 3 This is a schematic diagram of the architecture of an optical communication system provided in an embodiment of this application. Figure 3 As shown, the optical communication system includes a routing and switching device, a first central optical module, a second central optical module, intermediate devices, multiple access-side optical modules, and multiple access devices. The routing and switching device includes multiple downlink interfaces electrically connected to the first central optical module and multiple downlink interfaces electrically connected to the second central optical module. Each access device includes an uplink interface electrically connected to one access-side optical module. The first and second central optical modules are respectively connected to the intermediate devices via optical fibers, and each access-side optical module is connected to the intermediate devices via optical fibers.

[0081] Among them, the multiple downlink interfaces connected to the first central optical module correspond to multiple wavelengths, the multiple downlink interfaces connected to the second central optical module also correspond to these multiple wavelengths, and the multiple access-side optical modules also correspond to these multiple wavelengths.

[0082] These multiple wavelengths include multiple downlink wavelengths and multiple uplink wavelengths. For an explanation of downlink and uplink wavelengths, please refer to the preceding content; it will not be repeated here.

[0083] In other words, the multiple downlink interfaces connected to the first central optical module correspond one-to-one with the multiple access-side optical modules, and the multiple downlink interfaces connected to the second central optical module also correspond one-to-one with these multiple access-side optical modules. The correspondence between one downlink interface and one access-side optical module can be understood as: optical communication occurs between the downlink interface and the access-side optical module.

[0084] For example, both the first central optical module and the second central optical module are Figure 2 The central optical module shown, and multiple access-side optical modules are Figure 2 The access-side optical modules A1 to A8 are shown. That is, the first central optical module is connected to 16 downlink interfaces, the second central optical module is connected to 16 downlink interfaces, and the multiple access-side optical modules are 16 access-side optical modules.

[0085] Among the 16 downlink interfaces connected to the first central optical module, the downlink wavelengths corresponding to the first group of downlink interfaces are as follows: Figure 2 The wavelengths shown are 1271nm, 1291nm, ..., 1411nm. The second group of downlink interfaces among the 16 downlink interfaces connected to the first central optical module also corresponds to the following downlink wavelengths: Figure 2 The wavelengths shown are 1271nm, 1291nm, ..., 1411nm. The downlink wavelengths corresponding to the first group of downlink interfaces among the 16 downlink interfaces connected to the second central optical module are respectively... Figure 2 The wavelengths shown are 1271nm, 1291nm, ..., 1411nm. The second group of downlink interfaces among the 16 downlink interfaces connected to the second central optical module also corresponds to the following downlink wavelengths: Figure 2 The downlink wavelengths corresponding to the 1271nm, 1291nm, ..., 1411nm wavelengths shown are respectively the downlink wavelengths of the access side optical modules A1-A8. Figure 2 The downlink wavelengths corresponding to the 1271nm, 1291nm, ..., 1411nm wavelengths shown are respectively the downlink wavelengths of the access side optical modules A9-A16. Figure 2 The nm wavelengths shown are 1271nm, 1291nm, ..., 1411nm.

[0086] Accordingly, the uplink wavelengths corresponding to the first group of downlink interfaces among the 16 downlink interfaces connected to the first central optical module are as follows: Figure 2 The wavelengths shown are 1431nm, 1451nm, ..., 1571nm. The uplink wavelengths corresponding to the second group of downlink interfaces among the 16 downlink interfaces connected to the first central optical module are also respectively... Figure 2 The wavelengths shown are 1431nm, 1451nm, ..., 1571nm. The uplink wavelengths corresponding to the first group of downlink interfaces among the 16 downlink interfaces connected to the second central optical module are... Figure 2 The wavelengths shown are 1431nm, 1451nm, ..., 1571nm. The uplink wavelengths corresponding to the second group of downlink interfaces among the 16 downlink interfaces connected to the second central optical module are also respectively... Figure 2 The wavelengths shown are 1431nm, 1451nm, ..., 1571nm. The uplink wavelengths corresponding to the access-side optical modules A1-A8 are respectively... Figure 2 The 1431nm, 1451nm, ..., 1571nm wavelengths shown correspond to the uplink wavelengths of the access side optical modules A9-A16, respectively. Figure 2 The nm wavelengths shown are 1431nm, 1451nm, ..., 1571nm.

[0087] For ease of explanation, the interface in the intermediate device that connects to the first central optical module is referred to as the first interface, and the interface in the intermediate device that connects to the second central optical module is referred to as the second interface. Since the intermediate device sends an uplink converged optical signal to both the first and second central optical modules after receiving the uplink converged optical signal, the first and second interfaces are always in the on state, that is, in the emitting state.

[0088] based on Figure 2 As shown in the connection diagram, the first interface actually includes two uplink interfaces, which are used to connect to the two downlink interfaces in the first central optical module, respectively, to form uplink 1 and uplink 2 between the intermediate device and the first central optical module. Similarly, the second interface actually includes two uplink interfaces, which are used to connect to the two downlink interfaces in the second central optical module, respectively, to form uplink 1 and uplink 2 between the intermediate device and the second central optical module.

[0089] Thus, after receiving uplink optical signals from multiple access-side optical modules A1 to A16, the intermediate device aggregates these uplink optical signals into a single uplink aggregated optical signal. For ease of explanation, this aggregated uplink aggregated optical signal is referred to as uplink aggregated optical signal 1. Uplink aggregated optical signal 1 is copied, resulting in two copies. Each copy is then sent to the first central optical module and the second central optical module via two uplink links 1. One central optical module continues to forward the uplink aggregated optical signal received via uplink link 1, while the other central optical module does not continue to forward the uplink aggregated optical signal received via uplink link 1.

[0090] Simultaneously, the intermediate equipment aggregates multiple uplink optical signals from access-side optical modules A9 to A16 into a single uplink aggregated optical signal. For ease of explanation, this aggregated uplink aggregated optical signal is referred to as uplink aggregated optical signal 2. Uplink aggregated optical signal 2 is copied, resulting in two copies. These copies are then transmitted to the first central optical module and the second central optical module respectively via two uplink links 2. One central optical module continues to forward the uplink aggregated optical signal received via uplink link 2, while the other central optical module does not continue to forward the uplink aggregated optical signal received via uplink link 2.

[0091] Furthermore, to facilitate the routing and switching equipment in sending downlink traffic to the access-side optical modules, two downlink interfaces with the same wavelength connected to the first and second central optical modules are configured as an Ethernet link aggregation (Eth-Trunk) interface. One downlink interface (i.e., the member interface) within this Ethernet link aggregation interface is designated as the primary interface, and the other as the backup interface. Thus, when the routing and switching equipment sends downlink traffic to an access-side optical module, it selects one Ethernet link aggregation interface from among multiple Ethernet link aggregation interfaces, and then further selects a primary interface from the selected interface to send the downlink traffic.

[0092] For example, the downlink wavelengths corresponding to the first group of downlink interfaces among the 16 downlink interfaces connected to the first central optical module are as follows: Figure 2 The wavelengths shown are 1271nm, 1291nm, ..., 1411nm. The downlink wavelengths corresponding to the first group of downlink interfaces among the 16 downlink interfaces connected to the second central optical module are respectively... Figure 2 The wavelengths shown are 1271nm, 1291nm, ..., 1411nm. For the first group of downlink interfaces among the 16 downlink interfaces connected to the first central optical module and the first group of downlink interfaces among the 16 downlink interfaces connected to the second central optical module, two downlink interfaces with a corresponding downlink wavelength of 1271nm are configured as one Ethernet link aggregation interface; two downlink interfaces with a corresponding downlink wavelength of 1291nm are configured as one Ethernet link aggregation interface, and so on, with two downlink interfaces with a corresponding downlink wavelength of 1411nm configured as one Ethernet link aggregation interface. Thus, for the first group of downlink interfaces among the 16 downlink interfaces connected to the first central optical module and the first group of downlink interfaces among the 16 downlink interfaces connected to the second central optical module, eight Ethernet link aggregation interfaces are obtained. The downlink wavelengths corresponding to these eight Ethernet link aggregation interfaces are as follows: Figure 2 The eight Ethernet link aggregation interfaces shown (1271nm, 1291nm, ..., 1411nm) are used for optical communication with access-side optical modules A1 to A8, respectively. When the routing and switching equipment needs to send downlink traffic to access-side optical module A1, it selects the Ethernet link aggregation interface with a downlink wavelength of 1271nm from these eight interfaces, and then selects the main interface from the selected interface to send the downlink traffic.

[0093] The second group of downlink interfaces among the 16 downlink interfaces connected to the first central optical module and the second group of downlink interfaces among the 16 downlink interfaces connected to the second central optical module can also be aggregated in the same way to obtain 8 Ethernet link aggregation interfaces. These 8 Ethernet link aggregation interfaces are used to conduct optical communication with the access side optical modules A9 to A16 respectively.

[0094] Table 1 is a comparison between an Ethernet link aggregation interface in this embodiment and an Ethernet link aggregation interface in the Ethernet protocol (i.e., a traditional Ethernet link aggregation interface).

[0095] Table 1

[0096]

[0097]

[0098] Based on the comparison shown in Table 1, it can be seen that in the passive aggregation dual uplink scheme, after configuring the Ethernet link aggregation interface, it is necessary to further configure which downlink interface in the Ethernet link aggregation interface is the main interface and which downlink interface is the backup interface, and then set the state of the main interface to the up state and the state of the backup interface to the down state.

[0099] Understandably, for any downlink interface in a routing and switching device, if the downlink interface is in an open state, it will send downlink traffic to the central optical module and forward uplink traffic from the central optical module. Conversely, if the downlink interface is in a closed state, it will stop sending downlink traffic to the central optical module and simultaneously discard uplink traffic from the central optical module.

[0100] In addition, for any downlink interface in the routing and switching equipment, an indicator light is also configured for that downlink interface. When the downlink interface is in the on state, the indicator light corresponding to that downlink interface is in an illuminated state (i.e., lit). Correspondingly, when the downlink interface is in the off state, the indicator light corresponding to that downlink interface is in an off state (i.e., off). Therefore, in this embodiment, controlling a downlink interface to be off can also be referred to as controlling the downlink interface to be off (i.e., not illuminated).

[0101] The method provided in this application is applied to the scenario of configuring Ethernet link aggregation interfaces described above. Using the method provided in this application, the routing and switching device can automatically generate Ethernet link aggregation interfaces based on the neighbors corresponding to each downlink interface in the downlink interfaces connected to the first central optical module and the second central optical module. This method eliminates the need for manual configuration of Ethernet link aggregation interfaces by the user, thus achieving high configuration efficiency. Furthermore, when the network topology of the optical communication system changes, such as when the neighbors corresponding to the downlink interfaces change, the Ethernet link aggregation interfaces can be quickly updated based on the changed network topology, again eliminating the need for manual updates by the user. This meets the usability requirements of PEN networking.

[0102] in addition, Figure 3The routing and switching device shown can be a single central switch or a group of central switches stacked together. The following sections will discuss these two scenarios. Figure 3 The optical communication system shown will be further explained.

[0103] Figure 4 This is a schematic diagram of the architecture of another optical communication system provided in an embodiment of this application. For example... Figure 4 As shown, the routing and switching device is a central switch, which includes multiple downlink interfaces electrically connected to the first central optical module and multiple downlink interfaces electrically connected to the second central optical module. In other words, the first central optical module and the second central optical module are two central optical modules plugged into the same central switch. Figure 4 The scene shown can also be called a single-player scene.

[0104] Figure 5 This is a schematic diagram of the architecture of another optical communication system provided in an embodiment of this application. For example... Figure 5 As shown, the routing and switching equipment is composed of multiple central switches stacked together, including a first central switch and a second central switch. The first central switch includes multiple downlink interfaces that are electrically connected to a first central optical module, and the second central switch includes multiple downlink interfaces that are electrically connected to a second central optical module. In other words, the first central optical module and the second central optical module are two central optical modules inserted into different central switches in a set of stacked switches. Figure 5 The scene shown can also be called a stacked scene.

[0105] Stacking technology can be understood as virtualizing multiple central switches into a single central switch, thereby simplifying network deployment and reducing network maintenance workload. Stacking offers numerous advantages, such as improved reliability, expanded interface quantity, increased bandwidth, and simplified network topology.

[0106] Furthermore, in scenarios where the routing and switching equipment consists of multiple stacked central switches, one of these central switches serves as the master switch. The method for determining the Ethernet link aggregation interface provided in this application embodiment is applied to this master switch. This application embodiment does not limit the implementation method for selecting which central switch to serve as the master switch.

[0107] The methods, apparatus, and related products provided in the embodiments of this application will be described in detail below.

[0108] Figure 6 This is a flowchart illustrating a method for determining the Ethernet link aggregation interface in an optical communication system, as provided in an embodiment of this application. This method is applied to... Figures 3 to 5Routing and switching equipment in any of the optical communication systems shown. For example... Figure 6 As shown, the method includes the following steps.

[0109] Step 601: The routing and switching device determines the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the first central optical module and the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the second central optical module. The neighbors corresponding to each downlink interface refer to the access devices that communicate with this downlink interface.

[0110] In some embodiments, the routing switching device determines the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the first central optical module and the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the second central optical module in the following ways: obtaining the Link Layer Discovery Protocol (LLDP) neighbor device information received by each downlink interface among the multiple downlink interfaces connected to the first central optical module; obtaining the LLDP neighbor device information received by each downlink interface among the multiple downlink interfaces connected to the second central optical module; wherein, the LLDP neighbor device information received by each downlink interface is used to indicate the access device communicating with this downlink interface.

[0111] In this embodiment, for any access device communicating optically with the routing and switching device, the access device can periodically advertise its LLDP neighbor device information to the routing and switching device. The LLDP neighbor device information advertised by the access device typically includes the access device's identifier, such as its media access control (MAC) address. The LLDP neighbor device information advertised by the access device arrives at the routing and switching device through a downlink interface, and uplink traffic sent by different access devices arrives at the routing and switching device through different downlink interfaces. Based on this, the routing and switching device can identify the neighbor corresponding to each downlink interface according to the LLDP neighbor device information received at each downlink interface.

[0112] For example, the implementation of obtaining the LLDP neighbor device information received by each downlink interface among the multiple downlink interfaces connected to the first central optical module can be as follows: close the multiple downlink interfaces connected to the second central optical module, and start timing from the time the multiple downlink interfaces connected to the second central optical module are closed, with the timing duration being a first timing duration; obtain the LLDP neighbor device information received by each downlink interface among the multiple downlink interfaces connected to the first central optical module within the first timing duration.

[0113] Accordingly, the implementation method for obtaining the LLDP neighbor device information received by each downlink interface among the multiple downlink interfaces connected to the second central optical module can be as follows: close the multiple downlink interfaces connected to the first central optical module, and start timing when closing the multiple downlink interfaces connected to the first central optical module, with the timing duration being the second timing duration; obtain the LLDP neighbor device information received by each downlink interface among the multiple downlink interfaces connected to the second central optical module within the second timing duration.

[0114] Since the two downlink interfaces corresponding to the same access-side optical module in the first and second central optical modules receive the same information, to avoid mutual interference, the multiple downlink interfaces connected to the second central optical module are shut down during the process of acquiring the LLDP neighbor device information received by each downlink interface connected to the first central optical module. Correspondingly, during the process of acquiring the LLDP neighbor device information received by each downlink interface connected to the second central optical module, the multiple downlink interfaces connected to the first central optical module are shut down.

[0115] In this embodiment, both the first timing duration and the second timing duration are pre-configured durations, and the first timing duration and the second timing duration can be the same or different. This application does not limit this.

[0116] For example, if both the first and second timing durations are 6 seconds, the routing and switching device can first shut down multiple downlink interfaces connected to the second central optical module. Within 6 seconds of shutting down these interfaces, it can then acquire the LLDP neighbor device information received by each downlink interface connected to the first central optical module. Similarly, it can shut down multiple downlink interfaces connected to the first central optical module and, within 6 seconds of shutting down these interfaces, acquire the LLDP neighbor device information received by each downlink interface connected to the second central optical module.

[0117] The implementation method for the routing and switching device to shut down multiple downlink interfaces connected to the second central optical module can be as follows: the routing and switching device generates a TRIGGERDOWN command for each downlink interface connected to the second central optical module in the order of the interface numbers of the multiple downlink interfaces connected to the second central optical module, so as to shut down each downlink interface connected to the second central optical module.

[0118] Accordingly, the routing and switching device can shut down multiple downlink interfaces connected to the first central optical module by generating a TRIGGERDOWN command for each downlink interface in the order of the interface numbers of the multiple downlink interfaces connected to the first central optical module, so as to shut down each downlink interface in the multiple downlink interfaces connected to the first central optical module.

[0119] The TRIGGERDOWN instruction carries a shutdown delay time. For any downlink interface, the TRIGGERDOWN instruction for that downlink interface is used to: shut down the downlink interface, and then restart the downlink interface when the shutdown duration reaches the shutdown delay time.

[0120] Optionally, the routing and switching device can also shut down the downlink interface using other commands such as the shutdown command and start the downlink interface using the undo shut-down command. This application does not limit this.

[0121] For example, the first central optical module and the second central optical module are respectively Figure 2 The central optical module shown, and multiple access-side optical modules are Figure 2 The access-side optical modules A1 to A16 are shown. The routing and switching equipment can obtain the LLDP neighbor device information received by each downlink interface connected to the first central optical module and the second central optical module through the following four steps.

[0122] (1): Close a set of downlink interfaces connected to the first set of uplink interfaces X-1 in the first central optical module, so as to obtain the LLDP neighbor device information received by the set of downlink interfaces connected to the first set of uplink interfaces X-1 in the second central optical module.

[0123] (2): Close a set of downlink interfaces connected to the second set of uplink interfaces X-2 in the first central optical module, in order to obtain the LLDP neighbor device information received by the set of downlink interfaces connected to the second set of uplink interfaces X-2 in the second central optical module.

[0124] (3): Close a set of downlink interfaces connected to the first set of uplink interfaces X-1 in the second central optical module, in order to obtain the LLDP neighbor device information received by the set of downlink interfaces connected to the first set of uplink interfaces X-1 in the first central optical module.

[0125] (4): Close a set of downlink interfaces connected to the second set of uplink interfaces X-2 in the second central optical module, in order to obtain the LLDP neighbor device information received by the set of downlink interfaces connected to the second set of uplink interfaces X-2 in the first central optical module.

[0126] In addition, in this embodiment of the application, the routing and switching device may also obtain the LLDP neighbor device information received by each downlink interface of the multiple downlink interfaces connected to the first central optical module and the second central optical module through other means, and this embodiment of the application does not limit this.

[0127] For example, routing and switching devices can also connect to network management devices such as network cloud engines (NCEs). Network management devices are used to manage all devices in an optical communication system. In this scenario, the network management device also stores the network topology. Based on this, the routing and switching device can obtain information about the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the first and second central optical modules from the network management device, such as neighbor identifiers.

[0128] The implementation method for the routing switching device to obtain the neighbor corresponding to each downlink interface among the multiple downlink interfaces connected to the first central optical module and the second central optical module from the network management device can be as follows: The routing switching device sends a neighbor acquisition request to the network management device, such as NCE. The neighbor acquisition request carries the identifier of each downlink interface among the multiple downlink interfaces connected to the first central optical module and the identifier of each downlink interface among the multiple downlink interfaces connected to the second central optical module. The routing switching device receives the neighbor acquisition result from the network management device. The neighbor acquisition result carries the identifier of the neighbor corresponding to each downlink interface among the multiple downlink interfaces connected to the first central optical module and the identifier of the neighbor corresponding to each downlink interface among the multiple downlink interfaces connected to the second central optical module.

[0129] In addition, after the routing and switching equipment determines the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the first central optical module and the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the second central optical module, it can also establish a mapping relationship between the downlink interfaces and the neighbors for the first central optical module and the second central optical module, so as to quickly and automatically generate Ethernet aggregation link interfaces based on the mapping relationship.

[0130] Step 602: Based on the neighbors of each downlink interface in the multiple downlink interfaces connected to the first central optical module and the neighbors of each downlink interface in the multiple downlink interfaces connected to the second central optical module, determine at least one Ethernet link aggregation interface. Each Ethernet link aggregation interface includes one downlink interface connected to the first central optical module and one downlink interface connected to the second central optical module. The neighbors of the two downlink interfaces in the same Ethernet link aggregation interface are the same. In each Ethernet link aggregation interface, one downlink interface is the primary interface and the other downlink interface is the backup interface.

[0131] In some embodiments, determining at least one Ethernet link aggregation interface based on the neighbors corresponding to each downlink interface in the plurality of downlink interfaces connected to the first central optical module and the neighbors corresponding to each downlink interface in the plurality of downlink interfaces connected to the second central optical module can be implemented as follows: determining a first downlink interface from the plurality of downlink interfaces connected to the first central optical module and determining a second downlink interface from the plurality of downlink interfaces connected to the second central optical module, wherein the neighbors corresponding to the first downlink interface and the neighbors corresponding to the second downlink interface are both target access devices, and the target access device is one of the plurality of access devices; in response to the fact that the number of the first downlink interface and the second downlink interface is both one, generating a target Ethernet link aggregation interface identifier and establishing a correspondence between the target Ethernet link aggregation interface identifier and the first downlink interface and the second downlink interface.

[0132] When there is only one first downlink interface and one second downlink interface, it indicates that there is one first downlink interface among the downlink interfaces connected to the first central optical module, and one second downlink interface among the downlink interfaces connected to the second central optical module. These two downlink interfaces have the same neighbor, and both are target neighbor devices. In this scenario, these two downlink interfaces can be automatically aggregated into a single Ethernet link aggregation interface.

[0133] When the routing and switching device determines that it needs to aggregate the first downlink interface and the second downlink interface into an Ethernet link aggregation interface, the routing and switching device can automatically generate an Ethernet link aggregation interface identifier according to the pre-set rules, and use the generated Ethernet link aggregation interface identifier as the target Ethernet link aggregation interface identifier.

[0134] An example of a rule for generating Ethernet link aggregation interface identifiers is the minimum availability allocation rule. The minimum availability allocation rule can be understood as follows: multiple Ethernet link aggregation interface identifiers are pre-configured. When a target Ethernet link aggregation interface identifier needs to be generated, the Ethernet link aggregation interface identifier with the smallest number that is currently not in use is selected from the pre-configured multiple Ethernet link aggregation interface identifiers as the Ethernet link aggregation interface identifier to be allocated, which is also the target Ethernet link aggregation interface identifier.

[0135] Additionally, if there is only one first downlink interface and one second downlink interface, and there is already an Ethernet link aggregation interface identifier for the first downlink interface and the second downlink interface, meaning that the first downlink interface and the second downlink interface are already member interfaces of an Ethernet link aggregation interface, then the operation of generating the target Ethernet link aggregation interface will not be performed.

[0136] Optionally, in other embodiments, after determining the first downlink interface from the plurality of downlink interfaces connected to the first central optical module and the second downlink interface from the plurality of downlink interfaces connected to the second central optical module, in response to the condition that the number of the first downlink interface and the second downlink interface is not both one, a fault notification message is reported, which is used to indicate the downlink interface that has a fault.

[0137] When the number of the first downlink interface and the second downlink interface does not both meet the condition of one, it indicates that there is a faulty downlink interface among the downlink interfaces connected to the first central optical module and / or the second central optical module. At this time, a fault notification message can be reported to network management equipment such as NCE so that the user can intervene to repair the faulty downlink interface.

[0138] The condition that the number of both the first downlink interface and the second downlink interface is not one can include various situations. For example, the number of the first downlink interface and / or the second downlink interface is two or more. Or, the number of the first downlink interface and / or the second downlink interface is zero.

[0139] Optionally, in some scenarios, such as when the probability of failure of the downlink interface connected to the first central optical module and the second central optical module is relatively small, the routing and switching device determines the first downlink interface from the multiple downlink interfaces connected to the first central optical module and the second downlink interface from the multiple downlink interfaces connected to the second central optical module, and then directly aggregates the first downlink interface and the second downlink interface into the target Ethernet link aggregation interface.

[0140] Furthermore, after the routing and switching device aggregates the first downlink interface and the second downlink interface into a target Ethernet link aggregation interface, that is, after establishing the correspondence between the target Ethernet link aggregation interface identifier and the first downlink interface and the second downlink interface, it can further configure which downlink interface is the primary interface and which is the backup interface. This application embodiment does not limit this.

[0141] In some embodiments, each downlink interface has a corresponding number. In this scenario, the downlink interface with the smaller number can be selected as the primary interface, and the downlink interface with the larger number can be selected as the backup interface.

[0142] Optionally, in other embodiments, each downlink interface has a corresponding priority. In this scenario, a downlink interface with a higher priority can be selected as the primary interface, and a downlink interface with a lower priority can be selected as the backup interface. This application does not limit the configuration method for the priority of the downlink interfaces.

[0143] Optionally, in other embodiments, the downlink interface connected to one of the central optical modules (such as the first central optical module) can be pre-configured as the primary interface. In this case, the first downlink interface is directly used as the primary interface, and the second downlink interface is used as the backup interface. This ensures that all primary interfaces are in the same central optical module.

[0144] It should be noted that, since the embodiments of this application do not limit how the primary and secondary interfaces are configured, after automatically generating Ethernet link aggregation interfaces for the first and second central optical modules, the primary interfaces in all Ethernet link aggregation interfaces may be downlink interfaces in the same central optical module. Optionally, the primary interfaces in different Ethernet link aggregation interfaces may also be located in different central optical modules. For example, after automatically generating Ethernet link aggregation interfaces for the first and second central optical modules, the generated Ethernet link aggregation interfaces include Ethernet link aggregation interface 1 and Ethernet link aggregation interface 2. The primary interface in Ethernet link aggregation interface 1 is the downlink interface connected to the first central optical module, and the primary interface in Ethernet link aggregation interface 2 is the downlink interface connected to the second central optical module.

[0145] In addition, after the routing and switching device aggregates the first downlink interface and the second downlink interface into the target Ethernet link aggregation interface, it can further confirm whether the target Ethernet link aggregation interface has been successfully created. If it has not been successfully created, a timeout period can be set, and when the timeout period expires, the first downlink interface and the second downlink interface can be re-aggregated into the target Ethernet link aggregation interface.

[0146] Based on steps 601 and 602, the routing and switching device can automatically generate Ethernet link aggregation interfaces according to the neighbors corresponding to each downlink interface in the downlink interfaces connected to the first central optical module and the second central optical module. This method does not require manual configuration by the user, thus achieving high configuration efficiency.

[0147] Furthermore, since the Ethernet link aggregation interface is automatically generated, when the network topology of the optical communication system changes, such as when the neighbors corresponding to the downlink interface change, the Ethernet link aggregation interface can be quickly updated based on the changed network topology, eliminating the need for manual updates by the user. This meets the ease-of-use requirements of PEN networking.

[0148] The changes in neighbors corresponding to the downlink interface include two scenarios: one is that the neighbor corresponding to the downlink interface is deleted, and the other is that the neighbor corresponding to the downlink interface is changed to another access device. The following will explain these two scenarios in detail.

[0149] Scenario 1: The neighbor corresponding to the downlink interface is deleted.

[0150] For example, the routing switching device obtains at least one Ethernet link aggregation interface through steps 601 and 602, including a first Ethernet link aggregation interface. The neighbors corresponding to the downlink interfaces in the first Ethernet link aggregation interface are all first access devices. The first access device is one of a plurality of access devices. The first Ethernet link aggregation interface includes a third downlink interface.

[0151] In this scenario, if the third downlink interface does not receive LLDP neighbor device information from the first access device within the first reference time period before and closest to the current time, then the third downlink interface will be removed from the first Ethernet link aggregation interface.

[0152] The first reference duration can also be called the neighbor aging duration. If, within the first reference duration closest to the current time, the third downlink interface has not received LLDP neighbor device information from the first access device, it indicates that the first access device has not conducted optical communication with the third downlink interface in the recent period. In this case, it can be considered that the neighbor corresponding to the third downlink interface has been deleted, and the third downlink interface can be directly deleted from the first Ethernet link aggregation interface to update the Ethernet link aggregation interface.

[0153] The first reference duration is a pre-configured duration, and the configuration method of the first reference duration is not limited in this application embodiment.

[0154] After the third downlink interface is removed from the first Ethernet link aggregation interface, if there is only one downlink interface among the member interfaces of the first Ethernet link aggregation interface, and that downlink interface is a backup interface, then the backup interface is reassigned as the primary interface.

[0155] Additionally, if the first Ethernet link aggregation interface has no member interfaces after the third downlink interface is removed from the first Ethernet link aggregation interface, then the first Ethernet link aggregation interface will be deleted.

[0156] Optionally, in other embodiments, if the routing and switching device receives a neighbor deletion notification message from the NCE, which is used to announce that the neighbor corresponding to the third downlink interface has been deleted, the third downlink interface can also be deleted from the first Ethernet link aggregation interface.

[0157] Scenario 2: The neighbor corresponding to the downlink interface is changed to another access device.

[0158] For example, the routing switching device obtains at least one Ethernet link aggregation interface through steps 601 and 602, including a second Ethernet link aggregation interface. The neighbors corresponding to the downlink interfaces in the second Ethernet link aggregation interface are all second access devices. The second access device is one of a plurality of access devices. The second Ethernet link aggregation interface includes a fourth downlink interface.

[0159] In this scenario, in response to the neighbor corresponding to the fourth downlink interface changing from the second access device to the third access device, the fourth downlink interface is deleted from the second Ethernet link aggregation interface and added to the third Ethernet link aggregation interface. The neighbors corresponding to the downlink interfaces in the third Ethernet link aggregation interface are all third access devices, and the third access device is one of multiple access devices.

[0160] When the neighbor corresponding to the fourth downlink interface changes from the second access device to the third access device, the fourth downlink interface needs to be deleted from the original second Ethernet link aggregation interface and added to the new third Ethernet link aggregation interface. This is to update the Ethernet link aggregation interface.

[0161] The routing switching device can learn that the neighbor corresponding to the fourth downlink interface has changed from the second access device to the third access device in the following ways: Before the current time, the neighbor indicated by the LLDP neighbor device information received by the fourth downlink interface was always the second access device. However, at the current time, the neighbor indicated by the LLDP neighbor device information received by the fourth downlink interface is the third access device. Therefore, it can be determined that the neighbor corresponding to the fourth downlink interface has changed from the second access device to the third access device.

[0162] Optionally, the routing and switching device can also receive a neighbor change notification message from the NCE, which is used to announce that the neighbor corresponding to the fourth downlink interface has changed from the second access device to the third access device.

[0163] In addition, in some embodiments, the routing and switching device is configured with a primary / backup auto-negotiation command, or the routing and switching device is connected to a network management device and the network management device is configured with a primary / backup auto-negotiation function option.

[0164] In this scenario, in response to receiving an enable operation for a primary / backup auto-negotiation command or an enable operation for a primary / backup auto-negotiation function option, at every second reference time interval, the operation of determining at least one Ethernet link aggregation interface is performed based on the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the first central optical module and the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the second central optical module.

[0165] Users can choose whether to automatically generate Ethernet link aggregation interfaces using the solution provided in this application embodiment, either through the primary / backup auto-negotiation command or the primary / backup auto-negotiation function option in the network management device. This offers high flexibility.

[0166] The second reference duration is a pre-set duration, which can be, for example, a week or a month.

[0167] Alternatively, the implementation of receiving the enable command for primary / backup auto-negotiation can be achieved by connecting the user terminal to the console interface of the routing and switching device via a console cable, thereby opening the command line interface of the routing and switching device in the user terminal, and having the user enter the enable command for primary / backup auto-negotiation in the command line interface, so that the routing and switching device receives the enable command for primary / backup auto-negotiation.

[0168] In addition, network management devices connected to routing and switching equipment can include two types of network management devices: one is where the user terminal acts as a network management device and manages the routing and switching equipment through a web interface, and the other is network management devices such as NCE (Network Management Equipment).

[0169] Optionally, in scenarios where the user terminal acts as a network management device and manages the routing and switching equipment through a web interface, the implementation of receiving the enable operation for the primary / backup auto-negotiation function option is as follows: connect the user terminal to the management port of the routing and switching equipment via a network cable, open the user terminal's browser, and enter the internet protocol (IP) address of the routing and switching equipment to access the management interface of the routing and switching equipment. This management interface displays the primary / backup auto-negotiation function option. When the user triggers an enable operation for this option, the user terminal sends a primary / backup auto-negotiation enable notification to the routing and switching equipment. Upon receiving this notification, the routing and switching equipment confirms that it has received the enable operation for the primary / backup auto-negotiation function option.

[0170] In scenarios where the network management device is an NCE (Network Controller), the implementation of receiving an enable operation for the primary / backup auto-negotiation function option can be as follows: The user logs into the NCE as an administrator on a user terminal. Based on the managed device topology map or list provided by the NCE, the user terminal selects a routing switch and clicks on the selected routing switch to open its control interface. This control interface displays the primary / backup auto-negotiation function option. When the user triggers an enable operation for this option, the NCE sends a primary / backup auto-negotiation enable notification to the routing switch. Upon receiving this notification, the routing switch confirms that it has received the enable operation for the primary / backup auto-negotiation function option.

[0171] Optionally, in other embodiments, the routing and switching device may not be configured with a primary / backup auto-negotiation command, and correspondingly, the network management device may not be configured with a primary / backup auto-negotiation function option. In this scenario, the routing and switching device can directly execute the scheme for determining the Ethernet link aggregation interface provided in the embodiments of this application after joining the network.

[0172] In summary, the method provided in this application allows the routing and switching device to automatically generate Ethernet link aggregation interfaces based on the neighbors corresponding to each downlink interface in the downlink interfaces connected to the first and second central optical modules. This method eliminates the need for manual configuration of the Ethernet link aggregation interfaces by the user, thus achieving high configuration efficiency. Furthermore, when the network topology of the optical communication system changes, such as when the neighbors corresponding to the downlink interfaces change, the Ethernet link aggregation interfaces can be quickly updated based on the changed network topology, again without requiring manual updates by the user. This satisfies the usability requirements of PEN networking.

[0173] In addition, this application embodiment also provides a routing and switching device in an optical communication system. The routing and switching device can be implemented by software, hardware or a combination of both, and can be any of the routing and switching devices in the foregoing embodiments.

[0174] The optical communication system also includes a first central optical module, a second central optical module, intermediate equipment, multiple access-side optical modules, and multiple access devices. The routing and switching equipment includes multiple downlink interfaces that are electrically connected to the first central optical module and multiple downlink interfaces that are electrically connected to the second central optical module. Each access device includes an uplink interface that is electrically connected to an access-side optical module. The first central optical module and the second central optical module are respectively connected to the intermediate equipment via optical fibers. Each access-side optical module is connected to the intermediate equipment via optical fibers. The multiple downlink interfaces connected to the first central optical module correspond to multiple wavelengths, and the multiple downlink interfaces connected to the second central optical module also correspond to these multiple wavelengths. The multiple access-side optical modules also correspond to these multiple wavelengths.

[0175] Figure 7 This is a schematic diagram of the structure of a routing and switching device in an optical communication system provided in an embodiment of this application. Figure 7 As shown, the routing and switching device 700 includes the following modules.

[0176] The first determining module 701 is used to determine the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the first central optical module and the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the second central optical module. The neighbors corresponding to each downlink interface refer to the access devices that communicate with this downlink interface.

[0177] The second determining module 702 is used to determine at least one Ethernet link aggregation interface based on the neighbors corresponding to each downlink interface in the plurality of downlink interfaces connected to the first central optical module and the neighbors corresponding to each downlink interface in the plurality of downlink interfaces connected to the second central optical module. Each Ethernet link aggregation interface includes one downlink interface connected to the first central optical module and one downlink interface connected to the second central optical module. The neighbors corresponding to the two downlink interfaces in the same Ethernet link aggregation interface are the same. In each Ethernet link aggregation interface, one downlink interface is the primary interface and the other downlink interface is the backup interface.

[0178] In some embodiments, the first determining module is configured to:

[0179] Obtain the Link Layer Discovery Protocol (LLDP) neighbor device information received by each downlink interface among the multiple downlink interfaces connected to the first central optical module;

[0180] Obtain LLDP neighbor device information received by each downlink interface among the multiple downlink interfaces connected to the second center optical module;

[0181] The LLDP neighbor device information received by each downlink interface is used to indicate the access device communicating with this downlink interface.

[0182] In some embodiments, the first determining module is configured to:

[0183] The system shuts down multiple downlink interfaces connected to the second center optical module and starts timing from the moment the multiple downlink interfaces connected to the second center optical module are shut down. The timing duration is the first timing duration.

[0184] Obtain LLDP neighbor device information received by each downlink interface among the multiple downlink interfaces connected to the first central optical module within the first timing period.

[0185] In some embodiments, the first determining module is configured to:

[0186] The first central optical module is shut down multiple downlink interfaces connected to it, and a timer is started when the first central optical module is shut down, with the timer duration being the second timer duration.

[0187] Obtain LLDP neighbor device information received by each downlink interface among the multiple downlink interfaces connected to the second central optical module within the second timing period.

[0188] In some embodiments, the second determining module is used to:

[0189] The first downlink interface is determined from the multiple downlink interfaces connected to the first central optical module, and the second downlink interface is determined from the multiple downlink interfaces connected to the second central optical module. The neighbor corresponding to the first downlink interface and the neighbor corresponding to the second downlink interface are both target access devices, and the target access device is one of the multiple access devices.

[0190] In response to the fact that there is only one first downlink interface and one second downlink interface, a target Ethernet link aggregation interface identifier is generated, and a correspondence is established between the target Ethernet link aggregation interface identifier and the first downlink interface and the second downlink interface.

[0191] In some embodiments, the second determining module is used to:

[0192] In response to the condition that the number of the first downlink interface and the second downlink interface is not both one, a fault notification message is reported. The fault notification message is used to indicate the downlink interface that has a fault.

[0193] In some embodiments, at least one Ethernet link aggregation interface includes a first Ethernet link aggregation interface, the neighbors corresponding to the downlink interfaces in the first Ethernet link aggregation interface are all first access devices, the first access device is one of a plurality of access devices, and the first Ethernet link aggregation interface includes a third downlink interface.

[0194] The routing and switching device also includes a first update module, which is used for:

[0195] If the third downlink interface does not receive LLDP neighbor device information from the first access device within the first reference time period before and closest to the current time, then the third downlink interface will be removed from the first Ethernet link aggregation interface.

[0196] In some embodiments, at least one Ethernet link aggregation interface includes a second Ethernet link aggregation interface, the neighbors corresponding to the downlink interfaces in the second Ethernet link aggregation interface are all second access devices, the second access device is one of a plurality of access devices, and the second Ethernet link aggregation interface includes a fourth downlink interface.

[0197] The routing and switching equipment also includes a second update module, which is used for:

[0198] In response to the neighbor corresponding to the fourth downlink interface changing from the second access device to the third access device, the fourth downlink interface is deleted from the second Ethernet link aggregation interface and added to the third Ethernet link aggregation interface. The neighbors corresponding to the downlink interfaces in the third Ethernet link aggregation interface are all third access devices, and the third access device is one of multiple access devices.

[0199] In some embodiments, the routing and switching device is configured with a primary / backup auto-negotiation command, or the routing and switching device is connected to a network management device and the network management device is configured with a primary / backup auto-negotiation function option.

[0200] The second determining module is used to: in response to receiving an enabling operation for a primary / backup auto-negotiation command or an enabling operation for a primary / backup auto-negotiation function option, at every second reference time interval, perform the operation of determining at least one Ethernet link aggregation interface based on the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the first central optical module and the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the second central optical module.

[0201] In some embodiments, the routing and switching device is a central switch;

[0202] The central switch includes multiple downlink interfaces that are electrically connected to the first central optical module and multiple downlink interfaces that are electrically connected to the second central optical module.

[0203] In some embodiments, the routing switching device is formed by stacking multiple central switches, including a first central switch and a second central switch;

[0204] The first central switch includes multiple downlink interfaces that are electrically connected to the first central optical module, and the second central switch includes multiple downlink interfaces that are electrically connected to the second central optical module.

[0205] In summary, the routing and switching device provided in this application can automatically generate Ethernet link aggregation interfaces based on the neighbors corresponding to each downlink interface in the downlink interfaces connected to the first central optical module and the second central optical module. This method eliminates the need for manual configuration of the Ethernet link aggregation interfaces by the user, thus achieving high configuration efficiency. Furthermore, when the network topology of the optical communication system changes, such as when the neighbors corresponding to the downlink interfaces change, the Ethernet link aggregation interfaces can be quickly updated based on the changed network topology, again without requiring manual updates by the user. This satisfies the usability requirements of PEN networking.

[0206] It should be noted that the routing and switching device provided in the above embodiments is only illustrated by the division of the above functional modules when generating Ethernet link aggregation interfaces. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the routing and switching device provided in the above embodiments and the method embodiments for determining Ethernet link aggregation interfaces in optical communication systems belong to the same concept. The specific implementation process is detailed in the method embodiments and will not be repeated here.

[0207] Figure 8This is a schematic diagram of a communication device provided in an embodiment of this application. The communication device can be an access device or a routing / switching device as described in any of the above embodiments. The communication device 800 can be a switch, router, or other communication device that forwards packets. In this embodiment, the communication device 800 includes: a main control board 810, an interface board 830, and an interface board 840. In the case of multiple interface boards, a switching network board (not shown in the figure) can be included, which is used to complete data exchange between the various interface boards (interface boards are also called line cards or service boards).

[0208] The main control board 810 is used to perform functions such as system management, equipment maintenance, and protocol processing. Interface boards 830 and 840 provide various service interfaces (e.g., POS interface, GE interface, ATM interface, etc.) and implement data stream forwarding. The main control board 810 mainly has three types of functional units: a system management control unit, a system clock unit, and a system maintenance unit. The main control board 810, interface board 830, and interface board 840 communicate with each other via a system bus connected to the system backplane. Interface board 830 includes one or more processors 831. The processors 831 control and manage the interface boards, communicate with the central processing unit on the main control board, and handle data stream forwarding. The memory 832 on interface board 830 stores forwarding table entries; the processors 831 forward data streams by looking up the forwarding table entries stored in memory 832.

[0209] The interface board 830 includes one or more communication interfaces 833 for receiving data streams or other information sent by the terminal or other network devices, and processing these data streams or information according to the instructions of the processor 831. The specific implementation process will not be described in detail here.

[0210] Understandable, such as Figure 8 As shown, this embodiment includes multiple interface boards and employs a distributed forwarding mechanism. Under this mechanism, the operations on interface board 840 are basically similar to those on interface board 830, and for simplicity, they will not be described in detail. Furthermore, it is understood that... Figure 8 The processors 831 and / or 841 in the interface board 830 can be dedicated hardware or chips, such as network processors or application-specific integrated circuits (ASICs), to implement the above functions. This implementation method is commonly referred to as using dedicated hardware or chips for the forwarding plane. For a detailed implementation using a network processor or other dedicated hardware or chip, please refer to the following. Figure 9 The illustrated embodiment. In another embodiment, the processor 831 and / or 841 may also employ a general-purpose processor, such as a general-purpose CPU, to implement the functions described above.

[0211] Furthermore, it should be noted that there may be one or more main control boards, including a primary main control board and a backup main control board. There may also be one or more interface boards; the stronger the data processing capability of the device, the more interface boards it provides. With multiple interface boards, these boards can communicate through one or more switching network boards, enabling load sharing and redundancy backup. In a centralized forwarding architecture, the device may not require a switching network board; the interface boards handle the processing of the entire system's business data. In a distributed forwarding architecture, the device includes multiple interface boards, which can exchange data with each other through a switching network board, providing high-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of a distributed architecture communication device are greater than those of a centralized architecture device. The specific architecture adopted depends on the specific network deployment scenario, and no limitations are made here.

[0212] In some embodiments, memory 832 may be read-only memory (ROM), random access memory (RAM), electrically erasable programmable read-only memory (EEPROM), optical disc (including compact disc read-only memory (CD-ROM), compressed optical disc, laser disc, digital versatile optical disc, Blu-ray disc, etc.), magnetic disk storage media, or other magnetic storage devices, or any other medium capable of carrying or storing desired program code having an instruction or data structure form and accessible by a computer, but not limited thereto. Memory 832 may exist independently and be connected to processor 831 via a communication bus. Memory 832 may also be integrated with processor 831.

[0213] In some embodiments, the communication interface 833 can be any transceiver-like device used to communicate with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area network (WLAN), etc. The communication interface 833 includes a wired communication interface and may also include a wireless communication interface. The wired communication interface can be, for example, an Ethernet interface. The Ethernet interface can be an optical interface, an electrical interface, or a combination thereof. The wireless communication interface can be a WLAN interface, a cellular network communication interface, or a combination thereof, etc. When the communication device is used as any communication device within a domain, the communication interface 833 is used to forward data packets to other communication devices.

[0214] In some embodiments, the communication device may include a plurality of processors, each of which may be a single-core processor or a multi-core processor. Here, a processor may refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).

[0215] In some embodiments, the memory 832 is used to store program code that executes the scheme of this application, and the processor 831 can execute the program code stored in the memory 832, causing the communication device 800 to perform... Figure 6 The processing steps of the routing and switching device in the illustrated embodiment can be referred to for specific implementation. Figure 6 The detailed descriptions of the embodiments shown will not be repeated here.

[0216] Figure 9 This is a schematic diagram of another communication device provided in this application embodiment. This communication device can be an access device or a routing / switching device as described in any of the above embodiments. In this embodiment, the communication device 900 includes: a main control board 910, an interface board 930, a switching network board 920, and an interface board 940. The main control board 910 is used to perform functions such as system management, equipment maintenance, and protocol processing. The switching network board 920 is used to perform data exchange between the various interface boards (interface boards are also called line cards or service boards). Interface boards 930 and 940 are used to provide various service interfaces (e.g., POS interface, GE interface, ATM interface, etc.) and to forward data packets. The control plane consists of the various management and control units on the main control board 910 and the management and control units on the interface boards 930 and 940. The main control board 910 mainly has three types of functional units: a system management and control unit, a system clock unit, and a system maintenance unit. The main control board 910, interface boards 930 and 940, and the switching network board 920 are interconnected via a system bus connected to the system backplane. The central processing unit 931 on the interface board 930 is used to control and manage the interface board and communicate with the central processing unit on the main control board. The forwarding table entry memory 934 on the interface board 930 is used to store forwarding table entries, and the network processor 932 forwards the data stream by looking up the forwarding table entries stored in the forwarding table entry memory 934.

[0217] The physical interface card 933 of the interface board 930 is used to receive data streams or other data sent by the terminal or other devices. The specific implementation process will not be described in detail here.

[0218] The network processor 932 is used to process received data streams, etc. The specific functions of the network processor 932 will not be detailed here. For example, the network processor 932 can execute program code, causing the communication device 900 to perform... Figure 6 The processing steps of the routing and switching device in the illustrated embodiment can be referred to for specific implementation. Figure 6 The detailed descriptions in the embodiments will not be repeated here.

[0219] Understandable, such as Figure 9 As shown, this embodiment includes multiple interface boards and employs a distributed forwarding mechanism. Under this mechanism, the operations on interface board 940 are basically similar to those on interface board 930, and for simplicity, they will not be described in detail. Furthermore, as mentioned above, Figure 9 The functions of the network processors 932 and 942 can be implemented using application-specific integrated circuits (ASICs).

[0220] Furthermore, it should be noted that there may be one or more main control boards, including a primary and a backup main control board. There may also be one or more interface boards; the stronger the data processing capability of the device, the more interface boards it provides. Each interface board may also have one or more physical interface cards. There may be no switching network board, or one or more; multiple boards can share the load for redundancy and backup. In a centralized forwarding architecture, the device may not need a switching network board, as the interface boards handle the entire system's business data processing. In a distributed forwarding architecture, the device can have at least one switching network board, which enables data exchange between multiple interface boards, providing high-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of distributed architecture communication devices are greater than those of centralized architecture devices. The specific architecture adopted depends on the specific network deployment scenario, and no limitations are made here.

[0221] Please refer to Figure 10 , Figure 10 This is a schematic diagram of the structure of a communication device according to an embodiment of this application. Optionally, the communication device is an access device or routing and switching device as described in the foregoing embodiments, and the communication device includes one or more processors 1001, a communication bus 1002, a memory 1003, and one or more communication interfaces 1004.

[0222] The processor 1001 is a general-purpose central processing unit (CPU), network processor (NP), microprocessor, or one or more integrated circuits for implementing the solutions of this application, such as application-specific integrated circuits (ASICs), programmable logic devices (PLDs), or combinations thereof. Optionally, the PLD is a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), generic array logic (GAL), or any combination thereof. When the communication device is any of the communication devices in the embodiments of this application, the processor 1001 is used to implement the method for determining the Ethernet link aggregation interface provided in the foregoing embodiments.

[0223] The communication bus 1002 is used to transmit information between the aforementioned components. Optionally, the communication bus 1002 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is used to represent it in the figure, but this does not mean that there is only one bus or one type of bus.

[0224] Optionally, the memory 1003 may be a read-only memory (ROM), random access memory (RAM), electrically erasable programmable read-only memory (EEPROM), optical disc (including compact disc read-only memory (CD-ROM), compressed optical disc, laser disc, digital versatile optical disc, Blu-ray disc, etc.), magnetic disk storage medium, or other magnetic storage device, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures that can be accessed by a computer, but not limited thereto. The memory 1003 exists independently and is connected to the processor 1001 via the communication bus 1002, or the memory 1003 is integrated with the processor 1001.

[0225] Communication interface 1004 uses any transceiver-like device for communicating with other devices or communication networks. Communication interface 1004 includes a wired communication interface, and optionally, a wireless communication interface. The wired communication interface may be, for example, an Ethernet interface. Optionally, the Ethernet interface may be an optical interface, an electrical interface, or a combination thereof. The wireless communication interface may be a wireless local area network (WLAN) interface, a cellular network communication interface, or a combination thereof. When the communication device acts as any communication device within a domain, communication interface 1004 is used to forward data packets to other communication devices.

[0226] Optionally, in some embodiments, the communication device includes multiple processors, such as Figure 10 The processors 1001 and 1005 shown are illustrated. Each of these processors is a single-core processor or a multi-core processor. Optionally, a processor here refers to one or more devices, circuits, and / or processing cores used for processing data (such as computer program instructions).

[0227] In some embodiments, the communication device further includes an output device 1006 and an input device 1007. The output device 1006 communicates with the processor 1001 and can display information in various ways. For example, the output device 1006 may be a liquid crystal display (LCD), a light-emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. The input device 1007 communicates with the processor 1001 and can receive user input in various ways. For example, the input device 1007 may be a mouse, keyboard, touchscreen device, or sensing device.

[0228] In some embodiments, the memory 1003 is used to store program code that executes the scheme of this application, and the processor 1001 is capable of executing the program code stored in the memory 1003, causing the communication device to execute the processing steps of the routing and switching device in the foregoing embodiments. Specific implementation details can be found in [reference needed]. Figure 6 The detailed descriptions of the embodiments shown will not be repeated here.

[0229] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in 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 instructions are loaded and executed on a computer, all or part of the processes or functions described 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. 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 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 medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., digital versatile disc (DVD)), or a semiconductor medium (e.g., solid state disk (SSD)). It is worth noting that the computer-readable storage medium mentioned in the embodiments of this application can be a non-volatile storage medium; in other words, it can be a non-transient storage medium.

[0230] It should be understood that "at least one" as mentioned herein refers to one or more, and "multiple" refers to two or more. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. In addition, in order to clearly describe the technical solutions of the embodiments of this application, the terms "first," "second," etc., are used in the embodiments of this application to distinguish identical or similar items with substantially the same function and effect. Those skilled in the art will understand that the terms "first," "second," etc., do not limit the quantity or execution order, and the terms "first," "second," etc., are not necessarily different.

[0231] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals involved in the embodiments of this application are all authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the uplink and downlink information involved in the embodiments of this application were obtained with full authorization.

[0232] The above descriptions are embodiments provided in this application and are not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method for determining the Ethernet link aggregation interface in an optical communication system, characterized in that, The method is applied to a routing and switching device in an optical communication system. The optical communication system further includes a first central optical module, a second central optical module, an intermediate device, multiple access-side optical modules, and multiple access devices. The routing and switching device includes multiple downlink interfaces electrically connected to the first central optical module and multiple downlink interfaces electrically connected to the second central optical module. Each access device includes an uplink interface electrically connected to an access-side optical module. The first central optical module and the second central optical module are respectively connected to the intermediate device via optical fiber. Each access-side optical module is connected to the intermediate device via optical fiber. The multiple downlink interfaces connected to the first central optical module correspond one-to-one with multiple wavelengths, the multiple downlink interfaces connected to the second central optical module also correspond one-to-one with the multiple wavelengths, and the multiple access-side optical modules also correspond one-to-one with the multiple wavelengths. The method includes: The neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the first central optical module and the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the second central optical module are determined. The neighbors corresponding to each downlink interface refer to the access devices that communicate with this downlink interface. Based on the neighbors of each downlink interface in the multiple downlink interfaces connected to the first central optical module and the neighbors of each downlink interface in the multiple downlink interfaces connected to the second central optical module, at least one Ethernet link aggregation interface is determined. Each Ethernet link aggregation interface includes a downlink interface connected to the first central optical module and a downlink interface connected to the second central optical module. The neighbors of the two downlink interfaces in the same Ethernet link aggregation interface are the same. In each Ethernet link aggregation interface, one downlink interface is the primary interface and the other downlink interface is the backup interface.

2. The method as described in claim 1, characterized in that, The step of determining the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the first central optical module and the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the second central optical module includes: Obtain the Link Layer Discovery Protocol (LLDP) neighbor device information received by each downlink interface among the multiple downlink interfaces connected to the first central optical module; Obtain LLDP neighbor device information received by each of the multiple downlink interfaces connected to the second central optical module; The LLDP neighbor device information received by each downlink interface is used to indicate the access device communicating with this downlink interface.

3. The method as described in claim 2, characterized in that, The step of obtaining the Link Layer Discovery Protocol (LLDP) neighbor device information received by each downlink interface among the multiple downlink interfaces connected to the first central optical module includes: The multiple downlink interfaces connected to the second central optical module are shut down, and the timing starts from the time the multiple downlink interfaces connected to the second central optical module are shut down, with the timing duration being the first timing duration. Obtain LLDP neighbor device information received by each downlink interface among the multiple downlink interfaces connected to the first central optical module within the first timing period.

4. The method as described in claim 2, characterized in that, The step of obtaining the LLDP neighbor device information received by each of the multiple downlink interfaces connected to the second central optical module includes: The first central optical module is shut down multiple downlink interfaces connected to it, and a timer is started when the first central optical module is shut down, with the timer duration being the second timer duration. Obtain LLDP neighbor device information received by each of the multiple downlink interfaces connected to the second central optical module within the second timing period.

5. The method according to any one of claims 1-4, characterized in that, The method of determining at least one Ethernet link aggregation interface based on the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the first central optical module and the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the second central optical module includes: A first downlink interface is determined from the plurality of downlink interfaces connected to the first central optical module, and a second downlink interface is determined from the plurality of downlink interfaces connected to the second central optical module, wherein the neighbor corresponding to the first downlink interface and the neighbor corresponding to the second downlink interface are both target access devices, and the target access device is one of the plurality of access devices; In response to the fact that there is only one first downlink interface and one second downlink interface, a target Ethernet link aggregation interface identifier is generated, and a correspondence is established between the target Ethernet link aggregation interface identifier and the first downlink interface and the second downlink interface.

6. The method as described in claim 5, characterized in that, After determining the first downlink interface from the plurality of downlink interfaces connected to the first central optical module, and determining the second downlink interface from the plurality of downlink interfaces connected to the second central optical module, the method further includes: In response to the condition that the number of the first downlink interface and the second downlink interface is not both one, a fault notification message is reported, which is used to indicate the downlink interface that has a fault.

7. The method according to any one of claims 1-6, characterized in that, The at least one Ethernet link aggregation interface includes a first Ethernet link aggregation interface, wherein the neighbors corresponding to the downlink interfaces in the first Ethernet link aggregation interface are all first access devices, the first access device is one of the plurality of access devices, and the first Ethernet link aggregation interface includes a third downlink interface; After determining at least one Ethernet link aggregation interface based on the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the first central optical module and the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the second central optical module, the method further includes: If the third downlink interface does not receive LLDP neighbor device information from the first access device within the first reference time period before and closest to the current time, then the third downlink interface will be deleted from the first Ethernet link aggregation interface.

8. The method according to any one of claims 1-7, characterized in that, The at least one Ethernet link aggregation interface includes a second Ethernet link aggregation interface, wherein the neighbors corresponding to the downlink interfaces in the second Ethernet link aggregation interface are all second access devices, the second access device is one of the plurality of access devices, and the second Ethernet link aggregation interface includes a fourth downlink interface; After determining at least one Ethernet link aggregation interface based on the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the first central optical module and the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the second central optical module, the method further includes: In response to the neighbor corresponding to the fourth downlink interface changing from the second access device to the third access device, the fourth downlink interface is deleted from the second Ethernet link aggregation interface and added to the third Ethernet link aggregation interface. The neighbors corresponding to the downlink interfaces in the third Ethernet link aggregation interface are all the third access devices, and the third access device is one of the multiple access devices.

9. The method according to any one of claims 1-8, characterized in that, The routing and switching device is configured with a primary / backup auto-negotiation command, or the routing and switching device is connected to a network management device and the network management device is configured with a primary / backup auto-negotiation function option. The method further includes: In response to receiving an enable operation for the primary / backup auto-negotiation enable command or an enable operation for the primary / backup auto-negotiation function option, at each second reference time interval, the operation of determining at least one Ethernet link aggregation interface is performed based on the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the first central optical module and the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the second central optical module.

10. The method according to any one of claims 1-9, characterized in that, The routing and switching device is a central switch; The central switch includes multiple downlink interfaces that are electrically connected to the first central optical module and multiple downlink interfaces that are electrically connected to the second central optical module.

11. The method according to any one of claims 1-9, characterized in that, The routing and switching device is formed by stacking multiple central switches, including a first central switch and a second central switch; The first central switch includes multiple downlink interfaces that are electrically connected to the first central optical module, and the second central switch includes multiple downlink interfaces that are electrically connected to the second central optical module.

12. A routing and switching device in an optical communication system, characterized in that, The optical communication system further includes a first central optical module, a second central optical module, an intermediate device, multiple access-side optical modules, and multiple access devices. The routing and switching device includes multiple downlink interfaces electrically connected to the first central optical module and multiple downlink interfaces electrically connected to the second central optical module. Each access device includes an uplink interface electrically connected to an access-side optical module. The first central optical module and the second central optical module are respectively connected to the intermediate device via optical fiber. Each access-side optical module is connected to the intermediate device via optical fiber. The multiple downlink interfaces connected to the first central optical module correspond one-to-one with multiple wavelengths. The multiple downlink interfaces connected to the second central optical module also correspond one-to-one with the multiple wavelengths. The multiple access-side optical modules also correspond one-to-one with the multiple wavelengths. The routing and switching device includes a memory and at least one processor; The memory is used to store program instructions; After the at least one processor reads the program instructions stored in the memory, it causes the routing and switching device to perform the following operations: The neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the first central optical module and the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the second central optical module are determined. The neighbors corresponding to each downlink interface refer to the access devices that communicate with this downlink interface. Based on the neighbors of each downlink interface in the multiple downlink interfaces connected to the first central optical module and the neighbors of each downlink interface in the multiple downlink interfaces connected to the second central optical module, at least one Ethernet link aggregation interface is determined. Each Ethernet link aggregation interface includes a downlink interface connected to the first central optical module and a downlink interface connected to the second central optical module. The neighbors of the two downlink interfaces in the same Ethernet link aggregation interface are the same. In each Ethernet link aggregation interface, one downlink interface is the primary interface and the other downlink interface is the backup interface.

13. The routing and switching device as described in claim 12, characterized in that, After the at least one processor reads the program instructions stored in the memory, it causes the routing and switching device to perform the following operations: Obtain the Link Layer Discovery Protocol (LLDP) neighbor device information received by each downlink interface among the multiple downlink interfaces connected to the first central optical module; Obtain LLDP neighbor device information received by each of the multiple downlink interfaces connected to the second central optical module; The LLDP neighbor device information received by each downlink interface is used to indicate the access device communicating with this downlink interface.

14. The routing and switching device as described in claim 13, characterized in that, After the at least one processor reads the program instructions stored in the memory, it causes the routing and switching device to perform the following operations: The multiple downlink interfaces connected to the second central optical module are shut down, and the timing starts from the time the multiple downlink interfaces connected to the second central optical module are shut down, with the timing duration being the first timing duration. Obtain LLDP neighbor device information received by each downlink interface among the multiple downlink interfaces connected to the first central optical module within the first timing period.

15. The routing and switching device as described in claim 13, characterized in that, After the at least one processor reads the program instructions stored in the memory, it causes the routing and switching device to perform the following operations: The first central optical module is shut down multiple downlink interfaces connected to it, and a timer is started when the first central optical module is shut down, with the timer duration being the second timer duration. Obtain LLDP neighbor device information received by each of the multiple downlink interfaces connected to the second central optical module within the second timing period.

16. The routing and switching device as described in any one of claims 12-15, characterized in that, After the at least one processor reads the program instructions stored in the memory, it causes the routing and switching device to perform the following operations: A first downlink interface is determined from the plurality of downlink interfaces connected to the first central optical module, and a second downlink interface is determined from the plurality of downlink interfaces connected to the second central optical module, wherein the neighbor corresponding to the first downlink interface and the neighbor corresponding to the second downlink interface are both target access devices, and the target access device is one of the plurality of access devices; In response to the fact that there is only one first downlink interface and one second downlink interface, a target Ethernet link aggregation interface identifier is generated, and a correspondence is established between the target Ethernet link aggregation interface identifier and the first downlink interface and the second downlink interface.

17. The routing and switching device as described in claim 16, characterized in that, After the at least one processor reads the program instructions stored in the memory, it causes the routing and switching device to perform the following operations: In response to the condition that the number of the first downlink interface and the second downlink interface is not both one, a fault notification message is reported, which is used to indicate the downlink interface that has a fault.

18. The routing and switching device as described in any one of claims 12-17, characterized in that, The at least one Ethernet link aggregation interface includes a first Ethernet link aggregation interface, wherein the neighbors corresponding to the downlink interfaces in the first Ethernet link aggregation interface are all first access devices, the first access device is one of the plurality of access devices, and the first Ethernet link aggregation interface includes a third downlink interface; After the at least one processor reads the program instructions stored in the memory, it causes the routing and switching device to perform the following operations: If the third downlink interface does not receive LLDP neighbor device information from the first access device within the first reference time period before and closest to the current time, then the third downlink interface will be deleted from the first Ethernet link aggregation interface.

19. The routing and switching device as described in any one of claims 12-18, characterized in that, The at least one Ethernet link aggregation interface includes a second Ethernet link aggregation interface, wherein the neighbors corresponding to the downlink interfaces in the second Ethernet link aggregation interface are all second access devices, the second access device is one of the plurality of access devices, and the second Ethernet link aggregation interface includes a fourth downlink interface; After the at least one processor reads the program instructions stored in the memory, it causes the routing and switching device to perform the following operations: In response to the neighbor corresponding to the fourth downlink interface changing from the second access device to the third access device, the fourth downlink interface is deleted from the second Ethernet link aggregation interface and added to the third Ethernet link aggregation interface. The neighbors corresponding to the downlink interfaces in the third Ethernet link aggregation interface are all the third access devices, and the third access device is one of the multiple access devices.

20. The routing and switching device as described in any one of claims 12-19, characterized in that, The routing and switching device is configured with a primary / backup auto-negotiation command, or the routing and switching device is connected to a network management device and the network management device is configured with a primary / backup auto-negotiation function option. After the at least one processor reads the program instructions stored in the memory, it causes the routing and switching device to perform the following operations: In response to receiving an enable operation for the primary / backup auto-negotiation enable command or an enable operation for the primary / backup auto-negotiation function option, at each second reference time interval, the operation of determining at least one Ethernet link aggregation interface is performed based on the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the first central optical module and the neighbors corresponding to each downlink interface among the multiple downlink interfaces connected to the second central optical module.

21. The routing and switching device as described in any one of claims 12-20, characterized in that, The routing and switching device is a central switch; The central switch includes multiple downlink interfaces that are electrically connected to the first central optical module and multiple downlink interfaces that are electrically connected to the second central optical module.

22. The routing and switching device as described in any one of claims 12-20, characterized in that, The routing and switching device is formed by stacking multiple central switches, including a first central switch and a second central switch; The first central switch includes multiple downlink interfaces that are electrically connected to the first central optical module, and the second central switch includes multiple downlink interfaces that are electrically connected to the second central optical module.

23. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed by a processor of a network device, implement the method as described in any one of claims 1 to 11.

24. A computer program product containing instructions, characterized in that, When the instructions are executed by the processor of the network device, the method described in any one of claims 1 to 11 is implemented.