Method and device for determining optical connection relation and computing equipment
The light emission and optical reception power of the optical module are obtained through the network management system, and the optical connection relationship is judged using the similarity score, which solves the problem of hardware increase and processing pressure in the prior art, and realizes low-cost and efficient determination of the optical connection relationship.
Patent Information
- Application Number
- CN202411613142.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-12
- Publication Date
- 2025-03-25
AI Technical Summary
Existing optical communication networks require additional hardware and processing pressure when determining optical connection relationships, resulting in high cost and limited accuracy.
The network management system obtains the light emitting power of the first optical module in the second period and the light emitting power of the second optical module in the second period, and uses the similarity score to determine whether the two have an optical connection relationship, avoiding additional hardware and processing pressure.
It realizes the low-cost and efficient determination of optical connection relationships, improves the accuracy of fault location, and reduces the processing pressure of network equipment.
Smart Images

Figure CN119696671A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of optical communication technology, and in particular to a method, device and computing equipment for determining an optical connection relationship. Background Art
[0002] As the services carried by optical communication networks become more and more diversified, efficient network fault location becomes increasingly important. The premise of network fault demarcation and location is to obtain the correct optical connection relationship in the network. Incorrect optical connection relationship will affect the accuracy of fault location.
[0003] In order to obtain the correct optical connection relationship, the practice of the existing optical communication network can be summarized as follows: the network device A at this end first superimposes a small-amplitude low-frequency signal (used to indicate port 1 of network device A) on the business optical signal to be transmitted, which is equivalent to an amplitude modulation of the top of the business optical signal, thereby obtaining a top-modulated signal, and then the top-modulated signal is sent from the optical module on port 1 to the network device B at the other end; network device B can determine port 1 of network device A by analyzing the top-modulated signal, and then combined with port 2 of network device B where the optical module that receives the top-modulated signal is located, it can be determined that port 1 of network device A and port 2 of network device B have an optical connection relationship.
[0004] However, the above approach has some defects: first, additional hardware needs to be added to the network device to generate the top adjustment signal, resulting in high modification costs; second, the network device needs to be able to parse the top adjustment signal to obtain the port information of the other end, which increases the processing pressure of the network device. Summary of the invention
[0005] The present application provides a method, apparatus and computing device for determining optical connection relationships, which can determine optical connection relationships in a network at low cost and efficiently.
[0006] In a first aspect, the present application provides a method for determining an optical connection relationship, which is applied to a network management system, and the method includes: the network management system obtains the luminous power of a first optical module of a first network device in a second time period, the luminous power of the second time period is the optical power obtained after scrambling the first parameter in the first time period, and the second time period includes the first time period; the network management system obtains the received optical power of a second optical module of a second network device in the second time period; when the luminous power in the second time period is similar to the received optical power in the second time period, it is determined that the first optical module and the second optical module have an optical connection relationship.
[0007] In the above scheme, the first optical module is scrambled by using the first parameter in the first time period, and the luminous power of the first optical module in the first time period is the scrambled luminous power (scrambling makes the luminous power present a certain change pattern, such as increase, decrease or up and down fluctuation, etc.), while the first parameter is not used to scramble the first optical module in the time period other than the first time period in the second time period, and the luminous power of the first optical module in the time period other than the first time period in the second time period is the luminous power without scrambling. For example, the luminous power of the optical module represents the intensity of the optical signal output by the optical module, the received optical power of the optical module represents the intensity of the optical signal received by the optical module, and the transmission speed of the optical signal in the optical fiber is very fast, therefore, the received optical power of the optical module having an optical connection relationship with the first optical module in the second time period should be similar to the luminous power of the first optical module in the second time period, that is, the received optical power of the optical module having an optical connection relationship with the first optical module in the first time period and the received optical power of the first optical module in the first time period present a similar change pattern.
[0008] Based on the above characteristics, the network management system obtains the light emitting power of the first optical module in the second time period and the light receiving power of the second optical module in the second time period, and then determines whether the two are similar: if there is similarity, it is determined that the second optical module is an optical module that has an optical connection relationship with the first optical module; if there is no similarity, it is determined that the second optical module has no optical connection relationship with the first optical module.
[0009] The above-mentioned network management system can directly obtain the luminous power / receiving power of the optical module reported by the network device, and can also indirectly calculate the luminous power of the optical module through the input current, bias current, temperature and other indicator data of the optical module reported by the network device. Since the indicators such as luminous power, receiving power, input current, bias current and temperature are white box indicators in the communication network, the network equipment will periodically report these indicators to the network management system. Therefore, this solution does not require the installation of additional devices on the network equipment and will not introduce modification costs. In addition, this solution is executed by the network management system, and there is no need for network devices to send port information to each other and parse the port information of the other end, so it will not increase the processing pressure of the network equipment.
[0010] Based on the first aspect, in a possible implementation scheme, the network management system sends a first command to the first network device, and the first command is used to indicate that the first parameter is a first value in a first time period; or, the network management system sends a first command to the first network device, and the first command is used to indicate that the first parameter is a first value in the first time period and a second value in a third time period included in the second time period, and the first value is not equal to the second value.
[0011] Based on the first aspect, in a possible implementation scheme, the first parameter is a bias current, and the first parameter is positively correlated with the luminous power of the first optical module in the second time period; or, the first parameter is temperature, and the first parameter is positively correlated or negatively correlated with the luminous power of the first optical module in the second time period.
[0012] For example, the bias current of the optical module (the laser in it) has a positive correlation with the luminous power of the optical module. If the bias current is increased, the luminous power of the optical module will increase, and if the bias current is reduced, the luminous power of the optical module will decrease. Therefore, by adjusting the bias current of the first optical module, the above scrambling can be achieved. The temperature of the optical module has a positive or negative correlation with the luminous power of the optical module. If the temperature of the optical module is below the temperature threshold, the temperature of the optical module is positively correlated with the luminous power of the optical module. If the temperature of the optical module is above the temperature threshold, the temperature of the optical module is negatively correlated with the luminous power of the optical module. Therefore, by adjusting the temperature of the first optical module, the above scrambling can also be achieved.
[0013] Based on the first aspect, in a possible implementation scheme, the network management system first obtains the similarity score between the light emitting power of the second time period and the light receiving power of the second time period, and then determines that the light emitting power of the second time period is similar to the light receiving power of the second time period based on the similarity score and the score threshold. In other words, the network management system can measure the similarity between the light emitting power of the first optical module in the second time period and the light receiving power of the second optical module in the second time period by calculating the similarity score, and then compare the similarity score with the score threshold to determine whether the light emitting power of the first optical module in the second time period and the light receiving power of the second optical module in the second time period are similar, and then determine whether the first optical module and the second optical module have an optical connection relationship.
[0014] Based on the first aspect, in a possible implementation scheme, the network management system first calculates one or more of the first score, the second score, the third score, the fourth score, and the fifth score, and then obtains the similarity score according to the one or more of the first score, the second score, the third score, the fourth score, and the fifth score.
[0015] (1) The first score is used to represent the Pearson correlation coefficient between the light emitting power of the first optical module in the second time period and the light receiving power of the second optical module in the second time period.
[0016] (2) The second score is used to indicate whether the direction of change of the light emitting power of the first optical module in the fourth time period is consistent with the direction of change of the light receiving power of the second optical module in the fourth time period, wherein the fourth time period is the time period from time t1-k1 to time t1+k2 in the second time period, t1 is the starting time of the first time period, k1 and k2 are used to indicate the duration, and k1 and k2 are both positive numbers.
[0017] (3) The third score is used to indicate whether the change direction of the light emitting power of the first optical module in the fifth time period is consistent with the change direction of the light receiving power of the second optical module in the fifth time period, wherein the fifth time period is the time period from time t2-k3 to time t2+k4 in the second time period, t2 is the end time of the first time period, k3 and k4 are used to indicate the duration, and both k3 and k4 are positive numbers;
[0018] (4) The fourth score is positively correlated or negatively correlated with the difference between the change amplitude of the light emitting power of the first optical module in the fourth period and the change amplitude of the light receiving power of the second optical module in the fourth period.
[0019] (5) The fifth score is positively correlated or negatively correlated with the difference between the change amplitude of the light emitting power of the first optical module in the fifth period and the change amplitude of the light receiving power of the second optical module in the fifth period.
[0020] Based on the first aspect, in a possible implementation scheme, the network management system can receive the luminous power of the second time period sent by the first network device, thereby directly obtaining the luminous power of the first optical module in the second time period without additional calculation / conversion.
[0021] Based on the first aspect, in a possible implementation scheme, the network management system receives first data sent by the first network device, the first data is used to represent the luminous power of the first optical module in the second time period, and then the network management system determines the luminous power of the first optical module in the second time period based on the first data (i.e., the corresponding luminous power is obtained by converting the first data).
[0022] Based on the first aspect, in a possible implementation scheme, the first data includes an input current or a bias current of the first optical module in the second time period.
[0023] For example, there is a mapping relationship between the input current I of the laser in the optical module and the luminous power P of the laser (called the PI characteristic of the laser). When the network management system obtains the input current of the laser of the first optical module at a certain moment from the first network device, the luminous power of the laser at that moment can be determined in combination with the PI characteristic, that is, the luminous power of the first optical module at that moment. The above input current I is obtained by superimposing the bias current on the modulation current (modulation signal), and generally the modulation current is very small relative to the bias current. Therefore, the bias current can be used as an approximate value of the input current, and the luminous power (an approximate value at this time) can be determined in combination with the PI characteristic.
[0024] Based on the first aspect, in a possible implementation scheme, the first optical module is plugged into the first port of the first network device, and the second optical module is plugged into the second port of the second network device, that is, the first optical module and the second optical module can be pluggable modules, plugged into the ports of the corresponding network devices, and when it is determined that the light emitting power of the first optical module in the second time period is similar to the light receiving power of the second optical module in the second time period, it can be determined that the first port where the first optical module is located and the second port where the second optical module is located have an optical connection relationship.
[0025] Based on the first aspect, in a possible implementation scheme, the first network device where the first optical module is located and the second network device where the second optical module is located correspond to the same or different network layers.
[0026] For example, the first network device where the first optical module is located and the second network device where the second optical module is located may both correspond to optical layer networks, such as being located in the same optical transport network or optical packet switching network.
[0027] For another example, the first network device where the first optical module is located is located in the Internet protocol (IP) layer network, and the second network device where the second optical module is located is located in the optical layer network. Among them, the IP layer network is composed of network devices such as routers, and mainly focuses on the service processing of user traffic. The optical layer network is composed of optical network devices such as wavelength division equipment, and mainly focuses on traffic transmission. The optical layer network provides the IP layer network with the function of link extension, and the IP layer network and the optical layer network support different network protocols. The section of optical fiber connecting the IP layer network and the optical layer network is usually called a pigtail. The solution based on the first aspect can quickly and efficiently determine the correct pigtail connection relationship. When a fault occurs in the optical layer network, the service of the IP layer network will be affected. When the IP layer network senses the fault, the network information at the IP level combined with the previously determined pigtail connection relationship can accurately locate the fault location in the optical layer network.
[0028] In a second aspect, the present application provides an apparatus for determining an optical connection relationship, comprising a module for executing a method as in any possible implementation scheme of the first aspect.
[0029] In a third aspect, the present application also provides a chip, including a processor and an interface, the interface being used to communicate with an external device or module of the chip, and the processor being used to execute a method as in any implementation scheme in the first aspect, which can be seen in the previous description and will not be repeated here.
[0030] In a fourth aspect, the present application further provides a computing device, comprising a processor and a memory, wherein the processor is configured to execute instructions stored in the memory so that the computing device executes a method as in any one of the embodiments in the first aspect.
[0031] In a fifth aspect, the present application further provides a computing device cluster, comprising a plurality of computing devices, each of which comprises a processor and a memory. The processors of the plurality of computing devices are used to execute instructions stored in the memories of the plurality of computing devices, so that the computing device cluster executes the method of any implementation scheme in the first aspect.
[0032] In a sixth aspect, the present application further provides a computer-readable storage medium comprising computer program instructions. When the above-mentioned computer program instructions are executed by a computing device or a computing device cluster, the computing device or the computing device cluster executes a method as in any implementation scheme in the first aspect.
[0033] In a seventh aspect, the present application further provides a computer program product comprising instructions. When the instructions are executed by a computing device or a computing device cluster, the computing device or the computing device cluster executes the method of any embodiment of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments.
[0035] Figure 1 It is a schematic diagram of a system architecture provided by this application;
[0036] Figure 2 It is a schematic diagram of the optical connection relationship between two optical modules provided in this application;
[0037] Figure 3 It is a flow chart of a method for determining an optical connection relationship provided by the present application;
[0038] Figure 4 It is a PI characteristic curve diagram of an optical module provided by the present application;
[0039] Figure 5 It is a schematic diagram of a set of light emitting power and light receiving power provided by this application;
[0040] Figure 6 It is a schematic diagram of a flow chart of determining an optical connection relationship by modifying a bias current provided in an embodiment of the present application;
[0041] Figure 7 It is a structural schematic diagram of a device for determining an optical connection relationship provided by the present application;
[0042] Figure 8 It is a structural schematic diagram of a computing device provided by the present application;
[0043] Fig. 9 is a schematic diagram of a computing device cluster provided by the present application;
[0044] Fig.10 It is a schematic diagram of two computing devices interacting through a network provided by the present application. DETAILED DESCRIPTION
[0045] To facilitate understanding of the technical solution of the present application, a system architecture involved in the present application is first introduced below.
[0046] See also Figure 1 , Figure 1 The embodiment of the present application provides a system architecture diagram, including a network management system (referred to as network management), a first network device, and a second network device. The network management system has a communication connection with the first network device, which can be a wired or wireless connection, and the network management system also has a communication connection with the second network device, which can be a wired or wireless connection, which is not specifically limited in the present application. The first optical module on the first network device and the second optical module on the second network device are connected via optical fiber (i.e., have an optical connection relationship).
[0047] about Figure 1 The type of network management system in the network is not specifically limited in this application. For example, the network management system includes a controller, which is responsible for managing and controlling the devices and resources in the network. Specifically, it can be a software defined network (Software Defined Network Controller, SDN) controller, an element management system (Element Management System, EMS) or other controllers, which is not limited in this application. The network management system may also include one or more analyzers and collectors. Among them, the controller is responsible for managing and controlling the devices and resources in the network, which can be a software defined network (Software Defined Network Controller, SDN) controller, an element management system (Element Management System, EMS) or other controllers, which is not limited in this application; the collector is used to collect data information in the network (including the status of network equipment, performance indicators, log information, etc.), so as to help administrators understand the operation of the network and the status of the equipment; the analyzer is a tool for analyzing network data traffic and performance (such as analyzing data packets, traffic patterns, performance indicators, etc.), so as to help administrators understand the operation of the network and diagnose problems in the network.
[0048] Optionally, the network management system can be deployed on a computing device, a computing device cluster consisting of multiple computing devices, or a terminal device. Among them, the computing device can be a physical server, a virtual machine, a container, or an edge computing device, etc. A virtual machine refers to a complete computer system with complete hardware system functions that is simulated by software and runs in a completely isolated environment. When creating a virtual machine in a computing device, part of the hard disk and memory capacity of the physical machine needs to be used as the hard disk and memory capacity of the virtual machine. Each virtual machine has an independent basic input / output system (CMOS), hard disk, and operating system, and can operate the virtual machine like a physical machine. A container is a portable software unit that can combine an application and all its dependencies into a software package that is not restricted by the underlying host operating system, so there is no need to build a complex environment, simplifying the process from application development to deployment. An edge computing device refers to a device that is closer to the data source and end user, and has low latency and high bandwidth characteristics, such as intelligent routing, edge servers, etc., which is not specifically limited in this application. The terminal device can be a desktop computer, a laptop, a tablet computer, a smart phone, a car device, or a smart conference device, etc., which is not limited in this application.
[0049] about Figure 1 The type of network devices (first network device and second network device) in the present application is not limited. For example, the network device may be a router, an optical switch, a wavelength division device, an optical transport network (Optical transport Network, OtN) device, a server, etc. The first optical module is located on the first network device, and the second optical module is located on the second network device. The first optical module and the second optical module are connected by an optical fiber, and the optical fiber is a pipeline (medium / transmission medium) for transmitting optical signals between the first optical module and the second optical module. The optical module is a hardware device, and its main function is to realize the photoelectric conversion and electro-optical conversion in the optical communication process. The optical module may include a transmitter optical sub-module (tOSA) (also an optical transmitter), a receiver optical sub-module (ROSA) (also an optical receiver) and a microcontroller unit (MCU) (also a functional circuit), etc. tOSA may include a laser and a modulator, etc. ROSA may include a photodetector (PD), etc. Based on the different types of optical modules, some optical modules include an optical digital signal processor (oDSP) chip, while some optical modules do not include an oDSP chip.
[0050] This application does not specifically limit the type of optical module.
[0051] For example, the types of optical modules include but are not limited to normal optical modules, linear-drive pluggable optics (LPO) modules, near package optics (NPO) modules, co-packaged optics (CPO) modules, half-retimed optics (HRO) modules, linear receive optics (LRO) modules, and transmitter retimed optics (tRO) modules, etc.
[0052] According to the transmission rate, optical modules can be classified into 400GE (Gigabit Ethernet) optical modules, 100GE optical modules, 40GE optical modules, 25GE optical modules, 10GE optical modules, GE optical modules, Fast Ethernet (FE) optical modules and other types to meet the needs of different transmission rates.
[0053] Classified by packaging type, the optical module 100 can include a small form-factor pluggable (SFP) optical module, a quad small form-factor pluggable (QSFP) optical module, a quad-small form-factor pluggable-double density (QSFP-DD) optical module, a 120Gb / s extended-capability formfactor pluggable (CXP) optical module, a centum form-factor pluggable (CFP) optical module, a CPO optical module, an LPO optical module, and the like.
[0054] This application does not limit the specific positional relationship between the network device and the optical module.
[0055] For example, if the optical module is a pluggable module, such as a traditional hot-pluggable optical module, or an optical module made using linear photonic optical (LPO) packaging technology, the optical module can be directly plugged into the port of the network device. Figure 2 For example, assuming that the first optical module and the second optical module are both pluggable optical modules, the first optical module is inserted into a port of the first network device (the port is the position where the first optical module is placed in the first network device), the second optical module is inserted into the second network device (the port is the position where the second optical module is placed in the second network device), the first end of an optical fiber is connected to the first optical module, and the second end of the optical fiber is connected to the second optical module, so that optical communication can be performed between the first network device and the second network device.
[0056] For another example, assuming that the optical module is a non-pluggable module, the optical module can be installed / integrated inside the network device. For example, the co-packaged optics (CPO) module is a packaging form that packages the optical module and the switching chip closely together, which can reduce the distance of the signal during the electro-optical conversion and transmission process, thereby significantly reducing power consumption, improving signal integrity, reducing latency, and reducing size. The CPO optical module packaged using CPO technology is placed inside the network device.
[0057] Figure 1 and Figure 2 The quantity relationship and position relationship among the network devices, optical modules, ports, optical fibers, etc. are all examples and do not constitute specific limitations. Figure 1 Only the connection between the first network device and the second network device is drawn. In fact, the first network device and the second network device can each be connected to more network devices, and the network management system can also be connected to more network devices. The number of ports on each network device, the number of optical modules, and the number of optical fibers connected to the optical modules can be set according to usage needs, and this application does not limit it. Figure 1 and Figure 2 A solid line represents an optical fiber, but it does not mean that there can only be one optical fiber, and there can be more optical fibers. For example, the first optical module and the second optical module can be connected through two optical fibers, one of which is used for the first optical module to transmit an optical signal to the second optical module. In this case, the first optical module is a transmitter and the second optical module is a receiver, and the other optical fiber is used for the second optical module to send an optical signal to the first optical module. In this case, the second optical module is a transmitter and the first optical module is a receiver.
[0058] based on Figure 1 and Figure 2 With reference to the description above, a method for determining an optical connection relationship provided by the present application is introduced below.
[0059] See also Figure 3 , Figure 3 It is a flowchart of a method for determining an optical connection relationship provided in an embodiment of the present application, including the following steps S301 to S303.
[0060] S301. The network management system obtains the luminous power of the first optical module of the first network device in the second time period, wherein the luminous power of the first optical module in the second time period is the optical power obtained after scrambling with the first parameter in the first time period, and the second time period includes the first time period.
[0061] The first optical module is located on the first network device. When the first optical module is a pluggable optical module, the first optical module can be plugged into a port (the port is not specifically limited) of the first network device. When the first optical module is a non-pluggable module, the first optical module can be installed inside the first network device. This application does not limit this. For the type and position relationship between the first optical module and the first network device, please refer to Figure 1 The relevant introduction is not repeated here.
[0062] The luminous power (also called the emitted optical power) of the first optical module refers to the intensity of the optical signal output / emitted by the laser in the first optical module. Since the first optical module is scrambled by using the first parameter in the first time period, the luminous power of the first optical module in the first time period is the scrambled luminous power, and the scrambling makes the luminous power present a certain change rule, such as increase, decrease, or up and down fluctuation, etc., and the first optical module is not scrambled by using the first parameter in the time period other than the first time period in the second time period, so the luminous power of the first optical module in the time period other than the first time period in the second time period is the non-scrambled luminous power.
[0063] The length of the second time period may be 30 seconds, 1 minute or other lengths, and this application does not make specific restrictions on this. The second time period includes the first time period, and the length of the first time period is less than the length of the second time period, and this application does not make specific restrictions on the length of the first time period.
[0064] Optionally, before step S301, the network management system may send a first command to the first network device, where the first command is used to indicate that the first parameter is a first value in the first time period, thereby scrambling the light emitting power of the first optical module in the first time period.
[0065] Optionally, before step S301, the network management system may send a first command to the first network device, the first command being used to indicate that the first parameter is a first value in the first time period and a third time period included in the second time period is a second value, and the first value is not equal to the second value, thereby scrambling the luminous power of the first optical module in the first time period. The third time period and the first time period are different time periods in the second time period, and the third time period may be all time periods in the second time period except the first time period, or may be part of the time period in the second time period except the first time period.
[0066] Optionally, the first parameter is bias current, and the first parameter is positively correlated with the luminous power of the first optical module in the second time period; or, the first parameter is temperature, and the first parameter is positively correlated or negatively correlated with the luminous power of the first optical module in the second time period.
[0067] For example, positive correlation means that the relationship between the two variables is positive, that is, when one variable increases, the other variable also increases accordingly, and when one variable decreases, the other variable also decreases accordingly. Negative correlation means that the relationship between the two variables is negative, that is, when one variable increases, the other variable decreases accordingly, and when one variable decreases, the other variable increases accordingly. Therefore, if the first parameter is positively correlated with the luminous power of the first optical module in the second time period, the luminous power of the first optical module in the second time period increases as the first parameter increases; if the first parameter is negatively correlated with the luminous power of the first optical module in the second time period, the luminous power of the first optical module in the second time period decreases as the first parameter increases.
[0068] For example, Figure 4 The PI characteristics of a laser in a certain optical module at different temperatures are given as examples. The PI characteristics refer to the mapping relationship between the input current I of the laser in the optical module and the light emitting power P of the laser.
[0069] Taking the PI characteristic corresponding to 30 degrees as an example, the input current I is positively correlated with the luminous power P, and the PI characteristic has an obvious threshold effect: when the input current of the laser is lower than the threshold current (the threshold current at different temperatures will be different, and the threshold current is the current value corresponding to the bend of the PI characteristic curve), the laser will hardly produce laser output (the luminous power is very small). When the input current of the laser exceeds the threshold current, the laser will produce obvious laser output, and the luminous power P increases linearly with the increase of the input current I (usually referred to as the linear working area of the laser). Among them, the input current I is obtained by superimposing the bias current of the laser on the modulation current (the two current directions are the same or opposite). In order to make the laser work in the linear working area, the bias current is set to a value greater than the threshold current. Usually, the bias current ranges from 10% to 20% of the rated current of the laser. If the rated current is 30mA, the bias current ranges from 3mA to 6mA, and this application does not make specific restrictions on this. Superimposing the modulation current on the basis of a fixed bias current can make the luminous power change with the modulation current.
[0070] The above input current I = bias current + modulation current (the two are superimposed), and the input current I is positively correlated with the luminous power P, so the bias current and the modulation current are also positively correlated with the luminous power P. However, the modulation current is related to the service and is not suitable as the first parameter to achieve the above scrambling, so the bias current can be used as the first parameter.
[0071] For example, the optical module also has a temperature characteristic, and the temperature of the optical module is positively or negatively correlated with the luminous power P of the optical module. When the temperature of the optical module is above the temperature threshold (the temperature thresholds of different optical modules may be the same or different), the temperature of the optical module is negatively correlated with the luminous power. This is because when the optical module works at high temperature, some physical and chemical changes that affect the optical module will occur, such as thermal expansion of the material, electronic attenuation of the luminescent material, etc. When the temperature of the optical module is below the temperature threshold, the temperature of the optical module is positively correlated with the luminous power. This is because the performance of the optical module will be limited under low temperature conditions. Therefore, the temperature can be used as the first parameter, and the above-mentioned scrambling of the luminous power of the first optical module can be achieved by adjusting the temperature of the first optical module.
[0072] Continue with Figure 4 For example, Figure 4 The PI characteristics of the laser in a certain optical module at different temperatures are given as an example. Assuming that the temperature threshold of the optical module is less than -10 degrees, when the temperature of the optical module is greater than or equal to -10 degrees, the temperature of the optical module is negatively correlated with the luminous power P of the optical module. Under the same input current I, the luminous power P of the optical module at -10 degrees is greater than the luminous power of the optical module at 30 degrees and greater than the luminous power of the optical module at 60 degrees.
[0073] Optionally, if the laser in the first optical module has a monitoring function, the first network device can directly obtain the luminous power monitored by the laser and send the luminous power to the network management system. If the laser in the first optical module does not have a monitoring function, the first network device can obtain the luminous power of the laser (that is, the luminous power of the optical module) by indirect calculation, and then send the luminous power obtained by indirect calculation to the network management system.
[0074] For example, the monitor photo diode (MPD) has a monitoring function and can detect its own luminous power. Therefore, if the laser in the first optical module includes an MPD, the first network device can obtain the luminous power of the second time period detected by the MPD and then send it to the network management system.
[0075] For lasers that do not have a monitoring function, they cannot directly detect the luminous power. In this case, the luminous power of the laser can be determined by indirect calculation. For example, by measuring the input current of the laser (i.e., the current passing through the laser), temperature and other physical parameters, the first network device can indirectly deduce the luminous power of the laser based on these physical parameters, and then send it to the network management system. Alternatively, the first network device can send the above physical parameters to the network management system, and then the network management system can indirectly calculate the luminous power of the laser. This application does not make any specific restrictions on the indirect calculation method.
[0076] For example, the luminous power of the first optical module in the second time period can be represented by the luminous power of the first optical module at N moments in the second time period. Wherein, N is a positive integer greater than or equal to 1, and the present application does not specifically limit the value of N. These N moments can be equally spaced or unequally spaced. For example, assuming that the N moments are equally spaced, that is, the time interval between adjacent moments in the N moments is a fixed value, the fixed value can be 1ms (milliseconds), 1s (seconds) or other time lengths, and the present application does not specifically limit the time interval.
[0077] Regarding the first optical module of the network management system acquiring the light emitting power in the second time period, the following method 1 and method 2 may be included.
[0078] Method 1: The first network device sends the luminous power of the first optical module in the second time period to the network management system. Correspondingly, the network management system receives the luminous power of the first optical module in the second time period sent by the first network device.
[0079] In this manner, since the first network device directly sends the luminous power of the first optical module in the second time period to the network device system, the first network management system can directly obtain the luminous power of the first optical module in the second time period without additional calculation / conversion.
[0080] Optionally, the first network device can locally sample data of one or more indicators according to a set sampling interval, and report the collected data of the one or more indicators at different times to the network device according to a set reporting period. The above one or more indicators include the luminous power of the first optical module, so the network management system can directly obtain the luminous power of the first optical module in the second time period from the data reported by the first network device. In addition to the luminous power, the first network device can also report one or more of the indicators such as the received light power, bias current, input current, temperature, voltage, etc. of the first optical module to the network management system, and can also upload other indicators of other optical modules or the first network device, which is not limited in this application.
[0081] The present application does not make any specific limitation on the above sampling interval. For example, the first network device may sample the luminous power of the first optical module every 1 ms (millisecond sampling interval), or the first network device may sample the luminous power of the first optical module every 1 s (second sampling interval).
[0082] The present application does not make any specific limitation on the reporting period. For example, the first network device may report the data of the one or more indicators (including the light emitting power of the first optical module) to the network management system every 5 to 10 minutes.
[0083] This application does not make any specific restrictions on the number of moments corresponding to the indicator data reported by the first network device each time. For example, assuming that the value of N is 30, and the first network device only reports the luminous power of 10 moments each time, then the luminous power of the first optical module at 30 moments in the second time period needs to be reported three times, and the network management system summarizes the luminous power reported three times by the first network device to obtain the luminous power of the first optical module at these 30 moments. If the number of moments corresponding to the indicator data reported by the first network device each time is greater than or equal to 30, then the network management system can obtain the luminous power of the first optical module at these 30 moments from the indicator data reported by the first network device once.
[0084] Method 2: The first network device sends first data to the network management system, where the first data is used to represent the luminous power of the first optical module in the second time period. Accordingly, the network management system receives the first data sent by the first network device, and then determines the luminous power of the first optical module in the second time period based on the first data.
[0085] In this method, since the first network device does not directly send the luminous power of the first optical module in the second time period to the network device system, but sends the first data representing (indicating) the luminous power of the second time period to the network management system, the network management system needs to obtain the luminous power of the first optical module in the second time period through indirect calculation, that is, to obtain the luminous power of the first optical module in the second time period through the first data conversion.
[0086] Optionally, the first data includes an input current (i.e., a current passing through a laser in the optical module, also referred to as a driving current) or a bias current of the first optical module in the second time period. The input current of the first optical module in the second time period can be represented by the input current of the first optical module at N moments in the second time period. The bias current of the first optical module in the second time period can be represented by the bias current of the first optical module at N moments in the second time period.
[0087] As mentioned above, there is a mapping relationship between the input current I of the laser in the optical module and the luminous power P of the laser (called the PI characteristic of the laser). When the network management system obtains the input current of the laser in the optical module at a certain moment from the first network device, the luminous power of the laser at that moment can be determined in combination with the PI characteristic, that is, the luminous power of the optical module at that moment.
[0088] For example, Figure 4 The PI characteristics of the laser in the first optical module at different temperatures are given as an example. When the network management system receives the input current of the first optical module in the second time period sent by the first network device, the network management system can determine the luminous power of the first optical module in the second time period based on the input current of the first optical module in the second time period and the PI characteristics of the first optical module.
[0089] For example, the optical module has a temperature effect. If the first network device also reports the temperature of the first optical module in the second time period to the network management system, then the network management system can accurately calculate the luminous power of the first optical module in the second time period based on the input current of the first optical module in the second time period, the temperature of the first optical module in the second time period, and the PI characteristics of the first optical module at the corresponding temperature. If the first network device does not report the temperature of the first optical module in the second time period to the network management system, then the network management system can estimate the temperature of the first optical module in the second time period based on the air temperature of the environment in which the first optical module is located in the second time period, the historical temperature of the first optical module, the usage time of the first optical module, and other information. This application does not limit the specific estimation method. Then, the network management system can calculate the luminous power of the first optical module in the second time period based on the input current of the first optical module in the second time period, the estimated temperature of the first optical module in the second time period, and the PI characteristics of the first optical module at the corresponding temperature.
[0090] For another example, as described above, the input current I of the optical module = bias current + modulation current, and the modulation current is usually a relatively weak current relative to the bias current, such as the bias current is 56mA and the modulation current is 0.05mA. Therefore, the bias current of the first optical module is an approximate value of the input current I of the first optical module. When the network management system receives the bias current of the first optical module in the second period sent by the first network device, but does not obtain the input current of the first optical module in the second period, the network management system can use the bias current of the first optical module in the second period to approximately replace the input current of the first optical module in the second period, and then calculate the luminous power of the first optical module in the second period in combination with the PI characteristic of the first optical module. Similar to the previous example, if the network management system here can obtain the temperature of the first optical module in the second period from the first network device, the luminous power of the first optical module in the second period can be calculated more accurately. If the network management system does not obtain the temperature of the first optical module in the second period from the first network device, the network management system can estimate the temperature of the first optical module in the second period, and then estimate the luminous power of the first optical module in the second period.
[0091] Optionally, the first command may include a first value, and the network management system sends the first command carrying the first value to the first network device, so that the first network device can directly obtain the first value from the first command, and then set the first parameter of the first optical module to the first value in the first time period. Alternatively, the first command may not include the first value, but include the difference between the first value and the default value of the first parameter, that is, the first change of the first value relative to the default value (which can be a positive or negative number), and the default value is stored in the first network device / first optical module. When the network management system sends the first command carrying the first change to the first network device, the first network device can obtain the first change from the first command, and then determine the first value based on the first change and the default value, and then set the first parameter of the first optical module to the first value in the first time period.
[0092] For example, assuming that the default value is 56mA, which is a value stored in the bias current register in the first optical module, the first parameter of the first optical module satisfies the default value in the bias current register by default (when not encrypted), so before the start time of the first time period, the first parameter of the first optical module is stabilized at the default value of 56mA. When the network management system sends the first command to the first network device, the first network device sets the first parameter of the first optical module to 56.7mA in the first time period according to the first value 56.7mA carried in the first command. After the first time period ends, the first network device adjusts the first parameter of the first optical module back to the default value of 56.7mA.
[0093] For another example, assuming that the default value is 56mA, which is a value stored in the bias current register in the first optical module, the first parameter of the first optical module satisfies the default value in the bias current register by default, so before the start time of the first time period, the first parameter of the first optical module is stable at 56mA. When the network management system sends the first command to the first network device, the first network device determines the first value to be 56mA+0.7mA=56.7mA based on the first change amount +0.7mA carried in the first command and the above-mentioned default value 56mA, and then sets the first parameter of the first optical module to 56.7mA in the first time period. After the first moment ends, the first network device adjusts the first parameter of the first optical module back to the default value 56.7mA.
[0094] For another example, the bias current register of the first network device or the first optical module stores a first value and a default value. By default, the first parameter of the first optical module satisfies the default value in the bias current register, so before the start time of the first time period, the first parameter of the first optical module is stabilized at the first value. When the network management system sends a first command to the first network device, the first network device automatically sets the first parameter of the first optical module to the first value in the bias current register in the first time period, and after the first time period ends, the first network device adjusts the first parameter of the first optical module back to the default value in the bias current register.
[0095] Optionally, the first command may include a first value and a second value, and the network power system sends the first command carrying the first value and the second value to the first network device, so that the first network device can directly obtain the first value from the first command, and then set the first parameter of the first optical module to the first value in the first time period and to the second value in the third time period. Alternatively, the first command may not include the second value, but include the difference between the second value and the default value of the first parameter, that is, the second change of the second value relative to the default value (which may be a positive or negative number), and the default value is stored in the first network device / first optical module. When the network management system sends the first command carrying the second change to the first network device, the first network device can obtain the second change from the first command, and then determine the second value based on the second change and the default value, and then set the first parameter of the first optical module to the second value in the third time period.
[0096] Optionally, the first command may include information indicating the first time period, such as the start time and end time of the first time period, or the start time of the first time period and the duration of the first time period, so that the first network device can determine the position of the first time period based on the above information in the first command, and then set the first parameter of the first optical module to the first value in the first time period. Alternatively, the first command may only carry the duration of the first time period, and the first network device automatically uses the moment T or moment Ti of receiving the first command as the start time of the first time period, i is a positive number, and this application does not make specific restrictions. Similarly, the first command may also include information indicating the third time period, and then set the first parameter of the first optical module to the second value in the third time period. For the sake of brevity, it is not repeated here.
[0097] S302: The network management system obtains the received light power of the second optical module of the second network device in the second time period.
[0098] The second optical module is located on the second network device. When the second optical module is a pluggable optical module, the second optical module can be plugged into a port of the second network device. When the second optical module is a non-pluggable module, the second optical module can be installed inside the second network device. This application does not limit this. For the type and position relationship between the second optical module and the second network device, please refer to Figure 1 The relevant introduction is not repeated here.
[0099] Optionally, the first network device and the second network device may correspond to the same or different network layers (network types). For example, the first network device and the second network device are both devices in an optical communication network (the network layer is the optical layer). For another example, the first network device is a network device in an Internet Protocol (IP) network (the network layer is the IP layer), and the second network device is a network device in an optical communication network (such as an optical transport network, an optical packet switching network, etc.). In this case, the first network device and the second network device correspond to different network layers (network types).
[0100] For example, the received light power of the second optical module refers to the intensity of the optical signal received by the second optical module. The received light power of the second optical module in the second time period can be represented by the light emitting power of the second optical module at N moments in the second time period, that is, the intensity of the optical signal received by the second optical module at each of the N moments. For the second time period and the N moments, please refer to the introduction in steps S301 and S302, which will not be repeated here.
[0101] It should be noted that the present application does not limit the execution order between steps S301 and S302, and the two can be executed successively. For example, the network management system executes S301 first and then S302, or executes S302 first and then S301, and can also execute S301 and S302 in parallel.
[0102] S303: When the light emitting power of the first optical module in the second time period is similar to the light receiving power of the second optical module in the second time period, the network management system determines that the first optical module and the second optical module have an optical connection relationship.
[0103] From the introduction of step S301, it can be known that the first optical module is scrambled using the first parameter in the first time period, and the luminous power of the first optical module in the first time period is the scrambled luminous power (scrambling makes the luminous power show a certain change pattern, such as increase, decrease or up and down fluctuation, etc.), and the first optical module is not scrambled using the first parameter in the time period other than the first time period in the second time period, and the luminous power of the first optical module in the time period other than the first time period in the second time period is the luminous power without scrambling. Since the transmission speed of the optical signal in the optical fiber is very fast, the time length of the optical signal from the first optical module to the optical module having an optical connection relationship with the first optical module can be ignored, and the received optical power of the optical module having an optical connection relationship with the first optical module in the second time period should be similar to the luminous power of the first optical module in the second time period, that is, the received optical power of the optical module having an optical connection relationship with the first optical module in the first time period and the received optical power of the first optical module in the first time period show a similar change pattern.
[0104] Based on the above characteristics, after the luminous power of the first optical module is scrambled as above, the network management system obtains the luminous power of the first optical module in the second time period (including the first time period of scrambling) and the received light power of the second optical module in the second time period, and then determines whether the luminous power of the first optical module in the second time period (including the first time period of scrambling) and the received light power of the second optical module in the second time period are similar, so as to determine whether the first optical module and the second optical module have an optical connection relationship. If the two are similar, the network management system determines that the first optical module and the second optical module have an optical connection relationship; if the two are not similar, the network management system determines that the first optical module and the second optical module do not have an optical connection relationship.
[0105] Optionally, the network management system first obtains a similarity score between the light emitting power of the first optical module in the second time period and the light receiving power of the second optical module in the second time period, where the similarity score is used to measure the similarity between the light emitting power of the first optical module in the second time period and the light receiving power of the second optical module in the second time period, and then determines whether the first optical module and the second optical module are similar based on the similarity score and the score threshold.
[0106] This application does not specifically limit the method of comparing the similarity score and the score threshold.
[0107] A possible comparison method is: when the similarity score is greater than or equal to the score threshold, it is determined that the light emitting power of the first optical module in the second time period and the light receiving power of the second optical module in the second time period are similar, and then it is determined that the first optical module and the second optical module have an optical connection relationship; when the similarity score is less than the score threshold, it is determined that the light emitting power of the first optical module in the second time period and the light receiving power of the second optical module in the second time period have no similarity, and then it is determined that the first optical module and the second optical module have no optical connection relationship.
[0108] This application does not limit the specific value of the above-mentioned score threshold. For example, multiple possible values (randomly selected or manually selected) are first set for the score threshold, and then the prediction accuracy (i.e., the accuracy of determining the optical connection relationship between optical modules) that can be obtained by the network management system under each value of the score threshold is evaluated respectively, and finally the value with the highest prediction accuracy is used as the final score threshold.
[0109] Regarding the evaluation of the prediction accuracy of the network management system under a certain value of the score threshold, a possible implementation method is as follows. First, a sample set for training the artificial intelligence model is obtained, and the sample set includes multiple positive samples and multiple negative samples. The present application does not specifically limit the number of positive samples and negative samples. Each positive sample is the light-emitting power and the received light power of two optical modules with an optical connection relationship in the same time period (including the time period when the light-emitting power of the optical module at the receiving end is scrambled, and the scrambling method is similar to the first time period described above). The negative sample is the light-emitting power and the received light power of two optical modules without an optical connection relationship in the same time period (including the time period when the light-emitting power of the optical module at the receiving end is scrambled). Different samples correspond to the same or different two optical modules, and the two optical modules in each sample serve as the transmitting end and the receiving end respectively. The judgment logic of the artificial intelligence model is: for any two optical modules, first calculate the similarity score of their received light power and light-emitting power in the same time period, and then determine whether the two optical modules have an optical connection relationship based on the similarity score and the score threshold. The network management system can use the above sample set to train the artificial intelligence model and evaluate the prediction accuracy of the model at a certain value of the first threshold.
[0110] Another possible comparison method is: when the similarity score is less than or equal to the score threshold, it is determined that the light emitting power of the first optical module in the second time period and the light receiving power of the second optical module in the second time period are similar, and then it is determined that the first optical module and the second optical module are optically connected; when the similarity score is greater than the score threshold, it is determined that the light emitting power of the first optical module in the second time period and the light receiving power of the second optical module in the second time period are not similar, and then it is determined that the first optical module and the second optical module are not optically connected. For the method of determining the score threshold, please refer to the previous introduction, which will not be repeated here.
[0111] Optionally, the network management system first calculates one or more of the first score, the second score, the third score, the fourth score, and the fifth score according to the light emitting power of the first optical module in the second time period (including the first time period) and the light receiving power of the second optical module in the second time period, and then obtains the similarity score according to the one or more items. The similarity score can be the average value, weighted sum value, or other calculation method of the one or more items, which is not specifically limited in this application.
[0112] (1) The first score is used to represent the Pearson correlation coefficient between the light emitting power of the first optical module in the second time period and the light receiving power of the second optical module in the second time period.
[0113] The Pearson correlation coefficient is also called the Pearson product-moment correlation coefficient. The Pearson correlation coefficient is a linear correlation coefficient used to measure the strength and direction of the linear relationship between two variables. Please refer to formula (1). The Pearson correlation coefficient is specifically defined as the quotient of the covariance and standard deviation between two variables X and Y, denoted as ρ. X,Y , its value is between -1 and 1, and the larger the absolute value, the stronger the correlation between the two variables. X,Y The absolute value of is used to indicate the strength of the linear correlation between two variables. The larger the absolute value, the stronger the linear correlation. X,Y The magnitude relationship between ρ and 0 is used to indicate the direction of the linear correlation between two variables. X,Y >0, indicating that X and Y are positively correlated (that is, when one variable increases, the other variable also tends to increase); when ρ X,Y <0, indicating that X and Y are negatively correlated (that is, when one variable increases, the other variable tends to decrease); when ρ X,Y =0, indicating that there is no linear correlation between X and Y.
[0114]
[0115] For example, assuming that the first parameter of the first optical module is the bias current, and the bias current is positively correlated with the luminous power of the first optical module, the first network device sets the bias current of the first optical module to a first value in a first time period (i.e., the scrambling period) according to a first command sent by the network management system. In the second time period, except for other time periods of the first time period, the bias current of the first optical module is a second value, and the first value is greater than the second value, so as to achieve scrambling of the luminous power of the first optical module.
[0116] Figure 5 The light emitting power of the first optical module and the light receiving power of the optical module having an optical connection relationship with the first optical module are shown. Affected by the above scrambling, the light emitting power of the first optical module in the first time period is greater than the light emitting power of the first optical module in the second time period except the first time period. In addition, there is a strong positive correlation between the light emitting power of the first optical module in the second time period (including the first time period) and the light receiving power of the optical module connected to the first optical module in the second time period.
[0117] Based on the above characteristics, in order to determine whether the second optical module is the optical module connected to the first optical module, the network management system can obtain the light emitting power of the first optical module in the second time period and the light receiving power of the second optical module in the second time period, where the second time period includes the first time period, and then calculate the Pearson correlation coefficient between the light emitting power of the first optical module in the second time period (as variable X) and the light receiving power of the second optical module in the second time period (as variable Y) according to formula (1). The Pearson correlation coefficient is used to measure the linear correlation between the light emitting power of the first optical module in the second time period and the light receiving power of the second optical module in the second time period, and then determine the first score according to the Pearson correlation coefficient to determine whether the first optical module and the second optical module have an optical connection relationship.
[0118] Assuming that the value range of the first score is 0 to 1, the Pearson correlation coefficient ρ X,Y The specific relationship of positive correlation with the first score score1 is: score1 = ρ X,Y If the value of the Pearson correlation coefficient calculated in the above manner is 0.8, it can be determined that the first score is 0.8.
[0119] The relationship between the Pearson correlation coefficient and the first score is merely an example and does not constitute a limitation. In actual application scenarios, the two may also be in other forms of positive correlation or negative correlation.
[0120] (2) The second score is used to indicate whether the change direction of the light emitting power of the first optical module in the fourth time period is consistent with the change direction of the light receiving power of the second optical module in the fourth time period.
[0121] Among them, the fourth time period is the time period from time t1-k1 to time t1+k2 within the second time period, t1 is the starting time of the first time period, k1 and k2 are used to represent the duration (the unit of duration can be milliseconds, seconds, etc., which is not specifically limited in this application), k1 and k2 are both positive numbers, k1 and k2 may be the same or different, that is, time t1-k1 is a moment before time t1, and time t1-k2 is a moment after time t1. In other words, the time range of the fourth time period is from time t1-k1 to time t1+k2, that is, the fourth time period is a time period before and after the starting time t1 of the first time period (including the starting time t1).
[0122] For example, when the network management system scrambles the luminous power of the first optical module in the first time period, the direction of change of the received light power of the optical module connected to the first optical module in the fourth time period is consistent with the direction of change of the luminous power of the first optical module in the fourth time period, and the two should show consistent changes of rising / falling together.
[0123] Based on the above characteristics, if the direction of change of the received light power of the second optical module in the fourth time period is consistent with the direction of change of the luminous power of the first optical module in the fourth time period, then the second optical module is likely to have an optical connection relationship with the first optical module. If the direction of change of the received light power of the second optical module in the fourth time period is inconsistent with the direction of change of the luminous power of the first optical module in the fourth time period, then the second optical module is unlikely to have an optical connection relationship with the first optical module. The second score calculated here is used to indicate whether the direction of change of the received light power of the second optical module in the fourth time period is consistent with the direction of change of the luminous power of the first optical module in the fourth time period, and is further used to determine whether the first optical module and the second optical module are optically connected.
[0124] A specific method for determining the change direction (change trend) is exemplified below.
[0125] Continue with Figure 5 For example, Figure 5 The light emitting power of the first optical module and the light receiving power of the optical module having an optical connection relationship with the first optical module are shown. For the convenience of description, the starting time of the first time period is recorded as t1, and the fourth time period is a period of time from time t1-k1 to time t1+k2 in the second time period. k1 and k2 are used to indicate the duration, and both k1 and k2 are positive numbers. The change direction of the light emitting power of the first optical module in the fourth time period can be calculated by the light emitting power P1 of the first optical module at time t1-k1 and the light emitting power P2 of the first optical module at time t1+k2. If P2-P1>0, it indicates that the change direction is positive (upward trend), and if P2-P1<0, it indicates that the change direction is negative (downward trend).
[0126] Similarly, the change direction of the received light power of the second optical module in the fourth time period can be calculated by the received light power P3 of the second optical module at the moment t1-k1 and the received light power P4 of the second optical module at the moment t1+k2. If P4-P3>0, it indicates that the change direction is positive (upward trend); if P4-P3<0, it indicates that the change direction is negative (downward trend).
[0127] Based on the above characteristics, if (P2-P1)×(P4-P3)>0, it can be determined that the light emitting power of the first optical module and the light receiving power of the second optical module have the same change direction in the fourth time period, and then the corresponding second score is obtained, recorded as Score2-1. If (P2-P1)×(P4-P3)<0, it can be determined that the light emitting power of the first optical module and the light receiving power of the second optical module have opposite change directions in the fourth time period, and then the corresponding second score is obtained, recorded as Score2-2. Regarding the specific values of Score2-1 and Score2-2, this application does not make specific restrictions, and Score2-1 can be greater than or less than Score2-2.
[0128] (3) The third score is used to indicate whether the change direction of the light emitting power of the first optical module in the fifth time period is consistent with the change direction of the light receiving power of the second optical module in the fifth time period.
[0129] Among them, the fifth time period is the time period from time t2-k3 to time t2+k4 in the second time period, t2 is the end time of the first time period, k3 and k4 are used to represent the duration (the unit of duration can be milliseconds, seconds, etc., which is not specifically limited in this application), k3 and k4 are both positive numbers, k3 and k4 may be the same or different, that is, time t2-k3 is a moment before time t2, and time t2-k4 is a moment after time t2. In other words, the time range of the fifth time period is from time t2-k3 to time t2+k4, that is, the fifth time period is a time period before and after the end time t2 of the first time period (including the end time t2).
[0130] For example, when the network management system scrambles the luminous power of the first optical module in the first time period, the direction of change of the received light power of the optical module connected to the first optical module in the fifth time period is consistent with the direction of change of the luminous power of the first optical module in the fifth time period, and the two should show consistent changes of rising / falling together.
[0131] Based on the above characteristics, if the direction of change of the received light power of the second optical module in the fifth time period is consistent with the direction of change of the luminous power of the first optical module in the fifth time period, then the second optical module is likely to have an optical connection relationship with the first optical module. If the direction of change of the received light power of the second optical module in the fifth time period is inconsistent with the direction of change of the luminous power of the first optical module in the fifth time period, then the second optical module is unlikely to have an optical connection relationship with the first optical module. The third score calculated here is used to indicate whether the direction of change of the received light power of the second optical module in the fifth time period is consistent with the direction of change of the luminous power of the first optical module in the fifth time period, and is further used to determine whether the first optical module and the second optical module have an optical connection relationship.
[0132] A specific method for determining the change direction (change trend) is exemplified below.
[0133] Continue with Figure 5 For example, Figure 5 The light emitting power of the first optical module and the light receiving power of the optical module having an optical connection relationship with the first optical module are shown. For the convenience of description, the end time of the first time period is recorded as t2, and the fifth time period is a period of time from time t2-k3 to time t2+k4 in the second time period. k3 and k4 are used to represent the duration, and k3 and k4 are both positive numbers. The change direction of the light emitting power of the first optical module in the fifth time period can be calculated by the light emitting power P5 of the first optical module at time t2-k3 and the light emitting power P6 of the first optical module at time t2+k4. If P6-P5>0, the change direction is positive (upward trend), and if P6-P5<0, the change direction is negative (downward trend).
[0134] Similarly, the change direction of the received light power of the second optical module in the fifth time period can be calculated by the received light power P7 of the second optical module at time t2-k3 and the received light power P8 of the second optical module at time t2+k4. If P8-P7>0, the change direction is positive (upward trend); if P8-P7<0, the change direction is negative (downward trend).
[0135] Based on the above characteristics, if (P6-P5)×(P8-P7)>0, it can be determined that the light emitting power of the first optical module and the light receiving power of the second optical module have the same change direction in the fifth time period, and then the corresponding third score is obtained, recorded as Score3-1. If (P6-P5)×(P8-P7)<0, it can be determined that the light emitting power of the first optical module and the light receiving power of the second optical module have opposite change directions in the fifth time period, and then the corresponding third score is obtained, recorded as Score3-2. Regarding the specific values of Score3-1 and Score3-2, this application does not make specific restrictions, and Score3-1 can be greater than or less than Score3-2.
[0136] (4) The fourth score is positively or negatively correlated with the difference between the variation range of the light emitting power of the first optical module in the fourth period and the variation range of the light receiving power of the second optical module in the fourth period. The fourth period can be referred to in the above description and will not be described here.
[0137] For example, when the network management system scrambles the luminous power of the first optical module in the first time period, the change amplitude of the received light power of the optical module connected to the first optical module in the fourth time period should be similar to the change amplitude of the luminous power of the first optical module in the fourth time period.
[0138] Based on the above characteristics, if the change amplitude of the received light power of the second optical module in the fourth time period is similar to the change amplitude of the luminous power of the first optical module in the fourth time period, then the second optical module is likely to have an optical connection relationship with the first optical module. If the change amplitude of the received light power of the second optical module in the fourth time period is not similar to the change amplitude of the luminous power of the first optical module in the fourth time period, then the second optical module is unlikely to have an optical connection relationship with the first optical module. The fourth score calculated here is used to indicate whether the change amplitude of the received light power of the second optical module in the fourth time period is similar to the change amplitude of the luminous power of the first optical module in the fourth time period, and is further used to determine whether the first optical module and the second optical module are optically connected.
[0139] A specific method for determining the variation range is given below as an example.
[0140] Continue with Figure 5 For example, Figure 5 The light emitting power of the first optical module and the light receiving power of the optical module optically connected to the first optical module are shown. For ease of description, the starting time of the first time period is recorded as t1, and the fourth time period is a period of time from time t1-k1 to time t1+k2 in the second time period. k1 and k2 are used to represent the duration, and both k1 and k2 are positive numbers. The change amplitude of the light emitting power of the first optical module in the fourth time period can be calculated by the light emitting power P1 of the first optical module at time t1-k1 and the light emitting power P2 of the first optical module at time t1+k2, that is, |P2-P1|. Similarly, the change amplitude of the light receiving power of the second optical module in the fourth time period can be calculated by the light receiving power P3 of the second optical module at time t1-k1 and the light receiving power P4 of the second optical module at time t1+k2, that is, |P4-P3|. As described above, the fourth score is positively or negatively correlated with the difference between the change amplitude of the light emitting power of the first optical module in the fourth time period |P2-P1| and the change amplitude of the light receiving power of the second optical module in the fourth time period |P4-P3|. Therefore, the corresponding fourth score can be determined based on the |P2-P1| and |P4-P3| calculated above.
[0141] The present application does not limit the specific relationship between the fourth score and the difference between |P2-P1| and |P4-P3|. Assuming that the negative correlation between the fourth score and the difference is: fourth score = 1 - absolute value of the difference ÷ max(|P2-P1|, |P4-P3|), then the corresponding fourth score can be determined according to |P4-P3| and |P2-P1|.
[0142] (5) The fifth score is positively or negatively correlated with the difference between the variation range of the light emitting power of the first optical module in the fifth period and the variation range of the light receiving power of the second optical module in the fifth period. The fifth period can be referred to in the previous description and will not be described here.
[0143] For example, when the network management system scrambles the luminous power of the first optical module in the first time period, the change amplitude of the received light power of the optical module connected to the first optical module in the fifth time period should be similar to the change amplitude of the luminous power of the first optical module in the fifth time period.
[0144] Based on the above characteristics, if the change amplitude of the received light power of the second optical module in the fifth time period is similar to the change amplitude of the luminous power of the first optical module in the fifth time period, then the second optical module is likely to have an optical connection relationship with the first optical module. If the change amplitude of the received light power of the second optical module in the fifth time period is not similar to the change amplitude of the luminous power of the first optical module in the fifth time period, then the second optical module is unlikely to have an optical connection relationship with the first optical module. The fifth score calculated here is used to indicate whether the change amplitude of the received light power of the second optical module in the fifth time period is similar to the change amplitude of the luminous power of the first optical module in the fifth time period, and is further used to determine whether the first optical module and the second optical module are optically connected.
[0145] A specific method for determining the variation range is given below as an example.
[0146] Continue with Figure 5 For example, Figure 5The light emitting power of the first optical module and the light receiving power of the optical module having an optical connection relationship with the first optical module are shown. For the convenience of description, the end time of the first time period is recorded as t2, and the fifth time period is a period of time from time t2-k3 to time t2+k4 in the second time period. k3 and k4 are used to represent the duration, and k3 and k4 are both positive numbers. The change amplitude of the light emitting power of the first optical module in the fifth time period can be calculated by the light emitting power P5 of the first optical module at time t2-k3 and the light emitting power P6 of the first optical module at time t2+k4, that is, |P6-P5|. Similarly, the change amplitude of the light receiving power of the second optical module in the fifth time period can be calculated by the light receiving power P7 of the second optical module at time t2-k3 and the light receiving power P8 of the second optical module at time t2+k4, that is, |P8-P7|. As described above, the fifth score is positively or negatively correlated with the difference between the change amplitude of the light emitting power of the first optical module in the fifth time period |P6-P5| and the change amplitude of the received light power of the second optical module in the fifth time period |P8-P7|. Therefore, the corresponding fifth score can be determined based on the |P6-P5| and |P8-P7| calculated above.
[0147] The present application does not limit the specific relationship between the fifth score and the difference between |P6-P5| and |P8-P7|. Assuming that the negative correlation between the fifth score and the difference is specifically: fifth score = 1 - absolute value of the difference ÷ max(|P6-P5|, |P8-P7|), then the corresponding fifth score can be determined according to |P6-P5| and |P8-P7|.
[0148] After the network management system calculates the first score, the second score, the third score, the fourth score, and the fifth score in the manner described above, the network management system can average, sum, or weighted sum them (the present application does not specifically limit the weight of each score) to obtain a similarity score. The similarity score is then compared with the score threshold. The specific comparison method can be referred to in the description above, and then determine whether the first optical module and the second optical module have an optical connection relationship.
[0149] Optionally, the first optical module can be a pluggable optical module, the first optical module is inserted into the first port of the first network device, and the first network device can send the port information of the first port (physical port) corresponding to the first optical module to the network management system. Similarly, the second optical module can also be a pluggable optical module, the second optical module is inserted into the second port of the second network device, and the second network device can send the port information of the second port corresponding to the second optical module to the network management system. The network device can send the port information of the port and the indicator data of the optical module corresponding to the port (see the previous introduction) to the network management system, that is, the port information is reported to the network management system together with the indicator data, or the port information can be sent to the network management system separately. This application does not specifically limit the reporting method and timing of the port information.
[0150] When the network management system determines that the first optical module and the second optical module have an optical connection relationship in the manner described above, the network management system can determine that the first port and the second port have an optical connection relationship by combining the port information of the first port corresponding to the first optical module and the port information of the second port corresponding to the second optical module. In other words, when the first optical module is inserted into the first port of the first network device and the second optical module is inserted into the second port of the second network device, if it is determined that the light emitting power of the first optical module in the second time period is similar to the light receiving power of the second optical module in the second time period, it can be determined that the first port and the second port have an optical connection relationship.
[0151] The network management system can store the determined optical connection relationship between optical modules and / or the optical connection relationship between ports, and can also present the above relationship to the user. Regarding the presentation form, it can be text, table, picture or other forms, which is not limited in this application. This application also does not limit the specific form of port information, as long as the corresponding port can be identified.
[0152] For example, the first network device includes multiple slots, different slots have different slot numbers, each slot has multiple ports, and different ports on the same slot have different port numbers. Assume that the first optical module is inserted into the first port of the first network device, the slot number of the slot where the first port is located is Slot2, and the port number of the first port is Port1. If the corresponding port on the network device is identified by device identification + slot number + port number, then the port information of the first port is "identification of the first network device + Slot2 + Port1".
[0153] Optionally, in order to improve the accuracy of determining the optical connection relationship, the network management system can also scramble the first optical module multiple times, each scrambling corresponds to a scrambling period, and each scrambling obtains the luminous power of the first optical module in a period of time (including the corresponding scrambling period), and calculates the similarity score with the received light power of the second optical module in the same period, and then uses the average of the multiple similarity scores corresponding to the multiple scramblings as the actual score of the second optical module. Compare the actual score with the score threshold to determine whether the second optical module and the first optical module have an optical connection relationship. For the comparison method with the score threshold, please refer to the previous introduction, which will not be repeated here.
[0154] Referring to the method for determining whether there is an optical connection relationship between the first optical module and the second optical module described above, the network management system can also determine whether there is an optical connection relationship between other optical modules, which will not be described in detail here.
[0155] Optionally, the network management system can obtain the luminous power of the first optical module in the second time period and the light receiving power of multiple optical modules different from the first optical module in the second time period. The multiple optical modules can be all or part of the optical modules in the optical communication network except the first optical module. Then, the network management system calculates the similarity scores of the light receiving power of the multiple optical modules in the second time period and the luminous power of the first optical module in the same time period respectively with reference to the method described above, and then determines the optical module with the highest similarity score from the multiple optical modules, and considers that the light receiving power of the optical module with the highest score in the second time period is similar to the light emitting power of the first optical module in the second time period, and then determines the optical module with the highest score as the optical module connected to the first optical module, and the two have an optical connection relationship.
[0156] Next, combine Figure 6 ,right Figure 3 The method is illustrated by examples.
[0157] See also Figure 6 , Figure 6 It is a flow chart of determining an optical connection relationship by modifying a bias current provided in an embodiment of the present application, including the following steps 1 to 6.
[0158] Step 1: The network management system sends a bias current modification command to the first network device.
[0159] The bias current modification command corresponds to the first command described above, and the first parameter at this time is specifically the bias current, which is positively correlated with the luminous power of the first optical module. The bias current modification command is used to instruct the first network device to set the bias current of the first optical module to a first value in the first time period and to a second value in the second time period except the first time period, and the second value is different from the first value.
[0160] For ease of description, the following text will use the first value as 56.7 mA and the second value as 56 mA.
[0161] Figure 6 The first optical module and the first network device are drawn separately, but in fact, the first optical module is located on the first network device. The first optical module can be inserted into a port of the first network device or located inside the first network device. For details, please refer to the previous introduction, which will not be repeated here.
[0162] Step 2: The first network device modifies the bias current of the first optical module.
[0163] Assume that before the bias current command is issued, the bias current value stored in the bias current register in the first optical module is 56mA (i.e., the second value), and the bias current of the first optical module meets the requirements of the second value. When the first network device receives the bias current modification command issued by the network management system, the first network device sets the bias current of the first optical module in the first time period to 56.7mA (i.e., the first value) according to the bias current command, thereby achieving the scrambling of the luminous power of the first optical module in the first time period. When the bias current is increased, the luminous power of the first optical module will also be increased (the specific increase depends on the PI characteristics of the first optical module), and it is assumed here that it is increased by 0.07dB.
[0164] For example, assuming that there is a bias current register in the first optical module, which is used to store the value of the bias current of the first optical module, when the first network device receives the bias current modification command, the first network device adjusts the value of the bias current stored in the bias current register from 56mA to 56.7mA. Alternatively, the bias current register can store a first value and a second value of the bias current, and when the first network device does not receive the bias current modification command, the first optical module generates a bias current of corresponding magnitude based on the second value in the bias current register. When the first network device receives the bias current modification command, the first network device instructs the first optical module to generate a bias current of corresponding magnitude based on the first value in the bias current register, thereby achieving the scrambling of the luminous power of the first optical module in the first time period. In other words, the first value can be sent to the first network device along with the bias current modification command, or it can be preset in the first optical module, and this application does not make specific limitations on this. At the end of the first time period, the first network device can automatically modify the bias current of the first optical module from the first value back to the second value, or the network management system can send a recovery instruction to the first network device, and then the first network device modifies the bias current of the first optical module from the first value back to the second value according to the recovery instruction.
[0165] Step 3: The first network device collects indicator data of the first optical module.
[0166] The index data collected here may include luminous power, or may not include luminous power (in this case, it is necessary to include data of other indicators that can represent luminous power, and for details, please refer to the first data introduced above).
[0167] Step 4: The first network device reports the indicator data (including luminous power / data indicating luminous power) of the first optical module to the network management system.
[0168] That is to say, after modifying the bias current of the first optical module, the first network device can collect the luminous power of the first optical module / data of other indicators representing the luminous power (corresponding to the first data in step S302), and then send the collected indicator data to the network management system for the network management system to determine whether the luminous power of the first optical module is similar to the luminous power of other optical modules in the second time period (including the encrypted first time period).
[0169] Step 5: The network management system obtains the luminous power of the first optical module in the second time period according to the indicator data of the first optical module.
[0170] For example, if the indicator data reported by the first network device to the network management system includes luminous power, then the luminous power of the first optical module in the second time period can be directly obtained. If the indicator data reported by the first network device to the network management system does not include luminous power, then it is necessary to use data representing (indicating) other indicators of luminous power (refer to the first data introduced above) to indirectly determine the luminous power of the first optical module in the second time period.
[0171] Step 6: The network management system determines the optical connection relationship according to the light emitting power of the first optical module in the second time period and the light receiving power of the second optical module in the second time period.
[0172] The luminous power of the second optical module in the second period is also obtained by the network management system, which can be specifically referred to in the introduction of step S303 and will not be repeated here. Regarding how to determine the optical connection relationship in step 6, reference can be made to the relevant introduction in step S303 and will not be repeated here.
[0173] In summary, in the method for determining the optical connection relationship provided in the present application, the first optical module is scrambled by using the first parameter in the first time period, so that the luminous power of the first optical module in the first time period is the scrambled luminous power (the scrambling makes the luminous power present a certain change pattern, such as increase, decrease or up and down fluctuation, etc.), and the first optical module is not scrambled by using the first parameter in the time period other than the first time period in the second time period, so the luminous power of the first optical module in the time period other than the first time period in the second time period is the luminous power without scrambling. Since the luminous power of the optical module represents the intensity of the optical signal output by the optical module, the received optical power of the optical module represents the intensity of the optical signal received by the optical module, and the transmission speed of the optical signal in the optical fiber is very fast, therefore, the received optical power of the optical module having an optical connection relationship with the above-mentioned first optical module in the second time period should be similar to the luminous power of the first optical module in the second time period, that is, the received optical power of the optical module having an optical connection relationship with the first optical module in the first time period and the received optical power of the first optical module in the first time period present a similar change pattern.
[0174] Based on the above characteristics, the network management system obtains the light emitting power of the first optical module in the second time period (including the encrypted first time period) and the light receiving power of the second optical module in the second time period, and then determines whether the two are similar: if there is similarity, it is determined that the second optical module is an optical module that has an optical connection relationship with the first optical module; if there is no similarity, it is determined that the second optical module has no optical connection relationship with the first optical module.
[0175] The network management system can directly obtain the luminous power / received power of the optical module reported by the network device, and can also indirectly calculate the luminous power of the optical module through the input current, bias current, temperature and other indicator data of the optical module reported by the network device. Since the luminous power, received power, input current, bias current, temperature and other indicators are white box indicators in the communication network, the network equipment will periodically report these indicators to the network management system. Therefore, this solution does not require the installation of additional devices on the network equipment and will not introduce transformation costs. In addition, this solution is executed by the network management system, and there is no need for network devices to send port information to each other and parse the port information of the other end, so it will not increase the processing pressure of the network equipment.
[0176] See also Figure 7 , Figure 7 It is a structural schematic diagram of a device 700 for determining an optical connection relationship provided in the present application, including an acquisition module 701 and a determination module 702.
[0177] The acquisition module 701 is used to: acquire the luminous power of the first optical module of the first network device in the second time period, the luminous power in the second time period is the optical power obtained after scrambling with the first parameter in the first time period, and the second time period includes the first time period;
[0178] The acquisition module 701 is further used to: acquire the received light power of the second optical module of the second network device in the second time period.
[0179] The determination module 702 is used to determine that the first optical module and the second optical module have an optical connection relationship when the light emitting power in the second time period is similar to the light receiving power in the second time period.
[0180] Optionally, the above-mentioned device 700 also includes a sending module 703, which is used to: send a first command to the first network device, the first command is used to indicate that the first parameter is a first value in a first time period; or, send a first command to the first network device, the first command is used to indicate that the first parameter is a first value in the first time period and a second value in a third time period included in the second time period, and the first value is not equal to the second value.
[0181] Optionally, the first parameter is a bias current, and the first parameter is positively correlated with the light emitting power of the first optical module; or, the first parameter is a temperature, and the first parameter is positively correlated or negatively correlated with the light emitting power of the first optical module.
[0182] Optionally, the determination module 702 is further used to: obtain a similarity score between the luminous power of the second time period and the received light power of the second time period, and determine whether the luminous power of the second time period and the received light power of the second time period are similar according to the similarity score and the score threshold.
[0183] Optionally, the determination module 702 is specifically configured to calculate one or more of the first score, the second score, the third score, the fourth score, and the fifth score, and obtain a similarity score according to the one or more of the above.
[0184] The first score is used to represent the Pearson correlation coefficient between the light emitting power in the second time period and the light receiving power in the second time period.
[0185] The second score is used to indicate whether the direction of change of the light emitting power of the first optical module in the fourth time period is consistent with the direction of change of the light receiving power of the second optical module in the fourth time period, wherein the fourth time period is the time period from moment t1-k1 to moment t1+k2 in the second time period, t1 is the starting time of the first time period, k1 and k2 are used to indicate the duration, and k1 and k2 are both positive numbers.
[0186] The third score is used to indicate whether the direction of change of the light emitting power of the first optical module in the fifth time period is consistent with the direction of change of the light receiving power of the second optical module in the fifth time period, wherein the fifth time period is the time period from moment t2-k3 to moment t2+k4 in the second time period, t2 is the end time of the first time period, k3 and k4 are used to indicate the duration, and k3 and k4 are both positive numbers.
[0187] The fourth score is positively correlated or negatively correlated with a difference between a change range of the light emitting power of the first optical module in the fourth period and a change range of the light receiving power of the second optical module in the fourth period.
[0188] The fifth score is positively correlated or negatively correlated with a difference between a change range of the light emitting power of the first optical module in the fifth period and a change range of the light receiving power of the second optical module in the fifth period.
[0189] Optionally, the acquisition module 701 is specifically used to: receive the luminous power of the second time period sent by the first network device.
[0190] Optionally, the acquisition module 701 is specifically used to: receive first data sent by the first network device, the first data is used to represent the luminous power of the first optical module in the second time period, and then determine the luminous power of the first optical module in the second time period according to the first data.
[0191] Optionally, the first data includes an input current or a bias current of the first optical module in the second time period.
[0192] Optionally, the first optical module is inserted into the first port of the first network device, and the second optical module is inserted into the second port of the second network device. The determination module 702 is specifically used to: when it is determined that the light emitting power of the first optical module in the second time period and the light receiving power of the first optical module in the second time period are similar, determine that the first port and the second port have an optical connection relationship.
[0193] Figure 7 The apparatus 700 may be used to perform Figure 3 The steps in the method for determining the optical connection relationship can be specifically referred to in the previous description and will not be repeated here. Figure 7 It is just that according to the function, it is exemplary divided into acquisition module 701, determination module 702 and sending module 703. In fact, the device 700 may also include more or fewer modules. For example, a certain module above may be split into multiple functional modules, or two / more modules above may be combined into one functional module, and other functional modules may be added to the device 700. This application does not limit this. The acquisition module 701, the determination module 702 and the sending module 703 may all be implemented by software and / or hardware, and this application does not limit this.
[0194] See also Figure 8, the present application also provides a computing device 800, including a bus 802, a processor 804, a memory 806, and a communication interface 808. The processor 804, the memory 806, and the communication interface 808 communicate with each other through the bus 802. The computing device 800 can be a server, a laptop, a tablet computer, a desktop computer, an edge device, a smart phone, a smart screen, etc., and the present application does not make specific restrictions, nor does the present application limit the number of processors and memories in the computing device 800.
[0195] The bus 802 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 The bus 802 is represented by only one line, but it does not mean that there is only one bus or one type of bus. The bus 802 may include a path for transmitting information between various components of the computing device 800 (eg, the memory 806, the processor 804, and the communication interface 808).
[0196] The processor 804 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0197] The memory 806 may include a volatile memory, such as a random access memory (RAM). The processor 804 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0198] The memory 806 stores executable program codes. The processor 804 executes the executable program codes to respectively implement Figure 7 The functions of the acquisition module 701, the determination module 702 and the sending module 703 in the present application are implemented Figure 3 The operating steps in the method for determining the optical connection relationship.
[0199] The communication interface 808 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 800 and other devices or communication networks.
[0200] For example, the computing device 800 of the present application may correspond to Figure 1 The network management system shown can also correspond to Figure 7 The device 700 for determining an optical connection relationship is specifically used for the functions of each module in the device 700, which will not be described in detail here for the sake of brevity.
[0201] As a possible implementation, the computing device 800 may also include a chip system, the chip system includes a processor and a power supply circuit, the power supply circuit is used to supply power to the processor, and the processor is used to execute Figure 3 The operating steps in the method for determining the optical connection relationship. For the sake of brevity, they are not described here. Among them, the processor can be implemented by a CPU, or by a computing device or AI chip such as a GPU, DPU, NPU, XPU, SoC, offload card, acceleration card, etc.
[0202] As a possible implementation, the computing device 800 may include multiple types of processors 804, that is, the computing device 800 is a heterogeneous device. For example, the computing device 800 includes a CPU and a GPU, and at least one of the processors 804 may execute Figure 3 For the sake of brevity, the operation steps in the method for determining the optical connection relationship are not repeated here.
[0203] like Fig. 9 As shown, the present application also provides a computing device cluster, which includes multiple computing devices 800. The memory 806 in the multiple computing devices 800 in the computing device cluster may store the same Figure 3 The method instruction.
[0204] In some possible implementations, the memory 806 of one or more computing devices 800 in the computing device cluster may also store the memory 806 for implementing the above Figure 3 In other words, the combination of one or more computing devices 800 can jointly execute instructions for implementing Figure 3 The method instruction.
[0205] The memory 806 in different computing devices 800 in the computing device cluster can store different instructions, respectively for executing Figure 8That is, the instructions stored in the memory 806 in different computing devices 800 can implement the functions of one or more modules among the acquisition module 701, the determination module 702 and the sending module 703.
[0206] In some possible implementations, the computing devices 800 in the computing device cluster may be connected via a network, which may be a wide area network or a local area network. Fig.10 A possible implementation is shown, where two computing devices 800A and 800B are connected via a network. Specifically, the connection to the network is made through a communication interface in each computing device. In this type of possible implementation, the memory 806 in the computing device 800A stores instructions for executing the functions of the acquisition module 701 and the determination module 702. At the same time, the memory 806 in the computing device 800B stores instructions for executing the functions of the sending module 703.
[0207] For example, Fig.10 The functions of the computing device 800A shown in FIG. 8 may also be jointly completed by multiple computing devices 800. Similarly, the functions of the computing device 800B may also be jointly completed by multiple computing devices 800.
[0208] The present application also provides another computing device cluster. The connection relationship between the computing devices in the computing device cluster can be similarly referred to as Fig.10 The difference is that the memory 806 in one or more computing devices 800 in the computing device cluster may store the same memory 806 for implementing the above Figure 3 The method instruction.
[0209] In some possible implementations, the memory 806 of one or more computing devices 800 in the computing device cluster may also store a memory for implementing Figure 3 In other words, the combination of one or more computing devices 800 can jointly execute instructions for implementing Figure 3 The method instruction.
[0210] The present application also provides a chip, which includes a processor and an interface, the interface is used to communicate with an external device or module of the chip, and the processor is used to execute Figure 3 The operation steps in the method can be referred to the previous introduction and will not be repeated here.
[0211] The present application also provides a computer-readable storage medium, which can be any available medium that can be stored by a computing device or a data storage device such as a data center that contains one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions for instructing a computing device or a computing device cluster to execute Figure 3 Follow the steps in the method.
[0212] The present application also provides a computer program product comprising instructions. The computer program product may be a software or program product comprising instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on a computing device or a computing device cluster, the computing device or computing device cluster executes Figure 3 Follow the steps in the method.
[0213] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application is described in detail with reference to the above embodiments, a person skilled in the art should understand that the technical solutions described in the above embodiments can still be modified, or some of the technical features can be replaced by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the protection scope of the technical solutions of the embodiments of the present application. The terms "first", "second", etc. in the specification, claims and the above drawings of the present application are used to distinguish different objects, rather than to describe a specific order.
Claims
1. A method for determining an optical connection relationship, characterized in that: The method is applied to a network management system, and the method comprises: Obtaining the luminous power of a first optical module of a first network device in a second time period, where the luminous power of the second time period is the optical power obtained after scrambling with a first parameter in the first time period, and the second time period includes the first time period; Obtaining the received optical power of the second optical module of the second network device in the second time period; When the light emitting power in the second time period is similar to the light receiving power in the second time period, it is determined that the first optical module and the second optical module have an optical connection relationship.
2. The method according to claim 1, characterized in that The method further comprises: A first command is sent to the first network device, wherein the first command is used to indicate that the first parameter has a first value in the first time period; or a first command is sent to the first network device, wherein the first command is used to indicate that the first parameter has a first value in the first time period and has a second value in a third time period included in the second time period, and the first value is not equal to the second value.
3. The method according to claim 1 or 2, characterized in that: The first parameter is a bias current, and the first parameter is positively correlated with the light emitting power in the second period; Alternatively, the first parameter is temperature, and the first parameter is positively correlated or negatively correlated with the luminous power in the second time period.
4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Obtaining a similarity score between the light emitting power of the second time period and the light receiving power of the second time period; It is determined, according to the similarity score and the score threshold, whether the light emitting power in the second time period is similar to the light receiving power in the second time period.
5. The method according to claim 4, characterized in that The obtaining of the similarity score between the light emitting power in the second time period and the light receiving power in the second time period comprises: Calculate one or more of a first score, a second score, a third score, a fourth score, and a fifth score; Obtaining the similarity score according to the one or more items; The first score is used to represent the Pearson correlation coefficient between the light emitting power of the second time period and the light receiving power of the second time period; The second score is used to indicate whether the change direction of the light emitting power of the first optical module in the fourth time period is consistent with the change direction of the light receiving power of the second optical module in the fourth time period, the fourth time period is the time period from time t1-k1 to time t1+k2 in the second time period, t1 is the starting time of the first time period, k1 and k2 are used to indicate the duration, and k1 and k2 are positive numbers; The third score is used to indicate whether the change direction of the light emitting power of the first optical module in the fifth time period is consistent with the change direction of the light receiving power of the second optical module in the fifth time period, the fourth time period is the time period from time t2-k3 to time t2+k4 in the second time period, t2 is the end time of the first time period, k3 and k4 are used to indicate the duration, and both k3 and k4 are positive numbers; The fourth score is positively correlated or negatively correlated with a difference between a change amplitude of the light emitting power of the first optical module in the fourth time period and a change amplitude of the light receiving power of the second optical module in the fourth time period; The fifth score is positively correlated or negatively correlated with a difference between a change range of the light emitting power of the first optical module in the fifth time period and a change range of the light receiving power of the second optical module in the fifth time period.
6. The method according to any one of claims 1 to 5, characterized in that The acquiring the light emitting power of the first optical module of the first network device in the second time period includes: receiving the light emitting power of the second time period sent by the first network device.
7. The method according to any one of claims 1 to 5, characterized in that The obtaining of the luminous power of the first optical module of the first network device in the second time period includes: receiving first data sent by the first network device, where the first data is used to represent the luminous power of the second time period; and determining the luminous power of the second time period according to the first data.
8. The method according to claim 7, characterized in that The first data includes an input current or a bias current of the first optical module in the second time period.
9. The method according to any one of claims 1 to 8, characterized in that The first optical module is inserted into a first port of the first network device, and the second optical module is inserted into a second port of the second network device, and determining that the first optical module and the second optical module have an optical connection relationship includes: It is determined that the first port and the second port have an optical connection relationship.
10. A device for determining an optical connection relationship, characterized in that: Comprising modules for executing the method as claimed in any one of claims 1 to 9.
11. A computing device, characterized in that: The device comprises a processor and a memory, wherein the processor is configured to execute instructions stored in the memory, so that the computing device executes the method according to any one of claims 1 to 9.
Citation Information
Cited By
Method and apparatus for determining optical connection relationship, and computing device
WO2026103155A1