CN112822048A - Method and system for realizing nondestructive protection switching - Google Patents

Method and system for realizing nondestructive protection switching Download PDF

Info

Publication number
CN112822048A
CN112822048A CN202110004982.1A CN202110004982A CN112822048A CN 112822048 A CN112822048 A CN 112822048A CN 202110004982 A CN202110004982 A CN 202110004982A CN 112822048 A CN112822048 A CN 112822048A
Authority
CN
China
Prior art keywords
message
serial number
cycle
path
period
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
CN202110004982.1A
Other languages
Chinese (zh)
Other versions
CN112822048B (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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN202110004982.1A priority Critical patent/CN112822048B/en
Publication of CN112822048A publication Critical patent/CN112822048A/en
Application granted granted Critical
Publication of CN112822048B publication Critical patent/CN112822048B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • 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
    • H04L43/0823Errors, e.g. transmission errors
    • 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
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/22Traffic shaping
    • H04L47/225Determination of shaping rate, e.g. using a moving window
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/32Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames

Landscapes

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

Abstract

The invention discloses a method for realizing nondestructive protection switching, which comprises the following steps: adding a serial number to each message at a sending end, keeping the serial numbers of the same message on a working path and a protection path consistent, and including the cycle number of each serial number in the message with the serial number of 0, wherein after the cycle of the serial number is turned over, the cycle number in the message with the serial number of 0 is increased progressively so as to ensure that the cycle number of the message with the serial number of 0 is consistent with the actual cycle of the serial number; the receiving end carries out terminal processing on the message with the serial number of 0, analyzes the cycle number in the message as the cycle number of the current serial number, and takes the cycle number of the subsequent message as the standard; when the working path is interrupted, the receiving end splices the messages of the working path and the protection path according to the cycle number and the serial number of the message. The invention realizes the lossless protection switching. The invention also provides a corresponding system for realizing the lossless protection switching.

Description

Method and system for realizing nondestructive protection switching
Technical Field
The present invention belongs to the field of communication technology, and more particularly, to a method and a system for implementing lossless protection switching.
Background
With the increasing requirement of diamond-level customer private line service on reliability, 100% reliable transmission needs to be realized for customer service. In the prior art, when a sending end device sends a message, an increasing serial number is added to each sent message, the serial numbers of the same message on a working path and a protection path are the same, and each message is sent, the serial number is increased by one until the serial number is turned over, and then the message is counted again from 0 (for example, an 8-bit numerical value is expressed by a numerical value range of 0 to 255, and the count of each added message serial number is increased by 1, when the count reaches 255, the serial number of the next message is started from 0 again, and the process indicates turning over); when a receiving end receives a forwarding message, the receiving end receives the message from a working path or a protection path at the same time (for a 1+1 protected link, the current link is the working path, the other link is the protection path, but both links can be the working path or the protection path), the message with the same serial number firstly arrives at the receiving end and is preferentially forwarded to an outlet, and then the arrived message is discarded.
On the basis of the above technology, when the transmission delay difference between the working path and the protection path is large, for example, the transmission path distance is large, or a certain path needs to pass through more device nodes, so that the transmission delay of a link is too large, and the transmission delay difference of the working path exceeds the message sending time of a sequence number period compared with the transmission delay difference of the protection path, the sequence number period of the working path may already exceed the sequence number period of the protection path.
Disclosure of Invention
The invention provides a scheme for realizing nondestructive protection switching, which aims at solving the problem that in the prior art, when the transmission time delay difference between a working link path and a protection link path is too large, the nondestructive protection switching can not be realized, solves the problem that in the prior art, when messages are spliced and sequenced after switching, message sequencing errors exist, so that service switching fails, and realizes nondestructive protection switching.
To achieve the above object, according to an aspect of the present invention, there is provided a method for implementing lossless protection switching, including:
adding a serial number to each message at a sending end, keeping the serial numbers of the same message on a working path and a protection path consistent, and including the cycle number of each serial number in the message with the serial number of 0, wherein after the cycle of the serial number is turned over, the cycle number in the message with the serial number of 0 is increased progressively so as to ensure that the cycle number of the message with the serial number of 0 is consistent with the actual cycle of the serial number;
the receiving end carries out terminal processing on the message with the serial number of 0, analyzes the cycle number in the message as the cycle number of the current serial number, and takes the cycle number of the subsequent message as the standard;
when the working path is interrupted, the receiving end splices the messages of the working path and the protection path according to the cycle number and the serial number of the message.
In one embodiment of the invention, the method further comprises:
when the transmission delay difference between the working path and the protection path is large, and the working path and the protection path are spliced, a long-time forwarding neutral period exists; and calculating the transmission delay difference between the working path and the protection path, delaying the message on the path with shorter transmission delay by a preset delay time and then caching the message by the receiving end, and transmitting and forwarding the message to the user end.
In one embodiment of the invention, the method further comprises: when the working path is interrupted, the sending end performs speed reduction processing on the cached message until the message of the protection path is successfully spliced with the working path.
In one embodiment of the invention, a sliding window (M-N, M) is defined to tolerate the disorder of the message at the receiving end, wherein M represents the latest serial number value currently received, M is refreshed when a message is received, X represents the latest serial number received, and N represents the period length of the sliding window; and when the current period number is R, after receiving a message with the sequence number of 0, extracting the period number in the message with the sequence number of 0, and refreshing the current period number.
In an embodiment of the present invention, the receiving end performs selective receiving and concatenation processing on the messages of the working path and the protection path by using the sliding window (M-N, M), specifically:
(1) the sequence number of the received message is X, whether X is in the range of (M-N, M) or not is judged (M-N < X < M), and 1 is added to each received message; if the range is in, switching to the step (2), and if the range is not in, switching to the step (3);
(2) when X is in the range (M-N, M):
(2.1) if the serial number X is already in a receiving state, comparing serial number periods between the serial number X and the serial number X, wherein the period numbers are the same or less than the current period number R, and discarding the message (indicating that the message is the same and has already been received); the cycle number is larger than the current cycle number R, the cycle number of the current window period is refreshed, and the message is continuously forwarded and the state of the serial number is recorded (the message is represented as a newly received message);
(2.2) if the sequence number X is not received, comparing the sequence number period of X with the current period number R, and if the sequence number X is greater than or equal to the current period number R, refreshing the current sequence number and the period number and forwarding; otherwise, discarding the message;
(3) comparing whether the period number of the message is less than the current period number R of the protection group, and if the period number of the message is less than or equal to the current period number R, discarding the message; and if the number is larger than the current cycle number R, the message is forwarded and the current serial number and the cycle R are refreshed.
In an embodiment of the present invention, the transmission delay difference between the working path and the protection path is calculated by a 1588 function, a TWAMP function, or a DM function.
In an embodiment of the present invention, the preset delay time is 16K of Block message transmission time.
In an embodiment of the present invention, when the sending end performs speed reduction processing on the cached message, the bandwidth of the speed reduction is equal to the size of the cached message/the delay difference between the working path and the protection path.
According to another aspect of the present invention, there is also provided a system for implementing lossless protection switching, including a sending end and a receiving end, where:
the sending end adds a serial number to each message, the serial numbers of the same message on the working path and the protection path are kept consistent, the message with the serial number of 0 contains the cycle number of each serial number, and after the cycle of the serial number is turned over, the cycle numbers in the message with the serial number of 0 are increased progressively to ensure that the cycle number of the message with the serial number of 0 is kept consistent with the actual cycle of the serial number;
the receiving end carries out terminal processing on the message with the serial number of 0, analyzes the cycle number in the message as the cycle number of the current serial number, and takes the cycle number of the subsequent message as the standard;
and when the working path is interrupted, the receiving end splices the messages of the working path and the protection path according to the cycle number and the serial number of the message.
In one embodiment of the present invention, when the transmission delay difference between the working path and the protection path is large, and the working path and the protection path are message-spliced, there is a long forwarding vacancy period; and calculating the transmission delay difference between the working path and the protection path, delaying the message on the path with shorter transmission delay by a preset delay time and then caching the message by the receiving end, and transmitting and forwarding the message to the user end.
Generally, compared with the prior art, the technical scheme of the invention has the following beneficial effects:
the prior art can not solve the problems that the delay difference of transmission of a working path and a protection path is too large, an inserted serial number is overturned, and a receiving end sequences and splices client services wrongly; meanwhile, the problem of long-time forwarding neutral period of the receiving end during the switching period is solved through the delayed sending of the sending end and the message speed reduction sending mechanism after the working path is interrupted, and the upper-layer application is ensured not to be interrupted overtime.
Drawings
FIG. 1 is a diagram illustrating the format definition of a message with a sequence number of 0 according to the present invention;
fig. 2 is a schematic diagram of how a sending end splices messages of a working path and a protection path into a complete service message according to the present invention;
FIG. 3 is a diagram illustrating how a transmitting end caches and delays a message on a short transmission time path;
fig. 4 is a schematic diagram of a sending end sending a message cached currently at a reduced speed after a working path is interrupted.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
The invention aims to solve the problem that when the transmission delay difference of a working path and a protection path is larger, under the condition of realizing lossless switching by a serial number mode, the serial number can be overturned to cause that a receiving end can not normally splice the serial number, and meanwhile, when the transmission delay difference of the working path and the protection path is overlarge, the receiving end needs to wait for a longer time to successfully splice messages, a long-time forwarding vacancy period exists, and the connection of an upper application is interrupted or overtime is caused.
The invention optimizes the serial number sending mechanism, defines each message with the serial number of 0 as an overhead message, redefines the message format, wherein the message format comprises a serial number period, inserts a message with the serial number of 0 (comprising a period number) into each serial number period from the beginning of equipment establishment protection and sends the message to a receiving end, and the period number in the message with the serial number of 0 is increased progressively after each serial number period is overturned; the receiving end receives the message with the sequence number of 0, terminates the message and extracts the sequence number period in the message, each message received by the receiving end has the attribute of a period number and a sequence number, and the receiving end can reorder the messages on the working path and the protection path through the period number and the sequence number, so that the problem of disordered splicing and sequencing of the receiving end due to overlarge delay difference of the working path and the protection path is solved.
Because the delay difference between the working path and the protection path is too large, when the working path is interrupted and switched to the protection path, the message received on the protection path is still the message of the previous several cycles, and the message can be forwarded to the user side only after the cycle numbers of the protection path and the working path are consistent and the serial numbers are successfully spliced, so that a long service forwarding idle period can be caused in the process (although the service message is not discarded on the transmission layer), and the service with a keep-alive timeout mechanism or the service sensitive to jitter can cause the interruption of the upper layer application due to the long service forwarding idle period. The invention sends the working path message in time Delay of a BAS detection period (16K Block) of Flexe at a sending node, buffers the message of the period, measures the time Delay difference of the working path and the protection path through a TWAMP (Two-way Active Measurement Protocol)/DM (Delay Measurement)/1588 function, and forwards the buffered message to a user according to the time of the time Delay difference of the working path and the protection path obtained by the calculation method of the TWAMP/DM/1588 after detecting the BAS alarm of the Flexe, wherein the forwarding vacancy period has message sending, so that the long-time forwarding vacancy period can be avoided.
The main technical difficulties of the technical scheme of the invention are as follows:
the message with the sequence number of 0 is added with a cycle number content working path and a protection path and is sent at the same time, and the message with the sequence number of 0 is terminated at a receiving end (the termination means that the message needs to be identified and analyzed at the receiving end and can not be forwarded to subsequent equipment any more) and the cycle number in the message is analyzed;
a receiving end defines the cycle number and the sequence number of each message, and simultaneously re-splices the messages according to the sequence number and the cycle of the messages (splicing means that after a working path is interrupted, the messages with the sequence number of 10 are received on the working path, and all the following messages are failed to be sent, at the moment, a protection path always receives the messages normally, and only after the messages with the sequence number of 11 are received, the messages are forwarded to the following equipment), and small-range message disorder can be tolerated;
the receiving end carries out delay sending processing on the message of the working path and caches part of the message, and triggers the cached message to carry out speed reduction sending processing after detecting BAS (basic) alarm of a Flexe (Flex Ethernet) layer until the message of the protection path is successfully spliced with the cycle number and the serial number of the message of the working path and then is normally sent.
In order to solve the above technical problem, the present invention provides a method for implementing lossless protection switching, including:
adding a serial number to each message at a sending end, keeping the serial numbers of the same message on a working path and a protection path consistent, redefining a message format for the message with the serial number of 0, wherein the message format comprises the cycle number of each serial number, and after the cycle of the serial number is turned over, the cycle numbers in the message with the serial number of 0 are increased progressively to ensure that the cycle number of the message with the serial number of 0 is consistent with the actual cycle of the serial number;
the receiving end carries out terminal processing on the message with the serial number of 0, analyzes the cycle number in the message as the cycle number of the current serial number, and takes the cycle number of the subsequent message as the standard;
when the working path is interrupted, the receiving end splices the two messages of the working path and the protection path according to the cycle number and the serial number of the message.
Meanwhile, when the transmission delay difference between the working path and the protection path is large, and when the messages of the working path and the protection path are spliced, a long forwarding neutral period exists (the length of the neutral period depends on the transmission delay difference between the working path and the protection path), the transmission delay difference between the working path and the protection path is calculated through a 1588 function, a TWAMP function or a DM function (the method is not discussed in the invention), a receiving end sets a delay forwarding time (for example, 16K Block message transmission time) for the messages on the path with short transmission delay, then caches the messages, and forwards the messages to a user end, and when the working path is interrupted, the cached messages are subjected to speed reduction processing until the messages of the protection path and the working path are successfully spliced. Wherein:
the sending end: referring to an initiating terminal device for implementing lossless protection on a service, as shown in fig. 1, the initiating terminal device needs to add a serial number to each packet, send a packet with a serial number of 0 according to a packet format with a serial number of 0 below, and sequentially increase cycle numbers in the packet according to a sequence number cycle, where the serial number insertion position of the invention is the last two bytes of a preamble of an ethernet packet;
the receiving end: referring to the end node of the lossless protection, the terminating device of the protection model, as shown in fig. 2, according to the principle that the serial number is forwarded first, the packet on the path with short transmission delay is preferentially forwarded to the user interface, the packet with the same serial number on the protection path is discarded, and after the working path fails and triggers the switching, the packets of the working path and the protection path are arranged and spliced according to the sequence of the cycle number and the serial number, so as to restore the complete user service;
the serial number 0 message format: defining a special Ethernet message, referring to fig. 1 in a specific format, wherein the message content includes a cycle number, and after each cycle of a serial number is sent, the cycle number field in the message is increased progressively;
the receiving end splicing function: the receiving end of the lossless redundancy protection path receives the messages of the working path and the protection path at the same time, the messages with the same serial number adopt a first-come first-forwarded strategy and a second-come message discarding strategy, when the working path is interrupted, the cycle number and the serial number of the last message of the working path are recorded, and the protection path receives the messages until the cycle number and the serial number of the last message of the working path are successfully spliced;
the delayed sending function: the sending end also needs to calculate the transmission delay of the working path and the transmission delay of the protection path by other technical means (TWAMP/DM/1588 function), and calculate the difference between the two, as shown in fig. 3, cache the path message with short transmission delay in a base detection period of FlexE and delay the sending, force to add a certain delay to the path message with short transmission delay (the size of the BAS message of FlexE is divided by the transmission delay difference between the working path and the protection path), refer to fig. 3; when the working path is interrupted, the delayed transmission detects that the link is interrupted, and as shown in fig. 4, the cached message is sent at a reduced speed (the bandwidth of the reduced speed is the size of the cached message/the delay difference between the working path and the protection path);
the invention is a technology applied to data communication network equipment, it replaces the serial number in the last two bytes of the preamble of the message, the serial number increases from 0 to 65535 packet by packet, for the message of 0 of the serial number, the message format is shown in figure 1, the preamble is 8 0x55, when the last two bytes insert 0, it can define the Ethernet type of the message as 0x8901 (can be defined, actually it can be distinguished from other normal message formats), round [7:0] total 8 bytes, the period number starts from 1, after the period of a serial number is overturned, the period number adds 1.
The mechanism of the invention for delayed transmission on paths with short transmission delay refers to fig. 3:
because the transmission Delay difference between the working path and the protection path is large, a fast-slow transmission path is determined, the transmission Delay difference between the transmitting end and the receiving end including the path and the protection path is calculated through mechanisms (a specific implementation method is not described in the text) such as TWAMP (Two-way Active Measurement Protocol)/DM (Delay Measurement), and the like, on the path with short transmission Delay, under the condition of a FlexE interface, the detection interval of the BAS frame is 16k blocks, a link fault can be detected only by one acquisition interval period at most, and the content of the 16k blocks is as follows: 16 × 1024 × 64 ═ 1Mbit, where 64 is 64 bits in 66/64B code length, for a client rate of 10G, it needs to delay 1Mbit/(10Gbit/s) ═ 100us of time (the message of one detection interval time is divided by the interface bandwidth), that is: for a 10G rate interface, a message on a path with small transmission delay needs to be delayed by 100us for transmission, and the 100us message needs to be completely cached during the delayed transmission period for speed reduction transmission in the subsequent steps;
at a sending end, the invention refers to fig. 4 for a mechanism of speed reduction sending processing for a message on a path with short transmission delay:
when a path link with short transmission delay is interrupted, a FlexE layer detects a link fault in a 16k block period, and at this time, sending end equipment performs speed reduction processing on a cached message, wherein the specific sending bandwidth is as follows: the size of the buffered message/the transmission delay difference of the working path and the protection path.
The receiving end of the invention performs the selective receiving and splicing processing on the messages of the working path and the protection path, and for the selective receiving processing, a sliding window is defined to tolerate the disorder in consideration of certain disorder of the messages of the receiving end (as shown in figure 2):
a sliding window period (M-N, M), wherein M represents the latest serial number value currently received, M is refreshed every time a message is received, X represents the latest serial number received, and N represents the length of the sliding window period;
when the current cycle number is R, after receiving a message with the serial number of 0, extracting the cycle number in the message with the serial number of 0, and refreshing the current cycle number;
(1) the sequence number of the received message is X, whether X is in the range of (M-N, M) or not is judged (M-N < X < M), and 1 is added to each received message; if the range is in, switching to the step (2), and if the range is not in, switching to the step (3);
(2) when X is in the range (M-N, M):
(2.1) if the serial number X is already in a receiving state, comparing serial number periods between the serial number X and the serial number X, wherein the period numbers are the same or less than the current period number R, and discarding the message (indicating that the message is the same and has already been received); the cycle number is larger than the current cycle number R, the cycle number of the current window period is refreshed, and the message is continuously forwarded and the state of the serial number is recorded (the message is represented as a newly received message);
(2.2) if the sequence number X is not received, comparing the sequence number period of X with the current period number R, and if the sequence number X is greater than or equal to the current period number R, refreshing the current sequence number and the period number and forwarding; otherwise, discarding the message;
(3) comparing whether the period number of the message is less than the current period number R of the protection group, and if the period number of the message is less than or equal to the current period number R, discarding the message; and if the number is larger than the current cycle number R, the message is forwarded and the current serial number and the cycle R are refreshed.
Further, the present invention also provides a system for implementing lossless protection switching, which includes a sending end and a receiving end, wherein:
the sending end adds a serial number to each message, the serial numbers of the same message on the working path and the protection path are kept consistent, the message with the serial number of 0 contains the cycle number of each serial number, and after the cycle of the serial number is turned over, the cycle numbers in the message with the serial number of 0 are increased progressively to ensure that the cycle number of the message with the serial number of 0 is kept consistent with the actual cycle of the serial number;
the receiving end carries out terminal processing on the message with the serial number of 0, analyzes the cycle number in the message as the cycle number of the current serial number, and takes the cycle number of the subsequent message as the standard;
and when the working path is interrupted, the receiving end splices the messages of the working path and the protection path according to the cycle number and the serial number of the message.
Further, when the transmission delay difference between the working path and the protection path is large, and the working path and the protection path are message spliced, a long forwarding null period exists; and calculating the transmission delay difference between the working path and the protection path, delaying the message on the path with shorter transmission delay by a preset delay time and then caching the message by the receiving end, and transmitting and forwarding the message to the user end.
It will be understood by those skilled in the art that the foregoing is only a preferred embodiment of the present invention, and is not intended to limit the invention, and that any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for implementing lossless protection switching (BRP) is characterized by comprising the following steps:
adding a serial number to each message at a sending end, keeping the serial numbers of the same message on a working path and a protection path consistent, and including the cycle number of each serial number in the message with the serial number of 0, wherein after the cycle of the serial number is turned over, the cycle number in the message with the serial number of 0 is increased progressively so as to ensure that the cycle number of the message with the serial number of 0 is consistent with the actual cycle of the serial number;
the receiving end carries out terminal processing on the message with the serial number of 0, analyzes the cycle number in the message as the cycle number of the current serial number, and takes the cycle number of the subsequent message as the standard;
when the working path is interrupted, the receiving end splices the messages of the working path and the protection path according to the cycle number and the serial number of the message.
2. The method of claim 1, further comprising:
when the transmission delay difference between the working path and the protection path is large, and the working path and the protection path are spliced, a long-time forwarding neutral period exists; and calculating the transmission delay difference between the working path and the protection path, delaying the message on the path with shorter transmission delay by a preset delay time and then caching the message by the receiving end, and transmitting and forwarding the message to the user end.
3. The method of claim 1 or 2, further comprising: when the working path is interrupted, the sending end performs speed reduction processing on the cached message until the message of the protection path is successfully spliced with the working path.
4. A method as claimed in claim 1 or 2, wherein a sliding window (M-N, M) is defined to tolerate the disorder of the messages at the receiving end, M indicates that a latest sequence number value is currently received, M is refreshed every time a message is received, X indicates the latest sequence number received, and N indicates the period of the sliding window; and when the current period number is R, after receiving a message with the sequence number of 0, extracting the period number in the message with the sequence number of 0, and refreshing the current period number.
5. The method according to claim 4, wherein the receiving end performs selective receiving and splicing processing on the packets of the working path and the protection path by using the sliding window (M-N, M), specifically:
(1) the sequence number of the received message is X, whether X is in the range of (M-N, M) or not is judged (M-N < X < M), and 1 is added to each received message; if the range is in, switching to the step (2), and if the range is not in, switching to the step (3);
(2) when X is in the range (M-N, M):
(2.1) if the serial number X is already in a receiving state, comparing serial number periods between the serial number X and the serial number X, wherein the period numbers are the same or less than the current period number R, and discarding the message (indicating that the message is the same and has already been received); the cycle number is larger than the current cycle number R, the cycle number of the current window period is refreshed, and the message is continuously forwarded and the state of the serial number is recorded (the message is represented as a newly received message);
(2.2) if the sequence number X is not received, comparing the sequence number period of X with the current period number R, and if the sequence number X is greater than or equal to the current period number R, refreshing the current sequence number and the period number and forwarding; otherwise, discarding the message;
(3) comparing whether the period number of the message is less than the current period number R of the protection group, and if the period number of the message is less than or equal to the current period number R, discarding the message; and if the number is larger than the current cycle number R, the message is forwarded and the current serial number and the cycle R are refreshed.
6. The method according to claim 2, wherein the transmission delay difference between the working path and the protection path is calculated by 1588 function, TWAMP function, or DM function.
7. The method according to claim 2, wherein the preset delay time is 16K of Block message transmission time.
8. The method of claim 3, wherein when the sending end performs speed reduction processing on the buffered packet, the bandwidth of the speed reduction is the size of the buffered packet/the delay difference between the working path and the protection path.
9. A system for implementing lossless protection switching comprises a sending end and a receiving end, wherein:
the sending end adds a serial number to each message, the serial numbers of the same message on the working path and the protection path are kept consistent, the message with the serial number of 0 contains the cycle number of each serial number, and after the cycle of the serial number is turned over, the cycle numbers in the message with the serial number of 0 are increased progressively to ensure that the cycle number of the message with the serial number of 0 is kept consistent with the actual cycle of the serial number;
the receiving end carries out terminal processing on the message with the serial number of 0, analyzes the cycle number in the message as the cycle number of the current serial number, and takes the cycle number of the subsequent message as the standard;
and when the working path is interrupted, the receiving end splices the messages of the working path and the protection path according to the cycle number and the serial number of the message.
10. The system according to claim 9, wherein when the delay difference between the working path and the protection path is large, and when the working path and the protection path are packet-spliced, there is a long forwarding null period; and calculating the transmission delay difference between the working path and the protection path, delaying the message on the path with shorter transmission delay by a preset delay time and then caching the message by the receiving end, and transmitting and forwarding the message to the user end.
CN202110004982.1A 2021-01-04 2021-01-04 Method and system for realizing nondestructive protection switching Active CN112822048B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110004982.1A CN112822048B (en) 2021-01-04 2021-01-04 Method and system for realizing nondestructive protection switching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110004982.1A CN112822048B (en) 2021-01-04 2021-01-04 Method and system for realizing nondestructive protection switching

Publications (2)

Publication Number Publication Date
CN112822048A true CN112822048A (en) 2021-05-18
CN112822048B CN112822048B (en) 2022-05-17

Family

ID=75857118

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110004982.1A Active CN112822048B (en) 2021-01-04 2021-01-04 Method and system for realizing nondestructive protection switching

Country Status (1)

Country Link
CN (1) CN112822048B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114157586A (en) * 2021-12-15 2022-03-08 苏州盛科通信股份有限公司 Method and device for improving TWAMP detection accuracy and storage device
CN114205263A (en) * 2021-12-08 2022-03-18 中国信息通信研究院 Communication method, system and storage medium for Ether CAT network

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020075873A1 (en) * 2000-12-20 2002-06-20 Gwenda Lindhorst-Ko Method of protecting traffic in a mesh network
CN101686494A (en) * 2008-09-22 2010-03-31 大唐移动通信设备有限公司 Method and device for processing packets by packet data convergence protocol (PDCP) layer
CN101989906A (en) * 2009-07-30 2011-03-23 华为技术有限公司 Message synchronizing method, device and system
CN102104535A (en) * 2009-12-18 2011-06-22 华为技术有限公司 Method, device and system for transmitting PDCP data
CN103607261A (en) * 2013-11-22 2014-02-26 大唐移动通信设备有限公司 Data transmission method and device
CN103607288A (en) * 2013-08-07 2014-02-26 王健 Linear lossless network protective method of data network
CN108965027A (en) * 2018-08-10 2018-12-07 杭州依赛通信有限公司 A kind of CES service nondestructive transfer approach

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020075873A1 (en) * 2000-12-20 2002-06-20 Gwenda Lindhorst-Ko Method of protecting traffic in a mesh network
CN101686494A (en) * 2008-09-22 2010-03-31 大唐移动通信设备有限公司 Method and device for processing packets by packet data convergence protocol (PDCP) layer
CN101989906A (en) * 2009-07-30 2011-03-23 华为技术有限公司 Message synchronizing method, device and system
CN102104535A (en) * 2009-12-18 2011-06-22 华为技术有限公司 Method, device and system for transmitting PDCP data
CN103607288A (en) * 2013-08-07 2014-02-26 王健 Linear lossless network protective method of data network
CN103607261A (en) * 2013-11-22 2014-02-26 大唐移动通信设备有限公司 Data transmission method and device
CN108965027A (en) * 2018-08-10 2018-12-07 杭州依赛通信有限公司 A kind of CES service nondestructive transfer approach

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114205263A (en) * 2021-12-08 2022-03-18 中国信息通信研究院 Communication method, system and storage medium for Ether CAT network
CN114205263B (en) * 2021-12-08 2023-10-13 中国信息通信研究院 Communication method, system and storage medium for Ether CAT network
CN114157586A (en) * 2021-12-15 2022-03-08 苏州盛科通信股份有限公司 Method and device for improving TWAMP detection accuracy and storage device

Also Published As

Publication number Publication date
CN112822048B (en) 2022-05-17

Similar Documents

Publication Publication Date Title
CN112822048B (en) Method and system for realizing nondestructive protection switching
AU2015255284B2 (en) Method and system for reduction of time variance of packets received from bonded communication links
KR20090014334A (en) Systems and methods of improving performance of transport protocols
EP1467525A1 (en) A method of controlling flow of the ethernet data in a synchronous data hierarchy transmission network
US7965625B2 (en) Communication device and logical link abnormality detection method
JPH0286245A (en) Data link layer processing system
JPH09511626A (en) Rerouting method for packet mode data connection
GB2370200A (en) Enhancing the efficiency of data flow in communication systems
US9332092B2 (en) Method and system for processing data record packet
CN111800324B (en) Intelligent substation HSR node forwarding method and device
US20060062254A1 (en) Method of encoding a data packet
JP2001308900A (en) Network and protocol for group multi-casting
WO2006052053A1 (en) Apparatus for detecting data looping phenomenon and method used by the same
CN102487330B (en) Method and device for sending operation, administration and maintenance messages
JP2014017568A (en) Sleep control method, optical communication system, and optical network terminating device
CN115250389A (en) Optical network terminal
JPH11239163A (en) Inter-lan flow control method and switch
EP1309125A1 (en) Method and systems for determining availability in communication networks via transmission of monitoring packets
CN112491871A (en) TCP (Transmission control protocol) recombination method and device, electronic equipment and storage medium
US8712336B2 (en) Data unit receiver and sender control method
CN116192634B (en) Data transmission method and device
CN117856985B (en) Method, computer device, medium, and program for messaging Wen Chong
KR102416153B1 (en) System for highly available service function chaining on programmmable switches
US20220321465A1 (en) Communication Device
JPH08251226A (en) Congestion reporting method

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