CN101510901B - Communication method, communication apparatus and system between distributed equipment - Google Patents
Communication method, communication apparatus and system between distributed equipment Download PDFInfo
- Publication number
- CN101510901B CN101510901B CN2009100093503A CN200910009350A CN101510901B CN 101510901 B CN101510901 B CN 101510901B CN 2009100093503 A CN2009100093503 A CN 2009100093503A CN 200910009350 A CN200910009350 A CN 200910009350A CN 101510901 B CN101510901 B CN 101510901B
- Authority
- CN
- China
- Prior art keywords
- ipc
- domain
- main control
- message
- control board
- 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.)
- Expired - Fee Related
Links
- 238000004891 communication Methods 0.000 title claims abstract description 62
- 238000000034 method Methods 0.000 title claims abstract description 49
- 230000008569 process Effects 0.000 claims abstract description 19
- 230000008859 change Effects 0.000 claims abstract description 14
- 238000005538 encapsulation Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 17
- 230000005540 biological transmission Effects 0.000 description 6
- 230000008901 benefit Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开了一种分布式设备间的通信方法、通信设备和通信系统。该方法应用于包括第一设备和第二设备的网络中,第一设备作为虚拟IPC节点位于第二设备的第二IPC域中,第二设备作为虚拟IPC节点位于第一设备的第一IPC域中,方法包括:第一设备的主用主控板将向第二设备发送的报文发送到与第二设备连接的第一接口,报文的源地址为主用主控板在第一IPC域中的IPC节点标识;第一接口所在的业务板将报文转发到第二设备上第二接口所在的业务板;转发过程中,更改报文的源地址为第一设备在第二IPC域中的虚拟节点标识;第二接口所在的业务板将报文发送到第二设备的主用主控板。通过使用本发明,实现了分布式设备间基于IPC域的通信,节约了网络中的IP地址资源。
The invention discloses a communication method among distributed devices, a communication device and a communication system. The method is applied in a network including a first device and a second device, the first device is located in the second IPC domain of the second device as a virtual IPC node, and the second device is located in the first IPC domain of the first device as a virtual IPC node In this method, the method includes: the active main control board of the first device sends the message sent to the second device to the first interface connected to the second device, and the source address of the message is the active main control board in the first IPC The IPC node identifier in the domain; the service board where the first interface is located forwards the message to the service board where the second interface is located on the second device; during the forwarding process, change the source address of the message to be that the first device is in the second IPC domain The virtual node identifier in ; the service board where the second interface is located sends the message to the active main control board of the second device. By using the invention, the communication based on the IPC domain among the distributed devices is realized, and the IP address resource in the network is saved.
Description
技术领域 technical field
本发明涉及通讯领域,尤其涉及一种分布式设备间的通信方法、通信设备和通信系统。The invention relates to the communication field, in particular to a communication method, communication equipment and a communication system between distributed equipment.
背景技术 Background technique
随着用户对网络可靠性的要求越来越高,如何保证网络的不间断传输已成为一个必须解决的问题。特别是在一些重要业务的接入点如企业的Internet接入点、银行的数据库服务器等。在这些接入点上如果只使用一台防火墙设备,无论其可靠性多高,系统都必然要承受因单点故障而导致网络业务中断的风险。为了解决上述问题,现有技术中引入了双机热备方法。所谓双机热备,也可以称为双机会话备份。其示意图可以如图1A所示,两台防火墙设备在网络中平等运行,没有主备之分,相互之间可以进行负载分担。当其中一台防火墙设备发生故障时,如图1B所示,由于另一台设备已经备份了故障设备上的会话,数据流便可以从另一台设备上通过,及时接替故障设备上的业务运行,从而在很大程度上避免了网络业务的中断。As users have higher and higher requirements for network reliability, how to ensure uninterrupted network transmission has become a problem that must be solved. Especially in the access points of some important services such as Internet access points of enterprises and database servers of banks. If only one firewall device is used on these access points, no matter how high its reliability is, the system will inevitably bear the risk of network service interruption due to single point failure. In order to solve the above problems, a dual-machine hot standby method is introduced in the prior art. The so-called dual-machine hot backup can also be called dual-machine session backup. Its schematic diagram can be shown in FIG. 1A , the two firewall devices run equally in the network, there is no active/standby distinction, and load sharing can be performed between each other. When one of the firewall devices fails, as shown in Figure 1B, because the other device has backed up the session on the faulty device, the data flow can pass through the other device and take over the business operation on the faulty device in time , thereby avoiding the interruption of network services to a large extent.
双机会话备份过程中,两台设备的业务板之间建立SOCKET(SOCKET中包括地址和端口信息,一端通常可以通过SOCKET向网络中的对端发出请求或者应答来自网络中的对端的请求)连接,将需要备份的数据通过TCP(Transmission Control Protocol,传输控制协议)/IP(Internet Protocol,因特网协议)协议栈传送到对端。以图2所示的两台设备间的连接为例,设备A(IP地址为192.268.1.1,Port号24)上的业务板通过接口a与设备B(IP地址为192.268.1.1,Port号2)上业务板的接口b通过SOCKET连接,并将需要备份的数据通过TCP/IP协议栈传送到对端。现有技术中存在的问题在于,在双机会话备份中需要为两台设备分别分配IP地址,消耗了网络中有限的IP地址资源。During the dual-machine session backup process, a SOCKET connection is established between the service boards of the two devices (SOCKET includes address and port information, and one end can usually send a request to the peer end in the network through SOCKET or respond to a request from the peer end in the network) connection , and transmit the data to be backed up to the opposite end through the TCP (Transmission Control Protocol, Transmission Control Protocol)/IP (Internet Protocol, Internet Protocol) protocol stack. Take the connection between two devices shown in Figure 2 as an example. The service board on device A (IP address 192.268.1.1, Port number 24) communicates with device B (IP address 192.268.1.1, Port number 24) through interface a ) interface b of the service board is connected through SOCKET, and the data to be backed up is transmitted to the opposite end through the TCP/IP protocol stack. The problem in the prior art is that in the dual-device session backup, IP addresses need to be assigned to the two devices respectively, which consumes limited IP address resources in the network.
发明内容 Contents of the invention
本发明提供一种分布式设备间的通信方法、通信设备和通信系统,用于实现分布式设备间基于IPC域的通信,节约网络中的IP地址资源。The invention provides a communication method between distributed devices, a communication device and a communication system, which are used to realize communication between distributed devices based on the IPC domain and save IP address resources in the network.
本发明提供了一种分布式设备间的通信方法,其特征在于,应用于包括第一设备和第二设备的网络中,所述第一设备作为虚拟IPC节点位于所述第二设备的第二IPC域中,所述第二设备作为虚拟IPC节点位于所述第一设备的第一IPC域中,所述方法包括:The present invention provides a communication method between distributed devices, which is characterized in that it is applied in a network including a first device and a second device, and the first device is located in the second device of the second device as a virtual IPC node. In the IPC domain, the second device is located in the first IPC domain of the first device as a virtual IPC node, and the method includes:
所述第一设备的主用主控板将向所述第二设备发送的报文发送到与所述第二设备连接的第一接口,所述报文的源地址为所述主用主控板在所述第一IPC域中的IPC节点标识;The active main control board of the first device sends the message sent to the second device to the first interface connected to the second device, and the source address of the message is the active main control board The IPC node identifier of the board in the first IPC domain;
所述第一接口所在的业务板将所述报文转发到所述第二设备上第二接口所在的业务板;转发过程中,更改报文的源地址为所述第一设备在所述第二IPC域中的虚拟节点标识;The service board where the first interface is located forwards the message to the service board where the second interface is located on the second device; during the forwarding process, change the source address of the message to the 2. The virtual node identifier in the IPC domain;
所述第二接口所在的业务板将所述报文发送到所述第二设备的主用主控板。The service board where the second interface is located sends the packet to the active main control board of the second device.
其中,所述更改报文的源地址为所述第一设备在所述第二IPC域中的虚拟节点标识的操作,由所述第一设备上第一接口所在的业务板、或所述第二设备上第二接口所在的业务板完成。Wherein, the source address of the change message is an operation identified by the virtual node of the first device in the second IPC domain, and the service board where the first interface on the first device is located, or the second The service board where the second interface is located on the second device is completed.
其中,所述报文为数据报文,所述第一设备的主用主控板将向所述第二设备发送的报文发送到与所述第二设备连接的第一接口包括:Wherein, the message is a data message, and the main control board of the first device sends the message sent to the second device to the first interface connected to the second device including:
所述第一设备的主用主控板将向所述第二设备发送的IPC报文封装为数据报文;The active main control board of the first device encapsulates the IPC message sent to the second device into a data message;
所述第一设备的主用主控板将所述数据报文发送到与所述第二设备连接的第一接口。The active main control board of the first device sends the data packet to the first interface connected to the second device.
其中,所述第一设备的主用主控板将向所述第二设备发送的报文发送到与所述第二设备连接的第一接口前还包括:Wherein, before the main main control board of the first device sends the message sent to the second device to the first interface connected to the second device, it further includes:
设置所述第一设备的第一IPC域,所述第一IPC域中包括多个IPC节点以及与所述第二设备对应的虚拟IPC节点;所述第一设备中的主用主控板、备用主控板以及每一业务板分别与所述第一IPC域中的一个IPC节点对应;Setting the first IPC domain of the first device, the first IPC domain includes a plurality of IPC nodes and virtual IPC nodes corresponding to the second device; the main main control board in the first device, The standby main control board and each service board are respectively corresponding to an IPC node in the first IPC domain;
设置所述第二设备的第二IPC域,所述第二IPC域中包括多个IPC节点以及与所述第一设备对应的虚拟IPC节点;所述第二设备中的主用主控板、备用主控板以及每一业务板分别与所述第二IPC域中的一个IPC节点对应。Setting the second IPC domain of the second device, the second IPC domain includes a plurality of IPC nodes and virtual IPC nodes corresponding to the first device; the main main control board in the second device, The standby main control board and each service board respectively correspond to an IPC node in the second IPC domain.
本发明还提供一种通信设备,作为第一设备应用于包括第一设备和第二设备的网络中,所述第一设备作为虚拟IPC节点位于所述第二设备的第二IPC域中,所述第二设备作为虚拟IPC节点位于所述第一设备的第一IPC域中,所述通信设备包括主用主控板和多个业务板:The present invention also provides a communication device, which is used as a first device in a network including a first device and a second device, and the first device is located in a second IPC domain of the second device as a virtual IPC node, so that The second device is located in the first IPC domain of the first device as a virtual IPC node, and the communication device includes an active main control board and multiple service boards:
主用主控板,用于将向所述第二设备发送的报文发送到与所述第二设备连接的第一接口,所述报文的源地址为所述主用主控板在所述第一IPC域中的IPC节点标识;The active main control board is configured to send the message sent to the second device to the first interface connected to the second device, and the source address of the message is the The IPC node identifier in the first IPC domain;
与所述第一接口对应的业务板,用于更改所述报文的源地址为所述第一设备在所述第二IPC域中的虚拟节点标识,并将所述报文转发到所述第二设备上第二接口所在的业务板。The service board corresponding to the first interface is configured to change the source address of the message to the virtual node identifier of the first device in the second IPC domain, and forward the message to the The service board where the second interface on the second device is located.
其中,所述主用主控板包括:Wherein, the main main control board includes:
报文封装单元,用于将向所述第二设备发送的IPC报文封装为数据报文;A message encapsulation unit, configured to encapsulate the IPC message sent to the second device into a data message;
报文发送单元,用于所述数据报文发送到与所述第二设备连接的第一接口。A message sending unit, configured to send the data message to the first interface connected to the second device.
其中,所述主用主控板还包括:Wherein, the main main control board also includes:
IPC域设置单元,用于设置所述第一设备的第一IPC域,所述第一IPC域中包括多个IPC节点以及与所述第二设备对应的虚拟IPC节点;所述第一设备中的主用主控板、备用主控板以及每一业务板分别与所述第一IPC域中的一个IPC节点对应。An IPC domain setting unit, configured to set a first IPC domain of the first device, where the first IPC domain includes a plurality of IPC nodes and virtual IPC nodes corresponding to the second device; in the first device The active main control board, the backup main control board and each service board correspond to an IPC node in the first IPC domain respectively.
本发明还提供一种通信设备,作为第二设备应用于包括第一设备和第二设备的网络中,所述第一设备作为虚拟IPC节点位于所述第二设备的第二IPC域中,所述第二设备作为虚拟IPC节点位于所述第一设备的第一IPC域中,所述通信设备包括主用主控板和多个业务板:The present invention also provides a communication device, which is used as a second device in a network including a first device and a second device, and the first device is located in the second IPC domain of the second device as a virtual IPC node, so that The second device is located in the first IPC domain of the first device as a virtual IPC node, and the communication device includes an active main control board and multiple service boards:
所述至少一块业务板,用于接收所述第一设备向本业务板上第二接口发送的报文,更改所述报文的源地址为所述第一设备在所述第二IPC域中的虚拟节点标识,并将所述报文向所述主用主控板发送;The at least one service board is configured to receive a message sent by the first device to the second interface on the service board, and change the source address of the message so that the first device is in the second IPC domain virtual node identifier, and send the message to the active main control board;
所述主用主控板,用于接收所述第二接口对应的业务板发送的所述报文。The active main control board is configured to receive the message sent by the service board corresponding to the second interface.
其中,所述主用主控板还包括:Wherein, the main main control board also includes:
IPC域设置单元,用于设置所述第二设备的第二IPC域,所述第二IPC域中包括多个IPC节点以及与所述第一设备对应的虚拟IPC节点;所述第二设备中的主用主控板、备用主控板以及每一业务板分别与所述第二IPC域中的一个IPC节点对应。An IPC domain setting unit, configured to set a second IPC domain of the second device, where the second IPC domain includes a plurality of IPC nodes and virtual IPC nodes corresponding to the first device; in the second device The active main control board, the standby main control board and each service board correspond to an IPC node in the second IPC domain respectively.
本发明还提供一种通信系统,包括分布式的第一设备和第二设备,所述第一设备作为虚拟IPC节点位于所述第二设备的第二IPC域中,所述第二设备作为虚拟IPC节点位于所述第一设备的第一IPC域中,The present invention also provides a communication system, including a distributed first device and a second device, the first device is located in the second IPC domain of the second device as a virtual IPC node, and the second device acts as a virtual the IPC node is located in the first IPC domain of the first device,
所述第一设备,用于通过主用主控板将向所述第二设备发送的报文发送到与所述第二设备连接的第一接口,所述报文的源地址为所述主用主控板在所述第一IPC域中的IPC节点标识;所述第一接口所在的业务板将所述报文转发到所述第二设备上第二接口所在的业务板;转发过程中,更改报文的源地址为所述第一设备在所述第二IPC域中的虚拟节点标识;The first device is configured to send the message sent to the second device to the first interface connected to the second device through the master main control board, and the source address of the message is the master Use the IPC node identifier of the main control board in the first IPC domain; the service board where the first interface is located forwards the message to the service board where the second interface on the second device is located; during the forwarding process changing the source address of the message to the virtual node identifier of the first device in the second IPC domain;
所述第二设备,用于通过所述第二接口所在的业务板,将所述报文发送到所述第二设备的主用主控板。The second device is configured to send the message to the active main control board of the second device through the service board where the second interface is located.
与现有技术相比,本发明具有以下优点:Compared with the prior art, the present invention has the following advantages:
通过使用本发明,将通信设备作为虚拟IPC节点加入到需要进行通信的对端通信设备的IPC域中,利用IPC域以及虚拟IP节点实现了分布式设备间基于IPC域的通信,节约了网络中的IP地址资源。By using the present invention, the communication device is added as a virtual IPC node into the IPC domain of the peer communication device that needs to communicate, and the IPC domain-based communication between distributed devices is realized by using the IPC domain and the virtual IP node, which saves network time. IP address resource.
附图说明 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.
图1A是现有技术中双机热备的组网示意图;FIG. 1A is a schematic diagram of a dual-system hot standby network in the prior art;
图1B是现有技术中在一台设备发生故障时双机热备的组网示意图;FIG. 1B is a schematic diagram of a dual-machine hot standby network in the prior art when a device fails;
图2是现有技术中双机会话备份过程中两台设备的连接示意图;Fig. 2 is a schematic diagram of the connection of two devices in the dual-machine session backup process in the prior art;
图3是本发明中分布式设备间的通信方法的流程图;3 is a flowchart of a communication method between distributed devices in the present invention;
图4是本发明中分布式设备的IPC节点和IPC节点号的示意图;Fig. 4 is the schematic diagram of the IPC node and IPC node number of distributed equipment among the present invention;
图5是本发明中分布式设备的无向图G的示意图;Fig. 5 is a schematic diagram of an undirected graph G of distributed equipment in the present invention;
图6是本发明中分布式设备的虚拟设备IPC节点和IPC节点号的示意图;Fig. 6 is the schematic diagram of virtual equipment IPC node and IPC node number of distributed equipment in the present invention;
图7是本发明中分布式设备的包含虚拟设备节点的无向图的示意图;Fig. 7 is an undirected graph containing virtual device nodes of distributed devices in the present invention schematic diagram;
图8是本发明中分布式设备间的热备接口和热备链路的示意图;Fig. 8 is a schematic diagram of a hot standby interface and a hot standby link between distributed devices in the present invention;
图9是本发明中设备A向设备B发送IPC报文的示意图;Fig. 9 is a schematic diagram of sending an IPC message from device A to device B in the present invention;
图10是本发明中设备A向设备B发送IPC报文的协议栈示意图;FIG. 10 is a schematic diagram of a protocol stack for sending an IPC message from device A to device B in the present invention;
图11是本发明中提供的通信系统的结构示意图;Fig. 11 is a schematic structural diagram of the communication system provided in the present invention;
图12是本发明中提供的通信系统中第一设备的结构示意图;Fig. 12 is a schematic structural diagram of the first device in the communication system provided in the present invention;
图13是本发明中提供的通信系统中第二设备的结构示意图。Fig. 13 is a schematic structural diagram of a second device in the communication system provided in 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 of the embodiments of the present invention, not all of them. 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.
本发明提供了一种分布式设备间的通信方法,应用于包括第一设备和第二设备的网络中,其中第一设备作为虚拟IPC(Inter-Process Communication,进程间通信)节点位于第二设备的第二IPC域中,而第二设备作为虚拟IPC节点位于第一设备的第一IPC域中,该通信方法如图3所示,包括:The present invention provides a communication method between distributed devices, which is applied in a network including a first device and a second device, wherein the first device is located in the second device as a virtual IPC (Inter-Process Communication) node In the second IPC domain of the first device, and the second device is located in the first IPC domain of the first device as a virtual IPC node, the communication method is shown in Figure 3, including:
步骤s301、第一设备的主用主控板将向第二设备发送的报文发送到与第二设备连接的第一接口,该报文的源地址为主用主控板在第一IPC域中的IPC节点标识。Step s301, the active main control board of the first device sends the message sent to the second device to the first interface connected to the second device, the source address of the message is the active main control board in the first IPC domain The IPC node ID in .
步骤s302、第一接口所在的业务板将该报文转发到第二设备上第二接口所在的业务板;转发过程中,更改报文的源地址为第一设备在第二IPC域中的虚拟节点标识。Step s302, the service board where the first interface is located forwards the message to the service board where the second interface is located on the second device; during the forwarding process, change the source address of the message to the virtual address of the first device in the second IPC domain. Node ID.
步骤s303、第二接口所在的业务板将该报文发送到第二设备的主用主控板。Step s303, the service board where the second interface is located sends the message to the active main control board of the second device.
对于第二设备的主用主控板将向第一设备发送的报文转发到第一设备的主用主控板的流程,与上述步骤s301~303描述的流程相似,在此不进行重复描述。For the process of the main main control board of the second device forwarding the message sent to the first device to the main main control board of the first device, it is similar to the process described in the above steps s301-303, and will not be repeated here. .
为了更清楚的描述本发明提供的分布式设备间的通信方法,以下首先对IPC的机制进行介绍。In order to more clearly describe the communication method between distributed devices provided by the present invention, the mechanism of IPC is firstly introduced below.
IPC是一种进程间可靠的通信机制,通过重传和报文确认等方法实现可靠传输。使用IPC进行通信的物理实体称作IPC节点。例如:一台分布式设备上的单板间使用IPC通信时,每块单板都是一个IPC节点。每个IPC节点可以对应一个数值编号,称作IPC节点号。一台包含6个IPC节点的分布式设备如图4所示。图4中括号内的数字表示IPC节点号,例如备用主控板的IPC节点号为1,主用主控板的IPC节点号为2,其他各业务板的IPC节点号分别为3至6。IPC is a reliable inter-process communication mechanism, which realizes reliable transmission through methods such as retransmission and message confirmation. Physical entities that communicate using IPC are called IPC nodes. For example, when IPC communication is used between boards on a distributed device, each board is an IPC node. Each IPC node may correspond to a numerical number, which is called an IPC node number. A distributed device including 6 IPC nodes is shown in Figure 4. The numbers in brackets in Figure 4 indicate the IPC node numbers. For example, the IPC node number of the standby main control board is 1, the IPC node number of the active main control board is 2, and the IPC node numbers of other service boards are 3 to 6 respectively.
IPC中一个重要的概念是IPC域:令集合A={a1,a2,......,am},若A满足如下条件:对任意的1≤i,j≤m,且i≠j,都有ai≠aj,则称A为一个IPC域,即IPC节点在同一个IPC域中的具有唯一性。由于设备需要根据IPC节点的IPC节点号判断IPC报文的来源,并以此为依据向报文的发送端对报文进行确认,因此要求ai≠aj。例如,图4所示的分布式设备的IPC域是A={1,2,3,4,5,6},其中各IPC节点的IPC节点号在该IPC域中的具有唯一性。An important concept in IPC is the IPC field: let the set A={a 1 , a 2 ,..., a m }, if A satisfies the following conditions: for any 1≤i, j≤m, and i≠j, all have a i ≠a j , then A is called an IPC domain, that is, the IPC nodes in the same IPC domain are unique. Because the device needs to determine the source of the IPC message according to the IPC node number of the IPC node, and confirm the message to the sender of the message based on this, it is required that a i ≠ a j . For example, the IPC domain of the distributed equipment shown in FIG. 4 is A={1, 2, 3, 4, 5, 6}, where the IPC node number of each IPC node is unique in the IPC domain.
IPC中一个重要的概念是IPC图:令无向图G={V,E},其中V是顶点集,E是边集。若无向图G满足如下条件:An important concept in IPC is the IPC graph: Let the undirected graph G={V, E}, where V is the set of vertices and E is the set of edges. If the undirected graph G satisfies the following conditions:
(1)V={v1,v2,......,vm},且vi对应ai(1≤i≤m);即IPC域A中的每个IPC节点在V中对应且仅对应一个顶点;(1) V={v 1 , v 2 ,..., v m }, and v i corresponds to a i (1≤i≤m); that is, every IPC node in IPC domain A is in V Corresponds to and only corresponds to one vertex;
(2)E={(vi,vj)|vi,vj∈V,其中i≠j,且满足IPC节点ai和aj之间可以进行IPC通信};(2) E={(v i , v j )|v i , v j ∈ V, where i≠j, and the IPC communication between the IPC nodes a i and a j is satisfied};
则称无向图G为IPC域A的IPC图。IPC域A内的任意两个IPC节点之间都可以进行IPC通信。图4所示的分布式设备的无向图G如图5所示。即逻辑上各IPC节点之间建立了全链接的IPC通信拓扑结构,任意两个IPC节点之间都可以进行IPC通信。Then the undirected graph G is called the IPC graph of the IPC domain A. IPC communication can be performed between any two IPC nodes in the IPC domain A. The undirected graph G of the distributed equipment shown in FIG. 4 is shown in FIG. 5 . That is, logically, a full-link IPC communication topology is established between IPC nodes, and IPC communication can be performed between any two IPC nodes.
具体的,在分布式设备的组网环境中,分布式设备的主用主控板控制会话数据的备份,通过将对端设备虚拟成一个IPC通信节点,代表对端设备的主用主控板,建立两台设备之间的IPC通信通道。对端设备所虚拟成的IPC节点被称为虚拟设备IPC节点,虚拟设备IPC节点对应的数值编号称作虚拟设备IPC节点号。以如图6所示的场景为例,设备A中备用主控板、主用主控板以及每一业务板上括号中标注的IPC节点号1~6表示设备A内部的IPC节点号,设备B上括号中标注的IPC节点号7表示设备A将对端设备B虚拟为虚拟设备IPC节点后,对应的虚拟设备IPC节点号。Specifically, in the networking environment of distributed devices, the main control board of the distributed device controls the backup of session data, and virtualizes the peer device into an IPC communication node, representing the master control board of the peer device , to establish an IPC communication channel between two devices. The IPC node virtualized by the peer device is called a virtual device IPC node, and the numerical number corresponding to the virtual device IPC node is called a virtual device IPC node number. Taking the scenario shown in Figure 6 as an example, the
设集合A={a1,a2,...,am}表示设备A的IPC域。am+1表示虚拟设备IPC节点。令集合
令无向图G={V,E}是设备A的IPC域A的IPC图,令无向图
由上述G的性质,可知具有如下性质:From the above properties of G, we can know Has the following properties:
以图6中所示的设备A为例,设备A的如图7所示。其中7是虚拟设备IPC节点号,对应作为虚拟设备IPC节点的对端设备B,其可以与IPC节点号为2的IPC节点(对应设备A中的业务板)通信。Taking the device A shown in Figure 6 as an example, the As shown in Figure 7. Where 7 is the virtual device IPC node number, corresponding to the peer device B as the virtual device IPC node, which can communicate with the IPC node whose IPC node number is 2 (corresponding to the service board in device A).
本发明提供的方法中,为了在设备A和设备B之间传递报文,需要建立一条报文的传送通道,因此可以使用设备A的物理接口和设备B的物理端口相互连接。为了方便描述,将上述设备A上的与设备B连接的物理接口(以下称为第一接口)、以及设备B上的与设备A连接的物理端口(以下称为第二接口)称为热备接口,第一接口与第二接口之间的物理传送通道称为备份链路。热备接口与备份链路的示意图如图8所示。In the method provided by the present invention, in order to transfer messages between device A and device B, a message transmission channel needs to be established, so the physical interface of device A and the physical port of device B can be used to connect to each other. For the convenience of description, the physical interface (hereinafter referred to as the first interface) on the above-mentioned device A connected to the device B, and the physical port on the device B connected to the device A (hereinafter referred to as the second interface) are called hot standby interface, the physical transmission channel between the first interface and the second interface is called a backup link. A schematic diagram of a hot standby interface and a backup link is shown in FIG. 8 .
基于上述介绍,本发明的应用场景中,令集合
步骤s901,设备A的主用主控板将发往设备B的IPC报文封装成数据报文,并透传到设备A的热备接口所在的业务板。In step s901, the active main control board of device A encapsulates the IPC message sent to device B into a data message, and transparently transmits it to the service board where the hot standby interface of device A is located.
步骤s902,设备A的热备接口将数据报文中IPC源节点号从a1修改为bn+1后,转发到设备B的热备接口。In step s902, the hot standby interface of device A modifies the IPC source node number in the data message from a 1 to b n+1 , and then forwards it to the hot standby interface of device B.
步骤s903,设备B的热备接口所在的业务板将数据报文转发到设备B的主用主控板,由设备B的主用主控板将数据报文解封装为IPC报文后进行相应的处理。Step s903, the service board where the hot standby interface of device B is located forwards the data message to the active main control board of device B, and the active main control board of device B decapsulates the data message into an IPC message and performs corresponding processing.
或者发送IPC报文的流程包括以下步骤:Or the process of sending the IPC message includes the following steps:
步骤s901,设备A的主用主控板将发往设备B的IPC报文封装成数据报文,并透传到设备A的热备接口所在的业务板。In step s901, the active main control board of device A encapsulates the IPC message sent to device B into a data message, and transparently transmits it to the service board where the hot standby interface of device A is located.
步骤s902,设备A的热备接口将数据报文转发到设备B的热备接口。In step s902, the hot standby interface of device A forwards the data message to the hot standby interface of device B.
步骤s903,设备B的热备接口所在的业务板接收到数据报文后,将数据报文中IPC源节点号从a1修改成bn+1,并将数据报文转发到设备B的主用主控板,由设备B的主用主控板将数据报文解封装为IPC报文后进行相应的处理。Step s903, after receiving the data message, the service board where the hot standby interface of device B is located changes the IPC source node number in the data message from a 1 to b n+1 , and forwards the data message to the master node of device B. Using the main control board, the main main control board of device B decapsulates the data message into an IPC message and performs corresponding processing.
如图10所示,报文发送过程中涉及到的协议栈包括:As shown in Figure 10, the protocol stack involved in the message sending process includes:
在设备A的主用主控板中的应用层APP中,生成应用层的数据IPCD(IPCData);在设备A的主用主控板中的IPC层中将应用层的数据IPCD前封装IPC报文头IPCH(IPC Header),其中IPC源节点号SID(Source ID)为a1;在设备A的主用主控板中的链路层Link中封装链路层头LH(Link Head)。Generate application layer data IPCD (IPCData) in the application layer APP on the master main control board of device A; encapsulate the application layer data IPCD (IPCData) before encapsulating the IPC data in the IPC layer on the master main control board of device A IPCH (IPC Header), wherein the IPC source node number SID (Source ID) is a 1 ; the link layer header LH (Link Head) is encapsulated in the link layer Link of the active main control board of device A.
对比上述不同的流程可以发现,报文到达设备B的业务板后,IPC源节点号SID(Source ID)从a1修改成bn+1,该修改可以由设备A的业务板实施,也可以由设备B的业务板实施。报文到达设备B的主用主控板后,经过逐层解封装最终得到应用层的数据IPCD,设备B的主用主控板获得该应用层的数据IPCD后即可进行相应的处理。Comparing the above different processes, it can be found that after the message reaches the service board of device B, the IPC source node number SID (Source ID) is changed from a 1 to b n+1 . This modification can be implemented by the service board of device A, or Implemented by the service board of device B. After the message arrives at the main control board of device B, the data IPCD of the application layer is finally obtained through layer-by-layer decapsulation, and the main control board of device B can perform corresponding processing after obtaining the data IPCD of the application layer.
另外,在上述应用场景中,主用主控板担任两种IPC节点角色,以设备A的主用主控板为例:其同时作为(1)设备A的主用主控板IPC节点a1;(2)设备B的虚拟IPC节点bn+1。在IPC支持组播的情况下,一份报文多个接收者时:例如IPC节点a1发送的建链报文,目的地是包含虚拟IPC节点am+1的组播组。对IPC节点a1的IPC建链报文的源节点:若不将a1修改为bn+1,则IPC域B不能对建链报文进行正确应答,导致建链不成功;若将a1修改为bn+1,则IPC域A内的其他节点不能正确应答,导致建链不成功;若a1将建链报文分两类发送(一类发向虚拟节点am+1,另一类发向域A内的其他节点的),则增加了IPC协议的复杂性,失去的组播的优势。In addition, in the above application scenarios, the main main control board plays two roles of IPC nodes. Take the main main control board of device A as an example: it also serves as (1) the main main control board of device A IPC node a 1 ; (2) Virtual IPC node b n+1 of device B. In the case that the IPC supports multicast, when a message has multiple recipients: for example, the link establishment message sent by the IPC node a 1 is destined for the multicast group including the virtual IPC node a m+1 . For the source node of the IPC link building message of IPC node a 1 : if a 1 is not changed to b n+1 , the IPC domain B cannot correctly respond to the link building message, resulting in unsuccessful link building; if a 1 is changed to b n+1 , other nodes in the IPC domain A cannot respond correctly, resulting in unsuccessful link establishment; if a1 sends the link establishment message in two categories (one is sent to the virtual node a m+1 , the other One class is sent to other nodes in domain A), which increases the complexity of the IPC protocol and loses the advantage of multicast.
因此,在本发明的上述图9和图10的流程中,在设备A的业务板将报文向设备B的业务板发送时“将数据报文中IPC源节点号从a1修改成bn+1”、或设备B的业务板接收到设备A的业务板发送的报文时“将数据报文中IPC源节点号从a1修改成bn+1”,均可以有效的避免上述问题。对于该修改时机,也可以描述为在报文跨域转发时(即从IPC域A的热备接口发送、从IPC域B的热备接口接收),是进行IPC源节点修改的合适时机。Therefore, in the process of the above-mentioned Fig. 9 and Fig. 10 of the present invention, when the service board of device A sends the message to the service board of device B, "modify the IPC source node number in the data message from a 1 to b n +1 ", or when the service board of device B receives the message sent by the service board of device A, "change the IPC source node number in the data message from a 1 to b n+1 ", which can effectively avoid the above problems . The timing of the modification can also be described as when the message is forwarded across domains (that is, sent from the hot standby interface of IPC domain A and received from the hot standby interface of IPC domain B), it is an appropriate time to modify the IPC source node.
通过使用本发明提供的方法,将通信设备作为虚拟IPC节点加入到需要进行通信的对端通信设备的IPC域中,利用IPC域以及虚拟IP节点实现了分布式设备间基于IPC域的通信,节约了网络中的IP地址资源。By using the method provided by the present invention, the communication device is added as a virtual IPC node to the IPC domain of the peer communication device that needs to communicate, and the IPC domain and the virtual IP node are used to realize the communication between distributed devices based on the IPC domain, saving IP address resource in the network.
本发明还提供一种通信系统,如图11所示,包括分布式的第一设备10和第二设备20。其中,第一设备10作为虚拟IPC节点位于第二设备20的第二IPC域中,第二设备20作为虚拟IPC节点位于第一设备10的第一IPC域中。The present invention also provides a communication system, as shown in FIG. 11 , including distributed
第一设备10,用于通过主用主控板将向第二设备20发送的报文发送到与第二设备20连接的第一接口,报文的源地址为第一设备10的主用主控板在第一IPC域中的IPC节点标识;第一接口所在的业务板将该报文转发到第二设备20上第二接口所在的业务板;转发过程中,更改报文的源地址为第一设备10在第二IPC域中的虚拟节点标识。The
第二设备20,用于通过所述第二接口所在的业务板,将报文发送到第二设备20的主用主控板。上述更改报文的源地址为第一设备10在第二IPC域中的虚拟节点标识的操作,可以由第一设备10上第一接口所在的业务板、或第二设备20上第二接口所在的业务板实施。The
具体的,本发明还提供一种通信设备,作为上述图10中所示的第一设备10,如图11所示,该第一设备包括主用主控板11和多个业务板12,其中:Specifically, the present invention also provides a communication device as the
主用主控板11,用于将向第二设备20发送的报文发送到与第二设备连接的第一接口,该报文的源地址为主用主控板11在第一IPC域中的IPC节点标识;The active
与所述第一接口对应的业务板12,用于更改报文的源地址为第一设备10在第二IPC域中的虚拟节点标识,并将该报文转发到第二设备20上第二接口所在的业务板。The
其中,上述主用主控板11可以进一步包括:Wherein, the above-mentioned master
报文封装单元111,用于将向第二设备20发送的IPC报文封装为数据报文,该报文的源地址为主用主控板11在第一IPC域中的IPC节点标识;The
报文发送单元112,用于将报文封装单元111封装得到的数据报文发送到与第二设备20连接的第一接口。The
IPC域设置单元113,用于设置第一设备10的第一IPC域,第一IPC域中包括多个IPC节点以及与第二设备20对应的虚拟IPC节点;第一设备中的主用主控板11、备用主控板以及每一业务板12分别与第一IPC域中的一个IPC节点对应。The IPC
具体的,本发明还提供一种通信设备,作为上述图10中所示的第二设备20,如图12所示,该第二设备包括主用主控板21和多个业务板22,其中Specifically, the present invention also provides a communication device as the
至少一块业务板22,用于接收第一设备10向本业务板22上第二接口发送的报文,更改该报文的源地址为第一设备10在第二IPC域中的虚拟节点标识,并将该报文向主用主控板21发送;At least one service board 22 is used to receive the message sent by the
主用主控板21,用于接收第二接口对应的业务板22发送的报文。The active main control board 21 is configured to receive the message sent by the service board 22 corresponding to the second interface.
该主用主控板21还可以包括:The main main control board 21 may also include:
IPC域设置单元211,用于设置第二设备20的第二IPC域,第二IPC域中包括多个IPC节点以及与第一设备10对应的虚拟IPC节点;第二设备中的主用主控板21、备用主控板以及每一业务板分别与第二IPC域中的一个IPC节点对应。The IPC domain setting unit 211 is configured to set the second IPC domain of the
通过使用本发明提供的上述系统和设备,将通信设备作为虚拟IPC节点加入到需要进行通信的对端通信设备的IPC域中,利用IPC域以及虚拟IP节点实现了分布式设备间基于IPC域的通信,节约了网络中的IP地址资源。By using the above-mentioned system and device provided by the present invention, the communication device is added as a virtual IPC node to the IPC domain of the peer communication device that needs to communicate, and the IPC domain-based communication between distributed devices is realized by using the IPC domain and the virtual IP node. Communication saves IP address resources in the network.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可以通过硬件实现,也可以借助软件加必要的通用硬件平台的方式来实现。基于这样的理解,本发明的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the present invention can be realized by hardware, or by software plus a necessary general hardware platform. Based on this understanding, the technical solution of the present invention can be embodied in the form of software products, which can be stored in a non-volatile storage medium (which can be CD-ROM, U disk, mobile hard disk, etc.), including several The instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute the methods described in various embodiments of the present invention.
本领域技术人员可以理解附图只是一个优选实施例的示意图,附图中的单元或流程并不一定是实施本发明所必须的。Those skilled in the art can understand that the drawing is only a schematic diagram of a preferred embodiment, and the units or processes in the drawing are not necessarily necessary for implementing the present invention.
本领域技术人员可以理解实施例中的装置中的单元可以按照实施例描述进行分布于实施例的装置中,也可以进行相应变化位于不同于本实施例的一个或多个装置中。上述实施例的单元可以合并为一个单元,也可以进一步拆分成多个子单元。Those skilled in the art can understand that the units in the device in the embodiment can be distributed in the device in the embodiment according to the description in the embodiment, and can also be changed and located in one or more devices different from the device in the embodiment. The units in the above embodiments can be combined into one unit, and can also be further divided into multiple subunits.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100093503A CN101510901B (en) | 2009-02-19 | 2009-02-19 | Communication method, communication apparatus and system between distributed equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100093503A CN101510901B (en) | 2009-02-19 | 2009-02-19 | Communication method, communication apparatus and system between distributed equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101510901A CN101510901A (en) | 2009-08-19 |
CN101510901B true CN101510901B (en) | 2011-11-16 |
Family
ID=41003164
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009100093503A Expired - Fee Related CN101510901B (en) | 2009-02-19 | 2009-02-19 | Communication method, communication apparatus and system between distributed equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101510901B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102904787A (en) * | 2011-07-27 | 2013-01-30 | 中兴通讯股份有限公司 | Method and device for local bus bridging and data transmission |
CN104184707B (en) * | 2013-05-24 | 2017-10-03 | 北京瑞星信息技术股份有限公司 | Anti-virus method, the apparatus and system of the double outlet Star Networks of double-core |
CN105426260B (en) * | 2015-10-30 | 2018-08-21 | 北京航天自动控制研究所 | A transparent inter-process communication system and method supporting distributed systems |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002028048A2 (en) * | 2000-09-28 | 2002-04-04 | Telefonaktiebolaget L M Ericsson (Publ) | Virtual ip framework and interfacing method |
CN1620068A (en) * | 2003-11-20 | 2005-05-25 | 韩国电子通信研究院 | Link aggregation apparatus and method |
-
2009
- 2009-02-19 CN CN2009100093503A patent/CN101510901B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002028048A2 (en) * | 2000-09-28 | 2002-04-04 | Telefonaktiebolaget L M Ericsson (Publ) | Virtual ip framework and interfacing method |
CN1620068A (en) * | 2003-11-20 | 2005-05-25 | 韩国电子通信研究院 | Link aggregation apparatus and method |
Also Published As
Publication number | Publication date |
---|---|
CN101510901A (en) | 2009-08-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10813154B2 (en) | Enabling interface aggregation of mobile broadband network interfaces | |
CN103580880B (en) | Method, equipment and system abnormal a kind of fast notification CGN | |
CN105933198A (en) | Device for establishing direct connection VPN tunnel | |
CN101729543A (en) | Method for improving performance of mobile SSL VPN by utilizing remote Socks5 technology | |
CN113364660B (en) | Data packet processing method and device in LVS load balancing | |
CN114885443B (en) | Multi-mode network control system and method supporting mobile access of terminal | |
CN115348108A (en) | Method and apparatus for maintaining an internet protocol secure tunnel | |
CN104993993A (en) | Message processing method, device, and system | |
CN103973555A (en) | GRE protocol tunnel building method, communication device and communication system | |
CN105915662B (en) | A data transmission method and device | |
CN102244687B (en) | Method, device and system for acquiring multi-address message | |
CN101510901B (en) | Communication method, communication apparatus and system between distributed equipment | |
CN101309169A (en) | A network management method, network management system, and network equipment | |
CN104468389A (en) | Message processing method, servers and server system | |
CN109120556B (en) | A kind of method and system of cloud host access object storage server | |
CN104579809B (en) | The detection method and equipment of a kind of stacking splitting | |
CN102857574B (en) | Information processing method and apparatus for Internet of Things | |
CN102685218A (en) | Method and system for reporting and downloading information | |
CN1917512B (en) | Method for establishing direct connected peer-to-peer channel | |
CN102710644A (en) | Method and device for saving bandwidth in internet protocol (IP) monitoring system | |
CN113542395B (en) | Message processing method and message processing system | |
CN109120578B (en) | Method and device for realizing link connection processing | |
CN109039680B (en) | A method, system and BNG for switching main broadband network gateway BNG and standby BNG | |
CN112887185B (en) | Communication method and device of overlay network | |
CN102497303B (en) | IGRS (Intelligent Group and Resource Sharing) equipment interconnection system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Patentee after: NEW H3C TECHNOLOGIES Co.,Ltd. Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base Patentee before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20111116 |