CN111953412B - Method and device for realizing optical information synchronization of optical module switch - Google Patents

Method and device for realizing optical information synchronization of optical module switch Download PDF

Info

Publication number
CN111953412B
CN111953412B CN202010791027.2A CN202010791027A CN111953412B CN 111953412 B CN111953412 B CN 111953412B CN 202010791027 A CN202010791027 A CN 202010791027A CN 111953412 B CN111953412 B CN 111953412B
Authority
CN
China
Prior art keywords
state
information
light
optical module
state information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010791027.2A
Other languages
Chinese (zh)
Other versions
CN111953412A (en
Inventor
郭美思
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010791027.2A priority Critical patent/CN111953412B/en
Publication of CN111953412A publication Critical patent/CN111953412A/en
Application granted granted Critical
Publication of CN111953412B publication Critical patent/CN111953412B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • H04B10/079Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal
    • H04B10/0793Network aspects, e.g. central monitoring of transmission parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • H04B10/079Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using measurements of the data signal
    • H04B10/0795Performance monitoring; Measurement of transmission parameters

Abstract

The invention discloses a method for realizing optical information synchronization of an optical module switch, which comprises the following steps: acquiring first state information of a first state of a port, and judging whether the first state information changes; responding to the judgment that the first state information changes, and acquiring the serial number of the port with the changed first state information and the first state information; acquiring light-off enabling control data of a port; analyzing second state information of a second state of the optical module; judging whether the switching optical information is synchronous or not according to the first state information and the analyzed second state information; responding to the judgment that the switch light information is asynchronous, and configuring light-off enabling control data according to the first state information; and controlling a second state of the optical module according to the light-off enabling control data. The invention also discloses a corresponding device. The invention can realize that data communication can not be carried out when the port is closed, thereby ensuring the stability of port communication.

Description

Method and device for realizing optical information synchronization of optical module switch
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for synchronizing optical information of an optical module switch.
Background
With the continuous development of the internet, people's lives cannot leave the network, and in the information-oriented data era, all communications are carried out through the network. Throughout the large network age, hardware devices such as servers, switches, routers, and the like are indispensable. The optical module is used as a carrier for transmission between a switch and equipment, and is an important component in an optical fiber communication system. In a large network, each port of a switch can be inserted into an optical module for communication, when the optical module is connected to the port, the optical module is in a connected state, and the laser of the optical module is always in an open state. When the corresponding port is down, the laser is still in an on state and data information transmission is still performed, which may cause communication problems.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method and an apparatus for implementing optical information synchronization of an optical module switch, where the optical information synchronization is performed mainly by acquiring a state of a port, and when the port is closed, data communication is not performed, so that stability of port communication can be ensured.
Based on the above object, in one aspect, the present invention provides a method for implementing optical information synchronization of an optical module switch, where the method includes:
acquiring first state information of a first state of a port, and judging whether the first state information changes;
responding to the judgment that the first state information changes, and acquiring the serial number of the port with the changed first state information and the first state information;
acquiring light-off enabling control data of a port;
analyzing second state information of a second state of the optical module;
judging whether the switching optical information is synchronous or not according to the first state information and the analyzed second state information;
responding to the judgment that the switch light information is asynchronous, and configuring light-off enabling control data according to the first state information;
and controlling a second state of the optical module according to the light-off enabling control data.
In some embodiments of the method for implementing optical information synchronization of an optical module switch, acquiring the light-off enabling control data of the port further includes:
writing a specific byte reading function;
acquiring an offset address of the light-off enabling control data through a specific byte reading function;
and acquiring light-off enabling control data according to the offset address.
In some embodiments of the method for implementing optical module switch optical information synchronization of the present invention, analyzing the second state information of the second state of the optical module further includes:
resolving the second state information into a hexadecimal array;
responding to the analyzed hexadecimal array being 0xf, and judging that the second state of the optical module is a second open state;
and in response to the resolved hexadecimal array being 0x0, determining that the second state of the optical module is the second off-state.
In some embodiments of the method for implementing optical module switch optical information synchronization of the present invention, the method further comprises:
the light off enable control data is represented by a binary digit group of octets, and the second state of the light module is controlled according to a last nibble of the binary digit group.
In some embodiments of the method for implementing optical module switch optical information synchronization of the present invention, controlling the second state of the optical module according to the light-off enabling control data further comprises:
in response to setting all the last four bytes of the binary number group to 0, controlling the second state of the optical module to be a second light-on state;
and controlling the second state of the optical module to be a second off state in response to setting all the last four bytes of the binary number group to be 1.
In some embodiments of the method for implementing optical module switch optical information synchronization of the present invention, configuring the off-optical enable control data according to the first state information in response to determining that the switch optical information is not synchronized further comprises:
and configuring an optical module on-off function, judging that the on-off optical information is asynchronous in response to the fact that the first state of the port is judged to be a first on-off state through the first state information and the second state of the optical module is judged to be a second off-off state through the second state information, and setting all the last four bytes of the off-off enable control data to be 0 through the optical module on-off function so as to control the second state of the optical module to be a second on-off state.
In some embodiments of the method for implementing optical module switch optical information synchronization of the present invention, configuring the off-optical enable control data according to the first state information in response to determining that the switch optical information is not synchronized further comprises:
and configuring an optical module light-off function, judging that the switch optical information is asynchronous in response to the fact that the first state of the port is judged to be the first light-off state through the first state information and the second state of the optical module is judged to be the second light-on state through the second state information, and setting all the last four bytes of the light-off enabling control data to be 1 through the optical module light-off function so as to control the second state of the optical module to be the second light-off state.
In some embodiments of the method for implementing optical module switch optical information synchronization of the present invention, the method further comprises:
and configuring a memory mapping relation between the port and the optical module, and acquiring a file path of the memory device through the memory mapping relation.
In some embodiments of the method for implementing optical module switch optical information synchronization of the present invention, the method further comprises:
and storing the analyzed second state information into a database, and displaying the second state information through corresponding fields of the database.
In another aspect of the embodiments of the present invention, a device for implementing optical information synchronization of an optical module switch is further provided, where the device includes:
the port state information change judging module is configured to acquire first state information of a first state of a port and judge whether the first state information changes;
the port state information acquisition module is configured to respond to the judgment that the first state information changes, and acquire the serial number of the port with the changed first state information and the first state information;
the light-off enabling control data acquisition module is configured to acquire light-off enabling control data of the port;
the optical module state information analysis module is configured to analyze second state information of a second state of the optical module;
the switching optical information judgment module is configured to judge whether the switching optical information is synchronous according to the first state information and the analyzed second state information;
the light-off enabling control data configuration module is configured to respond to the judgment that the switching light information is asynchronous and configure light-off enabling control data according to the first state information;
and the light-off enabling control data control module is configured to control the second state of the optical module according to the light-off enabling control data.
The invention has at least the following beneficial technical effects: the optical information synchronization is carried out by acquiring the state of the port, so that data communication cannot be carried out when the port is closed, and the stability of port communication is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
Fig. 1 shows a schematic block diagram of an embodiment of a method of implementing light module switch light information synchronization according to the present invention;
fig. 2 shows a flow chart of an embodiment of a method for implementing optical module switch optical information synchronization according to the present invention;
fig. 3 shows a block diagram of an embodiment of a method for implementing optical module switch optical information synchronization according to the present invention;
fig. 4 shows a schematic block diagram of an embodiment of an apparatus for implementing optical module switch optical information synchronization according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it is understood that "first" and "second" are only used for convenience of description and should not be construed as limiting the embodiments of the present invention, and the descriptions thereof in the following embodiments are omitted.
In view of the above, a first aspect of the embodiments of the present invention provides an embodiment of a method for implementing optical module switch optical information synchronization. Fig. 1 shows a schematic block diagram of an embodiment of a method for implementing optical module switch optical information synchronization according to the present invention. In the embodiment shown in fig. 1, the method comprises at least the following steps:
s100, acquiring first state information of a first state of a port, and judging whether the first state information changes;
s200, responding to the judgment that the first state information changes, and acquiring the serial number of the port with the changed first state information and the first state information;
s300, acquiring light-off enabling control data of a port;
s400, analyzing second state information of a second state of the optical module;
s500, judging whether the switching optical information is synchronous or not according to the first state information and the analyzed second state information;
s600, responding to the judgment that the switching light information is asynchronous, and configuring light-off enabling control data according to the first state information;
and S700, controlling the second state of the optical module according to the light-off enabling control data.
In some embodiments of the present invention, fig. 2 is a flowchart illustrating an embodiment of a method for implementing optical module switch optical information synchronization according to the present invention, where as shown in fig. 2, each port of a switch is inserted into an optical module for communication, and when a corresponding port of the switch is closed, the optical module is in an off-optical state, and data communication is not performed, so that stability of port communication is ensured. In some embodiments of the present invention, synchronization of optical information of an optical module switch is mainly completed by acquiring first state information of a port. According to the step S100, a database is connected first, first state information of a corresponding port is subscribed to obtain first state information of the first state of the port, and whether the first state information changes is determined. The port state corresponding to the port is called a first state, the first state comprises an up state and a down state, the up state represents the port opening state, and the down state represents the port is a first light-off state. The information corresponding to the port state is first state information, and the port state of the corresponding port is represented by the first state information. According to step S200, in response to determining that the first state information changes, the serial number of the port and the first state information after the first state information changes are acquired. The first state information corresponding to the port changes when the first state of the port changes (including changing from an up state to a down state and changing from the down state to the up state), and the change of the first state of the port is determined through the change of the first state information. Therefore, once it is determined that the first state information changes, an information synchronization process is started, and first, the number of the port corresponding to the changed first state information and the changed first state information are obtained, and the changed port is determined from the plurality of ports through the number. According to step S300, the light-off enable control data of the port is acquired. When the txdisable control data is in an enable state (in some embodiments, the enable state is txdisable ═ 1), the optical module sends out a shutdown enable, the optical module is turned off, and the optical port does not send out an optical signal; when the txdisable control data is in the disable state (in some embodiments, the disable state is txdisable ═ 0), the optical module sends the off enable invalid, the optical module is turned on, and the optical port normally sends the optical signal to the outside. According to step S400, second state information of the second state of the optical module is analyzed. Wherein, in some embodiments of the invention, the light module is configured as a laser. The optical module corresponding switch optical state is a second state, the second state comprises an On state and an Off state, the On state represents the optical module Off state, and the Off state represents the port On state. And the information corresponding to the second state of the optical module is the second state information, and the second state of the corresponding optical module is obtained by analyzing the second state information. And judging whether the switching optical information is synchronous or not according to the step S500 and the analyzed second state information. That is, it is determined whether the first state of the port corresponding to the first state information is synchronized with the analyzed switch optical information of the second state of the optical module corresponding to the second state information. According to step S600, in response to determining that the switch light information is not synchronized, the light-off enable control data is configured according to the first state information. Before configuration, the light-off enabling control data corresponds to light-off enabling control data corresponding to the second state of the optical module, and if the light-off information is judged to be asynchronous, the light-off enabling control data is configured according to the first state information corresponding to the port. According to step S700, the second state of the optical module is controlled according to the off-light enable control data. Because the light-off enabling control data is configured according to the first state information corresponding to the port, the second state information of the optical module can be synchronized with the first state information of the port by controlling the second state of the optical module through the configured light-off enabling control data.
In some other embodiments, fig. 3 is a structural diagram of an embodiment of a method for implementing optical module switch optical information synchronization according to the present invention, and as shown in fig. 3, a master module first obtains port status information, i.e. first status information, in a port information table in a database. And then comparing according to the switch optical state (namely, the second state) of the optical module laser in the set switch optical module, and if the port is in a down/up state (the down state represents the port closing state, namely, the first light-off state, and the up state represents the port opening state, namely, the first light-on state), and the optical module laser is still in a light-on/light-off state (out of synchronization with the first state of the port), performing state synchronization setting.
According to some embodiments of the method for implementing optical information synchronization of an optical module switch, acquiring the light-off enable control data of the port further includes:
writing a specific byte reading function; acquiring an offset address of the light-off enabling control data through a specific byte reading function; and acquiring light-off enabling control data according to the offset address.
In some embodiments of the present invention, the data of the QSFP _ DOM _ CONTROL _ TXDISABLE _ OFFSET address is Read through a _ Read _ eeprogram _ specific _ bytes function, wherein the _ Read _ eeprogram _ specific _ bytes function is a specific byte Read function programmed to Read a specific byte of an EEPROM (Electrically Erasable Programmable Read-Only Memory), the data of the fp _ DOM _ rom _ TXDISABLE _ OFFSET address, i.e., an OFFSET address of TXDISABLE CONTROL data in the rom, is Read through the specific byte Read function, and the TXDISABLE CONTROL data is obtained according to the OFFSET address.
According to some embodiments of the method for implementing optical module switch optical information synchronization of the present invention, analyzing the second state information of the second state of the optical module further comprises:
resolving the second state information into a hexadecimal array;
responding to the analyzed hexadecimal array being 0xf, and judging that the second state of the optical module is a second open state;
and in response to the resolved hexadecimal array being 0x0, determining that the second state of the optical module is the second off-state.
In some embodiments of the present invention, the optical module is a laser, the second state of the laser is analyzed, and the analysis result includes hexadecimal arrays 0xf and 0x0, where 0xf is represented as On (Off state of the laser) and 0x0 is represented as Off (On state of the laser).
According to some embodiments of the method of implementing optical module switch optical information synchronization of the present invention, the method further comprises:
the light off enable control data is represented by a binary digit group of octets, and the second state of the light module is controlled according to a last nibble of the binary digit group.
In some embodiments of the invention, the light-off enabling control data is represented by a binary group of octets, wherein the first nibble of the binary group of octets represents other information not related to controlling the light module, the second state of the light module is represented by the last nibble of the binary group of octets, and the second state of the light module is controlled by data controlling the last nibble of the binary group of octets.
According to some embodiments of the method for implementing optical module switch optical information synchronization of the present invention, controlling the second state of the optical module according to the light-off enabling control data further comprises:
in response to setting all the last four bytes of the binary number group to 0, controlling the second state of the optical module to be a second light-on state;
and controlling the second state of the optical module to be a second off state in response to setting all the last four bytes of the binary number group to be 1.
In some embodiments of the present invention, the light-off enabling control data is represented by an octet binary number, the first nibble of the octet binary number is left as acquired, and the last nibble of the octet binary number is set to 0 in its entirety, i.e. the last nibble is configured to 0000 to indicate that the second state of the light module is the second on state. The acquired data of the first nibble of the binary array of the octet is kept unchanged, and the data of the last nibble of the binary array of the octet is all set to 1, that is, the last nibble is configured to 1111 to indicate that the second state of controlling the optical module is the second off-light state.
According to some embodiments of the method for implementing optical module switch optical information synchronization of the present invention, in response to determining that the switch optical information is not synchronized, configuring the off-optical enable control data according to the first state information further comprises:
and configuring an optical module on-off function, in response to the fact that the first state of the port is judged to be a first on-off state through the first state information and the second state of the optical module is judged to be a second off-off state through the second state information, judging that the on-off optical information is asynchronous, and setting all the last four bytes of the off-optical enable control data to be 0 through the optical module on-off function to control the second state of the optical module to be a second on-off state.
In some embodiments of the present invention, a set _ laser _ disable _ info _ Off function is programmed, which is triggered under a specific condition that the first state of the port is a first On state (up) and the second state of the optical module is On (representing that the optical module is a second Off state), the upper 4 bits of the acquired Off-light enable control data are kept unchanged, and the lower 4 bits are configured to 0000, then the second state of the optical module may be set to an Off state, so that the second state of the optical module becomes the second On state.
According to some embodiments of the method for implementing optical module switch optical information synchronization of the present invention, in response to determining that the switch optical information is not synchronized, configuring the off-optical enable control data according to the first state information further comprises:
and configuring an optical module light-off function, in response to the fact that the first state of the port is judged to be a first light-off state through the first state information and the second state of the optical module is judged to be a second light-on state through the second state information, judging that the switch light information is asynchronous, and setting all last four bytes of the light-off enabling control data to be 1 through the optical module light-off function so as to control the second state of the optical module to be a second light-off state.
In some embodiments of the present invention, a set _ laser _ disable _ info _ On function is written, which is triggered under a specific condition that the first state of the port is a first Off-state (down) and the second state of the optical module is Off (representing that the optical module is a second Off-state), the upper 4 bits of the acquired Off-light enable control data are kept unchanged, and the lower 4 bits are configured to be 1111, then the second state of the optical module may be set to an On state, so that the second state of the optical module becomes the second Off-state.
According to some embodiments of the method of implementing optical module switch optical information synchronization of the present invention, the method further comprises:
and configuring a memory mapping relation between the port and the optical module, and acquiring a file path of the memory device through the memory mapping relation.
In some embodiments of the present invention, fig. 3 is a structural diagram illustrating an embodiment of a method for implementing optical module switch optical information synchronization according to the present invention, and as shown in fig. 3, a command line exhibition module obtains an EEPROM device file path such as/sys/bus/i 2c/devices/i2c-32/32-0050/EEPROM through a mapping relation by defining a mapping relation between a port and an optical module EEPROM. When the system is started, the first state of each port is detected, and port information is synchronized into a port information table of a database, wherein the port information table comprises port names, rates, link states and the like. And the optical module data can be synchronously transmitted to the port optical module information table during the analysis of the optical module information. The command line display can finally display the port state and the command line state according to the information acquisition, and can judge whether the communication mechanism is accurate.
According to some embodiments of the method of implementing optical module switch optical information synchronization of the present invention, the method further comprises:
and storing the analyzed second state information into a database, and displaying the second state information through corresponding fields of the database.
In some embodiments of the present invention, the information of the optical module is analyzed according to the offset and then stored in the database, and is displayed through a corresponding field of the database, wherein when the port down is mainly checked, whether Tx information (txdisable control data information) is 0 or not is determined; at port up, the Tx information is not 0. The information is checked through the command line, and the efficiency of troubleshooting of operation and maintenance personnel can be improved.
In another aspect of the embodiments of the present invention, an embodiment of an apparatus for implementing optical information synchronization of an optical module switch is provided. Fig. 4 is a schematic block diagram of an embodiment of an apparatus for implementing optical module switch optical information synchronization according to the present invention, and in the embodiment shown in fig. 4, the apparatus includes:
according to some embodiments of the apparatus for implementing optical module switch optical information synchronization of the present invention, the apparatus comprises:
the port state information change judging module is configured to acquire first state information of a first state of a port and judge whether the first state information changes;
the port state information acquisition module is configured to respond to the judgment that the first state information changes, and acquire the serial number of the port with the changed first state information and the first state information;
the light-off enabling control data acquisition module is configured to acquire light-off enabling control data of the port;
the optical module state information analysis module is configured to analyze second state information of a second state of the optical module;
the switching optical information judgment module is configured to judge whether the switching optical information is synchronous according to the first state information and the analyzed second state information;
the light-off enabling control data configuration module is configured to respond to the judgment that the switching light information is asynchronous and configure light-off enabling control data according to the first state information;
and the light-off enabling control data control module is configured to control the second state of the optical module according to the light-off enabling control data.
Likewise, it will be understood by those skilled in the art that all embodiments, features and advantages set forth above with respect to the method of implementing light module switch light information synchronization according to the present invention are equally applicable to the apparatus according to the present invention. For the sake of brevity of the present disclosure, no repeated explanation is provided herein.
It should be particularly noted that, as one of ordinary skill in the art can appreciate that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the program of the method for implementing optical module switch optical information synchronization can be stored in a computer readable storage medium, and when executed, the program can include the processes of the embodiments of the methods described above. The storage medium of the program may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (8)

1. A method for realizing optical information synchronization of optical module switches is characterized in that the method comprises the following steps:
connecting a database, subscribing first state information of a corresponding port to acquire the first state information of the first state of the port, and judging whether the first state information changes;
responding to the judgment that the first state information changes, and acquiring the serial number of the port and the first state information after the first state information changes;
acquiring light-off enabling control data of the port;
analyzing second state information of a second state of the optical module, including:
analyzing the second state information into a hexadecimal array;
in response to the analyzed hexadecimal array being 0xf, determining that the second state of the optical module is a second open state;
in response to the analyzed hexadecimal array being 0x0, determining that the second state of the optical module is a second off-state;
judging whether the switch optical information is synchronous or not according to the first state information and the analyzed second state information;
configuring the off-light enabling control data according to the first state information in response to judging that the on-off-light information is asynchronous;
representing the light off enable control data by a binary group of octets, controlling the second state of the light module according to a last nibble of the binary group,
controlling the second state of the optical module according to the light-off enabling control data.
2. The method of claim 1, wherein the obtaining the off-light enable control data of the port further comprises:
writing a specific byte reading function;
acquiring an offset address of the light-off enabling control data through the specific byte reading function;
and acquiring the light-off enabling control data according to the offset address.
3. The method of claim 1, wherein the controlling the second state of the optical module according to the off-light enabling control data further comprises:
controlling the second state of the optical module to be a second on state in response to setting all last nibbles of the binary number group to 0;
and controlling the second state of the optical module to be a second off state in response to setting all last nibbles of the binary number group to be 1.
4. The method of claim 3, wherein the configuring the off-light enabling control data according to the first status information in response to determining that the switching optical information is not synchronized further comprises:
configuring an optical module on-off function, responding to the first state of the port judged to be a first on-off state through the first state information and the second state of the optical module judged to be a second off-off state through the second state information, judging that the on-off optical information is asynchronous, and setting all the last four bytes of the off-off enable control data to be 0 through the optical module on-off function to control the second state of the optical module to be the second on-off state.
5. The method of claim 3, wherein the configuring the off-light enabling control data according to the first status information in response to determining that the switching optical information is not synchronized further comprises:
configuring an optical module light-off function, responding to the first state of the port judged to be a first light-off state through the first state information and the second state of the optical module judged to be a second light-on state through the second state information, judging that the switch light information is asynchronous, and setting all the last four bytes of the light-off enabling control data to be 1 through the optical module light-off function so as to control the second state of the optical module to be the second light-off state.
6. The method for synchronizing optical information of optical module switches according to claim 1, further comprising:
and configuring a memory mapping relation between the port and the optical module, and acquiring a file path of a memory device through the memory mapping relation.
7. The method for synchronizing optical information of optical module switches according to claim 1, further comprising:
and storing the analyzed second state information into a database, and displaying the second state information through a corresponding field of the database.
8. An apparatus for implementing optical information synchronization of optical module switches, the apparatus comprising:
the port state information change judging module is configured to be connected with a database, subscribe the first state information of the corresponding port to acquire the first state information of the first state of the port and judge whether the first state information changes;
a port state information obtaining module, configured to obtain, in response to determining that the first state information changes, a serial number of the port and the first state information after the first state information changes;
a light-off enabling control data acquisition module configured to acquire light-off enabling control data of the port;
an optical module status information analysis module configured to analyze second status information of a second status of the optical module, wherein the analyzing the second status information of the second status of the optical module includes:
analyzing the second state information into a hexadecimal array;
in response to the analyzed hexadecimal array being 0xf, determining that the second state of the optical module is a second open state;
in response to the analyzed hexadecimal array being 0x0, determining that the second state of the optical module is a second off-state;
the switching optical information judgment module is configured to judge whether the switching optical information is synchronous according to the first state information and the analyzed second state information;
representing the light off enable control data by a binary group of octets, controlling the second state of the light module according to a last nibble of the binary group,
a light-off enabling control data configuration module configured to configure the light-off enabling control data according to the first state information in response to determining that the switching light information is not synchronized;
a light-off enable control data control module configured to control the second state of the optical module according to the light-off enable control data.
CN202010791027.2A 2020-08-07 2020-08-07 Method and device for realizing optical information synchronization of optical module switch Active CN111953412B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010791027.2A CN111953412B (en) 2020-08-07 2020-08-07 Method and device for realizing optical information synchronization of optical module switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010791027.2A CN111953412B (en) 2020-08-07 2020-08-07 Method and device for realizing optical information synchronization of optical module switch

Publications (2)

Publication Number Publication Date
CN111953412A CN111953412A (en) 2020-11-17
CN111953412B true CN111953412B (en) 2022-03-08

Family

ID=73332911

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010791027.2A Active CN111953412B (en) 2020-08-07 2020-08-07 Method and device for realizing optical information synchronization of optical module switch

Country Status (1)

Country Link
CN (1) CN111953412B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102832994A (en) * 2012-08-10 2012-12-19 江苏奥雷光电有限公司 Burst testing device and method in production of optical module
CN103384171A (en) * 2013-05-30 2013-11-06 上海斐讯数据通信技术有限公司 OLT device and ONU configuration issuing method thereof
CN103675776A (en) * 2013-12-16 2014-03-26 中国电子科技集团公司第四十一研究所 In-pulse frequency spectrum parameter testing device and method for emission channel of digital array module
CN103701519A (en) * 2013-12-18 2014-04-02 烽火通信科技股份有限公司 Active/standby judging method for passive optical network
CN104615784A (en) * 2015-03-04 2015-05-13 成都维远艾珏信息技术有限公司 Method for data access
CN104822101A (en) * 2015-04-08 2015-08-05 杭州华三通信技术有限公司 Method and apparatus for synchronizing port diagnosis information in Fabric network
CN105162730A (en) * 2015-09-22 2015-12-16 上海斐讯数据通信技术有限公司 Processing system and method for optical module information in switch
CN105634807A (en) * 2015-12-30 2016-06-01 北京东土科技股份有限公司 Method and apparatus for port state synchronization
CN106101032A (en) * 2016-08-11 2016-11-09 迈普通信技术股份有限公司 A kind of method and device of COMBO interface adaptive Ethernet interface
CN106850054A (en) * 2015-12-04 2017-06-13 北京东土科技股份有限公司 Interface fault detection method and device in a kind of fiber optical transceiver
CN108990083A (en) * 2017-05-31 2018-12-11 中国移动通信有限公司研究院 A kind of method and apparatus synchronizing alarm
CN109445330A (en) * 2018-10-22 2019-03-08 西安微电子技术研究所 A kind of 10,000,000,000 high precision clock synchronous exchange modules and exchange method based on optical interface
CN110166467A (en) * 2019-05-28 2019-08-23 重庆科技学院 The cross-platform control method of PLC based on HTML_WEB gateway
CN110488414A (en) * 2019-08-06 2019-11-22 上海交通大学 Mach-increasing Dare photoswitch self-checking device and method are assisted based on micro-loop
US10491304B2 (en) * 2012-11-29 2019-11-26 Inphi Corporation Coherent transceiver architecture
CN110719667A (en) * 2019-11-04 2020-01-21 浙江生辉照明有限公司 LED lamp synchronous control device and method

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080105658A1 (en) * 2006-11-08 2008-05-08 Eastway Fair Company Limited Laser module with laser generator control switch
CN102055521B (en) * 2009-11-11 2014-03-12 中兴通讯股份有限公司 Control method and control device for reading-writing optical module information, and optical module
CN101814771B (en) * 2010-03-23 2012-07-18 江苏省电力公司无锡供电公司 Universal testing interface
TWI450250B (en) * 2012-03-28 2014-08-21 Chunghwa Picture Tubes Ltd Backlight module used in display device and control method of the same
CN102832996A (en) * 2012-09-04 2012-12-19 深圳市共进电子股份有限公司 Constant emitting detecting and overcoming method and device of optical module in EPON (Ethernet Passive Optical Network)
CN106330327B (en) * 2015-06-17 2020-06-30 中兴通讯股份有限公司 Method and device for managing enabling state of optical module
US9628174B2 (en) * 2015-06-30 2017-04-18 Ii-Vi Incorporated Optical channel monitor with integral optical switch
US10063313B1 (en) * 2017-02-28 2018-08-28 Ciena Corporation Synchronization of optical protection switching and loading of path specific characteristics
JP2019097080A (en) * 2017-11-24 2019-06-20 富士通株式会社 Signal regeneration circuit, optical module and signal regeneration method
CN111147320A (en) * 2019-11-29 2020-05-12 苏州浪潮智能科技有限公司 Port information monitoring method, device, equipment and readable storage medium
CN111143820B (en) * 2019-12-20 2022-08-02 苏州浪潮智能科技有限公司 Optical module access method, optical module access equipment and storage medium

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102832994A (en) * 2012-08-10 2012-12-19 江苏奥雷光电有限公司 Burst testing device and method in production of optical module
US10491304B2 (en) * 2012-11-29 2019-11-26 Inphi Corporation Coherent transceiver architecture
CN103384171A (en) * 2013-05-30 2013-11-06 上海斐讯数据通信技术有限公司 OLT device and ONU configuration issuing method thereof
CN103675776A (en) * 2013-12-16 2014-03-26 中国电子科技集团公司第四十一研究所 In-pulse frequency spectrum parameter testing device and method for emission channel of digital array module
CN103701519A (en) * 2013-12-18 2014-04-02 烽火通信科技股份有限公司 Active/standby judging method for passive optical network
CN104615784A (en) * 2015-03-04 2015-05-13 成都维远艾珏信息技术有限公司 Method for data access
CN104822101A (en) * 2015-04-08 2015-08-05 杭州华三通信技术有限公司 Method and apparatus for synchronizing port diagnosis information in Fabric network
CN105162730A (en) * 2015-09-22 2015-12-16 上海斐讯数据通信技术有限公司 Processing system and method for optical module information in switch
CN106850054A (en) * 2015-12-04 2017-06-13 北京东土科技股份有限公司 Interface fault detection method and device in a kind of fiber optical transceiver
CN105634807A (en) * 2015-12-30 2016-06-01 北京东土科技股份有限公司 Method and apparatus for port state synchronization
CN106101032A (en) * 2016-08-11 2016-11-09 迈普通信技术股份有限公司 A kind of method and device of COMBO interface adaptive Ethernet interface
CN108990083A (en) * 2017-05-31 2018-12-11 中国移动通信有限公司研究院 A kind of method and apparatus synchronizing alarm
CN109445330A (en) * 2018-10-22 2019-03-08 西安微电子技术研究所 A kind of 10,000,000,000 high precision clock synchronous exchange modules and exchange method based on optical interface
CN110166467A (en) * 2019-05-28 2019-08-23 重庆科技学院 The cross-platform control method of PLC based on HTML_WEB gateway
CN110488414A (en) * 2019-08-06 2019-11-22 上海交通大学 Mach-increasing Dare photoswitch self-checking device and method are assisted based on micro-loop
CN110719667A (en) * 2019-11-04 2020-01-21 浙江生辉照明有限公司 LED lamp synchronous control device and method

Also Published As

Publication number Publication date
CN111953412A (en) 2020-11-17

Similar Documents

Publication Publication Date Title
TWI647934B (en) Method and system for simulating a network topology with a physical machine
CN102664749B (en) Monitoring system capable of configuring telemetering data
US5796953A (en) System having user terminal connecting to a remote test system via the internet for remotely testing communication network
US7907537B2 (en) System and method for electronically identifying connections of a cross-connect system
CN110166335B (en) EtherCAT slave station and slave station synchronous communication method, control system, equipment and storage medium
JP5858037B2 (en) Network system, master device and network system control method
US5845149A (en) Industrial controller with I/O mapping table for linking software addresses to physical network addresses
US10212001B2 (en) Method of configuring field devices and field device having a configuration for two bus systems
CN112596470A (en) Integration of multiple communicating physical layers and protocols in a process control input/output device
CN108076026B (en) Industrial wireless network service adaptation method based on OPC-UA service platform
US10116488B2 (en) System for analyzing an industrial control network
CN111541956A (en) Optical port self-adaption method, device, switch and computer readable storage medium
US5031207A (en) Method of establishing a data link between a pair of terminals as well as a terminal which is suitable for implementing this method
CN109510726A (en) Network visualization implementation method, device, computer equipment and storage medium
CN111953412B (en) Method and device for realizing optical information synchronization of optical module switch
WO2022000969A1 (en) Link device and link device communication address configuration method
CN100499535C (en) Method and device for supporting Ethernet self-consultation in medium access control
EP3190472B1 (en) System for analyzing an industrial control network
CN1783816A (en) Communication network protocol analysis device
CN113039759B (en) In-situ test device for a fieldbus network
CN114285782A (en) Data processing method and related device
CN114048054A (en) Low-cost high-efficiency switch fault processing device and processing method
CN112637522A (en) Signal source switching method and device of display system, storage medium and processor
EP0576410B1 (en) System and method for monitoring communications links
CN110059046A (en) A kind of method, system and the readable medium of the transmission path of switch data signal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant