CN110336728A - A kind of message processing method, node device, electronic equipment and readable storage medium storing program for executing - Google Patents

A kind of message processing method, node device, electronic equipment and readable storage medium storing program for executing Download PDF

Info

Publication number
CN110336728A
CN110336728A CN201910683395.2A CN201910683395A CN110336728A CN 110336728 A CN110336728 A CN 110336728A CN 201910683395 A CN201910683395 A CN 201910683395A CN 110336728 A CN110336728 A CN 110336728A
Authority
CN
China
Prior art keywords
message
time
information
local
node equipment
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
CN201910683395.2A
Other languages
Chinese (zh)
Other versions
CN110336728B (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.)
New H3C Big Data Technologies Co Ltd
Original Assignee
New H3C Big Data Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Big Data Technologies Co Ltd filed Critical New H3C Big Data Technologies Co Ltd
Priority to CN201910683395.2A priority Critical patent/CN110336728B/en
Publication of CN110336728A publication Critical patent/CN110336728A/en
Application granted granted Critical
Publication of CN110336728B publication Critical patent/CN110336728B/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
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • H04L12/437Ring fault isolation or reconfiguration

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

This application provides a kind of message processing method, node device, electronic equipment and readable storage medium storing program for executing, wherein this method comprises: judging whether local timer is overtime after receiving Signal Fail SF message;When determining the local timer time-out, according to the timing length information and local time information of the timestamp information, the local timer carried in the SF message, judge whether the arrival time of the SF message is overtime;When determining the arrival time time-out of the SF message, the SF message is abandoned, by the above method, advantageously reduces the probability for forming closed loop in ERPS networking, and advantageously reduce ERPS networking and the probability of upheaval occurs, to be conducive to improve the stability of ERPS networking.

Description

A kind of message processing method, node device, electronic equipment and readable storage medium storing program for executing
Technical field
This application involves fields of communication technology, set in particular to a kind of message processing method, node device, electronics Standby and readable storage medium storing program for executing.
Background technique
In ERPS (Ethernet Ring Protection Switching, the polycyclic protection technique of Ethernet) networking, Under normal circumstances, the RPL in ERPS networking (Ring Protection Link, ring protection link) link is obstruction, when one After non-RPL link failure in a loop, need the RPL link on the loop being switched to relieving state from blocked state, To make the loop can work normally.When faulty link restores, need to block again in RPL link and then by the event Hinder link-recovery to normal condition.
But when the network environment status of ERPS networking is poor, network can have delay, faulty link can be made in RPL Obstruction does not restore to normal condition link before again, so that the loop be made to form closed loop, and then causes the upheaval of ERPS networking.
Summary of the invention
In view of this, the embodiment of the present application is designed to provide a kind of message processing method, node device, electronic equipment And readable storage medium storing program for executing, to reduce the probability for forming closed loop in ERPS networking.
In a first aspect, the embodiment of the present application provides a kind of message processing method, the message processing method apply with Net very much the corresponding first node equipment of faulty link in polycyclic protection technique ERPS networking, which comprises
After generating SF message, the timestamp information when faulty link breaks down is added in the SF message;
The SF message for carrying the timestamp information is sent to the corresponding second node equipment of the faulty link, with Make the second node equipment in the timing length information and local time information using the timestamp information, local timer After the arrival time time-out for determining the SF, the SF message is abandoned.
Optionally, the timestamp information added in the SF message when faulty link breaks down, comprising:
The field information for indicating the timestamp information is added in the optional TLV field of the SF message.
Second aspect, the embodiment of the present application provide a kind of message processing method, the message processing method apply with Net very much the corresponding second node equipment of faulty link in polycyclic protection technique ERPS networking, which comprises
After receiving SF message, judge whether local timer is overtime;
When determining the local timer time-out, according to the timestamp information carried in the SF message, described The timing length information and local time information of ground timer judge whether the arrival time of the SF message is overtime;
When determining the arrival time time-out of the SF message, the SF message is abandoned.
Optionally, the timing length according to the timestamp information, the local timer that are carried in the SF message Information and local time information judge whether the arrival time of the SF message is overtime, comprising:
Using the timestamp information as initial time, using the timing length information as process duration, determine described initial Moment information at the time of reached after the process duration;
The time information and the local time information are compared;
When the time information is earlier than the local time information, the arrival time time-out of the SF message is determined;
When the time information is later than or is equal to the local time information, the arrival time of the SF message is determined It has not timed out.
Optionally, when determining that the arrival time of the SF message has not timed out, the method also includes:
According to the SF message, port blocked corresponding with the faulty link in the second node equipment is decontroled.
Optionally, when determining that the local timer has not timed out, the method also includes:
Abandon the SF message.
The third aspect, the embodiment of the present application provide a kind of first node equipment, and the first node equipment is Ethernet Node device in polycyclic protection technique ERPS networking on faulty link, the first node equipment include:
Adding unit, for after generating SF message, when in the SF message adding the faulty link and breaking down Timestamp information;
Transmission unit, for the SF message for carrying the timestamp information to be sent to the faulty link corresponding Two node devices, so that the second node equipment is in the timing length information using the timestamp information, local timer After the arrival time time-out for determining the SF with local time information, the SF message is abandoned.
Optionally, the configuration of the adding unit is broken down for adding the faulty link in the SF message When timestamp information when, comprising:
The field information for indicating the timestamp information is added in the optional TLV field of the SF message.
Fourth aspect, the embodiment of the present application provide a kind of second node equipment, and the second node equipment is Ethernet Node device in polycyclic protection technique ERPS networking on faulty link, the second node equipment include:
First judging unit, for after receiving SF message, judging whether local timer is overtime;
Second judgment unit, for when determining the local timer time-out, according to what is carried in the SF message Timestamp information, the timing length information of the local timer and local time information, when judging the arrival of the SF message Between whether time-out;
Processing unit, for abandoning the SF message when determining the arrival time time-out of the SF message.
Optionally, the configuration of the second judgment unit for according to the timestamp information carried in the SF message, The timing length information and local time information of the local timer judge whether the arrival time of the SF message is overtime When, comprising:
Using the timestamp information as initial time, using the timing length information as process duration, determine described initial Moment information at the time of reached after the process duration;
The time information and the local time information are compared;
When the time information is earlier than the local time information, the arrival time time-out of the SF message is determined;
When the time information is later than or is equal to the local time information, the arrival time of the SF message is determined It has not timed out.
Optionally, the processing unit, is also used to:
When determining that the arrival time of the SF message has not timed out, according to the SF message, the second node is decontroled Port blocked corresponding with the faulty link in equipment.
Optionally, the processing unit, is also used to:
When determining that the local timer has not timed out, the SF message is abandoned.
5th aspect, the embodiment of the present application provide a kind of electronic equipment, comprising: processor, storage medium and bus, institute It states storage medium and is stored with the executable machine readable instructions of the processor, when electronic equipment operation, the processing By bus communication between device and the storage medium, the processor executes the machine readable instructions, to execute such as first Message processing method described in any one of aspect or the message processing method as described in any one of second aspect.
6th aspect, the embodiment of the present application provide a kind of computer readable storage medium, the computer-readable storage It is stored with computer program on medium, is executed as described in any one of first aspect when the computer program is run by processor Message processing method or the message processing method as described in any one of second aspect.
The technical solution that embodiments herein provides can include the following benefits:
In this application, in ERPS networking after failure link, the corresponding first node equipment of faulty link to this The timestamp letter when faulty link breaks down is carried in the SF message that the corresponding second node equipment of faulty link is sent Breath;When faulty link can restore, second node equipment will start a local timer, receive in second node equipment After SF message, judge whether local timer is overtime, when determining local timer time-out, it is believed that for the SF of faulty link Message failure, but the SF message received due to second node equipment is it is also possible that other new links are sent after breaking down , therefore in order to determine that the SF message that receives is sent by first node equipment or sent by other node devices, It needs to carry out secondary judgement, due to carrying timestamp information in SF message, in the SF message that first node equipment is sent The timestamp information carried in the SF message that the timestamp information of carrying can be sent earlier than other node devices, therefore can use The timestamp information and local time information carried in the timing information of local timer, SF message judges the SF message Arrival time it is whether overtime, the SF message sent if it is first node equipment is then a time out, therefore is determining that SF reports When the arrival time time-out of text, indicate that the SF message is the transmission of first node equipment, therefore in order to avoid due to network delay The reason of caused by network closed loop, need to abandon the SF message at this time, by the above method, advantageously reduce shape in ERPS networking It at the probability of closed loop, and advantageously reduces ERPS networking and the probability of upheaval occurs, to be conducive to improve the steady of ERPS networking It is qualitative.
To enable the above objects, features, and advantages of the application to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is a kind of structural schematic diagram of ERPS networking provided by the embodiments of the present application;
Fig. 2 is a kind of flow diagram for message processing method that the embodiment of the present application one provides;
Fig. 3 is a kind of flow diagram for message processing method that the embodiment of the present application two provides;
Fig. 4 is the flow diagram for another message processing method that the embodiment of the present application two provides;
Fig. 5 is a kind of structural schematic diagram for first node equipment that the embodiment of the present application three provides;
Fig. 6 is a kind of structural schematic diagram for second node equipment that the embodiment of the present application four provides;
Fig. 7 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present application five provides;
Fig. 8 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present application six provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application Middle attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only It is some embodiments of the present application, instead of all the embodiments.The application being usually described and illustrated herein in the accompanying drawings is real The component for applying example can be arranged and be designed with a variety of different configurations.Therefore, below to the application's provided in the accompanying drawings The detailed description of embodiment is not intended to limit claimed scope of the present application, but is merely representative of the selected reality of the application Apply example.Based on embodiments herein, those skilled in the art institute obtained without making creative work There are other embodiments, shall fall in the protection scope of this application.
Fig. 1 is a kind of structural schematic diagram of ERPS networking provided by the embodiments of the present application, as shown in Figure 1, in ERPS networking In include two loops, one of loop is made of node device A, node device B, node device C and node device D , another loop is made of node device C, node device D, node device E and node device F, wherein node device Link between A and node device B is the RPL link of main ring, and the link between node device E and node device F is subring RPL link is blocked, with subring in the normal situation of ERPS networking with the port of the RPL link connection of main ring The port of RPL link connection is also to be blocked, so that main ring and subring be avoided to form the loop of closure.
By taking main ring as an example, after the link between node device C and node device D breaks down, node device C and section Point device D is sending R-APS (Ring Automatic Protection Switching, looped network automatic protection switching) message Before, can on the position of the Request/State of R-APS message increase for identify the message be SF (Signal Fail, Signal Fail) message field information, such as: in Request/State field increased field information can with 1011, so as to Node device A and node device B decontrols the port of obstruction using the SF message, to make RPL chain after receiving the SF message Road conducting, and then makes main ring can continue to work normally, wherein SF message is periodicity sending, so as in node device C and Before link between node device D does not restore, RPL link is always on state.
After the trouble shooting of link between node device C and node device D, in order to avoid main ring forms closed loop, At this time node device C and node device D needs temporarily block respective port respectively so that node device C and node device D it Between link still in blocked state, node device C and node device D does not retransmit SF message at this time, and node device C and Each self-starting Guard timer of node device D, then respectively to node device A and node device B send NR (No Request, Link-recovery) message, it is fixed that node device A starts WTR (Wait To Restore, Wait-to-Restore) after receiving NR message When device, after WTR timer expiry, node device A blocks the port of itself and RPL link connection, and to node device B, Node device C and node device D sends (RN, RB) (No Request, RPL Block, link-recovery, RPL obstruction) message, with Node device C and node device D is set to decontrol the port of itself obstruction, so that node device B be made to block itself and RPL link connection Port, the link-recovery between node device C and node device D is normal at this time, and RPL link is blocked again.
When the network environment of ERPS networking is normal, in each self-starting Guard timer of node device C and node device D After (a kind of timer), no longer there is SF message in main ring, still, when the network environment of ERPS networking is poor, network can be deposited Postponing, after each self-starting Guard timer of node device C and node device D, can still there is SF message in main ring at this time, Also, if RPL link is by before blocking again, node device A and node device B have received the SF message of delay (old SF message), can also decontrol the port of itself obstruction, at this point, main ring can be made to form closed loop, so as to cause the upheaval of network.
In order to reduce the probability for forming closed loop in ERPS networking, present applicant proposes a kind of message processing method, nodes to set Standby, electronic equipment and readable storage medium storing program for executing, timestamp information when being broken down by increasing faulty link in SF message, It is super in the arrival time for determining the SF message by being judged twice SF message after node device receives SF message Shi Hou abandons the SF message, by the above method, advantageously reduces in the ERPS networking due to caused by network delay and forms closed loop Probability, thus be conducive to improve ERPS networking stability.
The implementation of the application is described in detail below.
Embodiment one
Fig. 2 is a kind of flow diagram for message processing method that the embodiment of the present application one provides, as shown in Fig. 2, the report Literary processing method applies the corresponding first node equipment of faulty link in ERPS networking, which includes following step It is rapid:
Step 201, after generating Signal Fail SF message, add the faulty link in the SF message and break down When timestamp information.
The SF message for carrying the timestamp information is sent to corresponding second section of the faulty link by step 202 Point device, so that the second node equipment is in the timing length information using the timestamp information, local timer and originally After ground temporal information determines the arrival time time-out of the SF, the SF message is abandoned.
Specifically, SF message is to be set in ERPS networking after failure link by the node connecting with the faulty link Standby to send in specific time, when network is normal, being in ERPS networking except the specific time is not in SF message , but when network environment status is poor (network exist delay the case where), except the specific time in ERPS networking still There may be SF message, wherein SF message has the function of making port blocked in node device to decontrol, therefore, in order to avoid Since network delay forms closed loop, need to increase in SF message the timestamp information when faulty link breaks down, so as to Other node devices can use the timestamp information after receiving the SF message to determine whether the SF message is current Whether malfunctioning node the is sent and SF message is the SF message (that is: current failed old SF message) postponed.
It should be noted that in ERPS networking after failure link, corresponding two node devices of the faulty link: section Point device 1 and node device 2, after regarding node device 1 as first node equipment, node device 2 can be used as second node Equipment, naturally it is also possible to regard node device 2 as first node equipment, node device 1 is used as second node equipment, it may be assumed that with this Two node devices of faulty link connection can all send SF message, and can receive the SF message of other side's transmission, save When point device exercises the function of sending SF message, it can be exercised using the node device as first node equipment in node device , can be using the node device as second node equipment, further when receiving the function of SF message, first node equipment and Two node devices are the function distributions exercised according to it.
For example, as shown in Figure 1, after the link between node device C and node device D breaks down, node device C SF message can be all sent before the link does not restore with node device D, so that node device A and node device B decontrol itself The port of obstruction, so that RPL link is in the conductive state, when detecting that the faulty link can restore, node device C can face When block itself the port C1, node device D can temporarily block the port D1 of itself so that the link continues to keep obstruction, this When node device C and node device D will not all be further continued for send SF message will not be again in network if network is normal at this time There is SF message, and after RPL link is blocked, node device C and node device D can just decontrol the port of itself obstruction, But when if there is the case where network delay, before RPL link is not blocked, there are still SF messages in network, and can It can be received by node device C and node device D, after node device C and node device D receive SF message, can decontrol The port of itself obstruction causes net to make node device A, node device B, node device C and node device D-shaped at closed loop Network upheaval.
In order to reduce the probability of above situation appearance, the link between node device C and node device D breaks down Afterwards, node device C adds timestamp information when faulty link breaks down after generating SF message in SF message, and will The SF message is sent to node device D, so that node device D judges whether to be node device C for this using the SF message The SF message that faulty link is sent, and judge whether the SF message is the SF message postponed, to reduce node device A, node Equipment B, node device C and node device D-shaped are at the probability of closed loop, and node device C can be used as first node equipment at this time, section Point device D as second node equipment, meanwhile, node device D can also be added in the SF message of generation faulty link occur therefore Timestamp information when barrier, and the SF message is sent to node device C, node device D can be used as first node and set at this time Standby, node device C is as second node equipment.
After increasing timestamp information when faulty link breaks down in SF message, second node equipment root can be made Determine whether the SF message is that current malfunctioning node is sent and whether the SF message is the SF report postponed according to the SF message Text, to perform corresponding processing second node equipment according to judging result, to advantageously reduce in ERPS networking The probability of closed loop is formed, and advantageously reduces ERPS networking and the probability of upheaval occurs, to be conducive to improve ERPS networking Stability, simultaneously as being to increase timestamp information in SF message, there is no need to increase additional signaling, to be conducive to Save signal resource.
About second node equipment in the timing length information and local zone time letter using timestamp information, local timer After breath determines the arrival time time-out of SF, abandons explaining in detail for SF message and be described in detail subsequent, herein no longer in detail Explanation.
It, can be in the optional TLV of the SF message when executing step 201 in a feasible embodiment The field information for indicating the timestamp information is added in (Type/Length/Value, type/length/value) field.
Specifically, the field information of timestamp information can occupy 8 bytes, and in optional TLV field include 32 bytes, Therefore the field information of timestamp information is added to optional TLV field, may not need and SF message is transformed, thus favorably In the transmission cost for reducing signaling.
Embodiment two
Fig. 3 is a kind of flow diagram for message processing method that the embodiment of the present application two provides, as shown in figure 3, the report Literary processing method applies the corresponding second node equipment of faulty link in ERPS networking, which includes following step It is rapid:
Step 301, after receiving Signal Fail SF message, judge whether local timer overtime.
Step 302, when determining the local timer time-out, believed according to the timestamp that is carried in the SF message Breath, the timing length information of the local timer and local time information, judge whether the arrival time of the SF message surpasses When.
Step 303, when determining the arrival time time-out of the SF message, abandon the SF message.
Specifically, after a link breaks down in ERPS networking, other links it can also happen that failure (with Fig. 1 For, after the link between node device C and node device D breaks down, between node device A and node device C Link may also can break down, alternatively, the link between node device B and node device D may break down), therefore There may be the SF message sent for different faults link in ERPS networking, it may be assumed that the SF that second node equipment receives Message may be what first node equipment was sent, or, it is also possible to what other node devices were sent, in first node equipment and Before link between second node equipment will restore, first node equipment and second node equipment all can temporarily block itself With the port of the link connection, and (such as: Guard timer, wherein first for this interim obstruction starting local timer The local timer started in node device and second node equipment is synchronous in time), before the timer expires not Any SF message can be handled, to avoid closed loop is formed, therefore after second node equipment receives SF message, needs to judge this Whether ground timer is overtime, when determining local timer time-out, illustrates that the SF message received may be the SF report of delay Text (at this time in order to avoid forming closed loop, needs to abandon the SF message), or is also likely to be new SF message (ERPS networking at this time It is middle new faulty link occur, need to decontrol the port of itself obstruction immediately after local timer time-out, to guarantee The normal work of ERPS networking), when determining that local timer has not timed out, illustrate that second node equipment needs continue obstruction certainly Therefore the port of body when determining that local timer has not timed out, needs to lose SF message, determining that local timer is super Constantly, it needs to carry out secondary judgement, to determine that the SF message is the SF message or new SF message of delay, to be tied according to judgement Fruit carries out subsequent processing.
Since local timer has timed out, and the SF message postponed is different with the timestamp information in new SF message, Therefore timing length information, timestamp information and the local time information of local timer be can use to judge arriving for SF message It is whether overtime up to the time, if when reaching time time-out of SF message, illustrate that the SF message is the SF message of delay, if SF is reported The arrival time of text has not timed out, and illustrates that the SF message is new SF message, in the arrival time time-out for determining the SF message, Due to needing to continue to block the port itself temporarily blocked, need to lose the SF message, to advantageously reduce in ERPS networking The probability of closed loop is formed, and advantageously reduces ERPS networking and the probability of upheaval occurs, to be conducive to improve ERPS networking Stability.
It about the setting of first node equipment and second node equipment, is described in detail in example 1, herein no longer It is described in detail.
In a feasible embodiment, Fig. 4 is another message processing method that the embodiment of the present application two provides Flow diagram, as shown in figure 4, can be realized by following steps when executing step 302:
Step 401, using the timestamp information as initial time, using the timing length information as process duration, determine Initial time information at the time of reached after the process duration.
Step 402 is compared the time information and the local time information, when the time information is earlier than institute When stating local time information, step 403 is executed, when the time information is later than or is equal to the local time information, is held Row step 404.
Step 403, the arrival time time-out for determining the SF message.
Step 404 determines that the arrival time of the SF message has not timed out.
Specifically, since the timestamp information in the SF message of delay is different with the timestamp information in new SF message, Also, the timestamp information in new SF message relative to the timestamp information in the SF message of delay more preferably close to it is current when Between, and since local timer has timed out, can be with timing length information using timestamp information as initial time Cheng Shichang determines the time information that reaches of the SF message, then reaches time information using this and is compared with local time information Compared with, when the arrival time information is earlier than local time information, illustrate the SF message be delay SF message, it may be assumed that the SF message Arrival time time-out, when the arrival time information be later than or be equal to local time information when, illustrate that the SF message is new SF message, it may be assumed that the arrival time of the SF message has not timed out, and in the arrival time time-out for determining SF message, illustrates this SF message is the SF message of delay, in order to avoid formation closed loop, needs to abandon the SF message.
For example, as shown in Figure 1, the temporal information that the link between node device C and node device D breaks down Are as follows: 10:00:00, the temporal information that the link between node device C and node device A breaks down are as follows: 10:20:00, wherein Node device C is as second node equipment, in node device C, for the link between node device C and node device D The timing length of local timer is 1 minute, and after local timer time-out, and there is still a need for continue to block the end C1 by node device C Mouthful when, if the local zone time of node device C be 10:20:10, node device C receive be delay SF message In the case of, information at the time of the timing length information of timestamp information and local timer in SF message can reach are as follows: 10: 01:00, information is earlier than local zone time at the time of the arrival of the SF message at this time, hence, it can be determined that the SF message is delay SF message, node device C receive be new SF message in the case where, timestamp information and local timing in SF message Information at the time of the timing length information of device can reach are as follows: 10:21:00, information is late at the time of the arrival of the SF message at this time In local zone time, hence, it can be determined that the SF message is new SF message.
It should be noted that above-mentioned example is only the exemplary illustration to the embodiment of the present application, the application is not implemented Example forms specific limit.
It, can be according to described when determining that the arrival time of SF message has not timed out in a feasible embodiment SF message decontrols port blocked corresponding with the faulty link in the second node equipment.
Specifically, illustrating to be directed to when the SF message received at this time when determining that the arrival time of SF message has not timed out The SF message that new faulty link is sent, it may be assumed that there is new link failure occur in ERPS networking at this time, and due at this time the The local timer of two node devices has timed out, and second node equipment can handle SF message at this time, in order to make ERPS networking Can work normally, need after second node equipment receives SF message at this time as soon as possible, decontrol in itself with faulty link Corresponding port blocked.
For example, by taking Fig. 1 as an example, when node device C is as second node equipment, if node device C faces at this time When block the port C1, and in node device C for the timer of faulty link between node device C and node device D When overtime, after node device C judges the SF message received for the SF message for new faulty link transmission, need to put The port C1 temporarily blocked is opened, node device D similarly decontrols the D1 temporarily blocked, so that recovery nodes equipment C and node are set Link between standby D, to guarantee normal work that ERPS networking can continue to.
In a feasible embodiment, after executing the step 301, determining that the local timer do not surpass Constantly, any SF message (SF message and new SF message including delay) cannot be handled by illustrating second node equipment at this time, this When need to lose the SF message that receives.
Embodiment three
Fig. 5 is a kind of structural schematic diagram for first node equipment that the embodiment of the present application three provides, and the first node is set The standby node device on faulty link in ERPS networking, as described in Figure 5, which includes:
Adding unit 51, for adding the faulty link in the SF message after generating Signal Fail SF message Timestamp information when breaking down;
Transmission unit 52, it is corresponding for the SF message for carrying the timestamp information to be sent to the faulty link Second node equipment, so that the second node equipment is believed using the timing length of the timestamp information, local timer After breath and local time information determine the arrival time time-out of the SF, the SF message is abandoned.
In a feasible embodiment, the configuration of the adding unit 51 is for adding institute in the SF message When stating timestamp information when faulty link breaks down, comprising:
The field information for indicating the timestamp information is added in the optional TLV field of the SF message.
Detailed description about the embodiment of the present application can refer to embodiment one, no longer be described in detail herein.
It in the embodiment of the present application, can after timestamp information when faulty link breaks down is increased in SF message So that second node equipment determines whether the SF message is that current malfunctioning node is sent and the SF is reported according to the SF message Whether text is the SF message postponed, to perform corresponding processing second node equipment according to judging result, to have Conducive to the probability of formation closed loop in reduction ERPS networking, and the probability that upheaval occurs for ERPS networking is advantageously reduced, to have Conducive to the stability for improving ERPS networking, simultaneously as be to increase timestamp information in SF message, it is additional there is no need to increase Signaling, thus be conducive to save signal resource.
Example IV
Fig. 6 is a kind of structural schematic diagram for second node equipment that the embodiment of the present application four provides, and the second node is set The standby node device on faulty link in ERPS networking, as described in Figure 6, which includes:
First judging unit 61, for judging whether local timer is overtime after receiving Signal Fail SF message;
Second judgment unit 62, for being carried according in the SF message when determining the local timer time-out Timestamp information, the local timer timing length information and local time information, judge the arrival of the SF message Whether the time is overtime;
Processing unit 63, for abandoning the SF message when determining the arrival time time-out of the SF message.
In a feasible embodiment, the configuration of the second judgment unit 62 is for according in the SF message The timestamp information of carrying, the timing length information of the local timer and local time information, judge the SF message When whether arrival time is overtime, comprising:
Using the timestamp information as initial time, using the timing length information as process duration, determine described initial Moment information at the time of reached after the process duration;
The time information and the local time information are compared;
When the time information is earlier than the local time information, the arrival time time-out of the SF message is determined;
When the time information is later than or is equal to the local time information, the arrival time of the SF message is determined It has not timed out.
In a feasible embodiment, the processing unit 63 is also used to:
When determining that the arrival time of the SF message has not timed out, according to the SF message, the second node is decontroled Port blocked corresponding with the faulty link in equipment.
In a feasible embodiment, the processing unit 63 is also used to:
When determining that the local timer has not timed out, the SF message is abandoned.
Detailed description about the embodiment of the present application can refer to embodiment two, no longer be described in detail herein.
In this application, since local timer has timed out, and the time in the SF message and new SF message postponed It is different to stab information, therefore can use timing length information, timestamp information and the local time information of local timer to sentence Whether the arrival time of disconnected SF message is overtime, if when reaching time time-out of SF message, illustrates that the SF message is the SF of delay Message illustrates that the SF message is new SF message, is determining arriving for the SF message if the arrival time of SF message has not timed out When up to time time-out, due to needing to continue to block the port itself temporarily blocked, need to lose the SF message, to be conducive to drop The probability of closed loop is formed in low ERPS networking, and advantageously reduces the probability that upheaval occurs for ERPS networking, to be conducive to mention The stability of high ERPS networking.
Embodiment five
Fig. 7 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present application five provides, comprising: processor 701, storage Medium 702 and bus 703, the storage medium 702 include first node equipment as shown in Figure 5, and the storage medium 702 is deposited The executable machine readable instructions of the processor 701 are contained, when electronic equipment runs above-mentioned message processing method, the place It is communicated between reason device 701 and the storage medium 702 by bus 703, the processor 701 executes the machine readable finger It enables, to execute following steps:
After generating Signal Fail SF message, the time when faulty link breaks down is added in the SF message Stab information;
The SF message for carrying the timestamp information is sent to the corresponding second node equipment of the faulty link, with Make the second node equipment in the timing length information and local time information using the timestamp information, local timer After the arrival time time-out for determining the SF, the SF message is abandoned.
In the embodiment of the present application, the storage medium 702 can also store other machine readable instructions, strictly according to the facts to execute Other message processing methods in example one are applied, about method and step and principle the saying referring to embodiment one specifically executed Bright, in this not go into detail.
Embodiment six
Fig. 8 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present application six provides, comprising: processor 801, storage Medium 802 and bus 803, the storage medium 802 include second node equipment as shown in FIG. 6, and the storage medium 802 is deposited The executable machine readable instructions of the processor 801 are contained, when electronic equipment runs above-mentioned message processing method, the place It is communicated between reason device 801 and the storage medium 802 by bus 803, the processor 801 executes the machine readable finger It enables, to execute following steps:
After receiving Signal Fail SF message, judge whether local timer is overtime;
When determining the local timer time-out, according to the timestamp information carried in the SF message, described The timing length information and local time information of ground timer judge whether the arrival time of the SF message is overtime;
When determining the arrival time time-out of the SF message, the SF message is abandoned.
In the embodiment of the present application, the storage medium 802 can also store other machine readable instructions, strictly according to the facts to execute Other message processing methods in example two are applied, about method and step and principle the saying referring to embodiment two specifically executed Bright, in this not go into detail.
Embodiment seven
The embodiment of the present application seven additionally provides a kind of computer readable storage medium, deposits on the computer readable storage medium Computer program is contained, which executes following steps when being run by processor:
After generating Signal Fail SF message, the time when faulty link breaks down is added in the SF message Stab information;
The SF message for carrying the timestamp information is sent to the corresponding second node equipment of the faulty link, with Make the second node equipment in the timing length information and local time information using the timestamp information, local timer After the arrival time time-out for determining the SF, the SF message is abandoned.
In the embodiment of the present application, other machine readable fingers can also be performed when which is run by processor Enable, to execute message processing method as described in other in embodiment one, about the method and step and principle specifically executed referring to The explanation of embodiment one, in this not go into detail.
Specifically, which can be general storage medium, such as mobile disk, hard disk, on the storage medium Computer program when being run, can after increasing timestamp information when faulty link breaks down in SF message So that second node equipment determines whether the SF message is that current malfunctioning node is sent and the SF is reported according to the SF message Whether text is the SF message postponed, to perform corresponding processing second node equipment according to judging result, to have Conducive to the probability of formation closed loop in reduction ERPS networking, and the probability that upheaval occurs for ERPS networking is advantageously reduced, to have Conducive to the stability for improving ERPS networking, simultaneously as be to increase timestamp information in SF message, it is additional there is no need to increase Signaling, thus be conducive to save signal resource.
Embodiment eight
The embodiment of the present application eight additionally provides a kind of computer readable storage medium, deposits on the computer readable storage medium Computer program is contained, which executes following steps when being run by processor:
After receiving Signal Fail SF message, judge whether local timer is overtime;
When determining the local timer time-out, according to the timestamp information carried in the SF message, described The timing length information and local time information of ground timer judge whether the arrival time of the SF message is overtime;
When determining the arrival time time-out of the SF message, the SF message is abandoned.
In the embodiment of the present application, other machine readable fingers can also be performed when which is run by processor Enable, to execute message processing method as described in other in embodiment two, about the method and step and principle specifically executed referring to The explanation of embodiment two, in this not go into detail.
In this application, since local timer has timed out, and the time in the SF message and new SF message postponed It is different to stab information, therefore can use timing length information, timestamp information and the local time information of local timer to sentence Whether the arrival time of disconnected SF message is overtime, if when reaching time time-out of SF message, illustrates that the SF message is the SF of delay Message illustrates that the SF message is new SF message, is determining arriving for the SF message if the arrival time of SF message has not timed out When up to time time-out, due to needing to continue to block the port itself temporarily blocked, need to lose the SF message, to be conducive to drop The probability of closed loop is formed in low ERPS networking, and advantageously reduces the probability that upheaval occurs for ERPS networking, to be conducive to mention The stability of high ERPS networking.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing, in addition, term " the One ", " second ", " third " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
Finally, it should be noted that embodiment described above, the only specific embodiment of the application, to illustrate the application Technical solution, rather than its limitations, the protection scope of the application is not limited thereto, although with reference to the foregoing embodiments to this Shen It please be described in detail, those skilled in the art should understand that: anyone skilled in the art Within the technical scope of the present application, it can still modify to technical solution documented by previous embodiment or can be light It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make The essence of corresponding technical solution is detached from the spirit and scope of the embodiment of the present application technical solution.The protection in the application should all be covered Within the scope of.Therefore, the protection scope of the application should be based on the protection scope of the described claims.

Claims (14)

1. a kind of message processing method, which is characterized in that the message processing method is applied in the polycyclic protection technique of Ethernet The corresponding first node equipment of faulty link in ERPS networking, which comprises
After generating Signal Fail SF message, the timestamp letter when faulty link breaks down is added in the SF message Breath;
The SF message for carrying the timestamp information is sent to the corresponding second node equipment of the faulty link, so that institute Second node equipment is stated to determine in the timing length information and local time information for utilizing the timestamp information, local timer Out after the arrival time time-out of the SF, the SF message is abandoned.
2. message processing method as described in claim 1, which is characterized in that described to add the failure in the SF message Timestamp information when link breaks down, comprising:
The field information for indicating the timestamp information is added in the optional TLV field of the SF message.
3. a kind of message processing method, which is characterized in that the message processing method is applied in the polycyclic protection technique of Ethernet The corresponding second node equipment of faulty link in ERPS networking, which comprises
After receiving Signal Fail SF message, judge whether local timer is overtime;
It is fixed according to the timestamp information, the local that are carried in the SF message when determining the local timer time-out When device timing length information and local time information, judge whether the arrival time of the SF message overtime;
When determining the arrival time time-out of the SF message, the SF message is abandoned.
4. message processing method as claimed in claim 3, which is characterized in that described according to the time carried in the SF message Information, the timing length information of the local timer and local time information are stabbed, judges that the arrival time of the SF message is No time-out, comprising:
Using the timestamp information as initial time, using the timing length information as process duration, the initial time is determined Information at the time of reached after the process duration;
The time information and the local time information are compared;
When the time information is earlier than the local time information, the arrival time time-out of the SF message is determined;
When the time information is later than or is equal to the local time information, determine that the arrival time of the SF message does not surpass When.
5. message processing method as claimed in claim 3, which is characterized in that determining the arrival time of the SF message not When overtime, the method also includes:
According to the SF message, port blocked corresponding with the faulty link in the second node equipment is decontroled.
6. message processing method as claimed in claim 3, which is characterized in that determining that the local timer has not timed out When, the method also includes:
Abandon the SF message.
7. a kind of first node equipment, which is characterized in that the first node equipment is the polycyclic protection technique ERPS group of Ethernet Node device in net on faulty link, the first node equipment include:
For after generating Signal Fail SF message, adding the faulty link in the SF message event occurs for adding unit Timestamp information when barrier;
Transmission unit, for the SF message for carrying the timestamp information to be sent to corresponding second section of the faulty link Point device, so that the second node equipment is in the timing length information using the timestamp information, local timer and originally After ground temporal information determines the arrival time time-out of the SF, the SF message is abandoned.
8. first node equipment as claimed in claim 7, which is characterized in that the configuration of the adding unit is for described When adding the timestamp information when faulty link breaks down in SF message, comprising:
The field information for indicating the timestamp information is added in the optional TLV field of the SF message.
9. a kind of second node equipment, which is characterized in that the second node equipment is the polycyclic protection technique ERPS group of Ethernet Node device in net on faulty link, the second node equipment include:
First judging unit, for judging whether local timer is overtime after receiving Signal Fail SF message;
Second judgment unit, for when determining the local timer time-out, according to the time carried in the SF message Information, the timing length information of the local timer and local time information are stabbed, judges that the arrival time of the SF message is No time-out;
Processing unit, for abandoning the SF message when determining the arrival time time-out of the SF message.
10. second node equipment as claimed in claim 9, which is characterized in that the configuration of the second judgment unit is being used for According to the timing length information and local time information of the timestamp information, the local timer carried in the SF message, When judging whether the arrival time of the SF message is overtime, comprising:
Using the timestamp information as initial time, using the timing length information as process duration, the initial time is determined Information at the time of reached after the process duration;
The time information and the local time information are compared;
When the time information is earlier than the local time information, the arrival time time-out of the SF message is determined;
When the time information is later than or is equal to the local time information, determine that the arrival time of the SF message does not surpass When.
11. second node equipment as claimed in claim 9, which is characterized in that the processing unit is also used to:
When determining that the arrival time of the SF message has not timed out, according to the SF message, the second node equipment is decontroled In port blocked corresponding with the faulty link.
12. second node equipment as claimed in claim 9, which is characterized in that the processing unit is also used to:
When determining that the local timer has not timed out, the SF message is abandoned.
13. a kind of electronic equipment characterized by comprising processor, storage medium and bus, the storage medium are stored with The executable machine readable instructions of the processor, when electronic equipment operation, the processor and the storage medium Between by bus communication, the processor executes the machine readable instructions, to execute as in claim 1 to 2 or such as Message processing method described in any one of claim 3 to 6.
14. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program, it is any in execution such as claim 1 to 2 or in such as claim 3 to 6 when the computer program is run by processor Message processing method described in.
CN201910683395.2A 2019-07-26 2019-07-26 Message processing method, node equipment, electronic equipment and readable storage medium Active CN110336728B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910683395.2A CN110336728B (en) 2019-07-26 2019-07-26 Message processing method, node equipment, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910683395.2A CN110336728B (en) 2019-07-26 2019-07-26 Message processing method, node equipment, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN110336728A true CN110336728A (en) 2019-10-15
CN110336728B CN110336728B (en) 2021-08-06

Family

ID=68147655

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910683395.2A Active CN110336728B (en) 2019-07-26 2019-07-26 Message processing method, node equipment, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110336728B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111404822A (en) * 2020-02-28 2020-07-10 华为技术有限公司 Data transmission method, device, equipment and computer readable storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101013992A (en) * 2007-02-14 2007-08-08 中兴通讯股份有限公司 Automatic protection method of Ethernet
CN101141365A (en) * 2006-09-06 2008-03-12 杭州华三通信技术有限公司 Network node and fault recovery method of Ethernet ring network therein
CN101656664A (en) * 2009-09-09 2010-02-24 杭州华三通信技术有限公司 Ethernet ring network system and border node thereof and Ethernet ring network realization method
CN104065546A (en) * 2014-07-04 2014-09-24 引通通讯科技(上海)有限公司 Ethernet protection switching method
CN104702444A (en) * 2015-03-27 2015-06-10 杭州华三通信技术有限公司 Method and device for handling ERPS (Ethernet Ring Protection Switching) protocol message
CN106549866A (en) * 2015-09-22 2017-03-29 华为技术有限公司 Process the method and its network equipment of message
CN107171840A (en) * 2017-05-22 2017-09-15 杭州迪普科技股份有限公司 A kind of pretection switch method and apparatus based on ERPS agreements
US20180076974A1 (en) * 2016-09-12 2018-03-15 Davin Michael Colven Seamless migration from multiple spanning tree protocol to ethernet ring protection switching protocol
US20180076975A1 (en) * 2016-09-15 2018-03-15 Hariprasad Sudharshan Auto detection and prevention of loop, segmentation and traffic outage in a g.8032 ring network
CN107846339A (en) * 2016-09-18 2018-03-27 南京中兴新软件有限责任公司 Ethernet service guard method and device
CN109981308A (en) * 2017-12-27 2019-07-05 北京华为数字技术有限公司 Message transmitting method and device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141365A (en) * 2006-09-06 2008-03-12 杭州华三通信技术有限公司 Network node and fault recovery method of Ethernet ring network therein
CN101013992A (en) * 2007-02-14 2007-08-08 中兴通讯股份有限公司 Automatic protection method of Ethernet
CN101656664A (en) * 2009-09-09 2010-02-24 杭州华三通信技术有限公司 Ethernet ring network system and border node thereof and Ethernet ring network realization method
CN104065546A (en) * 2014-07-04 2014-09-24 引通通讯科技(上海)有限公司 Ethernet protection switching method
CN104702444A (en) * 2015-03-27 2015-06-10 杭州华三通信技术有限公司 Method and device for handling ERPS (Ethernet Ring Protection Switching) protocol message
CN106549866A (en) * 2015-09-22 2017-03-29 华为技术有限公司 Process the method and its network equipment of message
US20180076974A1 (en) * 2016-09-12 2018-03-15 Davin Michael Colven Seamless migration from multiple spanning tree protocol to ethernet ring protection switching protocol
US20180076975A1 (en) * 2016-09-15 2018-03-15 Hariprasad Sudharshan Auto detection and prevention of loop, segmentation and traffic outage in a g.8032 ring network
CN107846339A (en) * 2016-09-18 2018-03-27 南京中兴新软件有限责任公司 Ethernet service guard method and device
CN107171840A (en) * 2017-05-22 2017-09-15 杭州迪普科技股份有限公司 A kind of pretection switch method and apparatus based on ERPS agreements
CN109981308A (en) * 2017-12-27 2019-07-05 北京华为数字技术有限公司 Message transmitting method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111404822A (en) * 2020-02-28 2020-07-10 华为技术有限公司 Data transmission method, device, equipment and computer readable storage medium
CN111404822B (en) * 2020-02-28 2022-08-26 华为技术有限公司 Data transmission method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN110336728B (en) 2021-08-06

Similar Documents

Publication Publication Date Title
CN101252500B (en) Intersect looped network, node and realizing method of random topology intersect looped network
CN100395994C (en) Channel failure handling method in ASON
CN100461708C (en) Alarm synchronization method
CN101188527B (en) A heartbeat detection method and device
CN103607302B (en) Fault information reporting method, monitoring device and management equipment
CN106789264A (en) The method and apparatus that a kind of link aggregation group passage is switched fast
CN101399737A (en) Protection method and apparatus used for link convergence group of loop Ethernet
CN103200109B (en) A kind of ospf neighbor relationship management method and equipment
CN101702681A (en) Switching method and device of main/standby router in virtual route redundancy protocol
CN100493006C (en) Loop fault detecting method, subring main node and subring
CN106656791A (en) Device state switching method, device and system
CN109768907A (en) A kind of CAN bus baud rate self-adapting setting method
US9013977B2 (en) Method and system for reducing traffic disturbance in a communication network caused by intermittent failure
CN108924044A (en) Link maintains method, PE equipment and readable storage medium storing program for executing
CN100466583C (en) Fast ring network method against attack based on RRPP, apparatus and system
CN100438447C (en) Recovery method and apparatus for optical network LSP occuring abnormal delete
CN104065546B (en) Ethernet protects switching method
CN110336728A (en) A kind of message processing method, node device, electronic equipment and readable storage medium storing program for executing
CN103825754B (en) Ring network multipoint fault discovery and recovery processing method
CN104378186A (en) Network redundant data processing methods, devices and system
CN103560947B (en) A kind of method and device avoiding intermediate system neighborhood to shake
CN101902382A (en) Ethernet single ring network address refreshing method and system
CN103414591B (en) Method for rapidly converging when a kind of port failure recovers and system
CN110225133A (en) Message method, node, device, system and relevant device
Sidik et al. PALE: Time bounded practical agile leader election

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant