CN107204888B - Method and device for switching timeout time and communication equipment - Google Patents
Method and device for switching timeout time and communication equipment Download PDFInfo
- Publication number
- CN107204888B CN107204888B CN201610149957.1A CN201610149957A CN107204888B CN 107204888 B CN107204888 B CN 107204888B CN 201610149957 A CN201610149957 A CN 201610149957A CN 107204888 B CN107204888 B CN 107204888B
- Authority
- CN
- China
- Prior art keywords
- communication device
- indication information
- timeout time
- transmission link
- lacp
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0663—Performing the actions predefined by failover planning, e.g. switching to standby network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Environmental & Geological Engineering (AREA)
- Mobile Radio Communication Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信技术领域,并且更具体地,涉及一种切换超时时间的方法、装置和通信设备。The present invention relates to the field of communication technologies, and more particularly, to a method, an apparatus and a communication device for switching a timeout time.
背景技术Background technique
链路聚合(Link Aggregation,简称为“LA”)是指将一组物理端口捆绑在一起作为一个逻辑接口来增加带宽的一种方法,相关的协议标准请参考IEEE802.1AX。通过在两台通信设备之间建立链路聚合组(Link Aggregation Group,简称为“LAG”),可以提供更高的通信带宽和更高的可靠性,而这种提高不需要硬件的升级,并且还为两台通信设备的通信提供了冗余保护。在两台通信设备之间,配置链路聚合控制协议(Link Aggregation ControlProtocol,简称为“LACP报文”)模式的LAG,当LACP报文协议协商成功之后,互发保活报文,并通过配置超时时间来检测接收保活(Keepalive)报文是否超时,来判断链路是否正常。如果链路发生障碍,需要进行端口切换,以保证通信设备可以正常传输数据。例如,目前较为通用的LACP报文的超时模式有两种超时时间,分别是长超时时间(90s)和短超时时间(3s),而且厂商普遍将通信设备的超时时间默认设置为长超时时间。如果传输链路发生故障,通信设备需要经过90s超时后,才可以获知传输链路故障,导致链路检测的时延长,效率低,从而不能及时的进行端口切换,导致通信设备传输数据发生断流现象。Link Aggregation ("LA" for short) refers to a method of bundling a group of physical ports together as a logical interface to increase bandwidth. For related protocol standards, please refer to IEEE802.1AX. By establishing a Link Aggregation Group (LAG for short) between two communication devices, higher communication bandwidth and higher reliability can be provided, and this improvement does not require hardware upgrades, and Redundant protection is also provided for the communication of the two communication devices. Configure a LAG in Link Aggregation Control Protocol (LACP packet) mode between two communication devices. The timeout period is used to detect whether the reception of keepalive (Keepalive) packets has timed out to determine whether the link is normal. If the link is blocked, port switching is required to ensure that the communication device can transmit data normally. For example, there are currently two types of timeout modes for common LACP packets: long timeout period (90s) and short timeout period (3s), and manufacturers generally set the timeout period of communication equipment as long timeout period by default. If the transmission link fails, the communication device needs to wait for 90s to time out before it can know the transmission link failure, which leads to a prolonged link detection time and low efficiency, so that port switching cannot be performed in time, resulting in the interruption of data transmission by the communication device. Phenomenon.
发明内容SUMMARY OF THE INVENTION
本申请提供一种切换超时时间的方法、装置和通信设备,在确定传输链路之间存在其他设备的情况下,通信设备可以进行超时时间切换,以缩短链路检测的时延,提高链路检测的效率。The present application provides a method, an apparatus and a communication device for switching a timeout period. When it is determined that there are other devices between transmission links, the communication device can perform a timeout period switching, so as to shorten the delay of link detection and improve the link performance. detection efficiency.
第一方面,提供一种切换超时时间的方法。该方法包括:第一通信设备确定该第一通信设备和第二通信设备之间的传输链路中是否存在第三通信设备;当该第一通信设备确定该传输链路中存在该第三通信设备时,该第一通信设备将用于检测该传输链路的超时时间由第一超时时间切换为第二超时时间,该第一超时时间长于该第二超时时间。In a first aspect, a method for switching a timeout period is provided. The method includes: the first communication device determines whether a third communication device exists in the transmission link between the first communication device and the second communication device; when the first communication device determines that the third communication device exists in the transmission link device, the first communication device switches the timeout period for detecting the transmission link from the first timeout period to the second timeout period, and the first timeout period is longer than the second timeout period.
第一通信设备在确定该传输链路之间存在第三通信设备时,可以进行超时时间切换,根据需要动态的调整超时时间,可以缩短链路检测的时延,提高链路检测的效率,从而在链路故障时,及时进行端口切换,减少第一通信设备断流时间。When the first communication device determines that there is a third communication device between the transmission links, it can switch the timeout time, and dynamically adjust the timeout time as needed, which can shorten the delay of link detection and improve the efficiency of link detection, thereby When the link fails, port switching is performed in time to reduce the interruption time of the first communication device.
结合第一方面,在第一方面的第一种可能的实现方式中,在该第一通信设备确定该第一通信设备和第二通信设备之间的传输链路中是否存在第三通信设备之前,该方法还包括:该第一通信设备接收来自该第二通信设备的第一链路聚合控制协议LACP报文之后停止发送光信号,该第一LACP报文用于触发该第一通信设备关闭光信号;该第一通信设备接收来自该第二通信设备的第二LACP报文,该第二LACP报文携带第一指示信息,该第一指示信息用于指示该第二通信设备在该传输链路上的端口检测到光信号时的端口物理状态;该第一通信设备确定该第一通信设备和第二通信设备之间的传输链路中存在第三通信设备,包括:该第一通信设备根据该第一指示信息确定该第一通信设备和该第二通信设备之间的传输链路中存在该第三通信设备。With reference to the first aspect, in a first possible implementation manner of the first aspect, before the first communication device determines whether a third communication device exists in the transmission link between the first communication device and the second communication device , the method further includes: the first communication device stops sending an optical signal after receiving a first link aggregation control protocol LACP message from the second communication device, where the first LACP message is used to trigger the first communication device to shut down an optical signal; the first communication device receives a second LACP packet from the second communication device, the second LACP packet carries first indication information, and the first indication information is used to indicate that the second communication device is in the transmission the physical state of the port when the port on the link detects the optical signal; the first communication device determines that there is a third communication device in the transmission link between the first communication device and the second communication device, including: the first communication device The device determines, according to the first indication information, that the third communication device exists in the transmission link between the first communication device and the second communication device.
第一通信设备可以通过停止发送光信号并结合第一指示信息确定该链路之间是否存在第三通信设备。其中,端口物理状态可以用于指示第二通信设备在该传输链路上的端口是否检测到光信号。该方法简单易操作与现有技术兼容性好。The first communication device can determine whether there is a third communication device between the links by stopping sending the optical signal and combining with the first indication information. The physical state of the port may be used to indicate whether the port of the second communication device on the transmission link detects an optical signal. The method is simple and easy to operate and has good compatibility with the prior art.
进一步地,结合第一方面或结合第一方面的上述可能的实现方式,在第一方面的第二种可能的实现方式中,该第一指示信息用于指示该第二通信设备在该传输链路上的端口物理状态。Further, in combination with the first aspect or the above possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the first indication information is used to indicate that the second communication device is in the transmission chain The physical state of the port on the road.
该第一指示信息可以指示该端口的端口物理状态,其中该端口物理状态可以为上述第一种可能实现方式中的检测到光信号的端口物理状态,此时该第一通信设备可以根据该第一指示信息确定存在该第三通信设备;该端口物理状态还可以为没有检测到光信号的端口物理状态,此时该第一通信设备可以根据该第一指示信息确定不存在该第三通信设备。采用该方法可以判断两个通信设备之间是否存在其他通信设备。该方法可以操作简单,且该判断是否有第三通信设备的方法不但可以应用于超时时间切换还可以应用于其他方面。The first indication information may indicate the port physical state of the port, where the port physical state may be the port physical state in which the optical signal is detected in the first possible implementation manner. An indication information confirms that the third communication device exists; the physical state of the port may also be a physical state of the port in which no optical signal is detected, and at this time, the first communication device can determine that the third communication device does not exist according to the first indication information . Using this method, it can be judged whether there are other communication devices between the two communication devices. The method can be simple to operate, and the method of judging whether there is a third communication device can be applied not only to time-out switching but also to other aspects.
结合第一方面或结合第一方面的上述可能的实现方式,在第一方面的第三种可能的实现方式中,该第二LACP报文包括本端信息类型长度值TLV数据域,该本端信息TLV数据域承载该第一指示信息。In combination with the first aspect or in combination with the above possible implementation manners of the first aspect, in a third possible implementation manner of the first aspect, the second LACP message includes a local end information type length value TLV data field, and the local end The information TLV data field carries the first indication information.
该第一指示信息可以承载于第二LACP报文已有的TLV数据域中,无需增加新的TLV数据域,该方法简单易操作。The first indication information may be borne in the existing TLV data field of the second LACP message, without adding a new TLV data field, and the method is simple and easy to operate.
结合第一方面或结合第一方面的上述可能的实现方式,在第一方面的第四种可能的实现方式中,该第二LACP报文包括连接状态TLV数据域,该连接状态TLV数据域承载该第一指示信息。In combination with the first aspect or the above possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the second LACP message includes a connection state TLV data field, and the connection state TLV data field carries the the first indication information.
该第一指示信息还可以承载在LACP报文的扩展字段内定义的一个新的连接状态TLV数据域中。该第二指示信息可以灵活的承载于第二LACP报文的TLV数据域,便于第一通信设备获取该第一指示信息。The first indication information may also be carried in a new connection state TLV data field defined in the extension field of the LACP message. The second indication information can be flexibly carried in the TLV data field of the second LACP packet, so that the first communication device can obtain the first indication information.
结合第一方面或结合第一方面的上述可能的实现方式,在第一方面的第五种可能的实现方式中,该方法还包括:该第一通信设备向该第二通信设备发送第三LACP报文,该第三LACP报文携带第二指示信息,该第二指示信息用于指示该第二通信设备将用于检测该传输链路的超时时间由该第一超时时间切换为该第二超时时间,或该第二状态指示信息用于指示该第一通信设备和该第二通信设备的传输链路之间存在该第三通信设备,以用于该第二通信设备根据该第二指示信息将用于检测该传输链路的超时时间由该第一超时模式切换为该第二超时模式。In combination with the first aspect or the above possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, the method further includes: the first communication device sending a third LACP to the second communication device message, the third LACP message carries second indication information, and the second indication information is used to instruct the second communication device to switch the time-out time for detecting the transmission link from the first time-out time to the second time-out time The timeout period, or the second state indication information is used to indicate that the third communication device exists between the transmission link of the first communication device and the second communication device, so that the second communication device can use the second communication device to follow the second indication The information switches the timeout period for detecting the transmission link from the first timeout mode to the second timeout mode.
第一通信设备切换超时时间后可以向第二通信设备发送第二指示信息,第二指示信息指示的内容多样化,以便于第二通信设备根据该第二指示信息进行超时时间的切换,从而缩短第二通信设备检测传输链路的时延以及提高第二通信设备检测传输链路的效率。After the first communication device switches the timeout time, it can send second indication information to the second communication device, and the content indicated by the second indication information is diversified, so that the second communication device can switch the time-out time according to the second indication information, thereby shortening the The second communication device detects the delay of the transmission link and improves the efficiency of the second communication device in detecting the transmission link.
进一步地,结合第一方面或结合第一方面的上述可能的实现方式,在第一方面的第六种可能的实现方式中,在该第一通信设备向该第二通信设备发送第三LACP报文之前,该方法还可以包括:该第一通信设备向该第二通信设备发送第四LACP报文,该第四LACP报文用于触发该第二通信设备关闭光信号;该第一通信设备向该第二通信设备发送第二指示信息,该第二指示信息用于指示该第一通信设备在该传输链路上的端口检测到光信号时的端口物理状态,以用于该第二通信设备根据该第二指示信息将用于检测该传输链路的超时时间由该第一超时时间切换为该第二超时时间。Further, in combination with the first aspect or the above possible implementation manner of the first aspect, in a sixth possible implementation manner of the first aspect, the first communication device sends a third LACP message to the second communication device. The method may further include: the first communication device sends a fourth LACP packet to the second communication device, where the fourth LACP packet is used to trigger the second communication device to turn off the optical signal; the first communication device Sending second indication information to the second communication device, where the second indication information is used to indicate the port physical state of the first communication device when the port on the transmission link detects an optical signal, so as to be used for the second communication The device switches the timeout period for detecting the transmission link from the first timeout period to the second timeout period according to the second indication information.
第一通信设备和第二通信设备均可以快速的检测传输链路,提高链路检测的效率,从而在链路故障时,及时进行端口切换,减少用户断流时间。Both the first communication device and the second communication device can quickly detect the transmission link, so as to improve the efficiency of link detection, so that when the link fails, port switching can be performed in time to reduce the user's current interruption time.
进一步地,结合第一方面或结合第一方面的上述可能的实现方式,在第一方面的第七种可能的实现方式中,在该第一通信设备将用于检测该传输链路的超时时间由第一超时时间切换为第二超时时间之前,该方法还可以包括:该第一通信设备设定第二超时时间。Further, in combination with the first aspect or the above possible implementation manner of the first aspect, in a seventh possible implementation manner of the first aspect, the first communication device will be used to detect the timeout time of the transmission link Before switching from the first timeout period to the second timeout period, the method may further include: the first communication device setting a second timeout period.
第一通信设备可以根据需要灵活的设定第二超时时间,以便于第一通信设备对传输链路进行检测。The first communication device may flexibly set the second timeout period as required, so as to facilitate the first communication device to detect the transmission link.
第二方面,提供一种超时时间切换的方法,该方法包括:第二通信设备向第一通信设备发送第一链路聚合控制协议LACP报文,该第一LACP报文用于触发该第一通信设备关闭光信号;该第二通信设备向该第一通信设备发送第二LACP报文,该第二LACP报文携带第一指示信息,该第一指示信息用于指示该第二通信设备在该第一通信设备和该第二通信设备之间的传输链路上的端口检测到光信号时的端口物理状态,以用于该第一通信设备将用于检测该传输链路的超时时间由第一超时时间切换为第二超时时间,该第一超时时间长于该第二超时时间。In a second aspect, a method for switching overtime is provided, the method comprising: a second communication device sending a first link aggregation control protocol LACP packet to a first communication device, where the first LACP packet is used to trigger the first The communication device turns off the optical signal; the second communication device sends a second LACP packet to the first communication device, where the second LACP packet carries first indication information, and the first indication information is used to indicate that the second communication device is in The physical state of the port when the port on the transmission link between the first communication device and the second communication device detects an optical signal, so that the first communication device sets the timeout time for detecting the transmission link by The first timeout period is switched to a second timeout period, and the first timeout period is longer than the second timeout period.
第二通信设备可以给第一通信设备发送第一LACP报文和承载第一指示信息的第二LACP报文,以用于第一通信设备确定该第一通信设备和该第二通信设备的传输链路之间是否存在第三通信设备,进而使第一通信设备在存在第三通信设备的情况下进行超时时间的切换,从而使第一通信设备提高链路检测的效率,其中,端口物理状态可以用于指示该第二通信设备在该传输链路的端口上是否检测到光信号。The second communication device may send the first LACP packet and the second LACP packet carrying the first indication information to the first communication device, so that the first communication device can determine the transmission between the first communication device and the second communication device Whether there is a third communication device between the links, so that the first communication device can switch the timeout period in the presence of the third communication device, so that the first communication device can improve the efficiency of link detection, wherein the port physical state It can be used to indicate whether the second communication device detects an optical signal on the port of the transmission link.
可选地,结合第二方面,在第二方面的第一种可能的实现方式中,该第一指示信息可以指示该端口的端口物理状态。Optionally, in combination with the second aspect, in a first possible implementation manner of the second aspect, the first indication information may indicate a port physical state of the port.
其中,该端口物理状态可以如第二方面所述的为检测到光信号的端口物理状态,此时该第一通信设备根据该第一指示信息后可以确定存在该第三通信设备;该端口物理状态还可以为没有检测到光信号的端口物理状态,此时该第一通信设备根据该第一指示信息可以确定不存在该第三通信设备。采用该方法可以判断两个通信设备之间是否存在其他通信设备。该方法不但可以应用于超时时间切换还可以应用于其他方面。Wherein, the physical state of the port may be the physical state of the port in which the optical signal is detected as described in the second aspect. At this time, the first communication device can determine that the third communication device exists after the first indication information; the physical state of the port is The state may also be a physical state of the port in which no optical signal is detected, and at this time, the first communication device may determine that the third communication device does not exist according to the first indication information. Using this method, it can be judged whether there are other communication devices between the two communication devices. The method can be applied not only to time-out switching but also to other aspects.
结合第二方面或结合第二方面的上述可能的实现方式,在第二方面的第二种可能的实现方式中,该第二LACP报文包括本端信息类型长度值TLV数据域,该本端信息TLV数据域承载该第一指示信息。In combination with the second aspect or in combination with the above possible implementations of the second aspect, in a second possible implementation of the second aspect, the second LACP message includes a local end information type length value TLV data field, and the local end The information TLV data field carries the first indication information.
该第一指示信息可以承载于第二LACP报文已有的TLV数据域内,无需增加新的字段结构,该方法简单易操作。The first indication information can be carried in the existing TLV data field of the second LACP message, without adding a new field structure, and the method is simple and easy to operate.
结合第二方面或结合第二方面的上述可能的实现方式,在第二方面的第三种可能的实现方式中,该第二LACP报文包括连接状态TLV数据域,该连接状态TLV数据域承载该第一指示信息。In combination with the second aspect or the above-mentioned possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the second LACP message includes a connection state TLV data field, and the connection state TLV data field carries the the first indication information.
该第一指示信息可以承载于第二LACP报文的扩展字段内定义的一个新的TLV数据域内,便于第一通信设备获取该第一指示信息。The first indication information may be carried in a new TLV data field defined in the extension field of the second LACP packet, so that the first communication device can obtain the first indication information.
结合第二方面或结合第二方面的上述可能的实现方式,在第二方面的第四种可能的实现方式中,该方法还包括:该第二通信设备接收来自该第一通信设备的第三LACP报文,该第三LACP报文携带第二指示信息,该第二指示信息用于指示该第二通信设备将用于检测该传输链路的超时时间由该第一超时时间切换为该第二超时时间,或该第二指示信息用于指示该第一通信设备和该第二通信设备之间的传输链路中存在该第三通信设备;该第二通信设备根据该第二指示信息将用于检测该传输链路的超时时间由该第一超时时间切换为该第二超时时间。In combination with the second aspect or in combination with the above-mentioned possible implementation manners of the second aspect, in a fourth possible implementation manner of the second aspect, the method further includes: the second communication device receiving a third communication device from the first communication device LACP packet, the third LACP packet carries second indication information, and the second indication information is used to instruct the second communication device to switch the timeout period for detecting the transmission link from the first timeout period to the first timeout period. Two timeout time, or the second indication information is used to indicate that the third communication device exists in the transmission link between the first communication device and the second communication device; the second communication device will The timeout period for detecting the transmission link is switched from the first timeout period to the second timeout period.
第二指示信息包括的内容多样化,以便于该第二通信设备根据该多样化的第二指示信息进行超时时间的切换,从而缩短第二通信设备检测传输链路的时延以及提高第二通信设备检测传输链路的效率。The content included in the second indication information is diversified, so that the second communication device can switch the timeout time according to the diversified second indication information, thereby shortening the delay of the second communication device in detecting the transmission link and improving the second communication The device detects the efficiency of the transmission link.
进一步地,结合第二方面或结合第二方面的上述可能的实现方式,在第二方面的第五种可能的实现方式中,在该第二通信设备接收来自该第一通信设备的第三LACP报文之前,该方法还可以包括:该第二通信设备接收来自该第一通信设备的第四LACP报文,该第四LACP报文用于触发该第二通信设备关闭光信号;该第二通信设备接收来自该第一通信设备的第二指示信息,该第二指示信息用于指示该第一通信设备在该传输链路上的端口检测到光信号时的端口物理状态,该第二通信设备根据该第二指示信息将该第一超时时间切换为该第二超时时间。Further, in combination with the second aspect or the above possible implementation manner of the second aspect, in a fifth possible implementation manner of the second aspect, the second communication device receives a third LACP from the first communication device Before sending the message, the method may further include: the second communication device receives a fourth LACP message from the first communication device, where the fourth LACP message is used to trigger the second communication device to turn off the optical signal; the second communication device The communication device receives second indication information from the first communication device, where the second indication information is used to indicate the port physical state of the first communication device when the port on the transmission link detects an optical signal, the second communication device The device switches the first timeout period to the second timeout period according to the second indication information.
该第二通信设备根据该第二指示信息将该第一超时时间切换为该第二超时时间,可以缩短第二通信设备链路检测的时延,从而及时的进行端口切换,减少第二通信设备的断流时间。The second communication device switches the first timeout period to the second timeout period according to the second indication information, which can shorten the delay of link detection of the second communication device, so as to perform port switching in time and reduce the number of second communication devices. cut-off time.
进一步地,结合第二方面或结合第二方面的上述可能的实现方式,在第二方面的第六种可能的实现方式中,该第二超时时间为该第一通信设备设定的超时时间。Further, in combination with the second aspect or the above possible implementation manner of the second aspect, in a sixth possible implementation manner of the second aspect, the second timeout period is a timeout period set by the first communication device.
第三方面,提供一种切换超时时间的装置,用于执行第一方面或第一方面的任意可能的实现方式中的方法,具体地,该装置包括用于执行第一方面或第一方面的任意可能的实现方式中的方法的模块和/或单元。In a third aspect, an apparatus for switching a timeout period is provided, which is used to perform the method in the first aspect or any possible implementation manner of the first aspect. Specifically, the apparatus includes a method for performing the first aspect or the first aspect. Modules and/or units of a method in any possible implementation.
第四方面,提供一种切换超时时间的装置,用于执行第二方面或第二方面的任意可能的实现方式中的方法,具体地该装置包括用于执行第二方面或第二方面的任意可能的实现方式中的方法的模块和/或单元。In a fourth aspect, a device for switching a timeout period is provided, which is used to execute the method in the second aspect or any possible implementation manner of the second aspect. A module and/or unit of a method in a possible implementation.
第五方面,提供一种通信设备,该通信设备包括总线系统、处理器收发器和存储器。其中,收发器、存储器和处理器通过总线系统相连,存储器用于存储指令,处理器用于执行存储器存储的指令,以控制收发器收发信号,并且当处理器执行存储器存储的指令时,使得处理器和收发器执行第一方面或第一方面的任意可能的实现方式中的方法。In a fifth aspect, a communication device is provided, the communication device including a bus system, a processor transceiver and a memory. The transceiver, the memory and the processor are connected through a bus system, the memory is used to store instructions, the processor is used to execute the instructions stored in the memory to control the transceiver to send and receive signals, and when the processor executes the instructions stored in the memory, the processor and a transceiver to perform the method of the first aspect or any possible implementation of the first aspect.
第六方面,提供一种通信设备,该通信设备包括:总线系统、处理器收发器和存储器。其中,收发器、存储器和处理器通过总线系统相连,存储器用于存储指令,处理器用于执行存储器存储的指令,以控制收发器收发信号,并且当处理器执行存储器存储的指令时,使得处理器和收发器执行第二方面或第二方面的任意可能的实现方式中的方法。In a sixth aspect, a communication device is provided, the communication device comprising: a bus system, a processor transceiver and a memory. The transceiver, the memory and the processor are connected through a bus system, the memory is used to store instructions, the processor is used to execute the instructions stored in the memory to control the transceiver to send and receive signals, and when the processor executes the instructions stored in the memory, the processor and a transceiver to perform the method of the second aspect or any possible implementation of the second aspect.
第七方面,提供一种通信系统,该通信系统包括第三方面或第三方面的任意一种可能的实现方式中的切换超时时间的装置,该通信系统还包括第四方面或第四方面的任意一种可能实现的方式中的切换超时时间的装置。A seventh aspect provides a communication system, the communication system includes the third aspect or the device for switching the timeout time in any possible implementation manner of the third aspect, and the communication system further includes the fourth aspect or the fourth aspect. The device for switching the timeout period in any possible implementation manner.
第八方面,提供一种通信系统,该通信系统包括第五方面或第五方面的任意一种可能的实现方式中的通信设备,该通信系统还包括第六方面或第六方面的任意一种可能的实现方式中的通信设备。In an eighth aspect, a communication system is provided, the communication system includes the fifth aspect or the communication device in any possible implementation manner of the fifth aspect, and the communication system further includes the sixth aspect or any one of the sixth aspect A communication device in a possible implementation.
第九方面,提供一种计算机可读介质,用于存储计算机程序,该计算机程序包括用于执行第一方面或第一方面的任意可能的实现方式中的方法的指令。In a ninth aspect, a computer-readable medium is provided for storing a computer program, the computer program comprising instructions for performing the method in the first aspect or any possible implementation of the first aspect.
第十方面,提供一种计算机可读介质,用于存储计算机程序,该计算机程序包括用于执行第二方面或第二方面的任意可能的实现方式中的方法的指令。In a tenth aspect, a computer-readable medium is provided for storing a computer program, the computer program comprising instructions for performing the method of the second aspect or any possible implementation of the second aspect.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some of the present invention. In the embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1示出了本发明实施例的切换超时时间的方法的应用场景的示意图。FIG. 1 shows a schematic diagram of an application scenario of a method for switching a timeout period according to an embodiment of the present invention.
图2示出了根据本发明实施例的切换超时时间的方法的示意图。FIG. 2 shows a schematic diagram of a method for switching a timeout period according to an embodiment of the present invention.
图3示出了根据本发明实施例的切换超时时间的方法的另一种示意图。FIG. 3 shows another schematic diagram of a method for switching a timeout period according to an embodiment of the present invention.
图4示出了根据本发明实施例的本端信息TLV数据域的示意图。FIG. 4 shows a schematic diagram of a local end information TLV data field according to an embodiment of the present invention.
图5示出了根据本发明实施例的连接状态TLV数据域的示意图。FIG. 5 shows a schematic diagram of a connection state TLV data field according to an embodiment of the present invention.
图6示出了根据本发明实施例的切换超时时间的装置的示意图。FIG. 6 shows a schematic diagram of an apparatus for switching a timeout period according to an embodiment of the present invention.
图7示出了根据本发明实施例的切换超时时间的装置的另一示意图。FIG. 7 shows another schematic diagram of an apparatus for switching a timeout period according to an embodiment of the present invention.
图8示出了根据本发明另一实施例的切换超时时间的装置的示意图。FIG. 8 shows a schematic diagram of an apparatus for switching a timeout period according to another embodiment of the present invention.
图9示出了根据本发明另一实施例的切换超时时间的装置的另一示意图。FIG. 9 shows another schematic diagram of an apparatus for switching a timeout period according to another embodiment of the present invention.
图10示出了根据本发明实施例的通信设备的示意图。FIG. 10 shows a schematic diagram of a communication device according to an embodiment of the present invention.
图11示出了根据本发明另一实施例的通信设备的示意图。FIG. 11 shows a schematic diagram of a communication device according to another embodiment of the present invention.
图12示出了根据本发明实施例的通信系统的示意图。FIG. 12 shows a schematic diagram of a communication system according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
本发明中的通信设备可以是客户边缘设备(Customer Edge,简称为“CE”)、网络侧边缘(Provider Edge,简称为“PE”)设备或核心(Provider,简称为“P”)设备。其中,CE设备可以是接入终端用户的交换机、路由器、路由交换机或综合接入设备(Internet addictiondisorder,简称为“IAD”)等设备。该PE设备可以是汇聚层设备,接入的是经过CE设备处理过后的数据。该PE设备在网络中的主要作用在于汇聚、封装和解封装。The communication device in the present invention may be a customer edge device (Customer Edge, referred to as "CE"), a network side edge (Provider Edge, referred to as "PE") device or a core (Provider, referred to as "P") device. The CE device may be a switch, a router, a routing switch, or an integrated access device (Internet addiction disorder, referred to as "IAD" for short) and other devices that access end users. The PE device may be an aggregation layer device, and access data processed by the CE device. The main functions of the PE equipment in the network are aggregation, encapsulation and decapsulation.
为了更清楚地说明本发明实施例的技术方案,图1示出了本发明实施例的超时时间切换的方法的应用场景的示意图。In order to illustrate the technical solution of the embodiment of the present invention more clearly, FIG. 1 shows a schematic diagram of an application scenario of the method for switching the timeout time according to the embodiment of the present invention.
如图1所示,两台通信设备(例如通信设备A和通信设备C)在传输数据时可以通过多条子链路相连。两台通信设备可以将该多条子链路捆绑在一起,通过链路聚合,组成一条逻辑链路,这条逻辑链路的带宽等于原先多条子链路的带宽总和,从而达到了增加链路带宽的目的。其中,不同的子链路对应同一个通信设备的不同端口。例如,通信设备A包括端口a1和a2,通信设备B包括端口b11、b12、b21和b22,通信设备C包括端口c1和c2。该通信设备A和通信设备C之间的子链路可以包括经过端口a1、b11、b12和c1的第一子链路,还可以包括经过端口a2、b21、b22和c2的第二子链路。其中,该多条子链路中的每条子链路都可以进行双向传输。As shown in FIG. 1 , two communication devices (for example, communication device A and communication device C) may be connected through multiple sub-links when transmitting data. Two communication devices can bundle the multiple sub-links together and form a logical link through link aggregation. The bandwidth of this logical link is equal to the sum of the bandwidths of the original multiple sub-links, thereby increasing the link bandwidth. the goal of. Wherein, different sub-links correspond to different ports of the same communication device. For example, communication device A includes ports a1 and a2, communication device B includes ports b11, b12, b21, and b22, and communication device C includes ports c1 and c2. The sub-link between the communication device A and the communication device C may include a first sub-link passing through ports a1, b11, b12 and c1, and may also include a second sub-link passing through ports a2, b21, b22 and c2 . Wherein, each sub-link in the multiple sub-links can perform bidirectional transmission.
两台通信设备在传输数据的时候需要周期性的检测传输链路是否正常。该检测方法通常是两台通信设备之间互发保活报文并检测接收保活报文是否超时来判断各个子链路是否正常。在传输报文时,两台通信设备的连接方式有两种可能的实施方式:第一种是两台通信设备直接相连,该直接相连是指两台通信设备仅通过传输链路进行连接;第二种是两台通信设备通过第三通信设备(例如中转设备)相连,即两台通信设备的传输链路之间存在第三通信设备,其中该第三通信设备可以是一台,也可以是多台。在第一种可能的实施方式中,两台通信设备直接相连,如果传输链路发生故障,两台通信设备会即刻检测出该传输链路故障;在第二种可能的实施方式中,两台通信设备的传输链路之间存在其他通信设备(例如,通信设备B),一旦传输链路(例如,第一子链路中的b12和c1之间的链路)发生故障,通信设备A需要经过超时时间后才可获知该第一子链路故障进而进行链路切换(例如,将原本由第一子链路进行传输的数据交由第二子链路进行传输)。然而,为了保证通信设备链路检测的稳定性,厂商普遍将通信设备的超时时间默认设定为长超时时间(例如90s)。此时,通信设备A需经历90s才能获知第一子链路故障进而进行链路切换,导致链路检测时延长,效率低,通信设备断流时间长。为了提高链路检测的效率,本发明提出了一种切换超时时间的方法。When two communication devices transmit data, they need to periodically check whether the transmission link is normal. The detection method is usually that two communication devices send keep-alive messages to each other and detect whether the received keep-alive messages time out to judge whether each sub-link is normal. When transmitting a message, there are two possible implementations for the connection of the two communication devices: the first is that the two communication devices are directly connected, which means that the two communication devices are connected only through the transmission link; the third is to connect the two communication devices directly. The second is that the two communication devices are connected through a third communication device (such as a relay device), that is, there is a third communication device between the transmission links of the two communication devices, where the third communication device may be one or a third communication device. multiple. In the first possible implementation, two communication devices are directly connected, and if the transmission link fails, the two communication devices will immediately detect the transmission link failure; in the second possible implementation, the two There are other communication devices (for example, communication device B) between the transmission links of the communication device. Once the transmission link (for example, the link between b12 and c1 in the first sub-link) fails, communication device A needs to After a timeout period, the failure of the first sub-link can be learned and the link switching can be performed (for example, the data originally transmitted by the first sub-link is transferred to the second sub-link for transmission). However, in order to ensure the stability of the link detection of the communication device, manufacturers generally set the timeout period of the communication equipment as a long timeout period (eg, 90s) by default. At this time, it takes 90 s for the communication device A to know that the first sub-link is faulty and then perform link switching, which leads to prolonged link detection, low efficiency, and long interruption time of the communication device. In order to improve the efficiency of link detection, the present invention proposes a method for switching overtime.
下面结合附图对本发明的实施例进行详细描述。The embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
图2示出了本发明实施例提供的切换超时时间的方法100,如图2所示,该方法100包括:FIG. 2 shows a method 100 for switching a timeout period provided by an embodiment of the present invention. As shown in FIG. 2 , the method 100 includes:
S110、第一通信设备确定该第一通信设备和第二通信设备之间的传输链路中是否存在第三通信设备;S110. The first communication device determines whether a third communication device exists in the transmission link between the first communication device and the second communication device;
S120、当该第一通信设备确定该传输链路中存在该第三通信设备时,该第一通信设备将用于检测该传输链路的超时时间由第一超时时间切换为第二超时时间,该第一超时时间长于该第二超时时间。S120. When the first communication device determines that the third communication device exists in the transmission link, the first communication device switches the timeout period for detecting the transmission link from the first timeout period to the second timeout period, The first timeout period is longer than the second timeout period.
具体而言,第一通信设备可以首先确定该第一通信设备和第二通信设备之间的传输链路中是否存在第三通信设备。由于在通常情况下,第一通信设备默认第一超时时间,如果存在第三通信设备,可以将第一超时时间切换为第二超时时间。例如,第一超时时间的超时时间为90s,第二超时时间的超时时间为3s。此时,如果链路发生故障,第一通信设备在原本需要在90s之后才可以获知该传输链路发生故障现在只需要3s就可以获知,从而及时进行链路切换,减少第一通信设备的断流时间。Specifically, the first communication device may first determine whether there is a third communication device in the transmission link between the first communication device and the second communication device. Since the first communication device defaults to the first timeout period under normal circumstances, if there is a third communication device, the first timeout period can be switched to the second timeout period. For example, the timeout period of the first timeout period is 90s, and the timeout period of the second timeout period is 3s. At this time, if the link fails, the first communication device can learn that the transmission link is faulty after 90s. Now it only takes 3s to know that the link is switched in time to reduce the interruption of the first communication device. flow time.
在本发明实施例中,作为示例而非限定,可选地,该第二超时时间可以为第一通信设备设定的超时时间。换句话说,在该第一通信设备将用于检测该传输链路的超时时间由第一超时时间切换为第二超时时间之前,该方法100还可以包括:该第一通信设备设定该第二超时时间。例如,该第一通信设备仅预设有第一超时时间,当第一通信设备确定存在该第二通信设备时,该第一通信设备可以根据需要设定第二超时时间。例如,第一通信设备可以设定30s的第二超时时间。应理解,该第二超时时间可以是第一通信设备设定的,还可以是控制第一通信设备和第二通信设备的控制设备设定的。第一通信设备可以根据需要灵活的设定第二超时时间,以便于第一通信设备灵活的进行链路检测。In this embodiment of the present invention, as an example and not a limitation, optionally, the second timeout period may be a timeout period set by the first communication device. In other words, before the first communication device switches the time-out time for detecting the transmission link from the first time-out time to the second time-out time, the method 100 may further include: the first communication device setting the first time-
与现有技术通常采用长超时时间相比,采用该方法该第一通信设备可以根据需要动态的调整超时时间,缩短链路检测的时延,提高链路检测的效率。Compared with the long timeout period generally adopted in the prior art, with this method, the first communication device can dynamically adjust the timeout period as required, shorten the delay of link detection, and improve the efficiency of link detection.
应理解,本发明实施例提及的该第一超时时间不限于90s,同理该第二超时时间不限于3s。It should be understood that the first timeout period mentioned in the embodiment of the present invention is not limited to 90s, and similarly the second timeout period is not limited to 3s.
需要说明的是,如果第一通信设备确定该传输链路中存在第三通信设备,该第一通信设备可以自动进行超时时间切换;如果第一通信设备确定该传输链路中不存在第三通信设备,该第一通信设备可以继续使用默认的长超时时间进行链路检测,也可以进行超时时间切换,本发明在此不做限定。It should be noted that if the first communication device determines that there is a third communication device in the transmission link, the first communication device can automatically perform a timeout time switch; if the first communication device determines that there is no third communication device in the transmission link device, the first communication device can continue to use the default long timeout period to perform link detection, and can also perform timeout period switching, which is not limited in the present invention.
还需要说明的是,本发明实施例提供的切换超时时间的方法100与通信设备默认设定短超时时间(例如3s)相比,该方法100可以根据实际应用场景灵活的调整超时时间,既可以提高链路的检测效率,又可以兼顾链路检测的稳定性(如果第一通信设备确定该传输链路中不存在第三通信设备,该第一通信设备可以继续使用长超时时间进行链路检测)。It should also be noted that, compared with the method 100 for switching the timeout period provided by the embodiment of the present invention, compared with the short timeout period (for example, 3s) set by default by the communication device, the method 100 can flexibly adjust the timeout period according to the actual application scenario. The detection efficiency of the link is improved, and the stability of the link detection can be taken into account (if the first communication device determines that there is no third communication device in the transmission link, the first communication device can continue to use the long timeout period for link detection. ).
应理解,在链路聚合中,通信设备可以通过不同端口在各个子链路中进行数据传输,本发明中提及的传输链路可以是指第一通信设备和第二通信设备之间的多条子链路中的某一条子链路(例如,可以是图1中的第一子链路)。为了简化均以传输链路表示该两个通信设备之间的某一条子链路。It should be understood that in link aggregation, a communication device may transmit data in each sub-link through different ports, and the transmission link mentioned in the present invention may refer to multiple A certain sub-link in the sub-links (for example, it may be the first sub-link in FIG. 1 ). For simplicity, a certain sub-link between the two communication devices is represented by a transmission link.
还应理解,如果该第一通信设备检测出该传输链路之间存在该第三通信设备,该第一通信设备进行超时时间切换可以理解为该第一通信设备采用第二超时时间对第一通信设备和第二通信设备之间的所有子链路进行链路检测。换句话说,如果第一通信设备检测出第一通信设备和第二通信设备之间的某一条子链路例如第一子链路中存在第三通信设备,该第一通信设备可以对第一通信设备和第二通信设备之间的所有子链路进行超时时间切换。例如,该第一通信设备和第二通信设备之间的传输链路包括第一子链路和第二子链路,如果第一通信设备检测出在该第一子链路中存在第三通信设备,该第一通信设备可以将该第一子链路的超时时间和该第二子链路的超时时间均由第一超时时间切换为第二超时时间。此时,该第一通信设备可以对第一通信设备和第二通信设备之间的所有子链路进行快速的链路检测,以便于第一通信设备可以及时发现链路故障,从而进行链路切换。It should also be understood that if the first communication device detects that the third communication device exists between the transmission links, the first communication device performing the timeout time switch can be understood as the first communication device using the second timeout time for the first communication device. Link detection is performed on all sub-links between the communication device and the second communication device. In other words, if the first communication device detects that there is a third communication device in a certain sub-link between the first communication device and the second communication device, such as the first sub-link, the first communication device can All sub-links between the communication device and the second communication device are switched over time. For example, the transmission link between the first communication device and the second communication device includes a first sub-link and a second sub-link, if the first communication device detects that there is a third communication in the first sub-link device, the first communication device can switch both the timeout period of the first sublink and the timeout period of the second sublink from the first timeout period to the second timeout period. At this time, the first communication device can perform fast link detection on all sub-links between the first communication device and the second communication device, so that the first communication device can detect the link failure in time, so that the link switch.
可选地,图3示出了本发明实施例的切换超时时间的方法的另一示意图。如图3所示,在该第一通信设备确定该第一通信设备和第二通信设备之间的传输链路中是否存在第三通信设备之前,该方法100还可以包括:Optionally, FIG. 3 shows another schematic diagram of a method for switching a timeout period according to an embodiment of the present invention. As shown in FIG. 3, before the first communication device determines whether a third communication device exists in the transmission link between the first communication device and the second communication device, the method 100 may further include:
S101、该第二通信设备向该第一通信设备发送第一链路聚合控制协议LACP报文,该第一LACP报文用于触发该第一通信设备关闭光信号;S101. The second communication device sends a first link aggregation control protocol LACP packet to the first communication device, where the first LACP packet is used to trigger the first communication device to turn off the optical signal;
S102、该第一通信设备接收来自第二通信设备的该第一链路聚合控制协议LACP报文之后停止发送光信号;S102, the first communication device stops sending an optical signal after receiving the first link aggregation control protocol LACP message from the second communication device;
S103、该第一通信设备接收来自该第二通信设备的第二LACP报文,该第二LACP报文携带第一指示信息,该第一指示信息用于指示该第二通信设备在该传输链路上的端口检测到光信号时的端口物理状态;S103. The first communication device receives a second LACP packet from the second communication device, where the second LACP packet carries first indication information, where the first indication information is used to indicate that the second communication device is in the transmission chain The physical state of the port when the port on the road detects the optical signal;
其中,S110中的该第一通信设备确定该第一通信设备和第二通信设备之间的传输链路中是否存在第三通信设备,包括:Wherein, the first communication device in S110 determines whether there is a third communication device in the transmission link between the first communication device and the second communication device, including:
S111、该第一通信设备根据该第一指示信息确定该传输链路中存在第三通信设备。S111. The first communication device determines that there is a third communication device in the transmission link according to the first indication information.
具体而言,该第二通信设备可以向第一通信设备发送第一LACP报文,第一通信设备接收到该第一LACP报文后可以停止发送光信号。可选地,该第一个LACP报文可以是指第一通信设备和第二通信设备使能LACP功能后,第一通信设备接收到的第一个报文。具体地,第一通信设备和第二通信设备使能LACP功能后,第一通信设备和第二通信设备需要通过收发LACP报文进行传输协议协商,该第一LACP报文可以是指第一通信设备接收来自第二通信设备的用于传输协议协商的第一个LACP报文。此时该第一通信设备和该第二通信设备之间的传输协议未协商成功,因此第一通信设备停止发送光信号不会影响现有业务的传输。第二通信设备发送第一LACP报文后,向该第一通信设备发送第二LACP报文,该第二LACP报文携带第一指示信息,该第一指示信息用于指示该第二通信设备在该传输链路上的端口物理状态。通常情况下,有两种端口物理状态:Specifically, the second communication device may send the first LACP packet to the first communication device, and the first communication device may stop sending the optical signal after receiving the first LACP packet. Optionally, the first LACP packet may refer to the first packet received by the first communication device after the first communication device and the second communication device enable the LACP function. Specifically, after the first communication device and the second communication device enable the LACP function, the first communication device and the second communication device need to perform transmission protocol negotiation by sending and receiving LACP packets, where the first LACP packets may refer to the first communication The device receives the first LACP packet for transport protocol negotiation from the second communication device. At this time, the transmission protocol between the first communication device and the second communication device has not been successfully negotiated, so the stop of the first communication device to send the optical signal will not affect the transmission of the existing service. After the second communication device sends the first LACP packet, it sends a second LACP packet to the first communication device, where the second LACP packet carries first indication information, and the first indication information is used to instruct the second communication device The physical state of the port on this transport link. Typically, there are two physical states of a port:
第一种:The first:
该端口物理状态可以为UP,表示该端口检测到光信号。如果该第一指示信息用于指示该第二通信设备在该传输链路的端口检测到光信号时的端口物理状态(UP),由于第一通信设备接收到该第一LACP报文后关闭了光信号,该第一通信设备可以根据该第一指示信息确定该第二通信设备的端口接收的光信号是来自其他通信设备例如第三通信设备的光信号,此时该第一通信设备可以确定存在第三通信设备(即第一通信设备和第二通信设备非直连),从而进行超时时间的切换。例如,如图1所示,以第一子链路为例,通信设备C的c1端口可以向通信设备A的a1端口发送第一指示信息,该第一指示信息指示c1端口的端口物理状态(UP),该端口物理状态(UP)可以表示该c1端口检测到光信号。由于该通信设备A的a1端口已经关闭了光信号,通信设备A的a1端口接收到该第一指示信息后,该通信设备A可以根据该第一指示信息确定通信设备C的c1端口接收的光信号来自通信设备B的端口b12,从而确定通信设备A和通信设备C之间存在通信设备B。The physical state of the port may be UP, indicating that the port detects an optical signal. If the first indication information is used to indicate the port physical state (UP) of the second communication device when an optical signal is detected at the port of the transmission link, because the first communication device shuts down after receiving the first LACP message Optical signal, the first communication device can determine, according to the first indication information, that the optical signal received by the port of the second communication device is an optical signal from another communication device, such as a third communication device, at this time, the first communication device can determine There is a third communication device (ie, the first communication device and the second communication device are not directly connected), so that the timeout period is switched. For example, as shown in FIG. 1, taking the first sub-link as an example, the c1 port of the communication device C can send first indication information to the a1 port of the communication device A, where the first indication information indicates the port physical state of the c1 port ( UP), the port physical state (UP) may indicate that the c1 port detects an optical signal. Since the a1 port of the communication device A has turned off the optical signal, after the a1 port of the communication device A receives the first indication information, the communication device A can determine the optical signal received by the c1 port of the communication device C according to the first indication information The signal comes from the port b12 of the communication device B, thereby determining that the communication device B exists between the communication device A and the communication device C.
第二种:The second:
该端口物理状态还可以为DOWM,表示该端口没有检测到光信号。如果该第一指示信息用于指示该第二通信设备在该传输链路的端口检测没有到光信号时的端口物理状态(DOWM),该第一通信设备可以根据该第一指示信息确定该第一通信设备和该第二通信设备不存在第三通信设备(即第一通信设备和第二通信设备直连)。此时,该第一通信设备可以保持原有的超时时间。例如,如图1所示,以第一子链路为例,通信设备C的c1端口可以向通信设备A的a1端口发送第一指示信息,该第一指示信息指示c1端口的端口物理状态(DOWM),该端口物理状态(DOWM)可以表示该c1端口没有检测到光信号。该通信设备A的a1端口关闭光信号后,该通信设备A通过第一指示信息可以获知该通信设备C的c1端口未接收到光信号,从而确定通信设备A和通信设备C之间不存在其他通信设备。The physical state of the port may also be DOWM, indicating that the port does not detect an optical signal. If the first indication information is used to indicate the port physical state (DOWM) of the second communication device when no optical signal is detected at the port of the transmission link, the first communication device may determine the first communication device according to the first indication information There is no third communication device between a communication device and the second communication device (ie, the first communication device and the second communication device are directly connected). At this time, the first communication device can maintain the original timeout period. For example, as shown in FIG. 1, taking the first sub-link as an example, the c1 port of the communication device C can send first indication information to the a1 port of the communication device A, where the first indication information indicates the port physical state of the c1 port ( DOWM), the port physical state (DOWM) may indicate that the c1 port does not detect an optical signal. After the a1 port of the communication device A turns off the optical signal, the communication device A can learn that the c1 port of the communication device C does not receive an optical signal through the first indication information, thereby determining that there is no other communication device A and C. communication device.
该方法可以用于判断两个通信设备之间的传输链路是否有第三通信设备,该方法简单易操作,与现有技术兼容性好。应理解,该确定是否有第三通信设备的方法除了可以应用于超时时间切换,还可以应用其他方面,本发明在此不做限定。The method can be used to judge whether there is a third communication device in the transmission link between the two communication devices, the method is simple and easy to operate, and has good compatibility with the prior art. It should be understood that the method for determining whether there is a third communication device can be applied to other aspects besides timeout time switching, which is not limited in the present invention.
应理解,上文提及的第一通信设备接收到该第一LACP报文后关闭了光信号,可以是指该第一通信设备接收到该第一LACP报文后将激光器关光。该第一通信设备关闭光信号后,不影响第一通信设备接收报文。换句话说,第一通信关闭光信号后,无法发送报文但是可以接收来自第二通信设备的报文。It should be understood that the above-mentioned first communication device turning off the optical signal after receiving the first LACP message may mean that the first communication device turns off the laser after receiving the first LACP message. After the first communication device turns off the optical signal, it does not affect the first communication device to receive the message. In other words, after the first communication turns off the optical signal, the message cannot be sent but the message from the second communication device can be received.
应理解,如图1所示该第二通信设备向第一通信设备发送第一LACP报文可以是指第二通信设备在某一条子链路上对应的端口(例如,通信设备C在第一子链的端口c1)向第一通信设备在该条子链路上对应的端口(通信设备A在第一子链的端口a1)发送第一LACP报文。同理,该第一通信设备停止发送光信号也可以是指该第一通信设备在该条子链路上对应的端口(例如,通信设备A在第一子链的端口a1)停止发送光信号。总之,在本发明中相应通信设备发送、接收等动作都可以理解为该相应通信设备的在某一条子链路对应的端口执行该动作。为了简化均直接以第一通信设备和第二通信设备做执行主体进行说明。It should be understood that, as shown in FIG. 1, the second communication device sending the first LACP packet to the first communication device may refer to the port corresponding to the second communication device on a certain sub-link (for example, the communication device C is in the first communication device). The port c1 of the sub-chain sends the first LACP packet to the port corresponding to the first communication device on the sub-link (the communication device A is on the port a1 of the first sub-chain). Similarly, the stop of the first communication device from sending the optical signal may also mean that the port corresponding to the first communication device on the sub-link (for example, the communication device A on the port a1 of the first sub-link) stops sending the optical signal. In a word, in the present invention, actions such as sending and receiving of a corresponding communication device can be understood as performing the action on a port corresponding to a certain sub-link of the corresponding communication device. For simplicity, the first communication device and the second communication device are directly used as execution subjects for description.
还应理解,本发明实施例中提及的所有端口均表示光纤端口,为简化说明均以端口进行描述。It should also be understood that all ports mentioned in the embodiments of the present invention represent optical fiber ports, and are described in terms of ports to simplify the description.
还应理解,一般情况下,通信设备之间是周期性的传递报文。即第二通信设备向第一通信设备发送第一LACP报文后,会间隔一段时间再会发送该第二LACP报文。因此,第二通信设备的端口检测光信号时,该第一通信设备已经停止发送相应光信号。It should also be understood that, in general, messages are periodically transmitted between communication devices. That is, after the second communication device sends the first LACP packet to the first communication device, it will send the second LACP packet after a period of time. Therefore, when the port of the second communication device detects the optical signal, the first communication device has stopped sending the corresponding optical signal.
需要指出的是,第一通信设备在确定该传输链路中是否存在第三通信设备时,除了可以采用上文提到的方法还可以采用其他方法。例如,该第一通信设备可以通过弹性分组环协议(Resilient Packet Ring,简称为“RPR”)发现整网拓扑结构,然后再确定第一通信设备和第二通信设备之间的传输链路是否有第三通信设备。又例如,该第一通信设备可以通过链路层发现协议(Link Layer Discovery Protocol,简称为“LLDP”)确定邻居设备,然后再确定两台通信设备之间是否有第三通信设备。再例如,该第二通信设备发送的该第一LACP报文可以用于指示第一通信设备停止发送光信号,在第一通信设备停止发送光信号后,该第二通信设备检测是否可以接收到到光信号,从而该第二通信设备可以确定在该传输链路中是否存在该第三通信设备。进而该第二通信设备可以向该第一通信设备发送设备信息,该设备信息可以用于指示第一通信设备和第二通信设备之间是否存在第三通信设备,该第一通信设备接收到该设备信息后可以确定该传输链路是否存在第三通信设备。It should be noted that, when the first communication device determines whether there is a third communication device in the transmission link, other methods may be adopted in addition to the methods mentioned above. For example, the first communication device may discover the topology of the entire network through a Resilient Packet Ring (Resilient Packet Ring, "RPR" for short), and then determine whether there is a transmission link between the first communication device and the second communication device third communication device. For another example, the first communication device may determine a neighbor device through a link layer discovery protocol (Link Layer Discovery Protocol, "LLDP" for short), and then determine whether there is a third communication device between the two communication devices. For another example, the first LACP packet sent by the second communication device may be used to instruct the first communication device to stop sending the optical signal, and after the first communication device stops sending the optical signal, the second communication device detects whether it can receive the message. to the optical signal so that the second communication device can determine whether the third communication device is present in the transmission link. Further, the second communication device may send device information to the first communication device, where the device information may be used to indicate whether there is a third communication device between the first communication device and the second communication device, and the first communication device receives the After the device information, it can be determined whether there is a third communication device in the transmission link.
进一步地,作为示例而非限定,为了避免端口物理状态为UP或DOWM的偶然性,该第二通信设备可以发送多个第二LACP报文,该每个第二LACP报文均携带第一指示信息。该第一通信设备可以根据最后接收的第一指示信息指示的端口物理状态确定该第二通信设备的端口物理状态。例如,第二通信设备连续向第一通信设备连续发送三个第二LACP报文,每个第二LACP报文均携带有第一指示信息。其中,该三个指示信息中前两个指示信息指示UP的端口物理状态(即检测到光信号),第三个指示信息指示DOWN的端口物理状态(即未检测到光信号),该第一通信设备先后接收到该三个指示信息后可以确定该端口物理状态为DOWN。该第一通信设备还可以根据端口物理状态UP和DOWN的比例,确定该第二通信设备的端口物理状态。例如,该三个第一指示信息中有两个第一指示信息指示UP的端口物理状态,一个第一指示信息指示DOWN的端口物理状态,则该第一通信设备可以确定该端口物理状态为UP。Further, as an example and not a limitation, in order to avoid the chance that the physical state of the port is UP or DOWN, the second communication device may send multiple second LACP packets, and each second LACP packet carries the first indication information. . The first communication device may determine the port physical state of the second communication device according to the port physical state indicated by the last received first indication information. For example, the second communication device continuously sends three second LACP packets to the first communication device, and each second LACP packet carries the first indication information. The first two of the three indication information indicate the physical state of the UP port (that is, the optical signal is detected), and the third indication information indicates the physical state of the DOWN port (that is, the optical signal is not detected). After receiving the three indication information successively, the communication device may determine that the physical state of the port is DOWN. The first communication device may also determine the port physical state of the second communication device according to the ratio of the port physical states UP and DOWN. For example, if two of the three first indication information indicate the physical state of the port UP, and one of the first indication information indicates the physical state of the port DOWN, the first communication device may determine that the physical state of the port is UP .
可选地,该第二LACP报文包括本端信息类型长度值TLV数据域,该本端信息TLV数据域承载该第一指示信息。图4示出了根据本发明实施例的本端信息类型长度值(TypeLength Value简称为“TLV”)数据域的示意图。Optionally, the second LACP message includes a local end information type length value TLV data field, and the local end information TLV data field carries the first indication information. FIG. 4 shows a schematic diagram of a local end information type length value (TypeLength Value is abbreviated as "TLV") data field according to an embodiment of the present invention.
具体而言,该第一指示信息可以承载在第二LACP报文的已有的TLV数据域中,例如本端信息TLV数据域中。如图4所示,该第一指示信息可以承载在该本端信息TLV数据域中的保留字段的某一个字节(该保留字段包括三个字节,例如,可以使用第二字节)中。可以在本端信息TLV数据域中把该端口是否检测到光信号的端口物理状态通知给对端。例如,可以将该保留字节设置为0(也可以设置为1或其他标识)时指示该第二通信设备在该传输链路的上的端口检测到光信号的端口物理状态(UP)。可以将该保留字节设置为1(也可以设置为0或其他标识)时指示该第二通信设备在该传输链路的上的端口没有检测到光信号的端口物理状态(DOWN)。Specifically, the first indication information may be carried in the existing TLV data field of the second LACP message, for example, in the local end information TLV data field. As shown in FIG. 4 , the first indication information may be carried in a certain byte of a reserved field in the TLV data field of the local end information (the reserved field includes three bytes, for example, the second byte may be used) . The port physical state of whether the port detects an optical signal can be notified to the opposite end in the local end information TLV data field. For example, when the reserved byte can be set to 0 (also can be set to 1 or other identifiers), it indicates that the port on the transmission link of the second communication device detects the port physical status (UP) of the optical signal. When the reserved byte can be set to 1 (also can be set to 0 or other identifiers), it indicates that the port of the second communication device on the transmission link does not detect the port physical state (DOWN) of the optical signal.
图5示出了根据本发明实施例的端口状态TLV数据域的示意图。可选地,该第二LACP报文包括连接状态TLV数据域,该连接状态TLV数据域承载该第一指示信息。FIG. 5 shows a schematic diagram of a port status TLV data field according to an embodiment of the present invention. Optionally, the second LACP packet includes a connection state TLV data field, where the connection state TLV data field carries the first indication information.
具体而言,该第一指示信息可以承载于第二LACP报文扩展的TLV数据域中。例如,如图5所示,可以在第二LACP报文的扩展字段中定义一个新的连接状态TLV数据域,用于承载该第一指示信息。可以在该增加的连接状态TLV数据域中把该端口是否检测到光信号的端口物理状态通知给对端。例如,可以将该TLV数据域中的连接状态字节设置为0(也可以设置为1或其他标识)时指示该第二通信设备在该传输链路的上的端口检测到光信号的端口物理状态(UP)。可以将该连接状态字节设置为1(也可以设置为0或其他标识)时指示该第二通信设备在该传输链路的上的端口没有检测到光信号的端口物理状态(DOWN)。Specifically, the first indication information may be carried in the TLV data field extended in the second LACP packet. For example, as shown in FIG. 5 , a new connection state TLV data field may be defined in the extension field of the second LACP packet to carry the first indication information. The port physical state of whether the port detects an optical signal may be notified to the opposite end in the added connection state TLV data field. For example, when the connection status byte in the TLV data field can be set to 0 (also can be set to 1 or other identifiers), it indicates that the port on the transmission link of the second communication device detects the physical port of the optical signal. Status (UP). When the connection status byte can be set to 1 (also can be set to 0 or other identifiers), it indicates that the port of the second communication device on the transmission link does not detect the port physical status (DOWN) of an optical signal.
上文描述了第一通信设备在传输链路中存在第三通信设备时可以进行超时时间切换,从而该第一通信设备可以快速进行链路检测,提高链路检测的效率。通常情况下,为了提高第二通信设备检测链路的效率,该第二通信设备也可以进行超时切换。即第一通信设备和第二通信设备可以均进行超时切换,以使第一通信设备和第二通信设备均可以高效的进行链路检测。下文结合图3具体描述第二通信设备如何进行超时切换。It is described above that the first communication device can perform timeout time switching when there is a third communication device in the transmission link, so that the first communication device can quickly perform link detection and improve the efficiency of link detection. Usually, in order to improve the efficiency of the second communication device in detecting the link, the second communication device may also perform a timeout switch. That is, both the first communication device and the second communication device can perform a timeout switch, so that both the first communication device and the second communication device can perform link detection efficiently. The following describes in detail how the second communication device performs the time-out switching with reference to FIG. 3 .
可选地,如图3所示,该方法100还包括:Optionally, as shown in FIG. 3 , the method 100 further includes:
S130、该第一通信设备向该第二通信设备发送第三LACP报文,该第三LACP报文携带第二指示信息,该第二指示信息用于指示该第二通信设备将用于检测该传输链路的超时时间由该第一超时时间切换为该第二超时时间,或该第二状态指示信息用于指示该传输链路之间存在该第三通信设备;S130. The first communication device sends a third LACP packet to the second communication device, where the third LACP packet carries second indication information, where the second indication information is used to indicate that the second communication device will be used to detect the The timeout period of the transmission link is switched from the first timeout period to the second timeout period, or the second status indication information is used to indicate that the third communication device exists between the transmission links;
S140、该第二通信设备根据该第二指示信息将用于检测该传输链路的超时时间由该第一超时时间切换为该第二超时时间。S140. The second communication device switches the timeout period for detecting the transmission link from the first timeout period to the second timeout period according to the second indication information.
具体而言,当该第一通信设备确定该传输链路之间存在第三通信设备之后,该第一通信设备可以向该第二通信设备发送第二指示信息,以用于该第二通信设备根据该第一指示信息进行超时切换。其中,该第一指示信息指示的内容可以包括三种情况:Specifically, after the first communication device determines that a third communication device exists between the transmission links, the first communication device may send second indication information to the second communication device for the second communication device The time-out switching is performed according to the first indication information. Wherein, the content indicated by the first indication information may include three situations:
情况一:Case 1:
该第二指示信息直接指示第二通信设备将该第一超时时间切换为该第二超时时间。此时该第二通信设备接收到该第二指示信息后直接进行超时时间切换。具体而言,第一通信设备通过执行S101-S111可以获知在该传输链路中存在该第三通信设备,需要进行超时切换。此时,该第一通信设备可以直接向第二通信设备发送用于指示第二通信设备进行超时时间切换的第二指示信息,第二通信设备接收到该第二指示信息后根据指示直接进行超时时间切换。The second indication information directly instructs the second communication device to switch the first timeout period to the second timeout period. At this time, the second communication device directly performs timeout time switching after receiving the second indication information. Specifically, by executing S101-S111, the first communication device can learn that the third communication device exists in the transmission link and needs to perform a timeout switch. At this time, the first communication device may directly send second indication information to the second communication device for instructing the second communication device to perform a timeout time switch, and the second communication device directly performs a timeout according to the instruction after receiving the second indication information time switch.
情况二:Case two:
该第二指示信息指示该传输链路中存在该第三通信设备。此时,该第二通信设备接收到该第二指示信息后可以获知存在该第三通信设备进而进行超时时间切换。具体而言,第一通信设备通过执行S101-S111可以获知在该传输链路中存在该第三通信设备。此时,该第一通信设备可以向第二通信设备发送用于指示存在该第三通信设备的第二指示信息,第二通信设备接收到该第二指示信息后获知存在该第三通信设备,从而第二通信设备确定进行超时时间切换。The second indication information indicates that the third communication device exists in the transmission link. At this time, after receiving the second indication information, the second communication device may know that the third communication device exists and then perform timeout time switching. Specifically, the first communication device may learn that the third communication device exists in the transmission link by performing S101-S111. At this time, the first communication device may send second indication information for indicating the existence of the third communication device to the second communication device, and the second communication device learns that the third communication device exists after receiving the second indication information, Therefore, the second communication device determines to perform the timeout time switching.
情况三:Case three:
该第一通信设备向该第二通信设备发送第三LACP报文之前,该方法还可以包括:该第一通信设备向第二通信设备发送第四LACP报文,该第四LACP报文用于触发第二通信设备关闭光信号;Before the first communication device sends a third LACP packet to the second communication device, the method may further include: the first communication device sends a fourth LACP packet to the second communication device, where the fourth LACP packet is used for triggering the second communication device to turn off the optical signal;
该第二指示信息可以用于指示该第一通信设备在该传输链路上的端口检测到光信号时的端口物理状态;可选地,该第四LACP报文为该第一通信设备和第二通信设备使能LACP功能后,该第二通信设备接收的第一个报文。该第二通信设备接收到该第二指示信息后可以首先确定存在第三通信设备,然后进行超时时间切换。即在情况三中,第二通信设备可以采用与第一通信设备相同的方法先确定该传输链路存在第三通信设备再进行超时时间切换,为了避免赘述,省略其详细说明。The second indication information may be used to indicate the physical state of the port of the first communication device when the port on the transmission link detects the optical signal; optionally, the fourth LACP packet is the first communication device and the first communication device. The first packet received by the second communication device after the LACP function is enabled on the second communication device. After receiving the second indication information, the second communication device may first determine that there is a third communication device, and then perform timeout time switching. That is, in
在三种情况中,该第二指示信息可以承载在第一通信设备向第二通信设备发送的第三LACP报文已有的TLV数据域中,也可以承载在该第三LACP报文新增的扩展TLV数据域中,具体描述可以如上所述,本发明在此不做限定。In three cases, the second indication information may be carried in the existing TLV data field of the third LACP packet sent by the first communication device to the second communication device, or may be carried in the newly added third LACP packet In the extended TLV data field of , the specific description can be as described above, which is not limited in the present invention.
应理解,在本发明中可以仅是第一通信设备切换超时时间,也可以是第一通信设备和第二通信设备均切换超时时间。当该传输链路上存在该第三通信设备时第一通信设备和第二通信设备均进行超时时间切换可以作为本发明优选的实施方式。It should be understood that in the present invention, it may be only the switching timeout time of the first communication device, or it may be the switching timeout time of both the first communication device and the second communication device. When the third communication device exists on the transmission link, both the first communication device and the second communication device perform timeout time switching, which may be a preferred embodiment of the present invention.
需要说明的是,本发明实施例中第二超时时间可以由第一通信设备设定,该第二通信设备进行超时时间切换时,该第二通信设备可以将第一超时时间切换为第二超时时间,也可以将第一超时时间切换为第三超时时间,其中该第三超时时间由第二通信设备设定。换句话说,第二通信设备在获知需要进行超时时间切换的情况下(例如,第二通信设备接收来自第一通信设备的第三指示信息,该第三指示信息可以用于指示第二通信设备进行超时模式切换或指示该传输链路存在第三通信设备),该第二通信设备并不限于将超时时间切换至与第一通信设备相同的超时时间。It should be noted that, in this embodiment of the present invention, the second timeout period may be set by the first communication device, and when the second communication device switches the timeout period, the second communication device may switch the first timeout period to the second timeout period time, the first timeout period can also be switched to a third timeout period, wherein the third timeout period is set by the second communication device. In other words, when the second communication device learns that the time-out switching is required (for example, the second communication device receives third indication information from the first communication device, the third indication information can be used to instruct the second communication device perform timeout mode switching or indicate that there is a third communication device in the transmission link), the second communication device is not limited to switching the timeout time to the same timeout time as the first communication device.
上文结合图1至图5,详细说明了根据本发明实施例的切换超时时间的方法,以下结合图6至图9说明本发明实施例的切换超时时间的装置。The method for switching a timeout period according to an embodiment of the present invention is described in detail above with reference to FIGS. 1 to 5 , and the apparatus for switching a timeout period according to an embodiment of the present invention is described below with reference to FIGS. 6 to 9 .
图6示出了根据本发明实施例的切换超时时间的装置200的示意性框图。如图6所示,该装置200可以为第一通信设备,该装置包括确定模块210和处理模块220,其中,FIG. 6 shows a schematic block diagram of an apparatus 200 for switching a timeout period according to an embodiment of the present invention. As shown in FIG. 6 , the apparatus 200 may be a first communication device, and the apparatus includes a determination module 210 and a processing module 220, wherein,
该确定模块210用于确定该第一通信设备和第二通信设备之间的传输链路中是否存在第三通信设备;The determining module 210 is configured to determine whether a third communication device exists in the transmission link between the first communication device and the second communication device;
处理模块220用于当该确定模块210确定存在该第三通信设备时,将用于检测该传输链路的超时时间由第一超时时间切换为第二超时时间,该第一超时时间长于该第二超时时间。The processing module 220 is configured to, when the determining module 210 determines that the third communication device exists, switch the timeout period for detecting the transmission link from a first timeout period to a second timeout period, where the first timeout period is longer than the first timeout period. 2. Timeout time.
可选地,图7示出了本发明实施例的另一示意性框图。如图7所示,该装置200还包括:接收模块230,该接收模块230用于接收来自该第二通信设备的第一链路聚合控制协议LACP报文;Optionally, FIG. 7 shows another schematic block diagram of an embodiment of the present invention. As shown in FIG. 7 , the apparatus 200 further includes: a receiving module 230, where the receiving module 230 is configured to receive a first link aggregation control protocol LACP message from the second communication device;
该处理模块220还用于在该接收模块230接收该第一LACP报文后停止发送光信号;The processing module 220 is further configured to stop sending the optical signal after the receiving module 230 receives the first LACP message;
该接收模块230还用于接收来自该第二通信设备的第二LACP,该第二LACP携带第一指示信息,该第一指示信息用于指示该第二通信设备在该传输链路上的端口检测到光信号时的端口物理状态;The receiving module 230 is further configured to receive a second LACP from the second communication device, where the second LACP carries first indication information, and the first indication information is used to indicate a port of the second communication device on the transmission link The physical state of the port when the optical signal is detected;
该确定模块210具体用于根据该第一指示信息确定该第一通信设备和该第二通信设备之间的传输链路中存在该第三通信设备。The determining module 210 is specifically configured to determine, according to the first indication information, that the third communication device exists in the transmission link between the first communication device and the second communication device.
可选地,该第二LACP报文包括本端信息类型长度值TLV数据域,该本端信息TLV数据域承载该第一指示信息。Optionally, the second LACP message includes a local end information type length value TLV data field, and the local end information TLV data field carries the first indication information.
可选地,该第二LACP报文包括连接状态TLV数据域,该连接状态TLV数据域承载该第一指示信息。Optionally, the second LACP packet includes a connection state TLV data field, where the connection state TLV data field carries the first indication information.
可选地,如图7所示,该装置200还包括:发送模块240,该发送模块240用于向该第二通信设备发送第三LACP报文,该第三LACP报文携带第二指示信息,该第二指示信息用于指示该第二通信设备将用于检测该传输链路的超时时间由该第一超时时间切换为该第二超时时间,或该第二指示信息用于指示该第一通信设备和该第二通信设备的传输链路之间存在该第三通信设备,以用于该第二通信设备根据该第二指示信息将用于检测该传输链路的超时时间由该第一超时时间切换为该第二超时时间。Optionally, as shown in FIG. 7 , the apparatus 200 further includes: a sending module 240, where the sending module 240 is configured to send a third LACP packet to the second communication device, where the third LACP packet carries the second indication information , the second indication information is used to instruct the second communication device to switch the time-out time for detecting the transmission link from the first time-out time to the second time-out time, or the second indication information is used to instruct the first time-out time The third communication device exists between a communication device and the transmission link of the second communication device, so that the second communication device can change the timeout time for detecting the transmission link by the first communication device according to the second indication information. A timeout period is switched to the second timeout period.
可选地,在该处理模块220将用于检测该传输链路的超时时间由第一超时时间切换为第二超时时间之前,该处理模块220还用于设定第二超时时间。Optionally, before the processing module 220 switches the timeout period for detecting the transmission link from the first timeout period to the second timeout period, the processing module 220 is further configured to set the second timeout period.
需要指出的是,上述传输链路和第一指示信息等可以参见图1至图5所示实施例中的相关描述,此处不再赘述。It should be noted that, for the above-mentioned transmission link and the first indication information, etc., reference may be made to the relevant descriptions in the embodiments shown in FIG. 1 to FIG. 5 , and details are not repeated here.
应理解,根据本发明实施例的切换超时时间的装置200可对应于根据本发明实施例的切换超时模式的方法中的第一通信设备,并且,该切换超时时间的装置200中的各模块和/或单元为了实现上述图1至图5中由第一通信设备执行的各个步骤,为了简洁,在此不再赘述。It should be understood that the apparatus 200 for switching a timeout period according to an embodiment of the present invention may correspond to the first communication device in the method for switching a timeout mode according to an embodiment of the present invention, and each module in the apparatus 200 for switching a timeout period and In order to implement each step performed by the first communication device in the above-mentioned FIG. 1 to FIG. 5 by the unit/or unit, for the sake of brevity, details are not repeated here.
因此,本发明实施例的通信设备,该装置200在确定传输链路上存在第三通信设备时,该装置200可以进行超时时间的切换,从而可以提高该装置200进行链路检测效率。Therefore, in the communication device of the embodiment of the present invention, when the apparatus 200 determines that there is a third communication device on the transmission link, the apparatus 200 can switch the timeout period, thereby improving the link detection efficiency of the apparatus 200.
图8示出了根据本发明另一实施例的切换超时时间的装置300的示意性框图。如图8所示,该装置300可以为第二通信设备,该装置300包括发送模块310,其中,该发送模块310用于向第一通信设备发送第一链路聚合控制协议LACP报文,该第一LACP报文用于触发该第一通信设备关闭光信号;该发送模块310还用于向该第一通信设备发送第二LACP报文,该第二LACP报文携带第一指示信息,该第一指示信息用于指示该第二通信设备在该传输链路上的端口检测到光信号时的端口物理状态,以用于该第一通信设备根据该第一指示信息将第一超时时间切换为第二超时时间,该第一超时时间长于该第二超时时间。FIG. 8 shows a schematic block diagram of an apparatus 300 for switching a timeout period according to another embodiment of the present invention. As shown in FIG. 8 , the apparatus 300 may be a second communication device, and the apparatus 300 includes a sending module 310, wherein the sending module 310 is configured to send a first link aggregation control protocol LACP packet to the first communication device, the The first LACP packet is used to trigger the first communication device to turn off the optical signal; the sending module 310 is further configured to send a second LACP packet to the first communication device, where the second LACP packet carries the first indication information, the The first indication information is used to indicate the physical state of the port of the second communication device when the port on the transmission link detects the optical signal, so that the first communication device can switch the first timeout time according to the first indication information is a second timeout period, and the first timeout period is longer than the second timeout period.
可选地,该第二LACP报文包括本端信息类型长度值TLV数据域,该本端信息TLV数据域承载该第一指示信息。Optionally, the second LACP message includes a local end information type length value TLV data field, and the local end information TLV data field carries the first indication information.
可选地,该第二LACP报文包括连接状态TLV数据域,该连接状态TLV数据域承载该第一指示信息。Optionally, the second LACP packet includes a connection state TLV data field, where the connection state TLV data field carries the first indication information.
图9示出了本发明另一实施例切换超时时间的装置的另一示意图。可选地,如图9所示,该切换超时时间的装置300还包括,接收模块320用于接收来自该第一通信设备的第三LACP,该第三LACP携带第二指示信息,该第二指示信息用于指示该第二通信设备将用于检测该传输链路的超时时间由该第一超时时间切换为该第二超时时间,或该第二指示信息用于指示该传输链路中存在第三通信设备;处理模块330,用于根据该第二指示信息将用于检测该传输链路的超时时间由该第一超时时间切换为该第二超时时间。FIG. 9 shows another schematic diagram of an apparatus for switching a timeout period according to another embodiment of the present invention. Optionally, as shown in FIG. 9 , the apparatus 300 for switching the timeout period further includes: the receiving module 320 is configured to receive a third LACP from the first communication device, where the third LACP carries second indication information, the second The indication information is used to instruct the second communication device to switch the time-out time for detecting the transmission link from the first time-out time to the second time-out time, or the second indication information is used to indicate that there is a presence in the transmission link The third communication device; the processing module 330, configured to switch the timeout period for detecting the transmission link from the first timeout period to the second timeout period according to the second indication information.
可选地,该第二超时时间为该第一通信设备设定的超时时间。Optionally, the second timeout period is a timeout period set by the first communication device.
需要指出的是,上述传输链路和第一指示信息等可以参见图1至图5所示实施例中的相关描述,此处不再赘述。It should be noted that, for the above-mentioned transmission link and the first indication information, etc., reference may be made to the relevant descriptions in the embodiments shown in FIG. 1 to FIG. 5 , and details are not repeated here.
根据本发明实施例的切换超时时间的装置300可对应于根据本发明实施例的切换超时模式的方法中的第二通信设备,并且,该切换超时时间的装置300中的各模块和/或单元为了实现上述图1至图5中由第二通信设备执行的各个步骤,为了简洁,在此不再赘述。The apparatus 300 for switching the timeout time according to the embodiment of the present invention may correspond to the second communication device in the method for switching the timeout mode according to the embodiment of the present invention, and each module and/or unit in the apparatus 300 for switching the timeout time In order to realize the various steps performed by the second communication device in the above-mentioned FIG. 1 to FIG. 5 , for the sake of brevity, details are not repeated here.
因此,本发明实施例的切换超时时间的装置300,该装置可以向该第一通信设备发送第一LACP报文和包括第一指示信息的第二LACP报文,使得该第一通信设备进行超时时间切换,同时该第二通信设备也可以进行超时时间切换,提高检测链路的效率。Therefore, according to the apparatus 300 for switching a timeout period in this embodiment of the present invention, the apparatus can send a first LACP packet and a second LACP packet including the first indication information to the first communication device, so that the first communication device performs a timeout Time switching, and at the same time, the second communication device can also perform timeout time switching, so as to improve the efficiency of detecting the link.
以上,结合图6至图9从功能模块的角度详细说明了根据本发明实施例的切换超时时间的装置,以下,结合图10和图11详细说明根据本发明实施例的通信设备。Above, the apparatus for switching the timeout period according to the embodiment of the present invention is described in detail from the perspective of functional modules with reference to FIGS. 6 to 9 . The following describes the communication device according to the embodiment of the present invention in detail with reference to FIGS.
图10示出了根据本发明实施例的通信设备400的示意性框图。如图10所示,该通信设备400,该通信设备400可以为第一通信设备,包括处理器410、收发器420、存储器430和总线系统440,其中,处理器410、收发器420和存储器430可以通过总线系统440相连,该存储器430可以用于存储指令,该处理器410用于执行该存储器430存储的指令,该处理器410用于:确定该第一通信设备和第二通信设备之间的传输链路是否存在第三通信设备;当该处理器确定存在该第三通信设备时,将用于检测该传输链路的超时时间由第一超时时间切换为第二超时时间,该第一超时时间长于该第二超时时间。FIG. 10 shows a schematic block diagram of a communication device 400 according to an embodiment of the present invention. As shown in FIG. 10 , the communication device 400 , which may be a first communication device, includes a processor 410 , a transceiver 420 , a memory 430 and a
可选地,该收发器420用于接收来自该第二通信设备的第一链路聚合控制协议LACP报文;该处理器410还用于在该收发器420接收该第一LACP报文后停止发送光信号;该收发器420还用于接收来自该第二通信设备的第二LACP,该第二LACP携带第一指示信息,该第一指示信息用于指示该第二通信设备在该传输链路上的端口检测到光信号时的端口物理状态;该处理器410具体用于根据该第一指示信息确定该第一通信设备和该第二通信设备之间的传输链路中存在该第三通信设备。Optionally, the transceiver 420 is configured to receive a first link aggregation control protocol LACP message from the second communication device; the processor 410 is further configured to stop after the transceiver 420 receives the first LACP message sending an optical signal; the transceiver 420 is further configured to receive a second LACP from the second communication device, the second LACP carries first indication information, and the first indication information is used to indicate that the second communication device is in the transmission chain The physical state of the port when the port on the road detects the optical signal; the processor 410 is specifically configured to determine, according to the first indication information, that the third communication device exists in the transmission link between the first communication device and the second communication device communication device.
可选地,该第二LACP报文包括本端信息类型长度值TLV数据域,该本端信息TLV数据域承载该第一指示信息。Optionally, the second LACP message includes a local end information type length value TLV data field, and the local end information TLV data field carries the first indication information.
可选地,该第二LACP报文包括连接状态TLV数据域,该连接状态TLV数据域承载该第一指示信息。Optionally, the second LACP packet includes a connection state TLV data field, where the connection state TLV data field carries the first indication information.
可选地,该收发器420还用于向该第二通信设备发送第三LACP报文,该第三LACP报文携带第二指示信息,该第二指示信息用于指示该第二通信设备将用于检测该传输链路的超时时间由该第一超时时间切换为该第二超时时间,或该第二指示信息用于指示该第一通信设备和该第二通信设备的传输链路之间存在该第三通信设备,以用于该第二通信设备根据该第二指示信息将用于检测该传输链路的超时时间由该第一超时时间切换为该第二超时时间。Optionally, the transceiver 420 is further configured to send a third LACP packet to the second communication device, where the third LACP packet carries second indication information, and the second indication information is used to instruct the second communication device to The time-out time for detecting the transmission link is switched from the first time-out time to the second time-out time, or the second indication information is used to indicate the connection between the transmission link of the first communication device and the second communication device The third communication device exists for the second communication device to switch the timeout period for detecting the transmission link from the first timeout period to the second timeout period according to the second indication information.
可选地,在该处理器410将用于检测该传输链路的超时时间由第一超时时间切换为第二超时时间之前,该处理器410还用于设定第二超时时间。Optionally, before the processor 410 switches the timeout period for detecting the transmission link from the first timeout period to the second timeout period, the processor 410 is further configured to set the second timeout period.
需要指出的是,上述传输链路和第一指示信息等可以参见图1至图5所示实施例中的相关描述,此处不再赘述。It should be noted that, for the above-mentioned transmission link and the first indication information, etc., reference may be made to the relevant descriptions in the embodiments shown in FIG. 1 to FIG. 5 , and details are not repeated here.
应理解,在本发明实施例中,该处理器410可以是中央处理单元(centralprocessing unit,简称为“CPU”),该处理器410还可以是其它通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in this embodiment of the present invention, the processor 410 may be a central processing unit (central processing unit, “CPU” for short), and the processor 410 may also be other general-purpose processors, digital signal processors (DSPs), Application Specific Integrated Circuits (ASICs), Off-The-Shelf Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
该存储器430可以包括只读存储器和随机存取存储器,并向处理器410提供指令和数据。处理器410的一部分还可以包括非易失性随机存取存储器。例如,处理器410还可以存储设备类型的信息。The memory 430 , which may include read-only memory and random access memory, provides instructions and data to the processor 410 . A portion of processor 410 may also include non-volatile random access memory. For example, the processor 410 may also store device type information.
该总线系统440除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统440。In addition to the data bus, the
在实现过程中,上述方法的各步骤可以通过处理器410中的硬件的集成逻辑电路或者软件形式的指令完成。结合本发明实施例所公开的传输参考信号的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器430,处理器410读取存储器430中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。In the implementation process, each step of the above-mentioned method may be completed by an integrated logic circuit of hardware in the processor 410 or an instruction in the form of software. The steps of the method for transmitting a reference signal disclosed in conjunction with the embodiments of the present invention may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor. The software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art. The storage medium is located in the memory 430, and the processor 410 reads the information in the memory 430, and completes the steps of the above method in combination with its hardware. To avoid repetition, detailed description is omitted here.
根据本发明实施例的通信设备400可对应于根据本发明实施例的切换超时时间的方法的第一通信设备,并且,该通信设备400中的部分和上述其它操作和/或功能分别为了图1至图5中由第一通信设备执行的相应流程,为了简洁,在此不再赘述。The communication device 400 according to the embodiment of the present invention may correspond to the first communication device of the method for switching the timeout time according to the embodiment of the present invention, and some parts of the communication device 400 and other operations and/or functions mentioned above are for the purpose of FIG. 1 , respectively. The corresponding processes performed by the first communication device in FIG. 5 will not be repeated here for brevity.
因此,本发明实施例的通信设备,当该传输链路中存在第三通信设备时可以进行超时时间切换,从而提高链路检测的效率。Therefore, in the communication device according to the embodiment of the present invention, when there is a third communication device in the transmission link, the time-out time switch can be performed, thereby improving the efficiency of link detection.
图11示出了根据本发明实施例的通信设备500的示意性框图。如图11所示,该通信设备500可以为第二通信设备,该通信设备500包括处理器510、收发器520、存储器530和总线系统540,其中,处理器510、收发器520和存储器530可以通过总线系统540相连,该存储器530可以用于存储指令,该处理器510用于执行该存储器530存储的指令,FIG. 11 shows a schematic block diagram of a communication device 500 according to an embodiment of the present invention. As shown in FIG. 11 , the communication device 500 may be a second communication device, and the communication device 500 includes a processor 510 , a transceiver 520 , a memory 530 and a bus system 540 , wherein the processor 510 , the transceiver 520 and the memory 530 may Connected through the bus system 540, the memory 530 can be used for storing instructions, the processor 510 is used for executing the instructions stored in the memory 530,
该收发器520用于向第一通信设备发送第一链路聚合控制协议LACP报文;该收发器520还用于向该第一通信设备发送第二LACP报文,该第二LACP报文携带第一指示信息,该第一指示信息用于指示该第二通信设备在该第一通信设备和第二通信设备之间的传输链路上的端口检测到光信号时的端口物理状态,以用于该第一通信设备根据该第一指示信息将用于检测该传输链路的超时时间由第一超时时间切换为第二超时时间,该第一超时时间长于该第二超时时间。The transceiver 520 is configured to send a first link aggregation control protocol LACP packet to the first communication device; the transceiver 520 is further configured to send a second LACP packet to the first communication device, where the second LACP packet carries First indication information, the first indication information is used to indicate the port physical state of the second communication device when the port on the transmission link between the first communication device and the second communication device detects an optical signal, so as to use Since the first communication device switches the timeout period for detecting the transmission link from the first timeout period to the second timeout period according to the first indication information, the first timeout period is longer than the second timeout period.
可选地,该第二LACP报文包括本端信息类型长度值TLV数据域,该本端信息TLV数据域承载该第一指示信息。Optionally, the second LACP message includes a local end information type length value TLV data field, and the local end information TLV data field carries the first indication information.
可选地,该第二LACP报文包括连接状态TLV数据域,该连接状态TLV数据域承载该第一指示信息。Optionally, the second LACP packet includes a connection state TLV data field, where the connection state TLV data field carries the first indication information.
可选地,该收发器520用于接收来自该第一通信设备的第三LACP,该第三LACP携带第二指示信息,该第二指示信息用于指示该第二通信设备将用于检测该传输链路的超时时间由该第一超时时间切换为该第二超时时间,或该第二指示信息用于指示该第一通信设备和该第二通信设备之间的传输链路中存在第三通信设备;该处理器510用于根据该第二指示信息将该用于检测所述传输链路的超时时间由第一超时时间切换为该第二超时时间。Optionally, the transceiver 520 is configured to receive a third LACP from the first communication device, where the third LACP carries second indication information, and the second indication information is used to indicate that the second communication device will be used to detect the The timeout period of the transmission link is switched from the first timeout period to the second timeout period, or the second indication information is used to indicate that a third communication device exists in the transmission link between the first communication device and the second communication device. Communication equipment; the processor 510 is configured to switch the timeout period for detecting the transmission link from the first timeout period to the second timeout period according to the second indication information.
可选地,该第二超时时间为该第一通信设备设定的超时时间。Optionally, the second timeout period is a timeout period set by the first communication device.
需要指出的是,上述传输链路和第一指示信息等可以参见图1至图5所示实施例中的相关描述,此处不再赘述。It should be noted that, for the above-mentioned transmission link and the first indication information, etc., reference may be made to the relevant descriptions in the embodiments shown in FIG. 1 to FIG. 5 , and details are not repeated here.
应理解,在本发明实施例中,该处理器510可以是中央处理单元(centralprocessing unit,简称为“CPU”),该处理器510还可以是其它通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that in this embodiment of the present invention, the processor 510 may be a central processing unit (central processing unit, “CPU” for short), and the processor 510 may also be other general-purpose processors, digital signal processors (DSPs), Application Specific Integrated Circuits (ASICs), Off-The-Shelf Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
该存储器530可以包括只读存储器和随机存取存储器,并向处理器510提供指令和数据。处理器510的一部分还可以包括非易失性随机存取存储器。例如,处理器510还可以存储设备类型的信息。The memory 530 , which may include read-only memory and random access memory, provides instructions and data to the processor 510 . A portion of processor 510 may also include non-volatile random access memory. For example, the processor 510 may also store device type information.
该总线系统540除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统540。In addition to the data bus, the bus system 540 may also include a power bus, a control bus, a status signal bus, and the like. However, for clarity of illustration, the various buses are labeled as bus system 540 in the figure.
在实现过程中,上述方法的各步骤可以通过处理器510中的硬件的集成逻辑电路或者软件形式的指令完成。结合本发明实施例所公开的传输参考信号的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器530,处理器510读取存储器530中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。In the implementation process, each step of the above-mentioned method may be completed by a hardware integrated logic circuit in the processor 510 or an instruction in the form of software. The steps of the method for transmitting a reference signal disclosed in conjunction with the embodiments of the present invention may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor. The software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art. The storage medium is located in the memory 530, and the processor 510 reads the information in the memory 530, and completes the steps of the above method in combination with its hardware. To avoid repetition, detailed description is omitted here.
根据本发明实施例的通信设备500可对应于根据本发明实施例的切换超时时间的方法的第一通信设备,并且,该通信设备500中的各单元和上述其它操作和/或功能分别为了图1至图5中由第一通信设备执行的相应流程,为了简洁,在此不再赘述。The communication device 500 according to the embodiment of the present invention may correspond to the first communication device of the method for switching the timeout time according to the embodiment of the present invention, and each unit in the communication device 500 and the above-mentioned other operations and/or functions are for the purpose of FIG. The corresponding processes performed by the first communication device in FIG. 1 to FIG. 5 are not repeated here for brevity.
因此,本发明实施例的通信设备,该通信设备可以向该第一通信设备发送第一LACP报文以及第一指示信息,使得该第一通信设备进行超时时间切换,提高第一通信设备的链路检测效率。同时该通信设备也可以进行超时时间切换,提高检测链路的效率。Therefore, in the communication device according to the embodiment of the present invention, the communication device can send the first LACP packet and the first indication information to the first communication device, so that the first communication device performs a timeout time switch and improves the chain link of the first communication device. road detection efficiency. At the same time, the communication device can also perform time-out switching to improve the efficiency of the detection link.
图12示出了本发明实施例的通信系统的示意性框图。如图12所示,该通信系统600包括第一通信设备610和第二通信设备620。FIG. 12 shows a schematic block diagram of a communication system according to an embodiment of the present invention. As shown in FIG. 12 , the communication system 600 includes a first communication device 610 and a second communication device 620 .
其中该第一通信设备和第二通信设备可以参见图1至图5所示实施例中的相关描述,此处不再赘述。For the first communication device and the second communication device, reference may be made to the relevant descriptions in the embodiments shown in FIG. 1 to FIG. 5 , and details are not repeated here.
该通信系统600可以快速检测第一通信设备和第二通信设备之间的传输链路,从而提高该通信系统600检测传输链路的效率。The communication system 600 can quickly detect the transmission link between the first communication device and the second communication device, thereby improving the efficiency of the communication system 600 in detecting the transmission link.
应理解,在本发明的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that, in various embodiments of the present invention, the size of the sequence numbers of the above-mentioned processes does not mean the sequence of execution, and the execution sequence of each process should be determined by its functions and internal logic, rather than the embodiments of the present invention. implementation constitutes any limitation.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,RAM)、随机存取存储器(random access memory,ROM)、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, removable hard disk, read-only memory (RAM), random access memory (ROM), magnetic disk or optical disk and other media that can store program codes .
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. should be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims (23)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610149957.1A CN107204888B (en) | 2016-03-16 | 2016-03-16 | Method and device for switching timeout time and communication equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610149957.1A CN107204888B (en) | 2016-03-16 | 2016-03-16 | Method and device for switching timeout time and communication equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN107204888A CN107204888A (en) | 2017-09-26 |
| CN107204888B true CN107204888B (en) | 2020-02-14 |
Family
ID=59903774
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610149957.1A Active CN107204888B (en) | 2016-03-16 | 2016-03-16 | Method and device for switching timeout time and communication equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107204888B (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2020047842A1 (en) * | 2018-09-07 | 2020-03-12 | 华为技术有限公司 | Method, system and apparatus for sending link aggregation control protocol message |
| CN112994820B (en) | 2019-12-16 | 2023-04-18 | 华为技术有限公司 | Optical fiber link detection method and device |
| CN113114403B (en) * | 2020-01-13 | 2022-08-09 | 华为技术有限公司 | Link detection method and related equipment |
| CN111984454B (en) * | 2020-08-31 | 2023-08-22 | 中国银行股份有限公司 | Task timeout monitoring method, device and storage medium |
| CN118741355A (en) * | 2023-03-28 | 2024-10-01 | 华为技术有限公司 | A link detection method and related device |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1764201A (en) * | 2004-10-18 | 2006-04-26 | 捷讯研究有限公司 | Method and apparatus for controlling an upper layer in a protocol stack to delay timeouts |
| CN102257759A (en) * | 2011-04-25 | 2011-11-23 | 华为技术有限公司 | Master-standby switching method, system control unit and communication system |
| CN102404143A (en) * | 2011-11-17 | 2012-04-04 | 华为技术有限公司 | Port Fault Handling Method and LACP Terminal Based on LACP |
| CN102970172A (en) * | 2012-12-06 | 2013-03-13 | 华为技术有限公司 | Communication link switching method, device and communication system |
| CN103885722A (en) * | 2012-12-19 | 2014-06-25 | 富士通株式会社 | Information processing apparatus, information processing system, storage apparatus and input/output method |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005217976A (en) * | 2004-01-30 | 2005-08-11 | Canon Inc | Electronic device and control method thereof |
-
2016
- 2016-03-16 CN CN201610149957.1A patent/CN107204888B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1764201A (en) * | 2004-10-18 | 2006-04-26 | 捷讯研究有限公司 | Method and apparatus for controlling an upper layer in a protocol stack to delay timeouts |
| CN102257759A (en) * | 2011-04-25 | 2011-11-23 | 华为技术有限公司 | Master-standby switching method, system control unit and communication system |
| CN102404143A (en) * | 2011-11-17 | 2012-04-04 | 华为技术有限公司 | Port Fault Handling Method and LACP Terminal Based on LACP |
| CN102970172A (en) * | 2012-12-06 | 2013-03-13 | 华为技术有限公司 | Communication link switching method, device and communication system |
| CN103885722A (en) * | 2012-12-19 | 2014-06-25 | 富士通株式会社 | Information processing apparatus, information processing system, storage apparatus and input/output method |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107204888A (en) | 2017-09-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107204888B (en) | Method and device for switching timeout time and communication equipment | |
| CN107846342B (en) | Method, device and system for forwarding VXLAN message | |
| US8098682B2 (en) | System and method for interfacing with a management system | |
| CN105657748B (en) | Communication method and network equipment based on tunnel binding | |
| CN102014019B (en) | Aggregated link switching method and device | |
| US10148595B2 (en) | Handling dynamic port/LAG changes without breaking communication in an extended bridge | |
| CN103067277B (en) | Set up and control the method for passage, forwarding unit and control equipment | |
| US10277464B2 (en) | Client auto-configuration in a multi-switch link aggregation | |
| WO2017054547A1 (en) | Bidirectional forwarding detection method and apparatus | |
| CN107465613B (en) | Link aggregation interface communication state switching method and device | |
| CN110875855A (en) | Method and network device for detecting network link status | |
| CN104253764A (en) | Link aggregation method and device | |
| US20220294728A1 (en) | Packet Transmission Path Switching Method, Device, and System | |
| CN102594696B (en) | A kind of method and device managing network device link aggregation group | |
| CN102970172B (en) | A kind of method that communication link switches, equipment and communication system | |
| CN107332793B (en) | A message forwarding method, related equipment and system | |
| CN102244589A (en) | Method and opposite terminal apparatus for processing link fault in virtual switch unit system | |
| WO2017000096A1 (en) | Link recovery method and network device | |
| TWI427992B (en) | Methods and apparatuses of network connection with auto-negotiation | |
| CN101217487A (en) | A method for realizing link preemption and link port | |
| RU2510142C2 (en) | Method and system for transmitting message between extended processor and switch circuit | |
| CN102957542B (en) | Network device and method for setting operation of communication port thereof | |
| US11212163B1 (en) | Systems and methods for deadlock avoidance within MPLS networks | |
| WO2016086693A1 (en) | Message transmission method, backbone switch and access switch | |
| CN112751754B (en) | Method and equipment for selecting port switched to working state during dual-homing access |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |