CN111314140A - Method and device for improving stability of network equipment, network equipment and storage medium - Google Patents

Method and device for improving stability of network equipment, network equipment and storage medium Download PDF

Info

Publication number
CN111314140A
CN111314140A CN202010103346.XA CN202010103346A CN111314140A CN 111314140 A CN111314140 A CN 111314140A CN 202010103346 A CN202010103346 A CN 202010103346A CN 111314140 A CN111314140 A CN 111314140A
Authority
CN
China
Prior art keywords
connection state
physical interface
interface transceiver
change
state
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.)
Granted
Application number
CN202010103346.XA
Other languages
Chinese (zh)
Other versions
CN111314140B (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN202010103346.XA priority Critical patent/CN111314140B/en
Publication of CN111314140A publication Critical patent/CN111314140A/en
Application granted granted Critical
Publication of CN111314140B publication Critical patent/CN111314140B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application relates to a method, a device, network equipment and a storage medium for improving the stability of the network equipment, belonging to the technical field of network communication. The method comprises the following steps: when detecting that the connection state of the physical interface transceiver side changes, informing the upper layer service software that the connection state of the physical interface transceiver side changes so as to enable the upper layer service software to execute the operation corresponding to the change of the connection state; and when the upper-layer service software finishes the operation corresponding to the change of the connection state, controlling the connection state of the media access controller side to be changed into a state consistent with the connection state of the physical interface transceiver side. When the change of the connection state of the PHY side is detected, the upper layer service software is informed to carry out setting, and after the operation of the upper layer service software is finished, the connection state of the MAC side is changed to keep consistent with the connection state of the PHY side, so that the processing sequence of software and hardware is ensured, and the problem caused by multiple operations in an unstable state is prevented.

Description

Method and device for improving stability of network equipment, network equipment and storage medium
Technical Field
The present application belongs to the technical field of network communication, and in particular, relates to a method, an apparatus, a network device, and a storage medium for improving stability of a network device.
Background
On the network equipment, the connection (Link) state of the port has two states, namely, a connection state (up) and a disconnection state (down). When the connection state of the port changes, the CPU needs to be notified immediately, and then the CPU notifies the upper layer service software, so that the upper layer service software executes operations corresponding to the change of the connection state, for example, switching service traffic and stopping sending and receiving packets, and also reminds a user whether to perform some processing on a physical link. Frequent changes in connection state within a short time increase system overhead and reduce system stability. To improve system stability, software typically has a delayed reporting mechanism. The delayed reporting mechanism is that after the port generates a state change event, the port is confirmed in a certain period, if the connection state is still maintained in the changed state, the connection state is notified to the upper layer service software for processing, otherwise, the change is ignored.
When the connection state of the port changes up/down, two actions are triggered: 1. operations such as clearing/modifying registers or table entries and the like need to be actively carried out on hardware; 2. meanwhile, the event that the connection state changes is immediately notified to the upper layer service software, and the upper layer service software also needs to do some operations such as modifying registers or entries. The setting of hardware and the setting of software may occur simultaneously, and there is a possibility that the settings conflict. There will be a certain probability that this will cause some unknown problems, such as the actual value of a certain register being different from the expected value, etc. Particularly, in an environment where the port connection state up/down frequently occurs, the possibility of collision is increased, a hardware problem is easily caused, and it is difficult to recover from ambiguity as to which settings are not specified.
Although, the delayed reporting mechanism may enable the software to perform the software setting after the hardware setting is completed after the connection status changes, thereby alleviating the problem. However, the following problems remain:
1, some service software needs to sense the change of the port connection state as soon as possible, especially the state change from up to down, and the service needs to switch flow, calculate a path and the like as soon as possible, but a delayed reporting mechanism is usually used when the state change from down to up.
2, individual setup requires that the port be kept in either the up or down state for execution to be reliable. The setting is easier to keep in the down state, and the port can be kept in the down state all the time only by actively modifying the corresponding register by software before the setting. However, the up state is usually affected by the physical link and may be passively changed during the setting process, so that maintaining the up state is not easy to be realized.
Disclosure of Invention
In view of this, an object of the present application is to provide a method, an apparatus, a network device and a storage medium for improving the stability of a network device, so as to solve the problem that software perception is slow from an up state to a down state in a scheme of a delayed reporting mechanism, and the problem that individual settings need to be executed in a specific connection state to ensure reliability.
The embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a method for improving stability of a network device, including: when detecting that the connection state of a physical interface transceiver side changes, informing upper-layer service software that the connection state of the physical interface transceiver side changes so as to enable the upper-layer service software to execute an operation corresponding to the change of the connection state; and when the upper-layer service software finishes the operation corresponding to the change of the connection state, controlling the connection state of the media access controller side to be changed into a state consistent with the connection state of the physical interface transceiver side. In the embodiment of the application, when the connection state of the PHY side is detected to change, the upper-layer service software is informed to set, after the operation of the upper-layer service software is completed, the connection state of the MAC side is changed to keep consistent with the connection state of the PHY side, so that the processing sequence of the software and the hardware is ensured, the problem caused by multiple operations in an unstable state is prevented, meanwhile, the service perception and the processing speed are not influenced, the stability of network equipment can be improved, and the service is prevented from being influenced by network oscillation.
With reference to a possible implementation manner of the embodiment of the first aspect, before detecting that the connection state of the physical interface transceiver side changes, the method further includes: and controlling the connection state of the media access controller side to be a mandatory state, so that the connection state of the media access controller side is not changed due to the change of the connection state of the physical interface transceiver side. In the embodiment of the application, before detecting that the connection state of the physical interface transceiver side changes, the connection state of the media access controller side is controlled to be a forced state, so that the connection state of the media access controller side does not change due to the change of the connection state of the physical interface transceiver side, the connection state of the media access controller side is ensured not to change due to the change of the connection state of the physical interface transceiver side, and the processing sequence of software and hardware is ensured.
With reference to a possible implementation manner of the embodiment of the first aspect, whether a connection state of the physical interface transceiver side changes is detected by: detecting whether a notification of a change in connection state of the physical interface transceiver side is received from the media access controller side. In the embodiment of the application, whether the connection state of the physical interface transceiver side changes is sensed by detecting whether a notification that the connection state of the physical interface transceiver side changes is received or not, wherein the notification is sent by the media access controller side, and the scheme can be further simplified on the basis of the original processing logic.
With reference to a possible implementation manner of the embodiment of the first aspect, whether a connection state of the physical interface transceiver side changes is detected by: detecting whether the connection state of the physical interface transceiver side is changed from up to down or from down to up. In the embodiment of the application, whether the connection state of the physical interface transceiver side is changed from up to down or from down to up can be directly detected to sense whether the connection state of the physical interface transceiver side is changed, so that the feasibility and the flexibility of the scheme are expanded.
In a second aspect, an embodiment of the present application further provides an apparatus for improving stability of a network device, including: a notification module and a control module; the notification module is used for notifying upper-layer service software that the connection state of the physical interface transceiver side changes when detecting that the connection state of the physical interface transceiver side changes, so that the upper-layer service software executes an operation corresponding to the change of the connection state; and the control module is used for controlling the connection state of the media access controller side to be changed into a state consistent with the connection state of the physical interface transceiver side when the upper-layer service software finishes the operation corresponding to the change of the connection state.
In a third aspect, an embodiment of the present application further provides a network device, including: a physical interface transceiver; a media access controller; the processor is used for notifying the upper-layer service software that the connection state of the physical interface transceiver side changes when the connection state of the physical interface transceiver side changes is detected, so that the upper-layer service software executes the operation corresponding to the change of the connection state; and the upper layer service software is also used for controlling the connection state of the media access controller side to be changed into a state consistent with the connection state of the physical interface transceiver side when the upper layer service software finishes the operation corresponding to the change of the connection state.
With reference to a possible implementation manner of the embodiment of the third aspect, the processor is further configured to control the connection state of the medium access controller to be a forced state before detecting that the connection state of the physical interface transceiver side changes, so that the connection state of the medium access controller side does not change due to the change of the connection state of the physical interface transceiver side.
With reference to a possible implementation manner of the embodiment of the third aspect, the processor is further configured to, when receiving a notification that a connection state of the physical interface transceiver side changes, where the notification is sent from the media access controller side, characterize that the connection state of the physical interface transceiver side is detected to change.
With reference to a possible implementation manner of the embodiment of the third aspect, the processor is further configured to, when detecting that the connection state of the physical interface transceiver side changes from up to down or from down to up, characterize that the connection state of the physical interface transceiver side is detected to change.
In a fourth aspect, embodiments of the present application further provide a storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the method provided in the foregoing first aspect and/or any one of the possible implementation manners of the first aspect.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts. The foregoing and other objects, features and advantages of the application will be apparent from the accompanying drawings. Like reference numerals refer to like parts throughout the drawings. The drawings are not intended to be to scale as practical, emphasis instead being placed upon illustrating the subject matter of the present application.
Fig. 1 shows a flowchart of a method for improving stability of a network device according to an embodiment of the present application.
Fig. 2 shows a schematic flow chart of switching connection states of ports according to an embodiment of the present application.
Fig. 3 shows a block diagram of an apparatus for improving stability of a network device according to an embodiment of the present application.
Fig. 4 shows a schematic structural diagram of a network device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, relational terms such as "first," "second," and the like may be used solely in the description herein to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Further, the term "and/or" in the present application is only one kind of association relationship describing the associated object, and means that three kinds of relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone.
In order to solve the problems of the current delayed reporting mechanism, the application provides a method for improving the stability of network equipment, when the connection state of a sensing physical link is changed, hardware keeps the port connection state unchanged, upper layer service software is informed to process the change, after the upper layer service software completes corresponding operation, the port state of the hardware side is changed, so that the problems that the software sensing from an up state to a down state is slow in the scheme of the delayed reporting mechanism and that individual setting needs to be executed in a specific connection state to ensure the reliability can be effectively avoided. The method for improving the stability of the network device provided by the embodiment of the present application will be described with reference to fig. 1.
Step S101: when detecting that the connection state of the physical interface transceiver side changes, notifying upper-layer service software that the connection state of the physical interface transceiver side changes, so that the upper-layer service software executes an operation corresponding to the change of the connection state.
When detecting that a connection state of a physical interface transceiver (PHY) side changes, a processor (e.g., a Central Processing Unit, CPU) notifies upper layer service software that the connection state of the PHY side changes, so that the upper layer service software executes an operation corresponding to the change of the connection state, for example, operations such as service switching and table entry deletion.
As an embodiment, whether the connection state of the physical interface transceiver side changes is detected by detecting whether a notification of the change of the connection state of the physical interface transceiver side sent from the Media Access Controller (MAC) side is received, and when the notification of the change of the connection state of the physical interface transceiver side sent from the MAC side is received, it is characterized that the change of the connection state of the physical interface transceiver side is detected. Usually, the change of the port connection state is firstly sensed by the PHY side, when a connection state event occurs at the PHY side, the PHY side notifies the processor through an interrupt mode through a Media Access Controller (MAC) side, and after receiving the notification, the processor notifies the PHY side of the upper layer service software that the connection state changes.
In still another embodiment, the detection of the change of the connection state of the physical interface transceiver side is performed by detecting whether the connection state of the physical interface transceiver side changes from up to down or from down to up, and the detection of the change of the connection state of the physical interface transceiver side is characterized when the detection of the change of the connection state of the physical interface transceiver side changes from up to down or from down to up. In this embodiment, the processor senses whether the connection state of the physical interface transceiver side changes by detecting whether the connection state of the physical interface transceiver side changes from up to down or from down to up in real time through the media access controller.
Step S102: and when the upper-layer service software finishes the operation corresponding to the change of the connection state, controlling the connection state of the media access controller side to be changed into a state consistent with the connection state of the physical interface transceiver side.
And when the upper-layer service software finishes the operation corresponding to the change of the connection state, controlling the connection state of a Media Access Controller (MAC) side to be changed into a state consistent with the connection state of the physical interface transceiver side. That is, in the embodiment of the present application, the connection state of the MAC side does not change due to the change of the connection state of the PHY side, and the connection state of the MAC side is controlled to change until the upper layer service software completes the operation corresponding to the change of the connection state, so that the connection state of the MAC side is consistent with the connection state of the PHY side. Usually, the change of the port connection state is firstly sensed by the PHY side, then the connection state of the MAC side is changed in a linkage manner, and then the MAC side notifies upper-layer service software on a processor to process the change in an interrupt manner. Before detecting that the connection state of the physical interface transceiver side changes, the connection state of the media access controller side is controlled to be a forced state, so that the connection state of the media access controller side does not change due to the change of the connection state of the physical interface transceiver side; and then after the PHY side generates an event of connection state change, the connection state of the MAC side is forced to be kept unchanged, the event of connection state change generated by the PHY side is notified to the processor, after the upper-layer service software running on the processor executes the operation corresponding to the connection state change, the forced connection state of the MAC side is controlled to be changed to be consistent with the PHY, and the setting of hardware is triggered. Therefore, the settings are linearly executed, the processing sequence of software and hardware can be effectively ensured, the problem caused by multiple operations in an unstable state is prevented, meanwhile, the service perception and the processing speed are not influenced, the stability of network equipment can be improved, and the service is prevented from being influenced by network oscillation.
For convenience of understanding, a specific embodiment of switching the connection state of the ports shown in fig. 2 is described as an example. Firstly, the initialization process is carried out, the network equipment is started, and after the PHY side finds the up state, the MAC side is set to the up state of a forced state (forceLink), so that the PHY side and the MAC side are both in the up state. Then waiting for the state of the PHY side to be changed into down; then, the PHY side is processed to generate down, after the PHY side generates down event, the MAC side informs the upper layer service software on the processor to set through an interruption mode, and after the upper layer service software is set, the MAC side is set to be in the down state of Force Link, and the hardware is triggered to start setting; then start to wait for the state of the PHY side to change to up; and then the PHY side generates up processing, when the PHY side generates up event, the MAC side informs the upper layer service software on the processor to set in an interruption mode, and after the upper layer service software is set, the MAC side is set to be in the up state of Force Link, and the hardware is triggered to start setting. The process then waits for the PHY side to change to down, and so on.
According to the method and the device, when the connection state of the physical link changes, the linkage of the PHY side and the MAC side is separated. When detecting that the connection state of the PHY side changes, notifying upper layer service software to perform equipment, and meanwhile, forcibly keeping the connection state of the MAC side unchanged, so that the connection state of the MAC side does not change due to the change of the connection state of the PHY side; after the upper-layer service software is operated, the connection state of the MAC side is changed to keep consistent with that of the PHY side, so that the settings are linearly executed, the processing sequence of the software and the hardware can be effectively ensured, the problem caused by multiple operations in an unstable state is prevented, the service perception and the processing speed are not influenced, the stability of network equipment can be improved, and the service is prevented from being influenced by network oscillation.
The embodiment of the present application further provides an apparatus 100 for improving stability of a network device, as shown in fig. 3. The apparatus 100 for improving the stability of the network device includes: a notification module 110 and a control module 120.
A notification module 110, configured to notify, when detecting that a connection state of a physical interface transceiver side changes, upper layer service software that the connection state of the physical interface transceiver side changes, so that the upper layer service software executes an operation corresponding to the change of the connection state.
A control module 120, configured to control, when the upper layer service software completes an operation corresponding to the change of the connection state, the connection state of the media access controller side to be changed to a state consistent with the connection state of the physical interface transceiver side.
The apparatus 100 for improving the stability of the network device further includes: and a detection module. In an embodiment, the detecting module is configured to detect whether a notification that the connection state of the physical interface transceiver side changes is received from the media access controller side, and if so, the detecting module indicates that the connection state of the physical interface transceiver side changes.
In another embodiment, the detecting module is configured to detect whether the connection state of the physical interface transceiver side changes from up to down or from down to up, and when the connection state of the physical interface transceiver side changes, the detecting module indicates that the connection state of the physical interface transceiver side changes.
Optionally, the control module 120 is further configured to, before the detection module detects that the connection state of the physical interface transceiver side changes, control the connection state of the media access controller side to be a forced state, so that the connection state of the media access controller side does not change due to the change of the connection state of the physical interface transceiver side.
The implementation principle and the generated technical effect of the apparatus 100 for improving the stability of the network device provided in the embodiment of the present application are the same as those of the foregoing method embodiment, and for a brief description, no mention is made in part of the embodiment of the apparatus, and reference may be made to the corresponding contents in the foregoing method embodiment.
As shown in fig. 4, fig. 4 is a block diagram illustrating a network device 200 according to an embodiment of the present disclosure. The network device 200 includes: a physical interface transceiver 210, a media access controller 220, a processor 240, and a memory 250. It should be noted that the physical interface transceiver 210 and the media access controller 220 may be separately and independently configured, or may be implemented by being integrated into one chip.
The physical interface transceiver 210 is connected to the media access controller 220, the media access controller 220 is connected to the processor 240, and the processor 240 is connected to the memory 250. The physical interface transceiver 210 is used for transceiving data. The mac 220 is used to solve the problem of how to allocate the right to use the channel when the use of the shared channel in the lan generates contention. The memory 250 is used for storing a computer program, such as the software functional module shown in the figure, i.e. the apparatus 100 for improving the stability of the network device. The apparatus 100 for improving the stability of the network device includes at least one software functional module, which may be stored in the memory 250 in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the network device 200. The processor 240 is configured to execute an executable module stored in the memory 250, such as a software functional module or a computer program included in the apparatus 100 for improving the stability of the network device. For example, the processor 240 is configured to, when detecting that a connection state of the physical interface transceiver side changes, notify the upper layer service software that the connection state of the physical interface transceiver side changes, so that the upper layer service software executes an operation corresponding to the change of the connection state; and the upper layer service software is also used for controlling the connection state of the media access controller side to be changed into a state consistent with the connection state of the physical interface transceiver side when the upper layer service software finishes the operation corresponding to the change of the connection state. In addition, the processor 240 is further configured to control the connection state of the medium access controller to be a forced state before detecting that the connection state of the physical interface transceiver side changes, so that the connection state of the medium access controller side does not change due to the change of the connection state of the physical interface transceiver side. In an embodiment, the processor 240 is further configured to, when receiving a notification that the connection state of the physical interface transceiver side changes, where the notification is sent from the media access controller side, characterize that the connection state of the physical interface transceiver side is detected to change. In another embodiment, the processor 240 is further configured to detect that the connection state of the physical interface transceiver side changes from up to down or from down to up, and indicate that the connection state of the physical interface transceiver side changes. The Memory 250 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like.
The processor 240 may be an integrated circuit chip having signal processing capabilities. The processor may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor 240 may be any conventional processor or the like.
The network device 200 includes, but is not limited to, a switch, a router, and the like.
The embodiment of the present application further provides a non-volatile computer-readable storage medium (hereinafter, referred to as a storage medium), where the storage medium stores a computer program, and when the computer program is run by the network device 200, the computer program performs the above-mentioned method for improving the stability of the network device.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a notebook computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for improving stability of a network device, comprising:
when detecting that the connection state of a physical interface transceiver side changes, informing upper-layer service software that the connection state of the physical interface transceiver side changes so as to enable the upper-layer service software to execute an operation corresponding to the change of the connection state;
and when the upper-layer service software finishes the operation corresponding to the change of the connection state, controlling the connection state of the media access controller side to be changed into a state consistent with the connection state of the physical interface transceiver side.
2. The method of claim 1, wherein prior to detecting a change in connection status on the physical interface transceiver side, the method further comprises:
and controlling the connection state of the media access controller side to be a mandatory state, so that the connection state of the media access controller side is not changed due to the change of the connection state of the physical interface transceiver side.
3. The method according to claim 1, characterized in that it is detected whether the connection status of the physical interface transceiver side has changed by:
detecting whether a notification of a change in connection state of the physical interface transceiver side is received from the media access controller side.
4. The method according to claim 1, characterized in that it is detected whether the connection status of the physical interface transceiver side has changed by:
and detecting whether the connection state of the physical interface transceiver side is changed from a connection state up to a disconnection state down or from down to up.
5. An apparatus for improving stability of a network device, comprising:
the notification module is used for notifying upper-layer service software that the connection state of the physical interface transceiver side changes when detecting that the connection state of the physical interface transceiver side changes, so that the upper-layer service software executes an operation corresponding to the change of the connection state;
and the control module is used for controlling the connection state of the media access controller side to be changed into a state consistent with the connection state of the physical interface transceiver side when the upper-layer service software finishes the operation corresponding to the change of the connection state.
6. A network device, comprising:
a physical interface transceiver;
a media access controller;
the processor is used for notifying the upper-layer service software that the connection state of the physical interface transceiver side changes when the connection state of the physical interface transceiver side changes is detected, so that the upper-layer service software executes the operation corresponding to the change of the connection state;
and the upper layer service software is also used for controlling the connection state of the media access controller side to be changed into a state consistent with the connection state of the physical interface transceiver side when the upper layer service software finishes the operation corresponding to the change of the connection state.
7. The apparatus of claim 6, wherein the processor is further configured to control the connection status of the mac side to be a forced status before detecting that the connection status of the phy transceiver side changes, so that the connection status of the mac side does not change due to the change of the connection status of the phy transceiver side.
8. The apparatus of claim 6, wherein the processor is further configured to, when receiving a notification of a change in connection status of the physical interface transceiver side sent from the media access controller side, characterize that the change in connection status of the physical interface transceiver side is detected.
9. The apparatus of claim 6, wherein the processor is further configured to characterize that the change of the connection state of the physical interface transceiver side is detected when the connection state of the physical interface transceiver side is changed from the connected state up to the disconnected state down or from down to up.
10. A storage medium having stored thereon a computer program which, when executed by a processor, performs the method according to any one of claims 1-4.
CN202010103346.XA 2020-02-19 2020-02-19 Method and device for improving stability of network equipment, network equipment and storage medium Active CN111314140B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010103346.XA CN111314140B (en) 2020-02-19 2020-02-19 Method and device for improving stability of network equipment, network equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010103346.XA CN111314140B (en) 2020-02-19 2020-02-19 Method and device for improving stability of network equipment, network equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111314140A true CN111314140A (en) 2020-06-19
CN111314140B CN111314140B (en) 2021-12-17

Family

ID=71161894

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010103346.XA Active CN111314140B (en) 2020-02-19 2020-02-19 Method and device for improving stability of network equipment, network equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111314140B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113612652A (en) * 2021-06-25 2021-11-05 苏州浪潮智能科技有限公司 Port physical link state detection method and system with external PHY chip
CN115996191A (en) * 2022-11-21 2023-04-21 迈普通信技术股份有限公司 Port state control method, device, network communication equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020064155A1 (en) * 2000-11-30 2002-05-30 Shu-Yi Yen PHY signal control device and method for selectively generating a specific warning data
CN101146104A (en) * 2007-07-17 2008-03-19 中兴通讯股份有限公司 A method and device for quickly transmitting physical chip status and status change
CN101222526A (en) * 2008-01-23 2008-07-16 中兴通讯股份有限公司 Method and apparatus for loading port driver of network appliance physical layer
WO2013101063A1 (en) * 2011-12-29 2013-07-04 Intel Corporation Wired communications connector included in a power device
CN103501239A (en) * 2013-09-13 2014-01-08 华为技术有限公司 Port state synchronization method and system and port state synchronization associated devices
CN108337111A (en) * 2018-01-05 2018-07-27 新华三技术有限公司 Obtain the method and device of network node topology
CN108900481A (en) * 2018-06-13 2018-11-27 四川微迪智控科技有限公司 A kind of interchanger safety access system and method
CN110177010A (en) * 2019-05-07 2019-08-27 京信通信系统(中国)有限公司 A kind of link switch-over method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020064155A1 (en) * 2000-11-30 2002-05-30 Shu-Yi Yen PHY signal control device and method for selectively generating a specific warning data
CN101146104A (en) * 2007-07-17 2008-03-19 中兴通讯股份有限公司 A method and device for quickly transmitting physical chip status and status change
CN101222526A (en) * 2008-01-23 2008-07-16 中兴通讯股份有限公司 Method and apparatus for loading port driver of network appliance physical layer
WO2013101063A1 (en) * 2011-12-29 2013-07-04 Intel Corporation Wired communications connector included in a power device
CN103501239A (en) * 2013-09-13 2014-01-08 华为技术有限公司 Port state synchronization method and system and port state synchronization associated devices
CN108337111A (en) * 2018-01-05 2018-07-27 新华三技术有限公司 Obtain the method and device of network node topology
CN108900481A (en) * 2018-06-13 2018-11-27 四川微迪智控科技有限公司 A kind of interchanger safety access system and method
CN110177010A (en) * 2019-05-07 2019-08-27 京信通信系统(中国)有限公司 A kind of link switch-over method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ZHENZHE ZHONG,ISABELLE HAMCHAOUI,ALEXANDRE FERRIEUX,RIDA KHATOUN: "CDBE:A cooperative way to improve end-to-end congestion control in mobile network", 《IEEE》 *
王军: "IEEE1588与同步以太网技术的研究与实现", 《中国优秀硕士学位论文全文数据库》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113612652A (en) * 2021-06-25 2021-11-05 苏州浪潮智能科技有限公司 Port physical link state detection method and system with external PHY chip
CN113612652B (en) * 2021-06-25 2023-07-18 苏州浪潮智能科技有限公司 Port physical link state detection method and system with external PHY chip
CN115996191A (en) * 2022-11-21 2023-04-21 迈普通信技术股份有限公司 Port state control method, device, network communication equipment and storage medium

Also Published As

Publication number Publication date
CN111314140B (en) 2021-12-17

Similar Documents

Publication Publication Date Title
CN111314140B (en) Method and device for improving stability of network equipment, network equipment and storage medium
CN106330475B (en) Method and device for managing main and standby nodes in communication system and high-availability cluster
CN111447094B (en) Master-slave switching method of dual computers, terminal equipment and computer readable storage medium
CN105009554A (en) Method for detecting whether hardware of intelligent terminal is running abnormally and intelligent terminal
CN110072244B (en) Control method and device of radio link failure timer
US9442784B2 (en) Management device, management method, and medium storing management program
JP2011022934A (en) Electronic control unit and method for detecting failure
CN111355637B (en) Network card state detection method, device, equipment and storage medium
CN103631651A (en) Method and system for closing application programs
CN109672618B (en) Redundant interface processing method, device, server and storage medium
US6321289B1 (en) Apparatus for automatically notifying operating system level applications of the occurrence of system management events
CN106886457B (en) Message queue processing method and device
JP2019084942A (en) Electronic control apparatus
CN107179911B (en) Method and equipment for restarting management engine
JP2003345620A (en) Process monitoring method for multi-node cluster system
CN108600044B (en) Interface state acquisition method, device and equipment
JPH0944376A (en) Process state management system
CN106059810B (en) Message notification method and system
WO2016165467A1 (en) Traffic flow-based task scheduling method and apparatus
JP2856617B2 (en) Programmable controller
US20200233826A1 (en) Method for maintaining memory sharing in a computer cluster
JP2019047177A (en) Monitor, monitoring system and computer program
US6550007B1 (en) BIOS-level floppy boot-sector virus prevention
CN110519098A (en) A kind of processing method and processing device of abnormal single-board
JP2016167107A (en) Control device, bus circuit, method, and program

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