CN102006268A - Method, equipment and system for switching main interface and standby interface - Google Patents
Method, equipment and system for switching main interface and standby interface Download PDFInfo
- Publication number
- CN102006268A CN102006268A CN200910171414XA CN200910171414A CN102006268A CN 102006268 A CN102006268 A CN 102006268A CN 200910171414X A CN200910171414X A CN 200910171414XA CN 200910171414 A CN200910171414 A CN 200910171414A CN 102006268 A CN102006268 A CN 102006268A
- Authority
- CN
- China
- Prior art keywords
- network interface
- user data
- data protocol
- physical network
- standby
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明实施例公开了主备接口切换方法、设备及系统,应用于通信技术领域。在本发明实施例的主备接口切换中,由于主备用物理网口上绑定了不同的,与对端进行用户数据协议通信的地址,这样在主用物理网口与对端进行用户数据协议通信的同时,备用物理网口可以检测与对端通信网络的质量,使得管理设备在决定是否需要进行主备接口的切换时,可以根据备用物理网口与对端进行用户数据协议通信网络的质量来决定,在质量好的情况下管理设备确认进行主备接口切换,这样提高了主备接口切换后,主用物理网口与对端进行用户数据协议通信的可靠性。
The embodiment of the invention discloses a master-standby interface switching method, equipment and system, which are applied in the technical field of communication. In the active-standby interface switching in the embodiment of the present invention, since the active and standby physical network ports are bound with different addresses for user data protocol communication with the opposite end, user data protocol communication is performed between the active physical network port and the opposite end At the same time, the standby physical network port can detect the quality of the communication network with the opposite end, so that when the management device decides whether to switch between the active and standby interfaces, it can determine the quality of the user data protocol communication network between the standby physical network port and the opposite end. It is decided that the management device confirms the switching of the active and standby interfaces when the quality is good, which improves the reliability of the user data protocol communication between the active physical network port and the peer end after the active and standby interfaces are switched.
Description
技术领域technical field
本发明涉及通信技术领域,特别涉及主备接口切换方法、设备及系统。The invention relates to the technical field of communications, in particular to a method, device and system for switching between active and standby interfaces.
背景技术Background technique
目前的通信领域中,基于用户数据协议(UDP)的设备之间采用物理网口(FE)来传输UDP报文,UDP设备上有主备物理网口(即主用物理网口FE1和备用物理网口FE2),它们对应的媒体访问(MAC)层地址不同,在一般情况下,只有FE1通过网络协议(IP)地址与FE1自己的MAC层地址,和对端通信;在FE1与对端通信的网络发生故障后,FE2切换为主用接口,并通过所述的IP地址与FE2自己的MAC层地址,和对端通信。In the current communication field, physical network ports (FE) are used to transmit UDP packets between devices based on User Data Protocol (UDP). There are active and standby physical network ports on UDP devices (that is, the active physical network Network port FE2), their corresponding media access (MAC) layer addresses are different, in general, only FE1 communicates with the peer end through the network protocol (IP) address and FE1's own MAC layer address; FE1 communicates with the peer end After the network fails, FE2 switches to the active interface, and communicates with the peer end through the IP address and FE2's own MAC layer address.
UDP设备中主备物理网口分别连接在两个交换式以太网集线器(LANSWITCH,L)如L1和L2的相关接口,在L1上保存有IP地址和FE1自己的MAC层地址,L1与L2之间通过虚拟局域网路径(VLAN TRUNK)连接。当FE1发现与对端的通信网络发生故障时,向系统中的管理设备发送请求消息,请求主备物理网口的切换,当FE1接收到管理设备返回的切换确认消息,对主备物理网口进行切换,即将FE1切换成备用物理网口,将FE2切换成主用物理网口,同时,与FE1连接的L1会通过虚拟局域网路径,并使用虚拟路由冗余协议(VRRP)将收发UDP报文的操作倒换到L2上,并在L2上保存所述IP地址,且该IP地址和切换前在L1上保存的IP地址一样。这样主备接口切换后,FE2即可与对端进行UDP通信。The active and standby physical network ports in the UDP device are respectively connected to two switched Ethernet hubs (LANSWITCH, L) such as the relevant interfaces of L1 and L2. The IP address and the MAC layer address of FE1 are stored on L1. The link between L1 and L2 They are connected through a virtual LAN path (VLAN TRUNK). When FE1 finds that the communication network with the opposite end fails, it sends a request message to the management device in the system to request the switchover of the active and standby physical network ports. When FE1 receives the switchover confirmation message returned by the management device, it Switching means that FE1 will be switched to the standby physical network port, and FE2 will be switched to the active physical network port. At the same time, L1 connected to FE1 will pass through the virtual LAN path, and use the Virtual Routing Redundancy Protocol (VRRP) to send and receive UDP packets. The operation is switched to L2, and the IP address is saved on L2, and the IP address is the same as the IP address saved on L1 before switching. In this way, after the active/standby interface is switched, FE2 can communicate with the peer through UDP.
在对上述现有技术实践和研究的过程中,本发明的发明人发现:In the process of practicing and researching the above-mentioned prior art, the inventors of the present invention have found that:
现有的主备接口的切换中,管理设备在接收到请求消息后,根据自己预置的信息、主备接口所在设备的自身情况等决定是否能进行主备物理网口的切换,这样,如果切换后的主用网口FE2与对端进行UDP传输的网络不稳定,会使得在切换后的网络中传输UDP也不可靠。In the existing active/standby interface switchover, after receiving the request message, the management device decides whether to switch between the active/standby physical network ports according to its preset information and the conditions of the device where the active/standby interface is located. In this way, if After switching, the network between the main network port FE2 and the peer end for UDP transmission is unstable, which will make the transmission of UDP in the switched network unreliable.
发明内容Contents of the invention
本发明实施例提供的主备接口切换方法、设备及系统,提高了UDP报文收发的可靠性。The master-standby interface switching method, device and system provided by the embodiments of the present invention improve the reliability of sending and receiving UDP messages.
本发明实施例提供的一种主备接口切换方法,包括:A method for switching between active and standby interfaces provided by an embodiment of the present invention includes:
接收主用物理网口发送的请求消息,请求进行主备物理网口的切换;Receive the request message sent by the active physical network port, and request to switch between the active and standby physical network ports;
获得备用物理网口和对端进行用户数据协议UDP通信的质量信息;Obtain the quality information of the user data protocol UDP communication between the standby physical network port and the opposite end;
若确定所述质量信息符合预置的要求,向所述主用物理网口返回切换确认消息,以进行主备物理网口的切换。If it is determined that the quality information meets the preset requirements, a switching confirmation message is returned to the active physical network port to switch between the active and standby physical network ports.
本发明实施例提供的另一种主备接口切换方法,包括:Another master/standby interface switching method provided by an embodiment of the present invention includes:
确定主用物理网口与对端进行用户数据协议UDP通信的网络发生故障,向管理设备发送请求消息,请求进行主备物理网口的切换;It is determined that the network between the active physical network port and the opposite end for user data protocol UDP communication fails, and a request message is sent to the management device to request switching of the active and standby physical network ports;
接收所述管理设备在备用物理网口和对端进行用户数据协议UDP通信的质量信息符合预置的要求后返回的切换确认消息,进行主备物理网口的切换。Receiving the switching confirmation message returned by the management device after the user data protocol UDP communication quality information between the standby physical network port and the opposite end meets the preset requirements, and switching between the active and standby physical network ports.
本发明实施例提供的再一种主备接口切换方法,包括:Another method for switching between active and standby interfaces provided by an embodiment of the present invention includes:
使用备用物理网口和对端进行用户数据协议UDP通信的地址,和备用媒体访问层地址,检测所述备用物理网口和对端进行用户设备协议UDP通信的质量信息;Use the address of the standby physical network port and the opposite end to carry out the user data protocol UDP communication, and the alternate medium access layer address, and detect the quality information of the user equipment protocol UDP communication between the standby physical network port and the opposite end;
将所述质量信息上报给管理设备,以便于所述的管理设备在接收到请求进行主备物理网口的切换请求后根据所述的质量信息确定是否能进行主备物理网口的切换;Reporting the quality information to the management device, so that the management device determines whether the switch between the main and standby physical network ports can be performed according to the quality information after receiving the request for switching the main and standby physical network ports;
按照所述管理设备根据所述质量信息返回的切换确认消息,进行主备物理网口的切换。According to the switching confirmation message returned by the management device according to the quality information, the switching of the active and standby physical network ports is performed.
本发明实施例提供的一种管理设备,包括:A management device provided by an embodiment of the present invention includes:
请求消息接收单元,用于接收主用物理网口发送的请求消息,请求进行主备物理网口的切换;The request message receiving unit is used to receive the request message sent by the active physical network port, and request to switch between the active and standby physical network ports;
质量信息获得单元,用于获得备用物理网口和对端进行用户数据协议UDP通信的质量信息;The quality information obtaining unit is used to obtain the quality information of the user data protocol UDP communication between the standby physical network port and the opposite end;
切换返回单元,用于当确定所述质量信息获得单元获得的质量信息符合预置的要求,向所述主用物理网口返回切换确认消息,以进行主备物理网口的切换。The switching returning unit is configured to return a switching confirmation message to the active physical network port to switch between the active and standby physical network ports when it is determined that the quality information obtained by the quality information obtaining unit meets the preset requirements.
本发明实施例提供的一种基于用户数据协议的设备,包括:A user data protocol-based device provided in an embodiment of the present invention includes:
确定发送单元,用于确定主用物理网口与对端进行用户数据协议UDP通信的网络发生故障,向管理设备发送请求消息,请求进行主备物理网口的切换;The determining sending unit is used to determine that the network between the active physical network port and the opposite end for user data protocol UDP communication fails, and sends a request message to the management device to request switching of the active and standby physical network ports;
接收处理单元,用于接收所述管理设备在备用物理网口和对端进行用户数据协议UDP通信的质量信息符合预置的要求后返回的切换确认消息,进行主备物理网口的切换。The receiving processing unit is used to receive the switching confirmation message returned by the management device after the user data protocol UDP communication quality information of the standby physical network port and the opposite end meets the preset requirements, and switch between the active and standby physical network ports.
本发明实施例提供的另一种基于用户数据协议的设备,包括:Another user data protocol-based device provided by an embodiment of the present invention includes:
第二检测单元,用于使用备用物理网口和对端进行用户数据协议UDP通信的地址,和备用媒体访问层地址,检测所述备用物理网口和对端进行用户设备协议UDP通信的质量信息;The second detection unit is used to use the spare physical network port and the address of the peer to perform user data protocol UDP communication, and the spare media access layer address to detect the quality information of the spare physical network port and the peer to perform user equipment protocol UDP communication ;
第二上报单元,用于将所述第二检测单元检测的质量信息上报给管理设备,以便于所述的管理设备在接收到请求进行主备物理网口的切换请求后根据所述的质量信息确定是否能进行主备物理网口的切换;The second reporting unit is configured to report the quality information detected by the second detection unit to the management device, so that the management device receives the request to switch the active and standby physical network ports according to the quality information Determine whether it is possible to switch between the active and standby physical network ports;
切换单元,用于按照所述管理设备根据所述第二上报单元上报的质量信息的返回的切换确认消息,进行主备物理网口的切换。The switching unit is configured to switch the active and standby physical network ports according to the switching confirmation message returned by the management device according to the quality information reported by the second reporting unit.
本发明实施例提供的一种主备接口切换系统,包括:管理设备和基于用户数据协议的设备,所述基于用户数据协议的设备包括主用物理网口;An active/standby interface switching system provided by an embodiment of the present invention includes: a management device and a device based on a user data protocol, wherein the device based on a user data protocol includes an active physical network port;
所述基于用户数据协议的设备,用于确定主用物理网口与对端进行用户数据协议UDP通信的网络发生故障,向管理设备发送请求消息,请求进行主备物理网口的切换;接收到所述管理设备根据所述请求消息返回的切换确认消息,进行主备物理网口的切换;The device based on the user data protocol is used to determine that the network where the active physical network port and the opposite end perform user data protocol UDP communication fails, and sends a request message to the management device to request switching of the active and standby physical network ports; The management device switches the active and standby physical network ports according to the switching confirmation message returned by the request message;
所述管理设备,用于接收所述基于用户数据协议的设备中主用物理网口发送的请求消息,请求进行主备物理网口的切换;获得备用物理网口和对端进行用户数据协议UDP通信的质量信息;若所述质量信息符合预置的要求,向所述基于用户数据协议的设备中主用物理网口返回切换确认消息。The management device is used to receive the request message sent by the active physical network port in the device based on the user data protocol, and request to switch the active and standby physical network ports; obtain the standby physical network port and perform the user data protocol UDP on the opposite end Communication quality information; if the quality information meets the preset requirements, return a switching confirmation message to the main physical network port of the device based on the user data protocol.
本发明实施例提供的一种主备接口切换系统,包括:管理设备、基于用户数据协议的主用设备和基于用户数据协议的备用设备,所述基于用户数据协议的主用设备包括主用物理网口,所述基于用户数据协议的备用设备包括备用物理网口;An active-standby interface switching system provided by an embodiment of the present invention includes: a management device, a user data protocol-based active device, and a user data protocol-based standby device, and the user data Network port, the backup device based on the user data protocol includes a backup physical network port;
所述基于用户数据协议的主用设备,用于确定主用物理网口与对端进行用户数据协议UDP通信的网络发生故障,向管理设备发送请求消息,请求进行主备物理网口的切换;接收到所述管理设备根据所述请求消息返回的切换确认消息,将备用物理网口和对端进行用户数据协议UDP通信的地址,与主用物理网口绑定,向所述基于用户数据协议的备用设备上备用物理网口请求将所述备用物理网口切换成主用物理网口;The primary device based on the user data protocol is used to determine that the network between the primary physical network port and the opposite end for user data protocol UDP communication fails, and sends a request message to the management device to request switching of the primary and backup physical network ports; Receiving the switching confirmation message returned by the management device according to the request message, binding the address of the standby physical network port and the opposite end for user data protocol UDP communication with the active physical network port, and sending the user data protocol based address to the active physical network port. The standby physical network port on the standby device requests to switch the standby physical network port to the active physical network port;
所述管理设备,用于接收所述基于用户数据协议的主用设备中主用物理网口发送的请求消息,请求进行主备物理网口的切换;向基于用户数据协议的备用设备获得备用物理网口和对端进行用户数据协议UDP通信的质量信息;若所述质量信息符合预置的要求,向所述基于用户数据协议的主用设备中主用物理网口返回切换确认消息;The management device is configured to receive a request message sent by the active physical network port of the active device based on the user data protocol, and request to switch between the active and standby physical network ports; obtain the standby physical network port from the standby device based on the user data protocol. The quality information of the user data protocol UDP communication between the network port and the opposite end; if the quality information meets the preset requirements, return a switching confirmation message to the main physical network port in the main device based on the user data protocol;
所述基于用户数据协议的备用设备,用于接收到所述基于用户数据协议的主用设备发送的,将备用物理网口切换成主用物理网口的请求;将所述主用物理网口和对端进行用户数据协议UDP通信的地址,与备用物理网口绑定。The user data protocol-based backup device is configured to receive a request from the user data protocol-based master device to switch the backup physical network port to the master physical network port; The address for UDP communication with the peer end, bound to the standby physical network port.
在本发明实施例的主备接口切换中,由于主备用物理网口上绑定了不同的,与对端进行用户数据协议通信的地址,这样在主用物理网口与对端进行用户数据协议通信的同时,备用物理网口可以检测与对端通信网络的质量,使得管理设备在决定是否需要进行主备接口的切换时,可以根据备用物理网口与对端进行用户数据协议通信网络的质量来决定,在质量好的情况下管理设备确认进行主备接口切换,这样提高了主备接口切换后,主用物理网口与对端进行用户数据协议通信的可靠性。In the active-standby interface switching in the embodiment of the present invention, since the active and standby physical network ports are bound with different addresses for user data protocol communication with the opposite end, user data protocol communication is performed between the active physical network port and the opposite end At the same time, the standby physical network port can detect the quality of the communication network with the opposite end, so that when the management device decides whether to switch between the active and standby interfaces, it can determine the quality of the user data protocol communication network between the standby physical network port and the opposite end. It is decided that the management device confirms the switching of the active and standby interfaces when the quality is good, which improves the reliability of the user data protocol communication between the active physical network port and the peer end after the active and standby interfaces are switched.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1是本发明实施例提供的主备接口切换的方法的流程图;Fig. 1 is the flow chart of the method for switching between active and standby interfaces provided by an embodiment of the present invention;
图2是本发明方法实施例一提供的主备接口切换的方法的流程图;Fig. 2 is a flow chart of the method for switching the active/standby interface provided by the first method embodiment of the present invention;
图3是本发明方法实施例二提供的主备接口切换的方法的流程图;Fig. 3 is a flow chart of the method for switching between active and standby interfaces provided by the second method embodiment of the present invention;
图4是本发明设备实施例一提供的管理设备的结构示意图;FIG. 4 is a schematic structural diagram of a management device provided by Embodiment 1 of the device of the present invention;
图5是本发明设备实施例二提供的基于用户数据协议的设备的结构示意图;FIG. 5 is a schematic structural diagram of a device based on a user data protocol provided in
图6是本发明设备实施例三提供的基于用户数据协议的设备的结构示意图;FIG. 6 is a schematic structural diagram of a device based on a user data protocol provided in
图7是本发明系统实施例一提供的主备接口切换系统的结构示意图;Fig. 7 is a schematic structural diagram of the master-standby interface switching system provided by the first system embodiment of the present invention;
图8是本发明系统实施例二提供的主备接口切换系统的结构示意图。Fig. 8 is a schematic structural diagram of the master-standby interface switching system provided by the second system embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
本发明实施例中,在主用物理网口使用主用IP地址和主用MAC层地址,与对端进行UDP通信时,备用物理网口使用备用IP地址和备用MAC层地址,检测和对端进行UDP通信的质量信息。从而提高了UDP报文收发的可靠性。In the embodiment of the present invention, when the active physical network port uses the active IP address and the active MAC layer address to perform UDP communication with the opposite end, the standby physical network port uses the standby IP address and the standby MAC layer address to detect and communicate with the opposite end. Quality information for UDP communication. Thus, the reliability of sending and receiving UDP packets is improved.
一种主备接口切换方法,流程图如图1所示,包括:A method for switching between active and standby interfaces, the flowchart of which is shown in Figure 1, comprising:
步骤10、管理设备接收主用物理网口发送的请求消息,请求进行主备物理网口的切换;
步骤20、管理设备获得备用物理网口和对端进行用户数据协议UDP通信的质量信息;
可以理解,管理设备可以向备用物理网口所在设备请求获得备用物理网口和对端进行用户数据协议UDP通信的质量信息,也可以是备用物理网口所在设备检测到备用物理网口和对端进行用户数据协议UDP通信的质量信息后主动向管理设备上报的。且这里的质量信息包括以下信息的一种或几种:信息单向时延、丢包率、抖动时间等。It can be understood that the management device can request the device where the standby physical network port is located to obtain the quality information of the user data protocol UDP communication between the standby physical network port and the peer end, or it can be that the device where the standby physical network port is located detects that the standby physical network port and the peer end The quality information of UDP communication is actively reported to the management device. And the quality information here includes one or more of the following information: information one-way delay, packet loss rate, jitter time and so on.
步骤30、若确定所述质量信息符合预置的要求,管理设备向所述主用物理网口返回切换确认消息,以进行主备物理网口的切换。Step 30: If it is determined that the quality information meets the preset requirements, the management device returns a switching confirmation message to the active physical network port to switch the active and standby physical network ports.
这里预置的要求包括以下一种或几种:信息单向时延不能大于第一阈值;包丢失率不能大于第二阈值;抖动时间不能大于第三阈值等。在确定质量信息符合预置的要求时,具体是将质量信息与预置的要求中相应质量信息对应的阈值进行比较,并通过比较结果来确定。可以理解,获得质量信息时需要根据设备中预置的要求进行获取,如预置的要求是信息单向时延不能大于第一阈值,则在获取质量信息时只获取信息单向时延即可,且在确定符合预置的要求时是将单向时延与第一阈值比较,如果比较结果是小于则符合预置的要求。The preset requirements here include one or more of the following: information one-way delay cannot be greater than the first threshold; packet loss rate cannot be greater than the second threshold; jitter time cannot be greater than the third threshold and so on. When determining that the quality information meets the preset requirements, specifically, the quality information is compared with a threshold corresponding to the corresponding quality information in the preset requirements, and determined through the comparison result. It can be understood that when obtaining quality information, it needs to be obtained according to the preset requirements in the device. If the preset requirement is that the information one-way delay cannot be greater than the first threshold, then only the information one-way delay can be obtained when acquiring quality information. , and when it is determined that the preset requirement is met, the one-way delay is compared with the first threshold, and if the comparison result is less than, the preset requirement is met.
方法实施例一Method embodiment one
一种主备接口切换方法,本实施例中,主备物理网口在同一个设备上,假设为UDP设备,UDP设备中的主备物理网口分别与不同的中转设备LI和L2连接,流程图如图2所示,包括:A method for switching between active and standby interfaces. In this embodiment, the active and standby physical network ports are on the same device, assuming that it is a UDP device, and the active and standby physical network ports in the UDP device are respectively connected to different transfer devices LI and L2. The process The diagram is shown in Figure 2, including:
步骤101、UDP设备确定主用物理网口与对端进行用户数据协议UDP通信的网络发生故障,向管理设备发送请求消息,请求进行主备物理网口的切换;
UDP设备中主用物理网口可以使用主用IP地址IP_A1和主用MAC层地址M1,与对端进行UDP通信,与UDP设备主备物理网口连接的设备LI和L2分别保存主备物理网口的IP地址与MAC层地址的对应关系,如L1中保存着主用物理网口的主用IP地址IP_A1和主用MAC层地址M1,L2中保存着备用物理网口的备用IP地址IP_A2和备用MAC层地址M2。当L1接收到UDP报文时,通过UDP报文的目的地址IP_A1查询到M1,将UDP报文发送给M1对应的主用物理网口。The active physical network port of the UDP device can use the active IP address IP_A1 and the active MAC layer address M1 to communicate with the peer through UDP, and the devices LI and L2 connected to the active and standby physical network ports of the UDP device respectively save the active and standby physical networks. The corresponding relationship between the IP address of the port and the MAC layer address, for example, L1 stores the primary IP address IP_A1 and the primary MAC layer address M1 of the primary physical network port, and L2 stores the standby IP address IP_A2 and Standby MAC layer address M2. When L1 receives the UDP packet, it queries M1 through the destination address IP_A1 of the UDP packet, and sends the UDP packet to the corresponding primary physical network port of M1.
UDP设备中备用物理网口使用备用物理网口和对端进行用户数据协议UDP通信的地址如备用IP地址IP_A2,和备用媒体访问层地址M2,通过地址解析协议(ARP)探测方法、ping包方法检测备用物理网口和对端进行UDP通信的质量信息,如UDP设备中备用物理网口可以在一定周期内向对端发送ARP探测包或ping包,并记录对端返回响应的时间等方法。可以理解,UDP设备可以将质量信息上报给管理设备,以确定是否能进行主备物理网口的切换。这里质量信息包括以下一种或几种:信息单向时延、丢包率和抖动时间。所述的质量信息具体可以如表1所示,但是该表仅仅是例子说明,并不限定本发明。The spare physical network port in the UDP device uses the address of the spare physical network port and the opposite end for user data protocol UDP communication, such as the spare IP address IP_A2, and the spare media access layer address M2, through the address resolution protocol (ARP) detection method and the ping packet method Detect the quality information of UDP communication between the standby physical network port and the peer. For example, the standby physical network port in the UDP device can send ARP detection packets or ping packets to the peer within a certain period, and record the time when the peer returns a response. It can be understood that the UDP device can report the quality information to the management device to determine whether it is possible to switch between the active and standby physical network ports. The quality information here includes one or more of the following: information one-way delay, packet loss rate, and jitter time. The quality information can be specifically shown in Table 1, but this table is only an example for illustration, and does not limit the present invention.
表1Table 1
确定主用物理网口与对端进行用户数据协议UDP通信的网络发生故障具体可以是在一定时间内接收不到对端的响应消息,或不能发送UDP报文,或主用物理网口与对端进行UDP通信的网络质量信息显示网络质量较差或恶劣,可以理解的是,这里网络质量信息包括如上表所述的以下一种或几种:信息单向时延、丢包率和抖动时间。上述信息中的一种不符合预设的阈值(如单向时延超过400ms,丢包率超过5%,或者抖动超过60ms)时,则可以认为存在网络故障。It is determined that the fault occurs on the network where the active physical network port communicates with the peer through UDP. Specifically, it can be that the response message from the peer cannot be received within a certain period of time, or that UDP packets cannot be sent, or that the active physical network port communicates with the peer. The network quality information for UDP communication shows that the network quality is poor or poor. It can be understood that the network quality information includes one or more of the following as described in the above table: information one-way delay, packet loss rate and jitter time. When one of the above information does not meet the preset threshold (for example, the one-way delay exceeds 400ms, the packet loss rate exceeds 5%, or the jitter exceeds 60ms), it can be considered that there is a network failure.
步骤102、管理设备获得备用物理网口和对端进行用户数据协议UDP通信的质量信息;
可以理解,管理设备可以向备用物理网口所在设备,如UDP设备,发送请求消息,请求获得备用物理网口和对端进行UDP通信的质量信息,也可以是接收UDP设备检测到备用物理网口和对端进行UDP通信的质量信息后主动向管理设备上报的质量信息等。It can be understood that the management device can send a request message to the device where the standby physical network port is located, such as a UDP device, to request to obtain the quality information of the UDP communication between the standby physical network port and the peer end, or the receiving UDP device can detect the standby physical network port Quality information actively reported to the management device after performing UDP communication quality information with the peer end.
步骤103、若确定所述质量信息符合预置的要求,管理设备向主用物理网口返回切换确认消息,以进行主备物理网口的切换;当然如果不符合要求,管理设备不允许进行主备物理网口的切换;Step 103: If it is determined that the quality information meets the preset requirements, the management device returns a switching confirmation message to the active physical network port to switch between the active and standby physical network ports; of course, if the requirements are not met, the management device does not allow the active Switching of the standby physical network port;
这里预置的要求包括以下一种或几种:信息单向时延不能大于第一阈值,(例如为100ms);包丢失率不能大于第二阈值(例如为1%);抖动不能大于第三阈值(例如为20ms)等。The preset requirements here include one or more of the following: the one-way delay of information cannot be greater than the first threshold, (for example, 100ms); the packet loss rate cannot be greater than the second threshold (for example, 1%); the jitter cannot be greater than the third threshold Threshold (for example, 20ms) and so on.
步骤104、UDP设备接收管理设备在备用物理网口和对端进行UDP通信的质量信息符合预置的要求后返回的切换确认消息,进行主备物理网口的切换。Step 104: The UDP device receives the switching confirmation message returned by the management device after the quality information of the UDP communication between the standby physical network port and the opposite end meets the preset requirements, and performs the switching of the active and standby physical network ports.
该主备物理网口的切换具体可以为:将备用物理网口和对端进行用户数据协议UDP通信的地址,与主用物理网口绑定,将主用物理网口和对端进行用户数据协议UDP通信的地址,与所述备用物理网口绑定;并可进一步发送通知消息,例如广播消息,所述的通知消息用来请求更新用户数据协议通信的地址和物理网口的对应关系。The switching of the active and standby physical network ports can specifically be: bind the address of the standby physical network port and the opposite end for user data protocol UDP communication with the active physical network port, and bind the active physical network port and the opposite end for user data communication. The address of the protocol UDP communication is bound to the standby physical network port; and a notification message, such as a broadcast message, can be further sent, and the notification message is used to request to update the corresponding relationship between the address of the user data protocol communication and the physical network port.
需要说明的是,如果主备FE物理网口不在同一个设备上,假设为主用物理网口所在设备为UDP1设备,备用物理网口所在设备为UDP2设备,则所述UDP1设备接收管理设备在备用物理网口和对端进行UDP通信的质量信息符合预置的要求后返回的切换确认消息,进行主备物理网口的切换具体可以为:将备用物理网口和对端进行用户数据协议UDP通信的地址,与主用物理网口绑定;向所述备用物理网口所在设备请求将所述备用物理网口切换成主用物理网口;并可进一步发送通知消息,例如广播消息,所述的通知消息用来请求更新用户数据协议通信的地址和物理网口的对应关系。It should be noted that if the active and standby FE physical network ports are not on the same device, assuming that the device where the active physical network port is located is a UDP1 device, and the device where the standby physical network port is located is a UDP2 device, then the UDP1 device receiving management device is on The switching confirmation message returned after the quality information of UDP communication between the standby physical network port and the opposite end meets the preset requirements. The switching of the active and standby physical network ports can be performed as follows: the standby physical network port and the opposite end perform user data protocol UDP The communication address is bound to the active physical network port; request to the device where the standby physical network port is located to switch the standby physical network port to the active physical network port; and can further send a notification message, such as a broadcast message, the The above notification message is used to request to update the corresponding relationship between the user data protocol communication address and the physical network port.
UDP设备将备用物理网口和对端进行用户数据协议UDP通信的地址,与主用物理网口绑定,例如可以通过UDP设备将IP_A2与M1绑定实现;将主用物理网口和对端进行用户数据协议UDP通信的地址,与所述备用物理网口绑定,例如可以通过将UDP设备将IP_A1与M2绑定实现。并通过通知消息,例如广播消息(具体如ARP报文)发送给本网段的设备如L1和L2,请求本网段的设备更新进行UDP通信的地址和物理网口的对应关系。这样UDP设备中的主用物理网口就切换成备用物理网口;备用物理网口就切换成主用物理网口,且与对端进行UDP通信的IP地址没有改变,不需要对其他设备进行改动。The UDP device binds the standby physical network port and the address of the peer for UDP communication with the primary physical network port. For example, the UDP device can bind IP_A2 to M1; the primary physical network port and the peer The address for user data protocol UDP communication is bound to the standby physical network port, for example, it can be realized by binding IP_A1 and M2 of the UDP device. And through a notification message, such as a broadcast message (such as an ARP message) sent to the equipment in the local network segment such as L1 and L2, requesting the equipment in the local network segment to update the corresponding relationship between the address for UDP communication and the physical network port. In this way, the active physical network port in the UDP device will be switched to the standby physical network port; the standby physical network port will be switched to the active physical network port, and the IP address for UDP communication with the peer end will not change. change.
步骤105、L1和L2接收到通知消息,如广播消息,分别更新自己保存的IP地址和MAC层地址的对应关系,并通过动态路由协议(OSPF)将IP地址的变化分别通知L2和L1。
可以理解,L1接收通知消息,如广播消息后,将主用IP地址与主用MAC层地址的对应关系更新为IP_A2对应M1;L2接收通知消息,如广播消息后,将备用IP地址与备用MAC层地址的对应关系更新为IP_A1对应M2。这样L1就通过OSPF协议将收发UDP报文的操作倒换到了L2上,与现有技术中通过VRRP协议进行操作倒换相比,避免了VRRP协议本身的规定如默认1秒发送一次VRRP协议报文的等带来的缺陷。It can be understood that after receiving a notification message, such as a broadcast message, L1 updates the correspondence between the primary IP address and the primary MAC layer address to IP_A2 corresponding to M1; after receiving the notification message, such as a broadcast message, L2 updates the backup IP address and the backup MAC The corresponding relationship of layer addresses is updated to be that IP_A1 corresponds to M2. In this way, L1 switches the operation of sending and receiving UDP messages to L2 through the OSPF protocol. Compared with the operation switching through the VRRP protocol in the prior art, it avoids the regulation of the VRRP protocol itself, such as sending a VRRP protocol message every second by default. and other defects.
通过上述步骤,当主用物理网口与对端进行UDP通信的网络发生故障时,进行主备物理网口的切换后,当对端发送UDP报文,与切换后的主用物理网口FE2连接的设备L2接收到该UDP报文的目的地址IP_A1,查询进行UDP通信的地址和物理网口的对应关系查询到M2,将该UDP报文发送给UDP设备的主用物理网口FE2。Through the above steps, when the UDP communication network between the active physical network port and the opposite end fails, after switching the active and standby physical network ports, when the opposite end sends UDP packets, it is connected to the active physical network port FE2 after switching The device L2 receives the destination address IP_A1 of the UDP message, queries the corresponding relationship between the address for UDP communication and the physical network port to M2, and sends the UDP message to the primary physical network port FE2 of the UDP device.
在本发明实施例的主备接口切换中,由于主备用物理网口上绑定了不同的,与对端进行用户数据协议通信的地址,这样在主用物理网口与对端进行用户数据协议通信的同时,备用物理网口可以检测与对端通信网络的质量信息,使得管理设备在决定是否需要进行主备接口的切换时,可以根据备用物理网口与对端进行用户数据协议通信网络的质量来决定,在质量好的情况下管理设备确认进行主备接口切换,这样提高了主备接口切换后,主用物理网口与对端进行用户数据协议通信的可靠性。In the active-standby interface switching in the embodiment of the present invention, since the active and standby physical network ports are bound with different addresses for user data protocol communication with the opposite end, user data protocol communication is performed between the active physical network port and the opposite end At the same time, the standby physical network port can detect the quality information of the communication network with the opposite end, so that when the management device decides whether to switch between the active and standby interfaces, it can perform user data protocol communication network quality with the opposite end based on the standby physical network port. When the quality is good, the management device confirms the switching of the active and standby interfaces, which improves the reliability of the user data protocol communication between the active physical network port and the peer end after the active and standby interfaces are switched.
方法实施例二Method embodiment two
一种主备接口切换方法,本实施例中,主备FE物理网口不在同一个设备上,假设为UDP1设备和UDP2设备,且主备物理网口分别与不同的中转设备LI和L2连接,流程图如图3所示,包括:A method for switching between active and standby interfaces. In this embodiment, the active and standby FE physical network ports are not on the same device, assuming that they are UDP1 devices and UDP2 devices, and the active and standby physical network ports are respectively connected to different transit devices LI and L2. The flowchart is shown in Figure 3, including:
步骤201、UDP1设备确定主用物理网口与对端进行用户数据协议UDP通信的网络发生故障,向管理设备发送请求消息,请求进行主备物理网口的切换;
UDP1设备中主用物理网口可以使用主用IP地址IP_A1和主用MAC层地址M1,与对端进行UDP通信,与UDP1设备主用物理网口连接的设备LI保存着主用物理网口的主用IP地址IP_A1和主用MAC层地址M1。The primary physical network port of the UDP1 device can use the primary IP address IP_A1 and the primary MAC layer address M1 to perform UDP communication with the peer. The device LI connected to the primary physical network port of the UDP1 device stores the information of the primary physical network port The primary IP address IP_A1 and the primary MAC layer address M1.
UDP1设备可以根据接收到对端发送的UDP报文,确定主用物理网口与对端进行UDP通信是否存在网络发生故障,具体的可以通过在一定时间内接收不到对端的响应消息,或不能发送UDP报文来确认发生网络故障,或根据主用物理网口与对端进行UDP通信的网络质量确认是否发生网络故障,例如,如果主用物理网口与对端进行UDP通信的网络质量信息显示网络质量较差或恶劣,则认为发生网络故障。可以理解的是,这里网络质量信息包括如前述实施例中的以下一种或几种:信息单向时延、丢包率和抖动时间。上述信息中的一种不符合预设的阈值(如单向时延超过400ms,丢包率超过5%,或者抖动超过60ms)时,则可以认为存在网络故障。The UDP1 device can determine whether there is a network failure in the UDP communication between the main physical network port and the peer end based on the UDP message sent by the peer end. Send a UDP message to confirm the occurrence of a network failure, or confirm whether a network failure occurs based on the network quality of the UDP communication between the active physical network port and the peer end, for example, if the network quality information of the UDP communication between the active physical network port and the peer end If it shows that the network quality is poor or poor, it is considered that a network failure has occurred. It can be understood that the network quality information here includes one or more of the following as in the foregoing embodiments: information one-way delay, packet loss rate, and jitter time. When one of the above information does not meet the preset threshold (for example, the one-way delay exceeds 400ms, the packet loss rate exceeds 5%, or the jitter exceeds 60ms), it can be considered that there is a network fault.
步骤202、UDP2设备使用备用物理网口和对端进行用户数据协议UDP通信的地址,以及备用媒体访问层地址,检测所述备用物理网口和对端进行用户设备协议通信的质量信息;
UDP2设备中备用物理网口可以使用备用IP地址IP_A2和备用MAC层地址M2,通过ARP探测方法、ping包方法检测备用物理网口和对端进行UDP通信的质量信息,如UDP设备中备用物理网口可以在一定周期内向对端发送ARP探测包或ping包,并记录对端返回响应的时间等方法。可以理解,UDP2设备可以将检测到的质量信息适时或者定期地上报给管理设备,以便于所述的管理设备在接收到请求进行主备物理网口的切换请求后根据所述的质量信息确定是否能进行主备物理网口的切换。也可以在接收到管理设备的质量信息地请求消息后,向管理设备返回包含有检测结果的请求响应。The backup physical network port in the UDP2 device can use the backup IP address IP_A2 and the backup MAC layer address M2 to detect the quality information of UDP communication between the backup physical network port and the peer end through the ARP detection method and the ping packet method, such as the backup physical network port in the UDP device The port can send ARP detection packets or ping packets to the peer within a certain period, and record the time when the peer returns a response. It can be understood that the UDP2 device can report the detected quality information to the management device timely or periodically, so that the management device can determine whether to It can switch between active and standby physical network ports. It is also possible to return a request response including the detection result to the management device after receiving the request message of the quality information of the management device.
与UDP2设备中备用物理网口连接的设备L2保存着备用物理网口的备用IP地址IP_A2和备用MAC层地址M2。The device L2 connected to the backup physical network port in the UDP2 device stores the backup IP address IP_A2 and the backup MAC layer address M2 of the backup physical network port.
步骤203、管理设备接收主用物理网口发送的请求消息,获得备用物理网口和对端进行用户数据协议UDP通信的质量信息;若确定质量信息符合预置的要求,向主用物理网口返回切换确认消息,以进行主备物理网口的切换;如果不符合要求,管理设备不允许进行主备物理网口的切换;
本步骤中的具体实现方法,例如,质量信息的相关内容以及判断是否符合预置的要求如方法实施例一所述,在此不再赘述。The specific implementation method in this step, for example, the relevant content of the quality information and the judgment whether it meets the preset requirements are as described in the first method embodiment, and will not be repeated here.
步骤204、UDP1设备中的主用物理网口接收到切换确认消息,根据所述的切换确认消息,进行主备物理网口的切换。所述进行主备物理网口的切换具体可以为:将将备用物理网口和对端进行用户数据协议UDP通信的地址,与主用物理网口绑定,并可进一步发送通知消息,如广播消息,请求更新进行用户数据协议通信的地址和物理网口的对应关系;且UDP1设备向备用物理网口所在设备即UDP2请求将备用物理网口切换成主用物理网口;
UDP1设备将备用物理网口和对端进行用户数据协议UDP通信的地址,与主用物理网口绑定,如可以通过将UDP1设备将IP_A2与M1绑定实现,并可以进一步通过通知消息,如广播消息具体(如ARP报文发)送给本网段的设备如L1,请求更新进行UDP通信的地址和物理网口的对应关系。The UDP1 device binds the standby physical network port and the address of the user data protocol UDP communication of the opposite end to the active physical network port. For example, it can be realized by binding the UDP1 device to IP_A2 and M1, and further notification messages can be passed, such as The broadcast message is specifically (for example, sent by an ARP message) sent to a device on the local network segment such as L1, requesting to update the corresponding relationship between the address for UDP communication and the physical network port.
步骤205、UDP2设备接收主用物理网口所在设备即UDP1设备发送的,将备用物理网口切换成主用物理网口的请求;将主用物理网口和对端进行UDP通信的地址,与备用物理网口绑定;并可进一步发送通知消息,如广播消息,请求更新进行用户数据协议通信的地址和物理网口的对应关系;
UDP2设备将IP_A1与M2绑定,并通过通知消息,如广播消息(具体如ARP报文发)送给本网段的设备如L2,请求更新进行UDP通信的地址和物理网口的对应关系。The UDP2 device binds IP_A1 and M2, and sends a notification message, such as a broadcast message (specifically, an ARP message) to a device in the network segment such as L2, requesting to update the corresponding relationship between the address for UDP communication and the physical network port.
这样UDP设备中的主用物理网口就切换成备用口;备用物理网口就切换成主用口,且与对端进行UDP通信的IP地址没有改变,不需要对其他设备进行改动。In this way, the active physical network port in the UDP device is switched to the standby port; the standby physical network port is switched to the active port, and the IP address for UDP communication with the peer end remains unchanged, and no changes are required to other devices.
步骤206、L1和L2分别接收到UDP1和UDP2设备发送的通知消息,如广播消息,分别更新自己保存的IP地址和MAC层地址,并通过动态路由协议(OSPF)将IP地址的变化分别通知L2和L1。
通过上述步骤,当主用物理网口与对端进行UDP通信的网络发生故障时,进行主备物理网口的切换后,当对端发送UDP报文,与切换后的主用口物理网口FE2连接的设备L2接收到该UDP报文的目的地址IP_A1,查询进行UDP通信的地址和物理网口的对应关系查询到M2,将该UDP报文发送给UDP设备的主用物理网口FE2。Through the above steps, when the UDP communication network between the active physical network port and the opposite end fails, after the active and standby physical network ports are switched, when the opposite end sends a UDP packet, the physical network port FE2 of the active active port after switching The connected device L2 receives the destination address IP_A1 of the UDP message, queries the corresponding relationship between the address for UDP communication and the physical network port to M2, and sends the UDP message to the main physical network port FE2 of the UDP device.
在本发明实施例的主备接口切换中,由于主备用物理网口上绑定了不同的,与对端进行用户数据协议通信的地址,这样在主用物理网口与对端进行用户数据协议通信的同时,备用物理网口可以检测与对端通信网络的质量,使得管理设备在决定是否需要进行主备接口的切换时,可以根据备用物理网口与对端进行用户数据协议通信网络的质量来决定,在质量好的情况下管理设备确认进行主备接口切换,这样提高了主备接口切换后,主用物理网口与对端进行用户数据协议通信的可靠性。In the active-standby interface switching in the embodiment of the present invention, since the active and standby physical network ports are bound with different addresses for user data protocol communication with the opposite end, user data protocol communication is performed between the active physical network port and the opposite end At the same time, the standby physical network port can detect the quality of the communication network with the opposite end, so that when the management device decides whether to switch between the active and standby interfaces, it can determine the quality of the user data protocol communication network between the standby physical network port and the opposite end. It is decided that the management device confirms the switching of the active and standby interfaces when the quality is good, which improves the reliability of the user data protocol communication between the active physical network port and the peer end after the active and standby interfaces are switched.
设备实施例一Equipment embodiment one
一种管理设备,例如可以为单独的计算机、单板、或者网络中的相应服务器,该管理设备的结构示意图如图4所示,包括:A management device, for example, can be a separate computer, a single board, or a corresponding server in the network. The schematic diagram of the management device is shown in Figure 4, including:
请求消息接收单元10,用于接收主用物理网口发送的请求消息,请求进行主备物理网口的切换;The request
质量信息获得单元11,用于当所述请求消息接收单元10接收到请求消息后,获得备用物理网口和对端进行用户数据协议UDP通信的质量信息;Quality
具体地可以为,所述质量信息获得单元11向备用物理网口所在设备,如UDP设备,发送请求消息,请求获得备用物理网口和对端进行UDP通信的质量信息,或者也可以是接收UDP设备检测到备用物理网口和对端进行UDP通信的质量信息后主动向管理设备上报的质量信息。Specifically, the quality
切换返回单元12,用于若确定所述质量信息获得单元11获得的质量信息符合预置的要求,向所述主用物理网口返回切换确认消息,以进行主备物理网口的切换。具体的判断是否符合预置的要求与前述实施例方式一样,此不再赘述。The
需要说明的是,以上管理设备的实施方式中,各功能模块的划分仅是举例说明,实际应用中可以根据需要,比如相应硬件的配置要求或者软件的实现的便利考虑,而将上述功能分配由不同的功能模块完成,即将所述的基于用户数据协议设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。而且实际应用中,本实施例中的相应的功能模块可以是由相应的硬件实现,也可以由相应的硬件执行相应的软件完成,例如,前述的请求消息接收单元10,可以为具有执行前述功能的硬件,比如,一般的接收器,天线,以及无线接收装置,有线接收装置;切换返回单元12,可以为能够执行前述功能的特定处理器,也可以是能够执行相应计算机程序从而完成前述功能的一般处理器,或者其他硬件设备。It should be noted that in the above implementation of the management device, the division of each functional module is only an example. In practical applications, the above functions can be allocated by Different functional modules are completed, that is, the internal structure of the user data protocol-based device is divided into different functional modules, so as to complete all or part of the functions described above. Moreover, in practical applications, the corresponding functional modules in this embodiment may be implemented by corresponding hardware, and may also be completed by corresponding hardware executing corresponding software. For example, the aforementioned request
在本发明实施例中,由于主备用物理网口上绑定了不同的,与对端进行用户数据协议通信的地址,这样在主用物理网口与对端进行用户数据协议通信的同时,备用物理网口可以检测与对端通信网络的质量,使得管理设备的切换返回单元12在决定是否需要进行主备接口的切换时,可以根据备用物理网口与对端进行用户数据协议通信网络的质量来决定,在质量好的情况下管理设备确认进行主备接口切换,这样提高了主备接口切换后,主用物理网口与对端进行用户数据协议通信的可靠性。In the embodiment of the present invention, since the active and standby physical network ports are bound with different addresses for user data protocol communication with the peer end, the standby physical network port communicates with the peer end while performing user data protocol communication. The network port can detect the quality of the communication network with the opposite end, so that when the switching
设备实施例二Equipment embodiment two
一种基于用户数据协议的设备2,例如可以为UDP设备,结构示意图如图5所示,包括:A
确定发送单元20,用于确定主用物理网口与对端进行用户数据协议UDP通信的网络发生故障,向管理设备发送请求消息,请求进行主备物理网口的切换;Determine the sending
确定发送单元20在确定主用物理网口与对端进行用户数据协议UDP通信的网络发生故障具体可以是通过在一定时间内接收不到对端的响应消息,或不能发送UDP报文,或主用物理网口与对端进行UDP通信的网络质量不符合预置的要求进行确定。此处具体判断方式与方法实施例中的判断方式相同,不再赘述。It is determined that the sending
接收处理单元21,用于接收所述管理设备在备用物理网口和对端进行用户数据协议UDP通信的质量信息符合预置的要求后返回的切换确认消息,进行主备物理网口的切换;The receiving
所述进行主备物理网口的切换具体可以为:将备用物理网口和对端进行用户数据协议UDP通信的地址,与主用物理网口绑定;将主用物理网口和对端进行用户数据协议UDP通信的地址,与所述备用物理网口绑定,或向所述备用物理网口所在设备请求将所述备用物理网口切换成主用物理网口。并可进一步发送通知消息,如广播消息,请求更新进行用户数据协议通信的地址和物理网口的对应关系,一个具体的例子可以是将ARP报文发送给本网段的设备如L2,请求更新进行UDP通信的地址和物理网口的对应关系。其中的管理设备可以是在接收到确定发送单元20发送的请求后,才确定备用物理网口和对端进行用户数据协议UDP通信的质量信息是否符合预置的要求的。也可以在其他时间确定备用物理网口和对端进行用户数据协议UDP通信的质量信息是否符合预置的要求,本发明实施例不做限制。The switching of the active and standby physical network ports can specifically be as follows: the address of the standby physical network port and the opposite end for user data protocol UDP communication is bound to the active physical network port; the active physical network port and the opposite end are The user data protocol UDP communication address is bound to the backup physical network port, or requests the device where the backup physical network port is located to switch the backup physical network port to the active physical network port. And can further send a notification message, such as a broadcast message, requesting to update the corresponding relationship between the address of the user data protocol communication and the physical network port. A specific example can be to send an ARP message to a device on the network segment such as L2, requesting an update The corresponding relationship between the address for UDP communication and the physical network port. The management device may determine whether the quality information of UDP communication between the standby physical network port and the opposite end meets the preset requirements after receiving the request sent by the determining sending
在另一个具体的实施例中,该基于用户数据协议的设备在上述各实施例的基础上还可以进一步包括:第一切换请求接收单元22,用于接收主用物理网口所在设备发送的,将备用物理网口切换成主用物理网口的请求;第一绑定处理单元23,用于当所述第一切换请求接收单元22接收到请求后,将所述主用物理网口和对端进行用户数据协议UDP通信的地址,与备用物理网口绑定,并发送通知消息,如广播消息,请求更新进行用户数据协议通信的地址和物理网口的对应关系,一个具体的例子可以是将ARP报文发送给本网段的设备如L2,请求更新进行UDP通信的地址和物理网口的对应关系。In another specific embodiment, the device based on the user data protocol may further include: a first switching
在再一具体的实施例中,所述的基于用户数据协议的设备在前述各实施例的基础上还可以进一步包括:第一检测单元24,用于使用备用物理网口和对端进行用户数据协议UDP通信的地址,和备用媒体访问层地址,检测所述备用物理网口和对端进行用户设备协议UDP通信的质量信息;第一上报单元25,用于将所述第一检测单元24检测的质量信息上报给管理设备,以确定是否能进行主备物理网口的切换,可以理解的是,第一上报单元25可以直接上报,也可以在接收到管理设备发送的请求获得质量信息的请求消息之后,再进行上报。In yet another specific embodiment, on the basis of the foregoing embodiments, the device based on the user data protocol may further include: a
需要说明的是,以上各基于用户数据协议设备的实施方式中,各功能模块的划分仅是举例说明,实际应用中可以根据需要,比如相应硬件的配置要求或者软件的实现的便利考虑,而将上述功能分配由不同的功能模块完成,即将所述的基于用户数据协议设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。而且实际应用中,本实施例中的相应的功能模块可以是由相应的硬件实现,也可以由相应的硬件执行相应的软件完成,例如,前述的确定发送单元20,可以为具有执行前述功能的硬件,比如,具有该特定功能的检测器或处理器,或者能够执行相应计算机程序从而完成前述功能的一般处理器;接收处理单元21可以为能够执行前述功能的特定处理器,也可以是能够执行相应计算机程序从而完成前述功能的一般处理器,或者其他硬件设备。It should be noted that in the above implementations of user data protocol-based devices, the division of each functional module is only an example. In actual applications, it can be considered according to needs, such as the configuration requirements of corresponding hardware or the convenience of software implementation. The above function allocation is accomplished by different functional modules, that is, the internal structure of the user data protocol-based device is divided into different functional modules to complete all or part of the functions described above. Moreover, in practical applications, the corresponding functional modules in this embodiment can be implemented by corresponding hardware, or can be completed by corresponding hardware executing corresponding software. For example, the aforementioned
上述各基于用户数据协议的设备2进行主备接口切换的实施例中,由于主备用物理网口上绑定了不同的,与对端进行用户数据协议通信的地址,这样在主用物理网口与对端进行用户数据协议通信的同时,备用物理网口可以检测与对端通信网络的质量,当确定发送单元20发现主用物理网口与对端进行UDP通信的网络发生故障时,发送请求消息,当接收处理单元21接收到切换确认消息,即进行主备物理网口的切换,使得管理设备在决定是否需要进行主备接口的切换时,可以根据备用物理网口与对端进行用户数据协议通信网络的质量来决定,在质量好的情况下管理设备确认进行主备接口切换,这样提高了主备接口切换后,主用物理网口与对端进行用户数据协议通信的可靠性。In the above-mentioned embodiments in which the
设备实施例三Equipment embodiment three
一种基于用户数据协议的设备3,例如可以为UDP设备,该设备的一般的结构示意图如图6所示,包括:A
第二检测单元30,用于使用备用物理网口和对端进行用户数据协议UDP通信的地址,和备用媒体访问层地址,检测所述备用物理网口和对端进行用户设备协议UDP通信的质量信息;具体的检测方法与上述方法实施例一样。The
第二上报单元31,用于将所述第二检测单元30检测的质量信息上报给管理设备,以便于所述的管理设备在接收到请求进行主备物理网口的切换请求后根据所述的质量信息确定是否能进行主备物理网口的切换;可以理解,第二上报单元31可以直接上报,也可以在接收到管理设备发送的请求获得质量信息的请求消息之后,再进行上报。The
切换单元32,用于按照所述管理设备根据所述第二上报单元31上报的质量信息的返回的切换确认消息,进行主备物理网口的切换。The switching
一个具体的例子中,所述的切换单元32按照所述管理设备根据所述第二上报单元31上报的质量信息的返回的切换确认消息,进行主备物理网口的切换具体可以为:In a specific example, the switching
将备用物理网口和对端进行用户数据协议UDP通信的地址,与主用物理网口绑定;或在此基础上进一步将主用物理网口和对端进行用户数据协议UDP通信的地址,与所述备用物理网口绑定,或向所述备用物理网口所在设备请求将所述备用物理网口切换成主用物理网口。Bind the address of the standby physical network port and the opposite end for user data protocol UDP communication with the active physical network port; or further bind the address of the active physical network port and the opposite end for user data protocol UDP communication on this basis, Binding to the standby physical network port, or requesting the device where the standby physical network port is located to switch the standby physical network port to the active physical network port.
在另一具体的例子中,所述的切换单元32在前述基础上还可以进一步用于还可以进一步用于发送通知消息,如广播消息,请求更新进行用户数据协议通信的地址和物理网口的对应关系。In another specific example, the switching
在再一个具体的实施例中,所述的切换单元32按照所述管理设备根据所述第二上报单元31上报的质量信息的返回的切换确认消息,进行主备物理网口的切换具体可以为:In yet another specific embodiment, the switching
接收主用物理网口所在设备发送的,将备用物理网口切换成主用物理网口的请求;将所述主用物理网口和对端进行用户数据协议UDP通信的地址,与备用物理网口绑定,并可进一步发送通知消息,如广播消息,请求更新进行用户数据协议通信的地址和物理网口的对应关系。Receive the request sent by the device where the active physical network port is located, and switch the standby physical network port to the active physical network port; exchange the address of the active physical network port and the opposite end for user data protocol UDP communication with the standby physical network port port binding, and can further send a notification message, such as a broadcast message, requesting to update the corresponding relationship between the address for user data protocol communication and the physical network port.
在另一个具体的实施例中,所述的基于用户数据协议的设备可以进一步包括基于用户数据协议的设备2实施例中描述的确定发送单元20以及接收处理单元21。In another specific embodiment, the user data protocol-based device may further include the
本实施例基于用户数据协议的设备3的备用物理网口切换中,由于主备用物理网口上绑定了不同的,与对端进行用户数据协议通信的地址,这样在主用物理网口与对端进行用户数据协议通信的同时,基于用户数据协议的设备3中的检测单元32可以检测备用物理网口与对端通信网络的质量,使得管理设备在决定是否需要进行主备接口的切换时,可以根据备用物理网口与对端进行用户数据协议通信网络的质量来决定,在质量好的情况下管理设备确认进行主备接口切换,这样提高了主备接口切换后,主用物理网口与对端进行用户数据协议通信的可靠性。In the switching of the backup physical network port of the
需要说明的是,以上各基于用户数据协议设备的实施方式中,各功能模块的划分仅是举例说明,实际应用中可以根据需要,比如相应硬件的配置要求或者软件的实现的便利考虑,而将上述功能分配由不同的功能模块完成,即将所述的基于用户数据协议设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。而且实际应用中,本实施例中的相应的功能模块可以是由相应的硬件实现,也可以由相应的硬件执行相应的软件完成,例如,前述的第二检测单元30,可以为具有执行前述功能的硬件,比如,具有该特定功能的检测器或处理器;切换单元32可以为能够执行前述功能的特定处理器,也可以是能够执行相应计算机程序从而完成前述功能的一般处理器,或者其他切换设备。It should be noted that in the above implementations of user data protocol-based devices, the division of each functional module is only an example. In actual applications, it can be considered according to needs, such as the configuration requirements of corresponding hardware or the convenience of software implementation. The above function allocation is accomplished by different functional modules, that is, the internal structure of the user data protocol-based device is divided into different functional modules to complete all or part of the functions described above. Moreover, in practical applications, the corresponding functional modules in this embodiment can be implemented by corresponding hardware, or can be completed by corresponding hardware executing corresponding software. For example, the aforementioned
系统实施例一System Embodiment 1
一种主备接口切换系统,结构示意图如图7所示,包括:管理设备100和基于用户数据协议的设备200,所述基于用户数据协议的设备200包括主用物理网口;A system for switching between active and standby interfaces, as shown in FIG. 7 , including: a
所述基于用户数据协议的设备200,用于确定主用物理网口与对端进行用户数据协议UDP通信的网络发生故障,向管理设备100发送请求消息,请求进行主备物理网口的切换;接收到所述管理设备100根据所述请求消息返回的切换确认消息,进行主备物理网口的切换;所述的进行主备物理网口的切换的过程与前述各设备实施例相同;并可以进一步用于发送通知消息,如广播消息,请求更新进行用户数据协议通信的地址和物理网口的对应关系;The user data protocol-based
所述管理设备100,用于接收所述基于用户数据协议的设备200中主用物理网口发送的请求消息,请求进行主备物理网口的切换;获得所述基于用户数据协议的设备200的备用物理网口和对端进行用户数据协议UDP通信的质量信息;若所述质量信息符合预置的要求,向所述基于用户数据协议的设备200中主用物理网口返回切换确认消息;The
需要说明的时,上述系统实施例中的管理设备100可以是前述设备实施例一中的描述的各管理设备;所述的基于用户数据协议的设备200可以是前述设备实施例二或者设备实施例三中描述的各种设备实施例。When it needs to be explained, the
系统实施例二System embodiment two
一种主备接口切换系统,该系统中主备物理网口在不同一个设备上,结构示意图如图8所示,包括:管理设备100、基于用户数据协议的主用设备300和基于用户数据协议的备用设备400,所述基于用户数据协议的主用设备300包括主用物理网口,所述基于用户数据协议的备用设备400包括备用物理网口;A main-standby interface switching system, in which the main and standby physical network ports are on different devices, the structural diagram is shown in Figure 8, including: a
所述基于用户数据协议的主用设备300,用于确定主用物理网口与对端进行用户数据协议UDP通信的网络发生故障,向管理设备100发送请求消息,请求进行主备物理网口的切换;接收到所述管理设备100根据所述请求消息返回的切换确认消息,将备用物理网口和对端进行用户数据协议UDP通信的地址,与主用物理网口绑定,并向所述基于用户数据协议的备用设备400上备用物理网口请求将所述备用物理网口切换成主用物理网口;并进一步可以用于发送通知消息,如广播消息,请求更新进行用户数据协议通信的地址和物理网口的对应关系;The user data protocol-based
所述管理设备100,用于接收所述基于用户数据协议的主用设备300中主用物理网口发送的请求消息,请求进行主备物理网口的切换;获得所述基于用户数据协议的备用设备400和对端进行用户数据协议UDP通信的质量信息;若所述质量信息符合预置的要求,向所述基于用户数据协议的主用设备300中主用物理网口返回切换确认消息;The
所述基于用户数据协议的备用设备400,用于接收到所述基于用户数据协议的主用设备300发送的,将备用物理网口切换成主用物理网口的请求;将所述主用物理网口和对端进行用户数据协议UDP通信的地址,与备用物理网口绑定,并可以进一步用于发送通知消息,如广播消息,请求更新进行用户数据协议通信的地址和物理网口的对应关系。The user data protocol-based
需要说明的时,上述系统实施例中的管理设备100可以是前述设备实施例一中的描述的各管理设备;所述的基于用户数据协议的设备300可以是前述设备实施例二或者设备实施例三中描述的各种设备实施例;所述的基于用户数据协议的设备400可以是前述设备实施例二或者设备实施例三中描述的各种设备实施例。When it needs to be explained, the
上述本发明实施例的主备接口切换方法、设备及系统中,由于主备用物理网口上绑定了不同的,与对端进行用户数据协议通信的地址,这样在主用物理网口与对端进行用户数据协议通信的同时,备用物理网口可以检测与对端通信网络的质量,使得管理设备在决定是否需要进行主备接口的切换时,可以根据备用物理网口与对端进行用户数据协议通信网络的质量来决定,在质量好的情况下管理设备确认进行主备接口切换,这样提高了主备接口切换后,主用物理网口与对端进行用户数据协议通信的可靠性。In the above-mentioned main-standby interface switching method, device and system of the embodiments of the present invention, since the main and standby physical network ports are bound with different addresses for performing user data protocol communication with the opposite end, in this way, the main physical network port and the opposite end While performing user data protocol communication, the standby physical network port can detect the quality of the communication network with the peer end, so that the management device can perform user data protocol with the peer end according to the standby physical network port when deciding whether to switch between the active and standby interfaces. The quality of the communication network depends on the quality of the communication network. If the quality is good, the management device confirms the switching of the active and standby interfaces. This improves the reliability of the user data protocol communication between the active physical network port and the peer end after the active and standby interfaces are switched.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ROM)、随机存取存储器(RAM)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: Read Only Memory (ROM), Random Access Memory (RAM), Magnetic or Optical Disk, etc.
以上对本发明实施例所提供的主备接口切换方法、设备及系统,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The above is a detailed introduction to the master-standby interface switching method, equipment and system provided by the embodiment of the present invention. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiment is only for helping Understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, the content of this specification is not It should be understood as a limitation of the present invention.
Claims (23)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200910171414XA CN102006268A (en) | 2009-08-28 | 2009-08-28 | Method, equipment and system for switching main interface and standby interface |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200910171414XA CN102006268A (en) | 2009-08-28 | 2009-08-28 | Method, equipment and system for switching main interface and standby interface |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN102006268A true CN102006268A (en) | 2011-04-06 |
Family
ID=43813347
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN200910171414XA Pending CN102006268A (en) | 2009-08-28 | 2009-08-28 | Method, equipment and system for switching main interface and standby interface |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN102006268A (en) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2011157146A3 (en) * | 2011-05-31 | 2012-04-26 | 华为技术有限公司 | Main/backup switching method between communication devices, communication device, system and service request device |
| CN103546317A (en) * | 2013-10-15 | 2014-01-29 | 华为技术有限公司 | Path loading method and path loading server |
| WO2016086697A1 (en) * | 2014-12-05 | 2016-06-09 | 华为技术有限公司 | Switchback delay method, device, and system |
| CN106341249A (en) * | 2015-07-10 | 2017-01-18 | 中兴通讯股份有限公司 | Redundant port switching method and device |
| CN109446178A (en) * | 2018-11-13 | 2019-03-08 | 郑州云海信息技术有限公司 | A kind of Hadoop object storage high availability method, system, device and readable storage medium storing program for executing |
| CN110994565A (en) * | 2019-12-02 | 2020-04-10 | 中国联合网络通信集团有限公司 | A kind of relay protection method and device |
| CN113300978A (en) * | 2021-02-05 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Data transmission method and device |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1878085A (en) * | 2005-08-05 | 2006-12-13 | 华为技术有限公司 | State detection method based on main and backup Ethernet interface |
| CN101365169A (en) * | 2007-08-09 | 2009-02-11 | 华为技术有限公司 | Implementation method, system, media gateway and media gateway controller of routing control |
| CN101431437A (en) * | 2008-12-30 | 2009-05-13 | 中兴通讯股份有限公司 | Switching control method and device for main and standby network interface board |
| CN101488844A (en) * | 2009-02-23 | 2009-07-22 | 中兴通讯股份有限公司 | Method and system for communication link switching control between boards |
-
2009
- 2009-08-28 CN CN200910171414XA patent/CN102006268A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1878085A (en) * | 2005-08-05 | 2006-12-13 | 华为技术有限公司 | State detection method based on main and backup Ethernet interface |
| CN101365169A (en) * | 2007-08-09 | 2009-02-11 | 华为技术有限公司 | Implementation method, system, media gateway and media gateway controller of routing control |
| CN101431437A (en) * | 2008-12-30 | 2009-05-13 | 中兴通讯股份有限公司 | Switching control method and device for main and standby network interface board |
| CN101488844A (en) * | 2009-02-23 | 2009-07-22 | 中兴通讯股份有限公司 | Method and system for communication link switching control between boards |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2011157146A3 (en) * | 2011-05-31 | 2012-04-26 | 华为技术有限公司 | Main/backup switching method between communication devices, communication device, system and service request device |
| CN103546317A (en) * | 2013-10-15 | 2014-01-29 | 华为技术有限公司 | Path loading method and path loading server |
| CN103546317B (en) * | 2013-10-15 | 2017-06-20 | 华为技术有限公司 | A kind of path loading method and server |
| WO2016086697A1 (en) * | 2014-12-05 | 2016-06-09 | 华为技术有限公司 | Switchback delay method, device, and system |
| US11146484B2 (en) | 2014-12-05 | 2021-10-12 | Huawei Technologies Co., Ltd. | Method, device, and system for deferring switchback |
| CN106341249A (en) * | 2015-07-10 | 2017-01-18 | 中兴通讯股份有限公司 | Redundant port switching method and device |
| WO2017008641A1 (en) * | 2015-07-10 | 2017-01-19 | 中兴通讯股份有限公司 | Method of switching redundancy port and device utilizing same |
| CN109446178A (en) * | 2018-11-13 | 2019-03-08 | 郑州云海信息技术有限公司 | A kind of Hadoop object storage high availability method, system, device and readable storage medium storing program for executing |
| CN110994565A (en) * | 2019-12-02 | 2020-04-10 | 中国联合网络通信集团有限公司 | A kind of relay protection method and device |
| CN113300978A (en) * | 2021-02-05 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Data transmission method and device |
| CN113300978B (en) * | 2021-02-05 | 2024-10-29 | 阿里巴巴集团控股有限公司 | Data transmission method and device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7492787B2 (en) | Method, apparatus, and medium for migration across link technologies | |
| CN101651691B (en) | Network system, access equipment and application layer service assess method | |
| CN101741742B (en) | Message processing method, access equipment and communication system | |
| CN100490411C (en) | Method for studying MAC address and network element apparatus | |
| CN102006268A (en) | Method, equipment and system for switching main interface and standby interface | |
| CN106603261B (en) | Hot backup method, first main device, standby device and communication system | |
| EP2753029B1 (en) | Message learning method, device and system | |
| WO2009014629A2 (en) | Assisted peer-to-peer media streaming | |
| WO2023280240A1 (en) | Gateway switching method and apparatus, terminal device, and computer readable storage medium | |
| US20150146518A1 (en) | Method and device for processing communication path | |
| CN101316234B (en) | Route condition detecting method, device and system | |
| CN106817267B (en) | Fault detection method and equipment | |
| CN102904761B (en) | The method of a kind of NVR stacking and NVR | |
| EP4378125B1 (en) | Message flooding prevention in 5g wireless network | |
| CN113595760B (en) | System fault processing method and device | |
| WO2022007861A1 (en) | Failure notification method and electronic device | |
| CN114079584B (en) | Method and device for keeping a user terminal alive | |
| CN109039680B (en) | A method, system and BNG for switching main broadband network gateway BNG and standby BNG | |
| CN101197811B (en) | Method for improving server reliability in dynamic main unit configuration protocol under proxy mode | |
| CN103457853A (en) | Communication method and equipment | |
| CN101765168B (en) | Address switching method and device | |
| CN117202410A (en) | Data communication methods, equipment and storage media for converged networks | |
| CN101645840A (en) | Method, system and routing equipment for retransmitting message | |
| CN109428814A (en) | A kind of multicast traffic transport method, relevant device and computer readable storage medium | |
| CN108768798B (en) | Equipment access method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
| WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20110406 |