WO2017117957A1 - 一种链路处理方法和装置 - Google Patents

一种链路处理方法和装置 Download PDF

Info

Publication number
WO2017117957A1
WO2017117957A1 PCT/CN2016/089806 CN2016089806W WO2017117957A1 WO 2017117957 A1 WO2017117957 A1 WO 2017117957A1 CN 2016089806 W CN2016089806 W CN 2016089806W WO 2017117957 A1 WO2017117957 A1 WO 2017117957A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
negotiation information
negotiation
member interface
information
Prior art date
Application number
PCT/CN2016/089806
Other languages
English (en)
French (fr)
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 WO2017117957A1 publication Critical patent/WO2017117957A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • 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/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5003Managing SLA; Interaction between SLA and QoS
    • H04L41/5006Creating or negotiating SLA contracts, guarantees or penalties
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/76Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/24Negotiation of communication capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/324Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the data link layer [OSI layer 2], e.g. HDLC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2213/00Indexing scheme relating to selecting arrangements in general and for multiplex systems
    • H04Q2213/13567Indexing scheme relating to selecting arrangements in general and for multiplex systems negotiation, management policy, goals

Definitions

  • the present application relates to, but is not limited to, the field of communication technologies, and in particular, to a link processing method and apparatus.
  • High-Level Data Link Control is a bit-oriented data link layer control protocol for transmitting data over synchronous networks.
  • HDLC can provide transparent peer-to-peer transmission for upper layer protocols.
  • the HDLC provides the timing detection function for the link. It can be implemented by the keepalive packets in the standard protocol. As long as the member interfaces that are physically connected to the two devices are all connected (UP), they will be triggered periodically. The keepalive packet is sent to the peer to notify the member interface of the local end that the protocol is enabled. If the peer keepalive packet is received at the same time, the peer member interface is considered to be the protocol, that is, the link is considered normal. , can communicate.
  • MRU Maximum Receive Unit
  • FIG. 1 it is a schematic diagram of a link for a keep-alive packet detection link in the HDLC protocol in the related art.
  • Router A and Router B are devices at both ends of the link, and Figure 2 shows the keep-alive packets in the standard protocol.
  • the link can be disconnected.
  • the local end can also receive the keep-alive packet sent by the peer end. At this time, the local end cannot sense the abnormal state of the peer end. , there will be a phenomenon of single flow of traffic.
  • the traffic single-pass phenomenon occurs because one end of the link may not be aware of the abnormal state of the peer end, thereby causing a problem of poor link reliability.
  • the embodiment of the present invention provides a link processing method and device to solve the link detection method in the related art.
  • As one end of the link may not sense the abnormal state of the peer end, a traffic single-pass phenomenon occurs, thereby causing a chain. The problem of poor road reliability.
  • an embodiment of the present invention provides a link processing method, including:
  • the first terminal device performs the first member interface of the first terminal device and the second member interface of the second terminal device that is physically connected to the first member interface by performing a negotiation process, and completes the first negotiation process.
  • the first negotiation information of the first member interface and the second negotiation information of the second member interface are both the terminal device and the second terminal device;
  • the first terminal device Receiving, by the first terminal device, the first extended keep-alive message that is repeatedly sent by the second terminal device according to the preset time interval, where the first extended keep-alive message includes the second terminal device a negotiation information and a second negotiation information, where the content of the second negotiation information changes when the second member interface is abnormal;
  • the first terminal device closes the first member interface when it is determined that the received first negotiation information and the second negotiation information are different from the first negotiation information and the second negotiation information in the first terminal device.
  • the first terminal device is configured with a first timer, and the first terminal device turns on the first member of the first terminal device by performing a negotiation process. After the interface and the second member interface of the second terminal device that is physically connected to the first member interface, the link processing method further includes:
  • the first terminal device turns on the first timer
  • the link processing method further includes:
  • the foregoing link processing method further includes: The first terminal device repeatedly sends the second extended keep-alive message to the second terminal device according to the preset time interval, where the second extended keep-alive message includes the first negotiation in the first terminal device.
  • the information and the second negotiation information, the content of the first negotiation information is changed when the first member interface is abnormal, and the second extended keep-alive message is used to indicate that the second terminal device determines the received
  • the second member interface is closed.
  • a second timer is configured in the second terminal device, and the second timer is in the second member interface After the ping is started, the second extended keep-alive message is further used to indicate that the second terminal device determines the received first negotiation information and the second negotiation information and the second terminal device. When the negotiation information and the second negotiation information are the same, the second timer is set to start from zero.
  • the link processing method further includes:
  • the first terminal device closes the first member interface when detecting that the timing value of the first timer is greater than a first threshold
  • the first terminal device sends a third extended keep-alive message to the second terminal device, where the third extended keep-alive message does not carry the first negotiation information or the first negotiation information that carries the changed content
  • the third extended keep-alive message is used to instruct the second terminal device to close the second member interface.
  • the first terminal device re-executes the negotiation process with the second terminal device.
  • the first extended The live message further includes a third timer, the third timer starts counting when the first extended keep-alive message is sent, and the first terminal device receives the second terminal device according to a preset time.
  • the link processing method further includes:
  • the first terminal device closes the first member interface when a timing value of the third timer is greater than a second threshold
  • the first terminal device sends a fourth extended keep-alive message to the second terminal device, where the first extended keep-alive message does not carry the first negotiation information or the first negotiation information that carries the changed content
  • the fourth extended keep-alive message is used to instruct the second terminal device to close the second member interface.
  • the first terminal device re-executes the negotiation process with the second terminal device.
  • the first terminal device is configured to perform the The first member interface of the terminal device and the second member interface of the second terminal device that are physically connected to the first member interface, including:
  • the first terminal device sends a first negotiation message to the second terminal device, where the first negotiation message includes first negotiation information and second negotiation information in the first terminal device, where the first a negotiation message is used to instruct the second terminal device to determine that the received first negotiation information and the second negotiation information are the same as the first negotiation information and the second negotiation information in the second terminal device, Passing the second member interface;
  • the first terminal device receives the second negotiation message sent by the second terminal device, where the second negotiation message includes the second negotiation information and the first negotiation information in the second terminal device;
  • the first terminal device turns on the first member interface when determining that the received first negotiation information and the second negotiation information are the same as the first negotiation information and the second negotiation information in the first terminal device .
  • the third member interface in the first terminal device is physically connected to the fourth member interface in the second terminal device And the third negotiation information of the third member interface is the same as the first negotiation information;
  • the link processing method after the first terminal device is configured to perform the first member interface of the first terminal device and the second member interface of the second terminal device that is physically connected to the first member interface also includes:
  • the first terminal device When the fourth negotiation information of the fourth member interface is the same as the second negotiation information, the first terminal device performs the negotiation process to turn on the third member interface and the fourth member interface; or ,
  • the first terminal device fails to perform the negotiation process.
  • the embodiment of the present invention provides a link processing apparatus, which is disposed in a first terminal device, where the link processing apparatus includes:
  • the negotiation module is configured to: perform, by performing a negotiation process, the first member interface of the first terminal device and the second member interface of the second terminal device that are physically connected to the first member interface, where the negotiation process is completed
  • the first terminal device and the second terminal device both have first negotiation information of the first member interface and second negotiation information of the second member interface;
  • a receiving module configured to receive a first extended keep-alive message that is repeatedly sent by the second terminal device according to a preset time interval, where the first extended keep-alive message includes the second terminal device The first negotiation information and the second negotiation information, where the content of the second negotiation information changes when the second member interface is abnormal;
  • the processing module is configured to: when it is determined that the first negotiation information and the second negotiation information received by the receiving module are different from the first negotiation information and the second negotiation information in the first terminal device, shutting down the first member interface.
  • the first terminal device is configured with a first timer
  • the link processing device further includes: an opening module, configured to perform negotiation by the negotiation module After the first member interface of the first terminal device and the second member interface of the second terminal device that are physically connected to the first member interface are turned on, the first timer is started;
  • the processing module is further configured to: when it is determined that the first negotiation information and the second negotiation information received by the receiving module are the same as the first negotiation information and the second negotiation information in the first terminal device, The first timer starts from zero.
  • the link processing apparatus further includes: a sending module, configured to repeatedly send the second extended keep-alive message to the second terminal device according to a preset time interval
  • the second extended keep-alive packet includes the first negotiation information and the second negotiation information in the first terminal device, where the content of the first negotiation information occurs when the first member interface is abnormal.
  • the second extended keep-alive message is used to indicate that the second terminal device determines, in the first negotiation information and the second negotiation information, the first negotiation information and the first negotiation information in the second terminal device When the two negotiation information is different, the second member interface is closed.
  • a second timer is configured in the second terminal device, and the second timer is in the second member interface After the ping is started, the second extended keep-alive message is further used to indicate that the second terminal device determines the received first negotiation information and the second negotiation information and the second terminal device. When the negotiation information and the second negotiation information are the same, the second timer is set to start from zero.
  • the processing module is further configured to close when detecting that the timing value of the first timer is greater than a first threshold The first member interface;
  • the link processing device further includes: a sending module, configured to send a third extended keep-alive message to the second terminal device, where the third extended keep-alive message does not carry the first negotiation information Or carrying the first negotiation information after the content change, where the third extended keep-alive message is used to instruct the second terminal device to close the second member interface;
  • the negotiation module is further configured to perform the negotiation process with the second terminal device again.
  • the first extended keep-alive report received by the receiving module The method further includes a third timer, the third timer starts counting when the first extended keep-alive message is sent; the processing module is further configured to: when the third timer has a timing value less than or When the second negotiation is equal to the second threshold, and the first negotiation information and the second negotiation information received by the receiving module are the same as the first negotiation information and the second negotiation information in the first terminal device, the first member is kept.
  • the current state of the interface or,
  • the processing module is further configured to close the first member interface when a timing value of the third timer is greater than a second threshold;
  • the sending module is further configured to send a fourth extended keep-alive message to the second terminal device, where the fourth extended keep-alive message does not carry the first negotiation information or carries the changed content First negotiation information, where the fourth extended keep-alive message is used to instruct the second terminal device to close the second member interface;
  • the negotiation module is further configured to perform the negotiation process with the second terminal device again.
  • a sending unit configured to send the first negotiation information to the second terminal device, and instruct the second terminal device to store the first negotiation information
  • a receiving unit configured to receive and store the second negotiation information sent by the second terminal device
  • the sending unit is further configured to send a first negotiation message to the second terminal device, where the first negotiation message includes first negotiation information and second negotiation information in the first terminal device.
  • the first negotiation message is used to indicate that the second terminal device determines the first negotiation information and the second negotiation information that are received by the second terminal device, and the first negotiation information and the second negotiation information in the second terminal device.
  • the second member interface is turned on;
  • the receiving unit is further configured to receive the second negotiation message sent by the second terminal device, where the second negotiation message includes the second negotiation information and the first negotiation in the second terminal device information;
  • a processing unit configured to: when it is determined that the first negotiation information and the second negotiation information received by the receiving unit are the same as the first negotiation information and the second negotiation information in the first terminal device, turning on the first Member interface.
  • the third member interface in the first terminal device is physically connected to the fourth member interface in the second terminal device And the third negotiation information of the third member interface is the same as the first negotiation information;
  • the processing module is further configured to: in the first module interface and the second terminal device of the first terminal device, the second member interface that is physically connected to the first member interface in the negotiation module Thereafter, and the fourth negotiation information of the fourth member interface and the second association When the quotient information is the same, the negotiation process is performed to enable the third member interface and the fourth member interface; or
  • the processing module is further configured to: in the first module interface and the second terminal device of the first terminal device, the second member interface that is physically connected to the first member interface in the negotiation module After the fourth negotiation information of the fourth member interface is different from the second negotiation information, the negotiation process fails.
  • the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, the link processing method being implemented when the computer executable instructions are executed.
  • the first terminal device conducts the first member interface and the second member interface of the physical connection by performing a negotiation process with the second terminal device, and receives the second after the negotiation process is completed.
  • the first extended keep-alive packet that is repeatedly sent by the terminal device determines whether the state of the second member interface of the second terminal device is abnormal, and the two terminal devices can sense the member interface of the peer end in real time after establishing the link connection. Whether an abnormality occurs, and the member interface of the local end is closed when the abnormality is performed, thereby avoiding the phenomenon that the link traffic is single-passed.
  • the method provided by the embodiment of the present invention solves the link detection method in the related art, because one end of the link may be perceived. The traffic single-pass phenomenon occurs due to the abnormal state of the peer end, resulting in poor link reliability.
  • FIG. 1 is a schematic diagram of a principle of a keep-alive packet detection link in the HDLC protocol in the related art
  • FIG. 2 is a schematic diagram of a format of a keep-alive message in a standard protocol
  • FIG. 3 is a flowchart of a link processing method according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of an application scenario of a link processing method provided by the embodiment shown in FIG. 3;
  • FIG. 5 is a schematic diagram of a negotiation process in a link processing method provided by the embodiment shown in FIG. 3;
  • FIG. 6 is a flowchart of another link processing method according to an embodiment of the present invention.
  • FIG. 7 is a flowchart of still another link processing method according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a format of a first extended keep-alive message according to the link processing method provided in the embodiment shown in FIG. 7;
  • FIG. 9 is a schematic diagram of an application scenario of a link processing method according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of another application scenario of a link processing method according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic structural diagram of a link processing apparatus according to an embodiment of the present disclosure.
  • FIG. 12 is a schematic structural diagram of another link processing apparatus according to an embodiment of the present disclosure.
  • FIG. 13 is a schematic structural diagram of still another link processing apparatus according to an embodiment of the present invention.
  • the first terminal device and the second terminal device in the following embodiments may be routers, and the member interfaces of any terminal device may be synchronous optical networks (Synchronous).
  • the Optical Network referred to as: SONET
  • SDH Synchronous Digital Hierarchy
  • POS Packet Over SONET/SDH
  • FIG. 3 is a flowchart of a link processing method according to an embodiment of the present invention.
  • the link processing method provided in this embodiment is applicable to link detection by the HDLC protocol
  • the method may be implemented by a link processing device, and the link processing device may be implemented by combining hardware and software. It can be integrated in the processor of the first terminal device for use by the processor.
  • the method in this embodiment may include the following steps:
  • Step S110 The first terminal device turns on the first end of the first terminal device by performing a negotiation process.
  • a member interface and a second member interface of the second terminal device that is physically connected to the first member interface, and the first terminal device and the second terminal device that complete the negotiation process have the first negotiation information and the second member interface of the first member interface.
  • the second negotiation information of the member interface is not limited to the negotiation process.
  • FIG. 4 is a schematic diagram of an application scenario of the link processing method provided in the embodiment shown in FIG. 3.
  • the router A in FIG. 4 is the first terminal device
  • the router B is the second terminal device
  • A1 is the first member interface, B1.
  • It is a second member interface, where A1 and B1 are both the above POS interfaces, and A1 and B1 are physically connected.
  • the first terminal device conducts the first member interface and the second member interface by performing a negotiation process.
  • the link between the first member interface and the second member interface is conductive, and can be performed. Data Transmission, the negotiation process in the embodiment of the present invention is described below.
  • FIG. 5 is a schematic diagram of a negotiation process in the link processing method provided by the embodiment shown in FIG. 3; that is, step S110 in this embodiment includes:
  • Step S1101 The first terminal device sends the first negotiation information to the second terminal device, and instructs the second terminal device to store the first negotiation information.
  • Step S1102 The first terminal device receives and stores the second negotiation information sent by the second terminal device.
  • the first negotiation information may be the local consultation information (LCI) of the first member interface. If the first member interface is not configured with the LCI, the first negotiation information may also be the first member. The host name (interface name) or the interface name of the interface. Similarly, the second negotiation information may be the LCI of the second member interface or the host name or interface name of the second member interface.
  • LCI local consultation information
  • Step S1103 The first terminal device sends a first negotiation message to the second terminal device, where the first negotiation message includes the first negotiation information and the second negotiation information in the first terminal device, where the first negotiation message is used.
  • the second terminal device is instructed to determine that the received first negotiation information and the second negotiation information are the same as the first negotiation information and the second negotiation information in the second terminal device, the second member interface is turned on.
  • Step S1104 The first terminal device receives the second negotiation message sent by the second terminal device, where the second negotiation message includes the second negotiation information and the first negotiation information in the second terminal device.
  • Step S1105 The first terminal device determines the received first negotiation information and the second negotiation. When the information is the same as the first negotiation information and the second negotiation information in the first terminal device, the first member interface is turned on.
  • the first terminal device is taken as an example.
  • the second negotiation message After the second negotiation message is received, but the second negotiation information fails to be stored, the foregoing negotiation process may be performed from the beginning.
  • the execution order of step S1101 and step S1102, and step S1103 and step S1104 and step S1105 are not limited, that is, the negotiation information or the negotiation message is not restricted by which terminal device is transmitted first, as long as each terminal device can be implemented.
  • the terminal device has the first negotiation information and the second negotiation information, and can complete the foregoing negotiation process by receiving the member interface of the local end after receiving the negotiation message sent by the peer.
  • the conductive member interface or the closed member interface described in the embodiment of the present invention refers to a protocol (Up) or a protocol closed (Down), which is based on a physical connection or a protocol is closed. of.
  • step S120 the first terminal device receives the first extended keep-alive message that is repeatedly sent by the second terminal device according to the preset time interval, where the first extended keep-alive message includes the first negotiation information in the second terminal device and The second negotiation information, the content of the second negotiation information changes when the second member interface is abnormal.
  • step S130 the first terminal device closes the first member interface when it is determined that the received first negotiation information and the second negotiation information are different from the first negotiation information and the second negotiation information in the first terminal device.
  • the interaction of the extended keep-alive packets is performed to detect whether the member interfaces of the devices at both ends have an abnormal state.
  • the second member interface is in an abnormal state, for example, the sending is normal and the receiving abnormality is described in the background, the first terminal device does not perceive the second terminal device in the link detecting manner in the related art.
  • the abnormal state of the member interface the phenomenon that the traffic is single-passed on the link, that is, the data sent by the first terminal device to the second terminal device cannot be received.
  • the content of the second negotiation information is changed, that is, the content of the second negotiation information in the first extended keep-alive message sent by the second terminal is different from the content of the second negotiation information stored in the first terminal device.
  • the terminal device will close the first member interface, that is, disconnect the link. After the link is disconnected, the first terminal device can re-negotiate with the second terminal device to perform the foregoing negotiation shown in FIG. Process.
  • the first terminal device may also send the second extended keep-alive message to the second terminal device, so that the second terminal device learns the state of the first member interface, where the first terminal device follows the preset.
  • the second extended keep-alive message is repeatedly sent to the second terminal device, where the second extended keep-alive message includes the first negotiation information and the second negotiation information in the first terminal device, where the first negotiation information is The content is changed when the first member interface is abnormal, and the second extended keep-alive message is used to indicate that the second terminal device determines the first negotiation information and the second negotiation information that are received by the second terminal device.
  • the negotiation information and the second negotiation information are different, the second member interface is closed, that is, the link is disconnected. After the link is disconnected, the first terminal device can also perform the negotiation process shown in FIG. 5 again with the second terminal device.
  • the first terminal device performs the negotiation process with the second terminal device to conduct the first member interface and the second member interface of the physical connection, and receives the second terminal device after the negotiation process is completed.
  • the first extended keep-alive packet is repeatedly sent to determine whether the state of the second member interface of the second terminal device is abnormal.
  • the terminal device can detect whether the member interface of the peer device is present in real time. An abnormality occurs, and the member interface of the local end is closed when the abnormality is performed, thereby avoiding the phenomenon that the link traffic is single-passed.
  • the method provided in this embodiment solves the link detection method in the related art, because one end of the link may not be perceived. The phenomenon of traffic single-pass occurs in the abnormal state of the terminal, resulting in poor link reliability.
  • FIG. 6 is a flowchart of another link processing method according to an embodiment of the present invention.
  • the first terminal device in this embodiment is further provided with a first timer.
  • the link processing method of the embodiment further includes: in step S111, the first terminal device starts the first timer; after the step S120, the link processing method in this embodiment may further include: step S140, the first terminal The device sets the first timer to start timing from zero when it is determined that the received first negotiation information and the second negotiation information are the same as the first negotiation information and the second negotiation information in the first terminal device. It should be noted that step S130 and step S140 are selectively performed in this embodiment.
  • the first timer in this embodiment is used by the first terminal device to start timing from zero after receiving the first extended keep-alive message and determining that the second member interface state is normal, that is, as long as the first timer loops Perform the above steps, the timing value will be within a certain range; accordingly, the second member When the status of the interface is abnormal, the time value of the first timer is also displayed.
  • the specific implementation may be: in step S150, when the first terminal device detects that the timing value of the first timer is greater than the first threshold, the first terminal device is turned off.
  • the first terminal device sends a third extended keep-alive message to the second terminal device, where the third extended keep-alive message does not carry the first negotiation information or the first negotiation information that carries the changed content
  • the third extended keep-alive message is used to instruct the second terminal device to close the second member interface; in step S170, the first terminal device re-executes the negotiation process with the second terminal device.
  • the first threshold in this embodiment may be, for example, three timing periods of the timer, which may be set by the designer according to the sensitivity requirement of the link. If the timing period is not set, the default may be in the HDLC protocol.
  • the protection period of the protection message is the same, usually 10 seconds (s).
  • the first terminal device in the embodiment does not receive the first extended keep-alive message sent by the second terminal device for a long time, and considers that the link has an abnormality problem, it sends a third extended keep-alive message to the second terminal device.
  • the first negotiation information may be not carried, or the content of the first negotiation information may be changed, so that when the second terminal device receives the third extended keep-alive message, the obtained result is necessarily the received first negotiation information and the first The first negotiation information stored in the second terminal device is different. Therefore, the second terminal device also closes the second member interface.
  • the first timer set in the terminal device can be implemented after the link negotiation between the first member interface and the second member interface succeeds, and the first member interface is in the closed state for some reason.
  • the second member interface can be closed. This ensures that the status of the member interfaces of the physical connection is consistent, and the single-link phenomenon occurs on the link. In the state, you can re-enter the initial negotiation process.
  • step S150 to the step S170 in this embodiment may be performed after the step S111, and the first terminal device may check the first timer after repeatedly receiving the first extended keep-alive message multiple times. The timing value expires, and after the negotiation process is completed and the first timer is turned on, the first extended keep-alive message is not received, so that steps S150 to S170 are performed.
  • the embodiment shown in Fig. 6 is shown by taking steps S150 to S170 after step S140 as an example. Step S130, step S140, and step S150 to step S170 in the embodiment shown in FIG. 6 are selectively performed, and step S170 may be performed after step S130.
  • FIG. 7 is a flowchart of still another link processing method according to an embodiment of the present invention.
  • FIG. 7 is an example of the embodiment shown in FIG. 3, and the first extended keep-alive message received by the first terminal device in step S120 of the embodiment further includes a third timer. The third timer starts from the time when the first extended keep-alive message is sent.
  • the method provided in this embodiment further includes, after step S120, step S140, the first terminal device is in the third The timer value of the timer is less than or equal to the second threshold, and determines that the first negotiation information and the second negotiation information that are received are the same as the first negotiation information and the second negotiation information in the first terminal device, and the first member is kept.
  • the method provided by the example further includes: in step S150, the first terminal device turns off the first member interface when the timing value of the third timer is greater than the second threshold; in step S160, the first terminal device The second extended device keeps the fourth extended keep-alive message, and the fourth extended keep-alive message does not carry the first negotiation information or the first negotiation information that carries the changed content, and the fourth extended keep-alive message is used to indicate the second terminal.
  • the device closes the second member interface; in step S170, the first terminal device re-executes the negotiation process with the second terminal device.
  • FIG. 8 is a schematic diagram of a format of a first extended keep-alive packet in the link processing method provided in the embodiment shown in FIG. 7.
  • the local negotiation information ie, the second negotiation information
  • the peer negotiation information that is, the first negotiation information
  • the timer where each item is composed of a type, a length, and a value ( It is abbreviated as: TLV.
  • TLV a value
  • the local negotiation information is preset in the second terminal device, and the peer negotiation information is filled when the second terminal device performs the negotiation process. If not, the padding is 0.
  • the timer starts to be timed when the second terminal device sends the first extended keep-alive message; the first extended keep-alive message further includes a standard format of the keep-alive message in the standard protocol, that is, the content shown in FIG. .
  • step S130, the step S140, and the step S150 to the step S170 are selectively performed, and may be different selections made by the first terminal device according to the content in the first extended keep-alive message, and the steps may be performed after step S130. S170.
  • the second terminal device in this embodiment may be configured with a second timer, where the second timer starts to be timed after the second member interface is turned on, and the second extended keepalive sent by the first terminal device
  • the message is further configured to: when the second terminal device determines that the received first negotiation information and the second negotiation information are the same as the first negotiation information and the second negotiation information in the second terminal device, setting the second timer from Zero starts timing.
  • the second terminal device in this embodiment may also determine, according to the timing value of the second timer, whether the link is in an abnormal state, and the second extended keep-alive message may also be configured with a timer.
  • the manner in which the second terminal device is executed and the manner in which the link is processed, and the content and the function of the second extended keep-alive packet are the same as those in the first terminal device in the foregoing embodiment, and details are not described herein again.
  • POS-Group interface hereinafter referred to as a PG interface
  • PG interface POS-Group interface
  • the first terminal device also has a third member interface, and the fourth member interface of the second terminal device and the third member interface are physically If the third negotiation information of the third member interface is the same as the first negotiation information, the link between the first member interface and the second member interface is established in the foregoing embodiment, and the fourth member interface is When the fourth negotiation information is the same as the second negotiation information, the first terminal device may perform the negotiation process again to enable the third member interface and the fourth member interface; if the fourth negotiation information is different from the second negotiation information, the third terminal cannot implement the third The establishment of a link between the member interface and the fourth member interface.
  • the first member interface and the third member interface are a bundled PG interface
  • the second member interface and the fourth member interface are a bundled PG interface
  • load sharing can be implemented through the PG interface.
  • the PG interface distributes traffic to different links and finally reaches the unified destination. This prevents traffic congestion caused by traffic going through the same path.
  • the PG interface can also improve the reliability of the link. In the PG interface, if the status of a member interface is abnormal, the traffic can also be transmitted by other member interfaces.
  • FIG. 9 is a schematic diagram of an application scenario of a link processing method according to an embodiment of the present invention.
  • router A in FIG. 9 is a first terminal device
  • router B is a second terminal device
  • router A is used.
  • the HDLC binding port PG1 includes three member interfaces A1, A2, and A3.
  • the HDLC binding port PG2 of Router B includes three member interfaces B1, B2, and B3.
  • the physical connection relationship is A1 with B1, A2 with B2, and A3.
  • B3 where the LCI information of the member interfaces A1, A2, and A3 is the same, B1 and B2
  • the LCI information is the same, and the LCI information of B3 is not equal to the LCI information of B1.
  • the link between A1 and B1 is successfully negotiated first, and the LCI information sent by B2 to A2 is equal to the LCI information of the member interface B1.
  • the link between A2 and B2 is successfully negotiated, and the LCI information sent by B3 to A3 is successful. It does not mean that the LCI information of the member interface B1 is activated, and the link negotiation between A3 and B3 fails.
  • the LCI information of the B2 member interface is modified to be LCI information that is not equal to B1, and thereafter, the LCI information of the B2 end and the router A in the first extended keep-alive message sent by B2 received by A2.
  • the LCI information of the saved B2 is different.
  • the router A protocol closes the member interface A2 and clears the saved L2 information of B2.
  • the information of the LCI sent by A2 received by B2 is also saved with the information stored in router B.
  • the LCI information of A2 is different.
  • Router B protocol closes member interface B2 and clears the saved L2 information of A2, and then enters the initial negotiation process to re-establish link negotiation.
  • FIG. 10 is a schematic diagram of another application scenario of the link processing method according to the embodiment of the present invention.
  • the router A in FIG. 10 is the first terminal device, and the router B and the router C are both.
  • the binding port PG1 of the HDLC of the router A includes four member interfaces A1, A2, A3, and A4.
  • the binding port PG2 of the HDLC of the router B includes two member interfaces B1 and B2, and the binding port PG3 of the HDLC of the router C. It includes two member interfaces C1 and C2.
  • the physical connection relationship is A1 with B1, A2 with B2, A3 with C1, and A4 with C2, and the LCI information of A1, A2, A3, and A4 is the same, and the LCI information of B1 and B2 is the same.
  • the LCI information of C1 and C2 is the same, but the LCI information of Router B and Router C are different.
  • an extended protocol switch may be set to a member interface or a PG interface of the terminal device, and when the extended protocol switch is turned on, the link described in the foregoing embodiment is executed.
  • the processing method when the extended protocol switch is off, may use the method in the related art to perform link establishment and detection.
  • the manner in which the second terminal device in the embodiment of the present invention performs the negotiation process and performs the link detection after the link negotiation succeeds is the same as that in the first terminal device, and details are not described herein again.
  • FIG. 11 is a schematic structural diagram of a link processing apparatus according to an embodiment of the present invention.
  • the link processing device provided in this embodiment is applicable to the case of performing link detection by using the HDLC protocol, and the link processing device is implemented by combining hardware and software, and the device may be integrated in the processor of the first terminal device. For use by the processor.
  • the link processing apparatus of this embodiment includes: a negotiation module 11, a receiving module 12, and a processing module 13.
  • the negotiation module 11 is configured to: perform a negotiation process to enable the first member interface of the first terminal device and the second member interface of the second terminal device that is physically connected to the first member interface, where the first negotiation process is completed. Both the terminal device and the second terminal device have first negotiation information of the first member interface and second negotiation information of the second member interface.
  • This embodiment is also applicable to the application scenario shown in FIG. 4, in this embodiment, after the negotiation process is performed, the link between the first member interface and the second member interface is protocol-enabled, and can be performed. Data transmission, the negotiation process in this embodiment is specifically described in the following embodiments.
  • the conductive member interface or the closed member interface described in the embodiment of the present invention refers to protocol conduction or protocol shutdown, and is performed by protocol conduction or protocol closure on the basis of physical connection.
  • the receiving module 12 is configured to receive the first extended keep-alive message that is repeatedly sent by the second terminal device according to the preset time interval, where the first extended keep-alive message includes the first negotiation information in the second terminal device. And the second negotiation information, the content of the second negotiation information changes when the second member interface is abnormal.
  • the processing module 13 is configured to close the first member interface when it is determined that the first negotiation information and the second negotiation information received by the receiving module 12 are different from the first negotiation information and the second negotiation information in the first terminal device.
  • the negotiation module 11 can re-execute the negotiation process shown in FIG. 5 with the second terminal device.
  • the first terminal device may also send the second extended keep-alive packet to the second terminal device, so that the second terminal device learns the state of the first member interface, which is the link provided in this embodiment.
  • the processing device further includes: a sending module 14 configured to follow a preset time interval The second extended keep-alive message is repeatedly sent to the second terminal device, where the second extended keep-alive message includes the first negotiation information and the second negotiation information in the first terminal device, where the content of the first negotiation information is When the first member interface is abnormal, the second extended keep-alive message is used to indicate that the second terminal device determines the received first negotiation information and the second negotiation information and the first negotiation information in the second terminal device. When the second negotiation information is different, the second member interface is closed.
  • the link processing device provided by the embodiment of the present invention is configured to perform the link processing method provided by the embodiment shown in FIG. 3, and has a corresponding function module, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • FIG. 12 is a schematic structural diagram of another link processing apparatus according to an embodiment of the present invention.
  • the execution process of the negotiation process in the embodiment of the present invention is illustrated by the embodiment shown in FIG.
  • the sending unit 15 is configured to send the first negotiation information to the second terminal device, and instruct the second terminal device to store the first negotiation information.
  • the receiving unit 16 is configured to receive and store the second negotiation information sent by the second terminal device.
  • the sending unit 15 is further configured to send the first negotiation message to the second terminal device, where the first negotiation message includes the first negotiation information and the second negotiation information in the first terminal device, the first negotiation message
  • the method is used to instruct the second terminal device to turn on the second member interface when determining that the received first negotiation information and the second negotiation information are the same as the first negotiation information and the second negotiation information in the second terminal device.
  • the receiving unit 16 is further configured to receive the second negotiation message sent by the second terminal device, where the second negotiation message includes the second negotiation information and the first negotiation information in the second terminal device.
  • the processing unit 17 is configured to: when determining that the first negotiation information and the second negotiation information received by the receiving unit 16 are the same as the first negotiation information and the second negotiation information in the first terminal device, turning on the first member interface.
  • the first terminal device may perform the foregoing negotiation process from the beginning.
  • the negotiation information or the negotiation message is not restricted by which terminal device, as long as the first negotiation information and the second negotiation information are available in each terminal device, and After receiving the negotiation packet sent by the peer, the member interface of the local end is connected, and the negotiation process can be completed.
  • modules and units in the embodiments of the present invention are virtual modules and units that implement specific functions.
  • the processing unit 17 and the processing module 13 may be implemented by the same physical device, or may be implemented by different physical devices; for example, the sending unit 15 and the transmitting module 14 may be the same transmitter, the receiving unit 16 and the receiving module 12 It can also be the same receiver, and the processing unit 17 and the processing module 13 can also be the same processor.
  • FIG. 13 is a schematic structural diagram of still another link processing apparatus according to an embodiment of the present invention.
  • the first terminal device in this embodiment is further provided with a first timer.
  • the link processing device in this embodiment further includes: an opening module 18, configured to physically connect with the first member interface in the first member interface and the second terminal device of the first terminal device by performing the negotiation process in the negotiation module 11 After the second member interface, the first timer is started; the processing module 13 is further configured to: determine the first negotiation information and the second negotiation information received by the receiving module 12, and the first negotiation information and the first information in the first terminal device When the two negotiation information is the same, the first timer is set to start from zero. It should be noted that, in this embodiment, the processing module 13 closes the first member interface and the processing module 13 sets the first timer to be selectively executed from zero.
  • the first timer in this embodiment is used by the first terminal device to start timing from zero after receiving the first extended keep-alive message and determining that the second member interface state is normal, that is, as long as the first timer loops If the status of the second member interface is abnormal, the time value of the second member interface may be reflected by the timing value of the first timer.
  • the specific implementation manner may be: the processing module 13, The first member interface is also closed when the timing value of the first timer is detected to be greater than the first threshold; the sending module 14 is configured to send a third extended keep-alive message to the second terminal device, where the third The extended keep-alive message does not carry the first negotiation information or the first negotiation information that carries the content change, and the third extended keep-alive message is used to instruct the second terminal device to close the second member interface; the negotiation module 11 also sets To perform the negotiation process with the second terminal device again. It should be noted that the foregoing process may be performed after the first timer is turned on.
  • the link processing device provided by the embodiment of the present invention is configured to perform the link processing method provided in the embodiment shown in FIG. 6 and has a corresponding function module, and the implementation principle and the technical effect thereof are similar, and details are not described herein again.
  • the status of the link may also be extended by extending the content of the keep-alive message.
  • the first extended keep-alive message received by the receiving module 12 further includes a third timer, where the third timer starts timing when the first extended keep-alive message is sent;
  • the processing module 13 is further configured to: the timing value of the third timer is less than or equal to the second threshold, and determine the first negotiation information and the second negotiation information received by the receiving module 12 and the first terminal.
  • the first negotiation information and the second negotiation information in the device are the same, the current state of the first member interface is maintained.
  • the first timer can also be set to start from zero.
  • the processing module 13 is further configured to: when the timing value of the third timer is greater than the second threshold, close the first member interface; at this time, the sending module 14 is further configured to be The second terminal device sends a fourth extended keep-alive message, where the fourth extended keep-alive message does not carry the first negotiation information or the first negotiation information that carries the content change, and the fourth extended keep-alive message The text is used to instruct the second terminal device to close the second member interface; the negotiation module 11 is further configured to perform the negotiation process with the second terminal device again.
  • the format of the first extended keep-alive message in this embodiment may also refer to the format shown in FIG. 8 , and the content and function thereof are the same as those in the foregoing embodiment, and thus are not described herein again.
  • the link processing device provided by the embodiment of the present invention is configured to perform the link processing method provided by the embodiment shown in FIG. 7 and has a corresponding function module, and the implementation principle and the technical effect thereof are similar, and details are not described herein again.
  • the second terminal device in this embodiment may be configured with a second timer, where the second timer starts timing after the second member interface is turned on, and the second extended keep-alive message sent by the first terminal device And the second terminal device is configured to set the second timer to start from zero when determining that the received first negotiation information and the second negotiation information are the same as the first negotiation information and the second negotiation information in the second terminal device. Timing.
  • the second terminal device in this embodiment may also determine, according to the timing value of the second timer, whether the link is in an abnormal state, and the second extended keep-alive message may also be configured with a timer. The manner in which the second terminal device is executed and the manner in which the link is processed, and the content and the function of the second extended keep-alive packet are the same as those in the first terminal device in the foregoing embodiment, and details are not described herein again.
  • the first terminal device also has a third member interface
  • the second terminal device The four-member interface is physically connected to the third member interface, and the third member is connected.
  • the third negotiation information of the interface is the same as the first negotiation information.
  • the link between the first member interface and the second member interface is established.
  • the processing module 13 is further set to be in the fourth.
  • the fourth negotiation information of the member interface is the same as the second negotiation information
  • the negotiation process is performed to enable the third member interface and the fourth member interface; on the other hand, the processing module 13 is further configured as the fourth negotiation at the fourth member interface.
  • the execution of the negotiation process fails.
  • the specific application of the PG interface in this embodiment reference may be made to the application scenarios and execution modes shown in FIG. 9 and FIG. 10, and details are not described herein again.
  • the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, the link processing method being implemented when the computer executable instructions are executed.
  • each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function.
  • This application is not limited to any specific combination of hardware and software.
  • the embodiment of the present invention provides a link processing method and device, which solves the link detection method in the related art. As one end of the link may not be aware of the abnormal state of the peer end, a traffic single-pass phenomenon occurs, resulting in a link. Poor reliability.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Environmental & Geological Engineering (AREA)
  • Communication Control (AREA)
  • Telephonic Communication Services (AREA)

Abstract

一种链路处理方法,包括:第一终端设备通过执行协商流程导通第一终端设备的第一成员接口和第二终端设备中与第一成员接口物理连接的第二成员接口;第一终端设备接收第二终端设备按照预置的时间间隔重复发送的第一扩展保活报文,第一扩展保活报文中包括第二终端设备中的第一协商信息和第二协商信息,第二协商信息的内容在第二成员接口异常时发生变化;第一终端设备在确定所接收到的第一协商信息和第二协商信息与第一终端设备中的第一协商信息和第二协商信息不同时,关闭第一成员接口。上述方法解决了相关技术提供的链路检测方法中,链路可靠性较差的问题。

Description

一种链路处理方法和装置 技术领域
本申请涉及但不限于通信技术领域,尤指一种链路处理方法和装置。
背景技术
高级数据链路控制(High-Level Data Link Control,简称为HDLC)是一种在同步网上传输数据、面向比特的数据链路层控制协议,HDLC可以为上层协议提供透明的点对点之间的传输。
用户可以通过HDLC实现低负载的数据传输以及链路检测功能。HDLC协议的报文头只占用四个字节,因此在相同最大接收单元(Maximum-Receive-Unit,简称为MRU)的情况下,可以传送更大的数据报文,尤其对于短报文的传输的情况,例如链路检测报文,具有更大的优越性。HDLC为链路提供定时检测功能,可以通过标准协议中的保活报文(keepalive报文)来实现,只要两端设备中物理相连的成员接口都协议导通(UP)了,就会定时触发保活报文,向对端通知本端的成员接口是协议导通的,如果同时能收到对端的保活报文,就认为对端的成员接口也是协议导通的,即认为链路是正常的,可以进行通信。如图1所示,为相关技术中HDLC协议中保活报文检测链路的原理示意图,路由器A和路由器B为链路的两端设备,图2所示为标准协议中保活报文的格式示意图;在具体实现中,如果本端超过一定的时间没有收到对端的保活报文,那么认为对端的成员接口是异常的,则可以断开链路。然而,在上述链路检测方式中,若对端处于发送正常、接收异常的状态下,本端同样可以接收到对端发送的保活报文,此时,本端感知不到对端的异常状态,会出现流量单通的现象。
然而,相关技术中的链路检测方法,由于链路的一端可能感知不到对端的异常状态而出现流量单通的现象,从而导致链路可靠性较差的问题。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本发明实施例提供了一种链路处理方法和装置,以解决相关技术中的链路检测方法,由于链路的一端可能感知不到对端的异常状态而出现流量单通的现象,从而导致链路可靠性较差的问题。
第一方面,本发明实施例提供一种链路处理方法,包括:
第一终端设备通过执行协商流程导通所述第一终端设备的第一成员接口和第二终端设备中与所述第一成员接口物理连接的第二成员接口,完成所述协商流程的第一终端设备和第二终端设备中均具有所述第一成员接口的第一协商信息和所述第二成员接口的第二协商信息;
所述第一终端设备接收所述第二终端设备按照预置的时间间隔重复发送的第一扩展保活报文,所述第一扩展保活报文中包括所述第二终端设备中的第一协商信息和第二协商信息,所述第二协商信息的内容在所述第二成员接口异常时发生变化;
所述第一终端设备在确定所接收到的第一协商信息和第二协商信息与所述第一终端设备中的第一协商信息和第二协商信息不同时,关闭所述第一成员接口。
在第一方面的第一种可能的实现方式中,所述第一终端设备中设置有第一计时器,所述第一终端设备通过执行协商流程导通所述第一终端设备的第一成员接口和第二终端设备中与所述第一成员接口物理连接的第二成员接口之后,上述链路处理方法还包括:
所述第一终端设备开启所述第一计时器;
所述第一终端设备接收所述第二终端设备发送的第一扩展保活报文之后,上述链路处理方法还包括:
所述第一终端设备在确定所接收到的第一协商信息和第二协商信息与所述第一终端设备中的第一协商信息和第二协商信息相同时,设置所述第一计时器从零开始计时。
在第一方面的第二种可能的实现方式中,上述链路处理方法还包括:所 述第一终端设备按照预置的时间间隔向所述第二终端设备重复发送第二扩展保活报文,所述第二扩展保活报文中包括所述第一终端设备中的第一协商信息和第二协商信息,所述第一协商信息的内容在所述第一成员接口异常时发生变化,所述第二扩展保活报文用于指示所述第二终端设备在确定所接收到的第一协商信息和第二协商信息与所述第二终端设备中的第一协商信息和第二协商信息不同时,关闭所述第二成员接口。
根据第一方面的第二种可能的实现方式,在第三种可能的实现方式中,所述第二终端设备中设置有第二计时器,所述第二计时器在所述第二成员接口导通后开始计时,所述第二扩展保活报文还用于指示所述第二终端设备在确定所接收到的第一协商信息和第二协商信息与所述第二终端设备中的第一协商信息和第二协商信息相同时,设置所述第二计时器从零开始计时。
根据第一方面的第一种可能的实现方式,在第四种可能的实现方式中,所述链路处理方法还包括:
所述第一终端设备在检测到所述第一计时器的计时值大于第一阈值时,关闭所述第一成员接口;
所述第一终端设备向所述第二终端设备发送第三扩展保活报文,所述第三扩展保活报文中不携带所述第一协商信息或者携带内容变化后的第一协商信息,所述第三扩展保活报文用于指示所述第二终端设备关闭所述第二成员接口;
所述第一终端设备重新与所述第二终端设备执行所述协商流程。
根据第一方面、第一方面的第一种到第四种可能的实现方式中任意一种,在第五种可能的实现方式中,所述第一终端设备接收到的所述第一扩展保活报文中还包括第三计时器,所述第三计时器从所述第一扩展保活报文发出时开始计时,所述第一终端设备接收所述第二终端设备按照预置的时间间隔重复发送的第一扩展保活报文之后,上述链路处理方法还包括:
所述第一终端设备在所述第三计时器的计时值小于或等于第二阈值,且确定所接收到的第一协商信息和第二协商信息与所述第一终端设备中的第一协商信息和第二协商信息相同时,保持所述第一成员接口的当前状态;或者,
所述第一终端设备在所述第三计时器的计时值大于第二阈值时,关闭所述第一成员接口;
所述第一终端设备向所述第二终端设备发送第四扩展保活报文,所述第四扩展保活报文中不携带所述第一协商信息或者携带内容变化后的第一协商信息,所述第四扩展保活报文用于指示所述第二终端设备关闭所述第二成员接口;
所述第一终端设备重新与所述第二终端设备执行所述协商流程。
根据第一方面、第一方面的第一种到第四种可能的实现方式中任意一种,在第六种可能的实现方式中,所述第一终端设备通过执行协商流程导通所述第一终端设备的第一成员接口和第二终端设备中与所述第一成员接口物理连接的第二成员接口,包括:
所述第一终端设备向所述第二终端设备发送所述第一协商信息,并指示所述第二终端设备存储所述第一协商信息;
所述第一终端设备接收并存储所述第二终端设备发送的所述第二协商信息;
所述第一终端设备向所述第二终端设备发送第一协商报文,所述第一协商报文中包括所述第一终端设备中的第一协商信息和第二协商信息,所述第一协商报文用于指示所述第二终端设备在确定所接收到的第一协商信息和第二协商信息与所述第二终端设备中的第一协商信息和第二协商信息相同时,导通所述第二成员接口;
所述第一终端设备接收所述第二终端设备发送的第二协商报文,所述第二协商报文中包括所述第二终端设备中的第二协商信息和第一协商信息;
所述第一终端设备在确定所接收到的第一协商信息和第二协商信息与所述第一终端设备中的第一协商信息和第二协商信息相同时,导通所述第一成员接口。
根据第一方面的第六种可能的实现方式,在第七种可能的实现方式中,所述第一终端设备中的第三成员接口与所述第二终端设备中的第四成员接口物理连接,且所述第三成员接口的第三协商信息与所述第一协商信息相同;
所述第一终端设备通过执行协商流程导通所述第一终端设备的第一成员接口和第二终端设备中与所述第一成员接口物理连接的第二成员接口之后,上述链路处理方法还包括:
所述第一终端设备在所述第四成员接口的第四协商信息与所述第二协商信息相同时,执行所述协商流程导通所述第三成员接口和所述第四成员接口;或者,
所述第一终端设备在所述第四成员接口的第四协商信息与所述第二协商信息不同时,执行所述协商流程失败。
第二方面,本发明实施例提供一种链路处理装置,设置于第一终端设备中,所述链路处理装置包括:
协商模块,设置为通过执行协商流程导通所述第一终端设备的第一成员接口和第二终端设备中与所述第一成员接口物理连接的第二成员接口,其中,完成所述协商流程的第一终端设备和第二终端设备中均具有所述第一成员接口的第一协商信息和所述第二成员接口的第二协商信息;
接收模块,设置为接收所述第二终端设备按照预置的时间间隔重复发送的第一扩展保活报文,其中,所述第一扩展保活报文中包括所述第二终端设备中的第一协商信息和第二协商信息,所述第二协商信息的内容在所述第二成员接口异常时发生变化;
处理模块,设置为在确定所述接收模块接收到的第一协商信息和第二协商信息与所述第一终端设备中的第一协商信息和第二协商信息不同时,关闭所述第一成员接口。
在第二方面的第一种可能的实现方式中,所述第一终端设备中设置有第一计时器,所述链路处理装置还包括:开启模块,设置为在所述协商模块通过执行协商流程导通所述第一终端设备的第一成员接口和第二终端设备中与所述第一成员接口物理连接的第二成员接口之后,开启所述第一计时器;
所述处理模块,还设置为在确定所述接收模块接收到的第一协商信息和第二协商信息与所述第一终端设备中的第一协商信息和第二协商信息相同时,设置所述第一计时器从零开始计时。
在第二方面的第二种可能的实现方式中,所述链路处理装置还包括:发送模块,设置为按照预置的时间间隔向所述第二终端设备重复发送第二扩展保活报文,其中,所述第二扩展保活报文中包括所述第一终端设备中的第一协商信息和第二协商信息,所述第一协商信息的内容在所述第一成员接口异常时发生变化,所述第二扩展保活报文用于指示所述第二终端设备在确定所接收到的第一协商信息和第二协商信息与所述第二终端设备中的第一协商信息和第二协商信息不同时,关闭所述第二成员接口。
根据第二方面的第二种可能的实现方式,在第三种可能的实现方式中,所述第二终端设备中设置有第二计时器,所述第二计时器在所述第二成员接口导通后开始计时,所述第二扩展保活报文还用于指示所述第二终端设备在确定所接收到的第一协商信息和第二协商信息与所述第二终端设备中的第一协商信息和第二协商信息相同时,设置所述第二计时器从零开始计时。
根据第二方面的第一种可能的实现方式,在第四种可能的实现方式中,所述处理模块,还设置为在检测到所述第一计时器的计时值大于第一阈值时,关闭所述第一成员接口;
所述链路处理装置还包括:发送模块,设置为向所述第二终端设备发送第三扩展保活报文,其中,所述第三扩展保活报文中不携带所述第一协商信息或者携带内容变化后的第一协商信息,所述第三扩展保活报文用于指示所述第二终端设备关闭所述第二成员接口;
所述协商模块,还设置为重新与所述第二终端设备执行所述协商流程。
根据第二方面、第二方面的第一种到第四种可能的实现方式中任意一种,在第五种可能的实现方式中,所述接收模块接收到的所述第一扩展保活报文中还包括第三计时器,所述第三计时器从所述第一扩展保活报文发出时开始计时;所述处理模块,还设置为在所述第三计时器的计时值小于或等于第二阈值,且确定所述接收模块接收到的第一协商信息和第二协商信息与所述第一终端设备中的第一协商信息和第二协商信息相同时,保持所述第一成员接口的当前状态;或者,
所述处理模块,还设置为在所述第三计时器的计时值大于第二阈值时,关闭所述第一成员接口;
所述发送模块,还设置为向所述第二终端设备发送第四扩展保活报文,其中,所述第四扩展保活报文中不携带所述第一协商信息或者携带内容变化后的第一协商信息,所述第四扩展保活报文用于指示所述第二终端设备关闭所述第二成员接口;
所述协商模块,还设置为重新与所述第二终端设备执行所述协商流程。
根据第二方面、第二方面的第一种到第四种可能的实现方式中任意一种,在第六种可能的实现方式中,所述协商模块包括:
发送单元,设置为向所述第二终端设备发送所述第一协商信息,并指示所述第二终端设备存储所述第一协商信息;
接收单元,设置为接收并存储所述第二终端设备发送的所述第二协商信息;
所述发送单元,还设置为向所述第二终端设备发送第一协商报文,其中,所述第一协商报文中包括所述第一终端设备中的第一协商信息和第二协商信息,所述第一协商报文用于指示所述第二终端设备在确定所接收到的第一协商信息和第二协商信息与所述第二终端设备中的第一协商信息和第二协商信息相同时,导通所述第二成员接口;
所述接收单元,还设置为接收所述第二终端设备发送的第二协商报文,其中,所述第二协商报文中包括所述第二终端设备中的第二协商信息和第一协商信息;
处理单元,设置为在确定所述接收单元接收到的第一协商信息和第二协商信息与所述第一终端设备中的第一协商信息和第二协商信息相同时,导通所述第一成员接口。
根据第二方面的第六种可能的实现方式,在第七种可能的实现方式中,所述第一终端设备中的第三成员接口与所述第二终端设备中的第四成员接口物理连接,且所述第三成员接口的第三协商信息与所述第一协商信息相同;
所述处理模块,还设置为在所述协商模块通过执行协商流程导通所述第一终端设备的第一成员接口和第二终端设备中与所述第一成员接口物理连接的第二成员接口之后,且在所述第四成员接口的第四协商信息与所述第二协 商信息相同时,执行所述协商流程导通所述第三成员接口和所述第四成员接口;或者,
所述处理模块,还设置为在所述协商模块通过执行协商流程导通所述第一终端设备的第一成员接口和第二终端设备中与所述第一成员接口物理连接的第二成员接口之后,且在所述第四成员接口的第四协商信息与所述第二协商信息不同时,执行所述协商流程失败。
本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述链路处理方法。
本发明实施例提供的链路处理方法和装置,第一终端设备通过与第二终端设备执行协商流程导通物理连接的第一成员接口和第二成员接口,在协商流程完成后通过接收第二终端设备重复发送的第一扩展保活报文,确定第二终端设备的第二成员接口的状态是否出现异常,实现了两个终端设备在建立完成链路连接后,可以实时感知对端的成员接口是否出现异常,并且在异常时关闭本端的成员接口,从而避免了链路流量单通的现象;本发明实施例提供的方法解决了相关技术中的链路检测方法,由于链路的一端可能感知不到对端的异常状态而出现流量单通的现象,从而导致链路可靠性较差的问题。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
附图用来提供对本申请技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本申请的技术方案,并不构成对本申请技术方案的限制。
图1为相关技术中HDLC协议中保活报文检测链路的原理示意图;
图2为标准协议中保活报文的格式示意图;
图3为本发明实施例提供的一种链路处理方法的流程图;
图4为图3所示实施例提供的链路处理方法的一种应用场景示意图;
图5为图3所示实施例提供的链路处理方法中协商流程的示意图;
图6为本发明实施例提供的另一种链路处理方法的流程图;
图7为本发明实施例提供的又一种链路处理方法的流程图;
图8为图7所示实施例提供的链路处理方法的一种第一扩展保活报文的格式示意图;
图9为本发明实施例所提供的链路处理方法的一种应用场景示意图;
图10为本发明实施例所提供的链路处理方法的另一种应用场景示意图;
图11为本发明实施例提供的一种链路处理装置的结构示意图;
图12为本发明实施例提供的另一种链路处理装置的结构示意图;
图13为本发明实施例提供的又一种链路处理装置的结构示意图。
本发明的实施方式
下文中将结合附图对本发明实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
下面通过具体的实施例对本申请的技术方案进行详细说明,本申请以下实施例中的第一终端设备和第二终端设备例如可以为路由器,任一终端设备的成员接口可以为同步光纤网络(Synchronous Optical Network,简称为:SONET)/同步数字体系(Synchronous Digital Hierarchy,简称为:SDH)承载的分组信号(Packet Over SONET/SDH,简称为:POS)接口。本申请提供以下几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。
图3为本发明实施例提供的一种链路处理方法的流程图。本实施例提供的链路处理方法适用于通过HDLC协议进行链路检测的情况中,该方法可以由链路处理装置执行,该链路处理装置可以通过硬件和软件结合的方式来实现,该装置可以集成在第一终端设备的处理器中,供处理器调用使用。如图3所示,本实施例的方法可以包括以下步骤:
步骤S110,第一终端设备通过执行协商流程导通该第一终端设备的第一 成员接口和第二终端设备中与该第一成员接口物理连接的第二成员接口,完成协商流程的第一终端设备和第二终端设备中均具有第一成员接口的第一协商信息和第二成员接口的第二协商信息。
图4为图3所示实施例提供的链路处理方法的一种应用场景示意图,图4中的路由器A为第一终端设备,路由器B为第二终端设备,A1为第一成员接口,B1为第二成员接口,其中,A1和B1均为上述POS接口,并且A1和B1是物理连接的。在本实施例中,第一终端设备通过执行协商流程导通第一成员接口和第二成员接口,此时,第一成员接口与第二成员接口之间的链路是导通的,可以进行数据传输,以下说明本发明实施例中的协商流程。
图5所示为图3所示实施例提供的链路处理方法中协商流程的示意图;即本实施例中的步骤S110包括:
步骤S1101,第一终端设备向第二终端设备发送第一协商信息,并指示第二终端设备存储该第一协商信息。
步骤S1102,第一终端设备接收并存储第二终端设备发送的第二协商信息。
在本实施例中,第一协商信息可以为第一成员接口的本地协商信息(Local consultation information,简称为:LCI),若第一成员接口没有配置LCI,第一协商信息还可以为第一成员接口的主机名称(hostname)或接口名称(interface name);类似地,第二协商信息也可以为第二成员接口的LCI,或者为第二成员接口的主机名称或接口名称。
步骤S1103,第一终端设备向第二终端设备发送第一协商报文,该第一协商报文中包括第一终端设备中的第一协商信息和第二协商信息,该第一协商报文用于指示第二终端设备在确定所接收到的第一协商信息和第二协商信息与第二终端设备中的第一协商信息和第二协商信息相同时,导通第二成员接口。
步骤S1104,第一终端设备接收第二终端设备发送的第二协商报文,该第二协商报文中包括第二终端设备中的第二协商信息和第一协商信息。
步骤S1105,第一终端设备在确定所接收到的第一协商信息和第二协商 信息与第一终端设备中的第一协商信息和第二协商信息相同时,导通第一成员接口。
在本实施例中,以第一终端设备为例予以说明,在其接收到第二协商报文后,但存储第二协商信息失败时,可以从头开始执行上述协商流程。并且,在上述步骤中,不限制步骤S1101与步骤S1102,以及步骤S1103与步骤S1104以及步骤S1105的执行顺序,即不限制协商信息或者协商报文是先由哪个终端设备发送的,只要可以实现每个终端设备中均具有第一协商信息和第二协商信息,并且可以在接收到对方发送的协商报文后导通本端的成员接口,就可以完成上述协商流程。
需要说明的是,本发明实施例中所述的导通成员接口或关闭成员接口均指协议导通(Up)或协议关闭(Down),是在物理连接的基础上进行协议导通或协议关闭的。
步骤S120,第一终端设备接收第二终端设备按照预置的时间间隔重复发送的第一扩展保活报文,该第一扩展保活报文中包括第二终端设备中的第一协商信息和第二协商信息,该第二协商信息的内容在第二成员接口异常时发生变化。
步骤S130,第一终端设备在确定所接收到的第一协商信息和第二协商信息与第一终端设备中的第一协商信息和第二协商信息不同时,关闭第一成员接口。
在本实施例中,第一成员接口和第二成员接口之间的链路协议导通之后,需要执行扩展保活报文的交互,以实时检测两端设备的成员接口是否有异常状态。在具体实现中,若第二成员接口出现异常状态,例如背景技术中描述的发送正常、接收异常,通过相关技术中的链路检测方式,第一终端设备感知不到第二终端设备中第二成员接口的异常状态,链路出现流量单通的现象,即第一终端设备向第二终端设备发送的数据是无法接收的;相比之下,本实施例中,第二成员接口异常时会改变第二协商信息的内容,即此时第二终端发送的第一扩展保活报文中的第二协商信息与第一终端设备中存储的第二协商信息的内容不同,此时,第一终端设备会关闭第一成员接口,即断开链路。链路断开后,第一终端设备可以重新与第二终端设备执行上述图5所示协商 流程。
类似地,第一终端设备也可以通过向第二终端设备发送第二扩展保活报文的方式,使得第二终端设备获知第一成员接口的状态,具体方式为:第一终端设备按照预置的时间间隔向第二终端设备重复发送第二扩展保活报文,该第二扩展保活报文中包括第一终端设备中的第一协商信息和第二协商信息,该第一协商信息的内容在第一成员接口异常时发生变化,该第二扩展保活报文用于指示第二终端设备在确定所接收到的第一协商信息和第二协商信息与第二终端设备中的第一协商信息和第二协商信息不同时,关闭第二成员接口,即断开链路,在链路断开后,第一终端设备同样可以重新与第二终端设备执行上述图5所示协商流程。
本实施例所提供的链路处理方法,第一终端设备通过与第二终端设备执行协商流程导通物理连接的第一成员接口和第二成员接口,在协商流程完成后通过接收第二终端设备重复发送的第一扩展保活报文,确定第二终端设备的第二成员接口的状态是否出现异常,实现了两个终端设备在建立完成链路连接后,可以实时感知对端的成员接口是否出现异常,并且在异常时关闭本端的成员接口,从而避免了链路流量单通的现象;本实施例提供的方法解决了相关技术中的链路检测方法,由于链路的一端可能感知不到对端的异常状态而出现流量单通的现象,从而导致链路可靠性较差的问题。
图6为本发明实施例提供的另一种链路处理方法的流程图,本实施例中的第一终端设备中还设置有第一计时器,在上述图3所示实施例的基础上,步骤S110之后,本实施例的链路处理方法还包括:步骤S111,第一终端设备开启第一计时器;步骤S120之后,本实施例的链路处理方法还可以包括:步骤S140,第一终端设备在确定所接收到的第一协商信息和第二协商信息与第一终端设备中的第一协商信息和第二协商信息相同时,设置该第一计时器从零开始计时。需要说明的是,本实施例中步骤S130和步骤S140为选择性执行的。
本实施例中的第一计时器用于第一终端设备在接收到第一扩展保活报文后,并且确定出第二成员接口状态为正常时,从零开始计时,即只要第一计时器循环执行上述步骤,其计时值就会在一定的范围内;相应地,第二成员 接口的状态异常时同样可以通过该第一计时器的计时值体现出来,具体实现方式可以为:步骤S150,第一终端设备在检测到第一计时器的计时值大于第一阈值时,关闭第一成员接口;步骤S160,第一终端设备向第二终端设备发送第三扩展保活报文,该第三扩展保活报文中不携带第一协商信息或者携带内容变化后的第一协商信息,该第三扩展保活报文用于指示第二终端设备关闭第二成员接口;步骤S170,第一终端设备重新与第二终端设备执行协商流程。本实施例中第一阈值例如可以为计时器的3个计时周期,该计时周期可以为设计人员根据对链路的敏感性需求而设置的,如果计时周期没有设置,可以默认为与HDLC协议中的保护报文的计时周期一样,通常为10秒(s)。
当本实施例中的第一终端设备长期未接收到第二终端设备发送的第一扩展保活报文,认为链路出现异常问题,在其向第二终端设备发送第三扩展保活报文时,可以不携带第一协商信息,或者改变第一协商信息的内容,这样,第二终端设备接收到第三扩展保活报文时,获得的结果必然为接收到的第一协商信息与第二终端设备中存储的第一协商信息不同,因此,第二终端设备也关闭第二成员接口。本实施例通过终端设备中设置的第一计时器,在第一成员接口和第二成员接口的链路协商成功后,并且由于某种原因第一成员接口处于关闭状态时,可以实现将该状态通知给第二终端设备,则可以关闭第二成员接口,这样就保证了物理连接的成员接口两端的状态一致,进一步地避免链路发生单通现象;并且在链路两端的成员接口都是关闭状态时,可以重新进入最初的协商流程。
需要说明的是,本实施例中的步骤S150至步骤S170可以是在步骤S111之后执行,第一终端设备有可能在重复接收了多次第一扩展保活报文后,检查到第一计时器的计时值超时,也可以在完成协商流程并且第一计时器开启后,就未接收到第一扩展保活报文,从而执行步骤S150至步骤S170。图6所示实施例以步骤S150至步骤S170在步骤S140之后执行为例予以示出。并且图6所示实施例中的步骤S130、步骤S140和步骤S150至步骤S170为选择性执行的,步骤S130后同样可以执行步骤S170。
在上述实施例的基础上,链路的状态还可以通过扩展保活报文的内容来告知终端设备。图7所示为本发明实施例提供的又一种链路处理方法的流程 图,图7以在上述图3所示实施例的基础上为例予以示出,本实施例的步骤S120中第一终端设备接收到的第一扩展保活报文还包括第三计时器,该第三计时器从第一扩展保活报文发出时开始计时,在一种可能的实现方式中,本实施例提供的方法在步骤S120之后还包括:步骤S140,第一终端设备在第三计时器的计时值小于或等于第二阈值,且确定所接收到的第一协商信息和第二协商信息与第一终端设备中的第一协商信息和第二协商信息相同时,保持第一成员接口的当前状态,若第一终端设备中具有第一计时器,且该第一计时器已开启,同样可以设置第一计时器从零开始计时;在另一种可能的实现方式中,本实施例提供的方法在步骤S120之后还包括:步骤S150,第一终端设备在第三计时器的计时值大于第二阈值时,关闭第一成员接口;步骤S160,第一终端设备向第二终端设备发送第四扩展保活报文,第四扩展保活报文中不携带第一协商信息或者携带内容变化后的第一协商信息,第四扩展保活报文用于指示第二终端设备关闭第二成员接口;步骤S170,第一终端设备重新与第二终端设备执行协商流程。
图8所示为图7所示实施例提供的链路处理方法的一种第一扩展保活报文的格式示意图,如图8所示,本实施例中的第一扩展保活报文中包括本端协商信息(即第二协商信息)、对端协商信息(即第一协商信息)和计时器,其中,每项内容都由类型(Type),长度(Length)和值(Value)(简称为:TLV)组成,举例来说,本端协商信息是第二终端设备中预置的,对端协商信息是第二终端设备在执行协商流程时进行填充的,若未填充成功则为0,计时器在第二终端设备发送该第一扩展保活报文时开始计时;该第一扩展保活报文还包括标准协议中的保活报文的标准格式,即图2所示的内容。
需要说明的是,本实施例中的步骤S150至步骤S170与图6所示实施例中的步骤S150至步骤S170的实现方式和技术效果相同,故在此不再赘述;另外,本实施例中的步骤S130、步骤S140和步骤S150至步骤S170为选择性执行的,可以为第一终端设备根据第一扩展保活报文中的内容所做出的不同选择,并且步骤S130后同样可以执行步骤S170。
类似地,本实施例中的第二终端设备中可以设置有第二计时器,该第二计时器在第二成员接口导通后开始计时,第一终端设备发送的第二扩展保活 报文还用于指示第二终端设备在确定所接收到的第一协商信息和第二协商信息与第二终端设备中的第一协商信息和第二协商信息相同时,设置第二计时器从零开始计时。另外,本实施例中的第二终端设备也可以根据第二计时器的计时值判断出链路是否出现异常状态,并且,第二扩展保活报文中也可以设置有定时器,本实施例中第二终端设备的执行方式和对链路进行处理的方式,以及第二扩展保活报文的内容和作用均与上述实施例中第一终端设备相同,故在此不再赘述。
本发明实施例在具体实现中,为了提高链路的通信能力,可以将多个POS接口捆绑为一个接口,称为成员组(POS-Group)接口(以下简称为PG接口),PG接口的总和是每个成员接口的带宽之和,通过这种方式,可以增加接口的带宽;例如第一终端设备中还具有第三成员接口,第二终端设备中的第四成员接口与第三成员接口物理连接,并且第三成员接口的第三协商信息与第一协商信息相同,则在上述实施例中已经建立了第一成员接口和第二成员接口的链路基础上,若第四成员接口的第四协商信息与第二协商信息相同时,第一终端设备可以再次执行协商流程导通第三成员接口和第四成员接口;若第四协商信息与第二协商信息不同时,则无法实现第三成员接口与第四成员接口间链路的建立。
需要说明的是,本实施例中的第一成员接口与第三成员接口为一个捆绑的PG接口,第二成员接口与第四成员接口为一个捆绑的PG接口,通过PG接口可以实现负载分担,PG接口将流量分散到不同的链路上,最后到达统一目的地,这样可以避免流量都走同一条路径造成的流量阻塞。另外,PG接口还可以提高链路的可靠性,在PG接口中,如果某个成员接口状态异常,流量还能依靠其他的成员接口进行传输。
以下通过一些具体事例对PG接口的应用进行说明。举例来说,图9所示为本发明实施例所提供的链路处理方法的一种应用场景示意图,例如图9中的路由器A为第一终端设备,路由器B为第二终端设备,路由器A的HDLC的捆绑口PG1包括三个成员接口A1、A2和A3,路由器B的HDLC的捆绑口PG2包括三个成员接口B1、B2和B3,物理连接关系为A1连B1,A2连B2,A3连B3,其中,成员接口A1、A2和A3的LCI信息相同,B1和B2 的LCI信息相同,B3的LCI信息不等于B1的LCI信息。一方面,假设A1与B1间的链路先协商成功,B2发送给A2的LCI信息,等于激活成员接口B1的LCI信息,则A2与B2间的链路协商成功,B3发给A3的LCI信息,不等于激活成员接口B1的LCI信息,A3与B3间的链路协商失败。另一方面,在上述应用场景中修改B2成员接口的LCI信息为不等于B1的LCI信息,此后,A2收到的B2发来的第一扩展保活报文中的B2端的LCI信息与路由器A中保存的B2的LCI信息不同,路由器A协议关闭成员接口A2,并清除已保存的B2的LCI的信息;同样的,若B2收到的A2发来的LCI的信息也与路由器B中保存的A2的LCI信息不同,路由器B协议关闭成员接口B2,并清除已保存的A2的LCI的信息,随后进入最初的协商流程重新进行链路协商。
再举例来说,图10所示为本发明实施例所提供的链路处理方法的另一种应用场景示意图,例如图10中的路由器A为第一终端设备,路由器B和路由器C均为第二终端设备,路由器A的HDLC的捆绑口PG1包括四个成员接口A1、A2、A3和A4,路由器B的HDLC的捆绑口PG2包括两个成员接口B1和B2,路由器C的HDLC的捆绑口PG3包括两个成员接口C1和C2,物理连接关系为A1连B1,A2连B2,A3连C1,A4连接C2,且A1、A2、A3和A4的LCI信息相同,B1和B2的LCI信息相同,C1和C2的LCI信息相同,但是路由器B和路由器C的LCI信息不同。若三个设备同时通过本发明实施例提供的协商流程进行链路协商,路由器A收到路由器B和路由器C发来的LCI信息,采取竞争机制,路由器B和路由器C哪个设备的子链路先完成上述图5中的协商流程,哪个设备的成员接口先协商成功,例如路由器C先与路由器A完成上述协商流程,则路由器B的链路就不能协商成功。
需要说明的是,本发明实施例提供的链路处理方法,可以对终端设备的成员接口或PG接口设置扩展协议开关,当该扩展协议开关为打开时,执行上述实施例中所述的链路处理方法,当该扩展协议开关为关闭时,可以采用相关技术中的方法进行链路建立和检测。另外,本发明实施例中的第二终端设备执行协商流程,以及在链路协商成功后进行链路检测的方式与第一终端设备的执行方式相同,在此不再赘述。
图11为本发明实施例提供的一种链路处理装置的结构示意图。本实施例提供的链路处理装置适用于通过HDLC协议进行链路检测的情况中,该链路处理装置通过硬件和软件结合的方式来实现,该装置可以集成在第一终端设备的处理器中,供处理器调用使用。如图11所示,本实施例的链路处理装置包括:协商模块11、接收模块12以及处理模块13。
其中,协商模块11,设置为通过执行协商流程导通第一终端设备的第一成员接口和第二终端设备中与第一成员接口物理连接的第二成员接口,其中,完成协商流程的第一终端设备和第二终端设备中均具有第一成员接口的第一协商信息和第二成员接口的第二协商信息。
本实施例同样可以应用于图4所示的应用场景中,在本实施例中,执行完协商流程后,第一成员接口与第二成员接口之间的链路是协议导通的,可以进行数据传输,在下列实施例中具体说明本实施例中的协商流程。
需要说明的是,本发明实施例中所述的导通成员接口或关闭成员接口均指协议导通或协议关闭,是在物理连接的基础上进行协议导通或协议关闭的。
接收模块12,设置为接收第二终端设备按照预置的时间间隔重复发送的第一扩展保活报文,其中,该第一扩展保活报文中包括第二终端设备中的第一协商信息和第二协商信息,第二协商信息的内容在第二成员接口异常时发生变化。
处理模块13,设置为在确定接收模块12接收到的第一协商信息和第二协商信息与第一终端设备中的第一协商信息和第二协商信息不同时,关闭第一成员接口。
在本实施例中,第二成员接口异常时会改变第二协商信息的内容,即此时第二终端发送的第一扩展保活报文中的第二协商信息与第一终端设备中存储的第二协商信息的内容不同,此时,第一终端设备会关闭第一成员接口,即断开链路。链路断开后,协商模块11可以重新与第二终端设备执行上述图5所示协商流程。
类似地,第一终端设备也可以通过向第二终端设备发送第二扩展保活报文的方式,使得第二终端设备获知第一成员接口的状态,具体方式为:本实施例提供的链路处理装置还包括:发送模块14,设置为按照预置的时间间隔 向第二终端设备重复发送第二扩展保活报文,其中,该第二扩展保活报文中包括第一终端设备中的第一协商信息和第二协商信息,第一协商信息的内容在第一成员接口异常时发生变化,该第二扩展保活报文用于指示第二终端设备在确定所接收到的第一协商信息和第二协商信息与第二终端设备中的第一协商信息和第二协商信息不同时,关闭第二成员接口。
本发明实施例提供的链路处理装置用于执行图3所示实施例提供的链路处理方法,具备相应的功能模块,其实现原理和技术效果类似,此处不再赘述。
图12为本发明实施例提供的另一种链路处理装置的结构示意图,通过图12所示实施例说明本发明实施例中协商流程的执行过程,协商模块11包括:
发送单元15,设置为向第二终端设备发送第一协商信息,并指示第二终端设备存储该第一协商信息。
接收单元16,设置为接收并存储第二终端设备发送的第二协商信息。
发送单元15,还设置为向第二终端设备发送第一协商报文,其中,该第一协商报文中包括第一终端设备中的第一协商信息和第二协商信息,该第一协商报文用于指示第二终端设备在确定所接收到的第一协商信息和第二协商信息与第二终端设备中的第一协商信息和第二协商信息相同时,导通第二成员接口。
接收单元16,还设置为接收第二终端设备发送的第二协商报文,其中,该第二协商报文中包括第二终端设备中的第二协商信息和第一协商信息。
处理单元17,设置为在确定接收单元16接收到的第一协商信息和第二协商信息与第一终端设备中的第一协商信息和第二协商信息相同时,导通第一成员接口。
在本实施例中,第一终端设备在接收到第二协商报文后,但存储第二协商信息失败时,可以从头开始执行上述协商流程。并且,在上述协商流程的过程中,不限制协商信息或者协商报文是先由哪个终端设备发送的,只要可以实现每个终端设备中均具有第一协商信息和第二协商信息,并且可以在接收到对方发送的协商报文后导通本端的成员接口,就可以完成上述协商流程。
需要说明的是,本发明实施例中的模块和单元都是实现特定功能的虚拟模块和单元,本实施例中的发送单元15与图11中的发送模块14,接收单元16与接收模块12,处理单元17与处理模块13可以是由相同的实体器件实现的,也可以是由不同的实体器件实现的;例如发送单元15与发送模块14可以为同一个发送器,接收单元16与接收模块12也可以为同一个接收器,处理单元17与处理模块13还可以为同一个处理器。
图13为本发明实施例提供的又一种链路处理装置的结构示意图,本实施例中的第一终端设备中还设置有第一计时器,在上述图11所示实施例的基础上,本实施例中的链路处理装置还包括:开启模块18,设置为在协商模块11通过执行协商流程导通第一终端设备的第一成员接口和第二终端设备中与第一成员接口物理连接的第二成员接口之后,开启第一计时器;处理模块13,还设置为在确定接收模块12接收到的第一协商信息和第二协商信息与第一终端设备中的第一协商信息和第二协商信息相同时,设置第一计时器从零开始计时。需要说明的是,本实施例中处理模块13关闭第一成员接口和处理模块13设置第一计时器从零开始计时为选择性执行的。
本实施例中的第一计时器用于第一终端设备在接收到第一扩展保活报文后,并且确定出第二成员接口状态为正常时,从零开始计时,即只要第一计时器循环执行上述步骤,其计时值就会在一定的范围内;相应地,第二成员接口的状态异常时同样可以通过该第一计时器的计时值体现出来,具体实现方式可以为:处理模块13,还设置为在检测到第一计时器的计时值大于第一阈值时,关闭第一成员接口;发送模块14,设置为向第二终端设备发送第三扩展保活报文,其中,该第三扩展保活报文中不携带第一协商信息或者携带内容变化后的第一协商信息,该第三扩展保活报文用于指示第二终端设备关闭第二成员接口;协商模块11,还设置为重新与第二终端设备执行协商流程。需要说明的是,上述处理过程可以在第一计时器开启后执行。
本发明实施例提供的链路处理装置用于执行图6所示实施例提供的链路处理方法,具备相应的功能模块,其实现原理和技术效果类似,此处不再赘述。
在上述实施例的基础上,链路的状态还可以通过扩展保活报文的内容来 告知终端设备,可选地,接收模块12接收到的第一扩展保活报文中还包括第三计时器,该第三计时器从第一扩展保活报文发出时开始计时;在第一种可能的实现方式中,处理模块13,还设置为在第三计时器的计时值小于或等于第二阈值,且确定接收模块12接收到的第一协商信息和第二协商信息与第一终端设备中的第一协商信息和第二协商信息相同时,保持第一成员接口的当前状态,在第一终端设备中具有第一计时器的情况下,同样可以设置第一计时器从零开始计时;在第二种可能的实现方式中,处理模块13,还设置为在第三计时器的计时值大于第二阈值时,关闭第一成员接口;此时,发送模块14,还设置为向第二终端设备发送第四扩展保活报文,其中,该第四扩展保活报文中不携带第一协商信息或者携带内容变化后的第一协商信息,该第四扩展保活报文用于指示第二终端设备关闭第二成员接口;协商模块11,还设置为重新与第二终端设备执行协商流程。需要说明的是,本实施例中的第一扩展保活报文的格式也可以参照图8所示格式,其内容和作用均与上述实施例相同,故在此不再赘述。
本发明实施例提供的链路处理装置用于执行图7所示实施例提供的链路处理方法,具备相应的功能模块,其实现原理和技术效果类似,此处不再赘述。
类似地,本实施例中的第二终端设备中可以设置有第二计时器,该第二计时器在第二成员接口导通后开始计时,第一终端设备发送的第二扩展保活报文还用于指示第二终端设备在确定所接收到的第一协商信息和第二协商信息与第二终端设备中的第一协商信息和第二协商信息相同时,设置第二计时器从零开始计时。另外,本实施例中的第二终端设备也可以根据第二计时器的计时值判断出链路是否出现异常状态,并且,第二扩展保活报文中也可以设置有定时器,本实施例中第二终端设备的执行方式和对链路进行处理的方式,以及第二扩展保活报文的内容和作用均与上述实施例中第一终端设备相同,故在此不再赘述。
本发明实施例在具体实现中,为了提高链路的通信能力,同样可以将多个POS接口捆绑为一个PG接口;例如第一终端设备中还具有第三成员接口,第二终端设备中的第四成员接口与第三成员接口物理连接,并且第三成员接 口的第三协商信息与第一协商信息相同,则在上述实施例中已经建立了第一成员接口和第二成员接口的链路基础上,一方面,处理模块13,还设置为在第四成员接口的第四协商信息与第二协商信息相同时,执行协商流程导通第三成员接口和第四成员接口;另一方面,处理模块13,还设置为在第四成员接口的第四协商信息与第二协商信息不同时,执行协商流程失败。本实施例中PG接口的具体应用可以参考上述图9和图10所示的应用场景和执行方式,故在此不再赘述。
本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述链路处理方法。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本申请不限制于任何特定形式的硬件和软件的结合。
虽然本申请所揭露的实施方式如上,但所述的内容仅为便于理解本申请而采用的实施方式,并非用以限定本申请。任何本申请所属领域内的技术人员,在不脱离本申请所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本申请的专利保护范围,仍须以所附的权利要求书所界定的范围为准。
工业实用性
本申请实施例提供一种链路处理方法和装置,解决了相关技术中的链路检测方法,由于链路的一端可能感知不到对端的异常状态而出现流量单通的现象,从而导致链路可靠性较差的问题。

Claims (16)

  1. 一种链路处理方法,包括:
    第一终端设备通过执行协商流程导通所述第一终端设备的第一成员接口和第二终端设备中与所述第一成员接口物理连接的第二成员接口,完成所述协商流程的第一终端设备和第二终端设备中均具有所述第一成员接口的第一协商信息和所述第二成员接口的第二协商信息;
    所述第一终端设备接收所述第二终端设备按照预置的时间间隔重复发送的第一扩展保活报文,所述第一扩展保活报文中包括所述第二终端设备中的第一协商信息和第二协商信息,所述第二协商信息的内容在所述第二成员接口异常时发生变化;
    所述第一终端设备在确定所接收到的第一协商信息和第二协商信息与所述第一终端设备中的第一协商信息和第二协商信息不同时,关闭所述第一成员接口。
  2. 根据权利要求1所述的链路处理方法,其中,所述第一终端设备中设置有第一计时器;
    所述第一终端设备通过执行协商流程导通所述第一终端设备的第一成员接口和第二终端设备中与所述第一成员接口物理连接的第二成员接口之后,所述链路处理方法还包括:
    所述第一终端设备开启所述第一计时器;
    所述第一终端设备接收所述第二终端设备发送的第一扩展保活报文之后,所述链路处理方法还包括:
    所述第一终端设备在确定所接收到的第一协商信息和第二协商信息与所述第一终端设备中的第一协商信息和第二协商信息相同时,设置所述第一计时器从零开始计时。
  3. 根据权利要求1所述的链路处理方法,所述链路处理方法还包括:所述第一终端设备按照预置的时间间隔向所述第二终端设备重复发送第二扩展保活报文,所述第二扩展保活报文中包括所述第一终端设备中的第一协商信息和第二协商信息,所述第一协商信息的内容在所述第一成员接口异常时 发生变化,所述第二扩展保活报文用于指示所述第二终端设备在确定所接收到的第一协商信息和第二协商信息与所述第二终端设备中的第一协商信息和第二协商信息不同时,关闭所述第二成员接口。
  4. 根据权利要求3所述的链路处理方法,其中,所述第二终端设备中设置有第二计时器,所述第二计时器在所述第二成员接口导通后开始计时,所述第二扩展保活报文还用于指示所述第二终端设备在确定所接收到的第一协商信息和第二协商信息与所述第二终端设备中的第一协商信息和第二协商信息相同时,设置所述第二计时器从零开始计时。
  5. 根据权利要求2所述的链路处理方法,所述链路处理方法还包括:
    所述第一终端设备在检测到所述第一计时器的计时值大于第一阈值时,关闭所述第一成员接口;
    所述第一终端设备向所述第二终端设备发送第三扩展保活报文,所述第三扩展保活报文中不携带所述第一协商信息或者携带内容变化后的第一协商信息,所述第三扩展保活报文用于指示所述第二终端设备关闭所述第二成员接口;
    所述第一终端设备重新与所述第二终端设备执行所述协商流程。
  6. 根据权利要求1至5中任一项所述的链路处理方法,其中,所述第一终端设备接收到的所述第一扩展保活报文中还包括第三计时器,所述第三计时器从所述第一扩展保活报文发出时开始计时;
    所述第一终端设备接收所述第二终端设备按照预置的时间间隔重复发送的第一扩展保活报文之后,所述链路处理方法还包括:
    所述第一终端设备在所述第三计时器的计时值小于或等于第二阈值,且确定所接收到的第一协商信息和第二协商信息与所述第一终端设备中的第一协商信息和第二协商信息相同时,保持所述第一成员接口的当前状态;或者,
    所述第一终端设备在所述第三计时器的计时值大于第二阈值时,关闭所述第一成员接口;
    所述第一终端设备向所述第二终端设备发送第四扩展保活报文,所述第四扩展保活报文中不携带所述第一协商信息或者携带内容变化后的第一协商 信息,所述第四扩展保活报文用于指示所述第二终端设备关闭所述第二成员接口;
    所述第一终端设备重新与所述第二终端设备执行所述协商流程。
  7. 根据权利要求1至5中任一项所述的链路处理方法,其中,所述第一终端设备通过执行协商流程导通所述第一终端设备的第一成员接口和第二终端设备中与所述第一成员接口物理连接的第二成员接口,包括:
    所述第一终端设备向所述第二终端设备发送所述第一协商信息,并指示所述第二终端设备存储所述第一协商信息;
    所述第一终端设备接收并存储所述第二终端设备发送的所述第二协商信息;
    所述第一终端设备向所述第二终端设备发送第一协商报文,所述第一协商报文中包括所述第一终端设备中的第一协商信息和第二协商信息,所述第一协商报文用于指示所述第二终端设备在确定所接收到的第一协商信息和第二协商信息与所述第二终端设备中的第一协商信息和第二协商信息相同时,导通所述第二成员接口;
    所述第一终端设备接收所述第二终端设备发送的第二协商报文,所述第二协商报文中包括所述第二终端设备中的第二协商信息和第一协商信息;
    所述第一终端设备在确定所接收到的第一协商信息和第二协商信息与所述第一终端设备中的第一协商信息和第二协商信息相同时,导通所述第一成员接口。
  8. 根据权利要求7所述的链路处理方法,其中,所述第一终端设备中的第三成员接口与所述第二终端设备中的第四成员接口物理连接,且所述第三成员接口的第三协商信息与所述第一协商信息相同;
    所述第一终端设备通过执行协商流程导通所述第一终端设备的第一成员接口和第二终端设备中与所述第一成员接口物理连接的第二成员接口之后,所述链路处理方法还包括:
    所述第一终端设备在所述第四成员接口的第四协商信息与所述第二协商信息相同时,执行所述协商流程导通所述第三成员接口和所述第四成员接 口;或者,
    所述第一终端设备在所述第四成员接口的第四协商信息与所述第二协商信息不同时,执行所述协商流程失败。
  9. 一种链路处理装置,设置于第一终端设备中,所述链路处理装置包括:
    协商模块,设置为通过执行协商流程导通所述第一终端设备的第一成员接口和第二终端设备中与所述第一成员接口物理连接的第二成员接口,其中,完成所述协商流程的第一终端设备和第二终端设备中均具有所述第一成员接口的第一协商信息和所述第二成员接口的第二协商信息;
    接收模块,设置为接收所述第二终端设备按照预置的时间间隔重复发送的第一扩展保活报文,其中,所述第一扩展保活报文中包括所述第二终端设备中的第一协商信息和第二协商信息,所述第二协商信息的内容在所述第二成员接口异常时发生变化;
    处理模块,设置为在确定所述接收模块接收到的第一协商信息和第二协商信息与所述第一终端设备中的第一协商信息和第二协商信息不同时,关闭所述第一成员接口。
  10. 根据权利要求9所述的链路处理装置,其中,所述第一终端设备中设置有第一计时器,
    所述链路处理装置还包括:开启模块,设置为在所述协商模块通过执行协商流程导通所述第一终端设备的第一成员接口和第二终端设备中与所述第一成员接口物理连接的第二成员接口之后,开启所述第一计时器;
    所述处理模块,还设置为在确定所述接收模块接收到的第一协商信息和第二协商信息与所述第一终端设备中的第一协商信息和第二协商信息相同时,设置所述第一计时器从零开始计时。
  11. 根据权利要求9所述的链路处理装置,所述链路处理装置还包括:发送模块,设置为按照预置的时间间隔向所述第二终端设备重复发送第二扩展保活报文,其中,所述第二扩展保活报文中包括所述第一终端设备中的第一协商信息和第二协商信息,所述第一协商信息的内容在所述第一成员接口 异常时发生变化,所述第二扩展保活报文用于指示所述第二终端设备在确定所接收到的第一协商信息和第二协商信息与所述第二终端设备中的第一协商信息和第二协商信息不同时,关闭所述第二成员接口。
  12. 根据权利要求11所述的链路处理装置,其中,所述第二终端设备中设置有第二计时器,所述第二计时器在所述第二成员接口导通后开始计时,所述第二扩展保活报文还用于指示所述第二终端设备在确定所接收到的第一协商信息和第二协商信息与所述第二终端设备中的第一协商信息和第二协商信息相同时,设置所述第二计时器从零开始计时。
  13. 根据权利要求10所述的链路处理装置,其中,所述处理模块,还设置为在检测到所述第一计时器的计时值大于第一阈值时,关闭所述第一成员接口;
    所述链路处理装置还包括:发送模块,设置为向所述第二终端设备发送第三扩展保活报文,其中,所述第三扩展保活报文中不携带所述第一协商信息或者携带内容变化后的第一协商信息,所述第三扩展保活报文用于指示所述第二终端设备关闭所述第二成员接口;
    所述协商模块,还设置为重新与所述第二终端设备执行所述协商流程。
  14. 根据权利要求9至13中任一项所述的链路处理装置,其中,所述接收模块接收到的所述第一扩展保活报文中还包括第三计时器,所述第三计时器从所述第一扩展保活报文发出时开始计时;
    所述处理模块,还设置为在所述第三计时器的计时值小于或等于第二阈值,且确定所述接收模块接收到的第一协商信息和第二协商信息与所述第一终端设备中的第一协商信息和第二协商信息相同时,保持所述第一成员接口的当前状态;或者,
    所述处理模块,还设置为在所述第三计时器的计时值大于第二阈值时,关闭所述第一成员接口;
    所述发送模块,还设置为向所述第二终端设备发送第四扩展保活报文,其中,所述第四扩展保活报文中不携带所述第一协商信息或者携带内容变化后的第一协商信息,所述第四扩展保活报文用于指示所述第二终端设备关闭 所述第二成员接口;
    所述协商模块,还设置为重新与所述第二终端设备执行所述协商流程。
  15. 根据权利要求9至13中任一项所述的链路处理装置,其中,所述协商模块包括:
    发送单元,设置为向所述第二终端设备发送所述第一协商信息,并指示所述第二终端设备存储所述第一协商信息;接收单元,设置为接收并存储所述第二终端设备发送的所述第二协商信息;
    所述发送单元,还设置为向所述第二终端设备发送第一协商报文,其中,所述第一协商报文中包括所述第一终端设备中的第一协商信息和第二协商信息,所述第一协商报文用于指示所述第二终端设备在确定所接收到的第一协商信息和第二协商信息与所述第二终端设备中的第一协商信息和第二协商信息相同时,导通所述第二成员接口;所述接收单元,还设置为接收所述第二终端设备发送的第二协商报文,其中,所述第二协商报文中包括所述第二终端设备中的第二协商信息和第一协商信息;
    处理单元,设置为在确定所述接收单元接收到的第一协商信息和第二协商信息与所述第一终端设备中的第一协商信息和第二协商信息相同时,导通所述第一成员接口。
  16. 根据权利要求15所述的链路处理装置,其中,所述第一终端设备中的第三成员接口与所述第二终端设备中的第四成员接口物理连接,且所述第三成员接口的第三协商信息与所述第一协商信息相同;
    所述处理模块,还设置为在所述协商模块通过执行协商流程导通所述第一终端设备的第一成员接口和第二终端设备中与所述第一成员接口物理连接的第二成员接口之后,且在所述第四成员接口的第四协商信息与所述第二协商信息相同时,执行所述协商流程导通所述第三成员接口和所述第四成员接口;或者,所述处理模块,还设置为在所述协商模块通过执行协商流程导通所述第一终端设备的第一成员接口和第二终端设备中与所述第一成员接口物理连接的第二成员接口之后,且在所述第四成员接口的第四协商信息与所述第二协商信息不同时,执行所述协商流程失败。
PCT/CN2016/089806 2016-01-05 2016-07-12 一种链路处理方法和装置 WO2017117957A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610005907.6A CN106941426B (zh) 2016-01-05 2016-01-05 一种链路处理方法和装置
CN201610005907.6 2016-01-05

Publications (1)

Publication Number Publication Date
WO2017117957A1 true WO2017117957A1 (zh) 2017-07-13

Family

ID=59273120

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/089806 WO2017117957A1 (zh) 2016-01-05 2016-07-12 一种链路处理方法和装置

Country Status (2)

Country Link
CN (1) CN106941426B (zh)
WO (1) WO2017117957A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100020676A1 (en) * 2008-07-22 2010-01-28 Sahul Hameed Abdul Kader Jailani Method for maintaining connectivity in failed switches of stack
CN102325086A (zh) * 2006-08-02 2012-01-18 华为技术有限公司 导通媒体流的方法、导通检测方法及其系统
CN102769573A (zh) * 2012-08-01 2012-11-07 杭州华三通信技术有限公司 借助bfd报文实现bgp保活信息发送的方法及路由设备
CN103957079A (zh) * 2014-04-30 2014-07-30 杭州华三通信技术有限公司 一种hdlc网络中的协商方法和设备

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6128313A (en) * 1997-09-11 2000-10-03 Cisco Technology, Inc. Apparatus and method for filtering line noise and improper packet formatting
CN101047712B (zh) * 2006-06-19 2010-04-21 华为技术有限公司 以太网接口配置检测装置和方法
CN101789954B (zh) * 2009-01-24 2012-08-29 华为技术有限公司 单播环境下的通信方法、设备及系统
CN103440188B (zh) * 2013-08-29 2016-09-28 福建星网锐捷网络有限公司 一种pcie硬件故障的检测方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325086A (zh) * 2006-08-02 2012-01-18 华为技术有限公司 导通媒体流的方法、导通检测方法及其系统
US20100020676A1 (en) * 2008-07-22 2010-01-28 Sahul Hameed Abdul Kader Jailani Method for maintaining connectivity in failed switches of stack
CN102769573A (zh) * 2012-08-01 2012-11-07 杭州华三通信技术有限公司 借助bfd报文实现bgp保活信息发送的方法及路由设备
CN103957079A (zh) * 2014-04-30 2014-07-30 杭州华三通信技术有限公司 一种hdlc网络中的协商方法和设备

Also Published As

Publication number Publication date
CN106941426B (zh) 2019-06-04
CN106941426A (zh) 2017-07-11

Similar Documents

Publication Publication Date Title
US8305882B2 (en) Methods, systems, and computer program products for detecting and/or correcting faults in a multiprotocol label switching network by using redundant paths between nodes
US20080076405A1 (en) Method of handling radio link failure in wireless communications system and related device
WO2017054547A1 (zh) 双向转发检测的方法和装置
US20100150161A1 (en) Methods and systems for automatic transport path selection for multi-homed entities in stream control transmission protocol
JP5801175B2 (ja) パケット通信装置および方法
US8675477B2 (en) Address refreshing method and device of ethernet ring network
US20190158545A1 (en) Media Session
KR20090014334A (ko) 전송 프로토콜의 성능을 향상시키는 시스템 및 방법
WO2014037760A1 (zh) 增加数据流传输的方法和系统
US9923995B1 (en) Methods, systems, and computer program products for sharing information for detecting an idle TCP connection
US9894124B2 (en) Rapid startup with dynamic reservation capabilities for network communication systems
CN103731758B (zh) 一种视频流传输方法和装置
WO2013097366A1 (zh) 链路聚合的异常恢复方法和交换设备
CN111988213B (zh) 一种在evpn mlag环境下同步vxlan隧道的方法及设备、介质
WO2016086890A1 (zh) 一种检测连通性的方法和装置
US9979510B2 (en) Application timeout aware TCP loss recovery
WO2018090210A1 (zh) 业务报文传输方法及节点设备
US20150055482A1 (en) TCP Extended Fast Recovery and Segment Timing
JP2020521409A (ja) Netconfセッション状態の検出方法、装置及びコンピュータ読取可能な記録媒体
US10447549B2 (en) Neighbor establishment method and system, and device
WO2014161421A1 (zh) 数据传输方法、设备及系统
WO2017117957A1 (zh) 一种链路处理方法和装置
TWI733560B (zh) 網路交換器及其網路交換器系統
WO2017000737A1 (zh) 一种传输校验方法、节点、系统与计算机存储介质
WO2013163937A1 (zh) 一种状态切换方法及路由桥

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: 16883092

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: 16883092

Country of ref document: EP

Kind code of ref document: A1