Network device, switching network, peer device, and connection configuration method

By introducing memory and processors into network devices, the correspondence between local ports and transmission ports is automatically matched, solving the problem of incorrect fiber optic or cable connections, realizing automated signal transmission matching, and improving the connection accuracy and efficiency of data center networks.

WO2026016521A1PCT designated stage Publication Date: 2026-01-22HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/083491
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-07-19
Filing Date
2025-03-19
Publication Date
2026-01-22

AI Technical Summary

Technical Problem

In existing technologies, fiber optic or cable connection errors can lead to chaotic signal transmission in switching networks. Manual adjustments are difficult and time-consuming, especially in data center networks where there are many fiber optic or cable connections, making it challenging to locate and adjust connection errors.

Method used

By introducing memory and processor into network devices, the correspondence between local ports and transmission ports is stored. Switching devices automatically couple local ports and automatically adjust the connection based on identification signals, avoiding errors caused by manual operation.

Benefits of technology

It enables automatic matching and connection between the local port and the transmission port, avoids connection errors, simplifies the adjustment process of optical fibers or cables, and improves the accuracy and efficiency of signal transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025083491_22012026_PF_FP_ABST
    Figure CN2025083491_22012026_PF_FP_ABST
Patent Text Reader

Abstract

A network device, a switching network, a peer device, and a connection configuration method. The problem of connection errors would not occur in the network device. The network device comprises a memory, a processor, a switching device, and a plurality of local ports. The memory stores a correspondence between port numbers of the local ports and identifiers of transmission ports. On the basis of the connection configuration information, the processor outputs to the switching device coupling information instructing a first local port to be coupled to a second local port, wherein the connection configuration information comprises information of connecting a first transmission port to a second transmission port, the port number of the first local port is a port number of a local port corresponding to the identifier of the first transmission port in the correspondence, and the port number of the second local port is a port number of a local port corresponding to the identifier of the second transmission port in the correspondence. The switching device couples the first local port to the second local port on the basis of the coupling information.
Need to check novelty before this filing date? Find Prior Art

Description

Network device, switching network, peer device and connection configuration method

[0001] The present application claims priority from the Chinese patent application No. 202410980851.0 filed on July 19, 2024, and entitled "Network device, switching network, peer device and connection configuration method", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0002] The present application relates to the field of optical communication technology, in particular to a network device, a switching network, a peer device and a connection configuration method. BACKGROUND

[0003] The switching network includes a plurality of network devices, each of which is also connected with a plurality of peer devices, wherein the peer device of a sending end can output a signal to the network device, the network device transmits the signal to the peer device of a receiving end corresponding to the peer device of the sending end, and then communication is realized.

[0004] Among them, the local port of the network device and the transmission port of the peer device are connected through optical fiber or cable, and currently, labels are marked on the optical fiber or cable, and the optical fiber or cable is inserted and maintained manually according to the content on the label. However, manual operation is bound to have connection errors, which will cause chaos in signal transmission in the switching network. When connection errors occur, manual adjustment is usually required. When the switching network is a data center network, the number of optical fibers or cables is very large, and it is very difficult to find the optical fiber or cable with connection errors manually. Moreover, after the optical fiber or cable is bundled, it is also difficult to adjust the position of the optical fiber or cable with connection errors. SUMMARY

[0005] Embodiments of the present application provide a network device, a switching network, a peer device and a connection configuration method. The local port of the network device can be connected with the transmission port of the peer device at will, and there is no problem of connection error, so it is not necessary to adjust the position of the optical fiber or cable that has been bundled.

[0006] In a first aspect, a network device is provided, which includes a memory, a processor, a switching device and a plurality of local ports. The plurality of local ports are respectively connected to the switching device, and one local port is connected to one transmission port of a peer device. The transmission port of the peer device is also referred to as a peer port of the local port. The memory of the network device stores a correspondence between a port number of the local port and an identification of the transmission port, and the identification of the transmission port includes a device number of the peer device and a port number of the transmission port. The processor of the network device is configured to receive connection configuration information, which includes information that a first transmission port is connected to a second transmission port; and output, to the switching device, coupling information for indicating that a first local port and a second local port are coupled, according to the connection configuration information. The port number of the first local port is the port number of the local port corresponding to the identification of the first transmission port in the correspondence, and the port number of the second local port is the port number of the local port corresponding to the identification of the second transmission port in the correspondence. The switching device of the network device is configured to couple the first local port and the second local port according to the coupling information. In the network device, the correspondence between the port number of the local port and the identification of the transmission port is determined, and the port number of the local port is determined according to the identification of the transmission port, so that the transmission port and the local port can be connected arbitrarily, and there is no problem of connection error between the transmission port and the local port. In addition, when the connection relationship between the local port and the transmission port is changed, the correspondence between the port number of the local port and the identification of the transmission port can be adjusted in time.

[0007] Optionally, the network device further includes a detection device. The detection device is configured to receive, by the local port, an identification signal from the peer device, the identification signal including the identification of the transmission port of the peer device that sends the identification signal; determine the identification of the transmission port connected to the local port according to the identification signal, and output the port number of the local port and the corresponding identification of the transmission port to the memory. In this optional manner, the correspondence between the port number of the local port and the identification of the transmission port stored in the network device can be ensured to be accurate.

[0008] Optionally, one local port and one transmission port of the peer device are connected by an optical fiber, and the identification signal is an optical signal. In this optional manner, the network device specifically receives and processes the identification signal in the form of an optical signal.

[0009] Optionally, the network device further comprises a plurality of optical splitters, the number of the detector devices is a plurality, one local port is connected with the switching device through one optical splitter, and each optical splitter is further connected with one detector device; the optical splitter is configured to receive the identification signal through the local port, transmit a first part of the identification signal to the switching device, and transmit a second part of the identification signal to the detector device connected with the optical splitter; and the detector device is configured to determine the identification of the transmission port connected with the local port according to the second part of the signal. In this optional mode, each detector device is connected with one optical splitter, each detector device receives the second part of the signal through the connected optical splitter, and determines the identification of the transmission port connected with the local port according to the second part of the signal, so that one detector device can avoid determining the identification of the transmission port connected with different local ports according to different second parts of the signal in time sharing, area sharing or according to other algorithms.

[0010] Optionally, the network device further comprises a plurality of optical splitters, the number of the detector devices is one, one local port is connected with the switching device through one optical splitter, and each optical splitter is further connected with the detector device; the optical splitter is configured to receive the identification signal through the local port, transmit a first part of the identification signal to the switching device, and transmit a second part of the identification signal to the detector device; and the detector device is configured to receive each second part of the signal input by different local ports, and determine the identification of each transmission port connected with different local ports according to each second part of the signal. In this optional mode, one detector device needs to determine the identification of each transmission port connected with different local ports according to each second part of the signal in time sharing, area sharing or according to other algorithms.

[0011] Optionally, the detector device comprises an optical-electricity converter and a demodulator; the optical-electricity converter is configured to output an identification electrical signal according to the received signal; and the demodulator is configured to determine the identification of the transmission port according to the identification electrical signal.

[0012] Optionally, the network device and the peer device communicate through optical label technology.

[0013] Optionally, one local port is connected with one transmission port of the peer device through a cable, and the identification signal is an electrical signal.

[0014] Optionally, one local port is connected with one transmission port of the peer device through an optical fiber, the identification signal is an optical signal, and each local port of the network device is provided with an optical module; the optical module is configured to convert the identification signal received by the local port into an electrical signal.

[0015] Optionally, the number of detection devices is multiple, one local port is connected with the switching device through one detection device; the detection device is configured to receive the identification signal through the connected local port. In this optional mode, one local port is connected with the switching device through one detection device, each detection device receives the identification signal through the connected local port, and the identification of the transmission port connected with the local port is determined according to the identification signal, so that one detection device can avoid determining the identification of the transmission port connected with different local ports according to each identification signal in time sharing, area sharing or according to other algorithms.

[0016] Optionally, the number of detection devices is one, and multiple local ports are connected with the switching device through the detection device; the detection device is configured to receive each identification signal input by different local ports, and determine the identification of each transmission port connected with different local ports according to each identification signal. In this optional mode, one detection device needs to determine the identification of each transmission port connected with different local ports according to each identification signal in time sharing, area sharing or according to other algorithms.

[0017] Optionally, the network device and the opposite device communicate through a link layer discovery protocol.

[0018] Optionally, the connection configuration information further includes information of a third transmission port connected with a fourth transmission port; the processor is further configured to output coupling information for indicating that a third local port and a fourth local port are coupled to the switching device according to the connection configuration information, the port number of the third local port is the port number of the local port corresponding to the identification of the third transmission port in the correspondence, and the port number of the fourth local port is the port number of the local port corresponding to the identification of the fourth transmission port in the correspondence; the switching device is further configured to couple the third local port and the fourth local port according to the coupling information. Optionally, the network device is further configured to receive the service signal output by the first transmission port through the first local port, and transmit the service signal to the second transmission port through the second local port.

[0019] Optionally, the processor is further configured to receive parameter configuration information, and the parameter configuration information includes the parameters corresponding to the transmission port.

[0020] In a second aspect, a switching network is provided, which includes a plurality of opposite devices and a network device as described in any one of the above first aspect, the opposite device includes a plurality of transmission ports, the network device includes a plurality of local ports, and one local port is connected with one transmission port.

[0021] Optionally, the switching network further includes a controller connected with the network device; the controller is configured to output the connection configuration information to the network device.

[0022] In a third aspect, a peer device is provided. The peer device includes a plurality of transmission ports, one of which is connected to one local port of a network device. The peer device is configured to output an identification signal. The identification signal is used to determine the identity of the transmission port that outputs the identification signal. The identity of the transmission port includes a device number of the peer device and a port number of the transmission port.

[0023] In a fourth aspect, a connection configuration method is provided. The connection configuration method is applied to a network device. The network device includes a memory, a switching device, and a plurality of local ports. The plurality of local ports are connected to the switching device. One of the local ports is connected to one transmission port of a peer device. The memory stores a correspondence between the port numbers of the local ports and the identities of the transmission ports. The identity of the transmission port includes a device number of the peer device and a port number of the transmission port. The connection configuration method includes receiving connection configuration information. The connection configuration information includes information that a first transmission port is connected to a second transmission port. The connection configuration method outputs coupling information to the switching device to indicate that a first local port is coupled to a second local port according to the connection configuration information. The switching device couples the first local port to the second local port according to the coupling information. The port number of the first local port is the port number of the local port corresponding to the identity of the first transmission port in the correspondence. The port number of the second local port is the port number of the local port corresponding to the identity of the second transmission port in the correspondence.

[0024] Optionally, the connection configuration method further includes receiving a service signal output by the first transmission port through the first local port and transmitting the service signal to the second transmission port through the second local port.

[0025] Optionally, after one of the local ports is connected to one of the transmission ports of the peer device, the connection configuration method further includes receiving an identification signal from the peer device through the local port. The identification signal includes the identity of the transmission port in the peer device that outputs the identification signal. The connection configuration method determines the identity of the transmission port connected to the local port according to the identification signal and outputs the port number of the local port and the corresponding identity of the transmission port to the memory.

[0026] In a fifth aspect, a computer readable storage medium is provided. The computer readable storage medium stores a computer program or instructions. When the computer program or instructions are run on a computer, the computer executes the connection configuration method according to any one of the fourth aspect.

[0027] In a sixth aspect, a computer program product is provided. When the computer program product is run on a computer, the computer executes the connection configuration method according to any one of the fourth aspect.

[0028] The technical effects brought by the possible implementation manners of any one of the second aspect to the sixth aspect can refer to the technical effects brought by the different implementation manners of the first aspect, which will not be described here. BRIEF DESCRIPTION OF DRAWINGS

[0029] Fig. 1 is a structural schematic diagram of a switching network provided by the present application;

[0030] Fig. 2 is a structural schematic diagram of a switching network provided by a first embodiment of the present application;

[0031] Fig. 3 is a structural schematic diagram of a switching network provided by a second embodiment of the present application;

[0032] Fig. 4 is a structural schematic diagram of a switching network provided by a third embodiment of the present application;

[0033] Fig. 5 is a structural schematic diagram of a switching network provided by a fourth embodiment of the present application;

[0034] Fig. 6 is a structural schematic diagram of a switching network provided by a fifth embodiment of the present application;

[0035] Fig. 7 is a structural schematic diagram of a switching network provided by a sixth embodiment of the present application;

[0036] Fig. 8 is a structural schematic diagram of a switching network provided by a seventh embodiment of the present application. DETAILED DESCRIPTION

[0037] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, not all the embodiments.

[0038] Unless otherwise defined, all technical terms used herein have the same meaning as commonly understood by one of ordinary skill in the art. In the embodiments of the present application, "at least one" means one or more, and "multiple" means two or more. The association relationship of "and / or" describes the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B can represent the following three cases: A exists alone, A and B exist together, and B exists alone, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects before and after it. "At least one of the following" or similar expressions means any combination of these items, including any combination of single item or multiple items. For example, at least one of a, b or c can represent a, b, c, a and b, a and c, b and c, or a, b and c, where a, b and c can be singular or plural. In addition, in the embodiments of the present application, "first", "second", etc. do not limit the quantity and order.

[0039] In addition, in the embodiments of the present application, the orientation terms such as "upper", "lower" and the like are defined relative to the orientation in which the components in the drawings are shown. It should be understood that these directional terms are relative concepts, and they are used for relative description and clarification, which can be changed accordingly according to the change of the orientation in which the components are placed in the drawings.

[0040] In the embodiments of the present application, the words "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design presented as "exemplary" or "for example" in the embodiments of the present application is not necessarily to be construed as preferred or advantageous over other embodiments or design solutions. Rather, use of the words "exemplary" or "for example" is intended to present concepts in a concrete manner.

[0041] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0042] Referring to FIG. 1, the embodiments of the present application provide a structural schematic diagram of a switching network 10, which includes a network device 11 and a plurality of peer devices. FIG. 1 shows two peer devices, namely a peer device 12 and a peer device 13. The network device 11 includes a plurality of local ports, such as a local port a, a local port b, a local port c and a local port d shown in FIG. 1. The peer device 12 includes a plurality of transmission ports, such as a transmission port e, a transmission port f, a transmission port g and a transmission port h shown in FIG. 1. The peer device 13 includes a plurality of transmission ports, such as a transmission port i, a transmission port j, a transmission port k and a transmission port m shown in FIG. 1.

[0043] Among them, the local port a is connected with the transmission port e, the local port b is connected with the transmission port g, the local port c is connected with the transmission port j, and the local port d is connected with the transmission port m.

[0044] For example, when a first signal output by the transmission port e needs to be transmitted to the transmission port j, and a second signal output by the transmission port g needs to be transmitted to the transmission port m, the network device 11 is usually configured to couple the local port a with the local port c, and couple the local port b with the local port d, so that the first signal output by the transmission port e is transmitted to the transmission port j through the local port a and the local port c, and the second signal output by the transmission port g is transmitted to the transmission port m through the local port b and the local port d.

[0045] In some embodiments, the network device 11 can also be configured to couple the local port a with the local port d and couple the local port b with the local port c, so that the first signal output by the transmission port e is transmitted to the transmission port m through the local port a and the local port d, and the second signal output by the transmission port g is transmitted to the transmission port j through the local port b and the local port c.

[0046] For example, the switching network shown in FIG. 1 can be an optical switching network, such as a data center network (DCN), the transmission ports and the local ports are connected through optical fibers, and the network device 11 includes an optical switching device, an optical transport network (OTN) device, or the like. The peer device 12 and the peer device 13 can be, for example, electrical switching devices or servers, the electrical switching devices include switches, routers, packet transport network (PTN) devices, or the like, and each of the transmission ports of the peer device 12 and the peer device 13 is provided with an optical module to output an optical signal.

[0047] For example, the switching network shown in FIG. 1 can also be an electrical switching network, the transmission ports and the local ports are connected through electrical cables, and the network device 11 includes electrical switching devices, switches, routers, or the like. The peer device 12 and the peer device 13 can be, for example, electrical switches or servers, and each of the transmission ports of the peer device 12 and the peer device 13 does not need to be integrated with an optical module and can directly output an electrical signal. Alternatively, the transmission ports and the local ports are connected through optical fibers, and the local ports and the peer ports are both provided with optical modules, the optical module provided at the transmission port converts an electrical signal into an optical signal, and the optical module provided at the local port converts an optical signal into an electrical signal.

[0048] In fact, the number of local ports of the network device 11 is very large, and most of the local ports are connected with the transmission ports. In the prior art, the optical fibers or cables between the transmission ports and the local ports are usually labeled, and the optical fibers or cables are inserted and maintained manually according to the content on the labels. However, manual operation is prone to connection errors. For example, the transmission port e should be connected with the local port a through the optical fiber or cable, but the transmission port e is actually connected with the local port b through the optical fiber or cable by mistake. At this time, when the first signal output by the transmission port e needs to be transmitted to the transmission port j, although the network device 11 is configured to couple the local port a with the local port c and couple the local port b with the local port d, the first signal cannot be transmitted to the transmission port j because the local port a cannot receive the first signal at all. Finally, the first signal is transmitted to the transmission port m through the transmission port e, the local port b and the local port d. In the case of connection errors, manual adjustment is usually required. However, it is difficult to find the optical fiber or cable with connection errors, and it is also difficult to adjust the position of the optical fiber or cable after the optical fiber or cable is bundled.

[0049] Therefore, embodiments of the present application provide a network device, the local ports of which can be connected with the transmission ports of the opposite end device at will, and thus connection errors do not occur, and it is not necessary to adjust the position of the optical fiber or cable after the optical fiber or cable is bundled.

[0050] Referring to FIG. 2, a first embodiment of the present application provides a structural schematic diagram of a switching network 20, which includes a plurality of opposite end devices and a network device 21. FIG. 2 specifically shows two opposite end devices, namely an opposite end device 22 and an opposite end device 23. The network device 21 includes a plurality of local ports, such as a local port a, a local port b, a local port c and a local port d shown in FIG. 2. The opposite end device 22 includes a plurality of transmission ports, such as a transmission port e, a transmission port f, a transmission port g and a transmission port h shown in FIG. 2. The opposite end device 23 includes a plurality of transmission ports, such as a transmission port i, a transmission port j, a transmission port k and a transmission port m shown in FIG. 2.

[0051] The local port a is connected with the transmission port e, the local port b is connected with the transmission port g, the local port c is connected with the transmission port j, and the local port d is connected with the transmission port m.

[0052] Referring to FIG. 2, the network device 21 further includes a memory 211, a processor 212 and a switching device 213, and the local port a, the local port b, the local port c and the local port d are further connected with the switching device 213 respectively.

[0053] The memory 211 stores a correspondence between port numbers of local ports and identifications of transmission ports. The correspondence is shown in Table 1 below.

[0054] The identification of a transmission port includes a device number (also called device ID) of a peer device and a port number of the transmission port. For example, when the device number of the peer device 22 is "1" and the port number of the transmission port e is "1", the identification of the transmission port e is "1-1"; when the device number of the peer device 22 is "1" and the port number of the transmission port g is "3", the identification of the transmission port g is "1-3"; when the device number of the peer device 23 is "2" and the port number of the transmission port j is "2", the identification of the transmission port j is "2-2"; when the device number of the peer device 23 is "2" and the port number of the transmission port m is "4", the identification of the transmission port m is "2-4".

[0055] The port number of the local port a is "1", the port number of the local port b is "2", the port number of the local port c is "3", and the port number of the local port d is "4".

[0056] Table 1: Correspondence between port numbers of local ports and identifications of transmission ports

[0057] The identification of the local port a with the port number "1" is "1-1", indicating that the local port a is connected to the transmission port e; the identification of the local port b with the port number "2" is "1-3", indicating that the local port b is connected to the transmission port g; the identification of the local port c with the port number "3" is "2-2", indicating that the local port c is connected to the transmission port j; and the identification of the local port d with the port number "4" is "2-4", indicating that the local port d is connected to the transmission port m.

[0058] The processor 212 is configured to receive connection configuration information, which includes information that the first transmission port is connected to the second transmission port. For example, the identification of the first transmission port is "1-1" and the identification of the second transmission port is "2-2", and the information that the first transmission port is connected to the second transmission port can be information that "1-1" is connected to "2-2". The connection configuration information includes the information that "1-1" is connected to "2-2".

[0059] The processor 212 outputs coupling information indicating that the first local port is coupled with the second local port to the switching device 213 according to the connection configuration information. The port number of the first local port is the port number of the local port corresponding to the identifier of the first transmission port in the correspondence relationship, and the port number of the second local port is the port number of the local port corresponding to the identifier of the second transmission port in the correspondence relationship. Specifically, the identifier of the first transmission port is "1-1", and the port number of the first local port corresponding to the identifier of the first transmission port "1-1" in the correspondence relationship between the port numbers of the local ports and the identifiers of the transmission ports in Table 1 is "1", indicating that the first local port is the local port a. The identifier of the second transmission port is "2-2", and the port number of the second local port corresponding to the identifier of the second transmission port "2-2" in the correspondence relationship between the port numbers of the local ports and the identifiers of the transmission ports in Table 1 is "3", indicating that the second local port is the local port c. The processor 212 specifically outputs coupling information indicating that the local port a is coupled with the local port c to the switching device 213 according to the connection configuration information.

[0060] The switching device 213 is configured to couple the first local port with the second local port according to the coupling information. Specifically, the first local port is the local port a, and the second local port is the local port c, and the switching device 213 specifically couples the local port a with the local port c.

[0061] In the network device 21, since the correspondence relationship between the port numbers of the local ports and the identifiers of the transmission ports is stored in the memory 211, and the processor 212 receives the connection configuration information including the information that the first transmission port is connected with the second transmission port, the processor 212 outputs coupling information indicating that the first local port is coupled with the second local port according to the connection configuration information, so that the switching device 213 couples the first local port with the second local port according to the coupling information. The port number of the first local port is the port number of the local port corresponding to the identifier of the first transmission port in the correspondence relationship, and the port number of the second local port is the port number of the local port corresponding to the identifier of the second transmission port in the correspondence relationship. When the correspondence relationship between the port numbers of the local ports and the identifiers of the transmission ports is determined, the port number of the local port is determined according to the identifier of the transmission port, so that the transmission port and the local port can be connected arbitrarily, and there is no problem of connection error, and thus it is not necessary to adjust the position of the optical fiber or the cable that has been bundled. In addition, when the connection relationship between the local port and the transmission port is replaced, the correspondence relationship between the port number of the local port and the identifier of the transmission port can be adjusted in time.

[0062] For example, the identification of the third transmission port is "1-3", and the identification of the fourth transmission port is "2-4". The information that the third transmission port is connected with the fourth transmission port can be, for example, information that "1-3" is connected with "2-4". The connection configuration information includes the information that "1-1" is connected with "2-2", and the information that "1-3" is connected with "2-4".

[0063] The processor 212 is further configured to output, to the switching device 213, coupling information indicating that a third local port and a fourth local port are coupled according to the connection configuration information, the port number of the third local port being the port number of the local port corresponding to the identification of the third transmission port in the correspondence relationship, and the port number of the fourth local port being the port number of the local port corresponding to the identification of the fourth transmission port in the correspondence relationship. Specifically, the identification of the third transmission port is "1-3", and the identification of the third transmission port "1-3" corresponds to the port number "2" of the third local port in the correspondence relationship table of the port numbers of the local ports and the identifications of the transmission ports in Table 1, indicating that the third local port is the local port b. The identification of the fourth transmission port is "2-4", and the identification of the fourth transmission port "2-4" corresponds to the port number "4" of the fourth local port in the correspondence relationship table of the port numbers of the local ports and the identifications of the transmission ports in Table 1, indicating that the fourth local port is the local port d. The processor 212 outputs, to the switching device 213, coupling information indicating that the local port b and the local port d are coupled according to the connection configuration information.

[0064] The switching device 213 is configured to couple the third local port and the fourth local port according to the coupling information. Specifically, the third local port is the local port b, and the fourth local port is the local port d. The switching device 213 specifically couples the local port b and the local port d. For example, when the connection configuration information includes information of n pairs of transmission ports connected, the processor 212 outputs, to the switching device 213, coupling information indicating that n pairs of local ports are coupled according to the connection configuration information, and the switching device 213 couples n pairs of local ports according to the coupling information. Wherein, the information that "1-1" is connected with "2-2" is information of 1 pair of transmission ports connected, the coupling information that the local port a and the local port c are coupled is coupling information of 1 pair of local ports coupled, and the coupling of the local port a and the local port c is 1 pair of local ports coupled.

[0065] For example, in order to ensure the correspondence between the port number of the local port stored in the network device 21 and the identification of the transmission port, generally, the opposite device 22 is configured to output an identification signal for determining the identification of the transmission port outputting the identification signal, and the identification of the transmission port includes the device number of the opposite device 22 and the port number of the transmission port; the opposite device 23 is configured to output an identification signal for determining the identification of the transmission port outputting the identification signal, and the identification of the transmission port includes the device number of the opposite device 23 and the port number of the transmission port. Specifically, the transmission ports of the opposite device 22 and the transmission ports of the opposite device 23 can be controlled to output identification signals to the network device 21 respectively, and the identification signal outputted by each transmission port includes the identification of the transmission port.

[0066] Specifically, the transmission port e outputs an identification signal S1 to the local port a, and the identification signal S1 is used to determine the identification of the transmission port e outputting the identification signal S1, and the identification of the transmission port e includes the device number of the opposite device 22 and the port number of the transmission port e. According to the above example, the identification of the transmission port e is specifically “1-1”.

[0067] The transmission port g outputs an identification signal S2 to the local port b, and the identification signal S2 is used to determine the identification of the transmission port g outputting the identification signal S2, and the identification of the transmission port g includes the device number of the opposite device 22 and the port number of the transmission port g. According to the above example, the identification of the transmission port g is specifically “1-3”.

[0068] The transmission port j outputs an identification signal S3 to the local port c, and the identification signal S3 is used to determine the identification of the transmission port j, and the identification of the transmission port j includes the device number of the opposite device 23 and the port number of the transmission port j. According to the above example, the identification of the transmission port j is specifically “2-2”.

[0069] The transmission port m outputs an identification signal S4 to the local port d, and the identification signal S4 is used to determine the identification of the transmission port m, and the identification of the transmission port m includes the device number of the opposite device 23 and the port number of the transmission port m. According to the above example, the identification of the transmission port m is specifically “2-4”.

[0070] Exemplarily, the transmission port of the peer device 22 and the transmission port of the peer device 23 can output an identification signal including the identification of the transmission port to the network device 21 at a predetermined time interval (periodically and autonomously), and the predetermined time interval can be, for example, 10 seconds, 1 minute, etc.; or the transmission port of the peer device 22 and the transmission port of the peer device 23 can output an identification signal including the identification of the transmission port to the network device 21 before sending a service signal or receiving a service signal, so that the correspondence between the port number of the local port and the identification of the transmission port stored in the network device 21 can be updated in real time.

[0071] Exemplarily, each transmission port in the peer device 22 can output an identification signal including the identification of the transmission port, and specifically, the peer device 22 is provided with a register corresponding to each different transmission port, and the register stores the identification of the transmission port corresponding to the register. Each transmission port in the peer device 23 can output an identification signal including the identification of the transmission port, and specifically, the peer device 23 is provided with a register corresponding to each different transmission port, and the register stores the identification of the transmission port corresponding to the register.

[0072] Exemplarily, in order to implement the processing of the identification signal, the network device 21 generally comprises a detection device 214, which receives the identification signal from the peer device through the local port, and the identification signal includes the identification of the transmission port in the peer device that sends the identification signal; the identification of the transmission port connected to the local port is determined according to the identification signal, and the port number of the local port and the corresponding identification of the transmission port are output to the storage 211.

[0073] Specifically, the detection device 214 receives the identification signal S1 from the peer device 22 through the local port a, the identification signal S1 includes the identification of the transmission port e in the peer device 22 that sends the identification signal S1, the detection device 214 determines the identification of the transmission port e connected to the local port a as “1-1” according to the identification signal S1, and outputs the port number “1” of the local port a and the corresponding identification “1-1” of the transmission port e to the storage 211.

[0074] The detection device 214 receives the identification signal S2 from the peer device 22 through the local port b, the identification signal S2 includes the identification of the transmission port g in the peer device 22 that sends the identification signal S2, the detection device 214 determines the identification of the transmission port g connected to the local port b as “1-3” according to the identification signal S2, and outputs the port number “2” of the local port b and the corresponding identification “1-3” of the transmission port g to the storage 211.

[0075] The detecting device 214 receives the identification signal S3 from the opposite device 23 through the local port c, the identification signal S3 comprises the identification of the transmission port j in the opposite device 23 which sends the identification signal S3, the detecting device 214 determines the identification of the transmission port j connected with the local port c as "2-2" according to the identification signal S3, and outputs the port number "3" of the local port c and the identification "2-2" of the corresponding transmission port j to the memory 211.

[0076] The detecting device 214 receives the identification signal S4 from the opposite device 23 through the local port d, the identification signal S4 comprises the identification of the transmission port m in the opposite device 23 which sends the identification signal S4, the detecting device 214 determines the identification of the transmission port m connected with the local port d as "2-4" according to the identification signal S4, and outputs the port number "4" of the local port d and the identification "2-4" of the corresponding transmission port m to the memory 211.

[0077] More specifically, referring to Fig. 2, one local port is connected with one transmission port of the opposite device through an optical fiber, and the identification signal is an optical signal. In this example, the switching device 213 is a switching matrix.

[0078] Specifically, the transmission port e of the opposite device 22 is provided with an optical module 221, and the identification signal S1 output by the transmission port e is an optical signal; the transmission port f of the opposite device 22 is provided with an optical module 222, and the identification signal output by the transmission port f is an optical signal; the transmission port g of the opposite device 22 is provided with an optical module 223, and the identification signal S2 output by the transmission port g is an optical signal; the transmission port h of the opposite device 22 is provided with an optical module 224, and the identification signal output by the transmission port h is an optical signal.

[0079] Specifically, the transmission port e of the opposite device 22 is provided with an optical module 221, and the identification signal S1 output by the transmission port e is an optical signal; the transmission port f of the opposite device 22 is provided with an optical module 222, and the identification signal output by the transmission port f is an optical signal; the transmission port g of the opposite device 22 is provided with an optical module 223, and the identification signal S2 output by the transmission port g is an optical signal; the transmission port h of the opposite device 22 is provided with an optical module 224, and the identification signal output by the transmission port h is an optical signal.

[0080] The identification signal received by the network device 21 is an optical signal. In order to process the identification signal in the form of an optical signal, the network device 21 further comprises a plurality of optical splitters 215, and the number of the detector 214 is one. One local port is connected to the switch device 213 through one optical splitter 215, and each optical splitter 215 is further connected to the detector 214.

[0081] The optical splitter 215 is configured to receive the identification signal through the local port, transmit the first part of the identification signal to the switch device 213, and transmit the second part of the identification signal to the detector 214.

[0082] Specifically, as shown in FIG. 2, FIG. 2 specifically shows four optical splitters, which are an optical splitter 215-1, an optical splitter 215-2, an optical splitter 215-3, and an optical splitter 215-4. The local port a is connected to the switch device 213 through the optical splitter 215-1, and the optical splitter 215-1 is further connected to the detector 214. The optical splitter 215-1 is configured to receive the identification signal S1 through the local port a, transmit the first part of the identification signal S1 to the switch device 213, and transmit the second part of the identification signal S1 to the detector 214.

[0083] The local port b is connected to the switch device 213 through the optical splitter 215-2, and the optical splitter 215-2 is further connected to the detector 214. The optical splitter 215-2 is configured to receive the identification signal S2 through the local port b, transmit the first part of the identification signal S2 to the switch device 213, and transmit the second part of the identification signal S2 to the detector 214.

[0084] The local port c is connected to the switch device 213 through the optical splitter 215-3, and the optical splitter 215-3 is further connected to the detector 214. The optical splitter 215-3 is configured to receive the identification signal S3 through the local port c, transmit the first part of the identification signal S3 to the switch device 213, and transmit the second part of the identification signal S3 to the detector 214.

[0085] The local port d is connected to the switch device 213 through the optical splitter 215-4, and the optical splitter 215-4 is further connected to the detector 214. The optical splitter 215-4 is configured to receive the identification signal S4 through the local port d, transmit the first part of the identification signal S4 to the switch device 213, and transmit the second part of the identification signal S4 to the detector 214.

[0086] The detecting device 214 is configured to receive each of the second partial signals input by the different local ports, and determine the identity of each of the transmission ports connected to the different local ports according to each of the second partial signals. Specifically, the detecting device 214 receives the second partial signal S12 input by the local port a, and determines the identity of the transmission port e connected to the local port a according to the second partial signal S12; receives the second partial signal S22 input by the local port b, and determines the identity of the transmission port g connected to the local port b according to the second partial signal S22; receives the second partial signal S32 input by the local port c, and determines the identity of the transmission port j connected to the local port c according to the second partial signal S32; receives the second partial signal S42 input by the local port d, and determines the identity of the transmission port m connected to the local port d according to the second partial signal S42.

[0087] For example, the detecting device 214 can determine the identity of each of the transmission ports connected to the different local ports according to each of the second partial signals in time, in area, or according to other algorithms. For example, the detecting device 214 receives the second partial signal S12 in a first time period, and determines the identity of the transmission port e connected to the local port a according to the second partial signal S12 in the first time period; receives the second partial signal S22 in a second time period, and determines the identity of the transmission port g connected to the local port b according to the second partial signal S22 in the second time period; and so on. For another example, the detecting device 214 is divided into multiple areas inside, the first area inside the detecting device 214 receives the second partial signal S12, and determines the identity of the transmission port e connected to the local port a according to the second partial signal S12; the second area inside the detecting device 214 receives the second partial signal S22, and determines the identity of the transmission port g connected to the local port b according to the second partial signal S22; and so on.

[0088] When the detecting device 214 is one, the detecting device 214 needs to distinguish the second partial signal received from which local port.

[0089] For example, referring to FIG. 2, after the switching device 213 couples the first local port with the second local port according to the coupling information, the transmission port e (the first transmission port) outputs the service signal S100, which is specifically an optical signal, and the network device 21 is configured to receive the service signal S100 output by the transmission port e (the first transmission port) through the local port a (the first local port) and transmit the service signal S100 to the transmission port j (the second transmission port) through the local port c (the second local port). More specifically, in the switching network 20 shown in FIG. 2, the local port a of the network device 21 receives the service signal S100 output by the transmission port e, and the optical splitter 215-1 can transmit a first part of the service signal S100 to the switching device 213 and a second part of the service signal S100 to the detection device 214; the switching device 213 transmits the first part of the service signal S100 to the transmission port j through the local port c.

[0090] For example, the modulation mode of the identification signal S1 output by the transmission port e shown in FIG. 2 can be the same as or different from the modulation mode of the service signal S100. When the modulation mode of the identification signal S1 output by the transmission port e is different from the modulation mode of the service signal S100, the demodulation mode of the detection device 214 can be set so that the detection device 214 can determine the identification of the transmission port according to the identification signal and does not demodulate the service signal, thereby reducing the signal processing complexity of the detection device 214.

[0091] When the modulation mode of the identification signal S1 output by the transmission port e is the same as the modulation mode of the service signal S100, the terminal device 22 outputs the identification signal S1 when there is no service transmission and outputs the service signal S100 when there is service transmission.

[0092] In some embodiments, referring to FIG. 2, the processor 212 is further configured to receive parameter configuration information, and the parameter configuration information includes parameters corresponding to the transmission port. For example, the parameters can be priority, optical power threshold, etc.

[0093] For example, when the priority of the service signal S100 output by the transmission port e of the terminal device 22 is to be set as high priority, the parameter configuration information can include the priority of the transmission port e as high priority.

[0094] For example, when setting the optical power threshold of the service signal S100 output by the transmission port e of the opposite end device 22, the parameter configuration information can include the optical power threshold of the transmission port e as the first optical power. When the second part of the service signal S100 is transmitted to the detection device 214 by the optical splitter 215-1, the detection device 214 can determine the optical power of the second part of the service signal S100, and transmit the port number of the local end port a and the optical power of the second part of the service signal S100 to the processor 212. The processor 212 can query the transmission port corresponding to the local end port a as the transmission port e according to the port number of the local end port a in Table 1, and determine the quality of the service signal S100 according to the optical power of the second part of the service signal S100 and the optical power threshold corresponding to the transmission port e. For example, the processor 212 receives the optical power of the second part of the service signal S100 as the second optical power, and the processor 212 knows that the splitting ratio of the optical splitter 215-1 is 1:10 for the second part of the signal to the first part of the signal, so the processor 212 can know that the optical power of the service signal S100 is the second optical power x 10, and the processor 212 can determine that the quality of the current service signal S100 is poor according to the second optical power x 10 being less than the first optical power, and the quality of the current service signal S100 is good according to the second optical power x 10 being greater than or equal to the first optical power.

[0095] For example, referring to FIG. 2, the connection configuration information further includes information that the third transmission port is connected to the fourth transmission port, and the switching device 213 further couples the third local end port to the fourth local end port according to the coupling information. In this case, the transmission port g (the first transmission port) outputs the service signal S200, and the network device 21 is configured to receive the service signal S200 output by the transmission port g (the third transmission port) through the local end port b (the third local end port), and transmit the service signal S200 to the transmission port m (the fourth transmission port) through the local end port d (the fourth local end port).

[0096] The parameter configuration information received by the processor 212 can also include the parameters corresponding to the transmission port g (the third transmission port). Specifically, when a parameter needs to be configured for a transmission port, the parameter configuration information can include the parameters corresponding to the transmission port.

[0097] In some embodiments, referring to FIG. 3, the number of detection devices 214 in the network device 21 shown in FIG. 3 is more than one, in FIG. 3, one local port is connected with the switching device 213 through one optical splitter 215, and each optical splitter is further connected with one detection device 214; the optical splitter 215 is configured to receive the identification signal through the local port, transmit the first part of the identification signal to the switching device 213, and transmit the second part of the identification signal to the detection device 214 connected with the optical splitter 215; the detection device 214 is configured to determine the identification of the transmission port connected with the local port according to the second part of the signal. In this way, one detection device 214 can avoid determining the identification of the transmission port connected with different local ports according to each second part of the signal in time sharing or area sharing or according to other algorithms.

[0098] Referring to FIG. 3, compared with the network device 21 shown in FIG. 2, the detection device 214 in the network device 21 shown in FIG. 3 includes the detection device 214-1, the detection device 214-2, the detection device 214-3, and the detection device 214-4.

[0099] The optical splitter 215-1 is connected with the detection device 214-1, the optical splitter 215-1 transmits the second part of the signal S12 to the detection device 214-1, and the detection device 214-1 determines the identification of the transmission port e connected with the local port a according to the second part of the signal S12.

[0100] The optical splitter 215-2 is connected with the detection device 214-2, the optical splitter 215-2 transmits the second part of the signal S22 to the detection device 214-2, and the detection device 214-2 determines the identification of the transmission port g connected with the local port b according to the second part of the signal S22.

[0101] The optical splitter 215-3 is connected with the detection device 214-3, the optical splitter 215-3 transmits the second part of the signal S32 to the detection device 214-3, and the detection device 214-3 determines the identification of the transmission port j connected with the local port c according to the second part of the signal S32.

[0102] The optical splitter 215-4 is connected with the detection device 214-4, the optical splitter 215-4 transmits the second part of the signal S42 to the detection device 214-4, and the detection device 214-4 determines the identification of the transmission port m connected with the local port d according to the second part of the signal S42.

[0103] For example, in the network device 21 shown in FIG. 2 and FIG. 3, the detection device 214 can specifically include a photoelectric converter and a demodulator. The photoelectric converter is configured to output an identification electrical signal according to the received signal; and the demodulator is configured to determine the identification of the transmission port according to the identification electrical signal.

[0104] Referring to FIG. 3, for example, when the local port a is damaged and the network device 21 further includes a local port p, the transmission port e can be directly connected with the local port p, the port number of the local port p is "5", at this time, the identification signal S1 is specifically received by the local port p, when the detection device 214 outputs the port number of the local port and the identification of the corresponding transmission port to the storage 211, the table 1 in the storage 211 will be updated, and the switching device 213 will change the "coupling the local port a with the local port c" which has been implemented to "coupling the local port p with the local port c":

[0105] The updated table 1: the correspondence table of the port number of the local port and the identification of the transmission port

[0106] Specifically, the identification of the transmission port corresponding to the local port a with the port number "1" is null, indicating that the local port a is not connected with the transmission port; the identification of the transmission port corresponding to the local port p with the port number "5" is "1-1", indicating that the local port p is specifically connected with the transmission port e. Wherein, when the processor 212 subsequently receives the connection configuration information, the identification of the first transmission port will be determined according to the port number of the corresponding first local port in the updated table 1: the correspondence table of the port number of the local port and the identification of the transmission port. Details are not described herein.

[0107] Wherein, the network device 21 in FIG. 2 and FIG. 3 receives and processes optical signals, wherein the identification signal output by the peer device 22 and the peer device 23 includes the identification of the transmission port, and the network device 21 can determine the identification of the transmission port outputting the identification signal according to the identification signal, specifically, the network device 21 and the peer device 22 specifically communicate through light sensor (LS) technology, the network device 21 and the peer device 23 specifically communicate through LS technology, and the detection device 214 in the network device 21 specifically performs light sensor detection.

[0108] For example, referring to FIG. 2 or FIG. 3, wherein the switching network 20 further includes a controller 24, the controller 24 is connected with the network device 21, and the controller 24 is configured to output connection configuration information to the network device 21. The controller 24 can be a network management device or the like of the switching network 20, for example. For example, the controller 24 is further configured to output parameter configuration information to the network device 21.

[0109] In some embodiments, the controller 24 can also be connected with the peer device 22 and the peer device 23, and the controller 24 controls the routing of the peer device 22 and the peer device 23. For example, two control modules can be included in the controller 24, the first control module is connected with the peer device 22 and the peer device 23, and controls the routing of the peer device 22 and the peer device 23, and the second control module is connected with the network device 21, and the next network device 21 outputs the connection configuration information.

[0110] For example, when the number of local ports of the network device 21 is limited, in order to realize that all the transmission ports are connected with the local ports, referring to FIG. 4, compared with the switching network 20 shown in FIG. 2, the switching network 20 shown in FIG. 4 further includes a network device 25, and the network device 25 further includes a memory 251, a processor 252, a switching device 253, and a plurality of local ports, specifically, a local port w, a local port x, a local port y, and a local port z, and the local port w, the local port x, the local port y, and the local port z are further connected with the switching device 253. Among them, the local port w is connected with the transmission port f, the local port x is connected with the transmission port h, the local port y is connected with the transmission port i, and the local port z is connected with the transmission port k. Specifically, the function of the memory 251 is similar to the function of the above-mentioned memory 211, the function of the processor 252 is similar to the function of the above-mentioned processor 212, and the function of the switching device 253 is similar to the function of the above-mentioned switching device 213, which will not be described here.

[0111] Among them, the network device 25 shown in FIG. 4 further includes a detection device 254 and a plurality of optical splitters 255, referring to FIG. 4, FIG. 4 specifically shows four optical splitters, which are an optical splitter 255-1, an optical splitter 255-2, an optical splitter 255-3, and an optical splitter 255-4, among them, the local port w and the switching device 253 are connected through the optical splitter 255-1, and the optical splitter 255-1 is further connected with the detection device 254. The optical splitter 255-1 is configured to receive the identification signal S5 through the local port w, transmit the first part signal S51 in the identification signal S5 to the switching device 253, and transmit the second part signal S52 in the identification signal S5 to the detection device 254.

[0112] The local port x and the switching device 253 are connected through the optical splitter 255-2, and the optical splitter 255-2 is further connected with the detection device 254. The optical splitter 255-2 is configured to receive the identification signal S6 through the local port x, transmit the first part signal S61 in the identification signal S6 to the switching device 253, and transmit the second part signal S62 in the identification signal S6 to the detection device 254.

[0113] The local port y is connected with the switching device 253 through a beam splitter 255-3, and the beam splitter 255-3 is also connected with the detecting device 254. The beam splitter 255-3 is configured to receive the identification signal S7 through the local port y, transmit a first part signal S71 in the identification signal S7 to the switching device 253, and transmit a second part signal S72 in the identification signal S7 to the detecting device 254.

[0114] The local port z is connected with the switching device 253 through a beam splitter 255-4, and the beam splitter 255-4 is also connected with the detecting device 254. The beam splitter 255-4 is configured to receive the identification signal S8 through the local port z, transmit a first part signal S81 in the identification signal S8 to the switching device 283, and transmit a second part signal S82 in the identification signal S8 to the detecting device 254.

[0115] The detecting device 254 is configured to receive the second part signals input from different local ports, determine the identification of the transmission port connected with the different local ports according to the second part signals, and output the port number of the different local ports and the identification of the corresponding transmission port to the memory 211, so that the memory 251 stores the correspondence between the port number of the local port and the identification of the transmission port, as shown in Table 2.

[0116] The identification of the transmission port includes the device number (also called device ID) of the opposite device and the port number of the transmission port. For example, when the device number of the opposite device 22 is “1” and the port number of the transmission port f is “2”, the identification of the transmission port f is “1-2”; when the device number of the opposite device 22 is “1” and the port number of the transmission port h is “4”, the identification of the transmission port h is “1-4”; when the device number of the opposite device 23 is “2” and the port number of the transmission port i is “1”, the identification of the transmission port i is “2-1”; and when the device number of the opposite device 23 is “2” and the port number of the transmission port k is “3”, the identification of the transmission port k is “2-3”.

[0117] For example, the port number of the local port w is “1”, the port number of the local port x is “2”, the port number of the local port y is “3”, and the port number of the local port z is “4”.

[0118] Table 2: Correspondence table between the port number of the local port and the identification of the transmission port

[0119] As can be seen, when multiple network devices are reserved in the switching network 20, each network device includes a memory, a processor and a switching device, and the memory of each network device stores a correspondence table of the identities of the local port and the transmission port of the network device.

[0120] In other embodiments, referring to FIG. 5, compared with the switching network 20 shown in FIG. 2, in the switching network 20 shown in FIG. 5, one local port is connected with one transmission port of the opposite device through a cable, and the identification signal is an electrical signal. No optical module is arranged at each transmission port of the opposite device 22, and no optical module is arranged at each transmission port of the opposite device 23. That is, the identification signal S1, the identification signal S2, the identification signal S3 and the identification signal S4 are all electrical signals. In this example, the switching device 213 is also referred to as a forwarding module.

[0121] In the example shown in FIG. 5, the number of the detection devices 214 is one, and the multiple local ports are connected with the switching device 213 through the detection device 214. That is, the identification signal received by any local port is transmitted to the switching device through the detection device 214 first.

[0122] The detection device 214 is configured to receive the identification signals input by the different local ports, and determine the identities of the transmission ports connected with the different local ports according to the identification signals. For example, the detection device 214 receives the identification signal S1 input by the local port a, and determines the identity of the transmission port e connected with the local port a according to the identification signal S1; receives the identification signal S2 input by the local port b, and determines the identity of the transmission port g connected with the local port b according to the identification signal S2; receives the identification signal S3 input by the local port c, and determines the identity of the transmission port j connected with the local port c according to the identification signal S3; receives the identification signal S4 input by the local port d, and determines the identity of the transmission port m connected with the local port d according to the identification signal S4.

[0123] For example, when the number of the detection devices 214 is one, the detection device 214 can determine the identities of the transmission ports connected with the different local ports according to the identification signals according to time sharing, area division or other algorithms.

[0124] In other embodiments, referring to FIG. 6, the number of the detection devices 214 can also be multiple, and one local port is connected with the switching device 213 through one detection device 214; the detection device 214 is configured to receive the identification signal through the connected local port.

[0125] Referring to FIG. 6, the detection devices 214 in the network device 21 include the detection device 214-1, the detection device 214-2, the detection device 214-3 and the detection device 214-4.

[0126] The local port a is connected with the switching device 213 through a detection device 214-1, which determines the identity of the transmission port e connected with the local port a according to the identity signal S1.

[0127] The local port b is connected with the switching device 213 through a detection device 214-2, which determines the identity of the transmission port g connected with the local port b according to the identity signal S2.

[0128] The local port c is connected with the switching device 213 through a detection device 214-3, which determines the identity of the transmission port j connected with the local port c according to the identity signal S3.

[0129] The local port d is connected with the switching device 213 through a detection device 214-4, which determines the identity of the transmission port m connected with the local port d according to the identity signal S4.

[0130] In the network device 21 in FIG. 5 and FIG. 6, the identity signal output by the opposite device 22 and the opposite device 23 includes the identity of the transmission port, and the network device 21 can determine the identity of the transmission port according to the identity signal. Specifically, the network device 21 and the opposite device 22 communicate through the link layer discovery protocol (LLDP), and the network device 21 and the opposite device 23 communicate through the link layer discovery protocol.

[0131] For example, referring to FIG. 5 or FIG. 6, the processor 212 in the network device 21 in FIG. 5 or FIG. 6 receives the connection configuration information, which includes the information that the first transmission port (transmission port e) is connected with the second transmission port (transmission port j). After the switching device 213 couples the first local port (local port a) with the second local port (local port c), the transmission port e (first transmission port) outputs the service signal S100, which is an electrical signal. The network device 21 is configured to receive the service signal S100 output by the transmission port e (first transmission port) through the local port a (first local port), and transmit the service signal S100 to the transmission port j (second transmission port) through the local port c (second local port). More specifically, in the switching network 20 in FIG. 5 or FIG. 6, the local port a of the network device 21 receives the service signal S100 output by the transmission port e, and transmits the service signal S100 to the switching device 213 through the detection device 214. The switching device 213 transmits the service signal S100 to the transmission port j through the detection device 214 and the local port c.

[0132] For example, in the peer device 22 shown in FIG. 5 or FIG. 6, the peer device 22 outputs the identification signal S1 when there is no service transmission, and outputs the service signal S100 when there is service transmission.

[0133] In some embodiments, referring to FIG. 5 or FIG. 6, the processor 212 is further configured to receive parameter configuration information, the parameter configuration information including parameters corresponding to the transmission port. For example, the parameter can be a priority, a traffic threshold, etc.

[0134] For example, when the priority of the service signal S100 output by the transmission port e of the peer device 22 is to be set as a high priority, the parameter configuration information can include that the priority of the transmission port e is a high priority.

[0135] For another example, when the traffic threshold of the service signal S100 output by the transmission port e of the peer device 22 is to be set, the parameter configuration information can include that the traffic threshold of the transmission port e is a first value. When the service signal S100 is transmitted to the switching device 213 through the detection device 214, the detection device 214 can determine the traffic size of the service signal S100, and transmit the local port a and the traffic size of the service signal S100 to the processor 212. The processor 212 queries the transmission port corresponding to the local port a in Table 1 according to the port number of the local port a, and determines whether the traffic of the service signal S100 is too large or too small according to the traffic size of the service signal S100 and the traffic threshold corresponding to the transmission port e. For example, the processor 212 receives the traffic of the service signal S100 as a second value, and the processor 212 can determine that the current traffic of the service signal S100 is normal according to that the second value is less than or equal to the first value, and the processor 212 can also determine that the current traffic of the service signal S100 is too large according to that the second value is greater than the second value.

[0136] For example, referring to FIG. 5 or FIG. 6, the switching network 20 further includes a controller 24, the controller 24 is connected with the network device 21, and the controller 24 is configured to output connection configuration information to the network device 21. The controller 24 can be a network management device of the switching network 20, etc.

[0137] In some embodiments, the controller 24 can also be connected with the peer device 22 and the peer device 23, and the controller 24 controls the routing of the peer device 22 and the peer device 23. For example, the controller 24 can include two control modules, a first control module is connected with the peer device 22 and the peer device 23, and controls the routing of the peer device 22 and the peer device 23, and a second control module is connected with the network device 21, and the next network device 21 outputs the connection configuration information.

[0138] For example, referring to FIG. 7, compared with the switching network 20 shown in FIG. 5, in the switching network 20 shown in FIG. 7, one local port is connected with one transmission port of the opposite device through an optical fiber, and the identification signal transmitted between the transmission port and the local port is an optical signal. An optical module is arranged at each transmission port of the opposite device 22, and an optical module is arranged at each transmission port of the opposite device 23, and an optical module 216 is arranged at each local port of the network device 21, and the optical module 216 is configured to convert the identification signal received by the local port into an electrical signal, so that the detection device 214 and the switching device 213 of the network device 21 receive the identification signal in the form of an electrical signal. The process of the detection device 214 processing the identification signal in the form of an electrical signal is shown in FIG. 5, and the process of the switching device 213 processing the identification signal in the form of an electrical signal is shown in FIG. 5.

[0139] Specifically, referring to FIG. 7, FIG. 7 shows four optical modules 216, which are optical module 216-1, optical module 216-2, optical module 216-3, and optical module 216-4. Specifically, the optical module 216-1 is arranged at the local port a, and the optical module 216-1 converts the received identification signal S1 in the form of an optical signal into an identification signal S1 in the form of an electrical signal, and transmits the identification signal S1 in the form of an electrical signal to the detection device 214; the optical module 216-2 is arranged at the local port b, and the optical module 216-2 converts the received identification signal S2 in the form of an optical signal into an identification signal S2 in the form of an electrical signal, and transmits the identification signal S2 in the form of an electrical signal to the detection device 214; the optical module 216-3 is arranged at the local port c, and the optical module 216-3 converts the received identification signal S3 in the form of an optical signal into an identification signal S3 in the form of an electrical signal, and transmits the identification signal S3 in the form of an electrical signal to the detection device 214; the optical module 216-4 is arranged at the local port d, and the optical module 216-4 converts the received identification signal S4 in the form of an optical signal into an identification signal S4 in the form of an electrical signal, and transmits the identification signal S4 in the form of an electrical signal to the detection device 214.

[0140] For example, referring to FIG. 8, compared with the switching network 20 shown in FIG. 6, in the switching network 20 shown in FIG. 8, one local port is connected with one transmission port of the opposite device through an optical fiber, and the identification signal transmitted between the transmission port and the local port is an optical signal. An optical module is arranged at each transmission port of the opposite device 22, and an optical module is arranged at each transmission port of the opposite device 23, and an optical module 216 is arranged at each local port of the network device 21, and the optical module is used to convert the identification signal received by the local port into an electrical signal, so that the detector 214 and the switching device 213 of the network device 21 receive the identification signal in the form of an electrical signal. The process of the detector 214 processing the identification signal in the form of an electrical signal is shown in FIG. 6, and the process of the switching device 213 processing the identification signal in the form of an electrical signal is shown in FIG. 6.

[0141] For example, referring to FIG. 7 or FIG. 8, the processor 212 in the network device 21 shown in FIG. 7 or FIG. 8 receives connection configuration information, the connection configuration information includes information that the first transmission port (transmission port e) is connected with the second transmission port (transmission port j), and the switching device 213 couples the first local port (local port a) with the second local port (local port c) according to the coupling information, and then the transmission port e (the first transmission port) outputs a service signal S100, and the service signal S100 is specifically an optical signal, and the network device 21 is configured to receive the service signal S100 output by the transmission port e (the first transmission port) through the local port a (the first local port), and transmit the service signal S100 through the local port c (the second local port) to the transmission port j (the second transmission port). Specifically, the network device 21 is configured to receive the service signal S100 output by the transmission port e (the first transmission port) through the local port a (the first local port), and the optical module 216-1 arranged at the local port a converts the service signal S100 into an electrical signal, and transmits the service signal S100 in the form of an electrical signal to the switching device 213 through the detector 214, and the switching device 213 transmits the service signal S100 in the form of an electrical signal to the optical module 216-3 arranged at the local port c through the detector 214, and the optical module 216-3 converts the service signal S100 in the form of an electrical signal into an optical signal, and transmits the service signal S100 in the form of an optical signal through the local port c (the second local port) to the transmission port j (the second transmission port).

[0142] In some embodiments, referring to FIG. 7 or FIG. 8, the processor 212 is further configured to receive parameter configuration information, and the parameter configuration information includes parameters corresponding to the transmission ports. For example, the parameters can be priority, optical power threshold, etc.

[0143] For example, when the priority of the service signal S100 output by the transmission port e of the opposite end device 22 is to be set as high priority, the parameter configuration information can include that the priority of the transmission port e is high priority.

[0144] For example, when the optical power threshold of the service signal S100 output by the transmission port e of the opposite end device 22 is to be set, the parameter configuration information can include that the optical power threshold of the transmission port e is the third optical power. When the service signal S100 is transmitted to the local end port a, the optical module 216-1 set at the local end port a is further configured to determine the power of the service signal S100 and transmit the power of the local end port a and the service signal S100 to the processor 212. The processor 212 queries the transmission port corresponding to the local end port a as the transmission port e according to the port number of the local end port a in Table 1, and determines whether the traffic of the service signal S100 is larger or smaller than the traffic threshold corresponding to the transmission port e according to the traffic of the service signal S100. For example, the processor 212 receives the fourth optical power of the service signal S100, and the processor 212 can determine that the quality of the current service signal S100 is poor according to that the fourth optical power is less than the third optical power, and the quality of the current service signal S100 is good according to that the fourth optical power is greater than or equal to the third optical power.

[0145] For example, the embodiment of the present application also provides a connection configuration method, which is applied to a network device, for example, the network device 21 described above, and the network device 21 includes a memory 211, a switching device 213, and a plurality of local end ports, the plurality of local end ports are connected with the switching device 213, and one local end port is connected with one transmission port of an opposite end device.

[0146] The memory 211 stores a correspondence between the port number of the local end port and the identification of the transmission port, and the identification of the transmission port includes the device number of the opposite end device and the port number of the transmission port.

[0147] The connection configuration method includes:

[0148] Receiving connection configuration information, the connection configuration information including information that a first transmission port is connected with a second transmission port.

[0149] Outputting coupling information for indicating that a first local end port is coupled with a second local end port to the switching device according to the connection configuration information, so that the switching device couples the first local end port with the second local end port according to the coupling information, wherein the port number of the first local end port is the port number of the local end port corresponding to the identification of the first transmission port in the correspondence, and the port number of the second local end port is the port number of the local end port corresponding to the identification of the second transmission port in the correspondence.

[0150] For example, the connection configuration method further includes:

[0151] The service signal output by the first transmission port is received by the first local port, and the service signal is transmitted to the second transmission port through the second local port.

[0152] For example, after the local port is connected to one transmission port of the opposite end device, the connection configuration method further includes:

[0153] An identification signal from the opposite end device is received by the local port, and the identification signal includes the identification of the transmission port of the opposite end device that sends the identification signal.

[0154] The identification of the transmission port connected to the local port is determined according to the identification signal, and the port number of the local port and the identification of the corresponding transmission port are output to the memory 211.

[0155] For example, the connection configuration method can be realized in the form of a software function module and sold or used as an independent product. The connection configuration method can be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application or the entire or part of the technical solutions that contribute to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the method described in the embodiments of the present application. The storage medium for storing computer software products includes a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.

[0156] Optionally, the embodiments of the present application further provide a computer-readable storage medium, which stores a computer program or instructions. When the computer program or instructions run on a computer, the computer executes the connection configuration method shown in any of the embodiments.

[0157] In the above embodiments, all or part of the embodiments can be realized by software, hardware, firmware, or any combination thereof. When realized by a software program, all or part of the embodiments can be realized in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program product runs on a computer, the computer executes the connection configuration method provided by the embodiments of the present application.

[0158] The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus or devices. The computer instructions can be stored in or transmitted from a computer readable storage medium, such as from one computer readable storage medium to another, for example, from a website, a computer, a server or a data center to another website, computer, server or data center via wired (e.g., coaxial cable, fiber optics, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer readable storage medium can be any available media that can be accessed by the computer or data storage devices such as one or more servers, data centers, etc. that can be integrated with the medium. The available media can be magnetic media (e.g., floppy disks, hard disks, tape), optical media (e.g., DVD), or semiconductor media (e.g., solid state drive (SSD)), etc.

[0159] Although the present application has been described in connection with certain specific features and embodiments thereof, it is to be understood that it is intended to cover various modifications and variations, which can be apparent to those skilled in the art without departing from the scope of the application. Accordingly, the description and drawings are to be regarded as illustrative in nature and are not to be taken in a restrictive sense, as the scope of the application is to be measured only by the appended claims and their equivalents. Obviously, many modifications and variations of the present application are possible in light of its teachings. It is, therefore, to be understood that within the scope of the claims and their equivalents, the application can be practiced otherwise than as specifically described.

Claims

1. A network device, comprising: The network device comprises a memory, a processor, a switching device and a plurality of local ports, the plurality of local ports are respectively connected with the switching device, one local port is connected with one transmission port of a peer device; The memory stores a corresponding relationship between port numbers of the local ports and identifications of the transmission ports, the identification of the transmission port comprises a device number of the peer device and a port number of the transmission port; The processor is configured to receive connection configuration information, the connection configuration information comprises information that a first transmission port is connected with a second transmission port; output coupling information indicating that a first local port is coupled with a second local port to the switching device according to the connection configuration information, the port number of the first local port is the port number of the local port corresponding to the identification of the first transmission port in the corresponding relationship, and the port number of the second local port is the port number of the local port corresponding to the identification of the second transmission port in the corresponding relationship; The switching device is configured to couple the first local port with the second local port according to the coupling information.

2. The network device of claim 1, wherein, The network device further comprises a detection device; The detection device is configured to receive an identification signal from the peer device through the local port, the identification signal comprises an identification of a transmission port in the peer device sending the identification signal; determine the identification of the transmission port connected with the local port according to the identification signal, and output the port number of the local port and the corresponding identification of the transmission port to the memory.

3. The network device of claim 2, wherein, One local port is connected with one transmission port of the peer device through an optical fiber, and the identification signal is an optical signal.

4. The network device according to claim 3, wherein The network device further comprises a plurality of optical splitters, the number of the detection devices is a plurality, one local port and the switching device are connected through one optical splitter, and each optical splitter is further connected with one detection device; The optical splitter is configured to receive an identification signal through the local port, transmit a first part of the identification signal to the switching device, and transmit a second part of the identification signal to the detection device connected with the optical splitter; The detection device is configured to determine the identification of the transmission port connected with the local port according to the second part of the identification signal.

5. The network device according to claim 3, wherein The network device further comprises a plurality of optical splitters, the number of the detection devices is one, one local port and the switching device are connected through one optical splitter, and each optical splitter is further connected with the detection device; The optical splitter is configured to receive the identification signal through the local port, transmit a first part of the identification signal to the switching device, and transmit a second part of the identification signal to the detection device; The detection device is configured to receive the second part signals input by different local ports, and determine the identities of the transmission ports connected to the different local ports according to the second part signals. 6.The network device of claim 4 or 5, wherein, The detection device comprises an optical-electric converter and a demodulator. The optical-electric converter is configured to output an identity electrical signal according to the received signal. The demodulator is configured to determine the identity of the transmission port according to the identity electrical signal. 7.The network device of any one of claims 3-6, wherein, The network device and the peer device communicate through optical label technology.

8. The network device of claim 2, wherein, One of the local ports is connected to one of the transmission ports of the peer device through a cable, and the identity signal is an electrical signal.

9. The network device of claim 2, wherein, One of the local ports is connected to one of the transmission ports of the peer device through an optical fiber, and the identity signal is an optical signal. An optical module is arranged at each of the local ports of the network device. The optical module is configured to convert the identity signal received by the local port into an electrical signal. 10.The network device of claim 8 or 9, wherein, The number of detection devices is plural, and one of the local ports is connected to the switching device through one of the detection devices. The detection device is configured to receive the identity signal through the connected local port. 11.The network device of claim 8 or 9, wherein, The number of detection devices is one, and the plural local ports are connected to the switching device through the detection device. The detection device is configured to receive the identity signals input by different local ports, and determine the identities of the transmission ports connected to the different local ports according to the identity signals. 12.The network device of any one of claims 8-11, wherein, The network device and the peer device communicate through a link layer discovery protocol. 13.The network device of any one of claims 1-12, wherein, The connection configuration information further comprises information of a third transmission port connected to a fourth transmission port. The processor is further configured to output, to the switching device, coupling information indicating that a third local port and a fourth local port are coupled, a port number of the third local port being a port number of a local port corresponding to an identity of the third transmission port in the correspondence, and a port number of the fourth local port being a port number of a local port corresponding to an identity of the fourth transmission port in the correspondence. The switching device is further configured to couple the third local port and the fourth local port according to the coupling information. 14.The network device of any one of claims 1-13, wherein, The network device is further configured to receive the service signal output by the first transmission port through the first local port, and transmit the service signal to the second transmission port through the second local port.

15. The network device of any of claims 1-14, wherein, The processor is further configured to receive parameter configuration information, the parameter configuration information comprising parameters corresponding to the transmission ports.

16. A switching network, characterized by The switching network comprises a plurality of peer devices and the network device of any of claims 1-15, the peer devices comprising a plurality of transmission ports, and the network device comprising a plurality of local ports, one local port being connected to one transmission port.

17. The switching network of claim 16, wherein, The switching network further comprises a controller connected to the network device. The controller is configured to output the connection configuration information to the network device.

18. A peer device, comprising: The peer device comprises a plurality of transmission ports, one transmission port being connected to one local port of the network device. The peer device is configured to output an identification signal, the identification signal being used to determine the identification of the transmission port outputting the identification signal, the identification of the transmission port comprising a device number of the peer device and a port number of the transmission port.

19. A method of configuring a connection, characterized by The connection configuration method is applied to a network device, the network device comprising a memory, a switching device, and a plurality of local ports, the plurality of local ports being connected to the switching device, one local port being connected to one transmission port of a peer device. The memory stores a correspondence between port numbers of the local ports and identifications of the transmission ports, the identification of the transmission port comprising a device number of the peer device and a port number of the transmission port. The connection configuration method comprises: receiving connection configuration information, the connection configuration information comprising information that a first transmission port is connected to a second transmission port; outputting, according to the connection configuration information, coupling information indicating that a first local port is coupled to a second local port to the switching device, so that the switching device couples the first local port to the second local port according to the coupling information, wherein the port number of the first local port is the port number of the local port corresponding to the identification of the first transmission port in the correspondence, and the port number of the second local port is the port number of the local port corresponding to the identification of the second transmission port in the correspondence.

20. The connection configuration method of claim 19, wherein, The connection configuration method further comprises: receiving, through the first local port, a service signal output by the first transmission port, and transmitting the service signal to the second transmission port through the second local port.

21. The connection configuration method of claim 19 or 20, wherein, After the one local port is connected to the one transmission port of the peer device, the connection configuration method further comprises: receiving an identification signal from the opposite end device through the local port, the identification signal comprising an identification of a transmission port in the opposite end device which sends the identification signal; determining the identification of the transmission port connected with the local port according to the identification signal, and outputting the port number of the local port and the corresponding identification of the transmission port to the memory.

Citation Information

Patent Citations

  • Optical port connection management method, flange plate, jumping fiber and optical network equipment

    CN103339876A

  • Method for establishing or exchanging an optical transmission path for transmitting an optical signal, optical network node, base network, aggregation network or telecommunication network, system, program and computer

    CN118216100A

  • System and method for establishing information transmission channel based on optical fiber link

    CN118300688A

  • Automated Discovery of Communication Ports Coupled to a Switch

    US20130250964A1

  • Apparatus and modules for an optical network

    WO2010000307A1