CN107517114B - Method and device for updating link state of communication port - Google Patents

Method and device for updating link state of communication port Download PDF

Info

Publication number
CN107517114B
CN107517114B CN201610429113.2A CN201610429113A CN107517114B CN 107517114 B CN107517114 B CN 107517114B CN 201610429113 A CN201610429113 A CN 201610429113A CN 107517114 B CN107517114 B CN 107517114B
Authority
CN
China
Prior art keywords
communication port
communication
result
time period
link
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610429113.2A
Other languages
Chinese (zh)
Other versions
CN107517114A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610429113.2A priority Critical patent/CN107517114B/en
Priority to PCT/CN2017/087863 priority patent/WO2017215537A1/en
Publication of CN107517114A publication Critical patent/CN107517114A/en
Application granted granted Critical
Publication of CN107517114B publication Critical patent/CN107517114B/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
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • 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)
  • Maintenance And Management Of Digital Transmission (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method and a device for updating a link state of a communication port, wherein the updating method comprises the following steps: detecting the communication quality of the communication port to obtain a detection result; and determining a strategy for updating the state of the communication port according to the detection result. By the technical scheme of the invention, the link state of the communication port can be updated in real time or delayed according to the communication quality of the communication port. The invention can give consideration to the rapid convergence and the anti-interference of the communication equipment and ensure the stable work of the communication equipment.

Description

Method and device for updating link state of communication port
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for updating a link status of a communication port.
Background
At present, a synchronization mechanism is generally adopted for updating the link state of a communication port, and the actual link state of the communication port is read, so that the state of the communication port is updated to a software table synchronously, and a service module is notified, and the service module performs related service actions according to the configuration of current equipment and the link state of the communication port. Generally, the faster the update speed, the more sensitive the device will be to react, and the less robust and interference-resistant the device will be.
In a network environment with a slightly poor link quality, if the link state of the communication port is reported in real time, service interruption may occur for several minutes for some services, and the stability of the device operation is deteriorated.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a reliable method for updating the link state of the communication port, by which the link state of the communication port can be updated by selecting an update strategy according to the communication quality of the communication port, thereby avoiding service error update caused by abnormal update of the link state of the communication port, avoiding service abnormal interruption and ensuring stable work of communication equipment.
In order to solve the technical problems, the technical scheme provided by the invention is as follows:
a method for updating a link status of a communication port, the method comprising:
detecting the communication quality of the communication port to obtain a detection result;
and determining a strategy for updating the state of the communication port according to the detection result.
Further, the detecting result includes a first result and a second result, the communication port is an optical communication port, and the detecting the communication quality of the communication port to obtain the detecting result includes:
checking that the optical signal of the communication port loses LOS signal according to a time period t1, and if the times of generating and eliminating the LOS signal of the communication port are accumulated to not reach c1 times, judging the communication quality of the communication port to be a first result;
checking the LOS signal of the communication port according to a time period T1, and if the times of generating and eliminating the LOS signal of the communication port are accumulated to reach C1 times and C1 does not reach C1 times in a T1 time period, judging the communication quality of the communication port to be a first result;
checking the LOS signal of the communication port according to a time period T1, and if the times of generating and eliminating the LOS signal of the communication port are accumulated to reach C1 times and C1 reaches C1 times in a T1 time period, judging the communication quality of the communication port to be a second result.
Further, the detecting result includes a first result and a second result, the communication port is an electrical communication port, and the detecting the communication quality of the communication port obtains the detecting result, including:
checking the line connection state of the communication port network cable according to a time period t2, and if the accumulated times of disconnection and recovery of the communication port network cable do not reach c2 times, judging the communication quality of the communication port to be a first result;
checking the line connection state of the communication port network cable according to a time period T2, and if the times of disconnection and recovery of the communication port network cable are accumulated to reach C2 times and C2 does not reach C2 times in a T2 time period, judging the communication quality of the communication port to be a first result;
and checking the line connection state of the communication port network cable according to a time period T2, and if the accumulated times of disconnection and recovery of the communication port network cable reach C2 times and C2 reaches C2 times in a T2 time period, judging the communication quality of the communication port to be a second result.
Further, the policy for determining the state of the communication port to update according to the detection result includes:
when the detection result is a first result, updating the link state of the communication port in real time;
and when the detection result is a second result, carrying out delay updating on the link state of the communication port.
Further, the link state of the communication port is updated in real time, and the link state of the communication port is reported to the service module in real time.
Further, the updating the link state of the communication port with a delay time includes:
when the link state of the communication port is changed from normal link to link interruption, if the time for keeping the link interruption exceeds the threshold time, reporting the current link state of the communication port to a service module after the link interruption exceeds the threshold time;
when the link state of the communication port is changed from normal link to link interruption, if the time for keeping the link interruption does not exceed the threshold time, the current link state of the communication port is not reported to a service module.
The embodiment of the invention also provides a device for updating the link state of the communication port, which comprises:
the detection module is used for detecting the communication quality of the communication port to obtain a detection result;
and the processing module is used for determining real-time update or delayed update of the state of the communication port according to the detection result.
Further, the detection result includes a first result and a second result, the communication port is an optical communication port, and the detection module is specifically configured to:
checking LOS signals of the communication ports according to a time period t1, and if the times of generating and eliminating the LOS signals of the communication ports are accumulated to not reach c1 times, judging the communication quality of the communication ports to be a first result;
checking the LOS signal of the communication port according to a time period T1, and if the times of generating and eliminating the LOS signal of the communication port are accumulated to reach C1 times and C1 does not reach C1 times in a T1 time period, judging the communication quality of the communication port to be a first result;
checking the LOS signal of the communication port according to a time period T1, and if the times of generating and eliminating the LOS signal of the communication port are accumulated to reach C1 times and C1 reaches C1 times in a T1 time period, judging the communication quality of the communication port to be a second result.
Further, the detection result includes a first result and a second result, the communication port is an electrical communication port, and the detection module is specifically configured to:
checking the line connection state of the communication port network cable according to a time period t2, and if the accumulated times of disconnection and recovery of the communication port network cable do not reach c2 times, judging the communication quality of the communication port to be a first result;
checking the line connection state of the communication port network cable according to a time period T2, and if the times of disconnection and recovery of the communication port network cable are accumulated to reach C2 times and C2 does not reach C2 times in a T2 time period, judging the communication quality of the communication port to be a first result;
and checking the line connection state of the communication port network cable according to a time period T2, and if the accumulated times of disconnection and recovery of the communication port network cable reach C2 times and C2 reaches C2 times in a T2 time period, judging the communication quality of the communication port to be a second result.
Further, the processing module is specifically configured to:
when the detection result is a first result, updating the link state of the communication port in real time;
and when the detection result is a second result, carrying out delay updating on the link state of the communication port.
The beneficial effects brought by the invention are as follows:
in the scheme, the communication quality of the communication port is detected, and the updating strategy is executed on the state of the communication port according to the detection result, so that the service error updating caused by the updating due to the abnormal link state of the communication port can be avoided, the abnormal interruption of the service is avoided, and the stable work of the communication equipment is ensured. In addition, the invention supports communication ports with different communication qualities, gives consideration to the sensitivity and the anti-interference performance of communication equipment, and greatly improves the reliability of the communication equipment.
Drawings
FIG. 1 is a flow diagram illustrating adaptive selection of a communication port network environment;
FIG. 2 is a schematic diagram of a communication port link status updating apparatus;
FIG. 3 is a schematic diagram illustrating an adaptive selection of network environments for communication ports according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a link status update of a communication port according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages to be solved by the embodiments of the present invention clearer, the following detailed description will be given with reference to the accompanying drawings and specific embodiments.
The embodiment of the invention provides a reliable link state updating method for a communication port, aiming at the problems of service error updating, abnormal interruption and unstable communication equipment caused by abnormal updating of the link state of the communication port in the prior art. And detecting the communication quality of the communication port, and executing an updating strategy on the state of the communication port according to the detection result. The invention supports communication ports with different communication qualities, gives consideration to the sensitivity and the anti-interference performance of communication equipment and improves the reliability of the communication equipment.
In consideration of the difference in the network environment quality of the device, the present embodiment divides the network environment quality into two categories:
1. the network environment with good communication quality is generally applied to operators such as mobile operators, Unicom operators and the like, under the environment, the requirements on the quality of network cables and optical fibers are extremely strict, the wiring also needs to meet certain specifications, the equipment reacts sensitively, reacts in real time to the state change of a link, even if a flash break with extremely short time is generated in the link, the equipment can be captured, and the service can make corresponding actions.
2. The network environment with poor communication quality is generally used in government, enterprise, finance and other industries, in the environment, stable operation of the service is crucial, and the stability and anti-interference performance of the equipment are more concerned than the sensitivity of the equipment, so that the equipment used in the environment needs to filter out tiny interference in the link, when the link is in a flash break, the equipment considers the link as a normal phenomenon and filters out the normal phenomenon, and the service does not keep normal operation because of the processing of the flash break.
Through the above criteria, the link status can be judged to be good or bad.
As shown in fig. 1, the present embodiment provides a method for updating a link status of a communication port, where the method includes:
step S1: detecting the communication quality of the communication port to obtain a detection result;
step S2: and determining to update the state of the communication port in real time or in a delayed manner according to the detection result.
The embodiment of the invention detects the communication quality of the communication port and executes the updating strategy to the state of the communication port according to the detection result. By the scheme, service error updating caused by updating due to the abnormal link state of the communication port can be avoided, abnormal interruption of the service is avoided, and stable work of the communication equipment is ensured. In addition, the invention supports communication ports with different communication qualities, gives consideration to the sensitivity and the anti-interference performance of communication equipment, and greatly improves the reliability of the communication equipment.
The communication ports of the communication equipment are divided into optical communication ports and electric communication ports, and the standards for judging the communication quality are different for different communication ports.
Specifically, when the communication port is an optical communication port, the detecting the communication quality of the communication port to obtain a detection result includes:
checking that the optical signal of the communication port loses LOS signals according to a time period t1, and if the times of generating and eliminating the LOS signals of the accumulated communication port do not reach c1 times, judging the communication quality of the communication port to be a first result;
checking LOS signals of the communication ports according to a time period T1, and if the times of generating and eliminating the LOS signals of the communication ports are accumulated to reach C1 times and C1 does not reach C1 times in a T1 time period, judging the communication quality of the communication ports to be a first result;
the LOS signal of the communication port is checked at a time period T1, and if the number of times of generating and removing the LOS signal by the communication port is accumulated to reach C1 times, and C1 reaches C1 times within a time period T1, the communication quality of the communication port is judged to be a second result.
Specifically, when the communication port is an electrical communication port, the detecting of the communication quality of the communication port obtains a detection result, and the detecting includes:
checking the line connection state of the communication port network cable according to a time period t2, and if the accumulated disconnection and recovery times of the communication port network cable do not reach c2 times, judging the communication quality of the communication port to be a first result;
checking the line connection state of the communication port network cable according to a time period T2, and if the accumulated times of disconnection and recovery of the communication port network cable reach C2 times and C2 does not reach C2 times in a T2 time period, judging the communication quality of the communication port to be a first result;
and checking the line connection state of the communication port network cable according to a time period T2, and if the accumulated times of disconnection and recovery of the communication port network cable reach C2 times and C2 reaches C2 times in a T2 time period, judging the communication quality of the communication port to be a second result.
Further, determining a policy for updating the state of the communication port according to the detection result, including:
when the detection result is a first result, updating the link state of the communication port in real time;
and when the detection result is a second result, performing delay updating on the link state of the communication port.
Furthermore, the link state of the communication port is updated in real time, and the link state of the communication port is reported to the service module in real time.
Further, the updating the link state of the communication port with a delay time includes:
when the link state of the communication port is changed from normal link to link interruption, if the time for keeping the link interruption exceeds the threshold time, reporting the current link state of the communication port to the service module after the link interruption exceeds the threshold time;
when the link state of the communication port is changed from normal link to link interruption, if the time for keeping the link interruption does not exceed the threshold time, the current link state of the communication port is not reported to the service module.
This embodiment also provides a link status updating apparatus of a communication port, as shown in fig. 2, the updating apparatus includes:
the detection module 21 is configured to detect the communication quality of the communication port to obtain a detection result;
and the processing module 22 is configured to determine a policy for updating the state of the communication port according to the detection result.
The embodiment detects the communication quality of the communication port, and executes the update strategy for the state of the communication port according to the detection result. By the scheme, service error updating caused by updating due to the abnormal link state of the communication port can be avoided, abnormal interruption of the service is avoided, and stable work of the communication equipment is ensured. In addition, the invention supports communication ports with different communication qualities, gives consideration to the sensitivity and the anti-interference performance of communication equipment, and greatly improves the reliability of the communication equipment.
Communication ports of communication equipment are divided into optical communication ports and electrical communication ports, and standards for judging communication quality are different for different communication ports.
Specifically, when the communication port is an optical communication port, the detection module is specifically configured to:
checking LOS signals of the communication ports according to a time period t1, and if the times of generating and eliminating the LOS signals by the accumulated communication ports do not reach c1 times, judging the communication quality of the communication ports to be a first result;
checking LOS signals of the communication ports according to a time period T1, and if the times of generating and eliminating the LOS signals of the communication ports are accumulated to reach C1 times and C1 does not reach C1 times in a T1 time period, judging the communication quality of the communication ports to be a first result;
the LOS signal of the communication port is checked at a time period T1, and if the number of times of generating and removing the LOS signal by the communication port is accumulated to reach C1 times, and C1 reaches C1 times within a time period T1, the communication quality of the communication port is judged to be a second result.
Specifically, when the communication port is an electrical communication port, the detection module is specifically configured to:
checking the line connection state of the communication port network cable according to a time period t2, and if the accumulated disconnection and recovery times of the communication port network cable do not reach c2 times, judging the communication quality of the communication port to be a first result;
checking the line connection state of the communication port network cable according to a time period T2, and if the accumulated times of disconnection and recovery of the communication port network cable reach C2 times and C2 does not reach C2 times in a T2 time period, judging the communication quality of the communication port to be a first result;
and checking the line connection state of the communication port network cable according to a time period T2, and if the accumulated times of disconnection and recovery of the communication port network cable reach C2 times and C2 reaches C2 times in a T2 time period, judging the communication quality of the communication port to be a second result.
Further, the processing module is specifically configured to:
when the detection result is a first result, updating the link state of the communication port in real time;
and when the detection result is a second result, performing delay updating on the link state of the communication port.
When the link state of the automatic switching communication port is updated in real time or in delayed time, the link state updating device performs different treatments according to the current selection:
if the link state updating device selects the link state of the communication port to be updated in real time, immediately notifying a service module when the link state of the communication port changes;
if the link state updating device selects the link state delay updating of the communication port, the link state of the communication port is scanned at regular time, and the change condition of the link state is confirmed. If the LINK status changes, it can be further divided into a change of the LINK status of the communication port from the LINK-DOWN normal LINK UP to the LINK normal LINK UP and a change of the LINK UP to the LINK DOWN.
If the LINK state of the communication port is changed from LINK UP to LINK DOWN, the LINK state updating device considers that the LINK state of the communication port is not changed, the current LINK state is still LINK UP, the LINK state updating device starts a LINK DOWN timer to start timing, when the LINK state of the communication port continuously keeps the LINK DOWN to reach the appointed threshold time, namely the timing time of the LINK DOWN reaches the appointed threshold time, the LINK state updating device considers that the LINK state of the communication port is changed, and at the moment, the current LINK DOWN state is reported to the service module; when the LINK DOWN state does not reach the specified threshold value, the hardware state of the communication port is changed into LINK UP, and the LINK state updating device clears the LINK DOWN timer to determine that the LINK DOWN does not occur at this time, and does not report the state change to the service module.
And if the LINK state of the communication port is changed from LINK DOWN to LINK UP, clearing the LINK DOWN timer and reporting the LINK state of the communication port to the service module.
Through the processing of the technical means, the network environment with good link quality and the network environment with poor link quality can be simultaneously supported on the equipment, the sensitivity and the anti-interference performance of the equipment are considered, and the reliability of the equipment is greatly improved.
The steps of the technical scheme of the invention can be explained by the following four specific examples.
For example, the communication PORTs include PORT1 and PORT2, PORT1 is in a network environment with good communication quality, and PORT2 is in a network environment with poor communication quality:
example one
The LINK status of the communication PORT1 and the communication PORT2 remains unchanged with LINK UP
1. The communication PORT PORT1 is adaptively selected to be real-time update, and the communication PORT PORT2 is adaptively selected to be delayed update;
2. the communication PORT1 waits for the next period to continue scanning the link status of the communication PORT 1;
3. reading a LINK DOWN timer of the communication PORT PORT2, if the timer is not zero, resetting, and waiting for the next period to continue scanning the LINK state of the communication PORT PORT 2;
4. and the update of the LINK UP state of the communication port is completed.
Example two
The LINK status of the communication PORT1 and the communication PORT2 remains unchanged with LINK UP
1. The communication PORT PORT1 is adaptively selected to be real-time update, and the communication PORT PORT2 is adaptively selected to be delayed update;
2. the communication PORT1 waits for the next period to continue scanning the link status of the communication PORT 1;
3. accumulating LINK DOWN timers of the communication PORT PORT2, and waiting for the next period to continue scanning the LINK state of the communication PORT PORT 2;
4. and the update of the LINK UP state of the communication port is completed.
EXAMPLE III
The LINK status of the communication PORT1 and the communication PORT2 is changed from LINK UP to LINK DOWN
1. The communication PORT PORT1 is adaptively selected to be real-time update, and the communication PORT PORT2 is adaptively selected to be delayed update;
2. the link state of the PORT1 is reported to the service module, and the link state of the PORT1 is continuously scanned in the next period;
3. accumulating LINK DOWN timers of the communication PORT PORT2, and reporting the current LINK DOWN state to a service module if the LINK state of the PORT PORT2 keeps LINK DOWN for reaching the specified threshold time; otherwise, the LINK state of the default communication PORT2 is LINK UP, and the next cycle of scanning is performed without reporting to the service module.
4. The status update of the communication port from LINK UP to LINK DOWN is completed.
Example four
Link status of PORT1 and PORT2 is changed from LINK DOWN to LINK UP by new PORTs
1. The communication PORT PORT1 is adaptively selected to be real-time update, and the communication PORT PORT2 is adaptively selected to be delayed update;
2. the link state of the PORT1 is reported to the service module, and the link state of the PORT1 is continuously scanned in the next period;
3. clearing a LINK DOWN timer of the communication PORT PORT2, reporting a LINK state of the communication PORT PORT2 to a service module, and waiting for the next period to continuously scan the LINK state of the communication PORT PORT 2;
4. and completing the state updating action of the port from the LINK DOWN to the LINK UP.
Fig. 3 is a schematic diagram of network adaptive selection according to the present invention, which includes the following steps:
step 101: query the ith communication port (i starts from 1), go to step 102;
step 102: judging whether the communication port is an optical communication port, if so, executing step 103; otherwise, go to step 104;
step 103: waiting for time t1, go to step 105;
step 104: waiting for time t2, go to step 106;
step 105: judging whether the LOS generation and elimination times of the communication port reaches c1 times within t1, and if yes, performing step 107; otherwise, go to step 109;
step 106: judging whether the disconnection and recovery times of the communication port network cable reach c2 times within t2 time, and if so, performing step 108; otherwise, go to step 109;
step 107: judging whether the frequency of C1 generated by the communication port in a time period T1 reaches C1, if so, proving that the network environment has poor communication quality, poor link connection and high flash probability, adaptively selecting the link state updating device as delayed report, and performing step 110; otherwise, the network communication environment is proved to be normal, the probability of flash is low, and step 109 is performed;
step 108: judging whether the number of C2 times of the communication port generated in the time period T2 reaches C2 times, if yes, performing step 110; otherwise, go to step 109;
step 109: the link status updating device reports the port link status in real time, and step 111 is performed.
Step 110: the link status updating device reports the port link status in a delayed manner, and step 111 is performed.
Step 111: and i +1, scanning the next communication port, and executing the step 101.
FIG. 4 is a flow chart of communication port link status update according to the present invention, which includes the following steps:
step 201: a timer threshold T of the communication port LINK DOWN is set, and step 202 is performed.
Step 202: and clearing the LINK DOWN timer t of each communication port recorded in the software table, and performing step 203.
Step 203: the port of the ith (i starts from 0) communication port is queried, step 204 is performed.
Step 204: obtaining the link state of the ith communication port, judging whether the link state of the port changes, and if the link state changes, performing step 205; if the link status has not changed, step 209 is performed.
Step 205: confirming whether the LINK state of the communication port is changed from LINK DOWN to LINK UP, if so, executing step 206; if not, go to step 210.
Step 206: and confirming whether the link state updating device adaptively reports the communication port in a delayed mode or in real time, if so, indicating that the link state updating device is applied to the environment requiring stronger anti-interference performance, and performing step 207, otherwise, indicating that the link state updating device is applied to the environment requiring fast convergence, and performing step 208.
Step 207: the LINK DOWN timer of the ith communication port is cleared by 0, and the process proceeds to step 208.
Step 208: reporting to the upper layer software, and performing step 209.
Step 209: delaying T1 time, inquiring the (i + 1) th port, and returning to step 203.
Step 210: and confirming whether the link state updating device adaptively reports the communication port in a delayed mode or in a real-time mode, if so, performing step 211, and otherwise, performing step 208.
Step 211: the communication port LINK DOWN timer t is incremented by 1 cumulatively and step 212 is performed.
Step 212: and (4) determining whether the current LINK DOWN timer T is greater than a set threshold value T, if so, performing step 208, otherwise, performing step 213.
Step 213: the LINK status updating means considers that the communication port is not LINK DOWN but is still LINK UP, and proceeds to step 209.
In the embodiments of the methods of the present invention, the sequence numbers of the steps are not used to limit the sequence of the steps, and for those skilled in the art, the sequence of the steps is not changed without creative efforts.
The foregoing is a preferred embodiment of the present invention, and it should be noted that it would be apparent to those skilled in the art that various modifications and enhancements can be made without departing from the principles of the invention, and such modifications and enhancements are also considered to be within the scope of the invention.

Claims (10)

1. A method for updating a link status of a communication port, the method comprising:
detecting the communication quality of the communication port to obtain a detection result, wherein the communication port comprises an optical communication port or an electric communication port;
when the communication port is an optical communication port, the detecting the communication quality of the communication port includes: checking the number of times of generating and eliminating LOS signals by the optical communication port according to a time period T1, determining whether the number of times of generating and eliminating LOS signals by the optical communication port reaches C1 times, and if the number of times of generating and eliminating LOS signals by the optical communication port reaches C1 times, determining whether the number of times of generating C1 reaches C1 times in a time period T1;
when the communication port is an electrical communication port, the detecting the communication quality of the communication port comprises: checking the number of times of disconnection and restoration of the electric communication port network cable according to a time period T2, determining whether the number of times of disconnection and restoration of the electric communication port network cable reaches C2 times, and if the number of times of disconnection and restoration of the electric communication port network cable reaches C2 times, determining whether the number of times of C2 generation in a T2 time period reaches C2 times;
and determining a strategy for updating the state of the communication port according to the detection result.
2. The updating method according to claim 1, wherein the detection result comprises a first result and a second result, the communication port is an optical communication port, and the detecting the communication quality of the communication port obtains the detection result comprises:
checking that the optical signal of the communication port loses LOS signal according to a time period t1, and if the times of generating and eliminating the LOS signal of the communication port are accumulated to not reach c1 times, judging the communication quality of the communication port to be a first result;
checking the LOS signal of the communication port according to a time period T1, and if the times of generating and eliminating the LOS signal of the communication port are accumulated to reach C1 times and C1 does not reach C1 times in a T1 time period, judging the communication quality of the communication port to be a first result;
checking the LOS signal of the communication port according to a time period T1, and if the times of generating and eliminating the LOS signal of the communication port are accumulated to reach C1 times and C1 reaches C1 times in a T1 time period, judging the communication quality of the communication port to be a second result.
3. The updating method according to claim 1, wherein the detection result comprises a first result and a second result, the communication port is an electrical communication port, and the detecting of the communication quality of the communication port obtains the detection result and comprises:
checking the line connection state of the communication port network cable according to a time period t2, and if the accumulated times of disconnection and recovery of the communication port network cable do not reach c2 times, judging the communication quality of the communication port to be a first result;
checking the line connection state of the communication port network cable according to a time period T2, and if the times of disconnection and recovery of the communication port network cable are accumulated to reach C2 times and C2 does not reach C2 times in a T2 time period, judging the communication quality of the communication port to be a first result;
and checking the line connection state of the communication port network cable according to a time period T2, and if the accumulated times of disconnection and recovery of the communication port network cable reach C2 times and C2 reaches C2 times in a T2 time period, judging the communication quality of the communication port to be a second result.
4. The updating method according to claim 2 or 3, wherein the determining the policy for updating the state of the communication port according to the detection result comprises:
when the detection result is a first result, updating the link state of the communication port in real time;
and when the detection result is a second result, carrying out delay updating on the link state of the communication port.
5. The updating method according to claim 4, wherein the updating the link status of the communication port in real time comprises:
and the link state of the communication port is reported to the service module in real time.
6. The updating method according to claim 4, wherein the updating the link status of the communication port with a delay time comprises:
when the link state of the communication port is changed from normal link to link interruption, if the time for keeping the link interruption exceeds the threshold time, reporting the current link state of the communication port to a service module after the link interruption exceeds the threshold time;
when the link state of the communication port is changed from normal link to link interruption, if the time for keeping the link interruption does not exceed the threshold time, the current link state of the communication port is not reported to a service module.
7. A link status updating apparatus of a communication port, the updating apparatus comprising:
the detection module is used for detecting the communication quality of the communication port to obtain a detection result, and the communication port comprises an optical communication port or an electric communication port;
when the communication port is an optical communication port, the detection module is configured to: checking the number of times of generating and eliminating LOS signals by the optical communication port according to a time period T1, determining whether the number of times of generating and eliminating LOS signals by the optical communication port reaches C1 times, and if the number of times of generating and eliminating LOS signals by the optical communication port reaches C1 times, determining whether the number of times of generating C1 in a T1 time period reaches C1 times;
when the communication port is an electrical communication port, the detection module is configured to: checking the number of times of disconnection and restoration of the electric communication port network cable according to a time period T2, determining whether the number of times of disconnection and restoration of the electric communication port network cable reaches C2 times, and if the number of times of disconnection and restoration of the electric communication port network cable reaches C2 times, determining whether the number of times of C2 generation in a T2 time period reaches C2 times;
and the processing module is used for determining a strategy for updating the state of the communication port according to the detection result.
8. The updating apparatus according to claim 7, wherein the detection result comprises a first result and a second result, the communication port is an optical communication port, and the detection module is specifically configured to:
checking LOS signals of the communication ports according to a time period t1, and if the times of generating and eliminating the LOS signals of the communication ports are accumulated to not reach c1 times, judging the communication quality of the communication ports to be a first result;
checking the LOS signal of the communication port according to a time period T1, and if the times of generating and eliminating the LOS signal of the communication port are accumulated to reach C1 times and C1 does not reach C1 times in a T1 time period, judging the communication quality of the communication port to be a first result;
checking the LOS signal of the communication port according to a time period T1, and if the times of generating and eliminating the LOS signal of the communication port are accumulated to reach C1 times and C1 reaches C1 times in a T1 time period, judging the communication quality of the communication port to be a second result.
9. The updating apparatus according to claim 7, wherein the detection result comprises a first result and a second result, the communication port is an electrical communication port, and the detection module is specifically configured to:
checking the line connection state of the communication port network cable according to a time period t2, and if the accumulated times of disconnection and recovery of the communication port network cable do not reach c2 times, judging the communication quality of the communication port to be a first result;
checking the line connection state of the communication port network cable according to a time period T2, and if the times of disconnection and recovery of the communication port network cable are accumulated to reach C2 times and C2 does not reach C2 times in a T2 time period, judging the communication quality of the communication port to be a first result;
and checking the line connection state of the communication port network cable according to a time period T2, and if the accumulated times of disconnection and recovery of the communication port network cable reach C2 times and C2 reaches C2 times in a T2 time period, judging the communication quality of the communication port to be a second result.
10. The updating apparatus according to claim 8 or 9, wherein the processing module is specifically configured to:
when the detection result is a first result, updating the link state of the communication port in real time;
and when the detection result is a second result, carrying out delay updating on the link state of the communication port.
CN201610429113.2A 2016-06-16 2016-06-16 Method and device for updating link state of communication port Active CN107517114B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610429113.2A CN107517114B (en) 2016-06-16 2016-06-16 Method and device for updating link state of communication port
PCT/CN2017/087863 WO2017215537A1 (en) 2016-06-16 2017-06-12 Method and apparatus for updating link state of communication port

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610429113.2A CN107517114B (en) 2016-06-16 2016-06-16 Method and device for updating link state of communication port

Publications (2)

Publication Number Publication Date
CN107517114A CN107517114A (en) 2017-12-26
CN107517114B true CN107517114B (en) 2022-08-02

Family

ID=60662988

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610429113.2A Active CN107517114B (en) 2016-06-16 2016-06-16 Method and device for updating link state of communication port

Country Status (2)

Country Link
CN (1) CN107517114B (en)
WO (1) WO2017215537A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212462A (en) * 2006-12-27 2008-07-02 华为技术有限公司 Event reporting method and reporting device
CN104426693A (en) * 2013-08-27 2015-03-18 杭州华三通信技术有限公司 Method for managing port state of exchange transmitting device in software definition network, and device
CN105323104A (en) * 2014-08-04 2016-02-10 中兴通讯股份有限公司 Alarm management method and apparatus and packet transmission equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094157B (en) * 2007-08-20 2011-09-21 中兴通讯股份有限公司 Method for implementing network interconnection by using link aggregation
US20100235914A1 (en) * 2009-03-13 2010-09-16 Alcatel Lucent Intrusion detection for virtual layer-2 services
CN101867502B (en) * 2010-06-02 2015-05-20 中兴通讯股份有限公司 Method and device for inhibiting port oscillation
US9231892B2 (en) * 2012-07-09 2016-01-05 Vmware, Inc. Distributed virtual switch configuration and state management

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212462A (en) * 2006-12-27 2008-07-02 华为技术有限公司 Event reporting method and reporting device
CN104426693A (en) * 2013-08-27 2015-03-18 杭州华三通信技术有限公司 Method for managing port state of exchange transmitting device in software definition network, and device
CN105323104A (en) * 2014-08-04 2016-02-10 中兴通讯股份有限公司 Alarm management method and apparatus and packet transmission equipment

Also Published As

Publication number Publication date
WO2017215537A1 (en) 2017-12-21
CN107517114A (en) 2017-12-26

Similar Documents

Publication Publication Date Title
CN111884879A (en) Network detection method, device and related equipment
CN109347705B (en) Loop detection method and device
US9007200B2 (en) Process method and apparatus for preventing alarm jitter
CN109743228B (en) Method and system for measuring position of sampling point
CN112260922B (en) Method and system for quickly positioning network loop problem
CN110601919A (en) Loopback detection method and system
CN107517114B (en) Method and device for updating link state of communication port
CN112511375B (en) Automatic test method for intelligent substation process level GOOSE dual-network receiving mechanism
CN102325245A (en) Method and device for automatically switching lines of television conference system
CN116488724B (en) Optical fiber communication test method, medium and system using same
CN111866921A (en) Method, device and equipment for searching service fault of 5G base station and storage medium
CN107483329B (en) Neighbor table item management method and device
CN114978939A (en) Method for detecting network link quality
CN115242610A (en) Link quality monitoring method and device, electronic equipment and computer readable storage medium
US10652139B1 (en) Automatic communication network failure detection and remediation
KR100647411B1 (en) Method for circuit testing to locate failure using self-adjusting priority in circuit management system
TWI598600B (en) Method for performing cable diagnostics in a network system, and associated apparatus
CN118019037B (en) Fault detection method and system based on mobile communication equipment
CN114938346B (en) Method and device for realizing service fast switching by cooperation of chip and CPU
CN101217606A (en) A method and device for front laid echo suppression switch control and DTMF signal detection
CN111132196B (en) Method based on heterogeneous network scheduling optimization
CN107370892B (en) Method for optimizing digital subscriber line
EP2938050B1 (en) Voip terminal and ringing parameter setting method therefor
CN111600736B (en) Multi-domain centralized recovery method, device and system in optical transport network
CN111836323A (en) Method and system for selecting and switching AP (Access Point) by STA (station) in multi-AP environment

Legal Events

Date Code Title Description
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