CN111131035A - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN111131035A
CN111131035A CN201911311860.6A CN201911311860A CN111131035A CN 111131035 A CN111131035 A CN 111131035A CN 201911311860 A CN201911311860 A CN 201911311860A CN 111131035 A CN111131035 A CN 111131035A
Authority
CN
China
Prior art keywords
link
active
transmission path
main
service data
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.)
Pending
Application number
CN201911311860.6A
Other languages
Chinese (zh)
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 Semiconductor Technology Co Ltd
Original Assignee
New H3C Semiconductor Technology 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 Semiconductor Technology Co Ltd filed Critical New H3C Semiconductor Technology Co Ltd
Priority to CN201911311860.6A priority Critical patent/CN111131035A/en
Publication of CN111131035A publication Critical patent/CN111131035A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/68Pseudowire emulation, e.g. IETF WG PWE3
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/32Flooding

Landscapes

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

Abstract

The embodiment of the invention provides a data transmission method and device, and relates to the technical field of communication. When detecting the fault of the main AC link of the main transmission path, the method determines the main PW link corresponding to the main AC link with the fault according to the corresponding relation by using the first PE equipment, and notifies the second PE equipment connected with the main PW link to switch to the standby transmission path for transmitting service data, or when detecting the fault of the main PW link with the main transmission path, determines the main AC link corresponding to the main PW link with the fault according to the corresponding relation by using the first PE equipment, and notifies the CE equipment connected with the main AC link to switch to the standby transmission path for transmitting service data. When the active AC link or the active PW link fails, the first PE device can notify the opposite terminal device corresponding to the failed link, so that the opposite terminal device can transmit service data through the standby transmission link in time, and service interruption is avoided.

Description

Data transmission method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data transmission method and apparatus.
Background
With the continuous development of networks, the reliability of networking is more and more important. Typically, PseudoWire (PseudoWire) redundancy techniques can be utilized to improve the reliability of the network. The PW redundancy can protect the primary PW transmission service through the standby PW when detecting a failure in the network, so as to ensure the normal traffic of two user Edge (CE) devices.
In an existing two-Layer Virtual Private Network (L2 VPN), a first user edge device CE1 may perform traffic with a second user edge device CE2 sequentially through a first provider edge device PE1, a second provider edge device PE 2; if the primary PW between PE2 and PE1 fails, the CE2 at the opposite end of PE1 cannot timely sense the failure; or if the primary AC between PE2 and CE2 fails, PE1 at the opposite end of CE2 cannot sense the failure in time. That is, if the connection state between the PE and any one of the two terminals is faulty, the opposite terminal device cannot timely sense the fault, and the service transmission is interrupted.
Disclosure of Invention
In view of the above, the present invention provides a data transmission method and apparatus to solve the above problems.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment provides a data transmission method, which is applied to a first provider network edge PE device of a CE dual-homed access network of a user network edge device, where the CE dual-homed access network further includes the CE device and a second PE device, an active AC link is established between the first PE device and the CE device, an active PW link is established between the first PE device and the second PE device, and the active AC link and the active PW link form a main transmission path, where the method includes:
the first PE device detects whether a fault exists in the main transmission path, wherein a corresponding relation exists between the main AC link and the main PW link;
if the primary AC link of the primary transmission path is detected to be failed, the first PE device determines a primary PW link corresponding to the failed primary AC link according to the corresponding relation, and notifies a second PE device connected with the primary PW link to switch to a standby transmission path for transmitting service data;
if the primary PW link of the primary transmission path is detected to be failed, the first PE device determines a primary AC link corresponding to the failed primary PW link according to the corresponding relation, and notifies the CE device connected with the primary AC link to switch to a standby transmission path for transmitting service data.
In a second aspect, an embodiment provides a data transmission apparatus, which is applied to a first provider network edge PE device of a CE dual-homed access network of a user network edge device, where the CE dual-homed access network further includes the CE device and a second PE device, an active AC link is established between the first PE device and the CE device, an active PW link is established between the first PE device and the second PE device, and the active AC link and the active PW link form a main transmission path, where the apparatus includes:
a fault detection module, configured to detect whether a fault exists in the main transmission path, where a correspondence relationship exists between the main AC link and the main PW link;
a failure notification module, configured to determine, according to the correspondence, a primary PW link corresponding to a failed primary AC link if a failure of the primary AC link of the primary transmission path is detected, and notify a second PE device connected to the primary PW link to switch to a standby transmission path to transmit service data;
and the failure notification module is further configured to, if it is detected that the active PW link of the active transmission path fails, determine, according to the correspondence, an active AC link corresponding to the failed active PW link, and notify the CE device connected to the active AC link to switch to a standby transmission path to transmit service data.
The data transmission method and the device provided by the embodiment of the invention are applied to the first PE equipment of the CE dual-homing access network, and an active AC link is established between the first PE device and the CE device, an active PW link is established between the first PE device and the second PE device, the active AC link and the active PW link form a main transmission path, when detecting the failure of the main AC link of the main transmission path, the method utilizes the first PE device to determine the main PW link corresponding to the failed main AC link according to the corresponding relation, informs the second PE device connected with the main PW link to switch to the standby transmission path for transmitting service data, or when detecting that the active PW link of the active transmission path has a fault, determining the active AC link corresponding to the failed active PW link according to the corresponding relationship by using the first PE device, and notifying the CE device connected with the active AC link to switch to the standby transmission path for transmitting the service data. When the active AC link or the active PW link fails, the first PE device can notify the opposite terminal device corresponding to the failed link, so that the opposite terminal device can transmit service data through the standby transmission link in time, and service interruption is avoided.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a diagram showing an example of the structure of a networking system.
Fig. 2 is a block diagram of a provider edge device according to the present invention.
Fig. 3 is a flowchart of a data transmission method according to an embodiment of the present invention.
Fig. 4 is a detailed flowchart of S302 in one case.
Fig. 5 is a detailed flowchart of S302 in another case.
Fig. 6 is a specific flowchart of S303 in one case.
Fig. 7 is a detailed flowchart of S303 in another case.
Fig. 8 shows a message format of a CCM message.
Fig. 9 shows the format of the flag field in the CCM message.
Fig. 10, 11, 12, and 13 are signaling diagrams of the data transmission method provided by the present invention.
Fig. 14 is a functional block diagram of a data transmission apparatus according to the present invention.
Icon: 100-CE dual-homing access network; 110-a first CE device; 120-a second CE device; 130-a first PE device; 140-a second PE device; 150-a third PE device; 200-service provider edge device; 210-a memory; 220-a processor; 230-a communication module; 300-a data transmission device; 310-fault detection module; 320-failure notification module.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It is noted that relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Fig. 1 is a diagram illustrating a structure of a CE dual-homing network 100. Wherein the first CE device 110 may communicate with the second CE device 120 over the primary transmission path or the backup transmission path. Specifically, the main transmission link includes an active PW link established between the second PE device 140 and the first PE device 130, and an active AC link established between the first PE device 130 and the second CE device 120. The backup transmission link includes a backup PW link established between the second PE device 140 and the third PE device 150, and a backup AC link established between the third PE device 150 and the second CE device 120.
It should be noted that one main transmission path may carry multiple main AC links and multiple main PW links, that is, multiple main PW links may be established between the second PE device 140 and the first PE device 130, and multiple main AC links may be established between the first PE device 130 and the second CE device 120, so that there is a corresponding relationship between the main AC links and the main PW links, so that a set of corresponding main PW links and main AC links may be used to transmit one type of service data.
In general, if the active PW link fails, the first PE device 130 and the second PE device 140 may quickly sense the failure, and the second PE device 140 starts the standby PW link in response to the failure event of the active PW link, and forwards the packet of the first CE device 110 to the third PE device 150 through the standby PW link, and then the third PE device 150 forwards the packet to the second CE device 120; after receiving the message, the second CE device 120 may switch the message sent to the first CE device 110 to the standby AC link and the standby PW link for forwarding, thereby ensuring that communication is not interrupted.
However, in this case, the second CE device 120 must wait for receiving the message sent by the first CE device 110 before resuming the service transmission from the second CE device 120 to the first CE device 110. However, the second PE device 140 needs to wait for the PW redundancy to be completed and for the packet forwarded by the second PE device 140, which results in a long service interruption time.
In another case, if the active AC link fails, the second CE device 120 and the first PE device 130 may quickly sense the failure and enable the standby AC by the second CE device 120 in response to the failure event of the active AC. Similarly, the second PE device 140 cannot sense the failure, and still uses the active PW to perform service forwarding, which results in service interruption in the direction from the first CE device 110 to the second CE device 120.
In view of the above, the present invention provides a data transmission method and apparatus to solve the above problems.
Referring to fig. 2, a block diagram of a service provider edge device 200 is shown. The provider edge device 200 includes a memory 210, a processor 220, and a communication module 230. The memory 210, the processor 220, and the communication module 230 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines.
The memory 210 is used for storing programs or data. The Memory 210 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an erasable Read-Only Memory (EPROM), an electrically erasable Read-Only Memory (EEPROM), and the like.
The processor 220 is used to read/write data or programs stored in the memory 210 and perform corresponding functions.
The communication module 230 is configured to establish a communication connection between the provider edge device 200 and other communication terminals (such as the second PE device 140, the second CE device 120, etc. described above) through the network, and to transceive data through the network.
It should be understood that the configuration shown in FIG. 2 is merely a schematic diagram of the configuration of the facilitator edge device 200, and that the facilitator edge device 200 may include more or fewer components than shown in FIG. 2, or have a different configuration than shown in FIG. 2. The components shown in fig. 2 may be implemented in hardware, software, or a combination thereof.
First embodiment
The invention provides a data transmission method, which is applied to a first PE device 130 of a CE dual-homing access network 100. It should be noted that the CE dual-homing access network 100 may be a CE dual-homing symmetric access network or a CE dual-homing asymmetric access network, and is not limited herein.
Please refer to fig. 3, which is a flowchart illustrating a data transmission method according to the present invention. The data transmission method comprises the following steps:
s301, the first PE device 130 detects whether there is a failure in the main transmission path, and if the main AC link of the main transmission path fails, executes S302; if the primary PW link of the primary transmission path fails, S303 is executed.
The main transmission link comprises an active PW link and an active AC link. That is, whether a failure exists in the main transmission path may be determined by detecting whether a failure exists in the active PW link and whether a failure exists in the active AC link.
In an optional implementation manner, the first PE device 130 may detect whether the active PW link and the active AC link have a fault by using physical sensing (e.g., a port state Detection method), a Continuity Check Message (CCM) Message, a Bidirectional Forwarding Detection (BFD) Message, a Label Distribution Protocol (LDP), and the like.
For example, the first PE device 130 may send a BFD packet to the second PE device 140 and the second CE device 120, and if the first PE device 130 does not receive or receives a packet fed back by the second PE device 140 overtime, it may be determined that the active PW link has a failure; if the first PE device 130 does not receive or receives a packet fed back by the second CE device 120 after timeout, it may be determined that the active AC link has a failure.
Meanwhile, it should be noted that the second CE device 120 may also detect the failure of the active AC link in time. Therefore, when the active AC link fails, the second CE device 120 may switch to the standby transmission path in time to transmit the service data, so that the time for service interruption from the second CE device 120 to the first CE device 110 is short.
Similarly, the second PE device 140 may also detect a failure of the active PW link in time, so that when the active PW link fails, the second PE device 140 may switch to the standby transmission path in time to transmit service data, and the time for service interruption from the first CE device 110 to the second CE device 120 is short.
S302, the first PE device 130 determines the active PW link corresponding to the failed active AC link according to the corresponding relationship, and notifies the second PE device 140 connected to the active PW link to switch to the standby transmission path for transmitting service data.
In an optional implementation manner, the first PE device 130 stores a PW entry, where the PW entry includes a corresponding relationship between the active PW link and the active AC link. Therefore, after determining that the active AC link fails, the first PE device 130 may find the active PW link corresponding to the failed active AC link through the PW table entry, and notify the second PE device 140 connected to the active PW link to switch to the standby transmission path to transmit service data.
It should be noted that, in this embodiment, the first PE device 130 may notify the second PE device 140 connected to the active PW link to switch to the standby transmission path to transmit the service data in the following two ways.
The first method comprises the following steps: referring to fig. 4, the S302 includes:
s3021, blocking the active PW link, so that the second PE device 140 switches to the standby transmission path to transmit service data after detecting that the active PW link is blocked.
The first PE device 130 may delete the information of the active PW link from the pre-stored routing table entry, or directly set the active PW link to a closed state (down), that is, may block the active PW link.
Since one of the nodes forming the active PW link is the second PE device 140, the second PE device 140 can detect the active PW link failure by using mechanisms such as physical sensing, CCM packet, BFD packet, or LDP, and switch to the standby transmission path to transmit service data after detecting the active PW link failure.
And the second method comprises the following steps: referring to fig. 5, the S302 includes:
s3022, a CSF message is generated.
Herein, the CSF is collectively called Client Signal Fail, which is also called Client Signal Fail. The CSF message is used to notify the second PE device 140 of the primary AC link failure.
S3023, sending a CSF message to the second PE device 140 according to a preset first frequency, so that the second PE device 140 switches to a standby transmission path to transmit service data, where the first frequency is greater than a frequency value specified in a CSF protocol.
Under normal conditions, the packet sending frequency of the CSF message specified by the CSF protocol is slow, and if the notification message is sent at the original packet sending frequency of the CSF message, the service interruption time may be too long, so that the first PE device 130 sends the notification message to the second PE device 140 according to the preset first frequency, and can notify the second PE device 140 to perform the active-standby switching as soon as possible by increasing the frequency of sending the notification message, so as to reduce the service interruption time.
S303, the first PE device 130 determines, according to the corresponding relationship, an active AC link corresponding to the failed active PW link, and notifies the CE device connected to the active AC link to switch to the standby transmission path to transmit service data.
Similarly, after determining that the active PW link fails, the first PE device 130 may find the active AC link corresponding to the failed active PW link through the PW entry, and notify a CE device (i.e., the second CE device 120 in fig. 1) connected to the active AC link to switch to the standby transmission path to transmit service data.
It should be noted that, in this embodiment, the first PE device 130 may notify the CE device connected to the active AC link to switch to the standby transmission path to transmit the service data in the following two ways.
The first method comprises the following steps: referring to fig. 6, the S303 includes:
s3031, blocking the active AC link, so that the CE device switches to the standby transmission path to transmit the service data after detecting that the active AC link is blocked.
The first PE device 130 may delete the information of the active AC link from the pre-stored routing table entry, or directly set the active AC link to a closed state (down), that is, may block the active AC link.
One of the nodes forming the active AC link is the CE device, so that the CE device can detect the active AC link failure by using mechanisms such as physical sensing, CCM packet, BFD packet, or LDP, and switch to the standby transmission path to transmit the service data after detecting the active AC link failure.
It should be noted that, after detecting the failure of the active AC link, the CE device may clear the MAC address associated with the active AC link, and transmit service data to the main transmission path and the standby transmission path based on the flooding manner, respectively.
It should be further noted that the MAC address associated with the active AC link may be a MAC address of the first PE device 130 connected to the active AC link and a MAC address of the third PE device 150 connected to the standby AC link corresponding to the active AC link. After the CE device clears the MAC address of the first PE device 130 and the MAC address of the third PE device 150, the CE device performs flooding forwarding, so that service data is transmitted to both the first PE device 130 and the third PE device 150, but since both the active AC link and the active PW link are in a failure state at this time, the CE device can only transmit the service data through the standby transmission path.
And the second method comprises the following steps: referring to fig. 7, the S303 includes:
s3031, generates a CCM message containing the failure information.
Please refer to fig. 8, which shows a message format of the CCM message. Wherein the failure information may be stored to a flag field of the CCM message. Specifically, as shown in fig. 9, the failure information may be stored in a reserved field (any one of the 4 th bit to the 7 th bit) of the flag field, or may be stored in the tail (i.e., the 1 st bit) of the flag field.
S3032, sending the CCM packet to the CE device to enable the CE device to clear the MAC address associated with the active AC link, and respectively transmitting the service data to the main transmission path and the backup transmission path based on the flooding manner.
In summary, the present application has four actual situations, and how to resume the transmission of the bidirectional service in each situation will be described below with reference to the accompanying drawings.
First, based on the networking structure shown in fig. 1, and by adopting a method of sending a CCM message to notify the second CE device 120 of the failure of the active PW link, a process of recovering service transmission from the second CE device 120 to the first CE device 110 may be as shown in fig. 10. If the active PW link fails, the PE1 may detect that the active PW link fails, generate a CCM packet including failure information, and send the CCM packet to the CE2, and after receiving the CCM packet, the CE2 removes the MAC address of the PE2 and the MAC address of the PE3, and then transmits service data to the active transmission path and the standby transmission path, respectively, based on a flooding manner.
Secondly, based on the networking structure shown in fig. 7, and notifying the CE2 of the failure of the active PW link by blocking the active AC link, a process of recovering the traffic transmission in the direction from the CE2 to the CE1 may be as shown in fig. 11. If the active PW link fails, PE1 may detect that the active PW link fails, and then block the active AC link, so that the active AC link fails, and after the CE2 detects the failure, the MAC address of PE2 and the MAC address of PE3 are removed, and then service data is transmitted to the main transmission path and the standby transmission path, respectively, based on a flooding manner.
It should be noted that, in the first and second cases, if the active PW link fails, PE2 may also detect the failure, and at this time, PE2 performs active/standby switching, so as to send a service packet to CE2 again.
Thirdly, based on the networking structure shown in fig. 7, the PE2 is informed of the failure of the primary AC link by sending a notification message, and a process of recovering the service transmission in the direction from the CE1 to the CE2 may be as shown in fig. 12. If the active AC link fails, PE1 may detect that the active AC link fails, generate a CSF packet, and send the CSF packet to PE2, and PE2 switches the received CSF packet to a standby transmission path to transmit service data, thereby sending the service packet to CE2 again.
Fourthly, based on the networking structure shown in fig. 7, and notifying the PE2 of the failure of the active AC link by blocking the active PW link, a process of recovering the traffic transmission in the direction from the CE1 to the CE2 may be as shown in fig. 13. If the active AC link fails, PE1 may detect that the active AC link fails, and then block the active PW link, so that the active PW fails, and PE2 switches to the standby transmission path to transmit service data after detecting the failure, thereby sending a service packet to CE2 again.
In the third and fourth cases, if the active AC link fails, the CE2 may also detect the failure, and at this time, the CE2 clears the MAC address of the PE1 and the MAC address of the PE3, and then transmits the traffic data to the primary transmission path and the backup transmission path, respectively, based on the flooding manner.
In order to perform the corresponding steps in the above embodiments and various possible manners, an implementation manner of the data transmission apparatus 300 is given below, and optionally, the data transmission apparatus 300 may adopt the device structure of the service provider edge device 200 shown in fig. 2. Further, referring to fig. 14, fig. 14 is a functional block diagram of a data transmission device 300 according to an embodiment of the present invention. It should be noted that the basic principle and the generated technical effect of the data transmission apparatus 300 provided in the present embodiment are the same as those of the above embodiments, and for the sake of brief description, no part of the present embodiment is mentioned, and corresponding contents in the above embodiments may be referred to. The data transmission device 300 includes: a fault detection module 310 and a fault notification module 320.
The failure detection module 310 is configured to detect whether a failure exists in the main transmission path.
It is to be appreciated that in an alternative embodiment, the failure detection module 310 may be configured to perform S301.
The failure notification module 320 is configured to, if it is detected that the active AC link of the active transmission path fails, determine, according to the correspondence, an active PW link corresponding to the failed active AC link, and notify the second PE device 140 connected to the active PW link to switch to a standby transmission path to transmit service data.
In an optional implementation manner, the failure notification module 320 is configured to, if it is detected that the active AC link of the primary transmission path fails, determine, according to the correspondence, an active PW link corresponding to the failed active AC link, and block the active PW link, so that the second PE device 140 switches to the standby transmission path to transmit service data after detecting that the active PW link is blocked.
In another optional implementation, the failure notification module 320 is configured to, if it is detected that the active AC link of the primary transmission path fails, determine, according to the correspondence, an active PW link corresponding to the failed active AC link, generate a CSF packet, and send the CSF packet to the second PE device 140 according to a preset first frequency, so that the second PE device 140 switches to the standby transmission path to transmit service data, where the first frequency is greater than a frequency value specified by a CSF protocol.
It is to be appreciated that in an alternative embodiment, the fault notification module 320 may be configured to perform steps S302, S3021, S3022, and S3023.
The failure notification module 320 is further configured to, if it is detected that the active PW link of the active transmission path fails, determine, according to the correspondence, an active AC link corresponding to the failed active PW link, and notify the CE device connected to the active AC link to switch to a standby transmission path to transmit service data.
In an optional implementation manner, the failure notification module 320 is configured to, if it is detected that the active PW link of the active transmission path fails, determine, according to the correspondence, an active AC link corresponding to the failed active PW link, and block the active AC link, so that the CE device switches to the standby transmission path to transmit service data after detecting that the active AC link is blocked.
In another optional implementation manner, the failure notification module 320 is configured to, if a failure of the active PW link of the active transmission path is detected, determine, according to the correspondence, the active AC link corresponding to the failed active PW link, generate a CCM packet containing failure information, send the CCM packet to the CE device, so that the CE device removes an MAC address associated with the active AC link, and transmit service data to the active transmission path and the standby transmission path, respectively, based on a flooding manner.
It is appreciated that in an alternative embodiment, the fault notification module 320 may be configured to perform steps S303, S3031, S3032, and S3033.
Alternatively, the modules may be stored in the memory 210 shown in fig. 2 in the form of software or Firmware (Firmware) or be fixed in an Operating System (OS) of the provider edge device 200, and may be executed by the processor 220 in fig. 2. Meanwhile, data, codes of programs, and the like required to execute the above-described modules may be stored in the memory 210.
The present invention also provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by the processor 220, implements the data transmission method according to any one of the preceding embodiments.
To sum up, the data transmission method and apparatus provided in the embodiments of the present invention are applied to the first PE device of the CE dual-homed access network, and an active AC link is established between the first PE device and the CE device, an active PW link is established between the first PE device and the second PE device, the active AC link and the active PW link form a main transmission path, when detecting the failure of the main AC link of the main transmission path, the method utilizes the first PE device to determine the main PW link corresponding to the failed main AC link according to the corresponding relation, informs the second PE device connected with the main PW link to switch to the standby transmission path for transmitting service data, or when detecting that the active PW link of the active transmission path has a fault, determining the active AC link corresponding to the failed active PW link according to the corresponding relationship by using the first PE device, and notifying the CE device connected with the active AC link to switch to the standby transmission path for transmitting the service data. When the active AC link or the active PW link fails, the first PE device can notify the opposite terminal device corresponding to the failed link, so that the opposite terminal device can transmit service data through the standby transmission link in time, and service interruption is avoided.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A data transmission method is characterized in that the method is applied to a first provider network edge (PE) device of a CE dual-homed access network of a user network edge device, the CE dual-homed access network also comprises the CE device and a second PE device, a main AC link is established between the first PE device and the CE device, a main PW link is established between the first PE device and the second PE device, and the main AC link and the main PW link form a main transmission path, and the method comprises the following steps:
the first PE device detects whether a fault exists in the main transmission path, wherein a corresponding relation exists between the main AC link and the main PW link;
if the primary AC link of the primary transmission path is detected to be failed, the first PE device determines a primary PW link corresponding to the failed primary AC link according to the corresponding relation, and notifies a second PE device connected with the primary PW link to switch to a standby transmission path for transmitting service data;
if the primary PW link of the primary transmission path is detected to be failed, the first PE device determines a primary AC link corresponding to the failed primary PW link according to the corresponding relation, and notifies the CE device connected with the primary AC link to switch to a standby transmission path for transmitting service data.
2. The data transmission method according to claim 1, wherein the step of notifying the second PE device connected to the active PW link to switch to the standby transmission path to transmit the service data includes:
and blocking the active PW link, so that the second PE device switches to a standby transmission path to transmit service data after detecting that the active PW link is blocked.
3. The data transmission method according to claim 1, wherein the step of notifying the CE device connected to the active AC link to switch to the standby transmission path for transmitting the service data comprises:
and blocking the active AC link, so that the CE equipment is switched to a standby transmission path to transmit service data after detecting that the active AC link is blocked.
4. The data transmission method according to claim 1, wherein the step of notifying the second PE device connected to the active PW link to switch to the standby transmission path to transmit the service data includes:
generating a CSF message;
and sending the CSF message to the second PE device according to a preset first frequency so that the second PE device switches to the standby transmission path to transmit service data, wherein the first frequency is greater than a frequency value specified by a CSF protocol.
5. The data transmission method according to claim 1, wherein the step of notifying the CE device connected to the active AC link to switch to the standby transmission path for transmitting the service data comprises:
generating a CCM message containing fault information, wherein the CCM message comprises a mark field, and the fault information is located in a reserved field of the mark field or in a tail field of the mark field;
and sending the CCM message to the CE equipment to enable the CE equipment to clear the MAC address associated with the active AC link, and respectively transmitting service data to the active transmission path and the standby transmission path based on a flooding mode.
6. A data transmission apparatus, characterized in that, applied to a first provider network edge PE device of a CE dual-homed access network of a user network edge device, the CE dual-homed access network further includes a CE device and a second PE device, an active AC link is established between the first PE device and the CE device, an active PW link is established between the first PE device and the second PE device, the active AC link and the active PW link form a main transmission path, and the apparatus includes:
a fault detection module, configured to detect whether a fault exists in the main transmission path, where a correspondence relationship exists between the main AC link and the main PW link;
a failure notification module, configured to determine, according to the correspondence, a primary PW link corresponding to a failed primary AC link if a failure of the primary AC link of the primary transmission path is detected, and notify a second PE device connected to the primary PW link to switch to a standby transmission path to transmit service data;
and the failure notification module is further configured to, if it is detected that the active PW link of the active transmission path fails, determine, according to the correspondence, an active AC link corresponding to the failed active PW link, and notify the CE device connected to the active AC link to switch to a standby transmission path to transmit service data.
7. The data transmission apparatus according to claim 6, wherein the failure notification module is configured to, if it is detected that the active AC link of the active transmission path fails, determine, according to the correspondence, an active PW link corresponding to the failed active AC link, and block the active PW link, so that the second PE device switches to a standby transmission path to transmit service data after detecting that the active PW link is blocked.
8. The data transmission apparatus according to claim 6, wherein the failure notification module is configured to, if it is detected that the active PW link of the active transmission path fails, determine, according to the correspondence, an active AC link corresponding to the failed active PW link, and block the active AC link, so that the CE device switches to a standby transmission path to transmit service data after detecting that the active AC link is blocked.
9. The data transmission apparatus according to claim 6, wherein the failure notification module is configured to, if it is detected that the active AC link of the primary transmission path fails, determine, according to the correspondence, an active PW link corresponding to the failed active AC link, and generate a CSF packet;
the failure notification module is further configured to send the CSF packet to the second PE device according to a preset first frequency, so that the second PE device switches to a standby transmission path to transmit service data, where the first frequency is greater than a frequency value specified by a CSF protocol.
10. The data transmission device according to claim 6, wherein the failure notification module is configured to, if it is detected that the active PW link of the active transmission path fails, determine, according to the correspondence, an active AC link corresponding to the failed active PW link, and generate a CCM packet including failure information, where the CCM packet includes a flag field, and the failure information is located in a reserved field of the flag field or in a tail field of the flag field;
the failure notification module is further configured to send the CCM packet to the CE device, so that the CE device clears the MAC address associated with the active AC link, and respectively transmits service data to the main transmission path and the standby transmission path based on a flooding manner.
CN201911311860.6A 2019-12-18 2019-12-18 Data transmission method and device Pending CN111131035A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911311860.6A CN111131035A (en) 2019-12-18 2019-12-18 Data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911311860.6A CN111131035A (en) 2019-12-18 2019-12-18 Data transmission method and device

Publications (1)

Publication Number Publication Date
CN111131035A true CN111131035A (en) 2020-05-08

Family

ID=70499859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911311860.6A Pending CN111131035A (en) 2019-12-18 2019-12-18 Data transmission method and device

Country Status (1)

Country Link
CN (1) CN111131035A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111740898A (en) * 2020-05-26 2020-10-02 新华三信息安全技术有限公司 Link switching method and device and service provider edge equipment
CN111817881A (en) * 2020-06-19 2020-10-23 新华三信息安全技术有限公司 Fault processing method and related device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340351A (en) * 2008-08-19 2009-01-07 华为技术有限公司 Data transmission method, apparatus and system in VPLS network
CN101800662A (en) * 2010-01-22 2010-08-11 中兴通讯股份有限公司 Double-returning protection switching method based on VPLS and system
CN101931520A (en) * 2010-09-02 2010-12-29 中兴通讯股份有限公司 Switching method and system
CN102104529A (en) * 2009-12-18 2011-06-22 杭州华三通信技术有限公司 Method and equipment for realizing message transmission in provider bridge transfer (PBT) network
WO2011095042A1 (en) * 2010-02-02 2011-08-11 华为技术有限公司 Method, apparatus and system for forwarding data
CN102377607A (en) * 2010-08-06 2012-03-14 华为技术有限公司 Data transmission method and data transmission device for special two-layer virtual network
CN102572905A (en) * 2012-01-09 2012-07-11 中兴通讯股份有限公司 Dual-homing protection switching method and system
CN102857362A (en) * 2012-04-20 2013-01-02 福建星网锐捷网络有限公司 Fault processing method, device and system
CN103888353A (en) * 2012-12-19 2014-06-25 北京华为数字技术有限公司 Protection group protection switching cut-back processing method and customer edge equipment
CN105656776A (en) * 2014-12-01 2016-06-08 中兴通讯股份有限公司 Pseudo-wire dual-homing protection switching system, method and device
CN105656775A (en) * 2014-11-14 2016-06-08 中兴通讯股份有限公司 Media access control forwarding link switching method and device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340351A (en) * 2008-08-19 2009-01-07 华为技术有限公司 Data transmission method, apparatus and system in VPLS network
CN102104529A (en) * 2009-12-18 2011-06-22 杭州华三通信技术有限公司 Method and equipment for realizing message transmission in provider bridge transfer (PBT) network
CN101800662A (en) * 2010-01-22 2010-08-11 中兴通讯股份有限公司 Double-returning protection switching method based on VPLS and system
WO2011095042A1 (en) * 2010-02-02 2011-08-11 华为技术有限公司 Method, apparatus and system for forwarding data
CN102377607A (en) * 2010-08-06 2012-03-14 华为技术有限公司 Data transmission method and data transmission device for special two-layer virtual network
CN101931520A (en) * 2010-09-02 2010-12-29 中兴通讯股份有限公司 Switching method and system
CN102572905A (en) * 2012-01-09 2012-07-11 中兴通讯股份有限公司 Dual-homing protection switching method and system
CN102857362A (en) * 2012-04-20 2013-01-02 福建星网锐捷网络有限公司 Fault processing method, device and system
CN103888353A (en) * 2012-12-19 2014-06-25 北京华为数字技术有限公司 Protection group protection switching cut-back processing method and customer edge equipment
CN105656775A (en) * 2014-11-14 2016-06-08 中兴通讯股份有限公司 Media access control forwarding link switching method and device
CN105656776A (en) * 2014-12-01 2016-06-08 中兴通讯股份有限公司 Pseudo-wire dual-homing protection switching system, method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111740898A (en) * 2020-05-26 2020-10-02 新华三信息安全技术有限公司 Link switching method and device and service provider edge equipment
CN111740898B (en) * 2020-05-26 2023-03-31 新华三信息安全技术有限公司 Link switching method and device and service provider edge equipment
CN111817881A (en) * 2020-06-19 2020-10-23 新华三信息安全技术有限公司 Fault processing method and related device
CN111817881B (en) * 2020-06-19 2023-12-26 新华三信息安全技术有限公司 Fault processing method and related device

Similar Documents

Publication Publication Date Title
US6658595B1 (en) Method and system for asymmetrically maintaining system operability
US6173411B1 (en) Method and system for fault-tolerant network connection switchover
EP3024164A1 (en) Switching method and apparatus for main and standby devices
US20070237085A1 (en) System and methodology for fast link failover based on remote upstream failures
US8117337B2 (en) Method and device for implementing link pass through in point-to-multipoint network
US7549078B2 (en) Redundancy in routing devices
US20100306572A1 (en) Apparatus and method to facilitate high availability in secure network transport
US9385944B2 (en) Communication system, path switching method and communication device
CN102088415B (en) Method and device for MAC (media access control) address withdrawal
CN110730125B (en) Message forwarding method and device, dual-active system and communication equipment
EP3029883B1 (en) Network protection method and apparatus, next-ring node, and system
EP3099021A1 (en) Interconnecting networks
CN109889411B (en) Data transmission method and device
US20200044964A1 (en) Defect detection in ip/mpls network tunnels
CN109088818A (en) A kind of method and device of equipment linkage switching
CN111131035A (en) Data transmission method and device
WO2012065409A1 (en) Method and apparatus for packet transport network protection
EP2613477B1 (en) Method for triggering route switching and service provider-end provider edge device
CN111083049A (en) User table item recovery method and device, electronic equipment and storage medium
KR101563133B1 (en) System and method for virtual circuit protection in the dynamic multi-domain environment
CN102904816A (en) Service traffic protection method and device
CN102882779A (en) VRRP (Virtual Router Redundancy Protocol) advertisement link protection method and system
CN109347717B (en) VXLAN tunnel switching method and device
CN110875880B (en) Data transmission method, related equipment, system and computer storage medium
CN107959626B (en) Communication method, device and system of data center

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200508

RJ01 Rejection of invention patent application after publication