CN107517114A - The linking status update method and device of a kind of COM1 - Google Patents

The linking status update method and device of a kind of COM1 Download PDF

Info

Publication number
CN107517114A
CN107517114A CN201610429113.2A CN201610429113A CN107517114A CN 107517114 A CN107517114 A CN 107517114A CN 201610429113 A CN201610429113 A CN 201610429113A CN 107517114 A CN107517114 A CN 107517114A
Authority
CN
China
Prior art keywords
com1
result
linking status
checks
communication quality
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610429113.2A
Other languages
Chinese (zh)
Other versions
CN107517114B (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

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 the linking status update method and device of a kind of COM1, the update method includes:The communication quality of the COM1 is detected, obtains testing result;According to the testing result, it is determined that entering the strategy of renewal to the state of the COM1.By technical scheme, the linking status of real-time update COM1 or the linking status of delayed updating COM1 can be carried out according to the communication quality of COM1.The present invention can take into account the fast convergence and anti-interference of communication equipment, ensure communication equipment steady operation.

Description

The linking status update method and device of a kind of COM1
Technical field
The present invention relates to the communications field, the linking status update method and dress of more particularly to a kind of COM1 Put.
Background technology
At present, the renewal of COM1 linking status is communicated generally using a kind of synchronization mechanism by reading The actual link state of port, software register is arrived into the renewal of its state synchronized, and notify business module, business mould Block carries out related business by the configuration of current device and the linking status of COM1 and acted.Usual feelings Under condition, the renewal speed is faster, and equipment reaction speed is also sensitiveer, and the anti-interference of equipment and robust Property phase strain differential.
In the slightly worse network environment of link quality, a subnormal flash of COM1, if by communication ends The linking status real-time report of mouth, to some business, it is possible to service disconnection some minutes, equipment can be caused The bad stability of work.
The content of the invention
The technical problem to be solved in the present invention is to provide a kind of linking status renewal side of reliable COM1 Method, renewal policy update COM1 can be selected according to the communication quality of COM1 using the method Linking status, avoid causing service error to update because of the improper update of COM1 linking status, avoid industry Business abnormal interrupt, ensures communication equipment steady operation.
In order to solve the above technical problems, the offer technical scheme of the present invention is as follows:
A kind of linking status update method of COM1, the update method include:
The communication quality of the COM1 is detected, obtains testing result;
According to the testing result, it is determined that the strategy being updated to the state of the COM1.
Further, the testing result includes the first result and the second result, and the COM1 leads to for light Believe port, the communication quality to the COM1 detects to obtain testing result, including:
Temporally cycle t1 checks that the optical signal of the COM1 loses LOS signals, if accumulative described The number that COM1 produced and eliminated the LOS signals is not up to c1 times, then judges the COM1 Communication quality be the first result;
Temporally cycle t1 checks the LOS signals of the COM1, if adding up the communication ends The number that mouth produced and eliminated the LOS signals reaches c1 times, and c1 is not up within the T1 periods C1 times, then judge the communication quality of the COM1 for the first result;
Temporally cycle t1 checks the LOS signals of the COM1, if adding up the communication ends The number that mouth produced and eliminated the LOS signals reaches c1 times, and c1 reaches C1 within the T1 periods It is secondary, then judge the communication quality of the COM1 for the second result.
Further, the testing result includes the first result and the second result, and the COM1 is logical for electricity Believe port, the communication quality to the COM1 detects to obtain testing result, including:
Temporally cycle t2 checks the wire connection state of the COM1 netting twine, if accumulative described logical Letter port netting twine produces the number for disconnecting and recovering and is not up to c2 times, then judges the communication of the COM1 Quality is the first result;
Temporally cycle t2 checks the wire connection state of the COM1 netting twine, if accumulative described logical Letter port netting twine produces the number for disconnecting and recovering and reached c2 times, and c2 is not up to C2 within the T2 periods It is secondary, then judge the communication quality of the COM1 for the first result;
Temporally cycle t2 checks the wire connection state of the COM1 netting twine, if accumulative described logical Letter port netting twine produces the number for disconnecting and recovering and reached c2 times, and c2 reaches C2 within the T2 periods It is secondary, then judge the communication quality of the COM1 for the second result.
Further, the plan for determining that the state of the COM1 is updated according to the testing result Omit, including:
When the testing result is the first result, real-time update is carried out to the linking status of the COM1;
When the testing result is the second result, delayed updating is carried out to the linking status of the COM1.
Further, real-time update, the chain of the COM1 are carried out to the linking status of the COM1 State real-time report is connect to business module.
Further, delayed updating is carried out to the linking status of the COM1, including:
When the linking status of the COM1 is changed into link interruption from link is normal, if kept in link The disconnected time exceedes threshold time, then after link interruption exceedes threshold time, by the COM1 Current link state reporting is to business module;
When the linking status of the COM1 is changed into link interruption from link is normal, if kept in link The disconnected time is no more than threshold time, then does not give the current link state reporting of the COM1 to business mould Block.
The embodiment of the present invention additionally provides a kind of linking status updating device of COM1, the updating device Including:
Detection module, for the communication quality detection to the COM1, obtain testing result;
Processing module, for according to the testing result, it is determined that being carried out to the state of the COM1 real-time Renewal or delayed updating.
Further, the testing result includes the first result and the second result, and the COM1 leads to for light Believe port, the detection module is specifically used for:
Temporally cycle t1 checks the LOS signals of the COM1, if the accumulative COM1 production Number that is raw and eliminating LOS signals is not up to c1 times, then judges the communication quality of the COM1 for the One result;
Temporally cycle t1 checks the LOS signals of the COM1, if adding up the communication ends The number that mouth produced and eliminated the LOS signals reaches c1 times, and c1 is not up within the T1 periods C1 times, then judge the communication quality of the COM1 for the first result;
Temporally cycle t1 checks the LOS signals of the COM1, if adding up the communication ends The number that mouth produced and eliminated the LOS signals reaches c1 times, and c1 reaches C1 within the T1 periods It is secondary, then judge the communication quality of the COM1 for the second result.
Further, the testing result includes the first result and the second result, and the COM1 is logical for electricity Believe port, the detection module is specifically used for:
Temporally cycle t2 checks the wire connection state of the COM1 netting twine, if accumulative described logical Letter port netting twine produces the number for disconnecting and recovering and is not up to c2 times, then judges the communication of the COM1 Quality is the first result;
Temporally cycle t2 checks the wire connection state of the COM1 netting twine, if accumulative described logical Letter port netting twine produces the number for disconnecting and recovering and reached c2 times, and c2 is not up to C2 within the T2 periods It is secondary, then judge the communication quality of the COM1 for the first result;
Temporally cycle t2 checks the wire connection state of the COM1 netting twine, if accumulative described logical Letter port netting twine produces the number for disconnecting and recovering and reached c2 times, and c2 reaches C2 within the T2 periods It is secondary, then judge the communication quality of the COM1 for the second result.
Further, the processing module is specifically used for:
When the testing result is the first result, real-time update is carried out to the linking status of the COM1;
When the testing result is the second result, delayed updating is carried out to the linking status of the COM1.
Had the beneficial effect that caused by the present invention:
In such scheme, the communication quality of COM1 is detected, and according to testing result to described logical Believe that the state of port performs more new strategy by this scheme, can avoid because of the exception of COM1 linking status And updating causes service error to update, avoid service exception from interrupting, ensure communication equipment steady operation.In addition, The present invention supports the COM1 of different communication quality, has taken into account the sensitivity and anti-interference of communication equipment, Substantially increase the reliability of communication equipment.
Brief description of the drawings
Fig. 1 represents the adaptively selected flow chart of COM1 network environment;
Fig. 2 represents COM1 linking status updating device schematic diagram;
Fig. 3 represents the adaptively selected schematic diagram of network environment of COM1 provided in an embodiment of the present invention;
Fig. 4 represents the linking status renewal flow chart of COM1 provided in an embodiment of the present invention.
Embodiment
To make embodiments of the invention technical problems to be solved, technical scheme and advantage clearer, under Face will be described in detail in conjunction with the drawings and the specific embodiments.
Embodiments of the invention cause industry for the improper update of COM1 linking status in the prior art The problem of business mistake updates, abnormal interrupt, and communication equipment is unstable, there is provided a kind of reliable COM1 Linking status update method.Detected by the communication quality of COM1, and according to testing result to described logical Believe that the state of port performs more new strategy.The present invention supports the COM1 of different communication quality, has taken into account logical Believe the sensitivity and anti-interference of equipment, improve the reliability of communication equipment.
Each variant in view of the network environment quality where equipment, network environment quality is divided into by the present embodiment Two classes:
1st, the network environment of good communication quality, this kind of environment are generally used for the operators such as movement, UNICOM, In such a case, extremely strict to the quality requirement of netting twine, optical fiber, wiring will also meet certain specification, Equipment reaction is sensitive, real time reaction is made to the state change of link, even generation time is extremely short in link Flash, what equipment can also be caught arrives, and business can make corresponding action.
2nd, the network environment of communication quality difference, this kind of environment are generally used for the industries such as government, enterprise, finance, In this environment, the stable operation of business is vital, compared with the sensitivity of equipment, to be more concerned about Be equipment stability and anti-interference, therefore, the equipment for this environment is, it is necessary to filter out link In subtle disruption, when occurring flash in link, equipment is thought the normal phenomenon in link and filtering Fall, business does not keep normal operation because flash is handled it.
Pass through above standard, it can be determined that the quality of outgoing link state.
As shown in figure 1, the present embodiment proposes a kind of linking status update method of COM1, update method Including:
Step S1:The communication quality of COM1 is detected, obtains testing result;
Step S2:According to testing result, it is determined that carrying out real-time update or delay more to the state of COM1 Newly.
The embodiment of the present invention detects to the communication quality of COM1, and according to testing result to communication ends The state of mouth performs more new strategy.By this scheme, can avoid because of the exception of COM1 linking status and Renewal causes service error to update, and avoids service exception from interrupting, and ensures communication equipment steady operation.In addition, The present invention supports the COM1 of different communication quality, has taken into account the sensitivity and anti-interference of communication equipment, Substantially increase the reliability of communication equipment.
The COM1 of communication equipment is divided into optical communications port and electronic communications port, for different COM1s, Judge that the standard of communication quality is not quite similar.
Specifically, when COM1 is optical communications port, the communication quality of COM1 is detected to obtain Testing result, including:
Temporally cycle t1 checks that the optical signal of COM1 loses LOS signals, if accumulative COM1 The number for producing and eliminating LOS signals is not up to c1 times, then judges the communication quality of COM1 for first As a result;
Temporally cycle t1 checks the LOS signals of COM1, if accumulative COM1 is produced and eliminated The number of LOS signals reaches c1 times, and c1 is not up to C1 times within the T1 periods, then judges communication The communication quality of port is the first result;
Temporally cycle t1 checks the LOS signals of COM1, if accumulative COM1 is produced and eliminated The number of LOS signals reaches c1 times, and c1 reaches C1 times within the T1 periods, then judges communication ends The communication quality of mouth is the second result.
Specifically, when COM1 is electronic communications port, the communication quality of COM1 is detected and examined Result is surveyed, including:
Temporally cycle t2 checks the wire connection state of COM1 netting twine, if accumulative COM1 net Line produces the number for disconnecting and recovering and is not up to c2 times, then judges the communication quality of COM1 for the first knot Fruit;
Temporally cycle t2 checks the wire connection state of COM1 netting twine, if accumulative COM1 net Line produces the number for disconnecting and recovering and reached c2 times, and c2 is not up to C2 times within the T2 periods, then Judge the communication quality of COM1 for the first result;
Temporally cycle t2 checks the wire connection state of COM1 netting twine, if accumulative COM1 net Line produces the number for disconnecting and recovering and reached c2 times, and c2 reaches C2 times within the T2 periods, then sentences The communication quality of disconnected COM1 is the second result.
Further, the strategy that the state of COM1 is updated is determined according to testing result, including:
When testing result is the first result, real-time update is carried out to the linking status of COM1;
When testing result is the second result, delayed updating is carried out to the linking status of COM1.
Further, real-time update is carried out to the linking status of COM1, the linking status of COM1 is real When report business module.
Further, delayed updating is carried out to the linking status of COM1, including:
When the linking status of COM1 is changed into link interruption from link is normal, if keeping link interruption Time exceedes threshold time, then by the current link shape of COM1 after link interruption exceedes threshold time State reports business module;
When the linking status of COM1 is changed into link interruption from link is normal, if keeping link interruption Time is no more than threshold time, then not by the current link state reporting of the COM1 to business module.
The present embodiment additionally provides a kind of linking status updating device of COM1, as shown in Fig. 2 described Updating device includes:
Detection module 21, for the communication quality detection to the COM1, obtain testing result;
Processing module 22, for according to the testing result, it is determined that being carried out to the state of the COM1 The strategy of renewal.
The present embodiment detects to the communication quality of COM1, and according to testing result to the communication ends The state of mouth performs more new strategy.By this scheme, can avoid because of the exception of COM1 linking status and Renewal causes service error to update, and avoids service exception from interrupting, and ensures communication equipment steady operation.In addition, The present invention supports the COM1 of different communication quality, has taken into account the sensitivity and anti-interference of communication equipment, Substantially increase the reliability of communication equipment.
The COM1 of communication equipment is divided into optical communications port and electronic communications port, for different COM1s, Judge that the standard of communication quality is not quite similar.
Specifically, when COM1 is optical communications port, detection module is specifically used for:
Temporally cycle t1 checks the LOS signals of COM1, if accumulative COM1 is produced and eliminated The number of LOS signals is not up to c1 times, then judges the communication quality of COM1 for the first result;
Temporally cycle t1 checks the LOS signals of COM1, if accumulative COM1 is produced and eliminated The number of LOS signals reaches c1 times, and c1 is not up to C1 times within the T1 periods, then judges communication The communication quality of port is the first result;
Temporally cycle t1 checks the LOS signals of COM1, if accumulative COM1 is produced and eliminated The number of LOS signals reaches c1 times, and c1 reaches C1 times within the T1 periods, then judges communication ends The communication quality of mouth is the second result.
Specifically, when COM1 is electronic communications port, detection module is specifically used for:
Temporally cycle t2 checks the wire connection state of COM1 netting twine, if accumulative COM1 net Line produces the number for disconnecting and recovering and is not up to c2 times, then judges the communication quality of COM1 for the first knot Fruit;
Temporally cycle t2 checks the wire connection state of COM1 netting twine, if accumulative COM1 net Line produces the number for disconnecting and recovering and reached c2 times, and c2 is not up to C2 times within the T2 periods, then Judge the communication quality of COM1 for the first result;
Temporally cycle t2 checks the wire connection state of COM1 netting twine, if accumulative COM1 net Line produces the number for disconnecting and recovering and reached c2 times, and c2 reaches C2 times within the T2 periods, then sentences The communication quality of disconnected COM1 is the second result.
Further, processing module is specifically used for:
When testing result is the first result, real-time update is carried out to the linking status of COM1;
When testing result is the second result, delayed updating is carried out to the linking status of COM1.
After the linking status of automatic switchover COM1 is real-time update or delayed updating, linking status renewal Device will make different processing according to current selection:
If what linking status updating device selected is the linking status real-time update of COM1, work as communication ends When the linking status of mouth changes, business module is notified immediately;
What if linking status updating device selected is the linking status delayed updating of COM1, timing scan The linking status of COM1, and confirm the situation of change of linking status.If linking status changes, The change that the linking status generation of COM1 can be further divided into disconnects normal LINK DOWN from link It is changed into linking normal LINK UP and is changed into LINK DOWN from LINK UP.
If the linking status of COM1 is to be changed into LINK DOWN, linking status from LINK UP Updating device thinks that the linking status of COM1 does not change, and current linking status is still LINK UP, Linking status updating device opens LINK DOWN timers, starts timing, when the link of COM1 State persistently keeps LINK DOWN to reach the timing time of specified threshold time, i.e. LINK DOWN Reaching the specified threshold time, linking status updating device just thinks that the linking status of COM1 changes, Now current LINK DOWN state reportings are notified to business module;When LINK DOWN states When not yet reaching specified threshold, the hardware state of COM1 is changed into LINK UP, then linking status updates Device resets LINK DOWN timers, it is believed that this LINK DOWN does not occur, also not by this Next state change reports business module.
If the linking status of COM1 is to be changed into LINK UP from LINK DOWN, by LINK DOWN timers are reset, and the linking status of COM1 is reported into business module.
By the processing of such technological means, we can support that link-quality is good simultaneously in equipment The network environment of network environment and link-quality difference, has taken into account the sensitivity and anti-interference of equipment, has made equipment Reliability greatly improve.
The step of technical scheme, it can be illustrated with following four specific embodiment.
For example, COM1 include PORT1 and where PORT2, PORT1 be good communication quality net Network environment, where PORT2 is the network environment of communication quality difference:
Embodiment one
COM1 PORT1 and COM1 PORT2 linking status keep LINK UP constant
1st, it is real-time update that COM1 PORT1 is adaptively selected, and COM1 PORT2 is adaptively selected It is selected as delayed updating;
2nd, COM1 PORT1 waits next cycle continues to scan on COM1 PORT1 linking status;
3rd, COM1 PORT2 LINK DOWN timers are read, if timer is not zero, clearly Zero, wait next cycle to continue to scan on COM1 PORT2 linking status;
4th, COM1 LINK UP states renewal is completed.
Embodiment two
COM1 PORT1 and COM1 PORT2 linking status keep LINK UP constant
1st, it is real-time update that COM1 PORT1 is adaptively selected, and COM1 PORT2 is adaptively selected It is selected as delayed updating;
2nd, COM1 PORT1 waits next cycle continues to scan on COM1 PORT1 linking status;
3rd, add up COM1 PORT2 LINK DOWN timers, wait next cycle to continue to sweep Retouch COM1 PORT2 linking status;
4th, COM1 LINK UP states renewal is completed.
Embodiment three
COM1 PORT1 and COM1 PORT2 linking status are changed into LINK from LINK UP DOWN
1st, it is real-time update that COM1 PORT1 is adaptively selected, and COM1 PORT2 is adaptively selected It is selected as delayed updating;
2nd, COM1 PORT1 linking status reports business module, waits next cycle to continue to scan on COM1 PORT1 linking status;
3rd, COM1 PORT2 LINK DOWN timers are added up, if port PO RT2 chain Connecing state persistently keeps LINK DOWN to reach the specified threshold time, then by current LINK DOWN State reporting is to business module;Otherwise, default communication port PO RT2 linking status is LINK UP, Not reporting service module, carry out the scanning in next cycle.
4th, COM1 updates from LINK UP to LINK DOWN state and completed.
Example IV
The linking status for leading to new port PO RT1 and PORT2 is changed into LINK UP from LINK DOWN
1st, it is real-time update that COM1 PORT1 is adaptively selected, and COM1 PORT2 is adaptively selected It is selected as delayed updating;
2nd, COM1 PORT1 linking status reports business module, waits next cycle to continue to scan on COM1 PORT1 linking status;
3rd, COM1 PORT2 LINK DOWN timers are reset, COM1 PORT2 chain State reporting business module is connect, waits next cycle to continue to scan on COM1 PORT2 linking status;
4th, state update action of the completing port from LINK DOWN to LINK UP.
Fig. 3 selects schematic diagram for network self-adapting in the present invention, comprises the steps of:
Step 101:I-th of COM1 (i is since 1) is inquired about, carries out step 102;
Step 102:Judge whether the COM1 is optical communications port, if so, carrying out step 103;Instead It, carries out step 104;
Step 103:Stand-by period t1, carry out step 105;
Step 104:Stand-by period t2, carry out step 106;
Step 105:Judge that COM1 produces and eliminates whether LOS number reaches c1 times within the t1 times, If reaching, step 107 is carried out;Conversely, carry out step 109;
Step 106:Judge that COM1 netting twine disconnects and recovers whether number reaches c2 times within the t2 times, If reaching, step 108 is carried out;Conversely, carry out step 109;
Step 107:Judge whether COM1 generation c1 number in period of time T 1 reaches C1 times, If, it was demonstrated that the network environment communication quality is bad, and link connection is poor, and it is higher flash probability occur, chain Connect that state updating device is adaptively selected to be reported for delay, carry out step 110;It is on the contrary, it was demonstrated that the network leads to Believe that environment is normal, it is relatively low flash probability occur, carries out step 109;
Step 108:Judge that COM1 produces whether c2 number reaches C2 times in period of time T 2, If so, carry out step 110;Conversely, carry out step 109;
Step 109:Linking status updating device real-time report port link state, carry out step 111.
Step 110:Linking status updating device delay reporting port linking status, carries out step 111.
Step 111:I=i+1, next COM1 is scanned, carry out step 101.
Fig. 4 is that COM1 linking status of the present invention updates flow chart, is comprised the following steps:
Step 201:COM1 LINK DOWN timer threshold T is set, carries out step 202.
Step 202:The LINK DOWN timers t of each COM1 recorded in software register is reset, Carry out step 203.
Step 203:The port of i-th (i is since 0) individual COM1 is inquired about, carries out step 204.
Step 204:The linking status of i-th of COM1 is obtained, judges whether the linking status of port is sent out Changing, if linking status changes, carry out step 205;If linking status does not change, Then carry out step 209.
Step 205:Confirm whether the linking status of COM1 from LINK DOWN is changed into LINK UP, If so, carry out step 206;If it is not, carry out step 210.
Step 206:Confirm that linking status updating device should be the COM1 is adaptive delay and report or real When report, if delay reports, show now to be applied to require the stronger environment of anti-interference, carry out step 207, on the contrary show now to be applied to the environment for requiring fast convergence, carry out step 208.
Step 207:By i-th of COM1 LINK DOWN timer clear 0, step 208 is carried out.
Step 208:Upper layer software (applications) is reported, carries out step 209.
Step 209:It is delayed the T1 times, inquiry i+1 port, return to step 203.
Step 210:Confirm that linking status updating device should be the COM1 is adaptive delay and report or real When report, if delay report, then carry out step 211, conversely, carry out step 208.
Step 211:COM1 LINK DOWN timers t accumulations plus 1, carry out step 212.
Step 212:Confirm whether current LINK DOWN timers t is more than given threshold T, if so, entering Row step 208, conversely, carrying out step 213.
Step 213:Linking status updating device thinks that COM1 is not LINK DOWN, is still LINK UP, carry out step 209.
In each method embodiment of the present invention, the priority that the sequence number of each step can not be used to limit each step is suitable Sequence, for those of ordinary skill in the art, on the premise of not paying creative work, to each step Priority change also within protection scope of the present invention.
Above is the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these change Enter and retouch and also should be regarded as protection scope of the present invention.

Claims (10)

1. the linking status update method of a kind of COM1, it is characterised in that the update method includes:
The communication quality of the COM1 is detected, obtains testing result;
According to the testing result, it is determined that the strategy being updated to the state of the COM1.
2. update method according to claim 1, it is characterised in that the testing result includes the One result and the second result, the COM1 are optical communications port, the communication to the COM1 Quality testing obtains testing result, including:
Temporally cycle t1 checks that the optical signal of the COM1 loses LOS signals, if accumulative described The number that COM1 produced and eliminated the LOS signals is not up to c1 times, then judges the COM1 Communication quality be the first result;
Temporally cycle t1 checks the LOS signals of the COM1, if adding up the communication ends The number that mouth produced and eliminated the LOS signals reaches c1 times, and c1 is not up within the T1 periods C1 times, then judge the communication quality of the COM1 for the first result;
Temporally cycle t1 checks the LOS signals of the COM1, if adding up the communication ends The number that mouth produced and eliminated the LOS signals reaches c1 times, and c1 reaches C1 within the T1 periods It is secondary, then judge the communication quality of the COM1 for the second result.
3. update method according to claim 1, it is characterised in that the testing result includes the One result and the second result, the COM1 are electronic communications port, the communication to the COM1 Quality testing obtains testing result, including:
Temporally cycle t2 checks the wire connection state of the COM1 netting twine, if accumulative described logical Letter port netting twine produces the number for disconnecting and recovering and is not up to c2 times, then judges the communication of the COM1 Quality is the first result;
Temporally cycle t2 checks the wire connection state of the COM1 netting twine, if accumulative described logical Letter port netting twine produces the number for disconnecting and recovering and reached c2 times, and c2 is not up to C2 within the T2 periods It is secondary, then judge the communication quality of the COM1 for the first result;
Temporally cycle t2 checks the wire connection state of the COM1 netting twine, if accumulative described logical Letter port netting twine produces the number for disconnecting and recovering and reached c2 times, and c2 reaches C2 within the T2 periods It is secondary, then judge the communication quality of the COM1 for the second result.
4. the update method according to Claims 2 or 3, it is characterised in that described according to the inspection Result is surveyed, it is determined that the strategy being updated to the state of the COM1, including:
When the testing result is the first result, real-time update is carried out to the linking status of the COM1;
When the testing result is the second result, delayed updating is carried out to the linking status of the COM1.
5. update method according to claim 4, it is characterised in that to the chain of the COM1 Connect state and carry out real-time update, including:
The linking status real-time report of the COM1 is to business module.
6. update method according to claim 4, it is characterised in that to the chain of the COM1 Connect state and carry out delayed updating, including:
When the linking status of the COM1 is changed into link interruption from link is normal, if kept in link The disconnected time exceedes threshold time, then the working as the COM1 after link interruption exceedes threshold time Preceding linking status reports business module;
When the linking status of the COM1 is changed into link interruption from link is normal, if kept in link The disconnected time is no more than threshold time, then does not give the current link state reporting of the COM1 to business mould Block.
7. the linking status updating device of a kind of COM1, it is characterised in that the updating device includes:
Detection module, for the communication quality detection to the COM1, obtain testing result;
Processing module, for according to the testing result, it is determined that being updated to the state of the COM1 Strategy.
8. updating device according to claim 7, it is characterised in that the testing result includes the One result and the second result, the COM1 are optical communications port, and the detection module is specifically used for:
Temporally cycle t1 checks the LOS signals of the COM1, if the accumulative COM1 production Number that is raw and eliminating LOS signals is not up to c1 times, then judges the communication quality of the COM1 for the One result;
Temporally cycle t1 checks the LOS signals of the COM1, if adding up the communication ends The number that mouth produced and eliminated the LOS signals reaches c1 times, and c1 is not up within the T1 periods C1 times, then judge the communication quality of the COM1 for the first result;
Temporally cycle t1 checks the LOS signals of the COM1, if adding up the communication ends The number that mouth produced and eliminated the LOS signals reaches c1 times, and c1 reaches C1 within the T1 periods It is secondary, then judge the communication quality of the COM1 for the second result.
9. updating device according to claim 7, it is characterised in that the testing result includes the One result and the second result, the COM1 are electronic communications port, and the detection module is specifically used for:
Temporally cycle t2 checks the wire connection state of the COM1 netting twine, if accumulative described logical Letter port netting twine produces the number for disconnecting and recovering and is not up to c2 times, then judges the communication of the COM1 Quality is the first result;
Temporally cycle t2 checks the wire connection state of the COM1 netting twine, if accumulative described logical Letter port netting twine produces the number for disconnecting and recovering and reached c2 times, and c2 is not up to C2 within the T2 periods It is secondary, then judge the communication quality of the COM1 for the first result;
Temporally cycle t2 checks the wire connection state of the COM1 netting twine, if accumulative described logical Letter port netting twine produces the number for disconnecting and recovering and reached c2 times, and c2 reaches C2 within the T2 periods It is secondary, then judge the communication quality of the COM1 for the second result.
10. updating device according to claim 8 or claim 9, it is characterised in that the processing module tool Body is used for:
When the testing result is the first result, real-time update is carried out to the linking status of the COM1;
When the testing result is the second result, delayed updating is carried out to the linking status of the COM1.
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 true CN107517114A (en) 2017-12-26
CN107517114B 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 (4)

* 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
US20160105381A1 (en) * 2012-07-09 2016-04-14 Vmware, Inc. Distributed virtual switch configuration and state management

Family Cites Families (3)

* 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

Patent Citations (4)

* 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
US20160105381A1 (en) * 2012-07-09 2016-04-14 Vmware, Inc. Distributed virtual switch configuration and state management
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
CN107517114B (en) 2022-08-02

Similar Documents

Publication Publication Date Title
CN104852464B (en) The transmitting device and method of synchronizing information and the power electronic equipment with the device
CN105099954B (en) A kind of Substation process-level message common network is total to port transmission system
CN108993909A (en) Sorting device and method, the computer readable storage medium of glass
CN101217312B (en) An optical interface test fixture, test method and system
CN104867437B (en) ESD protection device of MIPI module
CN103001808B (en) A kind of port failure detection interchanger and implementation method
CN107517114A (en) The linking status update method and device of a kind of COM1
CN102325245A (en) Method and device for automatically switching lines of television conference system
CN103634218B (en) The method and device of fast route convergence
CN101360050B (en) Method and apparatus setting flow control mode
CN103001802A (en) Method and system for automatically correcting faults of Ethernet ports
CN102097049A (en) Signal self-adaption device and method for liquid crystal module testing
CN113676249A (en) Full-automatic optical fiber distribution method and network management system
CN208695662U (en) The sorting device of glass
CN112087400B (en) Network flow mirroring system and method based on EtherCAT slave station chip
CN101217523A (en) A serial communication signal repairing device and the corresponding method
CN114143458A (en) Image acquisition control method and device based on machine vision
CN111416750A (en) Fault monitoring system and monitoring method of single-network-line Ethernet ring network
CN106452834A (en) Method for guaranteeing series connection equipment to keep consistency of main/standby network ports in communication process
CN203982751U (en) LED display control program and LED display system
CN113885461A (en) Serial-parallel conversion module, device, method, device and industrial control system
CN220325642U (en) Communication system of photoetching machine
CN208489861U (en) A kind of novel structure based on loop network control technology
CN207337177U (en) A kind of ZB45 packing machines bottom data harvester
CN103823444A (en) Communication method and system of upper computer and lower computer of semiconductor device

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