WO2016177181A1 - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
WO2016177181A1
WO2016177181A1 PCT/CN2016/077548 CN2016077548W WO2016177181A1 WO 2016177181 A1 WO2016177181 A1 WO 2016177181A1 CN 2016077548 W CN2016077548 W CN 2016077548W WO 2016177181 A1 WO2016177181 A1 WO 2016177181A1
Authority
WO
WIPO (PCT)
Prior art keywords
link
data
network element
sent
laser
Prior art date
Application number
PCT/CN2016/077548
Other languages
French (fr)
Chinese (zh)
Inventor
谢勇
赵科强
高鹏
杨扬
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016177181A1 publication Critical patent/WO2016177181A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/74Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission for increasing reliability, e.g. using redundant or spare channels or apparatus
    • 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
    • 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/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure

Definitions

  • This document relates to, but is not limited to, the field of communications, and in particular, to a data transmission method and apparatus.
  • IP Internet Protocol
  • traffic that is, data
  • both the carrier network and the enterprise network basically have active and standby link protection. Through the protection of the active and standby links, the reliable transmission of traffic can be basically guaranteed.
  • the active/standby switchover is performed by removing the optical fiber cutover, the optical fiber is disconnected at the physical level, and the traffic cannot be guaranteed to be lost.
  • the traffic of the network is cut off to the backup link, most operators and enterprises hope that the uplink and downlink traffic will not be lost.
  • the embodiment of the invention provides a data transmission method and device, which can solve the problem that data packet loss occurs during the link switching process in the related art.
  • a data transmission method includes:
  • the stopping sending the second data by using the first link includes:
  • the method further includes:
  • a data transmission method includes:
  • the stopping sending the first data by using the first link includes:
  • the stopping, by using the first link, the second data that is sent by the second network element includes:
  • a data transmission device comprising:
  • the first determining module is configured to: when the first data is sent to the first network element by using the first link, determine that the first data that is sent by the first network element is not received from the first link in the first predetermined time;
  • a first sending module configured to send the second data by using a second link
  • the first stopping module is configured to stop sending the second data by using the first link after the first sending module sends the second data by using the second link.
  • the first stopping module includes:
  • a first shut down unit configured to turn off the laser of the first link for transmitting the second data.
  • the device further includes:
  • And closing the module configured to close the first chain after the first determining module determines that the first data sent by the first network element is not received from the first link within a first predetermined time A laser for receiving the first data.
  • a data transmission device comprising:
  • a second determining module configured to: when the first data is sent to the second network element by using the first link, determine that the first data needs to be sent to the second network element by using the second link;
  • a second sending module configured to send the first data to the second network element by using the second link
  • the second stopping module is configured to stop sending the first data by using the first link after the second sending module sends the first data by using the second link.
  • the second stopping module includes:
  • a second closing unit configured to turn off the laser of the first link for transmitting the first data.
  • the device further includes:
  • a third determining module configured to: when the second data sent by the second network element is received by using the first link, use, by the second sending module, the second link to the second network element After transmitting the first data, determining that the second network element is not received from the first link within the second predetermined time The second data sent;
  • a third stopping module configured to stop receiving, by using the first link, the second data sent by the second network element.
  • the third stopping module includes:
  • a third closing unit configured to turn off the laser of the first link for receiving the second data.
  • a computer readable storage medium storing computer executable instructions for performing the above method.
  • At least one embodiment of the present invention determines that the first data is not received from the first link within the first predetermined time before transmitting the second data through the second link, thereby stopping the transmission of the second data by using the first link. It can be ensured that the data on the first link is received without packet loss before the data is sent by using the second link, which solves the problem that data packet loss occurs in the link switching process in the related art, thereby achieving the active/standby chain. The technical effect of complete data transmission during the road switching process.
  • FIG. 1 is a flow chart 1 of a data transmission method according to an embodiment of the present invention.
  • FIG. 2 is a second flowchart of a data transmission method according to an embodiment of the present invention.
  • FIG. 3 is a block diagram 1 of a structure of a data transmission apparatus according to an embodiment of the present invention.
  • FIG. 4 is a block diagram showing the structure of a first stop module 36 in a data transmission apparatus according to an embodiment of the present invention
  • FIG. 5 is a block diagram 1 of an optional structure of a data transmission apparatus according to an embodiment of the present invention.
  • FIG. 6 is a structural block diagram 2 of a data transmission apparatus according to an embodiment of the present invention.
  • FIG. 7 is a structural block diagram of a second stop module 66 in a data transmission apparatus according to an embodiment of the present invention.
  • FIG. 8 is a block diagram 2 of an optional structure of a data transmission apparatus according to an embodiment of the present invention.
  • FIG. 9 is a structural block diagram of a third stop module 84 in a data transmission device according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of a primary and backup link protection scenario according to an embodiment of the present invention.
  • FIG. 11 is a flowchart of a method for switching local end illumination from a primary link to a backup link according to an embodiment of the present invention
  • FIG. 12 is a flowchart of a method for switching a peer end illumination from a primary link to a backup link according to an embodiment of the present invention.
  • FIG. 1 is a flowchart 1 of a data transmission method according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps:
  • Step S102 determining that the first data that is sent by the first network element is not received from the first link in the first predetermined time, where the first link is further used to send the second data to the first network element (ie, currently Transmitting the second data to the first network element by using the first link);
  • Step S104 Send the second data by using the second link.
  • Step S106 after transmitting the second data by using the second link, stopping sending the second data by using the first link.
  • the first link is further used to send the second data to the first network element, that is, the description
  • the first link may have a problem, and other The link is transmitted with the first network element, that is, the link needs to be switched at this time. Therefore, the second link can be used to send the second data; after the second link is sent by using the second link, the first link is stopped. The second data is sent, so that after the link switching is completed, the data sent on the first link is received.
  • the first link may be the primary link
  • the second link may be the standby link
  • the first link may be the standby link
  • the second link may be the primary link. If there is more than one alternate link, both the first link and the second link may also be alternate links.
  • stopping sending the second data by using the first link in step S106 may include: turning off the laser for transmitting the second data of the first link.
  • the use of a laser for data transmission may be to turn off the illumination function of the laser (ie, the laser may have both a light collection function and a light emission function), or may turn off the corresponding illumination laser (ie, the laser is Only a laser with a light-receiving function or a laser with only a light-emitting function).
  • the data transmission method may further include: turning off the laser of the first link for receiving the first data.
  • the first data sent by the first network element is not received from the first link in the first predetermined time, it may be learned that the first network element does not use the first link for data transmission in the first predetermined time, thereby Turning off the laser for receiving data of the first link can ensure that the data sent on the first link has been completely received, and no data packet loss occurs.
  • the data is received by the laser, which may be to turn off the light collecting function of the laser, or to turn off the corresponding light receiving laser.
  • FIG. 2 is a second flowchart of a data transmission method according to an embodiment of the present invention. As shown in FIG. 2, the method includes:
  • Step S202 when the first data is sent to the second network element by using the first link, determining that the first data needs to be sent to the second network element by using the second link;
  • Step S204 Send the first data to the second network element by using the second link.
  • Step S206 after transmitting the first data by using the second link, stopping sending the first data by using the first link.
  • the first data When the first data is sent to the second network element by using the first link, it is determined that the first data needs to be sent to the second network element by using the second link, that is, it is determined that the link switching needs to be performed, and the original use is performed. Transmitting the first data by using the first link, and transmitting the first data by using the second link; sending the first data to the second network element by using the second link, indicating that the link switching succeeds; After the first data is sent, the first data is stopped by using the first link, that is, after the link switching is completed, the sending of the first data of the first link is stopped, and the data transmission on the first link is ensured.
  • the first link may be the primary link
  • the second link may be the standby link
  • the first link may be the standby link
  • the second link may be the primary link. If there is more than one alternate link, both the first link and the second link may also be alternate links.
  • stopping sending the first data by using the first link in step S206 may include: turning off a laser for transmitting the first data of the first link.
  • the data is transmitted by using a laser, which may be to turn off the illumination function of the laser, or to turn off the corresponding illumination laser.
  • the data sending method may further include: determining that the second predetermined time is not from the first chain.
  • the second data sent by the second network element is received on the road; and the second data sent by the second network element is stopped by using the first link.
  • the second data is not received from the first link within the second predetermined time, that is, the data on the first link has been completely received, and the data on the first link can be guaranteed. After all the reception is completed, no packet will be lost.
  • stopping the using the first link to receive the second data sent by the second network element in the foregoing optional embodiment may include: turning off the laser of the first link for receiving the second data.
  • the data is received by the laser, which may be to turn off the light collecting function of the laser, or to turn off the corresponding light receiving laser.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic).
  • the discs and the optical discs include a plurality of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method described in the embodiments of the present invention.
  • a data transmission device is also provided.
  • the data transmission device is used for real
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments can be implemented by software, hardware, or a combination of software and hardware, is also possible and conceived.
  • FIG. 3 is a block diagram showing the structure of a data transmission device according to an embodiment of the present invention. As shown in FIG. 3, the device includes a first determining module 32, a first transmitting module 34, and a first stopping module 36. Description.
  • the first determining module 32 is configured to determine that the first data that is sent by the first network element is not received from the first link in the first predetermined time, where the first link is further used to send the second data to the first network element.
  • Data ie, currently transmitting the second data to the first network element by using the first link
  • the first sending module 34 is connected to the first determining module 32, and configured to send the second data by using the second link
  • a stop module 36 is connected to the first sending module 34, and is configured to stop transmitting the second data by using the first link after the first sending module 34 sends the second data by using the second link.
  • FIG. 4 is a structural block diagram of a first stop module 36 in a data transmission device according to an embodiment of the present invention. As shown in FIG. 4, the first stop module 36 includes: a first shutdown unit 42, and the first stop module 26 is described below. .
  • the first closing unit 42 is arranged to turn off the laser of the first link for transmitting the second data.
  • FIG. 5 is a block diagram showing an optional structure of a data transmission apparatus according to an embodiment of the present invention. As shown in FIG. 5, the apparatus includes a shutdown module 52 in addition to all the modules shown in FIG. Description.
  • the closing module 52 is connected to the first determining module 32, and is configured to close the first data after the first network element is not received from the first link after determining that the first predetermined time is determined.
  • a laser of a link for receiving first data is connected to the first determining module 32, and is configured to close the first data after the first network element is not received from the first link after determining that the first predetermined time is determined.
  • FIG. 6 is a structural block diagram 2 of a data transmission device according to an embodiment of the present invention. As shown in FIG. 6, the device includes: a second determining module 62 and a second sending module. 64 and the second stop module 66, the device will be described below.
  • the second determining module 62 is configured to: when the first data is sent to the second network element by using the first link, determine that the first data needs to be sent to the second network element by using the second link; and the second sending module 64 is connected to The second determining module 62 is configured to send the first data to the second network element by using the second link, and the second stopping module 66 is connected to the second sending module 64, and configured to be utilized by the second sending module 64. After transmitting the first data, the second link stops transmitting the first data by using the first link.
  • FIG. 7 is a structural block diagram of a second stop module 66 in a data transmission apparatus according to an embodiment of the present invention. As shown in FIG. 7, the second stop module 66 includes a second shutdown unit 72, which will be described below.
  • the second closing unit 72 is configured to turn off the laser for transmitting the first data of the first link.
  • FIG. 8 is a block diagram 2 of an optional structure of a data transmission apparatus according to an embodiment of the present invention. As shown in FIG. 8, the apparatus includes a third determination module 82 and a third stop module in addition to all the modules shown in FIG. 84. The device will be described below.
  • the third determining module 82 is connected to the second sending module 64, and is configured to use the second link to the second network element when receiving the second data sent by the second network element by using the first link. After the first data is sent, it is determined that the second data sent by the second network element is not received from the first link in the second predetermined time; the third stopping module 84 is connected to the third determining module 82, and configured to Stop receiving the second data sent by the second network element by using the first link.
  • FIG. 9 is a structural block diagram of a third stop module 84 in a data transmission apparatus according to an embodiment of the present invention. As shown in FIG. 9, the third stop module 84 includes a third shutdown unit 92, and the third stop module 84 is performed below. Description.
  • the third closing unit 92 is configured to turn off the laser of the first link for receiving the second data.
  • the following describes the present invention by taking the first link as the primary link and the second link as the backup link as an example:
  • the laser When shutting down the port of the traffic main link (that is, the first link in the above embodiment), the laser is turned off by delay, and the traffic is still sent from the primary link. The shutdown command is passed during the delay time. After the active/standby switchover is triggered, the traffic is switched to the backup link (that is, the second link in the foregoing embodiment), and then the local end (that is, the first network element in the foregoing embodiment) is turned off by the laser, thereby ensuring that the local end is uplinked.
  • the traffic of the local end (that is, the first network element) may be a router or a switch.
  • Backup link laser The receiving and illuminating of the device is always on when the active/standby link is switched, so that the data transmission and reception are not affected during the switching between the active and standby links.
  • the peer that is, the second network element in the above embodiment
  • the peer does not receive the light, and then delays the notification of the end laser to turn off the light to ensure the opposite end.
  • the downlink traffic can still be sent from the primary link.
  • the active/standby switchover is notified during the delay period.
  • the laser is turned off, thereby ensuring zero packet loss on the downstream downlink traffic.
  • the peer end ie, the second network element
  • FIG. 10 is a schematic diagram of a primary and backup link protection scenario according to an embodiment of the present invention.
  • two-way traffic passes through two switches or routers, and two routers (or two switches) pass two pairs of fiber links.
  • each pair of fibers respectively correspond to the first link and the second link described above
  • each pair of fibers has two fibers, one for each, one for receiving, and the physical layer laser sends light from the local end through the local transmitting fiber.
  • the opposite end also sends light from the local illuminating fiber to the opposite end through the laser, and the opposite end receives the traffic and then forwards it out.
  • FIG. 11 is a flowchart of a method for switching local end illumination from a primary link to a backup link according to an embodiment of the present invention. As shown in FIG. 11, the method includes the following steps:
  • step S1102 when the local link is shut down, the shutdown command is sent to the physical port on the switch or the router, and the laser light and the light collection of the port are temporarily suspended. At this time, the traffic is routed inside the switch or the router. Or the outbound interface is switched to the egress of the standby link, and the traffic is directed to the backup link.
  • step S1104 after the traffic is directed to the backup link, the laser light is turned off, and the light of the main link remains in the light-receiving state, so that the port is not closed, so that the traffic can be received from the opposite end;
  • step S1106 after the opposite end receives no light for a predetermined time, the opposite end laser is turned off.
  • the opposite end laser can detect that there is no light in the optical fiber link after the local laser is turned off. Thereby, the opposite end laser can be turned off.
  • FIG. 12 is a flowchart of a method for switching a peer end illumination from a primary link to a backup link according to an embodiment of the present invention. As shown in FIG. 12, the method includes the following steps:
  • step S1202 when the local laser is turned off and the opposite end no longer receives the light, the opposite end also delays turning off the laser illumination, so that the downlink traffic can still be sent from the primary link to the local end, and the switch or the router is notified to perform the active/standby.
  • Step S1204 After the traffic is completely switched to the standby link, the opposite end laser is turned off;
  • Step S1206 turning off the local laser to receive light
  • the method described in the step S1102 to the step S1106 and the step S1202 to the step S1206 in the embodiment of the present invention can not only reduce the uplink traffic of the local port but also reduce the downlink traffic of the peer end.
  • Figure 11 and Figure 12 show the common implementation of the two application scenarios, namely, the switch and the router.
  • the protection between the active and standby links of the switch and the router can be divided into active and standby. Protection of scenarios such as routing active and standby, HSB (hot-standby, tunnel hot backup).
  • HSB hot-standby, tunnel hot backup
  • the hardware module includes two switches.
  • the switch is connected by two pairs of fibers.
  • the aggregation group is configured to perform active/standby protection, as shown in Figure 10.
  • the switch is configured with an aggregation group to form an active/standby relationship. After the traffic is removed from the primary link, the local link is shut down. The local laser is delayed. The master sends the traffic from the master, and the switch internally switches the aggregation group through the software. After the switchover is complete, the original aggregation group becomes the master, and then the traffic is sent out from the standby link. The upstream traffic does not lose packets, and finally the local laser is turned off and the opposite laser is turned off. As shown in Figure 12, when the peer laser is turned off, the peer laser is turned off and the traffic is still sent from the primary link. The aggregation group is notified inside the switch to perform the active/standby switchover. After the original backup link becomes the new primary link, traffic is switched over to ensure that the downstream traffic does not drop packets. Finally, the opposite end laser is turned off and the local laser is turned off. Both ports are down.
  • the hardware module includes two routers.
  • the routers are connected by two pairs of fibers.
  • the active and standby routes are configured to perform active/standby protection, as shown in Figure 10.
  • the router is configured with the active/standby relationship. After the traffic is removed from the primary link, the local link is shut down, and the local laser is delayed. The main link status remains dominant. Let the traffic still be sent from the master, and the router internally performs the active/standby switchover through the software. After the switch is completed, the original route becomes the master, and then the traffic is sent out from the standby link. The traffic does not drop, and finally the local laser is turned off and the opposite laser is turned off.
  • the method of not dropping packets in the downlink is as shown in Figure 12.
  • the peer laser is turned off, the backlight of the peer laser is turned off, so that the traffic is still sent from the primary link, and the router is notified of the route to perform the active/standby switchover. After the original backup link becomes the new primary link, traffic is switched over to ensure that the downstream traffic does not drop packets. Finally, the opposite end laser is turned off and the local laser is turned off, so that both ports are down.
  • the hardware module includes two routers.
  • the routers are connected by two pairs of optical fibers.
  • the tunnel HSB is configured to perform active/standby protection, as shown in Figure 10.
  • the HSB of the tunnel is configured to form an active/standby relationship. After the traffic is removed from the primary link, the local link is shut down. The local laser is delayed. The main link of the HSB is still maintained. The master, the traffic is still sent from the master, and the router internally performs the HSB switching of the tunnel through the software. After the handover is completed, that is, the backup link of the original tunnel HSB becomes the primary link, and then the traffic is sent again from the standby link. Go out, so that the upstream traffic does not lose packets, and finally turn off the local laser and the opposite laser to receive light. The method of not dropping packets on the downlink is as shown in Figure 12.
  • the internal aggregation switch is configured to perform the active/standby switchover. After the original standby link becomes the new primary link, traffic is switched over to ensure that the downstream traffic does not drop packets. Finally, the opposite end laser is turned off and the local laser is turned off, so that both ports are down.
  • This embodiment provides a process for switching between the active and standby links in different scenarios.
  • the method of turning off the local end or the opposite end laser after the completion of the switching between the active and standby links can ensure the original primary link.
  • the traffic does not drop packets to the peer or the local end.
  • the traffic is not lost during the active/standby link switching.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the storage medium is further arranged to store program code for performing the following steps:
  • the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM).
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • modules or steps of the embodiments of the present invention can be implemented by a general computing device, which can be concentrated on a single computing device or distributed in multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from The steps shown or described are performed sequentially, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated into a single integrated circuit module. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
  • the second data before the second data is sent through the second link, it is determined that the first data is not received from the first link within the first predetermined time, and then the second data is stopped by using the first link, which can be guaranteed.
  • the data on the first link Before the data is transmitted by using the second link, the data on the first link is received without packet loss, which solves the problem that data packet loss occurs during link switching in the related art, thereby achieving active/standby link switching. The technical effect of the complete transmission of data in the process.

Landscapes

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

Abstract

A data transmission method and device. The data transmission method comprises: determining, upon transmitting second data to a first network element by a first link, that first data transmitted by the first network element has not been received from the first link within a first preset time; transmitting the second data by a second link; ceasing to transmit the second data by the first link after the second data is transmitted by the second link.

Description

一种数据传输方法及装置Data transmission method and device 技术领域Technical field
本文涉及但不限于通信领域,尤其涉及一种数据传输方法及装置。This document relates to, but is not limited to, the field of communications, and in particular, to a data transmission method and apparatus.
背景技术Background technique
在目前的IP(Internet Protocol,网际协议)网络中,流量(即数据)都是以封装在IP报文头的数据包的格式在网络中传输。为了保障流量传输的可靠性,所有运营商网络和企业网络中,基本上都部署了主备链路保护。通过主备链路的保护,基本可以保证流量的可靠传输。但是,当运营商和企业有主备割接需求或测试主备切换时,会发生数据丢包。相关技术中,如果是通过拔光纤割接切换主备,光纤在物理层面上断开切换是无法保证流量不丢包的。在网络的流量割接到备链路上时,大多数运营商和企业都希望上下行流量都不丢包。In the current IP (Internet Protocol) network, traffic (that is, data) is transmitted in the network in the format of a packet encapsulated in an IP packet header. In order to ensure the reliability of traffic transmission, both the carrier network and the enterprise network basically have active and standby link protection. Through the protection of the active and standby links, the reliable transmission of traffic can be basically guaranteed. However, when carriers and enterprises have active/standby cutover requirements or test active/standby switchover, data loss occurs. In the related art, if the active/standby switchover is performed by removing the optical fiber cutover, the optical fiber is disconnected at the physical level, and the traffic cannot be guaranteed to be lost. When the traffic of the network is cut off to the backup link, most operators and enterprises hope that the uplink and downlink traffic will not be lost.
针对相关技术中链路切换过程中会产生数据丢包的问题,目前尚未提出有效的解决方案。In view of the problem that data packet loss occurs in the link switching process in the related art, an effective solution has not been proposed yet.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供一种数据传输方法及装置,可以解决相关技术中链路切换过程中会产生数据丢包的问题。The embodiment of the invention provides a data transmission method and device, which can solve the problem that data packet loss occurs during the link switching process in the related art.
本发明实施例采用如下技术方案。The embodiments of the present invention adopt the following technical solutions.
一种数据传输方法,包括:A data transmission method includes:
当利用第一链路向第一网元发送第二数据时,确定第一预定时间内未从第一链路上接收到所述第一网元发送的第一数据When the second data is sent to the first network element by using the first link, determining that the first data sent by the first network element is not received from the first link within the first predetermined time
利用第二链路发送所述第二数据; Transmitting the second data by using a second link;
在利用所述第二链路发送所述第二数据后,停止利用所述第一链路发送所述第二数据。After transmitting the second data by using the second link, stopping sending the second data by using the first link.
可选地,所述停止利用所述第一链路发送所述第二数据包括:Optionally, the stopping sending the second data by using the first link includes:
关闭所述第一链路的用于发送所述第二数据的激光器。Turning off the laser of the first link for transmitting the second data.
可选地,在所述确定第一预定时间内未从所述第一链路上接收到所述第一网元发送的所述第一数据之后,还包括:Optionally, after the determining, by the first predetermined time, that the first data that is sent by the first network element is not received from the first link, the method further includes:
关闭所述第一链路的用于接收所述第一数据的激光器。Turning off the laser of the first link for receiving the first data.
一种数据传输方法,包括:A data transmission method includes:
当利用第一链路向第二网元发送第一数据时,确定需要利用第二链路向所述第二网元发送所述第一数据;When the first data is sent to the second network element by using the first link, determining that the first data needs to be sent to the second network element by using the second link;
利用所述第二链路向所述第二网元发送所述第一数据;Transmitting, by the second link, the first data to the second network element;
在利用所述第二链路发送所述第一数据后,停止利用所述第一链路发送所述第一数据。After transmitting the first data by using the second link, stopping sending the first data by using the first link.
可选地,所述停止利用所述第一链路发送所述第一数据包括:Optionally, the stopping sending the first data by using the first link includes:
关闭所述第一链路的用于发送所述第一数据的激光器。Turning off the laser of the first link for transmitting the first data.
可选地,当利用所述第一链路接收所述第二网元发送的第二数据时,在所述利用所述第二链路向所述第二网元发送所述第一数据之后,还包括:Optionally, when the second data sent by the second network element is received by using the first link, after the sending, by using the second link, the first data to the second network element, ,Also includes:
确定第二预定时间内未从所述第一链路上接收到所述第二网元发送的所述第二数据;Determining that the second data sent by the second network element is not received from the first link within a second predetermined time;
停止利用所述第一链路接收所述第二网元发送的所述第二数据。Stopping, by using the first link, the second data sent by the second network element.
可选地,所述停止利用所述第一链路接收所述第二网元发送的所述第二数据包括:Optionally, the stopping, by using the first link, the second data that is sent by the second network element, includes:
关闭所述第一链路的用于接收第二网元发送的所述第二数据的激光器。Turning off the laser of the first link for receiving the second data sent by the second network element.
一种数据传输装置,包括: A data transmission device comprising:
第一确定模块,设置成当利用第一链路向第一网元发送第二数据时,确定第一预定时间内未从第一链路上接收到第一网元发送的第一数据;The first determining module is configured to: when the first data is sent to the first network element by using the first link, determine that the first data that is sent by the first network element is not received from the first link in the first predetermined time;
第一发送模块,设置成利用第二链路发送所述第二数据;a first sending module, configured to send the second data by using a second link;
第一停止模块,设置成在所述第一发送模块利用所述第二链路发送所述第二数据后,停止利用所述第一链路发送所述第二数据。The first stopping module is configured to stop sending the second data by using the first link after the first sending module sends the second data by using the second link.
可选地,所述第一停止模块包括:Optionally, the first stopping module includes:
第一关闭单元,设置成关闭所述第一链路的用于发送所述第二数据的激光器。a first shut down unit configured to turn off the laser of the first link for transmitting the second data.
可选地,所述装置还包括:Optionally, the device further includes:
关闭模块,设置成在所述第一确定模块确定第一预定时间内未从所述第一链路上接收到所述第一网元发送的所述第一数据之后,关闭所述第一链路的用于接收所述第一数据的激光器。And closing the module, configured to close the first chain after the first determining module determines that the first data sent by the first network element is not received from the first link within a first predetermined time A laser for receiving the first data.
一种数据传输装置,包括:A data transmission device comprising:
第二确定模块,设置成当利用第一链路向第二网元发送第一数据时,确定需要利用第二链路向所述第二网元发送所述第一数据;a second determining module, configured to: when the first data is sent to the second network element by using the first link, determine that the first data needs to be sent to the second network element by using the second link;
第二发送模块,设置成利用所述第二链路向所述第二网元发送所述第一数据;a second sending module, configured to send the first data to the second network element by using the second link;
第二停止模块,设置成在所述第二发送模块利用所述第二链路发送所述第一数据后,停止利用所述第一链路发送所述第一数据。The second stopping module is configured to stop sending the first data by using the first link after the second sending module sends the first data by using the second link.
可选地,所述第二停止模块包括:Optionally, the second stopping module includes:
第二关闭单元,设置成关闭所述第一链路的用于发送所述第一数据的激光器。a second closing unit configured to turn off the laser of the first link for transmitting the first data.
可选地,所述装置还包括:Optionally, the device further includes:
第三确定模块,设置成当利用所述第一链路接收所述第二网元发送的第二数据时,在所述第二发送模块利用所述第二链路向所述第二网元发送所述第一数据之后,确定第二预定时间内未从所述第一链路上接收到第二网元发 送的第二数据;a third determining module, configured to: when the second data sent by the second network element is received by using the first link, use, by the second sending module, the second link to the second network element After transmitting the first data, determining that the second network element is not received from the first link within the second predetermined time The second data sent;
第三停止模块,设置成停止利用所述第一链路接收所述第二网元发送的所述第二数据。And a third stopping module, configured to stop receiving, by using the first link, the second data sent by the second network element.
可选地,所述第三停止模块包括:Optionally, the third stopping module includes:
第三关闭单元,设置成关闭所述第一链路的用于接收所述第二数据的激光器。And a third closing unit configured to turn off the laser of the first link for receiving the second data.
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述方法。A computer readable storage medium storing computer executable instructions for performing the above method.
本发明至少一个实施例在通过第二链路发送第二数据之前,确定在第一预定时间内未从第一链路上接收到第一数据,进而停止利用第一链路发送第二数据,可以保证在利用第二链路发送数据之前,第一链路上的数据被不丢包的接收,解决了相关技术中链路切换过程中会产生数据丢包的问题,进而达到了主备链路切换过程中数据完整传输的技术效果。At least one embodiment of the present invention determines that the first data is not received from the first link within the first predetermined time before transmitting the second data through the second link, thereby stopping the transmission of the second data by using the first link. It can be ensured that the data on the first link is received without packet loss before the data is sent by using the second link, which solves the problem that data packet loss occurs in the link switching process in the related art, thereby achieving the active/standby chain. The technical effect of complete data transmission during the road switching process.
在阅读并理解了附图和详细描述后,可以明白其它方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1是根据本发明实施例的数据传输方法的流程图一;1 is a flow chart 1 of a data transmission method according to an embodiment of the present invention;
图2是根据本发明实施例的数据传输方法的流程图二;2 is a second flowchart of a data transmission method according to an embodiment of the present invention;
图3是根据本发明实施例的数据传输装置的结构框图一;3 is a block diagram 1 of a structure of a data transmission apparatus according to an embodiment of the present invention;
图4是根据本发明实施例数据传输装置中第一停止模块36的结构框图;4 is a block diagram showing the structure of a first stop module 36 in a data transmission apparatus according to an embodiment of the present invention;
图5是根据本发明实施例的数据传输装置的可选结构框图一;FIG. 5 is a block diagram 1 of an optional structure of a data transmission apparatus according to an embodiment of the present invention; FIG.
图6是根据本发明实施例的数据传输装置的结构框图二;6 is a structural block diagram 2 of a data transmission apparatus according to an embodiment of the present invention;
图7是根据本发明实施例的数据传输装置中第二停止模块66的结构框图;FIG. 7 is a structural block diagram of a second stop module 66 in a data transmission apparatus according to an embodiment of the present invention; FIG.
图8是根据本发明实施例的数据传输装置的可选结构框图二;FIG. 8 is a block diagram 2 of an optional structure of a data transmission apparatus according to an embodiment of the present invention; FIG.
图9是根据本发明实施例的数据传输装置中第三停止模块84的结构框 图;FIG. 9 is a structural block diagram of a third stop module 84 in a data transmission device according to an embodiment of the present invention. Figure
图10是根据本发明实施例的主备链路保护场景图;FIG. 10 is a schematic diagram of a primary and backup link protection scenario according to an embodiment of the present invention; FIG.
图11是根据本发明实施例的本端发光由主链路切换到备链路的方法的流程图;11 is a flowchart of a method for switching local end illumination from a primary link to a backup link according to an embodiment of the present invention;
图12是根据本发明实施例的对端发光由主链路切换到备链路的方法的流程图。FIG. 12 is a flowchart of a method for switching a peer end illumination from a primary link to a backup link according to an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本申请的说明书和权利要求书及上述附图中的用于“第一”、“第二”等用于区别类似的对象,而不是用于描述特定的顺序或先后次序。It should be noted that the terms "first", "second" and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not intended to describe a specific order or order.
在本实施例中提供了一种数据传输方法,图1是根据本发明实施例的数据传输方法的流程图一,如图1所示,该流程包括如下步骤:A data transmission method is provided in this embodiment. FIG. 1 is a flowchart 1 of a data transmission method according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps:
步骤S102,确定第一预定时间内未从第一链路上接收到第一网元发送的第一数据,其中,第一链路还用于向第一网元发送第二数据(即目前在利用第一链路向第一网元发送第二数据);Step S102, determining that the first data that is sent by the first network element is not received from the first link in the first predetermined time, where the first link is further used to send the second data to the first network element (ie, currently Transmitting the second data to the first network element by using the first link);
步骤S104,利用第二链路发送第二数据;Step S104: Send the second data by using the second link.
步骤S106,在利用第二链路发送第二数据后,停止利用第一链路发送第二数据。Step S106, after transmitting the second data by using the second link, stopping sending the second data by using the first link.
上述步骤中,确定第一预定时间内未从第一链路上接收到第一网元发送的第一数据,其中,第一链路还用于向第一网元发送第二数据,即说明了当利用第一链路向第一网元发送第二数据时,如果在第一链路上检测不到第一网元发送的第一数据,则第一链路可能存在问题,需要采用其他的链路与第一网元进行数据传输,即此时需要切换链路,因此,可以利用第二链路发送第二数据;在利用第二链路发送第二数据后,停止利用第一链路发送第二数据,这样可以保证在链路切换完成后,在第一链路上发送的数据被接收完毕 后,再关闭第一链路上的数据发送。从而解决了相关技术中链路切换过程中会产生数据丢包的问题,进而达到了主备链路切换过程中数据完整传输的技术效果。在本实施例中,第一链路可以为主用链路,第二链路可以为备用链路,也可以是第一链路为备用链路,第二链路为主用链路。如果存在不止一条备用链路,第一链路和第二链路也可以都为备用链路。In the above step, it is determined that the first data that is sent by the first network element is not received from the first link in the first predetermined time, where the first link is further used to send the second data to the first network element, that is, the description When the first data is sent to the first network element by using the first link, if the first data sent by the first network element is not detected on the first link, the first link may have a problem, and other The link is transmitted with the first network element, that is, the link needs to be switched at this time. Therefore, the second link can be used to send the second data; after the second link is sent by using the second link, the first link is stopped. The second data is sent, so that after the link switching is completed, the data sent on the first link is received. After that, the data transmission on the first link is closed. Therefore, the problem that data packet loss occurs during the link switching process in the related art is solved, thereby achieving the technical effect of complete data transmission in the process of switching between the active and standby links. In this embodiment, the first link may be the primary link, the second link may be the standby link, or the first link may be the standby link, and the second link may be the primary link. If there is more than one alternate link, both the first link and the second link may also be alternate links.
在一个可选实施例中,步骤S106中停止利用第一链路发送第二数据可以包括:关闭第一链路的用于发送第二数据的激光器。在本可选实施例中,利用激光器进行数据的发送,可以为关闭激光器的发光功能(即,激光器可以同时具备收光功能和发光功能),也可以为关闭相应的发光激光器(即,激光器为仅具备收光功能的激光器,或者为仅具备发光功能的激光器)。In an optional embodiment, stopping sending the second data by using the first link in step S106 may include: turning off the laser for transmitting the second data of the first link. In this alternative embodiment, the use of a laser for data transmission may be to turn off the illumination function of the laser (ie, the laser may have both a light collection function and a light emission function), or may turn off the corresponding illumination laser (ie, the laser is Only a laser with a light-receiving function or a laser with only a light-emitting function).
在一个可选的实施例中,步骤S102之后,上述数据传输方法还可以包括:关闭第一链路的用于接收第一数据的激光器。在确定第一预定时间内未从第一链路上接收到第一网元发送的第一数据时,可以获知在第一预定时间内第一网元未利用第一链路进行数据发送,从而将第一链路的用于接收数据的激光器关闭,可以保障在第一链路上发送的数据已经被全部接收,不会产生数据丢包。在本可选实施例中,利用激光器进行数据的接收,可以为关闭激光器的收光功能,也可以为关闭相应的收光激光器。In an optional embodiment, after the step S102, the data transmission method may further include: turning off the laser of the first link for receiving the first data. When it is determined that the first data sent by the first network element is not received from the first link in the first predetermined time, it may be learned that the first network element does not use the first link for data transmission in the first predetermined time, thereby Turning off the laser for receiving data of the first link can ensure that the data sent on the first link has been completely received, and no data packet loss occurs. In this alternative embodiment, the data is received by the laser, which may be to turn off the light collecting function of the laser, or to turn off the corresponding light receiving laser.
本发明实施例中还提供了一种数据传输方法,图2是根据本发明实施例的数据传输方法的流程图二,如图2所示,该方法包括:A data transmission method is also provided in the embodiment of the present invention. FIG. 2 is a second flowchart of a data transmission method according to an embodiment of the present invention. As shown in FIG. 2, the method includes:
步骤S202,在利用第一链路向第二网元发送第一数据时,确定需要利用第二链路向第二网元发送第一数据;Step S202, when the first data is sent to the second network element by using the first link, determining that the first data needs to be sent to the second network element by using the second link;
步骤S204,利用第二链路向第二网元发送第一数据;Step S204: Send the first data to the second network element by using the second link.
步骤S206,在利用第二链路发送第一数据后,停止利用第一链路发送第一数据。Step S206, after transmitting the first data by using the second link, stopping sending the first data by using the first link.
通过上述步骤,在利用第一链路向第二网元发送第一数据时,确定需要利用第二链路向第二网元发送第一数据,即说明了确定需要进行链路切换,原来利用第一链路发送第一数据,现在利用第二链路发送第一数据;利用第二链路向第二网元发送第一数据,即说明了链路切换成功;在利用第二链路 发送第一数据后,停止利用第一链路发送第一数据,即说明了在链路切换完成后,再停止第一链路的第一数据的发送,保证第一链路上的数据发送在切换过程中不受影响,解决了相关技术中链路切换过程中会产生数据丢包的问题,进而达到了主备链路切换过程中数据完整传输的技术效果。在本实施例中,第一链路可以为主用链路,第二链路可以为备用链路,也可以是第一链路为备用链路,第二链路为主用链路。如果存在不止一条备用链路,第一链路和第二链路也可以都为备用链路。When the first data is sent to the second network element by using the first link, it is determined that the first data needs to be sent to the second network element by using the second link, that is, it is determined that the link switching needs to be performed, and the original use is performed. Transmitting the first data by using the first link, and transmitting the first data by using the second link; sending the first data to the second network element by using the second link, indicating that the link switching succeeds; After the first data is sent, the first data is stopped by using the first link, that is, after the link switching is completed, the sending of the first data of the first link is stopped, and the data transmission on the first link is ensured. During the handover process, the problem of data packet loss during link switching in the related art is solved, and the technical effect of complete data transmission during the active/standby link switching process is achieved. In this embodiment, the first link may be the primary link, the second link may be the standby link, or the first link may be the standby link, and the second link may be the primary link. If there is more than one alternate link, both the first link and the second link may also be alternate links.
在一个可选实施例中,步骤S206中停止利用第一链路发送第一数据可以包括:关闭第一链路的用于发送第一数据的激光器。在本可选实施例中,利用激光器进行数据的发送,可以为关闭激光器的发光功能,也可以为关闭相应的发光激光器。In an optional embodiment, stopping sending the first data by using the first link in step S206 may include: turning off a laser for transmitting the first data of the first link. In this alternative embodiment, the data is transmitted by using a laser, which may be to turn off the illumination function of the laser, or to turn off the corresponding illumination laser.
在一个可选实施例中,当利用第一链路接收第二网元发送的第二数据时,在步骤S204之后,上述数据发送方法还可以包括:确定第二预定时间内未从第一链路上接收到第二网元发送的第二数据;停止利用第一链路接收第二网元发送的第二数据。在本可选实施例中,在第二预定时间内未从第一链路上接收到第二数据,即说明第一链路上的数据已经全部接收完毕,可以保证第一链路上的数据全部接收完毕,不会丢包。In an optional embodiment, when the second data sent by the second network element is received by using the first link, after the step S204, the data sending method may further include: determining that the second predetermined time is not from the first chain. The second data sent by the second network element is received on the road; and the second data sent by the second network element is stopped by using the first link. In this optional embodiment, the second data is not received from the first link within the second predetermined time, that is, the data on the first link has been completely received, and the data on the first link can be guaranteed. After all the reception is completed, no packet will be lost.
在一个可选实施例中,上述可选实施例中停止利用第一链路接收第二网元发送的第二数据可以包括:关闭第一链路的用于接收第二数据的激光器。在本可选实施例中,利用激光器进行数据的接收,可以为关闭激光器的收光功能,也可以为关闭相应的收光激光器。In an optional embodiment, stopping the using the first link to receive the second data sent by the second network element in the foregoing optional embodiment may include: turning off the laser of the first link for receiving the second data. In this alternative embodiment, the data is received by the laser, which may be to turn off the light collecting function of the laser, or to turn off the corresponding light receiving laser.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic). The discs and the optical discs include a plurality of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method described in the embodiments of the present invention.
在本实施例中还提供了数据传输装置,本实施例中数据传输装置用于实 现上述实施例及可选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置可以通过软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In the embodiment, a data transmission device is also provided. In this embodiment, the data transmission device is used for real The above embodiments and optional embodiments have been described and will not be described again. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments can be implemented by software, hardware, or a combination of software and hardware, is also possible and conceived.
图3是根据本发明实施例的数据传输装置的结构框图一,如图3所示,该装置包括第一确定模块32、第一发送模块34和第一停止模块36,下面对该装置进行说明。3 is a block diagram showing the structure of a data transmission device according to an embodiment of the present invention. As shown in FIG. 3, the device includes a first determining module 32, a first transmitting module 34, and a first stopping module 36. Description.
第一确定模块32,设置成确定第一预定时间内未从第一链路上接收到第一网元发送的第一数据,其中,第一链路还用于向第一网元发送第二数据(即,目前在利用第一链路向第一网元发送第二数据);第一发送模块34,连接于上述第一确定模块32,设置成利用第二链路发送第二数据;第一停止模块36,连接于上述第一发送模块34,设置成在所述第一发送模块34利用第二链路发送第二数据后,停止利用第一链路发送第二数据。The first determining module 32 is configured to determine that the first data that is sent by the first network element is not received from the first link in the first predetermined time, where the first link is further used to send the second data to the first network element. Data (ie, currently transmitting the second data to the first network element by using the first link); the first sending module 34 is connected to the first determining module 32, and configured to send the second data by using the second link; A stop module 36 is connected to the first sending module 34, and is configured to stop transmitting the second data by using the first link after the first sending module 34 sends the second data by using the second link.
图4是根据本发明实施例数据传输装置中第一停止模块36的结构框图,如图4所示,第一停止模块36包括:第一关闭单元42,下面对第一停止模块26进行说明。4 is a structural block diagram of a first stop module 36 in a data transmission device according to an embodiment of the present invention. As shown in FIG. 4, the first stop module 36 includes: a first shutdown unit 42, and the first stop module 26 is described below. .
第一关闭单元42,设置成关闭第一链路的用于发送第二数据的激光器。The first closing unit 42 is arranged to turn off the laser of the first link for transmitting the second data.
图5是根据本发明实施例的数据传输装置的可选结构框图一,如图5所示,该装置除包括图3所示的所有模块外,还包括关闭模块52,下面对该装置进行说明。FIG. 5 is a block diagram showing an optional structure of a data transmission apparatus according to an embodiment of the present invention. As shown in FIG. 5, the apparatus includes a shutdown module 52 in addition to all the modules shown in FIG. Description.
关闭模块52,连接于上述第一确定模块32,设置成在确定第一预定时间内未从所述第一链路上接收到所述第一网元发送的所述第一数据之后,关闭第一链路的用于接收第一数据的激光器。The closing module 52 is connected to the first determining module 32, and is configured to close the first data after the first network element is not received from the first link after determining that the first predetermined time is determined. A laser of a link for receiving first data.
本发明实施例还提供了一种数据传输装置,图6是根据本发明实施例的数据传输装置的结构框图二,如图6所示,该装置包括:第二确定模块62、第二发送模块64和第二停止模块66,下面对该装置进行说明。The embodiment of the present invention further provides a data transmission device. FIG. 6 is a structural block diagram 2 of a data transmission device according to an embodiment of the present invention. As shown in FIG. 6, the device includes: a second determining module 62 and a second sending module. 64 and the second stop module 66, the device will be described below.
第二确定模块62,设置成在利用第一链路向第二网元发送第一数据时,确定需要利用第二链路向第二网元发送第一数据;第二发送模块64,连接至 上述第二确定模块62,设置成利用第二链路向第二网元发送第一数据;第二停止模块66,连接至上述第二发送模块64,设置成在所述第二发送模块64利用第二链路发送第一数据后,停止利用第一链路发送第一数据。The second determining module 62 is configured to: when the first data is sent to the second network element by using the first link, determine that the first data needs to be sent to the second network element by using the second link; and the second sending module 64 is connected to The second determining module 62 is configured to send the first data to the second network element by using the second link, and the second stopping module 66 is connected to the second sending module 64, and configured to be utilized by the second sending module 64. After transmitting the first data, the second link stops transmitting the first data by using the first link.
图7是根据本发明实施例的数据传输装置中第二停止模块66的结构框图,如图7所示,第二停止模块66包括:第二关闭单元72,下面对该装置进行说明。FIG. 7 is a structural block diagram of a second stop module 66 in a data transmission apparatus according to an embodiment of the present invention. As shown in FIG. 7, the second stop module 66 includes a second shutdown unit 72, which will be described below.
第二关闭单元72,设置成关闭第一链路的用于发送第一数据的激光器。The second closing unit 72 is configured to turn off the laser for transmitting the first data of the first link.
图8是根据本发明实施例的数据传输装置的可选结构框图二,如图8所示,该装置除包括图6所示的所有模块外,还包括第三确定模块82和第三停止模块84,下面对该装置进行说明。8 is a block diagram 2 of an optional structure of a data transmission apparatus according to an embodiment of the present invention. As shown in FIG. 8, the apparatus includes a third determination module 82 and a third stop module in addition to all the modules shown in FIG. 84. The device will be described below.
第三确定模块82,连接于上述第二发送模块64,设置成当利用第一链路接收第二网元发送的第二数据时,在利用所述第二链路向所述第二网元发送所述第一数据之后,确定第二预定时间内未从第一链路上接收到第二网元发送的第二数据;第三停止模块84,连接于上述第三确定模块82,设置成停止利用第一链路接收第二网元发送的第二数据。The third determining module 82 is connected to the second sending module 64, and is configured to use the second link to the second network element when receiving the second data sent by the second network element by using the first link. After the first data is sent, it is determined that the second data sent by the second network element is not received from the first link in the second predetermined time; the third stopping module 84 is connected to the third determining module 82, and configured to Stop receiving the second data sent by the second network element by using the first link.
图9是根据本发明实施例的数据传输装置中第三停止模块84的结构框图,如图9所示,第三停止模块84包括第三关闭单元92,下面对该第三停止模块84进行说明。FIG. 9 is a structural block diagram of a third stop module 84 in a data transmission apparatus according to an embodiment of the present invention. As shown in FIG. 9, the third stop module 84 includes a third shutdown unit 92, and the third stop module 84 is performed below. Description.
第三关闭单元92,设置成关闭第一链路的用于接收第二数据的激光器。The third closing unit 92 is configured to turn off the laser of the first link for receiving the second data.
下面以上述第一链路为主链路,第二链路为备链路为例,对本发明进行说明:The following describes the present invention by taking the first link as the primary link and the second link as the backup link as an example:
本发明实施例采用的技术方案大体如下:The technical solutions adopted by the embodiments of the present invention are generally as follows:
1、shutdown(关闭)流量主链路(即上述实施例中的第一链路)端口时,通过延迟关闭激光器发光,而流量仍从主链路发出去,在这段延迟时间内通过shutdown命令触发主备切换,让流量切换到备链路(即上述实施例中的第二链路)后,再将本端(即上述实施例中第一网元)激光器发光关闭,从而保证本端上行(即从本端到对端,从第一网元到第二网元)流量零丢包,其中,上述本端(即第一网元)可以是路由器,也可以是交换机。备链路激光 器的收光及发光在进行主备链路切换时始终保持打开状态,从而保证主备链路切换过程中不影响数据发送和接收。1. When shutting down the port of the traffic main link (that is, the first link in the above embodiment), the laser is turned off by delay, and the traffic is still sent from the primary link. The shutdown command is passed during the delay time. After the active/standby switchover is triggered, the traffic is switched to the backup link (that is, the second link in the foregoing embodiment), and then the local end (that is, the first network element in the foregoing embodiment) is turned off by the laser, thereby ensuring that the local end is uplinked. The traffic of the local end (that is, the first network element) may be a router or a switch. Backup link laser The receiving and illuminating of the device is always on when the active/standby link is switched, so that the data transmission and reception are not affected during the switching between the active and standby links.
2、shutdown流量主链路端口后,待本端激光器发光关闭后,对端(即上述实施例中的第二网元)收不到光后,先延迟通知对端激光器发光关闭,保证对端下行流量仍能够从主链路上发出来,在这段延迟时间内通知主备切换,让流量切换到备链路后,再将激光器发光关闭,从而保证对端下行流量零丢包,其中,上述对端(即第二网元)可以是路由器,也可以是交换机。从而实现了双向(上行和下行)流量不丢包。2. After the primary port of the traffic is shut down, after the local laser is turned off, the peer (that is, the second network element in the above embodiment) does not receive the light, and then delays the notification of the end laser to turn off the light to ensure the opposite end. The downlink traffic can still be sent from the primary link. The active/standby switchover is notified during the delay period. After the traffic is switched to the backup link, the laser is turned off, thereby ensuring zero packet loss on the downstream downlink traffic. The peer end (ie, the second network element) may be a router or a switch. This achieves two-way (upstream and downstream) traffic without packet loss.
图10是根据本发明实施例的主备链路保护场景图,如图10所示,双向流量通过两台交换机或路由器,两台路由器(也可以是两台交换机)之间通过两对光纤链接(每对光纤分别对应于上述的第一链路和第二链路),每对光纤有两根光纤,一根发,一根收,在物理层激光器通过本地发光纤把光从本端发到对端,而对端也是通过激光器把光从本地发光光纤发到对端,对端收到流量后再转发出去。FIG. 10 is a schematic diagram of a primary and backup link protection scenario according to an embodiment of the present invention. As shown in FIG. 10, two-way traffic passes through two switches or routers, and two routers (or two switches) pass two pairs of fiber links. (Each pair of fibers respectively correspond to the first link and the second link described above), each pair of fibers has two fibers, one for each, one for receiving, and the physical layer laser sends light from the local end through the local transmitting fiber. To the opposite end, the opposite end also sends light from the local illuminating fiber to the opposite end through the laser, and the opposite end receives the traffic and then forwards it out.
图11是根据本发明实施例的本端发光由主链路切换到备链路的方法的流程图,如图11所示,该方法包括以下步骤:FIG. 11 is a flowchart of a method for switching local end illumination from a primary link to a backup link according to an embodiment of the present invention. As shown in FIG. 11, the method includes the following steps:
步骤S1102,当shutdown本端主链路时,在交换机或路由器上通过延迟下发shutdown命令给物理端口,让端口的激光器发光和收光都暂缓关闭,此时在交换机或路由器内部将流量的路由或者出接口切换到备链路的出口,将流量引到备链路上来,从而实现上行流量不丢包;In step S1102, when the local link is shut down, the shutdown command is sent to the physical port on the switch or the router, and the laser light and the light collection of the port are temporarily suspended. At this time, the traffic is routed inside the switch or the router. Or the outbound interface is switched to the egress of the standby link, and the traffic is directed to the backup link.
步骤S1104,在流量引到备链路上后,才将激光器发光关闭,同时主链路的收光仍保持收光状态,不让端口的收关闭,保证可以从对端收到流量;In step S1104, after the traffic is directed to the backup link, the laser light is turned off, and the light of the main link remains in the light-receiving state, so that the port is not closed, so that the traffic can be received from the opposite end;
步骤S1106,在预定时间内对端都没有收到光后,对端激光器收光关闭。In step S1106, after the opposite end receives no light for a predetermined time, the opposite end laser is turned off.
在实际操作过程中,由于本端激光器发光端与对端激光器收光端是通过一根光纤连接的,所以,在本端激光器发光关闭后,对端激光器能够检测到光纤链路中没有光,从而可以关闭对端激光器收光。In the actual operation, since the light emitting end of the local laser is connected to the light receiving end of the opposite end laser through an optical fiber, the opposite end laser can detect that there is no light in the optical fiber link after the local laser is turned off. Thereby, the opposite end laser can be turned off.
图12是根据本发明实施例的对端发光由主链路切换到备链路的方法的流程图,如图12所示,该方法包括如下步骤: FIG. 12 is a flowchart of a method for switching a peer end illumination from a primary link to a backup link according to an embodiment of the present invention. As shown in FIG. 12, the method includes the following steps:
步骤S1202,当本端激光器发光关闭,对端不再收到光后,对端也延迟关闭激光器发光,于是下行流量仍然可以从主链路发到本端来,同时通知交换机或路由器进行主备切换;In step S1202, when the local laser is turned off and the opposite end no longer receives the light, the opposite end also delays turning off the laser illumination, so that the downlink traffic can still be sent from the primary link to the local end, and the switch or the router is notified to perform the active/standby. Switch
步骤S1204,当流量完全切换到备链路后再关闭对端激光器发光;Step S1204: After the traffic is completely switched to the standby link, the opposite end laser is turned off;
步骤S1206,关闭本端激光器收光;Step S1206, turning off the local laser to receive light;
通过步骤S1202至步骤S1206就保证了下行流量也实现了零丢包。Through steps S1202 to S1206, it is ensured that the downlink traffic also achieves zero packet loss.
在图11和图12所示的步骤进行完后,双向激光器都关闭,接着将两边端口完全关闭(down)掉。After the steps shown in Figures 11 and 12 are completed, the two-way lasers are turned off, and then the two ports are completely turned off.
采用本发明实施例中步骤S1102至步骤S1106及步骤S1202至步骤S1206所述的方法,不仅能实现shutdown本端端口的上行流量不丢包,也可以实现对端的下行流量也不丢包。The method described in the step S1102 to the step S1106 and the step S1202 to the step S1206 in the embodiment of the present invention can not only reduce the uplink traffic of the local port but also reduce the downlink traffic of the peer end.
上述实施例中图11和图12给出了两大应用场景的通用实施方式,即交换机和路由器两种场景,而交换机和路由器的主备链路之间的保护又可分为聚合组主备,路由主备,HSB(hot-standby,隧道热备份)等场景的保护。下面结合附图对技术方案的实施作进一步的详细描述。Figure 11 and Figure 12 show the common implementation of the two application scenarios, namely, the switch and the router. The protection between the active and standby links of the switch and the router can be divided into active and standby. Protection of scenarios such as routing active and standby, HSB (hot-standby, tunnel hot backup). The implementation of the technical solution will be further described in detail below with reference to the accompanying drawings.
场景1:scene 1:
硬件模块部分包括:两台交换机,交换机之间用两对光纤连接,配置聚合组进行主备保护,如图10所示。The hardware module includes two switches. The switch is connected by two pairs of fibers. The aggregation group is configured to perform active/standby protection, as shown in Figure 10.
流程部分的处理步骤如下:The processing steps in the process section are as follows:
如图11所示,交换机上配好聚合组形成主备关系,确认流量从主链路上走后,shutdown本端链路端口,延迟关闭本端激光器发光,聚合组主链路状态仍保持为主,让流量仍从主发出去,而交换机内部则通过软件进行聚合组切换,切换完成后,也就是原来聚合组的备变为主后,再让流量再从备链路发出去,从而做到上行流量不丢包,最后再关闭本端激光器发光和对端激光器收光。下行不丢包的做法如图12所示,当对端激光器收光关闭后,延迟关闭对端激光器发光,让流量仍从主链路发出去,而在交换机内部通知聚合组进行主备切换,当原来的备链路变为新的主链路后,再让流量切换过来,从而保证下行流量也不丢包。最后关闭对端激光器发光和本端激光器收光,让 两边端口都down掉。As shown in Figure 11, the switch is configured with an aggregation group to form an active/standby relationship. After the traffic is removed from the primary link, the local link is shut down. The local laser is delayed. The master sends the traffic from the master, and the switch internally switches the aggregation group through the software. After the switchover is complete, the original aggregation group becomes the master, and then the traffic is sent out from the standby link. The upstream traffic does not lose packets, and finally the local laser is turned off and the opposite laser is turned off. As shown in Figure 12, when the peer laser is turned off, the peer laser is turned off and the traffic is still sent from the primary link. The aggregation group is notified inside the switch to perform the active/standby switchover. After the original backup link becomes the new primary link, traffic is switched over to ensure that the downstream traffic does not drop packets. Finally, the opposite end laser is turned off and the local laser is turned off. Both ports are down.
场景2:Scene 2:
硬件模块部分包括:两台路由器,路由器之间用两对光纤连接,配置路由主备进行主备保护,如图10所示。The hardware module includes two routers. The routers are connected by two pairs of fibers. The active and standby routes are configured to perform active/standby protection, as shown in Figure 10.
流程部分的处理步骤如下:The processing steps in the process section are as follows:
如图11所示,路由器上配好路由形成主备关系,确认流量从主链路上走后,shutdown本端链路端口,延迟关闭本端激光器发光,路由主链路状态仍保持为主,让流量仍从主发出去,而路由器内部则通过软件进行路由主备切换,切换完成后,也就是原来路由的备变为主后,再让流量再从备链路发出去,从而做到上行流量不丢包,最后再关闭本端激光器发光和对端激光器收光。下行不丢包的做法如图12所示,当对端激光器收光关闭后,延迟关闭对端激光器发光,让流量仍从主链路发出去,而在路由器内部通知路由进行主备切换,当原来的备链路变为新的主链路后,再让流量切换过来,从而保证下行流量也不丢包。最后关闭对端激光器发光和本端激光器收光,让两边端口都down掉。As shown in Figure 11, the router is configured with the active/standby relationship. After the traffic is removed from the primary link, the local link is shut down, and the local laser is delayed. The main link status remains dominant. Let the traffic still be sent from the master, and the router internally performs the active/standby switchover through the software. After the switch is completed, the original route becomes the master, and then the traffic is sent out from the standby link. The traffic does not drop, and finally the local laser is turned off and the opposite laser is turned off. The method of not dropping packets in the downlink is as shown in Figure 12. When the peer laser is turned off, the backlight of the peer laser is turned off, so that the traffic is still sent from the primary link, and the router is notified of the route to perform the active/standby switchover. After the original backup link becomes the new primary link, traffic is switched over to ensure that the downstream traffic does not drop packets. Finally, the opposite end laser is turned off and the local laser is turned off, so that both ports are down.
场景3:Scene 3:
硬件模块部分包括:两台路由器,路由器之间用两对光纤连接,配置隧道HSB进行主备保护,如图10所示。The hardware module includes two routers. The routers are connected by two pairs of optical fibers. The tunnel HSB is configured to perform active/standby protection, as shown in Figure 10.
流程部分的处理步骤如下:The processing steps in the process section are as follows:
如图11所示,路由器上配好隧道HSB形成主备关系,确认流量从主链路上走后,shutdown本端链路端口,延迟关闭本端激光器发光,隧道HSB主链路状态仍保持为主,让流量仍从主发出去,而路由器内部则通过软件进行隧道HSB切换,切换完成后,也就是原来隧道HSB的备链路变为主链路后,再让流量再从备链路发出去,从而做到上行流量不丢包,最后再关闭本端激光器发光和对端激光器收光。下行不丢包的做法如图12所示,当对端激光器收光关闭后,延迟关闭对端激光器发光,让流量仍从主链路发出去,而在路 由器内部通知聚合组进行主备切换,当原来的备链路变为新的主链路后,再让流量切换过来,从而保证下行流量也不丢包。最后关闭对端激光器发光和本端激光器收光,让两边端口都down掉。As shown in Figure 11, the HSB of the tunnel is configured to form an active/standby relationship. After the traffic is removed from the primary link, the local link is shut down. The local laser is delayed. The main link of the HSB is still maintained. The master, the traffic is still sent from the master, and the router internally performs the HSB switching of the tunnel through the software. After the handover is completed, that is, the backup link of the original tunnel HSB becomes the primary link, and then the traffic is sent again from the standby link. Go out, so that the upstream traffic does not lose packets, and finally turn off the local laser and the opposite laser to receive light. The method of not dropping packets on the downlink is as shown in Figure 12. When the peer laser is turned off, the backlight of the peer laser is turned off, so that the traffic is still sent from the main link. The internal aggregation switch is configured to perform the active/standby switchover. After the original standby link becomes the new primary link, traffic is switched over to ensure that the downstream traffic does not drop packets. Finally, the opposite end laser is turned off and the local laser is turned off, so that both ports are down.
本实施例提供了在不同场景中的主备链路切换流程,采用本实施例中的在主备链路切换完成后再关闭本端或者对端激光器发光的方法,可以保证原主链路中的流量不丢包的达到对端或者本端,实现了主备链路切换过程中的流量不丢包。This embodiment provides a process for switching between the active and standby links in different scenarios. In this embodiment, the method of turning off the local end or the opposite end laser after the completion of the switching between the active and standby links can ensure the original primary link. The traffic does not drop packets to the peer or the local end. The traffic is not lost during the active/standby link switching.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present invention also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S1,确定第一预定时间内未从第一链路上接收到第一网元发送的第一数据,其中,第一链路还用于向第一网元发送第二数据;S1, determining that the first data that is sent by the first network element is not received from the first link in the first predetermined time, where the first link is further used to send the second data to the first network element;
S2,利用第二链路发送第二数据;S2. Send the second data by using the second link.
S3,在利用第二链路发送第二数据后,停止利用第一链路发送第二数据。S3. After sending the second data by using the second link, stop sending the second data by using the first link.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:Optionally, the storage medium is further arranged to store program code for performing the following steps:
S1,在利用第一链路向第二网元发送第一数据时,确定需要利用第二链路向第二网元发送第一数据;S1, when the first data is sent to the second network element by using the first link, determining that the first data needs to be sent to the second network element by using the second link;
S2,利用第二链路向第二网元发送第一数据;S2. Send the first data to the second network element by using the second link.
S3,在利用第二链路发送第一数据后,停止利用第一链路发送第一数据。S3. After sending the first data by using the second link, stop sending the first data by using the first link.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in the embodiment, the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM). A variety of media that can store program code, such as a hard disk, a disk, or an optical disk.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。 For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
显然,本领域的技术人员应该明白,上述的本发明实施例的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明实施例不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above modules or steps of the embodiments of the present invention can be implemented by a general computing device, which can be concentrated on a single computing device or distributed in multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from The steps shown or described are performed sequentially, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated into a single integrated circuit module. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
工业实用性Industrial applicability
本发明实施例在通过第二链路发送第二数据之前,确定在第一预定时间内未从第一链路上接收到第一数据,进而停止利用第一链路发送第二数据,可以保证在利用第二链路发送数据之前,第一链路上的数据被不丢包的接收,解决了相关技术中链路切换过程中会产生数据丢包的问题,进而达到了主备链路切换过程中数据完整传输的技术效果。 In the embodiment of the present invention, before the second data is sent through the second link, it is determined that the first data is not received from the first link within the first predetermined time, and then the second data is stopped by using the first link, which can be guaranteed. Before the data is transmitted by using the second link, the data on the first link is received without packet loss, which solves the problem that data packet loss occurs during link switching in the related art, thereby achieving active/standby link switching. The technical effect of the complete transmission of data in the process.

Claims (14)

  1. 一种数据传输方法,包括:A data transmission method includes:
    当利用第一链路向第一网元发送第二数据时,确定第一预定时间内未从第一链路上接收到所述第一网元发送的第一数据When the second data is sent to the first network element by using the first link, determining that the first data sent by the first network element is not received from the first link within the first predetermined time
    利用第二链路发送所述第二数据;Transmitting the second data by using a second link;
    在利用所述第二链路发送所述第二数据后,停止利用所述第一链路发送所述第二数据。After transmitting the second data by using the second link, stopping sending the second data by using the first link.
  2. 根据权利要求1所述的方法,其中,所述停止利用所述第一链路发送所述第二数据包括:The method of claim 1, wherein the stopping the transmitting of the second data using the first link comprises:
    关闭所述第一链路的用于发送所述第二数据的激光器。Turning off the laser of the first link for transmitting the second data.
  3. 根据权利要求1所述的方法,其中,在所述确定第一预定时间内未从所述第一链路上接收到所述第一网元发送的所述第一数据之后,还包括:The method according to claim 1, wherein after the determining, by the first predetermined time, that the first data sent by the first network element is not received from the first link, the method further comprises:
    关闭所述第一链路的用于接收所述第一数据的激光器。Turning off the laser of the first link for receiving the first data.
  4. 一种数据传输方法,包括:A data transmission method includes:
    当利用第一链路向第二网元发送第一数据时,确定需要利用第二链路向所述第二网元发送所述第一数据;When the first data is sent to the second network element by using the first link, determining that the first data needs to be sent to the second network element by using the second link;
    利用所述第二链路向所述第二网元发送所述第一数据;Transmitting, by the second link, the first data to the second network element;
    在利用所述第二链路发送所述第一数据后,停止利用所述第一链路发送所述第一数据。After transmitting the first data by using the second link, stopping sending the first data by using the first link.
  5. 根据权利要求4所述的方法,其中,所述停止利用所述第一链路发送所述第一数据包括:The method of claim 4, wherein the stopping the transmitting the first data by using the first link comprises:
    关闭所述第一链路的用于发送所述第一数据的激光器。Turning off the laser of the first link for transmitting the first data.
  6. 根据权利要求4所述的方法,其中,当利用所述第一链路接收所述第二网元发送的第二数据时,在所述利用所述第二链路向所述第二网元发送所述第一数据之后,还包括:The method according to claim 4, wherein when the second data transmitted by the second network element is received by using the first link, the utilizing the second link to the second network element After the sending the first data, the method further includes:
    确定第二预定时间内未从所述第一链路上接收到所述第二网元发送的所 述第二数据;Determining that the second network element is not received from the first link within a second predetermined time Describe the second data;
    停止利用所述第一链路接收所述第二网元发送的所述第二数据。Stopping, by using the first link, the second data sent by the second network element.
  7. 根据权利要求6所述的方法,其中,所述停止利用所述第一链路接收所述第二网元发送的所述第二数据包括:The method of claim 6, wherein the stopping receiving the second data sent by the second network element by using the first link comprises:
    关闭所述第一链路的用于接收第二网元发送的所述第二数据的激光器。Turning off the laser of the first link for receiving the second data sent by the second network element.
  8. 一种数据传输装置,包括:A data transmission device comprising:
    第一确定模块,设置成当利用第一链路向第一网元发送第二数据时,确定第一预定时间内未从第一链路上接收到第一网元发送的第一数据;The first determining module is configured to: when the first data is sent to the first network element by using the first link, determine that the first data that is sent by the first network element is not received from the first link in the first predetermined time;
    第一发送模块,设置成利用第二链路发送所述第二数据;a first sending module, configured to send the second data by using a second link;
    第一停止模块,设置成在所述第一发送模块利用所述第二链路发送所述第二数据后,停止利用所述第一链路发送所述第二数据。The first stopping module is configured to stop sending the second data by using the first link after the first sending module sends the second data by using the second link.
  9. 根据权利要求8所述的装置,其中,所述第一停止模块包括:The apparatus of claim 8 wherein said first stop module comprises:
    第一关闭单元,设置成关闭所述第一链路的用于发送所述第二数据的激光器。a first shut down unit configured to turn off the laser of the first link for transmitting the second data.
  10. 根据权利要求8所述的装置,还包括:The apparatus of claim 8 further comprising:
    关闭模块,设置成在所述第一确定模块确定第一预定时间内未从所述第一链路上接收到所述第一网元发送的所述第一数据之后,关闭所述第一链路的用于接收所述第一数据的激光器。And closing the module, configured to close the first chain after the first determining module determines that the first data sent by the first network element is not received from the first link within a first predetermined time A laser for receiving the first data.
  11. 一种数据传输装置,包括:A data transmission device comprising:
    第二确定模块,设置成当利用第一链路向第二网元发送第一数据时,确定需要利用第二链路向所述第二网元发送所述第一数据;a second determining module, configured to: when the first data is sent to the second network element by using the first link, determine that the first data needs to be sent to the second network element by using the second link;
    第二发送模块,设置成利用所述第二链路向所述第二网元发送所述第一数据;a second sending module, configured to send the first data to the second network element by using the second link;
    第二停止模块,设置成在所述第二发送模块利用所述第二链路发送所述第一数据后,停止利用所述第一链路发送所述第一数据。The second stopping module is configured to stop sending the first data by using the first link after the second sending module sends the first data by using the second link.
  12. 根据权利要求11所述的装置,其中,所述第二停止模块包括:The apparatus of claim 11 wherein said second stop module comprises:
    第二关闭单元,设置成关闭所述第一链路的用于发送所述第一数据的激 光器。a second closing unit, configured to close the first link for sending the first data Light.
  13. 根据权利要求11所述的装置,还包括:The apparatus of claim 11 further comprising:
    第三确定模块,设置成当利用所述第一链路接收所述第二网元发送的第二数据时,在所述第二发送模块利用所述第二链路向所述第二网元发送所述第一数据之后,确定第二预定时间内未从所述第一链路上接收到第二网元发送的第二数据;a third determining module, configured to: when the second data sent by the second network element is received by using the first link, use, by the second sending module, the second link to the second network element After transmitting the first data, determining that the second data that is sent by the second network element is not received from the first link within the second predetermined time;
    第三停止模块,设置成停止利用所述第一链路接收所述第二网元发送的所述第二数据。And a third stopping module, configured to stop receiving, by using the first link, the second data sent by the second network element.
  14. 根据权利要求13所述的装置,其中,所述第三停止模块包括:The apparatus of claim 13 wherein said third stop module comprises:
    第三关闭单元,设置成关闭所述第一链路的用于接收所述第二数据的激光器。 And a third closing unit configured to turn off the laser of the first link for receiving the second data.
PCT/CN2016/077548 2015-08-27 2016-03-28 Data transmission method and device WO2016177181A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510535084.3 2015-08-27
CN201510535084.3A CN106487678A (en) 2015-08-27 2015-08-27 Data transmission method and device

Publications (1)

Publication Number Publication Date
WO2016177181A1 true WO2016177181A1 (en) 2016-11-10

Family

ID=57217864

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/077548 WO2016177181A1 (en) 2015-08-27 2016-03-28 Data transmission method and device

Country Status (2)

Country Link
CN (1) CN106487678A (en)
WO (1) WO2016177181A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109962734A (en) * 2017-12-26 2019-07-02 中国移动通信集团公司 A kind of network system and data transmission method
CN111724276B (en) * 2020-05-19 2021-09-03 浙江浙能长兴天然气热电有限公司 Power plant data transmission method and system integrating self-diagnosis and channel optimization
CN114554565A (en) * 2020-11-26 2022-05-27 阿里巴巴集团控股有限公司 Link switching method, communication system, user plane functional entity and user equipment
CN112887150B (en) * 2021-01-28 2022-08-23 深圳市中景元科技有限公司 Method for automatically starting and closing aggregation by aggregation router and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7167723B2 (en) * 2000-11-27 2007-01-23 Franklin Zhigang Zhang Dual channel redundant fixed wireless network link, and method therefore
CN101013928A (en) * 2007-02-07 2007-08-08 华为技术有限公司 Apparatus and method for implementing line fault detection of pseudo-wire simulation
KR20100109810A (en) * 2009-04-01 2010-10-11 엘지에릭슨 주식회사 Method for link duplexing and voice over internet protocol system using the same
CN103475655A (en) * 2013-09-06 2013-12-25 瑞斯康达科技发展股份有限公司 Method for achieving IPSecVPN main link and backup link dynamic switching

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1312870C (en) * 2003-09-03 2007-04-25 中兴通讯股份有限公司 Method for switching between CDMA system and wireless LAN of mobile terminal
CN102780635B (en) * 2012-08-09 2015-09-09 华为技术有限公司 The method of pretection switch, TOR switch and system is realized based on TRILL network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7167723B2 (en) * 2000-11-27 2007-01-23 Franklin Zhigang Zhang Dual channel redundant fixed wireless network link, and method therefore
CN101013928A (en) * 2007-02-07 2007-08-08 华为技术有限公司 Apparatus and method for implementing line fault detection of pseudo-wire simulation
KR20100109810A (en) * 2009-04-01 2010-10-11 엘지에릭슨 주식회사 Method for link duplexing and voice over internet protocol system using the same
CN103475655A (en) * 2013-09-06 2013-12-25 瑞斯康达科技发展股份有限公司 Method for achieving IPSecVPN main link and backup link dynamic switching

Also Published As

Publication number Publication date
CN106487678A (en) 2017-03-08

Similar Documents

Publication Publication Date Title
ES2796473T3 (en) Network system that has virtual interfaces and a routing module for a virtual network
WO2016177181A1 (en) Data transmission method and device
KR101706439B1 (en) Redundant network connections
US8705362B2 (en) Systems, methods, and apparatus for detecting a pattern within a data packet
CN101132320B (en) Method for detecting interface trouble and network node equipment
US11588703B2 (en) Systems and methods for determining a topology of a network comprising a plurality of intermediary devices and paths
WO2017092400A1 (en) Failure recovery method and device, controller, and software defined network
WO2021155637A1 (en) Information processing method, device, and system, and storage medium
CN101425942A (en) Method, apparatus and system for bidirectional forwarding detection implementation
CN102413031B (en) A kind of RPR fault protecting method and equipment thereof
US20150055451A1 (en) Network Switching Systems And Methods
US20150256441A1 (en) Neighbor relationship processing method and routing device
WO2019001197A1 (en) Link switching method and apparatus
CN114363242A (en) Dynamic multi-path optimization method, system and equipment based on cloud network fusion technology
US11088937B1 (en) System and method for synchronized route update
WO2016206635A1 (en) Lacp-based forwarding detection method and system
WO2017036163A1 (en) Message sending method and system
CN109495345A (en) A kind of BFD processing method and the network equipment
WO2016091094A1 (en) Optical transport network protection switching method and device
WO2014075594A1 (en) Service transmission protection method and device based on intersecting ring of multi-ring structure network
WO2016169214A1 (en) Tunnel protection switching method and device
CN106789623B (en) Link communication support method and system based on ospf protocol
CN108599984B (en) Method for sharing port state, access equipment and system for supporting dual-homing protection
WO2015180265A1 (en) Multi-link protection switching method and device
US20200136946A1 (en) System and method for determining branch gateway device availability in computer networks

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16789175

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16789175

Country of ref document: EP

Kind code of ref document: A1