CN114546498A - Method, system and platform for processing abnormal starting based on optical transmitter and receiver - Google Patents

Method, system and platform for processing abnormal starting based on optical transmitter and receiver Download PDF

Info

Publication number
CN114546498A
CN114546498A CN202111670309.8A CN202111670309A CN114546498A CN 114546498 A CN114546498 A CN 114546498A CN 202111670309 A CN202111670309 A CN 202111670309A CN 114546498 A CN114546498 A CN 114546498A
Authority
CN
China
Prior art keywords
port
processing
equipment
optical transceiver
module
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.)
Pending
Application number
CN202111670309.8A
Other languages
Chinese (zh)
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.)
Guangzhou V Solution Telecommunication Technology Co ltd
Original Assignee
Guangzhou V Solution Telecommunication 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 Guangzhou V Solution Telecommunication Technology Co ltd filed Critical Guangzhou V Solution Telecommunication Technology Co ltd
Priority to CN202111670309.8A priority Critical patent/CN114546498A/en
Publication of CN114546498A publication Critical patent/CN114546498A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/079Root cause analysis, i.e. error or fault diagnosis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/325Display of status information by lamps or LED's
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Optical Communication System (AREA)

Abstract

The invention belongs to the technical field of optical transceivers, and particularly relates to a method, a system and a platform for processing abnormal starting of an optical transceiver. According to the method, the equipment mounting is detected in real time according to the equipment processing capacity; deleting all virtual entities after the detection is finished, and marking the peripheral equipment in the abnormal state; when the layer application configures peripheral equipment and initializes, the peripheral equipment in an abnormal state is repaired or warned in real time, and a system and a platform corresponding to the method can construct an independent module, so that the normal starting of the system is ensured, the influence on a communication system is reduced, and meanwhile, the abnormality and the reason are reflected to a user in a simple mode, the workload of maintenance personnel is reduced, and the reason is positioned more quickly.

Description

Method, system and platform for processing abnormal starting based on optical transmitter and receiver
Technical Field
The invention belongs to the technical field of optical transceivers, and particularly relates to a method, a system and a platform for processing abnormal starting of an optical transceiver.
Background
In the prior art, the faults occurring when the optical terminal is started have relative processing modes and various implementations. For example, when the system is started, the configuration file is checked, and if partial data is lost, the default configuration is started to replace the current configuration, so that normal starting is ensured. For example, the loop detection of the port, after the port is initialized, the state of the port can be checked for processing.
These checking functions are available on most devices on the market. In fact, even if there is a detection means, it is still unavoidable that such a function is disabled upon power-up, and some may be repeatedly restarted, which may even affect the dilemma of the whole communication system.
The situation in practice is very complex and it is basically impossible to wait for the device to start before proceeding with the service. In the process of starting and initializing the equipment, once the processing strategy is thinner, various functional failure problems can occur. For example, after the initialization of the network port is completed, the data from the network port is excessive, and other modules such as a firewall are not completed, and the data flow will flush the CPU. The effects of such doping in external conditions are very common. There is also a conflict that occurs between processes or modules. Similar to the calling of different peripheral devices to the system data queue during the starting process, the waiting time of the device with low priority processing level is longer, and even under strict priority (SP scheduling algorithm), the initialization of the device is failed or the detection function is abnormal. The application checks and calls the driving device mutually, and searches and applies for memory resources possibly cause abnormity. The above problems are summarized as the system zero fragmentation and resource conflict.
Therefore, in order to overcome the technical defects of zero fragmentation and resource conflict of the above systems, it is urgently needed to design and develop a method, a system and a platform for processing the abnormal starting of the optical transceiver.
Disclosure of Invention
The first purpose of the invention is to provide a method for processing abnormal starting based on an optical transmitter and receiver;
the second purpose of the invention is to provide a system for starting exception and processing based on an optical transmitter and receiver;
the third purpose of the invention is to provide a platform for processing abnormal starting based on an optical transmitter and receiver;
the first object of the present invention is achieved by: the method specifically comprises the following steps:
detecting the equipment mounting in real time according to the equipment processing capacity;
deleting all virtual entities after the detection is finished, and marking the peripheral equipment in the abnormal state;
when the layer application configures the peripheral equipment and initializes, the peripheral equipment in abnormal state is repaired or warned in real time.
Further, before detecting the device mounting in real time according to the processing capacity of the device, the method further comprises the following steps:
initializing a bridge for the kernel;
when the layer application configures peripheral equipment and initializes, and after the peripheral equipment in abnormal state is repaired or warned in real time, the method also comprises the following steps:
and warning when the equipment is normally started, and informing maintenance personnel of processing in real time.
Further, the step of detecting the device mounting in real time according to the processing capacity of the device further comprises the following steps:
creating a virtual network card and a physical network port hook, and adding the virtual network card and the physical network port hook to a network bridge;
creating a virtual network card and a photoelectric port hook;
read through i2c whether the CATV module is normal.
Further, the steps of creating a virtual network card and a physical network port hook and adding the hook into the network bridge further comprise the following steps:
and checking whether a current optical transceiver has a loop between the network ports, and judging whether a large flow of access exists or not through the data flow of the network ports.
Further, the step of creating the virtual network card and the optical interface hook further comprises the following steps:
controlling the light port to emit light, and checking whether the light port emits long light;
and checking whether a loop phenomenon between the photoelectric port and the network port exists or not, and judging whether a large flow of input and output exists or not through the data flow of the photoelectric port.
Further, the step of deleting all virtual entities after the detection is finished, and marking the peripheral devices in the abnormal state further includes the following steps:
closing the loop port, and simultaneously lightening a lamp corresponding to the loop port;
and closing the power supply of the photoelectric port and performing current limiting processing on the hardware level.
Further, the step of closing the loop port and simultaneously lighting the lamp corresponding to the loop port further includes the following steps:
if the photoelectric port and the network port cause a loop, all the lamps flicker at a fixed frequency to warn a user.
The second object of the present invention is achieved by: the system specifically comprises:
the mounting detection unit is used for detecting the mounting of the equipment in real time according to the processing capacity of the equipment;
the equipment marking unit is used for deleting all virtual entities after the detection is finished and marking the peripheral equipment in the abnormal state;
and the repair warning unit is used for repairing or warning the peripheral equipment in an abnormal state in real time when the layer application configures the peripheral equipment and initializes the peripheral equipment.
Further, the system is also provided with:
the initialization module is used for initializing the bridge of the kernel;
the first warning processing module is used for warning when the equipment is started normally and informing maintenance personnel to process in real time;
the mount detection unit is further provided with:
the first establishing module is used for establishing a virtual network card and a physical network port hook and adding the virtual network card and the physical network port hook to the network bridge;
the second creating module is used for creating a virtual network card and a photoelectric port hook;
the reading module is used for reading whether the CATV module is normal or not through i2 c;
the first checking and judging module is used for checking whether a loop between the network ports exists in the current optical transceiver or not and judging whether a large flow of incoming and outgoing exists or not through the data flow of the network ports;
the second checking and judging module is used for controlling the light port to emit light and checking whether the light port emits long light;
the third checking and judging module is used for checking whether a loop phenomenon between the photoelectric port and the network port exists or not, and judging whether a large flow of input and output exists or not according to the data flow of the photoelectric port;
the repair warning unit is further provided with:
the first closing module is used for closing the loop port and simultaneously lightening a lamp corresponding to the loop port;
the second closing module is used for closing the power supply of the photoelectric port and performing current limiting processing on the hardware layer;
and the second warning processing module is used for flashing all the lamps at a fixed frequency to warn a user.
The third object of the present invention is achieved by: the method comprises the following steps: the system comprises a processor, a memory and an optical transmitter and receiver-based starting exception and processing platform control program;
the processor executes the optical transceiver-based start-up exception and processing platform control program, the optical transceiver-based start-up exception and processing platform control program is stored in the memory, and the optical transceiver-based start-up exception and processing platform control program realizes the optical transceiver-based start-up exception and processing method steps.
According to the method, the equipment mounting is detected in real time according to the equipment processing capacity; deleting all virtual entities after the detection is finished, and marking the peripheral equipment in the abnormal state; when the layer application configures peripheral equipment and initializes, the peripheral equipment in an abnormal state is repaired or warned in real time, and a system and a platform corresponding to the method can construct an independent module, so that the normal starting of the system is ensured, the influence on a communication system is reduced, and meanwhile, the abnormality and the reason are reflected to a user in a simple mode, the workload of maintenance personnel is reduced, and the reason is positioned more quickly.
That is, the driver module that detects the abnormal state and performs targeted processing is composed of two parts, one part being the detection of the peripheral device by the simulation entity. The initial detection of peripheral equipment is uniformly carried out when the drive is mounted, and in this stage, the optical interface, network interface and CATV (cable television module) of optical terminal machine can make primary identification, judgement and correspondent treatment of external environment. And the second part is used for ensuring normal starting by the intervention of the application layer operation driving equipment and displaying a corresponding abnormal state through flashing lights.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced 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 to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for processing abnormal start-up based on an optical transceiver according to the present invention;
FIG. 2 is a flowchart illustrating an embodiment of a method for handling an optical transceiver-based start-up exception according to the present invention;
FIG. 3 is a schematic diagram of a system architecture for handling abnormal start-up and processing of an optical transceiver according to the present invention;
fig. 4 is a schematic diagram of an optical transceiver-based start-up exception and processing platform architecture according to the present invention;
FIG. 5 is a block diagram of a computer-readable storage medium according to an embodiment of the present invention;
the objects, features and advantages of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
For better understanding of the objects, aspects and advantages of the present invention, reference will now be made to the following detailed description taken in conjunction with the accompanying drawings, and other advantages and capabilities of the present invention will become apparent to those skilled in the art from the description.
The invention is capable of other and different embodiments and its several details are capable of modification in various other respects, all without departing from the spirit and scope of the present invention.
It should be noted that, if directional indications (such as up, down, left, right, front, and back … …) are involved in the embodiment of the present invention, the directional indications are only used to explain the relative positional relationship between the components, the movement situation, and the like in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indications are changed accordingly.
In addition, if there is a description of "first", "second", etc. in an embodiment of the present invention, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. Secondly, the technical solutions in the embodiments can be combined with each other, but it must be based on the realization of those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be considered to be absent and not be within the protection scope of the present invention.
Preferably, the method for processing the abnormal starting of the optical transceiver is applied to one or more terminals or servers. The terminal is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The terminal can be a desktop computer, a notebook, a palm computer, a cloud server and other computing equipment. The terminal can be in man-machine interaction with a client in a keyboard mode, a mouse mode, a remote controller mode, a touch panel mode or a voice control device mode.
The invention discloses a method, a system, a platform and a storage medium for realizing abnormal starting and processing based on an optical transmitter and receiver.
Fig. 1 is a flowchart of a method for processing an optical transceiver-based start-up exception according to an embodiment of the present invention.
In this embodiment, the method for processing the abnormal start-up of the optical transceiver may be applied to a terminal with a display function or a fixed terminal, where the terminal is not limited to a personal computer, a smart phone, a tablet computer, a desktop or all-in-one machine with a camera, and the like.
The optical transmitter and receiver based abnormal starting and processing method can also be applied to a hardware environment formed by a terminal and a server connected with the terminal through a network. Networks include, but are not limited to: a wide area network, a metropolitan area network, or a local area network. The method for processing the abnormal starting of the optical transmitter and receiver can be executed by a server, a terminal or both.
For example, for a terminal which needs to perform exception handling and processing based on optical transceiver starting, the exception handling and processing based on optical transceiver provided by the method of the present invention may be directly integrated on the terminal, or a client for implementing the method of the present invention may be installed. For another example, the method provided by the present invention may further run on a device such as a server in the form of a Software Development Kit (SDK), and an interface based on the optical transceiver start-up exception and processing function is provided in the form of the SDK, and the terminal or other devices may implement the optical transceiver start-up exception and processing function through the provided interface.
The invention is further elucidated with reference to the drawing.
As shown in fig. 1-2, the present invention provides a method for processing an optical transceiver-based start exception, where the method specifically includes the following steps:
s1, detecting the equipment mounting in real time according to the equipment processing capacity;
s2, deleting all virtual entities after the detection is finished, and marking the peripheral equipment in the abnormal state;
and S3, when the layer application configures the peripheral equipment and initializes, the peripheral equipment in abnormal state is repaired or warned in real time.
The method comprises the following steps that before real-time detection of equipment mounting is carried out according to the processing capacity of the equipment:
s01, initializing a bridge for the kernel;
when the layer application configures peripheral equipment and initializes, and after the peripheral equipment in abnormal state is repaired or warned in real time, the method also comprises the following steps:
and S04, warning when the equipment is normally started, and informing maintenance personnel of real-time processing.
The step of detecting the equipment mounting in real time according to the processing capacity of the equipment further comprises the following steps:
s11, creating a virtual network card and a physical network port hook, and adding the virtual network card and the physical network port hook to the network bridge;
s12, creating a virtual network card and a photoelectric port hook;
and S13, reading whether the CATV module is normal through i2 c.
The steps of establishing a virtual network card and a physical network port hook and adding the hook into the network bridge further comprise the following steps:
and S111, checking whether a loop between the network ports exists in the current optical transceiver, and judging whether a large flow of access exists through the data flow of the network ports.
In the step of creating the virtual network card and the photoelectric port hook, the method also comprises the following steps:
s121, controlling the light port to emit light, and checking whether the light port emits long light;
s122, checking whether a loop phenomenon between the photoelectric port and the network port exists or not, and judging whether a large flow rate enters or exits according to data flow of the photoelectric port.
The step of deleting all virtual entities after the detection is finished and marking the peripheral equipment in the abnormal state further comprises the following steps:
s21, closing the loop port and simultaneously lightening a lamp corresponding to the loop port;
and S22, closing the power supply of the photoelectric port and carrying out current limiting processing on the hardware level.
The step of closing the loop port and simultaneously lighting the lamp corresponding to the loop port further comprises the following steps:
and S211, if the photoelectric port and the network port form a loop, all the lamps flicker at a fixed frequency to warn a user.
Specifically, in the embodiment of the present invention, the scheme is implemented according to the following technical scheme:
step S10: and at the stage after the net/bridge of the kernel runs, mounting each peripheral device and starting the work of the detection driving module. After the bridge of the kernel is selected, the stage supports the receiving and sending of the detection message, and meanwhile, some ready functions such as loop detection of the linux kernel, a firewall and the like are enabled.
Step S20: according to the equipment capability, corresponding operation is carried out
A network port: and creating a virtual network card and a physical network port hook, and adding the virtual network card and the physical network port hook into the network bridge. Starting a loop detection function, and checking whether a loop between network ports exists in the current optical transceiver; and judging whether a large flow of inlet and outlet exists or not through the data flow of the network port.
A light port: creating a virtual network card and hooking the photoelectric port. Controlling the light port to emit light, and checking whether the light port emits long light; checking whether a loop phenomenon between the photoelectric port and the network port exists. And judging whether a large flow of inlet and outlet exists or not through the data flow of the photoelectric port.
CATV: after starting, the module is read whether to be normal or not through i2 c.
Step S30: and deleting all virtual entities after the detection is finished, and marking peripheral equipment in an abnormal state by the global variable.
Step S40: when the peripheral equipment is configured and initialized by the upper application, the peripheral equipment in the abnormal state is executed corresponding operation under the influence of the global variable. Wake-up is typically skipped while alerting with lights.
Loop circuit: and closing the loop port and simultaneously lightening a lamp corresponding to the loop port. If the photoelectric port and the network port cause a loop, all the lamps need to flash at a fixed frequency to warn a user.
Long luminescence: and when the power supply of the photoelectric port is closed, all the lamps are required to be fully lightened to warn a user.
The data flow is too large: hardware layer current limiting, the system can be relieved after getting up completely, need not to warn.
Step S50: and when the equipment is normally started and a warning is given, the user informs maintenance personnel to process.
In order to achieve the above object, the present invention further provides a system for processing the abnormal start-up based on the optical transceiver, as shown in fig. 3, the system specifically includes:
the mounting detection unit is used for detecting the mounting of the equipment in real time according to the processing capacity of the equipment;
the equipment marking unit is used for deleting all virtual entities after the detection is finished and marking the peripheral equipment in the abnormal state;
and the repair warning unit is used for repairing or warning the peripheral equipment in an abnormal state in real time when the layer application configures the peripheral equipment and initializes the peripheral equipment.
The system is also provided with:
the initialization module is used for initializing the bridge of the kernel;
the first warning processing module is used for warning when the equipment is started normally and informing maintenance personnel to process in real time;
the mount detection unit is further provided with:
the first establishing module is used for establishing a virtual network card and a physical network port hook and adding the virtual network card and the physical network port hook to the network bridge;
the second creating module is used for creating a virtual network card and a photoelectric port hook;
the reading module is used for reading whether the CATV module is normal through i2 c;
the first checking and judging module is used for checking whether a loop between the network ports exists in the current optical transceiver or not and judging whether a large flow of incoming and outgoing exists or not through the data flow of the network ports;
the second checking and judging module is used for controlling the light port to emit light and checking whether the light port emits long light;
the third checking and judging module is used for checking whether a loop phenomenon between the photoelectric port and the network port exists or not, and judging whether a large flow of input and output exists or not according to the data flow of the photoelectric port;
the repair warning unit is further provided with:
the first closing module is used for closing the loop port and simultaneously lightening a lamp corresponding to the loop port;
the second closing module is used for closing the power supply of the photoelectric port and performing current limiting processing on the hardware layer;
and the second warning processing module is used for flashing all the lamps at a fixed frequency to warn a user.
In the embodiment of the system scheme of the present invention, the specific details of the method steps involved in the starting exception and processing based on the optical transceiver are already described above, and are not described herein again.
In order to achieve the above object, the present invention further provides a platform for processing abnormal start-up and processing based on an optical transceiver, as shown in fig. 4, including: the system comprises a processor, a memory and an optical transmitter and receiver-based starting exception and processing platform control program;
wherein the processor executes the optical transceiver-based start-up exception and handling platform control program, the optical transceiver-based start-up exception and handling platform control program is stored in the memory, and the optical transceiver-based start-up exception and handling platform control program implements the optical transceiver-based start-up exception and handling method steps, such as:
s1, detecting the equipment mounting in real time according to the equipment processing capacity;
s2, deleting all virtual entities after the detection is finished, and marking the peripheral equipment in the abnormal state;
and S3, when the layer application configures the peripheral equipment and initializes, the peripheral equipment in abnormal state is repaired or warned in real time.
The details of the steps have been set forth above and will not be described herein.
In an embodiment of the present invention, the optical transceiver-based start-up exception and Processing platform built-in processor may be composed of an integrated circuit, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same function or different functions, and includes one or more Central Processing Units (CPUs), a microprocessor, a digital Processing chip, a graphics processor, and a combination of various control chips. The processor accesses each component by using various interfaces and line connections, and executes the abnormal starting and processing of various functions and data based on the optical transceiver by running or executing programs or units stored in the memory and calling data stored in the memory;
the memory is used for storing program codes and various data, is installed in the optical transceiver starting exception and processing platform and realizes high-speed and automatic program or data access in the running process.
The Memory may include a Read-Only Memory (ROM), a Random Access Memory (RAM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an electronically Erasable Programmable Read-Only Memory (Electrically-Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical disk storage, a magnetic disk storage, a tape storage, or any other medium capable of being used to carry or store data and readable by a computer.
In order to achieve the above object, the present invention further provides a computer readable storage medium, as shown in fig. 5, where the computer readable storage medium stores an optical transceiver based start-up exception and platform handling control program, and the optical transceiver based start-up exception and platform handling control program implements the optical transceiver based start-up exception and platform handling method steps, for example:
s1, detecting the equipment mounting in real time according to the equipment processing capacity;
s2, deleting all virtual entities after the detection is finished, and marking the peripheral equipment in the abnormal state;
and S3, when the layer application configures the peripheral equipment and initializes, the peripheral equipment in abnormal state is repaired or warned in real time.
The details of the steps have been set forth above and will not be described herein.
In describing embodiments of the present invention, it should be noted that any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and that the scope of the preferred embodiments of the present invention includes additional implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processing module-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM).
Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
In an embodiment of the present invention, to achieve the above object, the present invention further provides a chip system, where the chip system includes at least one processor, and when a program instruction is executed in the at least one processor, the chip system is caused to perform the method steps of starting exception and handling based on an optical transceiver, for example:
s1, detecting the equipment mounting in real time according to the equipment processing capacity;
s2, deleting all virtual entities after the detection is finished, and marking the peripheral equipment in the abnormal state;
and S3, when the layer application configures the peripheral equipment and initializes, the peripheral equipment in abnormal state is repaired or warned in real time.
The details of the steps have been set forth above and will not be described herein.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. 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 present application. It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
According to the method, the equipment mounting is detected in real time according to the equipment processing capacity; deleting all virtual entities after detection is finished, and marking peripheral equipment in an abnormal state; when the layer application configures peripheral equipment and initializes, the peripheral equipment in an abnormal state is repaired or warned in real time, and a system and a platform corresponding to the method can construct an independent module, so that the normal starting of the system is ensured, the influence on a communication system is reduced, and meanwhile, the abnormality and the reason are reflected to a user in a simple mode, the workload of maintenance personnel is reduced, and the reason is positioned more quickly.
That is, the driver module that detects the abnormal state and performs targeted processing is composed of two parts, one part being the detection of the peripheral device by the simulation entity. The primary detection of peripheral equipment is uniformly executed when the drive is mounted, and in this stage, the optical port, network port and CATV (cable television module) of optical transmitter and receiver can make primary identification, judgement and correspondent treatment for external environment. And the second part is used for ensuring normal starting by the intervention of the application layer operation driving equipment and displaying a corresponding abnormal state through flashing lights.
Namely, the invention mainly relates to the practical engineering problem related to the optical transceiver, and the working principle and the driving hook of the optical transceiver are mainly a solution for avoiding influencing a large communication system and helping maintenance personnel to remotely support the site.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for processing abnormal starting based on an optical transmitter and receiver is characterized by comprising the following steps:
detecting the equipment mounting in real time according to the equipment processing capacity;
deleting all virtual entities after the detection is finished, and marking the peripheral equipment in the abnormal state;
when the layer application configures the peripheral equipment and initializes, the peripheral equipment in abnormal state is repaired or warned in real time.
2. The optical transceiver-based startup exception handling method according to claim 1, wherein before detecting the device mount in real time according to the device processing capability, the method further comprises the following steps:
initializing a bridge for the kernel;
when the layer application configures peripheral equipment and initializes, and after the peripheral equipment in abnormal state is repaired or warned in real time, the method also comprises the following steps:
and warning when the equipment is normally started, and informing maintenance personnel of processing in real time.
3. The optical transceiver-based start-up exception handling method according to claim 1 or 2, wherein the step of detecting the device mount in real time according to the device processing capability further comprises the steps of:
creating a virtual network card and a physical network port hook, and adding the virtual network card and the physical network port hook to a network bridge;
creating a virtual network card and a photoelectric port hook;
read through i2c whether the CATV module is normal.
4. The optical transceiver-based startup exception handling method according to claim 3, wherein the step of creating a virtual network card and a physical network port hook and adding the virtual network card and the physical network port hook to the network bridge further comprises the steps of:
and checking whether a loop between the network ports exists in the current optical transceiver or not, and judging whether a large flow of incoming and outgoing exists or not through the data flow of the network ports.
5. The optical transceiver-based start-up exception handling method according to claim 3, wherein the step of creating a virtual network card and an optical interface hook further comprises the steps of:
controlling the light port to emit light, and checking whether the light port emits long light;
and checking whether a loop phenomenon between the photoelectric port and the network port exists or not, and judging whether a large flow of input and output exists or not through the data flow of the photoelectric port.
6. The method according to claim 1, wherein all virtual entities are deleted after the detection is finished, and the peripheral device in an abnormal state is marked, further comprising the following steps:
closing the loop port, and simultaneously lightening a lamp corresponding to the loop port;
and closing the power supply of the photoelectric port and performing current limiting processing on the hardware level.
7. The optical transceiver-based start-up exception handling method according to claim 6, wherein the step of closing the loop port and simultaneously lighting the lamp corresponding to the loop port further comprises the steps of:
if the photoelectric port and the network port cause a loop, all the lamps flicker at a fixed frequency to warn a user.
8. An optical transceiver based start exception and processing system is characterized by specifically comprising:
the mounting detection unit is used for detecting the mounting of the equipment in real time according to the processing capacity of the equipment;
the equipment marking unit is used for deleting all virtual entities after the detection is finished and marking the peripheral equipment in the abnormal state;
and the repair warning unit is used for repairing or warning the peripheral equipment in an abnormal state in real time when the layer application configures the peripheral equipment and initializes the peripheral equipment.
9. The system according to claim 8, further comprising:
the initialization module is used for initializing the bridge of the kernel;
the first warning processing module is used for warning when the equipment is started normally and informing maintenance personnel to process in real time;
the mount detection unit is further provided with:
the first establishing module is used for establishing a virtual network card and a physical network port hook and adding the virtual network card and the physical network port hook to the network bridge;
the second creating module is used for creating a virtual network card and a photoelectric port hook;
the reading module is used for reading whether the CATV module is normal or not through i2 c;
the first checking and judging module is used for checking whether a loop between the network ports exists in the current optical transceiver or not and judging whether a large flow of incoming and outgoing exists or not through the data flow of the network ports;
the second checking and judging module is used for controlling the light port to emit light and checking whether the light port emits long light;
the third checking and judging module is used for checking whether a loop phenomenon between the photoelectric port and the network port exists or not, and judging whether a large flow of input and output exists or not according to the data flow of the photoelectric port;
the repair warning unit is further provided with:
the first closing module is used for closing the loop port and simultaneously lightening a lamp corresponding to the loop port;
the second closing module is used for closing the power supply of the photoelectric port and performing current limiting processing on the hardware layer;
and the second warning processing module is used for flashing all the lamps at a fixed frequency to warn a user.
10. The utility model provides a start-up exception and processing platform based on optical transmitter and receiver which characterized in that includes: the system comprises a processor, a memory and an optical transmitter and receiver-based starting exception and processing platform control program;
wherein the optical transceiver startup exception-based and processing platform control program is executed at the processor, the optical transceiver startup exception-based and processing platform control program being stored in the memory, the optical transceiver startup exception-based and processing platform control program implementing the optical transceiver startup exception-based and processing method steps of any one of claims 1 to 7.
CN202111670309.8A 2021-12-31 2021-12-31 Method, system and platform for processing abnormal starting based on optical transmitter and receiver Pending CN114546498A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111670309.8A CN114546498A (en) 2021-12-31 2021-12-31 Method, system and platform for processing abnormal starting based on optical transmitter and receiver

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111670309.8A CN114546498A (en) 2021-12-31 2021-12-31 Method, system and platform for processing abnormal starting based on optical transmitter and receiver

Publications (1)

Publication Number Publication Date
CN114546498A true CN114546498A (en) 2022-05-27

Family

ID=81670338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111670309.8A Pending CN114546498A (en) 2021-12-31 2021-12-31 Method, system and platform for processing abnormal starting based on optical transmitter and receiver

Country Status (1)

Country Link
CN (1) CN114546498A (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090274054A1 (en) * 2008-05-05 2009-11-05 Shaun Wakumoto System and method for detecting a network loop
US20110128863A1 (en) * 2009-12-02 2011-06-02 Realtex Semiconductor Corp. Loop detection method and network device applying the same
CN102137169A (en) * 2011-01-30 2011-07-27 华为技术有限公司 Method, network card and communication system for binding physical internet ports
CN103067197A (en) * 2012-12-10 2013-04-24 深圳市共进电子股份有限公司 Method of internet gateway device dynamic loop test and protection and static loop test
US20140254604A1 (en) * 2013-03-11 2014-09-11 Dell Products L.P. Techniques for management of data forwarding systems while suppressing loops in telecommunications networks
CN104283730A (en) * 2013-07-08 2015-01-14 深圳市共进电子股份有限公司 Loop detecting method and system
CN105337889A (en) * 2015-12-08 2016-02-17 太仓市同维电子有限公司 Method for checking flow direction of Ethernet port of Ethernet switch through indicator lights
CN106685695A (en) * 2016-11-28 2017-05-17 上海华为技术有限公司 Failure detecting method and device thereof
CN107872370A (en) * 2017-12-27 2018-04-03 广州芯德通信科技股份有限公司 A kind of Ethernet interface loop quick determination method
CN109067807A (en) * 2018-10-16 2018-12-21 杭州安恒信息技术股份有限公司 Safety protecting method, device and electronic equipment based on WEB application firewall overload
CN109831390A (en) * 2019-01-21 2019-05-31 新华三云计算技术有限公司 Message transmission control method and device
CN111078393A (en) * 2019-11-07 2020-04-28 河北德冠隆电子科技有限公司 Interactive edge computing server and control method thereof
CN111176950A (en) * 2019-12-31 2020-05-19 苏州浪潮智能科技有限公司 Method and equipment for monitoring network card of server cluster
CN113098709A (en) * 2021-03-24 2021-07-09 深圳市乙辰科技股份有限公司 Network recovery method and device based on distributed networking system and computer equipment
CN113542421A (en) * 2021-07-19 2021-10-22 大唐网络有限公司 Data forwarding method and device based on 5G user plane functional entity
CN113722000A (en) * 2021-11-03 2021-11-30 苏州浪潮智能科技有限公司 Intelligent network card configuration method and device, electronic equipment and readable storage medium

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090274054A1 (en) * 2008-05-05 2009-11-05 Shaun Wakumoto System and method for detecting a network loop
US20110128863A1 (en) * 2009-12-02 2011-06-02 Realtex Semiconductor Corp. Loop detection method and network device applying the same
CN102137169A (en) * 2011-01-30 2011-07-27 华为技术有限公司 Method, network card and communication system for binding physical internet ports
CN103067197A (en) * 2012-12-10 2013-04-24 深圳市共进电子股份有限公司 Method of internet gateway device dynamic loop test and protection and static loop test
US20140254604A1 (en) * 2013-03-11 2014-09-11 Dell Products L.P. Techniques for management of data forwarding systems while suppressing loops in telecommunications networks
CN104283730A (en) * 2013-07-08 2015-01-14 深圳市共进电子股份有限公司 Loop detecting method and system
CN105337889A (en) * 2015-12-08 2016-02-17 太仓市同维电子有限公司 Method for checking flow direction of Ethernet port of Ethernet switch through indicator lights
CN106685695A (en) * 2016-11-28 2017-05-17 上海华为技术有限公司 Failure detecting method and device thereof
CN107872370A (en) * 2017-12-27 2018-04-03 广州芯德通信科技股份有限公司 A kind of Ethernet interface loop quick determination method
CN109067807A (en) * 2018-10-16 2018-12-21 杭州安恒信息技术股份有限公司 Safety protecting method, device and electronic equipment based on WEB application firewall overload
CN109831390A (en) * 2019-01-21 2019-05-31 新华三云计算技术有限公司 Message transmission control method and device
CN111078393A (en) * 2019-11-07 2020-04-28 河北德冠隆电子科技有限公司 Interactive edge computing server and control method thereof
CN111176950A (en) * 2019-12-31 2020-05-19 苏州浪潮智能科技有限公司 Method and equipment for monitoring network card of server cluster
CN113098709A (en) * 2021-03-24 2021-07-09 深圳市乙辰科技股份有限公司 Network recovery method and device based on distributed networking system and computer equipment
CN113542421A (en) * 2021-07-19 2021-10-22 大唐网络有限公司 Data forwarding method and device based on 5G user plane functional entity
CN113722000A (en) * 2021-11-03 2021-11-30 苏州浪潮智能科技有限公司 Intelligent network card configuration method and device, electronic equipment and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MORPHLING.HUANG: "linux网桥浅析", 《HTTPS://WWW.CNBLOGS.COM/MORPHLING/P/3458546.HTML》, pages 1 - 6 *

Similar Documents

Publication Publication Date Title
CN109086079B (en) Mounting management method and device for storage equipment
US10831467B2 (en) Techniques of updating host device firmware via service processor
CN115794257B (en) System starting method, device, electronic equipment and storage medium
CN108121560A (en) Difference bag upgrade method, device, terminal and computer readable storage medium
EP3522449A1 (en) Service state transition method and device
CN111475218A (en) Server starting method, server and computer readable storage medium
CN108052449B (en) Operating system running state detection method and device
CN111694604A (en) Method, device and equipment for installing drivers in batches and machine-readable storage medium
CN111061448A (en) Log information display method and device, electronic equipment and storage medium
CN114153477A (en) Method, device, system, equipment and medium for upgrading firmware of PCIE (peripheral component interface express) driver card
US8032791B2 (en) Diagnosis of and response to failure at reset in a data processing system
CN114546498A (en) Method, system and platform for processing abnormal starting based on optical transmitter and receiver
CN104750551A (en) A computer system and user-defined responding method thereof
CN114117562B (en) Intelligent network card management method and device, electronic equipment and computer storage medium
CN115729679A (en) Task processing method and device, computer readable storage medium and electronic device
CN115291951A (en) UEFI (unified extensible firmware interface) starting method and device, electronic equipment and storage medium
CN114116034A (en) Distributed flashing method and device
CN114228745A (en) Driving system module control method, device, equipment, medium, product and vehicle
CN113849367A (en) Server, management method, device and system thereof, electronic equipment and storage medium
CN113741985A (en) Method, device and equipment for cold start of system after BIOS (basic input output System) upgrade and readable medium
CN115129384A (en) Electronic equipment and running method of starting program of electronic equipment
CN107274589B (en) Access method and system of financial self-service terminal hardware equipment and terminal equipment
CN117311890B (en) Picture display method and device in starting process of server
CN116931954B (en) Built-in software package compiling construction method, device, equipment and medium
CN113722715B (en) Imported file checking method, checking system and computing equipment

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