WO2020238848A1 - Method and device for managing port configuration mode - Google Patents
Method and device for managing port configuration mode Download PDFInfo
- Publication number
- WO2020238848A1 WO2020238848A1 PCT/CN2020/092097 CN2020092097W WO2020238848A1 WO 2020238848 A1 WO2020238848 A1 WO 2020238848A1 CN 2020092097 W CN2020092097 W CN 2020092097W WO 2020238848 A1 WO2020238848 A1 WO 2020238848A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- local port
- port
- configuration mode
- local
- physical state
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4604—LAN interconnection over a backbone network, e.g. Internet, Frame Relay
- H04L12/462—LAN interconnection over a bridge based backbone
- H04L12/4625—Single bridge functionality, e.g. connection of two networks over a single bridge
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0866—Checking the configuration
- H04L41/0873—Checking configuration conflicts between network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/0816—Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/14—Network analysis or design
- H04L41/147—Network analysis or design for predicting network behaviour
Definitions
- the embodiments herein relate to, but are not limited to, Ethernet technology, and in particular to a method and device for managing port configuration modes.
- the local device In practical applications, it often happens that after a docking device restarts due to some reasons (such as device power failure or active operation, etc.), the physical status of the device docking port is DOWN (hereinafter the device is referred to as the local device). This situation will cause the service and management carried on the port to be interrupted. After processing, it is often found that the cause of the failure is the inconsistent configuration modes of the two pairs. Therefore, in some cases, it is necessary to modify the port configuration modes of the two parties to keep the ports connected to the device consistent. However, the local device cannot modify the port configuration mode remotely due to the disconnection, which makes modification difficult.
- the docking equipment may belong to different operation and maintenance parties and cannot be monitored through a unified operation and maintenance platform, it is impossible to ensure that the port configuration mode of the docking equipment remains consistent, and it also leads to increased maintenance costs.
- situations such as device replacement and configuration modification may also cause the docking port configuration mode to be modified, which may result in inconsistent docking port configuration modes.
- a link may be established when the docking port configuration mode is inconsistent, when the network device has operations that change the behavior of the device such as software update, the docking port may not be able to establish a link.
- the embodiment of this document provides a method for managing port configuration mode, including: comparing the consistency of the local port configuration mode with the predicted counterpart port configuration mode; according to the physical state of the local port and the Consistency, set the local port configuration mode.
- the embodiment of this document also provides an apparatus for managing port configuration mode, including: a comparing unit, configured to compare the consistency of the local port configuration mode with the predicted counterpart port configuration mode; and a setting unit, configured according to the local end The physical state of the port is consistent with the consistency, and the local port configuration mode is set.
- the embodiments herein also provide a computer-readable storage medium having an information processing program stored on the computer-readable storage medium, and when the information processing program is executed by a processor, the steps of the method for managing the port configuration mode described above are implemented.
- FIG. 1 is a schematic flowchart of a method for managing port configuration mode provided by an embodiment of this document
- FIG. 2 is a schematic flowchart of a method for managing port configuration modes according to another embodiment of this document;
- FIG. 3 is a schematic flowchart of a method for managing port configuration modes according to another embodiment of this document;
- FIG. 4 is a schematic structural diagram of an apparatus for managing port configuration mode provided by an embodiment of this document.
- port negotiation is performed according to their respective port configuration modes.
- the port mode negotiation at both ends depends on the respective port configuration.
- the port mode (adaptive/mandatory) configuration on both ends is inconsistent, the port may not work normally (even if the port works normally, there are hidden dangers).
- the network docking device may be independently managed and maintained in terms of physical location and logical relationship, there are difficulties in the unified management and query of the above-mentioned port configuration at both ends, that is, it is difficult to handle problems when problems occur.
- Fig. 1 is a schematic flow chart of a method for managing port configuration mode according to an embodiment of this paper. As shown in Fig. 1, the method includes: Step 101, comparing the local port configuration mode with the predicted counterpart port configuration mode. ⁇ ; Step 102, according to the physical state of the local port and the consistency, set the local port configuration mode.
- the local port configuration mode is adaptive or mandatory; the opposite port configuration mode is unknown, adaptive or mandatory; the physical state of the local port is normal UP or fault DOWN.
- the setting the local port configuration mode according to the physical state of the local port and the consistency includes: when the physical state of the local port is UP, regardless of the consistency The local port configuration mode remains unchanged when the performance is consistent or inconsistent, or the opposite port configuration mode is unknown; or, when the physical state of the local port is DOWN, the opposite port configuration mode When it is unknown, reversely modify the local port configuration mode, including: when the local port configuration mode is adaptive, modify it to mandatory; when the local port configuration mode is mandatory, modify it to adaptive ; Or, when the physical status of the local port is DOWN and the consistency is inconsistent, modify the local port configuration mode to the opposite port configuration mode; or, when the local port’s When the physical state is DOWN and the consistency is consistent, the local port configuration mode remains unchanged.
- the method further includes: starting a timer T3, and monitoring The physical state of the local port; when the physical state of the local port remains UP before the T3 timeout, a first notification message is sent to notify the local port configuration mode and the opposite end The port configuration mode is inconsistent; or, when the physical state of the local port jitters before the T3 timeout, a first alarm message is sent to alert that the physical state of the local port is unstable and the local port The configuration mode is inconsistent with the configuration mode of the opposite port; or, when the physical status of the local port changes to DOWN before the T3 timeout, the setting is again based on the physical status of the local port and the consistency The local port configuration mode.
- the method further includes: starting a timer T3: monitor the physical state of the local port; when the physical state of the local port remains DOWN before the T3 times out, modify the local port configuration mode in the reverse direction again, and send a second alarm message , Used to warn that the physical state of the local port is abnormal and the local port configuration mode is inconsistent with the opposite port configuration mode; or, when the physical state of the local port jitters before the T3 timeout, again Reversely modify the local port configuration mode, and send a third alarm message to warn that the physical state of the local port is unstable and that the local port configuration mode is inconsistent with the peer port configuration mode; or when Before the T3 timeout, when the physical state of the local port changes to UP, a second notification message is sent to notify that the local port configuration mode has been modified, and it is consistent with the local port configuration mode and the opposite end.
- the port configuration mode is
- the method before comparing the consistency of the local port configuration mode with the predicted counterpart port configuration mode, the method further includes: detecting the feature code stream sent by the opposite port received by the local port; When the feature code stream value is /C/frame, predict that the opposite port configuration mode is adaptive; when the feature code stream value is /I/frame, predict that the opposite port configuration mode is mandatory ; When the detection is invalid, predict that the opposite port configuration mode is unknown.
- the method before detecting the feature code stream sent by the opposite port and received by the local port, the method further includes: starting a timer T2; before the timer T2 expires, the feature code stream When the value remains stable, predict the configuration mode of the opposite port according to the characteristic code stream value; when the characteristic code stream value is unstable, it indicates that the detection is invalid; after the timer T2 expires, restart the timer T2, Re-detect the feature code stream.
- the number of times of detecting the feature code stream is greater than or equal to 3.
- the method before setting the local port configuration mode according to the physical state of the local port and the consistency, the method further includes: detecting the effective state of the local port; The effective state of the local port determines the physical state of the local port, including: when the effective state of the local port is UP, then determining that the physical state of the local port is UP, and when the local port’s physical state is UP, If the effective state is DOWN, it is determined that the physical state of the local port is DOWN.
- the method before detecting the effective state of the local port, the method further includes: starting a timer T1; before the timer T1 expires, when the effective state of the local port remains stable, then The effective state of the local port determines the physical state of the local port; when the effective state of the local port is unstable, the detection is invalid.
- the number of times of detecting the valid state of the local port is greater than or equal to 3.
- the notification message or the alarm message carries the geographic location of the local port and/or the geographic location of the opposite port.
- Fig. 2 is a schematic flow chart of a method for managing port configuration mode according to another embodiment of this document.
- the method includes: step 201, detecting the physical state of the local port in real time; in an embodiment, The physical state of the local port can be determined by detecting the effective state of the local port. For example, the effective status of the port is UP or DOWN. When it is detected that the effective state of the local port is UP, the physical state of the port is determined to be UP, and when the effective state of the local port is detected to be DOWN, the physical state of the port is determined to be DOWN.
- the timer T1 can be started to detect the physical state of the local port at a certain frequency. Through the timer T1, it can also detect whether the physical state of the port is stable, so as to avoid misjudgment caused by the unstable physical state of the port due to certain factors. Before the timer T1 expires, if the physical state of the monitoring port remains stable, the judgment result is valid, otherwise the result in this cycle is invalid. For example, in T1, if the physical status of the detected port is always DOWN or UP, it means that the status remains stable. If the physical status of the detected port is DOWN once, and UP the other time, it means the status is unstable. After the T1 timer expires, restart the T1 timer to recheck the physical status of the port.
- the detection frequency value in T1 that is, the number of sampling detections
- the detection frequency value in T1 can be selected according to a certain strategy to ensure that the number of sampling detections is at least ⁇ 3 in the T1 period.
- Step 202 Detect in real time the feature code stream sent by the opposite port received by the local port, and predict the configuration mode of the opposite port based on the value of the feature code stream; in one embodiment, the local port can be detected by The feature code stream received by the Rx port is received, whether it is /C/ or /I/ frame, to predict the configuration mode of the opposite port. For example, the predicted effective state of the peer port configuration mode is adaptive or mandatory. When the detected feature code stream value is /C/frame, it is judged as adaptive; when the detected feature code stream is /I/frame and there is no /C/frame, it is judged that the port mode of the opposite end is mandatory.
- the timer T2 can be started to directly detect the feature code stream received by the Rx port at the physical layer.
- the timer T2 is used to detect whether the port receiving feature code stream is stable, so as to avoid misjudgment caused by the instability of the receiving feature due to certain factors.
- the timer T2 expires, monitor that the status of the characteristic value of the received code stream on the local port remains stable, and then predict the configuration mode of the opposite port according to the characteristic value of the code stream; otherwise, the detection in this period is invalid, and it is judged that the mode of the opposite port is unknown.
- the detected code stream feature value is always /C/, it means that the code stream feature value remains stable, and the peer port configuration mode is judged to be adaptive; for example, if the detected code stream feature value once is / C/, the other time is /I/frame, etc., it means that the characteristic value of the code stream is unstable, the detection is invalid, and the prediction of the peer port mode is unknown.
- the T2 timer expires, restart the T2 timer to recheck the physical status of the port.
- the value of the detection frequency within T2 that is, the number of sampling inspections, can be selected according to a certain strategy to ensure that the number of sampling inspections is at least ⁇ 3 in the T2 period.
- Step 203 Compare the consistency of the local port configuration mode with the predicted counterpart port configuration mode; and set the local port configuration mode according to the physical state of the local port and the consistency.
- the local physical port status is: UP or DOWN;
- the predicted peer port configuration mode is: unknown, adaptive, and mandatory;
- the local port configuration mode is: adaptive, mandatory.
- both the predicted peer port configuration mode and the local port configuration mode can be displayed through the operation and maintenance interface.
- the local port mode is reversed according to the current value (adaptive or mandatory) of the local port configuration mode. For example, if the local port configuration mode is currently adaptive, it is changed to mandatory , If it is currently mandatory, modify it to adaptive.
- the local port configuration mode is modified according to the current value (adaptive or mandatory) of the predicted peer port configuration mode. For example, if the peer port configuration mode is currently adaptive, the local port configuration mode is modified to adaptive. The remote port configuration mode is currently mandatory, so modify the local port configuration mode to mandatory.
- Start timer T3 to monitor the physical status of the local port, and provide notification or alarm messages based on the detection result: the physical status of the local port is: UP or DOWN; 1) If T3 expires, the physical status of the local port The status remains UP, and a notification message is generated (Notification 1: Used to notify that the configuration mode of the opposite port is inconsistent with the configuration mode of the local port); 2) If the physical state of the port jitters before T3 times out, an alarm message is generated (Alarm 1: Used to notify that the physical status of the local port is unstable and that the configuration mode of the opposite port is inconsistent with the configuration mode of the local port); 3) If the physical status of the local port changes to DOWN before T3 times out, then go to 1.2.
- a log is also recorded.
- the log content includes the current configuration mode of the local port, whether the configuration mode is modified, if it is modified, the modification record and reason, etc.
- Start timer T3 monitor the physical status of the local port, and provide notification or alarm messages based on the detection result: the physical status of the local port is: UP or DOWN; 1) If T3 expires, the physical status of the local port If the status remains DOWN, the local port mode will be reversed again, that is, the original configuration mode will be restored; and an alarm message will be generated (Alarm 2: Used to notify that the physical status of the local port is abnormal, as well as the configuration mode of the peer port and the local port The port configuration mode is inconsistent); 2) If the physical state of the local port is jittered before T3 times out, the local port mode will be reversed again to restore the original configuration mode; and an alarm message (alarm 1: used to notify the local The physical state of the end port is unstable, and the configuration mode of the peer port is inconsistent with the configuration mode of the local port); 3) If T3 times out and the physical state of the local port becomes UP, the current port configuration mode is not modified and a notification message is generated (Notice 2: Used to
- a log is also recorded.
- the log content includes the current configuration mode of the local port, whether the configuration mode is modified, if it is modified, the modification record and reason, etc.
- N is initialized to 0
- the threshold may be artificially set according to certain rules.
- a log is also recorded, and the log content includes but is not limited to port configuration/status, restart reason/number of times, etc.
- the notification messages or alarm messages in 2.1 and 2.2 above may be reported to the network management or other operation and maintenance platforms.
- the notification message or the alarm message may also carry information such as the physical location of the local/opposite port, which is convenient for operation and maintenance personnel to perform on-site operations.
- the technical solution provided in this embodiment directly receives the code stream by detecting the port, judges the port configuration mode of the peer device according to the port mode characteristic code stream, and then according to the physical state of the local port, and the local port configuration mode and the opposite port configuration mode Compare and adjust the configuration mode of the local port; in this way, on the basis of the existing equipment negotiation standards, there is no need to make any changes to the docking device, which has good compatibility; in addition, for the port of the docking device in the prior art
- the configuration method relies on the negotiation between the two parties, and the local and opposite device ports need to be managed and maintained separately, which leads to problems such as the port mode negotiation relying on the configuration of the docking parties and low positioning efficiency.
- the solution of this embodiment uses timer detection and counter processing methods for port status and related fault processing to smoothly handle possible jitter in port docking negotiation.
- the configuration mode of the peer port is judged based on the port protocol interaction, and the judgment and processing are combined with the state of the local port and the configuration method.
- the solution is simple and flexible, and it is easy to deploy applications on a large scale.
- FIG. 3 is a schematic flowchart of a method for managing port configuration modes according to another embodiment of this document.
- the local device is provided with n ports, and automatic detection and recovery of the port configuration mode need to be implemented for these n ports.
- the method includes: step 301, the network device maintains a port status table; the format of the port status table is as follows: ⁇ port serial number 1, physical location 1, local port configuration mode 1, local port physical status 1. Predicted peer port configuration mode 1; port number 2, physical location 2, local port configuration mode 2, local port physical state 2, predicted peer port configuration mode 2; hence; port number n , Physical location n, local port configuration mode n, local port physical state n, predicted peer port configuration mode n; ⁇ Or, it can be as shown in Table 1:
- the port status table can be initialized according to the port configuration mode, physical location and other information, and the port status table can be updated in real time according to a certain strategy.
- the physical location n and mode configuration n of the state table are initialized according to the physical port and configuration of the network device.
- Triggering real-time updates includes, but is not limited to, changes in the physical status of the local port, detection or change of the port physical status/port mode triggered by man-machine commands or other operation and maintenance systems, and alarms that may cause the physical status of the port to change.
- the port configuration mode has two modes: self-adaptive and mandatory (half-duplex, full-duplex).
- Adaptive mode The docking parties negotiate the docking parameters after the port is connected to match the best state.
- the sending port tx direction continuously sends /C/frames, that is, configuration (configuration) code stream, if the receiving port rx direction continuously receives /C/frames, it will return to the opposite end with ack response /C/frame, the port establishes a link after the opposite end receives it; 2.
- Mandatory mode the port uses the parameters specified by the configuration for docking, divided into half-duplex and full-duplex.
- forced mode as long as the hardware is connected, the sending port tx direction will send /C/frames (ie idle frames) at a certain frequency. If the receiving port rx direction can receive /C/frames related to its own frequency, it is considered correct If the end attribute is consistent with the local end, the local port will establish a link.
- Adaptive mode and mandatory mode can be used in different scenarios.
- the basic principle is that the port configuration modes of the connected devices must be consistent.
- the port configurations of the devices on both sides of the interconnection are inconsistent (mandatory at one end and adaptive at the other end), the port of the interconnected device may fail to establish a link.
- Step 302 Detect the physical status of each port at the local end; in one embodiment, a timer T1 can be started to detect the actual link establishment status of each port at the local end at a certain frequency, and update the port state table according to the detection result. After the timer T1 expires, restart T1 to re-check the physical state of the port; use the timer T1 to detect whether the physical state of the port is stable, so as to avoid misjudgments caused by the unstable port physical state due to certain factors.
- the effective status of the port is UP or DOWN.
- the detection frequency value is the number of sampling inspections according to a certain strategy , Ensure that the number of sampling inspections is at least ⁇ 3 in the T1 period.
- the specific detection process includes: 1) Before T1 times out, the physical state n of the local port always remains UP (DOWN is not detected before T1 times out), then the physical state of the port is judged to be UP, and the state table is updated The physical state of the local port is n. And restart the T1 timer to re-check the physical state of the port; 2) Before T1 times out, the physical state n of the local port always remains DOWN (up is not detected before T1 times out), then the physical state of the port is judged to be DOWN and the state is updated Physical state n of the local port of the table.
- Step 303 predict the configuration mode of each port of the opposite end; in one embodiment, the timer T2 can be started to directly detect at the physical layer whether the characteristic code stream received by the receiving Rx port of each port of the local end is /C/ Or /I/frame, and judge the peer port mode according to the detection result and update the predicted peer port configuration mode n in the port state table. After the T2 timer expires, restart the T2 timer to re-check the port receiving the Rx code stream; use the timer T2 to check whether the port receiving feature code stream is stable, so as to avoid misjudgment caused by the instability of the receiving feature due to certain factors. .
- the effective state of the configuration mode of the peer port is adaptive or mandatory.
- the effective detection feature value is /C/frame, it is judged as adaptive; when the effective detection value is /I/frame and there is no /C/frame, it is judged that the port mode of the opposite end is mandatory.
- the detection frequency value is the number of sampling tests according to a certain strategy to ensure that the number of sampling tests is at least ⁇ 3 within the T2 period.
- the specific prediction process includes: 1) Before T2 times out, port n continuously detects /C/frames, then judges that the peer port configuration mode n is adaptive, and updates the predicted peer port configuration in the state table Mode n. And restart the T2 timer to re-check that the port receives the Rx code stream; 2) Before T2 times out, port n continues to detect /I/frames, and /C/frames are not detected, then it is judged that the configuration mode of the opposite port is mandatory, and Update the predicted peer port configuration mode n in the status table.
- Step 304 Compare the consistency between the local port configuration mode n in the port state table and the predicted counterpart port configuration mode n, and perform a configuration operation on the local port configuration mode n according to the physical state n of the local port.
- the physical state of the local port is: UP or DOWN;
- the predicted configuration mode of the opposite port is: unknown, adaptive, mandatory;
- the local port configuration mode is: adaptive, mandatory.
- both the predicted peer port configuration mode and the local port configuration mode can be displayed in real time through the operation and maintenance interface.
- the local port configuration mode n is modified according to the current value (adaptive or mandatory) of the predicted peer port configuration mode n. For example, if the peer port configuration mode n is currently adaptive, the local port The configuration mode n is changed to adaptive, and the peer port configuration mode n is currently mandatory, then the local port configuration mode n is changed to mandatory.
- Start timer T3 monitor the physical state n of the local port, and provide notification or alarm messages based on the detection result: the physical state of the local port is: UP or DOWN; 1) If T3 expires, the physical state of the local port State n remains UP, and a notification message is generated (Notification 1: Used to notify that the configuration mode of the opposite port is inconsistent with the configuration mode of the local port); 2) If the port physical state n is jittered before T3 times out, an alarm message (alarm) 1: Used to notify that the physical status of the local port is unstable, and that the configuration mode of the peer port is inconsistent with the configuration mode of the local port); 3) If the physical status n of the local port changes to DOWN before T3 times out, go to 3.2 for processing .
- a log is also recorded.
- the log content includes the current configuration mode of the local port, whether the configuration mode is modified, if it is modified, the modification record and reason, etc.
- Start timer T3 monitor the physical state n of the local port, and provide notification or alarm messages based on the detection result: the physical state of the local port is: UP or DOWN; 1) If T3 expires, the local port If the physical status n remains DOWN, the local port mode n will be reversely modified again, that is, the original configuration mode will be restored; and an alarm message will be generated (Alarm 2: Used to notify the local port of abnormal physical status and the configuration mode of the opposite port Inconsistent with the configuration mode of the local port); 2) If the physical state n of the local port jitters before T3 times out, the local port mode n is modified in the reverse direction again, that is, the original configuration mode is restored; an alarm message (alarm 1 : Used to notify that the physical status of the local port is unstable, and that the configuration mode of the peer port is inconsistent with the local port configuration mode); 3) If T3 times out and the physical state of the local port becomes UP, the current port configuration mode is not modified , And generate a notification
- a log is also recorded.
- the log content includes the current configuration mode of the local port, whether the configuration mode is modified, if it is modified, the modification record and reason, etc.
- the threshold may be artificially set according to certain rules.
- a log is also recorded, and the log content includes but is not limited to port configuration/status, restart reason/number of times, etc.
- the notification message or alarm message in 4.1 and 4.2 above may be reported to the network management or other operation and maintenance platform.
- the notification message or the alarm message can also carry and carry information in the corresponding port status table, and according to a certain strategy and combined with user account information, the specific location of the local/opposite port can be found and processed on site.
- the technical solution provided in the embodiments of this article combines the actual working status of the local port and sets the local port configuration mode according to a certain strategy, so as to realize the automatic detection and recovery of the network device port mode, eliminate potential hidden dangers, and overcome the inefficiency of traditional methods. High question.
- FIG. 4 is a schematic structural diagram of an apparatus for managing port configuration modes provided by an embodiment of this document.
- the apparatus includes: a comparing unit for comparing the local port configuration mode with the predicted peer port configuration mode
- the setting unit is configured to set the local port configuration mode according to the physical state of the local port and the consistency.
- the local port configuration mode is adaptive or mandatory; the opposite port configuration mode is unknown, adaptive or mandatory; the physical state of the local port is normal UP or fault DOWN.
- the setting unit is specifically configured to maintain all the information when the physical state of the local port is UP, regardless of whether the consistency is consistent or inconsistent, or the configuration mode of the opposite port is unknown.
- the local port configuration mode remains unchanged; or, when the physical state of the local port is DOWN and the opposite port configuration mode is unknown, the local port configuration mode is modified in the reverse direction, including: When the local port configuration mode is self-adaptive, modify it to mandatory; when the local port configuration mode is mandatory, modify it to self-adaptive; or, when the physical state of the local port is DOWN, the consistency is When they are inconsistent, modify the local port configuration mode to the opposite port configuration mode; or, when the physical state of the local port is DOWN and the consistency is consistent, keep the local port configuration The mode remains unchanged.
- the setting unit is further configured to start a timer after keeping the local port configuration mode unchanged when the physical state of the local port is UP and the consistency is inconsistent T3: monitor the physical state of the local port; when the physical state of the local port remains UP before the T3 times out, send a first notification message for notifying the local port configuration mode and all The configuration mode of the opposite port is inconsistent; or, when the physical state of the local port jitters before the T3 timeout, a first alarm message is sent to alert that the physical state of the local port is unstable and the The local port configuration mode is inconsistent with the opposite port configuration mode; or, when the physical state of the local port changes to DOWN before the T3 timeout, the physical state of the local port is again consistent with the , Set the local port configuration mode.
- the setting unit is further configured to, when the physical state of the local port is DOWN and the configuration mode of the opposite port is unknown, after the local port configuration mode is reversed modified,
- the method further includes: starting a timer T3 to monitor the physical state of the local port; when the physical state of the local port remains DOWN before the T3 times out, modifying the local port configuration in the reverse direction again Mode, and send a second alarm message to alert that the physical state of the local port is abnormal and the local port configuration mode is inconsistent with the opposite port configuration mode; or, before the T3 timeout, the local port
- the local port configuration mode is modified again in the reverse direction, and a third alarm message is sent to warn that the physical state of the local port is unstable and the local port configuration mode and the opposite The port configuration mode is inconsistent; or, when the physical state of the local port becomes UP before the T3 timeout, a second notification message is sent to notify that the local port configuration mode has been modified and is consistent with the The configuration mode of the local port is
- the setting unit is further configured to start the counter N after keeping the local port configuration mode unchanged when the physical state of the local port is DOWN and the consistency is consistent.
- the device further includes: a prediction unit, configured to detect that the local port receives the transmission from the opposite port before comparing the local port configuration mode with the predicted counterpart port configuration mode.
- a prediction unit configured to detect that the local port receives the transmission from the opposite port before comparing the local port configuration mode with the predicted counterpart port configuration mode.
- the prediction unit is further configured to start a timer T2 before detecting the feature code stream sent by the opposite port received by the local port; before the timer T2 expires, the When the characteristic code stream value remains stable, predict the configuration mode of the opposite port according to the characteristic code stream value; when the characteristic code stream value is unstable, it indicates that the detection is invalid; after the timer T2 expires, restart the timing T2, re-detect the feature code stream.
- the number of times of detecting the feature code stream is greater than or equal to 3.
- the device further includes a judging unit configured to detect the local port before setting the local port configuration mode according to the physical state of the local port and the consistency.
- the effective state of the end port judging the physical state of the local port according to the effective state of the local port, including: when the effective state of the local port is UP, then judging the physical state of the local port as UP: When the effective state of the local port is DOWN, it is determined that the physical state of the local port is DOWN.
- the judgment unit is further configured to start a timer T1 before detecting the effective state of the local port; before the timer T1 expires, when the effective state of the local port remains stable, Then the physical state of the local port is judged according to the effective state of the local port; when the effective state of the local port is unstable, the detection is invalid.
- the number of times of detecting the valid state of the local port is greater than or equal to 3.
- the notification message or the alarm message carries the geographic location of the local port and/or the geographic location of the opposite port.
- the embodiments herein also provide a computer-readable storage medium having an information processing program stored on the computer-readable storage medium, and the method for managing port configuration mode described in any of the above items when the information processing program is executed by a processor A step of.
- the technical solution provided by the embodiments of this document can automatically set the local port configuration mode to ensure the stability of the network equipment service.
- Such software may be distributed on a computer-readable medium
- the computer-readable medium may include a computer storage medium (or non-transitory medium) and a communication medium (or transitory medium).
- the term computer storage medium includes volatile and non-volatile memory implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data).
- Computer storage media include but are not limited to RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassette, tape, magnetic disk storage or other magnetic storage device, or Any other medium used to store desired information and that can be accessed by a computer.
- communication media usually contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as carrier waves or other transmission mechanisms, and may include any information delivery media .
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
Claims (15)
- 一种管理端口配置模式的方法,包括:A method for managing port configuration mode, including:比较本端端口配置模式与预测的对端端口配置模式的一致性;Compare the consistency between the local port configuration mode and the predicted peer port configuration mode;根据所述本端端口的物理状态和所述一致性,设置所述本端端口配置模式。Set the local port configuration mode according to the physical state of the local port and the consistency.
- 根据权利要求1所述的方法,其中,The method of claim 1, wherein:所述本端端口配置模式为自适应或强制;所述对端端口配置模式为未知、自适应或强制;所述本端端口的物理状态为正常UP或故障DOWN。The local port configuration mode is adaptive or mandatory; the opposite port configuration mode is unknown, adaptive or mandatory; the physical state of the local port is normal UP or failure DOWN.
- 根据权利要求2所述的方法,其中,所述根据所述本端端口的物理状态和所述一致性,设置所述本端端口配置模式,包括:The method according to claim 2, wherein the setting the local port configuration mode according to the physical state of the local port and the consistency comprises:当所述本端端口的物理状态为UP,无论所述一致性为一致或不一致,或所述对端端口配置模式为未知时,保持所述本端端口配置模式不变;When the physical state of the local port is UP, regardless of whether the consistency is consistent or inconsistent, or the opposite port configuration mode is unknown, keep the local port configuration mode unchanged;或者,当所述本端端口的物理状态为DOWN,所述对端端口配置模式为未知时,反向修改所述本端端口配置模式,包括:当所述本端端口配置模式为自适应时,修改为强制,当所述本端端口配置模式为强制时,修改为自适应;Alternatively, when the physical state of the local port is DOWN and the configuration mode of the opposite port is unknown, the reverse modification of the local port configuration mode includes: when the local port configuration mode is adaptive , Modify to mandatory, when the local port configuration mode is mandatory, modify to adaptive;或者,当所述本端端口的物理状态为DOWN,所述一致性为不一致时,将所述本端端口配置模式修改为所述对端端口配置模式;Or, when the physical state of the local port is DOWN and the consistency is inconsistent, modify the local port configuration mode to the opposite port configuration mode;或者,当所述本端端口的物理状态为DOWN且所述一致性为一致时,保持所述本端端口配置模式不变。Or, when the physical state of the local port is DOWN and the consistency is consistent, the local port configuration mode is kept unchanged.
- 根据权利要求3所述的方法,其中,The method of claim 3, wherein:当所述本端端口的物理状态为UP、所述一致性为不一致时,在保持所述本端端口配置模式不变之后,该方法还包括:When the physical state of the local port is UP and the consistency is inconsistent, after keeping the local port configuration mode unchanged, the method further includes:启动定时器T3,监控所述本端端口的物理状态;以及Start timer T3 to monitor the physical state of the local port; and当所述T3超时前,所述本端端口的物理状态保持为UP时,发送第一通知消息,用于通知所述本端端口配置模式与所述对端端口配置模式不一致;When the physical state of the local port remains UP before the T3 timeout, a first notification message is sent to notify that the local port configuration mode is inconsistent with the opposite port configuration mode;或者,当所述T3超时前,所述本端端口的物理状态抖动时,发送第一告警消息,用于告警所述本端端口的物理状态不稳定且所述本端端口配置模式与对端端口配置模式不一致;Or, when the physical state of the local port jitters before the T3 timeout, a first alarm message is sent to alert that the physical state of the local port is unstable and the local port configuration mode is different from that of the opposite end. The port configuration mode is inconsistent;或者,当所述T3超时前,所述本端端口的物理状态变为DOWN时,则再次根据所 述本端端口的物理状态和所述一致性,设置所述本端端口配置模式。Or, when the physical state of the local port becomes DOWN before the T3 timeout, the local port configuration mode is set again according to the physical state of the local port and the consistency.
- 根据权利要求3所述的方法,其中,The method of claim 3, wherein:当所述本端端口的物理状态为DOWN,所述对端端口配置模式为未知时,在反向修改所述本端端口配置模式之后,该方法还包括:When the physical state of the local port is DOWN and the configuration mode of the opposite port is unknown, after the local port configuration mode is modified in the reverse direction, the method further includes:启动定时器T3,监控所述本端端口的物理状态;以及Start timer T3 to monitor the physical state of the local port; and当所述T3超时前,所述本端端口的物理状态保持为DOWN时,再次反向修改所述本端端口配置模式,并发送第二告警消息,用于告警所述本端端口的物理状态异常且所述本端端口配置模式与对端端口配置模式不一致;When the physical state of the local port remains DOWN before the T3 timeout, the configuration mode of the local port is modified again in the reverse direction, and a second alarm message is sent to alert the physical state of the local port Abnormal and the local port configuration mode is inconsistent with the opposite port configuration mode;或者,当所述T3超时前,所述本端端口的物理状态抖动时,再次反向修改所述本端端口配置模式,并发送第三告警消息,用于告警所述本端端口的物理状态不稳定且所述本端端口配置模式与对端端口配置模式不一致;Or, when the physical state of the local port jitters before the T3 timeout, the local port configuration mode is modified again in the reverse direction, and a third alarm message is sent to alert the physical state of the local port Unstable and the local port configuration mode is inconsistent with the opposite port configuration mode;或者,当所述T3超时前,所述本端端口的物理状态变为UP时,发送第二通知消息,用于通知所述本端端口配置模式已修改,且与所述本端端口配置模式与对端端口配置模式不一致。Or, when the physical state of the local port changes to UP before the T3 timeout, a second notification message is sent to notify that the local port configuration mode has been modified, and is consistent with the local port configuration mode Inconsistent with the configuration mode of the opposite port.
- 根据权利要求3所述的方法,其中,The method of claim 3, wherein:当所述本端端口的物理状态为DOWN且所述一致性为一致时,在保持所述本端端口配置模式不变之后,该方法还包括:When the physical state of the local port is DOWN and the consistency is consistent, after keeping the local port configuration mode unchanged, the method further includes:启动计数器N,N初始化为0,重启所述本端端口,并启动定时器T4,检测所述本端端口的物理状态:Start the counter N, initialize N to 0, restart the local port, and start the timer T4 to detect the physical state of the local port:若所述本端端口的物理状态为UP,则停止对所述本端端口的操作;If the physical status of the local port is UP, stop operations on the local port;若所述本端端口的物理状态为DOWN,T4超期后,再次重启所述本端端口,检测所述本端端口的物理状态,且N=N+1;当N达到阈值后,停止对所述本端端口的操作。If the physical status of the local port is DOWN, after T4 expires, restart the local port again, detect the physical status of the local port, and N=N+1; when N reaches the threshold, stop the communication Describe the operation of the local port.
- 根据权利要求1所述的方法,其中,在比较本端端口配置模式与预测的对端端口配置模式的一致性之前,该方法还包括:The method according to claim 1, wherein, before comparing the consistency of the local port configuration mode with the predicted counterpart port configuration mode, the method further comprises:检测所述本端端口接收的所述对端端口发送的特征码流;Detecting the feature code stream sent by the opposite port received by the local port;当所述特征码流值为/C/帧时,预测所述对端端口配置模式为自适应;When the characteristic code stream value is /C/frame, predict that the opposite port configuration mode is adaptive;当所述特征码流值为/I/帧时,预测所述对端端口配置模式为强制;When the characteristic code stream value is /I/frame, predict that the opposite port configuration mode is mandatory;当所述检测无效时,预测所述对端端口配置模式为未知。When the detection is invalid, it is predicted that the opposite port configuration mode is unknown.
- 根据权利要求7所述的方法,其中,The method according to claim 7, wherein:在检测所述本端端口接收的所述对端端口发送的特征码流之前,该方法还包括:启动定时器T2;Before detecting the feature code stream sent by the opposite port and received by the local port, the method further includes: starting a timer T2;在所述定时器T2超时前,所述特征码流值保持稳定时,根据所述特征码流值预测所述对端端口配置模式;所述特征码流值不稳定时,表示检测无效;Before the timer T2 expires, when the characteristic code stream value remains stable, predict the peer port configuration mode according to the characteristic code stream value; when the characteristic code stream value is unstable, it indicates that the detection is invalid;在所述定时器T2超时后,重启所述定时器T2,重新检测所述特征码流。After the timer T2 expires, the timer T2 is restarted, and the signature stream is detected again.
- 根据权利要求8所述的方法,其中,The method according to claim 8, wherein:在所述T2内,检测所述特征码流的次数大于等于3。In the T2, the number of times of detecting the feature code stream is greater than or equal to 3.
- 根据权利要求1所述的方法,其中,在根据所述本端端口的物理状态和所述一致性,设置所述本端端口配置模式之前,该方法还包括:The method according to claim 1, wherein, before setting the local port configuration mode according to the physical state of the local port and the consistency, the method further comprises:检测所述本端端口的有效状态;Detecting the effective state of the local port;根据所述本端端口的有效状态判断所述本端端口的物理状态,包括:当所述本端端口的有效状态为UP,则判断所述本端端口的物理状态为UP,当所述本端端口的有效状态为DOWN,则判断所述本端端口的物理状态为DOWN。Judging the physical state of the local port according to the effective state of the local port includes: when the effective state of the local port is UP, judging that the physical state of the local port is UP, when the local port If the effective state of the end port is DOWN, it is determined that the physical state of the local port is DOWN.
- 根据权利要求10所述的方法,其中,在检测所述本端端口的有效状态之前,该方法还包括:启动定时器T1;The method according to claim 10, wherein before detecting the valid state of the local port, the method further comprises: starting a timer T1;在定时器T1超时前,所述本端端口的有效状态保持稳定时,则根据所述本端端口的有效状态判断所述本端端口的物理状态;所述述本端端口的有效状态不稳定时,检测无效。Before the timer T1 expires, when the effective state of the local port remains stable, the physical state of the local port is determined according to the effective state of the local port; the effective state of the local port is unstable When the test is invalid.
- 根据权利要求11所述的方法,其中,The method of claim 11, wherein:在所述T1内,检测所述本端端口的有效状态的次数大于等于3。In the T1, the number of times of detecting the valid state of the local port is greater than or equal to 3.
- 根据权利要求4或5所述的方法,其中,The method of claim 4 or 5, wherein:所述通知消息或告警消息中携带所述本端端口的地理位置和/或所述对端端口的地理位置。The notification message or the alarm message carries the geographic location of the local port and/or the geographic location of the opposite port.
- 一种管理端口配置模式的装置,其中,包括:A device for managing port configuration mode, including:比较单元,用于比较本端端口配置模式与预测的对端端口配置模式的一致性;The comparison unit is used to compare the consistency of the local port configuration mode with the predicted counterpart port configuration mode;设置单元,用于根据所述本端端口的物理状态和所述一致性,设置所述本端端口配置模式。The setting unit is configured to set the local port configuration mode according to the physical state of the local port and the consistency.
- 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有信息处理程序,所述信息处理程序被处理器执行时实现如权利要求1至13中任一项所述管理端口配置模式的方法的步骤。A computer-readable storage medium, wherein an information processing program is stored on the computer-readable storage medium, and when the information processing program is executed by a processor, the management port configuration according to any one of claims 1 to 13 is realized Pattern method steps.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910440079.2 | 2019-05-24 | ||
CN201910440079.2A CN111988162B (en) | 2019-05-24 | 2019-05-24 | Method and device for managing port configuration mode |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020238848A1 true WO2020238848A1 (en) | 2020-12-03 |
Family
ID=73436710
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/092097 WO2020238848A1 (en) | 2019-05-24 | 2020-05-25 | Method and device for managing port configuration mode |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111988162B (en) |
WO (1) | WO2020238848A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110838933A (en) * | 2018-08-17 | 2020-02-25 | 上海华为技术有限公司 | Configuration method of Ethernet optical port and Ethernet equipment |
CN116300780A (en) * | 2022-09-07 | 2023-06-23 | 广州汽车集团股份有限公司 | Component configuration method, device, electronic equipment and storage medium |
EP4216500A1 (en) * | 2022-01-20 | 2023-07-26 | Nvidia Corporation | Mechanism to identify link down reasons |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112491632A (en) * | 2020-12-15 | 2021-03-12 | 安徽皖通邮电股份有限公司 | System and method for automatically adjusting Ethernet port negotiation mode |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1835466A (en) * | 2005-03-16 | 2006-09-20 | 华为技术有限公司 | Kilomega Ethernet port butt method |
CN1893420A (en) * | 2005-07-06 | 2007-01-10 | 华为技术有限公司 | Ethernet interface butt-jointing method |
US9172602B1 (en) * | 2012-11-15 | 2015-10-27 | Qlogic, Corporation | Method and system for auto-negotiation |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101047712B (en) * | 2006-06-19 | 2010-04-21 | 华为技术有限公司 | Device and method for detecting Ethernet interface configuration |
CN101252532B (en) * | 2008-03-18 | 2010-08-25 | 华为技术有限公司 | Equipment and method for collocating Ethernet link polymerization terminal port |
CN104796306B (en) * | 2015-03-26 | 2018-11-27 | 新华三技术有限公司 | A kind of port mode machinery of consultation and equipment |
CN109714276A (en) * | 2019-03-11 | 2019-05-03 | 盛科网络(苏州)有限公司 | A kind of method of adaptive remote equipment negotiation mode |
-
2019
- 2019-05-24 CN CN201910440079.2A patent/CN111988162B/en active Active
-
2020
- 2020-05-25 WO PCT/CN2020/092097 patent/WO2020238848A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1835466A (en) * | 2005-03-16 | 2006-09-20 | 华为技术有限公司 | Kilomega Ethernet port butt method |
CN1893420A (en) * | 2005-07-06 | 2007-01-10 | 华为技术有限公司 | Ethernet interface butt-jointing method |
US9172602B1 (en) * | 2012-11-15 | 2015-10-27 | Qlogic, Corporation | Method and system for auto-negotiation |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110838933A (en) * | 2018-08-17 | 2020-02-25 | 上海华为技术有限公司 | Configuration method of Ethernet optical port and Ethernet equipment |
EP4216500A1 (en) * | 2022-01-20 | 2023-07-26 | Nvidia Corporation | Mechanism to identify link down reasons |
US11799953B2 (en) | 2022-01-20 | 2023-10-24 | Nvidia Corporation | Mechanism to identify link down reasons |
CN116300780A (en) * | 2022-09-07 | 2023-06-23 | 广州汽车集团股份有限公司 | Component configuration method, device, electronic equipment and storage medium |
CN116300780B (en) * | 2022-09-07 | 2024-01-23 | 广州汽车集团股份有限公司 | Component configuration method, device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111988162B (en) | 2022-11-29 |
CN111988162A (en) | 2020-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020238848A1 (en) | Method and device for managing port configuration mode | |
US8576698B2 (en) | Connectivity fault management timeout period control | |
CN101345663B (en) | Heartbeat detection method and heartbeat detection apparatus | |
CN106330475B (en) | Method and device for managing main and standby nodes in communication system and high-availability cluster | |
CN109413612A (en) | A kind of communication connection method for building up and equipment | |
CN103812675A (en) | Method and system for realizing allopatric disaster recovery switching of service delivery platform | |
WO2008031347A1 (en) | Method and apparatus for realizing protection switching in the ring ethernet | |
US11582706B2 (en) | Determine abnormal clock | |
CN110351127B (en) | Graceful restart method, device and system | |
WO2016095344A1 (en) | Link switching method and device, and line card | |
CN110912815B (en) | Network element ring formation preventing method, device, equipment and readable storage medium | |
WO2020119400A1 (en) | Failure processing method and apparatus, and storage medium | |
US10721135B1 (en) | Edge computing system for monitoring and maintaining data center operations | |
WO2017036165A1 (en) | Link fault detection method and apparatus | |
WO2016065751A1 (en) | Method for recovering link communication, service line card and system | |
WO2016184222A1 (en) | Failure detecting method and device | |
CN114567536B (en) | Abnormal data processing method, device, electronic equipment and storage medium | |
CN106330537B (en) | SDN network equipment control surface management device and method | |
CN111224803B (en) | Multi-master detection method in stacking system and stacking system | |
WO2021098477A1 (en) | Signal degradation processing method, apparatus and system | |
JP6057470B2 (en) | Network alarm processing system | |
CN108206823A (en) | A kind of method and the network equipment for handling message | |
US9608719B2 (en) | Optical network connection termination on client facility failure | |
WO2012022150A1 (en) | Method, system and apparatus for fault alarm | |
JP6591828B2 (en) | Relay device and relay system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20813080 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20813080 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20813080 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 24.05.22) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20813080 Country of ref document: EP Kind code of ref document: A1 |