CN108667640A - Communication method and equipment, network access system - Google Patents
Communication method and equipment, network access system Download PDFInfo
- Publication number
- CN108667640A CN108667640A CN201710199105.8A CN201710199105A CN108667640A CN 108667640 A CN108667640 A CN 108667640A CN 201710199105 A CN201710199105 A CN 201710199105A CN 108667640 A CN108667640 A CN 108667640A
- Authority
- CN
- China
- Prior art keywords
- equipment
- control device
- lacp
- master control
- interface
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 230000006854 communication Effects 0.000 title claims abstract description 126
- 238000004891 communication Methods 0.000 title claims abstract description 123
- 238000000034 method Methods 0.000 title claims abstract description 50
- 230000002776 aggregation Effects 0.000 claims description 17
- 238000004220 aggregation Methods 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 8
- 230000005540 biological transmission Effects 0.000 claims description 5
- 238000003780 insertion Methods 0.000 claims 2
- 230000037431 insertion Effects 0.000 claims 2
- 241000208340 Araliaceae Species 0.000 claims 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 claims 1
- 235000003140 Panax quinquefolius Nutrition 0.000 claims 1
- 235000008434 ginseng Nutrition 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 22
- 230000006870 function Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- 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/0668—Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/0005—Control or signalling for completing the hand-off
- H04W36/0011—Control or signalling for completing the hand-off for data sessions of end-to-end connection
- H04W36/0016—Hand-off preparation specially adapted for end-to-end data sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/16—Performing reselection for specific purposes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
本申请涉及通信领域,特别涉及一种通信方法及设备、网络接入系统。The present application relates to the communication field, in particular to a communication method and equipment, and a network access system.
背景技术Background technique
在通信网络中,网络接入系统能够实现多个网络设备的连接,其包括:相连接的接入点(Access point,AP)设备和控制设备。例如,在第一设备通过网络接入系统与第二设备连接时,AP设备与第一设备相连接,控制设备与第二设备相连接。为了防止控制设备故障而导致的第一设备与第二设备无法通信,通常会在网络接入系统中设置“主控制设备”和“从控制设备”,主控制设备和从控制设备均与AP设备和第二设备相连接。在主控制设备出现故障时,第一设备通过AP设备和从控制设备与第二设备通信。In a communication network, a network access system can realize the connection of multiple network devices, which includes: a connected access point (Access point, AP) device and a control device. For example, when the first device is connected to the second device through the network access system, the AP device is connected to the first device, and the control device is connected to the second device. In order to prevent the first device from being unable to communicate with the second device due to a failure of the control device, a "master control device" and a "slave control device" are usually set up in the network access system. Both the master control device and the slave control device are connected to the AP device. to connect to the second device. When the master control device fails, the first device communicates with the second device through the AP device and the slave control device.
相关技术中,在主控制设备工作时,主控制设备与第一设备能够通过AP设备相互发送各自的设备信息,并根据链路聚合控制协议(Link Aggregation Control Protocol,LACP)和双方的设备信息,确定各自设备上的LACP链路接口,使得主控制设备和第一设备能够通过主控制设备上的LACP链路接口以及第一设备上的LACP链路接口进行通信。需要说明的是,在主控制设备工作的过程中,从控制设备会实时地检测主控制设备是否出现故障。在确定主控制设备出现故障时,从控制设备能够与第一设备通过AP设备相互发送各自的设备信息,并根据LACP和双方的设备信息,确定各自设备上的多个LACP链路接口,使得从控制设备和第一设备能够通过从控制设备上的多个LACP链路接口以及第一设备上的多个LACP链路接口进行通信。In related technologies, when the main control device is working, the main control device and the first device can send their respective device information to each other through the AP device, and according to the Link Aggregation Control Protocol (Link Aggregation Control Protocol, LACP) and the device information of both parties, The LACP link interface on the respective devices is determined, so that the main control device and the first device can communicate through the LACP link interface on the main control device and the LACP link interface on the first device. It should be noted that, during the working process of the master control device, the slave control device will detect whether the master control device fails in real time. When it is determined that the master control device fails, the slave control device and the first device can send their respective device information to each other through the AP device, and determine multiple LACP link interfaces on each device according to the LACP and the device information of both parties, so that the slave The control device and the first device can communicate through multiple LACP link interfaces on the slave control device and multiple LACP link interfaces on the first device.
在从控制设备确定从控制设备上的LACP链路接口的过程中,第一设备与第二设备之间可能仍然需要进行通信,但此时由于主控制设备和从控制设备均无法转发通信数据,因此,会导致第一设备与第二设备之间的通信中断。During the process of determining the LACP link interface on the slave control device, the first device and the second device may still need to communicate, but at this time, since neither the master control device nor the slave control device can forward the communication data, Therefore, communication between the first device and the second device may be interrupted.
发明内容Contents of the invention
为了解决在主控制设备故障时第一设备与第二设备之间的通信中断的问题,本申请提供了一种通信方法及设备、网络接入系统。所述技术方案如下:In order to solve the problem of communication interruption between the first device and the second device when the main control device fails, the present application provides a communication method, device, and network access system. Described technical scheme is as follows:
第一方面,提供了一种通信方法,用于网络接入系统中的从控制设备,所述网络接入系统还包括:主控制设备和接入点AP设备,所述AP设备与第一设备相连接,所述主控制设备和所述从控制设备均与所述AP设备和第二设备相连接,且所述主控制设备的链路聚合控制协议LACP参数与所述从控制设备的LACP参数相同,所述方法包括:接收所述主控制设备发送的所述第一设备的LACP参数;根据LACP、所述从控制设备的LACP参数以及所述第一设备的LACP参数,确定所述从控制设备上的LACP链路接口;在所述主控制设备故障时,通过所述从控制设备上的LACP链路接口与所述第一设备通信。In the first aspect, a communication method is provided, which is used for a slave control device in a network access system, and the network access system further includes: a master control device and an access point AP device, and the AP device and the first device The master control device and the slave control device are both connected to the AP device and the second device, and the link aggregation control protocol LACP parameter of the master control device is the same as the LACP parameter of the slave control device Similarly, the method includes: receiving the LACP parameters of the first device sent by the master control device; determining the slave control an LACP link interface on the device; when the master control device fails, communicate with the first device through the LACP link interface on the slave control device.
在主控制设备故障之前,从控制设备已经实时的确定出了从控制设备上的LACP链路接口,且由于主控制设备的LACP参数与从控制设备的LACP参数相同,因此,从控制设备所确定出的从控制设备的LACP链路接口的编号和优先级,与主控制设备确定出的主控制设备的LACP链路接口的编号和优先级均相同。在主控制设备故障时,第一设备与主控制设备无法进行通信,此时从控制设备允许第一设备与从控制设备进行通信,且在从控制设备与第一设备通信的过程中,由于从控制设备的LACP参数与主控制设备的LACP参数完全相同,且对于第一设备来说,主控制设备与从控制设备的LACP链路的接口也完全相同,因此,在主控制设备出现故障时,第一设备能够快速的从主控制设备上切换至从控制设备,从而实现数据的无损传输。Before the failure of the master control device, the slave control device has determined the LACP link interface on the slave control device in real time, and since the LACP parameters of the master control device are the same as those of the slave control device, the slave control device The number and priority of the LACP link interface of the slave control device determined by the master control device are the same as the number and priority of the LACP link interface of the master control device determined by the master control device. When the master control device fails, the first device cannot communicate with the master control device. At this time, the slave control device allows the first device to communicate with the slave control device, and during the communication process between the slave control device and the first device, due to The LACP parameters of the control device are exactly the same as the LACP parameters of the master control device, and for the first device, the interface of the LACP link between the master control device and the slave control device is also exactly the same, therefore, when the master control device fails, The first device can quickly switch from the master control device to the slave control device, thereby realizing lossless transmission of data.
可选的,所述接收所述主控制设备发送的所述第一设备的LACP参数,包括:多次接收所述主控制设备发送的所述第一设备的LACP参数,且任意两次接收到的所述第一设备的LACP参数相同或不同;所述根据链路聚合控制协议LACP、所述从控制设备的LACP参数以及所述第一设备的LACP参数,确定所述从控制设备上的LACP链路接口,包括:根据所述LACP、所述从控制设备的LACP参数以及每次接收到的所述第一设备的LACP参数,确定所述从控制设备上的LACP链路接口;所述通过所述从控制设备上的LACP链路接口与所述第一设备通信,包括:通过最近一次确定出的所述从控制设备上的LACP链路接口与所述第一设备通信。Optionally, the receiving the LACP parameters of the first device sent by the main control device includes: receiving the LACP parameters of the first device sent by the main control device multiple times, and receiving any two The LACP parameters of the first device are the same or different; the LACP on the slave control device is determined according to the link aggregation control protocol LACP, the LACP parameters of the slave control device, and the LACP parameters of the first device A link interface, including: determining the LACP link interface on the slave control device according to the LACP, the LACP parameters of the slave control device, and the LACP parameters of the first device received each time; The communicating with the first device through the LACP link interface on the slave control device includes: communicating with the first device through the latest determined LACP link interface on the slave control device.
由于与AP设备相连接的第一设备可能会变为另一个第一设备。此时,主控制设备接收到的第一设备的LACP参数可能会发生改变,因此从控制设备需要多次获取第一设备的LACP参数,并多次确定从控制设备上的LACP链路接口。在主控制设备故障时,需要使用最近一次确定出的LACP链路接口与第一设备通信。Because the first device connected to the AP device may become another first device. At this time, the LACP parameters of the first device received by the master control device may change, so the slave control device needs to obtain the LACP parameters of the first device multiple times, and determine the LACP link interface on the slave control device multiple times. When the main control device fails, it needs to use the LACP link interface determined last time to communicate with the first device.
可选的,在所述根据LACP、所述从控制设备的LACP参数以及所述第一设备的LACP参数,确定所述从控制设备上的LACP链路接口之前,所述方法还包括:接收所述主控制设备发送的优先级状态信息,所述优先级状态信息用于指示所述第一设备的系统优先级是否高于所述主控制设备的系统优先级;所述根据LACP、所述从控制设备的LACP参数以及所述第一设备的LACP参数,确定所述从控制设备上的LACP链路接口,包括:在所述优先级状态信息用于指示所述第一设备的系统优先级高于所述主控制设备的系统优先级时,根据所述LACP、所述从控制设备的LACP参数以及所述第一设备的LACP参数,确定所述从控制设备上的LACP链路接口;所述方法还包括:在所述优先级状态信息用于指示所述第一设备的系统优先级低于所述主控制设备的系统优先级时,根据所述LACP和所述从控制设备的LACP参数,确定所述从控制设备上的LACP链路接口。Optionally, before determining the LACP link interface on the slave control device according to LACP, the LACP parameter of the slave control device, and the LACP parameter of the first device, the method further includes: receiving the The priority status information sent by the master control device, the priority status information is used to indicate whether the system priority of the first device is higher than the system priority of the master control device; according to the LACP, the slave The LACP parameter of the control device and the LACP parameter of the first device, determining the LACP link interface on the slave control device, includes: the priority state information is used to indicate that the system priority of the first device is high When the system priority of the master control device is determined, according to the LACP, the LACP parameters of the slave control device, and the LACP parameters of the first device, determine the LACP link interface on the slave control device; the The method further includes: when the priority status information indicates that the system priority of the first device is lower than the system priority of the master control device, according to the LACP and the LACP parameters of the slave control device, Determine the LACP link interface on the slave control device.
主控制设备在向从控制设备发送第一设备的LACP参数时,还将用于指示第一设备的系统优先级是否高于主控制设备的系统优先级的优先级状态信息发送至从控制设备,这样一来,从控制设备就无需对从控制设备的系统优先级和第一设备的系统优先级进行比较,就能够确定从控制设备和第一设备中的主动端设备,进而能够更快的确定出从控制设备中的LACP链路接口。When the master control device sends the LACP parameters of the first device to the slave control device, it also sends priority status information indicating whether the system priority of the first device is higher than the system priority of the master control device to the slave control device, In this way, the slave control device can determine the active end device among the slave control device and the first device without comparing the system priority of the slave control device with the system priority of the first device, and thus can determine more quickly out from the LACP link interface on the control device.
可选的,所述LACP参数包括:系统优先级、系统编号、接口优先级以及接口编号,所述主控制设备的系统优先级与所述从控制设备的系统优先级相同,所述主控制设备的系统编号与所述从控制设备的系统编号相同;所述主控制设备的多个接口与所述从控制设备的多个接口一一对应,所述主控制设备中的任一接口的接口优先级与所述从控制设备中对应的接口的接口优先级相同,所述主控制设备中的任一接口的接口编号与所述从控制设备中对应的接口的接口编号相同。Optionally, the LACP parameters include: system priority, system number, interface priority and interface number, the system priority of the master control device is the same as the system priority of the slave control device, and the master control device The system number of the slave control device is the same as the system number of the slave control device; the multiple interfaces of the master control device correspond to the multiple interfaces of the slave control device one by one, and the interface of any interface in the master control device has priority The interface priority level is the same as that of the corresponding interface in the slave control device, and the interface number of any interface in the master control device is the same as that of the corresponding interface in the slave control device.
由于主控制设备的LACP参数与从控制设备的LACP参数相同,因此,主控制设备根据LACP、主控制设备的LACP参数以及第一设备的LACP参数所确定出的主控制设备的LACP链路端口,与从控制设备根据LACP、从控制设备的LACP参数以及第一设备的LACP参数所确定出的从控制设备的LACP链路端口相同(端口编号和端口优先级相同),使得在主控制设备故障前和主控制设备故障后,与第一设备通信的端口的参数相同。Since the LACP parameters of the master control device are the same as the LACP parameters of the slave control device, the master control device determines the LACP link port of the master control device according to the LACP, the LACP parameters of the master control device, and the LACP parameters of the first device, It is the same as the LACP link port of the slave control device determined by the slave control device according to LACP, the LACP parameters of the slave control device, and the LACP parameters of the first device (the port number and port priority are the same), so that before the failure of the master control device After the main control device fails, the parameters of the port communicating with the first device are the same.
可选的,在所述接收所述主控制设备发送的所述第一设备的LACP参数之前,所述方法还包括:与所述主控制设备建立备份通道;所述接收所述主控制设备发送的所述第一设备的LACP参数,包括:接收所述主控制设备通过所述备份通道发送的所述第一设备的LACP参数。Optionally, before receiving the LACP parameters of the first device sent by the main control device, the method further includes: establishing a backup channel with the main control device; The LACP parameter of the first device includes: receiving the LACP parameter of the first device sent by the main control device through the backup channel.
第二方面,提供了一种通信方法,用于网络接入系统中的主控制设备,所述网络接入系统还包括:从控制设备和接入点AP设备,所述AP设备与第一设备相连接,所述主控制设备和所述从控制设备均与所述AP设备和第二设备相连接,且所述主控制设备的链路聚合控制协议LACP参数与所述从控制设备的LACP参数相同,所述方法包括:获取所述第一设备的LACP参数;向所述从控制设备发送所述第一设备的LACP参数;根据LACP、所述主控制设备的LACP参数以及所述第一设备的LACP参数,确定所述主控制设备上的LACP链路接口;通过所述主控制设备上的LACP链路接口与所述第一设备通信。In a second aspect, a communication method is provided, which is used for a master control device in a network access system, and the network access system further includes: a slave control device and an access point AP device, and the AP device and the first device The master control device and the slave control device are both connected to the AP device and the second device, and the link aggregation control protocol LACP parameter of the master control device is the same as the LACP parameter of the slave control device Similarly, the method includes: acquiring the LACP parameters of the first device; sending the LACP parameters of the first device to the slave control device; according to LACP, the LACP parameters of the master control device and the first device The LACP parameter of the main control device determines the LACP link interface on the main control device; communicates with the first device through the LACP link interface on the main control device.
可选的,所述获取所述第一设备的LACP参数,包括:多次获取所述第一设备的LACP参数,且任意两次获取到的所述第一设备的LACP参数相同或不同;所述向所述从控制设备发送所述第一设备的LACP参数,包括:在每次获取到所述第一设备的LACP参数后,向所述从控制设备发送最近一次获取到的所述第一设备的LACP参数。Optionally, the acquiring the LACP parameters of the first device includes: acquiring the LACP parameters of the first device multiple times, and any two acquired LACP parameters of the first device are the same or different; The sending the LACP parameters of the first device to the slave control device includes: after acquiring the LACP parameters of the first device each time, sending the latest acquired first device to the slave control device. LACP parameters of the device.
可选的,在所述根据LACP、所述主控制设备的LACP参数以及所述第一设备的LACP参数,确定所述主控制设备上的LACP链路接口之后,所述方法还包括:向所述从控制设备发送优先级状态信息,所述优先级状态信息用于指示所述第一设备的系统优先级是否高于所述主控制设备的系统优先级。Optionally, after the LACP link interface on the master control device is determined according to the LACP, the LACP parameters of the master control device, and the LACP parameters of the first device, the method further includes: The slave control device sends priority status information, where the priority status information is used to indicate whether the system priority of the first device is higher than the system priority of the master control device.
可选的,所述LACP参数包括:系统优先级、系统编号、接口优先级以及接口编号,所述主控制设备的系统优先级与所述从控制设备的系统优先级相同,所述主控制设备的系统编号与所述从控制设备的系统编号相同;所述主控制设备的多个接口与所述从控制设备的多个接口一一对应,所述主控制设备中的任一接口的接口优先级与所述从控制设备中对应的接口的接口优先级相同,所述主控制设备中的任一接口的接口编号与所述从控制设备中对应的接口的接口编号相同。Optionally, the LACP parameters include: system priority, system number, interface priority and interface number, the system priority of the master control device is the same as the system priority of the slave control device, and the master control device The system number of the slave control device is the same as the system number of the slave control device; the multiple interfaces of the master control device correspond to the multiple interfaces of the slave control device one by one, and the interface of any interface in the master control device has priority The interface priority level is the same as that of the corresponding interface in the slave control device, and the interface number of any interface in the master control device is the same as that of the corresponding interface in the slave control device.
可选的,在所述向所述从控制设备发送所述第一设备的LACP参数之前,所述方法还包括:与所述从控制设备建立备份通道;所述向所述从控制设备发送所述第一设备的LACP参数,包括:通过所述备份通道向所述从控制设备发送所述第一设备的LACP参数。Optionally, before sending the LACP parameters of the first device to the slave control device, the method further includes: establishing a backup channel with the slave control device; The LACP parameter of the first device includes: sending the LACP parameter of the first device to the slave control device through the backup channel.
第三方面,提供了一种通信设备,用于网络接入系统中的从控制设备,所述网络接入系统还包括:主控制设备和接入点AP设备,所述AP设备与第一设备相连接,所述主控制设备和所述从控制设备均与所述AP设备和第二设备相连接,且所述主控制设备的链路聚合控制协议LACP参数与所述从控制设备的LACP参数相同,所述通信设备包括至少一个模块,所述至少一个模块用于实现上述第一方面或第一方面中任意一种可能的实现方式所述的通信方法。In a third aspect, a communication device is provided, which is used as a slave control device in a network access system, and the network access system further includes: a master control device and an access point AP device, and the AP device and the first device The master control device and the slave control device are both connected to the AP device and the second device, and the link aggregation control protocol LACP parameter of the master control device is the same as the LACP parameter of the slave control device Similarly, the communication device includes at least one module, and the at least one module is configured to implement the communication method described in the first aspect or any possible implementation manner of the first aspect.
第四方面,提供了一种通信设备,用于网络接入系统中的主控制设备,所述网络接入系统还包括:从控制设备和接入点AP设备,所述AP设备与第一设备相连接,所述主控制设备和所述从控制设备均与所述AP设备和第二设备相连接,且所述主控制设备的链路聚合控制协议LACP参数与所述从控制设备的LACP参数相同,所述通信设备包括至少一个模块,所述至少一个模块用于实现上述第二方面或第二方面中任意一种可能的实现方式所述的通信方法。In a fourth aspect, a communication device is provided, which is used as a master control device in a network access system, and the network access system further includes: a slave control device and an access point AP device, and the AP device and the first device The master control device and the slave control device are both connected to the AP device and the second device, and the link aggregation control protocol LACP parameter of the master control device is the same as the LACP parameter of the slave control device Similarly, the communication device includes at least one module, and the at least one module is configured to implement the communication method described in the second aspect or any possible implementation manner of the second aspect.
第五方面,提供了一种通信设备,用于网络接入系统中的从控制设备,所述网络接入系统还包括:主控制设备和接入点AP设备,所述AP设备与第一设备相连接,所述主控制设备和所述从控制设备均与所述AP设备和第二设备相连接,且所述主控制设备的链路聚合控制协议LACP参数与所述从控制设备的LACP参数相同,所述通信设备包括:至少一个处理器、至少一个网络接口、存储器以及至少一个总线,存储器与网络接口分别通过总线与处理器相连;处理器被配置为执行存储器中存储的指令;处理器通过执行指令来实现上述第一方面或第一方面中任意一种可能的实现方式所提供的通信方法。In a fifth aspect, a communication device is provided, which is used as a slave control device in a network access system, and the network access system further includes: a master control device and an access point AP device, and the AP device and the first device The master control device and the slave control device are both connected to the AP device and the second device, and the link aggregation control protocol LACP parameter of the master control device is the same as the LACP parameter of the slave control device Similarly, the communication device includes: at least one processor, at least one network interface, memory and at least one bus, the memory and the network interface are respectively connected to the processor through the bus; the processor is configured to execute instructions stored in the memory; the processor The communication method provided by the first aspect or any possible implementation manner of the first aspect is implemented by executing instructions.
第六方面,提供了一种通信设备,用于网络接入系统中的主控制设备,所述网络接入系统还包括:从控制设备和接入点AP设备,所述AP设备与第一设备相连接,所述主控制设备和所述从控制设备均与所述AP设备和第二设备相连接,且所述主控制设备的链路聚合控制协议LACP参数与所述从控制设备的LACP参数相同,所述通信设备包括:至少一个处理器、至少一个网络接口、存储器以及至少一个总线,存储器与网络接口分别通过总线与处理器相连;处理器被配置为执行存储器中存储的指令;处理器通过执行指令来实现上述第一方面或第一方面中任意一种可能的实现方式所提供的通信方法。In a sixth aspect, a communication device is provided, which is used as a master control device in a network access system, and the network access system further includes: a slave control device and an access point AP device, and the AP device and the first device The master control device and the slave control device are both connected to the AP device and the second device, and the link aggregation control protocol LACP parameter of the master control device is the same as the LACP parameter of the slave control device Similarly, the communication device includes: at least one processor, at least one network interface, memory and at least one bus, the memory and the network interface are respectively connected to the processor through the bus; the processor is configured to execute instructions stored in the memory; the processor The communication method provided by the first aspect or any possible implementation manner of the first aspect is implemented by executing instructions.
第七方面,提供了一种网络接入系统,其特征在于,所述网络接入系统包括:主控制设备、从控制设备和接入点AP设备,所述AP设备与第一设备相连接,所述主控制设备和所述从控制设备均与所述AP设备和第二设备相连接,且所述主控制设备的链路聚合控制协议LACP参数与所述从控制设备的LACP参数相同,In a seventh aspect, a network access system is provided, wherein the network access system includes: a master control device, a slave control device, and an access point AP device, the AP device is connected to the first device, Both the master control device and the slave control device are connected to the AP device and the second device, and the link aggregation control protocol LACP parameters of the master control device are the same as the LACP parameters of the slave control device,
所述从控制设备为第三方面或第五方面所述的通信设备;The slave control device is the communication device described in the third aspect or the fifth aspect;
所述主控制设备为第四方面或第六方面所述的通信设备。The main control device is the communication device described in the fourth aspect or the sixth aspect.
第八方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当所述计算机可读存储介质在计算机上运行时,使得计算机执行第一方面或第二方面所述的方法。In an eighth aspect, a computer-readable storage medium is provided, the computer-readable storage medium stores instructions, and when the computer-readable storage medium is run on a computer, the computer executes the first aspect or the second aspect the method described.
第九方面,提供了一种包含指令的计算机程序产品,当所述计算机程序产品在计算机上运行时,使得计算机执行第一方面或第二方面所述的方法。In a ninth aspect, a computer program product containing instructions is provided, and when the computer program product is run on a computer, it causes the computer to execute the method described in the first aspect or the second aspect.
本申请提供的技术方案带来的有益效果是:The beneficial effects brought by the technical solution provided by the application are:
在主控制设备正常工作时,主控制设备就向从控制设备发送了第一设备的LACP参数,从而使得在主控制设备故障前,从控制设备就确定出了从控制设备上的LACP链路接口。在主控制设备出现故障时,从控制设备已经预先确定好从控制设备上的LACP链路接口,且主控制设备的LACP参数与从控制设备的LACP参数相同,使得主控制设备上的LACP链路接口与从控制设备确定出的LACP链路接口的接口优先级以及接口编号均相同,从控制设备无需与第一设备互相通信就能够确定双方通信的LACP链路接口。因此,在主控制设备故障时,第一设备能够快速由主控制设备切换至从控制设备,减少在主控制设备故障时通信数据的丢失,减轻了第一设备与第二设备之间通信的中断程度。When the master control device is working normally, the master control device sends the LACP parameters of the first device to the slave control device, so that before the master control device fails, the slave control device can determine the LACP link interface on the slave control device . When the master control device fails, the slave control device has pre-determined the LACP link interface on the slave control device, and the LACP parameters of the master control device are the same as those of the slave control device, so that the LACP link interface on the master control device The interfaces have the same interface priority and interface number as the LACP link interface determined by the slave control device, and the slave control device can determine the LACP link interface for communication between the two without communicating with the first device. Therefore, when the master control device fails, the first device can quickly switch from the master control device to the slave control device, reducing the loss of communication data when the master control device fails, and reducing the interruption of communication between the first device and the second device degree.
附图说明Description of drawings
图1为本发明实施例提供的一种网络接入系统的结构示意图;FIG. 1 is a schematic structural diagram of a network access system provided by an embodiment of the present invention;
图2为本发明实施例提供的另一种网络接入系统的结构示意图;FIG. 2 is a schematic structural diagram of another network access system provided by an embodiment of the present invention;
图3为本发明实施例提供的一种通信设备的结构示意图;FIG. 3 is a schematic structural diagram of a communication device provided by an embodiment of the present invention;
图4为本发明实施例提供的另一种通信设备的结构示意图;FIG. 4 is a schematic structural diagram of another communication device provided by an embodiment of the present invention;
图5为本发明实施例提供的一种通信方法的方法流程图;FIG. 5 is a method flowchart of a communication method provided by an embodiment of the present invention;
图6为本发明实施例提供的一种接口示意图;FIG. 6 is a schematic diagram of an interface provided by an embodiment of the present invention;
图7为本发明实施例提供的又一种通信设备的结构示意图;FIG. 7 is a schematic structural diagram of another communication device provided by an embodiment of the present invention;
图8为本发明实施例提供的再一种通信设备的结构示意图;FIG. 8 is a schematic structural diagram of another communication device provided by an embodiment of the present invention;
图9为本发明另一实施例提供的一种通信设备的结构示意图;FIG. 9 is a schematic structural diagram of a communication device provided by another embodiment of the present invention;
图10为本发明另一实施例提供的另一种通信设备的结构示意图;FIG. 10 is a schematic structural diagram of another communication device provided by another embodiment of the present invention;
图11为本发明另一实施例提供的又一种通信设备的结构示意图;FIG. 11 is a schematic structural diagram of another communication device provided by another embodiment of the present invention;
图12为本发明另一实施例提供的再一种通信设备的结构示意图。Fig. 12 is a schematic structural diagram of another communication device provided by another embodiment of the present invention.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manners of the present application will be further described in detail below in conjunction with the accompanying drawings.
图1为本发明实施例提供的一种网络接入系统的结构示意图,如图1所示,网络接入系统10能够实现多个网络设备的连接,该网络接入系统10包括:相连接的AP设备101和控制设备。例如,在第一设备A通过网络接入系统10与第二设备B连接时,AP设备101与第一设备A相连接,控制设备与第二设备B相连接。示例的,第一设备、第二设备、AP设备和控制设备通过以太捆绑接口相连接。第一设备为用户网络边缘(Customer Edge,CE)设备,如路由器、交换机或计算机等。可选的,第二设备为网管平台设备,或者其他设备,本发明实施例对此不作限定。控制设备是网络接入系统10的控制节点,负责网络接入系统10内部的隧道建立、业务下发和流量控制,并能够对连接的AP设备进行管理。FIG. 1 is a schematic structural diagram of a network access system provided by an embodiment of the present invention. As shown in FIG. 1 , the network access system 10 can realize the connection of multiple network devices, and the network access system 10 includes: connected AP device 101 and a control device. For example, when the first device A is connected to the second device B through the network access system 10, the AP device 101 is connected to the first device A, and the control device is connected to the second device B. Exemplarily, the first device, the second device, the AP device, and the control device are connected through an Ethernet bonding interface. The first device is a customer network edge (Customer Edge, CE) device, such as a router, a switch, or a computer. Optionally, the second device is a network management platform device or other devices, which is not limited in this embodiment of the present invention. The control device is the control node of the network access system 10, responsible for tunnel establishment, service delivery and flow control inside the network access system 10, and can manage connected AP devices.
为了防止控制设备故障而导致的第一设备A与第二设备B无法通信,网络接入系统10中会设置“主控制设备1021”和“从控制设备1022”,主控制设备1021和从控制设备1022均与AP设备101和第二设备B相连接。可选的,第一设备A、主控制设备1021和从控制设备1022均具有m个接口,第一设备的m个接口与主控制设备的m个接口通过AP设备一一对应连接,第一设备的m个接口还与从控制设备的m个接口通过AP设备一一对应连接。在主控制设备1021正常中作时,第一设备A通过AP设备101和主控制设备1021与第二设备B通信;在主控制设备1021出现故障时,第一设备A通过AP设备101和从控制设备1022与第二设备B通信。In order to prevent the first device A from being unable to communicate with the second device B caused by the failure of the control device, a "master control device 1021" and a "slave control device 1022" will be set in the network access system 10, and the master control device 1021 and the slave control device 1022 are both connected to the AP device 101 and the second device B. Optionally, the first device A, the master control device 1021, and the slave control device 1022 all have m interfaces, and the m interfaces of the first device and the m interfaces of the master control device are connected one-to-one through the AP device. The m interfaces of the device are also connected to the m interfaces of the slave control device through the AP device in a one-to-one correspondence. When the main control device 1021 is working normally, the first device A communicates with the second device B through the AP device 101 and the main control device 1021; when the main control device 1021 fails, the first device A communicates with the second device B through the AP device 101 and the Device 1022 communicates with a second device B.
图2为本发明实施例提供的另一种网络接入系统的结构示意图,如图2所示,网络接入系统10包括主控制设备1021、从控制设备1022个多个AP设备101,且每个AP设备101上连接有多个第一设备(图2中未示出)。FIG. 2 is a schematic structural diagram of another network access system provided by an embodiment of the present invention. As shown in FIG. Multiple first devices (not shown in FIG. 2 ) are connected to each AP device 101 .
在图1和图2中,主控制设备1021的LACP参数包括:主控制设备1021的系统优先级、主控制设备1021的系统编号、主控制设备1021中每个接口的接口优先级以及主控制设备1021中每个接口的接口编号。从控制设备1022的LACP参数包括:从控制设备1022的系统优先级、从控制设备1022的系统编号、从控制设备1022中每个接口的接口优先级以及从控制设备1022中每个接口的接口编号。本发明实施例中,主控制设备1021的LACP参数与从控制设备1022的LACP参数相同,也即,主控制设备1021的系统优先级与从控制设备1022的系统优先级相同,主控制设备1021的系统编号与从控制设备1022的系统编号相同;主控制设备1021的多个接口与从控制设备1022的多个接口一一对应,主控制设备1021中的任一接口的接口优先级与从控制设备1022中对应的接口的接口优先级相同,主控制设备1021中的任一接口的接口编号与从控制设备1022中对应的接口的接口编号相同。In Figures 1 and 2, the LACP parameters of the main control device 1021 include: the system priority of the main control device 1021, the system number of the main control device 1021, the interface priority of each interface in the main control device 1021, and the The interface number of each interface in 1021. The LACP parameters of the slave control device 1022 include: the system priority of the slave control device 1022, the system number of the slave control device 1022, the interface priority of each interface in the slave control device 1022, and the interface number of each interface in the slave control device 1022 . In this embodiment of the present invention, the LACP parameters of the master control device 1021 are the same as the LACP parameters of the slave control device 1022, that is, the system priority of the master control device 1021 is the same as that of the slave control device 1022, and the system priority of the master control device 1021 The system number is the same as that of the slave control device 1022; the multiple interfaces of the master control device 1021 correspond to the multiple interfaces of the slave control device 1022, and the interface priority of any interface in the master control device 1021 is the same as that of the slave control device. The corresponding interfaces in 1022 have the same interface priority, and the interface number of any interface in the master control device 1021 is the same as the interface number of the corresponding interface in the slave control device 1022 .
图3为本发明实施例提供的一种通信设备的结构示意图,该通信设备为图1和图2中的从控制设备1022,如图3所示,该通信设备包括:至少一个处理器10221(例如中央处理器),至少一个网络接口10222,存储器10223,和至少一个总线10224,用于实现这些装置之间的连接通信,存储器10223与网络接口10222分别通过总线10224与处理器10221相连。处理器10221用于执行存储器10223中存储的可执行模块,例如计算机程序。存储器10223可能包含高速随机存取存储器(RandomAccess Memory,RAM),也可能还包括非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。通过至少一个网络接口10222(有线或者无线)实现该数据传输装置与至少一个其他网元之间的通信连接,使用互联网,广域网,本地网,城域网等。在一些实施方式中,存储器10223存储了程序C,程序C能够被处理器10221执行。FIG. 3 is a schematic structural diagram of a communication device provided by an embodiment of the present invention. The communication device is the slave control device 1022 in FIGS. 1 and 2 . As shown in FIG. 3 , the communication device includes: at least one processor 10221 ( For example, a central processing unit), at least one network interface 10222, memory 10223, and at least one bus 10224 are used to realize connection and communication between these devices, and the memory 10223 and network interface 10222 are respectively connected to the processor 10221 through the bus 10224. The processor 10221 is used to execute executable modules stored in the memory 10223, such as computer programs. The memory 10223 may include a high-speed random access memory (Random Access Memory, RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the data transmission device and at least one other network element is realized through at least one network interface 10222 (wired or wireless), using Internet, wide area network, local network, metropolitan area network, etc. In some implementations, the memory 10223 stores the program C, and the program C can be executed by the processor 10221 .
图4为本发明实施例提供的另一种通信设备的结构示意图,该通信设备为图1和图2中的主控制设备1021,如图4所示,该通信设备包括:至少一个处理器10211(例如中央处理器),至少一个网络接口10212,存储器10213,和至少一个总线10214,用于实现这些装置之间的连接通信,存储器10213与网络接口10212分别通过总线10214与处理器10211相连。处理器10211用于执行存储器10213中存储的可执行模块,例如计算机程序。存储器10213可能包含高速随机存取存储器(RandomAccess Memory,RAM),也可能还包括非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。通过至少一个网络接口10212(有线或者无线)实现该数据传输装置与至少一个其他网元之间的通信连接,使用互联网,广域网,本地网,城域网等。在一些实施方式中,存储器10213存储了程序D,程序D能够被处理器10211执行。FIG. 4 is a schematic structural diagram of another communication device provided by an embodiment of the present invention. The communication device is the main control device 1021 in FIGS. 1 and 2 . As shown in FIG. 4 , the communication device includes: at least one processor 10211 (such as a central processing unit), at least one network interface 10212, memory 10213, and at least one bus 10214 are used to realize connection and communication between these devices, and the memory 10213 and network interface 10212 are respectively connected to the processor 10211 through the bus 10214. The processor 10211 is used to execute executable modules stored in the memory 10213, such as computer programs. The memory 10213 may include a high-speed random access memory (Random Access Memory, RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the data transmission device and at least one other network element is realized through at least one network interface 10212 (wired or wireless), using Internet, wide area network, local network, metropolitan area network, etc. In some implementations, the memory 10213 stores the program D, and the program D can be executed by the processor 10211 .
图5为本发明实施例提供的一种通信方法的方法流程图,该通信方法用于图1或图2所示的网络接入系统,该通信方法被图3中的处理器10221执行程序C和图4中的处理器10211执行程序D来实现。如图5所示,该通信方法包括:Fig. 5 is a method flow chart of a communication method provided by an embodiment of the present invention, the communication method is used in the network access system shown in Fig. 1 or Fig. 2, and the communication method is executed by the processor 10221 in Fig. 3 with program C And processor 10211 in Fig. 4 executes program D to realize. As shown in Figure 5, the communication method includes:
步骤501、主控制设备与从控制设备建立备份通道。Step 501, the master control device establishes a backup channel with the slave control device.
示例的,在建立如图1所示的通信网络时,将主控制设备与从控制设备分别与AP设备相连接,并将主控制设备和从控制设备分别与第二设备B相连接,并且主控制设备与从控制设备可以共同在主控制设备与从控制设备之间建立备份通道。For example, when establishing the communication network as shown in Figure 1, the master control device and the slave control device are respectively connected to the AP device, and the master control device and the slave control device are respectively connected to the second device B, and the master The control device and the slave control device can jointly establish a backup channel between the master control device and the slave control device.
步骤502、第一设备向主控制设备发送第一设备的LACP参数。Step 502, the first device sends the LACP parameters of the first device to the master control device.
需要说明的是,在建立好如图1所示的通信网络后,主控制设备通过AP设备向第一设备发送主控制设备的LACP参数,第一设备通过AP设备向主控制设备发送第一设备的LACP参数。其中,主控制设备的LACP参数包括:主控制设备的系统优先级、主控制设备的系统编号、主控制设备中每个接口的接口优先级以及主控制设备中每个接口的接口编号。第一设备的LACP参数包括:第一设备的系统优先级、第一设备的系统编号、第一设备中每个接口的接口优先级以及第一设备中每个接口的接口编号。需要说明的是,主控制设备的LACP参数承载在一个链路汇聚控制协议数据单元(Link Aggregation Control Protocol DataUnit,LACPDU)上发送至第一设备,第一设备的LACP参数也承载在一个LACPDU上发送至主控制设备。It should be noted that after the communication network shown in Figure 1 is established, the main control device sends the LACP parameters of the main control device to the first device through the AP device, and the first device sends the first device's LACP parameters to the main control device through the AP device. LACP parameters. The LACP parameters of the main control device include: the system priority of the main control device, the system number of the main control device, the interface priority of each interface in the main control device, and the interface number of each interface in the main control device. The LACP parameters of the first device include: the system priority of the first device, the system number of the first device, the interface priority of each interface in the first device, and the interface number of each interface in the first device. It should be noted that the LACP parameters of the main control device are carried on a Link Aggregation Control Protocol Data Unit (Link Aggregation Control Protocol DataUnit, LACPDU) and sent to the first device, and the LACP parameters of the first device are also carried on one LACPDU and sent to the master control device.
步骤503、主控制设备根据LACP、主控制设备的LACP参数以及第一设备的LACP参数,确定主控制设备上的LACP链路接口。Step 503, the main control device determines the LACP link interface on the main control device according to the LACP, the LACP parameters of the main control device, and the LACP parameters of the first device.
主控制设备和第一设备在接收到对方设备的LACP参数后,能够分别比较主控制设备的系统优先级和第一设备的系统优先级的大小。当主控制设备和第一设备确定主控制设备的系统优先级高于第一设备的系统优先级时,主控制设备和第一设备确定主控制设备为主动端设备,第一设备为从动端设备。示例的,假设主控制设备的系统优先级为10,第一设备的系统优先级为11,则主控制设备和第一设备均确定主控制设备为主动端设备,第一设备为被动端设备。After receiving the LACP parameters of the opposite device, the main control device and the first device can respectively compare the system priority of the main control device with the system priority of the first device. When the master control device and the first device determine that the system priority of the master control device is higher than the system priority of the first device, the master control device and the first device determine that the master control device is the master device and the first device is the slave device . For example, assuming that the system priority of the master control device is 10 and the system priority of the first device is 11, both the master control device and the first device determine that the master control device is the active device and the first device is the passive device.
进一步的,在确定主动端设备和从动端设备后,主控制设备和第一设备能够分别根据主控制设备(主动端设备)中各个接口的优先级确定LACP链路接口。首先,主控制设备和第一设备需要确定预设的最高活动链路数x(大于或等于1的整数),然后,再根据该主控制设备中每个接口的优先级,选择优先级最高的x个接口,将该x个接口作为主控制设备中的LACP链路接口。需要说明的是,在主控制设备与第一设备相连接时,主控制设备上的多个接口与第一设备上的多个接口一一对应,第一设备在确定主控制设备上的x个接口为主控制设备中的LACP链路接口后,第一设备将第一设备上与主控制设备上的x个接口相对应的x个接口作为第一设备的LACP链路接口。Further, after determining the master device and the slave device, the master control device and the first device can respectively determine the LACP link interface according to the priority of each interface in the master control device (the master device). First, the main control device and the first device need to determine the preset highest number of active links x (integer greater than or equal to 1), and then, according to the priority of each interface in the main control device, select the link with the highest priority x interfaces, and the x interfaces are used as LACP link interfaces in the main control device. It should be noted that when the main control device is connected to the first device, the multiple interfaces on the main control device correspond to the multiple interfaces on the first device one by one, and the first device determines the x number of ports on the main control device. After the interfaces are the LACP link interfaces in the master control device, the first device uses x interfaces on the first device corresponding to the x interfaces on the master control device as the LACP link interfaces of the first device.
图6为本发明实施例提供的一种接口示意图,如图6所示,主控制设备具有三个接口(分别为接口1.1、接口1.2和接口1.3),第一设备也具有三个接口(分别为接口2.1、接口2.2和接口2.3),其中,接口1.1与接口2.1对应、接口1.2与接口2.2对应,接口1.3与接口2.3对应。若预设的最高活动链路数x等于2,主控制设备筛选出接口1.1和接口1.2为主控制设备的LACP链路接口,则第一设备选择接口2.1和接口2.2为第一设备的LACP链路接口。Fig. 6 is a schematic diagram of an interface provided by an embodiment of the present invention. As shown in Fig. 6, the main control device has three interfaces (respectively interface 1.1, interface 1.2 and interface 1.3), and the first device also has three interfaces (respectively are interface 2.1, interface 2.2 and interface 2.3), wherein, interface 1.1 corresponds to interface 2.1, interface 1.2 corresponds to interface 2.2, and interface 1.3 corresponds to interface 2.3. If the preset maximum number of active links x is equal to 2, the main control device screens out interface 1.1 and interface 1.2 as the LACP link interfaces of the main control device, then the first device selects interface 2.1 and interface 2.2 as the LACP link of the first device road interface.
需要说明的是,若确定出的主动端设备为第一设备,则主控制设备和第一设备分别根据预设的最高活动链路数确定第一设备中的LACP链路接口,主控制设备根据第一设备中的LACP链路接口确定主控制设备中的LACP接口。It should be noted that if the determined active device is the first device, the main control device and the first device respectively determine the LACP link interface in the first device according to the preset highest number of active links, and the main control device determines the LACP link interface according to The LACP link interface in the first device determines the LACP interface in the master control device.
步骤504、主控制设备与第一设备通过主控制设备上的LACP链路接口通信。Step 504, the main control device communicates with the first device through the LACP link interface on the main control device.
主控制设备在确定主控制设备上的LACP链路接口,以及第一设备确定第一设备上的LACP链路接口后,主控制设备就通过主控制设备上的LACP链路接口以及第一设备上的LACP链路接口与第一设备进行通信。如主控制设备接收第一设备需要发送至第二设备的数据,或者主控制设备向第一设备发送第二设备需要发送至第一设备的数据。After the main control device determines the LACP link interface on the main control device and the first device determines the LACP link interface on the first device, the main control device uses the LACP link interface on the main control device and the The LACP link interface communicates with the first device. For example, the main control device receives the data that the first device needs to send to the second device, or the main control device sends the data that the second device needs to send to the first device to the first device.
需要说明的是,在主控制设备正常工作的情况下,从控制设备不会与第一设备进行通信,从而使得第一设备只能够与主控制设备通信。It should be noted that, when the master control device is working normally, the slave control device will not communicate with the first device, so that the first device can only communicate with the master control device.
步骤505、主控制设备通过备份通道向从控制设备发送第一设备的LACP参数。Step 505, the master control device sends the LACP parameters of the first device to the slave control device through the backup channel.
在主控制设备每次接收到第一设备发送的第一设备的LACP参数后,主控制设备就会通过步骤501中建立好的备份通道,向从控制设备发送第一设备的LACP参数。也即主控制设备会通过备份通道实时的将主控制设备接收到的第一设备的LACP参数备份在从控制设备上。After each time the master control device receives the LACP parameters of the first device sent by the first device, the master control device sends the LACP parameters of the first device to the slave control device through the backup channel established in step 501 . That is, the master control device backs up the LACP parameters of the first device received by the master control device on the slave control device in real time through the backup channel.
步骤506、从控制设备根据LACP、从控制设备的LACP参数以及第一设备的LACP参数,确定从控制设备上的LACP链路接口。Step 506, the slave control device determines the LACP link interface on the slave control device according to the LACP, the LACP parameters of the slave control device, and the LACP parameters of the first device.
由于本发明实施例中,主控制设备的LACP参数与从控制设备的LACP参数相同,因此主控制设备根据LACP、主控制设备的LACP参数和第一设备的LACP参数所确定出的主控制设备的LACP链路接口,与从控制设备根据LACP、从控制设备的LACP参数和第一设备的LACP参数所确定出的从控制设备的LACP链路接口相同(如LACP链路接口的编号相同、LACP链路接口的优先级相同)。如图6所示,从控制设备也具有接口1.1、接口1.2和接口1.3,若主控制设备确定出的主控制设备上的LACP链路接口为主控制设备上的接口1.1和接口1.2,则从控制设备确定出的LACP接口为从控制设备上的接口1.1和接口1.2。Since in the embodiment of the present invention, the LACP parameters of the master control device are the same as the LACP parameters of the slave control device, the master control device determines the The LACP link interface is the same as the LACP link interface of the slave control device determined by the slave control device according to LACP, the LACP parameter of the slave control device, and the LACP parameter of the first device (for example, the number of the LACP link interface is the same, and the number of the LACP link interface is the same. The priority of the road interface is the same). As shown in Figure 6, the slave control device also has interface 1.1, interface 1.2 and interface 1.3, if the LACP link interface on the master control device determined by the master control device is the interface 1.1 and interface 1.2 on the master control device, then the slave The LACP interfaces determined by the control device are interface 1.1 and interface 1.2 on the slave control device.
示例的,在从控制设备每次接收到第一设备的LACP参数后,从控制设备比较从控制设备的系统优先级和第一设备的系统优先级。当从控制设备的系统优先级高于第一设备的系统优先级时,从控制设备确定从控制设备为从动端设备,第一设备为从动端设备。若从控制设备确定从控制设备为主动端设备,则在确定主动端设备和从动端设备后,从控制设备就根据从控制设备(从动端设备)中各个接口的优先级以及预设的最高活动链路数确定从控制设备中的LACP链路接口。需要说明的是,若从控制设备确定出的从动端设备为第一设备,则从控制设备根据预设的最高活动链路数以及第一设备中各个接口的优先级确定第一设备中的LACP链路接口,进而确定从控制设备中的LACP链路接口。Exemplarily, after each time the slave control device receives the LACP parameters of the first device, the slave control device compares the system priority of the slave control device with the system priority of the first device. When the system priority of the slave control device is higher than the system priority of the first device, the slave control device determines that the slave control device is a slave device, and the first device is a slave device. If the slave control device determines that the slave control device is the active device, after determining the master device and the slave device, the slave control device will The highest active link count determines the LACP link interface in the slave control device. It should be noted that if the slave device determined by the slave control device is the first device, the slave control device determines the LACP link interface, and then determine the LACP link interface in the slave control device.
可选的,在步骤505中,在主控制设备每次向从控制设备发送第一设备的LACP参数时,主控制设备还能够向从控制设备发送第一设备的优先级状态信息,该优先级状态信息用于指示:第一设备的系统优先级是否高于主控制设备的系统优先级,也即指示该第一设备是否为第一设备与主控制设备中的主动端设备。在步骤506中,从控制设备能够参考该优先级状态信息,以确定第一设备和从控制设备中的主动端设备。在优先级状态信息用于指示第一设备的系统优先级高于主控制设备的系统优先级时,从控制设备确定第一设备为主动端设备,此时从控制设备根据LACP、从控制设备的LACP参数以及第一设备的LACP参数,确定从控制设备上的LACP链路接口;在优先级状态信息用于指示第一设备的系统优先级低于主控制设备的系统优先级时,从控制设备确定主控制设备为主动端设备,从控制设备根据LACP和从控制设备的LACP参数,确定从控制设备上的LACP链路接口。这样一来,从控制设备无需对从控制设备的优先级和第一设备的优先级进行比较,就能够确定从控制设备和第一设备中的主动端设备,从而提高了从控制设备确定出从控制设备的LACP链路接口的速度。Optionally, in step 505, when the master control device sends the LACP parameters of the first device to the slave control device each time, the master control device can also send priority status information of the first device to the slave control device, the priority The status information is used to indicate whether the system priority of the first device is higher than that of the main control device, that is, indicates whether the first device is the active device among the first device and the main control device. In step 506, the slave control device can refer to the priority status information to determine the first device and the master device among the slave control device. When the priority status information is used to indicate that the system priority of the first device is higher than that of the master control device, the slave control device determines that the first device is the master device. The LACP parameter and the LACP parameter of the first device determine the LACP link interface on the slave control device; when the priority status information is used to indicate that the system priority of the first device is lower than the system priority of the master control device, the slave control device The master control device is determined as the master device, and the slave control device determines the LACP link interface on the slave control device according to the LACP and the LACP parameters of the slave control device. In this way, the slave control device can determine the active end device in the slave control device and the first device without comparing the priority of the slave control device with the priority of the first device, thereby improving the determination of the slave control device by the slave control device. Controls the speed of the device's LACP link interface.
步骤507、在主控制设备故障时,从控制设备与第一设备通过从控制设备上的LACP链路接口通信。Step 507, when the master control device fails, the slave control device communicates with the first device through the LACP link interface on the slave control device.
需要说明的是,从控制设备还能够实时的监测主控制设备是否出现故障,如周期性的向主控制设备发送探测信息,正常工作时的主控制设备在接收到探测信息后,会向从控制设备返回一个回复信息,从控制设备在接收到回复信息后,就确定当前主控制设备处于正常工作的状态。若从控制设备长时间未接收到回复信息,则从控制设备就确定主控制设备当前出现了故障。在从控制设备检测到主控制设备出现故障时,从控制设备通过预先确定好的(也即步骤506中确定出的)从控制设备上的LACP链路接口与第一设备通信。It should be noted that the slave control device can also monitor whether the master control device fails in real time, such as periodically sending detection information to the master control device. The device returns a reply message, and the slave control device determines that the current master control device is in a normal working state after receiving the reply message. If the slave control device does not receive reply information for a long time, the slave control device determines that the master control device is currently faulty. When the slave control device detects that the master control device fails, the slave control device communicates with the first device through the LACP link interface on the slave control device that is predetermined (that is, determined in step 506).
进一步的,在步骤502中(也即主控制设备刚开始与第一设备确定LACP链路接口时),第一设备会向主控制设备发送第一设备的LACP参数,从而使得主控制设备获取到第一设备的LACP参数,并将第一设备的LACP参数通过备份通道发送至从控制设备。实际应用中,在步骤502之后,第一设备还能够多次(如周期性的多次)向主控制设备发送第一设备的LACP参数,且任意两次发送给主控制设备的第一设备的LACP参数相同或不同。主控制设备在接收到第一设备的LACP参数后还向第一设备发送主控制设备的LACP参数,从而实现在通信过程中对通信双方的反复验证。这样一来,主控制设备就能够多次接收到第一设备的LACP参数,并多次通过备份通道向从控制设备发送第一设备的LACP参数。在步骤506中,从控制设备在每次接收到第一设备的LACP参数后,就确定出从控制设备上的LACP链路接口,在步骤507中,从控制设备通过最近一次确定出的从控制设备上的LACP链路接口与第一设备通信。Further, in step 502 (that is, when the main control device first determines the LACP link interface with the first device), the first device will send the LACP parameters of the first device to the main control device, so that the main control device obtains LACP parameters of the first device, and send the LACP parameters of the first device to the slave control device through the backup channel. In practical applications, after step 502, the first device can also send the LACP parameters of the first device to the main control device multiple times (for example, periodically multiple times), and send the LACP parameters of the first device to the main control device twice arbitrarily. LACP parameters are the same or different. After receiving the LACP parameters of the first device, the master control device also sends the LACP parameters of the master control device to the first device, so as to implement repeated verification of both parties in communication during the communication process. In this way, the master control device can receive the LACP parameters of the first device multiple times, and send the LACP parameters of the first device to the slave control device through the backup channel multiple times. In step 506, the slave control device determines the LACP link interface on the slave control device after receiving the LACP parameters of the first device each time. An LACP link interface on the device communicates with the first device.
由于在主控制设备与第一设备首次协商确定各自的LACP链路接口后,与AP设备相连接的第一设备可能会变为另一个第一设备,此时,主控制设备接收到的第一设备的LACP参数可能会发生改变,因此从控制设备需要多次获取第一设备的LACP参数,并多次确定从控制设备上的LACP链路接口。在主控制设备故障时,从控制设备使用最近一次确定出的从控制设备上的LACP链路接口与第一设备通信,以保证在主控制设备故障时从控制设备与当前AP设备连接的第一设备能够正常通信。Since the first device connected to the AP device may become another first device after the main control device negotiates with the first device for the first time to determine their respective LACP link interfaces, at this time, the first device received by the main control device The LACP parameters of the device may change, so the slave control device needs to obtain the LACP parameters of the first device multiple times, and determine the LACP link interface on the slave control device multiple times. When the master control device fails, the slave control device communicates with the first device using the last determined LACP link interface on the slave control device to ensure that the slave control device is connected to the current AP device when the master control device fails. The device is able to communicate normally.
本发明实施例中,在主控制设备故障之前,从控制设备已经实时的确定出了从控制设备上的LACP链路接口,且由于主控制设备的LACP参数与从控制设备的LACP参数相同,因此,从控制设备所确定出的从控制设备的LACP链路接口的接口编号和接口优先级,与主控制设备确定出的主控制设备的LACP链路接口的接口编号和接口优先级均相同。在主控制设备故障时,第一设备与主控制设备无法进行通信,此时从控制设备允许第一设备与从控制设备进行通信。在从控制设备与第一设备通信的过程中,由于从控制设备的LACP参数与主控制设备的LACP参数完全相同,对于第一设备来说,主控制设备与从控制设备的LACP链路的接口也完全相同,因此,在主控制设备出现故障时,第一设备能够快速的从主控制设备上切换至从控制设备,从而实现数据的无损传输。In the embodiment of the present invention, before the master control device fails, the slave control device has determined the LACP link interface on the slave control device in real time, and since the LACP parameters of the master control device are the same as the LACP parameters of the slave control device, therefore , the interface number and interface priority of the LACP link interface of the slave control device determined by the slave control device are the same as the interface number and interface priority of the LACP link interface of the master control device determined by the master control device. When the master control device fails, the first device cannot communicate with the master control device, and at this time, the slave control device allows the first device to communicate with the slave control device. During the communication process between the slave control device and the first device, since the LACP parameters of the slave control device are exactly the same as those of the master control device, for the first device, the interface of the LACP link between the master control device and the slave control device It is also exactly the same, therefore, when the master control device fails, the first device can quickly switch from the master control device to the slave control device, thereby realizing lossless transmission of data.
需要说明的是,本发明实施例提供的方法实施例步骤的先后顺序能够进行适当调整,步骤也能够根据情况进行相应增减,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化的方法,都应涵盖在本发明的保护范围之内,因此不再赘述。It should be noted that the order of the steps in the method embodiments provided by the embodiments of the present invention can be adjusted appropriately, and the steps can also be increased or decreased according to the situation. Any person familiar with the technical field within the technical scope disclosed in the present invention, Changes that can be easily thought of should be covered within the protection scope of the present invention, and thus will not be repeated here.
综上所述,由于本发明实施例提供的通信方法中,在主控制设备正常工作时,主控制设备就向从控制设备发送了第一设备的LACP参数,从而使得在主控制设备故障前,从控制设备就确定出了从控制设备上的LACP链路接口。在主控制设备出现故障时,从控制设备已经预先确定好从控制设备上的LACP链路接口,且主控制设备的LACP参数与从控制设备的LACP参数相同,使得主控制设备上的LACP链路接口与从控制设备确定出的LACP链路接口的接口优先级以及接口编号均相同,从控制设备无需与第一设备互相通信就确定双方通信的LACP链路接口。因此,在主控制设备故障时,第一设备快速由主控制设备切换至从控制设备,减少在主控制设备故障时通信数据的丢失,减轻了第一设备与第二设备之间通信的中断程度。To sum up, in the communication method provided by the embodiment of the present invention, when the master control device is working normally, the master control device sends the LACP parameters of the first device to the slave control device, so that before the master control device fails, The slave control device determines the LACP link interface on the slave control device. When the master control device fails, the slave control device has pre-determined the LACP link interface on the slave control device, and the LACP parameters of the master control device are the same as those of the slave control device, so that the LACP link interface on the master control device The interfaces have the same interface priority and interface number as the LACP link interface determined by the slave control device, and the slave control device determines the LACP link interface for communication between the two without communicating with the first device. Therefore, when the master control device fails, the first device quickly switches from the master control device to the slave control device, reducing the loss of communication data when the master control device fails, and reducing the degree of communication interruption between the first device and the second device .
图7为本发明实施例提供的又一种通信设备的结构示意图,该通信设备为图1或图2所示的网络接入系统中的从控制设备,如图7所示,该通信设备70包括:FIG. 7 is a schematic structural diagram of another communication device provided by an embodiment of the present invention. The communication device is a slave control device in the network access system shown in FIG. 1 or FIG. 2 . As shown in FIG. 7 , the communication device 70 include:
第一接收模块701,用于接收主控制设备发送的第一设备的LACP参数;The first receiving module 701 is configured to receive the LACP parameters of the first device sent by the main control device;
第一确定模块702,用于根据LACP、从控制设备的LACP参数以及第一设备的LACP参数,确定从控制设备上的LACP链路接口;The first determining module 702 is configured to determine the LACP link interface on the slave control device according to LACP, the LACP parameters of the slave control device, and the LACP parameters of the first device;
通信模块703,用于在主控制设备故障时,通过从控制设备上的LACP链路接口与第一设备通信。The communication module 703 is configured to communicate with the first device through the LACP link interface on the slave control device when the master control device fails.
综上所述,由于本发明实施例提供的通信设备中,在主控制设备正常工作时,第一接收模块就接受到了主控制设备发送的第一设备的LACP参数,从而使得在主控制设备故障前,确定模块就确定出了从控制设备上的LACP链路接口。在主控制设备出现故障时,从控制设备已经预先确定好从控制设备上的LACP链路接口,且主控制设备的LACP参数与从控制设备的LACP参数相同,使得主控制设备上的LACP链路接口与从控制设备确定出的LACP链路接口的接口优先级以及接口编号均相同,从控制设备无需与第一设备互相通信就确定双方通信的LACP链路接口。因此,在主控制设备故障时,第一设备能够快速由主控制设备切换至从控制设备,减少在主控制设备故障时通信数据的丢失,减轻了第一设备与第二设备之间通信的中断程度。To sum up, in the communication device provided by the embodiment of the present invention, when the main control device is working normally, the first receiving module receives the LACP parameters of the first device sent by the main control device, so that when the main control device fails Before, the determination module determines the LACP link interface on the slave control device. When the master control device fails, the slave control device has pre-determined the LACP link interface on the slave control device, and the LACP parameters of the master control device are the same as those of the slave control device, so that the LACP link interface on the master control device The interfaces have the same interface priority and interface number as the LACP link interface determined by the slave control device, and the slave control device determines the LACP link interface for communication between the two without communicating with the first device. Therefore, when the master control device fails, the first device can quickly switch from the master control device to the slave control device, reducing the loss of communication data when the master control device fails, and reducing the interruption of communication between the first device and the second device degree.
可选的,第一接收模块701还用于:多次接收主控制设备发送的第一设备的LACP参数,且任意两次接收到的第一设备的LACP参数相同或不同;Optionally, the first receiving module 701 is also configured to: receive the LACP parameters of the first device sent by the main control device multiple times, and any two received LACP parameters of the first device are the same or different;
第一确定模块702还用于:根据LACP、从控制设备的LACP参数以及每次接收到的第一设备的LACP参数,确定从控制设备上的LACP链路接口;The first determination module 702 is further configured to: determine the LACP link interface on the slave control device according to LACP, the LACP parameters of the slave control device, and the LACP parameters of the first device received each time;
通信模块703还用于:通过最近一次确定出的从控制设备上的LACP链路接口与第一设备通信。The communication module 703 is further configured to: communicate with the first device through the latest determined LACP link interface on the slave control device.
可选的,图8为本发明实施例提供的再一种通信设备的结构示意图,如图8所示,在图7的基础上,该通信设备70还包括:Optionally, FIG. 8 is a schematic structural diagram of another communication device provided by an embodiment of the present invention. As shown in FIG. 8 , on the basis of FIG. 7 , the communication device 70 further includes:
第二接收模块704,用于接收主控制设备发送的优先级状态信息,优先级状态信息用于指示第一设备的系统优先级是否高于主控制设备的系统优先级;The second receiving module 704 is configured to receive priority status information sent by the main control device, where the priority status information is used to indicate whether the system priority of the first device is higher than the system priority of the main control device;
第二确定模块705,用于在优先级状态信息用于指示第一设备的系统优先级低于主控制设备的系统优先级时,根据LACP和从控制设备的LACP参数,确定从控制设备上的LACP链路接口;The second determining module 705 is configured to determine the system priority of the slave control device according to the LACP and the LACP parameters of the slave control device when the priority status information indicates that the system priority of the first device is lower than that of the master control device. LACP link interface;
第一确定模块702还用于在优先级状态信息用于指示第一设备的系统优先级高于主控制设备的系统优先级时,根据LACP、从控制设备的LACP参数以及第一设备的LACP参数,确定从控制设备上的LACP链路接口;The first determining module 702 is further configured to, when the priority state information indicates that the system priority of the first device is higher than the system priority of the master control device, according to the LACP, the LACP parameter of the slave control device, and the LACP parameter of the first device , to determine the LACP link interface on the slave control device;
可选的,设备的LACP参数包括:设备的系统优先级、设备的系统编号、设备中每个接口的接口优先级以及每个接口的接口编号,主控制设备的系统优先级与从控制设备的系统优先级相同,主控制设备的系统编号与从控制设备的系统编号相同;主控制设备的多个接口与从控制设备的多个接口一一对应,主控制设备中的任一接口的接口优先级与从控制设备中对应的接口的接口优先级相同,主控制设备中的任一接口的接口编号与从控制设备中对应的接口的接口编号相同。Optionally, the LACP parameters of the device include: the system priority of the device, the system number of the device, the interface priority of each interface in the device and the interface number of each interface, the system priority of the master control device and the number of the slave control device The system priority is the same, the system number of the master control device is the same as that of the slave control device; the multiple interfaces of the master control device correspond to the multiple interfaces of the slave control device, and the interface of any interface in the master control device has priority The interface priority is the same as that of the corresponding interface in the slave control device, and the interface number of any interface in the master control device is the same as that of the corresponding interface in the slave control device.
图9为本发明另一实施例提供的一种通信设备的结构示意图,如图9所示,在图7的基础上,该通信设备70还包括:FIG. 9 is a schematic structural diagram of a communication device provided by another embodiment of the present invention. As shown in FIG. 9, on the basis of FIG. 7, the communication device 70 further includes:
建立模块706,用于与主控制设备建立备份通道;An establishment module 706, configured to establish a backup channel with the main control device;
第一接收模块701还用于接收主控制设备通过备份通道发送的第一设备的LACP参数。The first receiving module 701 is also configured to receive the LACP parameters of the first device sent by the main control device through the backup channel.
综上所述,由于本发明实施例提供的通信设备中,在主控制设备正常工作时,第一接收模块就接受到了主控制设备发送的第一设备的LACP参数,从而使得在主控制设备故障前,确定模块就确定出了从控制设备上的LACP链路接口。在主控制设备出现故障时,从控制设备已经预先确定好从控制设备上的LACP链路接口,且主控制设备的LACP参数与从控制设备的LACP参数相同,使得主控制设备上的LACP链路接口与从控制设备确定出的LACP链路接口的接口优先级以及接口编号均相同,从控制设备无需与第一设备互相通信就确定双方通信的LACP链路接口。因此,在主控制设备故障时,第一设备能够快速由主控制设备切换至从控制设备,减少在主控制设备故障时通信数据的丢失,减轻了第一设备与第二设备之间通信的中断程度。To sum up, in the communication device provided by the embodiment of the present invention, when the main control device is working normally, the first receiving module receives the LACP parameters of the first device sent by the main control device, so that when the main control device fails Before, the determination module determines the LACP link interface on the slave control device. When the master control device fails, the slave control device has pre-determined the LACP link interface on the slave control device, and the LACP parameters of the master control device are the same as those of the slave control device, so that the LACP link interface on the master control device The interfaces have the same interface priority and interface number as the LACP link interface determined by the slave control device, and the slave control device determines the LACP link interface for communication between the two without communicating with the first device. Therefore, when the master control device fails, the first device can quickly switch from the master control device to the slave control device, reducing the loss of communication data when the master control device fails, and reducing the interruption of communication between the first device and the second device degree.
图10为本发明另一实施例提供的另一种通信设备的结构示意图,该通信设备为图1或图2所示的网络接入系统中的主控制设备,如图10所示,该通信设备100包括:Fig. 10 is a schematic structural diagram of another communication device provided by another embodiment of the present invention. The communication device is the main control device in the network access system shown in Fig. 1 or Fig. 2. As shown in Fig. 10, the communication Device 100 includes:
获取模块1001,用于获取第一设备的LACP参数;An acquisition module 1001, configured to acquire LACP parameters of the first device;
第一发送模块1002,用于向从控制设备发送第一设备的LACP参数;The first sending module 1002 is configured to send the LACP parameter of the first device to the slave control device;
确定模块1003,用于根据LACP、主控制设备的LACP参数以及第一设备的LACP参数,确定主控制设备上的LACP链路接口;A determining module 1003, configured to determine the LACP link interface on the main control device according to LACP, the LACP parameters of the main control device, and the LACP parameters of the first device;
通信模块1004,用于通过主控制设备上的LACP链路接口与第一设备通信。A communication module 1004, configured to communicate with the first device through the LACP link interface on the main control device.
综上所述,由于本发明实施例提供的通信设备中,在主控制设备正常工作时,第一发送模块就向从控制设备发送了第一设备的LACP参数,从而使得在主控制设备故障前,从控制设备就确定出了从控制设备上的LACP链路接口。在主控制设备出现故障时,从控制设备已经预先确定好从控制设备上的LACP链路接口,且主控制设备的LACP参数与从控制设备的LACP参数相同,使得主控制设备上的LACP链路接口与从控制设备确定出的LACP链路接口的接口优先级以及接口编号均相同,从控制设备无需与第一设备互相通信就确定双方通信的LACP链路接口。因此,在主控制设备故障时,第一设备能够快速由主控制设备切换至从控制设备,减少在主控制设备故障时通信数据的丢失,减轻了第一设备与第二设备之间通信的中断程度。To sum up, in the communication device provided by the embodiment of the present invention, when the master control device is working normally, the first sending module sends the LACP parameters of the first device to the slave control device, so that before the master control device fails , the slave control device determines the LACP link interface on the slave control device. When the master control device fails, the slave control device has pre-determined the LACP link interface on the slave control device, and the LACP parameters of the master control device are the same as those of the slave control device, so that the LACP link interface on the master control device The interfaces have the same interface priority and interface number as the LACP link interface determined by the slave control device, and the slave control device determines the LACP link interface for communication between the two without communicating with the first device. Therefore, when the master control device fails, the first device can quickly switch from the master control device to the slave control device, reducing the loss of communication data when the master control device fails, and reducing the interruption of communication between the first device and the second device degree.
可选的,获取模块1001还用于:多次获取第一设备的LACP参数,且任意两次获取到的所述第一设备的LACP参数相同或不同;Optionally, the acquiring module 1001 is further configured to: acquire the LACP parameters of the first device multiple times, and any two acquired LACP parameters of the first device are the same or different;
第一发送模块1002还用于:在每次获取到第一设备的LACP参数后,向从控制设备发送最近一次获取到的第一设备的LACP参数。The first sending module 1002 is further configured to: after acquiring the LACP parameters of the first device each time, send the latest acquired LACP parameters of the first device to the slave control device.
可选的,图11为本发明另一实施例提供的又一种通信设备的结构示意图,如图11所示,在图10的基础上,该通信设备100还包括:Optionally, FIG. 11 is a schematic structural diagram of another communication device provided in another embodiment of the present invention. As shown in FIG. 11 , on the basis of FIG. 10 , the communication device 100 further includes:
第二发送模块1005,用于向从控制设备发送优先级状态信息,优先级状态信息用于指示第一设备的系统优先级是否高于主控制设备的系统优先级。The second sending module 1005 is configured to send priority status information to the slave control device, where the priority status information is used to indicate whether the system priority of the first device is higher than the system priority of the master control device.
可选的,所述LACP参数包括:设备的系统优先级、设备的系统编号、设备中每个接口的接口优先级以及每个接口的接口编号,主控制设备的系统优先级与从控制设备的系统优先级相同,主控制设备的系统编号与从控制设备的系统编号相同;主控制设备的多个接口与从控制设备的多个接口一一对应,主控制设备中的任一接口的接口优先级与从控制设备中对应的接口的接口优先级相同,主控制设备中的任一接口的接口编号与从控制设备中对应的接口的接口编号相同。Optionally, the LACP parameters include: the system priority of the device, the system number of the device, the interface priority of each interface in the device and the interface number of each interface, the system priority of the master control device and the number of the slave control device The system priority is the same, the system number of the master control device is the same as that of the slave control device; the multiple interfaces of the master control device correspond to the multiple interfaces of the slave control device, and the interface of any interface in the master control device has priority The interface priority is the same as that of the corresponding interface in the slave control device, and the interface number of any interface in the master control device is the same as that of the corresponding interface in the slave control device.
图12为本发明另一实施例提供的再一种通信设备的结构示意图,如图12所示,在图10的基础上,该通信设备100还包括:Fig. 12 is a schematic structural diagram of another communication device provided by another embodiment of the present invention. As shown in Fig. 12, on the basis of Fig. 10, the communication device 100 further includes:
建立模块1006,用于与从控制设备建立备份通道;An establishment module 1006, configured to establish a backup channel with the slave control device;
第一发送模块1002还用于通过备份通道向从控制设备发送第一设备的LACP参数。The first sending module 1002 is further configured to send the LACP parameters of the first device to the slave control device through the backup channel.
综上所述,由于本发明实施例提供的通信设备中,在主控制设备正常工作时,第一发送模块就向从控制设备发送了第一设备的LACP参数,从而使得在主控制设备故障前,从控制设备就确定出了从控制设备上的LACP链路接口。在主控制设备出现故障时,从控制设备已经预先确定好从控制设备上的LACP链路接口,且主控制设备的LACP参数与从控制设备的LACP参数相同,使得主控制设备上的LACP链路接口与从控制设备确定出的LACP链路接口的接口优先级以及接口编号均相同,从控制设备无需与第一设备互相通信就确定双方通信的LACP链路接口。因此,在主控制设备故障时,第一设备能够快速由主控制设备切换至从控制设备,减少在主控制设备故障时通信数据的丢失,减轻了第一设备与第二设备之间通信的中断程度。To sum up, in the communication device provided by the embodiment of the present invention, when the master control device is working normally, the first sending module sends the LACP parameters of the first device to the slave control device, so that before the master control device fails , the slave control device determines the LACP link interface on the slave control device. When the master control device fails, the slave control device has pre-determined the LACP link interface on the slave control device, and the LACP parameters of the master control device are the same as those of the slave control device, so that the LACP link interface on the master control device The interfaces have the same interface priority and interface number as the LACP link interface determined by the slave control device, and the slave control device determines the LACP link interface for communication between the two without communicating with the first device. Therefore, when the master control device fails, the first device can quickly switch from the master control device to the slave control device, reducing the loss of communication data when the master control device fails, and reducing the interruption of communication between the first device and the second device degree.
在上述实施例中,能够全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,能够全部或部分地以计算机程序产品的形式实现,所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机能够是通用计算机、计算机网络、或者其他可编程装置。所述计算机指令能够存储在计算机的可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令能够从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心传输。所述计算机可读存储介质能够是计算机能够存取的任何可用介质或者包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质能够是磁性介质(例如,软盘、硬盘、磁带)、光介质,或者半导体介质(例如固态硬盘)等。In the above-mentioned embodiments, it can be fully or partially implemented by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product comprising one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present invention will be generated in whole or in part. The computer can be a general purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be downloaded from a website, computer, server or data The center transmits to another website site, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available medium can be a magnetic medium (eg, a floppy disk, a hard disk, or a magnetic tape), an optical medium, or a semiconductor medium (eg, a solid-state hard disk), and the like.
需要说明的是,本发明实施例提供的方法实施例能够与相应的设备实施例相互参考,本发明实施例对此不做限定。It should be noted that the method embodiment provided in the embodiment of the present invention can refer to the corresponding device embodiment, which is not limited in the embodiment of the present invention.
需要说明的是:上述实施例提供的通信设备在实现相应的通信方法时,仅以上述各功能模块的划分进行举例说明,实际应用中,能够根据需要而将上述功能分配由不同的功能模块完成,即将通信设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。It should be noted that when the communication device provided by the above-mentioned embodiments realizes the corresponding communication method, the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional modules according to needs. , that is, divide the internal structure of the communication device into different functional modules, so as to complete all or part of the functions described above.
上述实施例中的序号仅仅为了描述,不代表实施例的优劣。The serial numbers in the above embodiments are for description only, and do not represent the advantages and disadvantages of the embodiments.
本领域普通技术人员能够理解实现上述实施例的全部或部分步骤能够通过硬件来完成,也能够通过程序来指令相关的硬件完成,所述的程序能够存储于一种计算机可读存储介质中,上述提到的存储介质能够是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, and can also be completed by instructing related hardware through a program. The program can be stored in a computer-readable storage medium. The above-mentioned The storage medium mentioned can be a read-only memory, a magnetic disk or an optical disk, and the like.
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only optional embodiments of the application, and are not intended to limit the application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the application shall be included in the protection of the application. within range.
Claims (23)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710199105.8A CN108667640B (en) | 2017-03-29 | 2017-03-29 | Communication method and device, network access system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710199105.8A CN108667640B (en) | 2017-03-29 | 2017-03-29 | Communication method and device, network access system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108667640A true CN108667640A (en) | 2018-10-16 |
CN108667640B CN108667640B (en) | 2021-09-07 |
Family
ID=63786787
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710199105.8A Expired - Fee Related CN108667640B (en) | 2017-03-29 | 2017-03-29 | Communication method and device, network access system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108667640B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109450787A (en) * | 2018-10-31 | 2019-03-08 | 锐捷网络股份有限公司 | A kind of LACP operation method, device, system and storage medium |
CN112333752A (en) * | 2020-12-04 | 2021-02-05 | 深圳市欧瑞博科技股份有限公司 | Method and device for determining host equipment, intelligent equipment and storage medium |
CN112350853A (en) * | 2020-10-21 | 2021-02-09 | 杭州迪普科技股份有限公司 | Method, device, storage medium and equipment for switching between main network equipment and standby network equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20000044303A (en) * | 1998-12-30 | 2000-07-15 | 윤종용 | Method for managing link between network management center and mediation device |
CN102255633A (en) * | 2010-05-20 | 2011-11-23 | 中兴通讯股份有限公司 | Method and system for multi-stand user backup |
US20120233492A1 (en) * | 2011-03-10 | 2012-09-13 | Cisco Technology, Inc. | Transmitting network information using link or port aggregation protocols |
CN102857423A (en) * | 2011-07-01 | 2013-01-02 | 中兴通讯股份有限公司 | Service flow transferring method and node in distributed link polymerization system |
US20140071810A1 (en) * | 2012-09-11 | 2014-03-13 | Hitachi Metals, Ltd. | Communication system and processing method therefor |
WO2014174439A1 (en) * | 2013-04-23 | 2014-10-30 | Telefonaktiebolaget L M Ericsson (Publ) | A method and system for network and intra-portal link (ipl) sharing in distributed relay control protocol (drcp) |
-
2017
- 2017-03-29 CN CN201710199105.8A patent/CN108667640B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20000044303A (en) * | 1998-12-30 | 2000-07-15 | 윤종용 | Method for managing link between network management center and mediation device |
CN102255633A (en) * | 2010-05-20 | 2011-11-23 | 中兴通讯股份有限公司 | Method and system for multi-stand user backup |
US20120233492A1 (en) * | 2011-03-10 | 2012-09-13 | Cisco Technology, Inc. | Transmitting network information using link or port aggregation protocols |
CN102857423A (en) * | 2011-07-01 | 2013-01-02 | 中兴通讯股份有限公司 | Service flow transferring method and node in distributed link polymerization system |
US20140071810A1 (en) * | 2012-09-11 | 2014-03-13 | Hitachi Metals, Ltd. | Communication system and processing method therefor |
WO2014174439A1 (en) * | 2013-04-23 | 2014-10-30 | Telefonaktiebolaget L M Ericsson (Publ) | A method and system for network and intra-portal link (ipl) sharing in distributed relay control protocol (drcp) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109450787A (en) * | 2018-10-31 | 2019-03-08 | 锐捷网络股份有限公司 | A kind of LACP operation method, device, system and storage medium |
CN112350853A (en) * | 2020-10-21 | 2021-02-09 | 杭州迪普科技股份有限公司 | Method, device, storage medium and equipment for switching between main network equipment and standby network equipment |
CN112350853B (en) * | 2020-10-21 | 2022-09-30 | 杭州迪普科技股份有限公司 | Method, device, storage medium and equipment for switching master and standby network equipment |
CN112333752A (en) * | 2020-12-04 | 2021-02-05 | 深圳市欧瑞博科技股份有限公司 | Method and device for determining host equipment, intelligent equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108667640B (en) | 2021-09-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10659345B2 (en) | Service path protection method, controller, device and system | |
EP3082309B1 (en) | Sdn controller, data centre system and router connection method | |
CN105745883B (en) | Forwarding table synchronous method, the network equipment and system | |
CN108282352A (en) | Manage the methods, devices and systems of network slice example | |
CN108337179B (en) | Link flow control method and device | |
CN104202264A (en) | Carrying resource allocation method for clouded data center network, device and system | |
EP3242446A1 (en) | Failure protection method, device and system for ring protection link | |
EP2732598B1 (en) | Method to enhance high availability in a secure telecommunications network, and telecommunications network comprising a plurality of remote nodes | |
US9288075B2 (en) | Method and system for auto-configuration, and network node | |
WO2015070383A1 (en) | Link aggregation method, apparatus, and system | |
CN107948063B (en) | Method for establishing aggregation link and access equipment | |
CN106464516B (en) | Event handling in a network management system | |
CN106850424A (en) | A kind of system of selection, the apparatus and system in IP layers of path | |
CN108667640A (en) | Communication method and equipment, network access system | |
US11817970B2 (en) | Method, device, and system for determining generic routing encapsulation GRE tunnel identifier | |
CN103546308A (en) | Distribution method, device and system for wireless controller networking | |
CN108183849A (en) | Device management method, equipment and system based on L2TP | |
CN105991315A (en) | Link protection method applied to SDN (software defined network), switching device and network controller | |
CN104935614B (en) | Data transmission method and device | |
US11095514B2 (en) | System and method for propagating anima network objective changes | |
EP3537671B1 (en) | Protection switching method and system, and nodes | |
CN114268589B (en) | Traffic forwarding method, device and storage medium | |
CN103546316B (en) | A kind of method and device for transmitting OAM message | |
WO2015106506A1 (en) | Methods for setting control information and establishing communication, management controller and controller | |
CN104079451B (en) | A kind of method and apparatus for finding optical module |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20210907 |
|
CF01 | Termination of patent right due to non-payment of annual fee |