CN109617778B - Method, device and system for realizing cross-domain two-layer network service - Google Patents
Method, device and system for realizing cross-domain two-layer network service Download PDFInfo
- Publication number
- CN109617778B CN109617778B CN201811395151.6A CN201811395151A CN109617778B CN 109617778 B CN109617778 B CN 109617778B CN 201811395151 A CN201811395151 A CN 201811395151A CN 109617778 B CN109617778 B CN 109617778B
- Authority
- CN
- China
- Prior art keywords
- local area
- tunnel
- message
- information
- area network
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明实施例提供一种跨域二层网络业务的实现方法、装置和系统,该方法包括:集中控制器获取多个隧道服务器的链路状态信息,其中,多个隧道服务器分布式部署于多个局域网中,每个隧道服务器与相应局域网的本地网关相连;集中控制器根据多个隧道服务器的链路状态信息,确定待传输报文的传输路径信息;集中控制器将待传输报文的传输路径信息发送至相应局域网的本地网关,以便本地网关根据集中控制器确定的传输路径信息将待传输报文发送至接收待传输报文的局域网的隧道服务器。本申请采用分布式部署于多个局域网的多个隧道服务器和本地网关,可以自动选取最优路径传输报文,从而提升网络质量、增强用户体验。
Embodiments of the present invention provide a method, device, and system for implementing a cross-domain Layer 2 network service. The method includes: a centralized controller acquires link state information of multiple tunnel servers, wherein the multiple tunnel servers are distributed in multiple locations. In each local area network, each tunnel server is connected to the local gateway of the corresponding local area network; the centralized controller determines the transmission path information of the to-be-transmitted message according to the link state information of the multiple tunnel servers; The path information is sent to the local gateway of the corresponding local area network, so that the local gateway sends the to-be-transmitted message to the tunnel server of the local area network that receives the to-be-transmitted message according to the transmission path information determined by the centralized controller. The present application adopts multiple tunnel servers and local gateways distributed in multiple local area networks, and can automatically select an optimal path to transmit packets, thereby improving network quality and enhancing user experience.
Description
技术领域technical field
本发明涉及通信领域,尤其涉及一种跨域二层网络业务的实现方法、装置和系统。The present invention relates to the field of communications, and in particular, to a method, device and system for implementing a cross-domain layer-two network service.
背景技术Background technique
中大型企业通常有多个跨地域的办公中心,通常这些跨地域办公中心间需要能够像局域网一样互相访问,即存在跨地域的大二层组网需求。Medium and large enterprises usually have multiple cross-regional office centers. Usually, these cross-regional office centers need to be able to access each other like a local area network, that is, there is a need for cross-regional Layer 2 networking.
为了实现大二层组网,通常在各个办公中心的网络出口处增加一个网元,该网元与其他办公中心的网络出口处的网元设备间建立隧道,在该隧道上传输企业内的二层报文(即数据链路层的数据帧)。例如,当企业使用LTE移动技术组网时,该网元设备可以为CPE(Customer Premise Equipment,客户端设备)。图1示出了一种常规的L2业务(即数据链路层业务)实现方法,如图1所示,通常有一个集中的LNS(L2TP Network Server,采用二层通道协议的网络服务器),该LNS的一端与企业总部的局域网相连,另一端与企业各个办公中心的CPE相连。In order to realize the large-scale Layer 2 networking, an NE is usually added at the network exit of each office center, and a tunnel is established between this NE and the network element equipment at the network exit of other office centers, and the two network elements in the enterprise are transmitted over the tunnel. Layer messages (that is, data frames at the data link layer). For example, when the enterprise uses the LTE mobile technology to form a network, the network element device may be a CPE (Customer Premise Equipment, client device). Figure 1 shows a conventional L2 service (ie, data link layer service) implementation method. As shown in Figure 1, there is usually a centralized LNS (L2TP Network Server, a network server using a Layer 2 channel protocol), which One end of the LNS is connected to the LAN of the enterprise headquarters, and the other end is connected to the CPE of each office center of the enterprise.
其中,在每个办公中心的CPE与LNS间建立IP隧道,当企业分支1下的PC1要与企业分支2下的PC5通信的情况下,报文需要先经过企业分支1中的CPE,由CPE封装成隧道报文传输至LNS,LNS将其解封装后转发至总部的Intranet(即内联网),经过Intranet交换发现是需要转发至企业分支2的PC5,则再将该报文发送至LNS,LNS再对该报文进行隧道封装,隧道对端为企业分支2的CPE,企业分支2的CPE收到后将该隧道报文解封装后发送对应的PC5。Among them, an IP tunnel is established between the CPE and LNS of each office center. When PC1 under enterprise branch 1 wants to communicate with PC5 under enterprise branch 2, the packets need to pass through the CPE in enterprise branch 1 first, and then the CPE The packet is encapsulated into a tunnel and transmitted to the LNS. The LNS decapsulates it and forwards it to the Intranet of the headquarters (that is, the intranet). After intranet switching, it is found that it needs to be forwarded to PC5 of enterprise branch 2, and then the packet is sent to the LNS. The LNS then performs tunnel encapsulation on the packet, and the peer end of the tunnel is the CPE of enterprise branch 2. After receiving the packet, the CPE of enterprise branch 2 decapsulates the tunnel packet and sends it to the corresponding PC5.
需要说明的是,LNS作为隧道服务器,一方面用于接收来自移动网络侧(即各个企业分支)的隧道报文,将隧道报文解封装后转发至企业总部的局域网,另一方面接收来自于企业总部局域网的报文,执行隧道加封装后转发至隧道另一端(CPE)。It should be noted that, as a tunnel server, the LNS is used to receive tunnel packets from the mobile network side (that is, each enterprise branch) on the one hand, decapsulate the tunnel packets and forward them to the local area network of the enterprise headquarters, and on the other hand receive tunnel packets from Packets on the LAN of the corporate headquarters are forwarded to the other end of the tunnel (CPE) after encapsulation through the tunnel.
可以看出,这种集中部署方式存在如下不足:(1)集中LNS的负荷较重,需要处理所有的隧道报文,包括隧道报文的封装与解封装,其中,来自企业总部局域网的二层报文,是广播式的,LNS会将该报文封装成隧道报文后转发给所有企业分支的CPE;(2)一旦集中部署的LNS故障,会导致全部的L2网络业务中断;(3)集中转发,存在大量的绕路,加重了网络负载,增加了网络传输时延。It can be seen that this centralized deployment method has the following shortcomings: (1) The centralized LNS has a heavy load and needs to process all tunnel packets, including the encapsulation and decapsulation of tunnel packets. The packet is broadcast, and the LNS will encapsulate the packet into a tunnel packet and forward it to the CPEs of all enterprise branches; (2) Once the centrally deployed LNS fails, all L2 network services will be interrupted; (3) In centralized forwarding, there are a large number of detours, which increases the network load and increases the network transmission delay.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本发明实施例提供一种跨域二层网络业务的实现方法、装置和系统,用以提高网络可靠性和传输效率、降低网络传输时延,从而提升用户体验。In view of this, the embodiments of the present invention provide a method, device and system for implementing a cross-domain Layer 2 network service, so as to improve network reliability and transmission efficiency, reduce network transmission delay, and thereby improve user experience.
第一方面,本发明实施例提供一种跨域二层网络业务的实现方法,包括:In a first aspect, an embodiment of the present invention provides a method for implementing a cross-domain Layer 2 network service, including:
集中控制器获取多个隧道服务器的链路状态信息,其中,多个隧道服务器分布式部署于多个局域网中,用于建立任意两个局域网间的隧道,每个隧道服务器与相应局域网的本地网关相连;The centralized controller obtains the link state information of multiple tunnel servers, wherein the multiple tunnel servers are distributed and deployed in multiple local area networks to establish a tunnel between any two local area networks. Each tunnel server is connected to the local gateway of the corresponding local area network. connected;
集中控制器根据多个隧道服务器的链路状态信息,确定待传输报文的传输路径信息,其中,待传输报文为多个局域网中任意一个局域网向其他局域网传输的报文,传输路径信息至少包括:接收待传输报文的局域网的隧道服务器的地址信息;The centralized controller determines the transmission path information of the to-be-transmitted packet according to the link state information of the multiple tunnel servers, wherein the to-be-transmitted packet is a packet transmitted from any one of the multiple local area networks to other local area networks, and the transmission path information is at least Including: address information of the tunnel server of the local area network that receives the message to be transmitted;
集中控制器将待传输报文的传输路径信息发送至相应局域网的本地网关,其中,相应局域网的本地网关根据集中控制器确定的传输路径信息将待传输报文发送至接收待传输报文的局域网的隧道服务器。The centralized controller sends the transmission path information of the message to be transmitted to the local gateway of the corresponding local area network, wherein the local gateway of the corresponding local area network sends the message to be transmitted to the local area network receiving the message to be transmitted according to the transmission path information determined by the centralized controller tunnel server.
第二方面,本发明实施例提供一种跨域二层网络业务的实现系统,包括:In a second aspect, an embodiment of the present invention provides a system for implementing a cross-domain Layer 2 network service, including:
多个隧道服务器,分布式部署于多个局域网中,用于建立任意两个局域网间的隧道;Multiple tunnel servers, distributed in multiple LANs, are used to establish tunnels between any two LANs;
多个本地网关,分布式部署于多个局域网中,与相应局域网的隧道服务器相连;Multiple local gateways, distributed in multiple LANs, connected to tunnel servers in corresponding LANs;
集中控制器,与多个本地网关和隧道服务器分别相连,用于获取多个隧道服务器的链路状态信息,根据多个隧道服务器的链路状态信息,确定待传输报文的传输路径信息,并将待传输报文的传输路径信息发送至相应局域网的本地网关,其中,待传输报文为多个局域网中任意一个局域网向其他局域网传输的报文,传输路径信息至少包括:接收待传输报文的局域网的隧道服务器的地址信息;The centralized controller is connected to multiple local gateways and tunnel servers respectively, and is used to obtain the link state information of multiple tunnel servers, determine the transmission path information of the to-be-transmitted packets according to the link state information of multiple tunnel servers, and Send the transmission path information of the message to be transmitted to the local gateway of the corresponding local area network, wherein the message to be transmitted is a message transmitted from any one of the multiple local area networks to other local area networks, and the transmission path information at least includes: receiving the message to be transmitted address information of the tunnel server of the local area network;
其中,相应局域网的本地网关根据集中控制器确定的传输路径信息将待传输报文发送至接收待传输报文的局域网的隧道服务器。The local gateway of the corresponding local area network sends the message to be transmitted to the tunnel server of the local area network that receives the message to be transmitted according to the transmission path information determined by the centralized controller.
第二方面,本发明实施例提供一种跨域二层网络业务的实现装置,包括:In a second aspect, an embodiment of the present invention provides a device for implementing a cross-domain Layer 2 network service, including:
链路状态信息获取模块,用于获取多个隧道服务器的链路状态信息,其中,多个隧道服务器分布式部署于多个局域网中,用于建立任意两个局域网间的隧道,每个隧道服务器与相应局域网的本地网关相连;The link state information acquisition module is used to acquire the link state information of multiple tunnel servers, wherein the multiple tunnel servers are distributed and deployed in multiple local area networks, and are used to establish a tunnel between any two local area networks. Connect to the local gateway of the corresponding local area network;
传输路径确定模块,用于根据多个隧道服务器的链路状态信息,确定待传输报文的传输路径信息,其中,待传输报文为多个局域网中任意一个局域网向其他局域网传输的报文,传输路径信息至少包括:接收待传输报文的局域网的隧道服务器的地址信息;The transmission path determination module is used to determine the transmission path information of the to-be-transmitted packet according to the link state information of the multiple tunnel servers, wherein the to-be-transmitted packet is a packet transmitted from any one of the multiple local area networks to other local area networks, The transmission path information at least includes: address information of the tunnel server of the local area network that receives the message to be transmitted;
报文传输模块,用于将待传输报文的传输路径信息发送至相应局域网的本地网关,其中,相应局域网的本地网关根据确定的传输路径信息将待传输报文发送至接收待传输报文的局域网的隧道服务器The message transmission module is used to send the transmission path information of the to-be-transmitted message to the local gateway of the corresponding local area network, wherein the local gateway of the corresponding local area network sends the to-be-transmitted message to the receiver that receives the to-be-transmitted message according to the determined transmission path information. Tunnel server for LAN
第三方面,本发明实施例提供一种电子设备,包括处理器和存储器,所述存储器用于存储一条或多条计算机指令,其中,所述一条或多条计算机指令被所述处理器执行时实现上述第一方面中的跨域二层网络业务的实现方法。该电子设备还可以包括通信接口,用于与其他设备或通信网络通信。In a third aspect, embodiments of the present invention provide an electronic device, including a processor and a memory, where the memory is configured to store one or more computer instructions, wherein when the one or more computer instructions are executed by the processor An implementation method for implementing the cross-domain Layer 2 network service in the first aspect. The electronic device may also include a communication interface for communicating with other devices or a communication network.
本发明实施例提供了一种计算机存储介质,用于储存计算机程序,所述计算机程序使计算机执行时实现上述第一方面中的跨域二层网络业务的实现方法。An embodiment of the present invention provides a computer storage medium for storing a computer program, and the computer program enables a computer to implement the method for implementing the cross-domain Layer 2 network service in the first aspect above.
本发明实施例提供的跨域二层网络业务的实现方法,采用分布式部署的方式,在需要实现跨域连通的多个局域网中部署多个隧道服务器和本地网关,与每个局域网的本地网关相连的集中控制器,通过每个局域网的本地网关探测相应局域网的隧道服务器的链路状态信息,或者与每个局域网的隧道服务器相连,直接获取每个局域网的隧道服务器上报的自身的链路状态信息,然后根据获取到的每个局域网的隧道服务器的链路状态信息,确定待传输报文的传输路径信息。容易注意的是,获取到的每个隧道服务器链路状态信息包括但不限于每个隧道服务器的位置信息、容量信息、运行状态、时延信息、链路带宽、负载信息。其中,在根据每个隧道服务器的链路状态信息确定传输路径时,可以根据实际情况,选取不同的参数权重,来计算得到传输待传输报文最适合的传输路径。The method for implementing a cross-domain Layer 2 network service provided by the embodiment of the present invention adopts a distributed deployment method, and deploys multiple tunnel servers and local gateways in multiple local area networks that need to realize cross-domain connectivity, and is connected with the local gateway of each local area network. The connected centralized controller detects the link status information of the tunnel server of the corresponding LAN through the local gateway of each LAN, or connects with the tunnel server of each LAN, and directly obtains its own link status reported by the tunnel server of each LAN information, and then determine the transmission path information of the to-be-transmitted packet according to the acquired link state information of the tunnel server of each local area network. It is easy to note that the acquired link status information of each tunnel server includes but is not limited to the location information, capacity information, running status, delay information, link bandwidth, and load information of each tunnel server. Wherein, when determining the transmission path according to the link state information of each tunnel server, different parameter weights may be selected according to the actual situation to calculate the most suitable transmission path for transmitting the to-be-transmitted message.
当需要跨域连通的多个局域网中的任意一个局域网需要向另一个局域网发送报文的时候,可以向集中控制器发送路径请求,以获取传输该报文最适合的传输路径,进而以最合适的传输路径传输报文。When any one of the multiple local area networks that needs to be connected across domains needs to send a message to another local area network, it can send a path request to the centralized controller to obtain the most suitable transmission path for transmitting the message, and then use the most suitable transmission path. The transmission path transmits the message.
与传统集中部署隧道服务器的方式相比,本申请采用分布式部署的多个隧道服务器可以动态调整传输路径,且避免了集中集部署的隧道服务器故障,会导致全部的网络业务中断的风险。无需集中转发,减少了绕路,降低了网络传输时延,大大提升了网络质量,增强了用户体验。Compared with the traditional way of centrally deploying tunnel servers, the present application adopts multiple tunnel servers deployed in a distributed manner to dynamically adjust the transmission path, and avoids the risk of interruption of all network services due to failure of the centrally deployed tunnel servers. There is no need for centralized forwarding, which reduces detours, reduces network transmission delay, greatly improves network quality, and enhances user experience.
需要说明的是,本申请提到的隧道服务器可以为L2TP网络服务器(L2TP NetworkServer,LNS);本地网关可以是EPC(Evolved Packet Core)的分组数据网关PGW(PDNGateway,即Packet Data Network Gateway),或者是共置部署的SGW(Serving Gateway)及PGW,其中,PGW作为移动网络的出口网关,分布式部署时靠近eNodeB一侧,或者与eNodeB共置部署,可以将客户端设备(Customer Premise Equipment,CPE)的L3(layer 3,即网络层)数据报文转发至互联网Internet,或者将L2(layer 2,即数据链路层)隧道报文转发至LNS,由于靠近无线侧(eNodeB),下文称之为LGW(Local Gateway)。It should be noted that the tunnel server mentioned in this application may be an L2TP network server (L2TP Network Server, LNS); the local gateway may be a packet data gateway PGW (PDNGateway, namely Packet Data Network Gateway) of EPC (Evolved Packet Core), or The SGW (Serving Gateway) and the PGW are co-located and deployed. The PGW, as the egress gateway of the mobile network, is close to the eNodeB side during distributed deployment, or is co-located with the eNodeB. ) of the L3 (layer 3, that is, the network layer) data packets are forwarded to the Internet, or the L2 (layer 2, that is, the data link layer) tunnel packets are forwarded to the LNS, because they are close to the wireless side (eNodeB), hereinafter referred to as It is LGW (Local Gateway).
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.
图1为一种常规的L2业务实现原理示意图;1 is a schematic diagram of a conventional L2 service implementation principle;
图2为本发明实施例提供的一种跨域二层网络业务的实现系统示意图;2 is a schematic diagram of a system for implementing a cross-domain Layer 2 network service according to an embodiment of the present invention;
图3为本发明实施例提供的一种跨域二层网络业务的实现方法流程图;3 is a flowchart of a method for implementing a cross-domain Layer 2 network service according to an embodiment of the present invention;
图4为本发明实施例提供的一种可选的跨域二层网络业务的实现方法流程图;4 is a flowchart of an optional implementation method of a cross-domain Layer 2 network service provided by an embodiment of the present invention;
图5为本发明实施例提供的一种可选的跨域二层网络业务的实现方法流程图;5 is a flowchart of an optional implementation method for a cross-domain Layer 2 network service provided by an embodiment of the present invention;
图6为本发明实施例提供的一种可选的跨域二层网络业务的实现方法流程图;FIG. 6 is a flowchart of a method for implementing an optional cross-domain Layer 2 network service provided by an embodiment of the present invention;
图7为本发明实施例提供的一种跨域二层网络业务的实现装置示意图;7 is a schematic diagram of a device for implementing a cross-domain Layer 2 network service according to an embodiment of the present invention;
图8为与图7所示实施例提供的跨域二层网络业务的实现装置对应的电子设备的结构示意图。FIG. 8 is a schematic structural diagram of an electronic device corresponding to the apparatus for implementing a cross-domain Layer 2 network service provided by the embodiment shown in FIG. 7 .
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义,“多种”一般包含至少两种,但是不排除包含至少一种的情况。The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a," "the," and "the" as used in the embodiments of the present invention and the appended claims are intended to include the plural forms as well, unless the context clearly dictates otherwise, "a plurality" Generally, at least two kinds are included, but the case of including at least one kind is not excluded.
应当理解,本文中使用的术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that the term "and/or" used in this document is only an association relationship to describe the associated objects, indicating that there may be three kinds of relationships, for example, A and/or B, which may indicate that A exists alone, and A and B exist at the same time. B, there are three cases of B alone. In addition, the character "/" in this document generally indicates that the related objects are an "or" relationship.
取决于语境,如在此所使用的词语“如果”、“若”可以被解释成为“在……时”或“当……时”或“响应于确定”或“响应于检测”。类似地,取决于语境,短语“如果确定”或“如果检测(陈述的条件或事件)”可以被解释成为“当确定时”或“响应于确定”或“当检测(陈述的条件或事件)时”或“响应于检测(陈述的条件或事件)”。Depending on the context, the words "if", "if" as used herein may be interpreted as "at" or "when" or "in response to determining" or "in response to detecting". Similarly, the phrases "if determined" or "if detected (the stated condition or event)" can be interpreted as "when determined" or "in response to determining" or "when detected (the stated condition or event)," depending on the context )" or "in response to detection (a stated condition or event)".
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的商品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种商品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的商品或者系统中还存在另外的相同要素。It should also be noted that the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a commodity or system comprising a list of elements includes not only those elements, but also includes not explicitly listed other elements, or elements inherent to the commodity or system. Without further limitation, an element defined by the phrase "comprising a..." does not preclude the presence of additional identical elements in the article or system that includes the element.
另外,下述各方法实施例中的步骤时序仅为一种举例,而非严格限定。In addition, the sequence of steps in the following method embodiments is only an example, and is not strictly limited.
在介绍本发明实施例提供的跨域二层网络业务的实现方法之前,先对后续实施例中涉及到的一些概念和跨域二层网络业务的实现的基本原理进行说明。Before introducing the implementation method of the cross-domain Layer 2 network service provided by the embodiment of the present invention, some concepts involved in the subsequent embodiments and the basic principle of realizing the cross-domain Layer 2 network service are described.
隧道技术(Tunneling),是一种通过使用互联网的基础设施在网络之间传输数据的方式。通过隧道传输的数据可以是不同协议的数据帧或数据包。隧道技术分别以第2层或第3层隧道协议为基础,其中,第2层隧道协议对应于OSI模型的数据链路层,使用帧作为数据交换单位,PPTP(点对点隧道协议)、L2TP(第2层隧道协议)和L2F(第2层转发协议)都属于第2层隧道协议;第3层隧道协议对应于OSI模型的网络层,使用包作为数据交换单位,IPIP(IP over IP)以及IPSec隧道模式都属于第3层隧道协议。Tunneling is a way of transferring data between networks by using the infrastructure of the Internet. The data transmitted through the tunnel can be data frames or data packets of different protocols. Tunneling technology is based on Layer 2 or Layer 3 tunneling protocols, among which the Layer 2 tunneling protocol corresponds to the data link layer of the OSI model, using frames as data exchange units, PPTP (Point-to-Point Tunneling Protocol), L2TP (No. Layer 2 Tunneling Protocol) and L2F (Layer 2 Forwarding Protocol) both belong to the Layer 2 Tunneling Protocol; the Layer 3 Tunneling Protocol corresponds to the network layer of the OSI model, using packets as data exchange units, IPIP (IP over IP) and IPSec The tunnel modes are all layer 3 tunneling protocols.
L2TP,全称为Layer 2Tunneling Protocol,是一个数据链路层协议。使用PPP协议(Point to Point Protocol,即点对点协议)对数据进行封装,添加附加包头用于数据在互联网上的传输。L2TP, the full name of Layer 2Tunneling Protocol, is a data link layer protocol. Use PPP protocol (Point to Point Protocol, that is, point-to-point protocol) to encapsulate data, and add additional headers for data transmission on the Internet.
LNS,全称为L2TP Network Server,即L2TP网络服务器,是PPP端系统上用于处理L2TP协议服务器端部分的设备,位于L2TP隧道的一侧,是LAC(L2TP Access Concentrator,L2TP访问集中器)的对端设备,是被LAC进行隧道传输的PPP会话的逻辑终止终端。LAC将远端系统接收到的报文封装成隧道报文后,发送给LNS,LNS将接收到的隧道报文解封装后发送给远端系统。LNS, the full name of L2TP Network Server, is the L2TP network server. It is a device on the PPP end system used to process the server-side part of the L2TP protocol. It is located on one side of the L2TP tunnel and is the counterpart of the LAC (L2TP Access Concentrator, L2TP Access Concentrator). The end device is the logical termination terminal of the PPP session tunneled by the LAC. The LAC encapsulates the packets received by the remote system into tunnel packets and sends them to the LNS. The LNS decapsulates the received tunnel packets and sends them to the remote system.
大二层网络技术,是指利用隧道技术,实现二层网络互联互通的技术。本申请所提到的大二层网络技术是指使用IP网络互联网技术,实现跨越三层网络的二层网络扩展技术。例如,图1中所示的通过企业分支1和企业分支2的CPE1和CPE2,分别与企业总部局域网(即图1中所示的内联网)的LNS建立隧道,企业分支1下的PC1将报文封装成隧道报文,通过CPE1与LNS之间的隧道,发送到LNS,LNS对接收到的隧道报文进行解封装,转发至企业总部的局域网,在发现报文是发送至企业分支2下的PC5的情况下,再通过LNS进行封装并发送至企业分支2的CPE2,以便企业分支2的CPE2将解封装后的报文发送至PC5。The large layer 2 network technology refers to the technology that uses the tunnel technology to realize the interconnection and intercommunication of the layer 2 network. The large second-layer network technology mentioned in this application refers to the use of the IP network Internet technology to realize the second-layer network expansion technology that spans the three-layer network. For example, through the CPE1 and CPE2 of enterprise branch 1 and enterprise branch 2 shown in Figure 1, tunnels are established with the LNS of the corporate headquarters LAN (that is, the intranet shown in Figure 1), respectively, and PC1 under enterprise branch 1 will report The packet is encapsulated into a tunnel packet and sent to the LNS through the tunnel between CPE1 and the LNS. The LNS decapsulates the received tunnel packet and forwards it to the LAN of the enterprise headquarters. When it is found that the packet is sent to the enterprise branch 2 In the case of PC5, the packet is encapsulated by LNS and sent to CPE2 of enterprise branch 2, so that CPE2 of enterprise branch 2 can send the decapsulated packet to PC5.
现有大二层网络技术采用集中部署的LNS来实现隧道报文的转发,不仅无法动态调整网络,而且会导致集中部署的LNS负荷重,一旦集中部署的LNS发生故障,则可能导致全部L2业务中断,另外,集中转发的方式,传输过程中存在大量绕路,会加重网络负载,增加骨干网带宽和网络传输时延。The existing large-scale Layer 2 network technology uses the centrally deployed LNS to forward tunnel packets, which not only cannot dynamically adjust the network, but also causes a heavy load on the centrally deployed LNS. Once the centrally deployed LNS fails, all L2 services may be affected. In addition, the centralized forwarding method has a large number of detours in the transmission process, which will increase the network load, increase the backbone network bandwidth and network transmission delay.
为了解决上述问题,本申请将SDWAN技术(Software-defined Wide AreaNetwork)应用到移动网络的L2业务场景中,采用分布式部署于多个局域网的多个LNS和本地网关LGW,可以实现自动选路,并选取最优路径传输报文,可以大大提升网络质量、增强用户体验。In order to solve the above problems, the present application applies SDWAN technology (Software-defined Wide Area Network) to the L2 service scenario of the mobile network, and adopts multiple LNSs and local gateways LGW that are distributed and deployed in multiple local area networks, so that automatic route selection can be realized. And select the optimal path to transmit packets, which can greatly improve network quality and enhance user experience.
图2是本发明实施例提供的一种跨域二层网络业务的实现系统示意图,如图2所示,该系统可以包括:多个隧道服务器(如图1中所示的LNS1、LNS2和LNS3),分布式部署于多个局域网中,用于建立任意两个局域网间的隧道;多个本地网关(如图1中所示的LGW1、LGW2、LGW3和LGW4),分布式部署于多个局域网中,与相应局域网的隧道服务器相连;集中控制器,与多个本地网关和隧道服务器分别相连,用于获取多个LNS的链路状态信息,根据多个LNS的链路状态信息,确定待传输报文的传输路径信息,并将待传输报文的传输路径信息发送至相应局域网的LGW,其中,待传输报文为多个局域网中任意一个局域网向其他局域网传输的报文,传输路径信息至少包括:接收待传输报文的局域网的隧道服务器的地址信息;其中,相应局域网的本地网关根据集中控制器确定的传输路径信息将待传输报文发送至接收待传输报文的局域网的隧道服务器。FIG. 2 is a schematic diagram of a system for implementing a cross-domain Layer 2 network service provided by an embodiment of the present invention. As shown in FIG. 2 , the system may include: multiple tunnel servers (LNS1, LNS2, and LNS3 shown in FIG. 1 ) ), distributed in multiple LANs to establish a tunnel between any two LANs; multiple local gateways (LGW1, LGW2, LGW3, and LGW4 as shown in Figure 1), distributed in multiple LANs It is connected to the tunnel server of the corresponding local area network; the centralized controller is connected to multiple local gateways and tunnel servers respectively, and is used to obtain the link state information of multiple LNSs, and determine the to-be-transmitted according to the link state information of multiple LNSs. transmission path information of the message, and send the transmission path information of the message to be transmitted to the LGW of the corresponding local area network, wherein the message to be transmitted is a message transmitted from any one of the multiple local area networks to other local area networks, and the transmission path information is at least It includes: address information of the tunnel server of the local area network that receives the message to be transmitted; wherein, the local gateway of the corresponding local area network sends the message to be transmitted to the tunnel server of the local area network that receives the message to be transmitted according to the transmission path information determined by the centralized controller.
需要说明的是,根据企业L2业务需求,可以在每个企业分部部署一个LNS,每个LNS均连接企业内部网络Intranet。可选地,LNS与LGW共置部署。这些LNS共用一个虚拟的LNSIP,供客户端设备(CPE)建立L2隧道。It should be noted that, according to the enterprise L2 business requirements, one LNS can be deployed in each enterprise branch, and each LNS is connected to the intranet of the enterprise. Optionally, the LNS and LGW are co-located and deployed. These LNSs share a virtual LNSIP for customer premises equipment (CPE) to establish L2 tunnels.
集中控制器Controller,掌管全局网络拓扑,而且控制着每个LGW,指示LGW实时探测到每个LNS的路径状况(包括下述信息中一种或多种:到每个LNS的时延、各个LNS的负载、到每个LNS的带宽),Controller收集到这些信息后,通过计算得到每个LGW到各个LNS的最优路径,并将这些最优路径告知给每个LGW,在LGW收到到虚拟的LNS IP的隧道报文时,将按照传输路径(例如,LGW1<->LGW2<->LGW4<->LNS3)转发至路径上的最终的LNS,这个LNS将隧道报文正确处理后转发至Intranet。The centralized controller Controller is in charge of the global network topology, and controls each LGW, instructing the LGW to detect the path status of each LNS in real time (including one or more of the following information: delay to each LNS, each LNS load and bandwidth to each LNS), after the Controller collects this information, it calculates the optimal paths from each LGW to each LNS, and informs each LGW of these optimal paths. When the tunnel packets of the LNS IP address, they will be forwarded to the final LNS on the path according to the transmission path (for example, LGW1<->LGW2<->LGW4<->LNS3). This LNS will correctly process the tunnel packets and forward them to intranet.
在上述应用场景下,本申请提供了一种跨域二层网络业务的实现方法实施例,可以应用但不限于图2所示的系统。图3为本发明实施例提供的一种跨域二层网络业务的实现方法流程图,如图3所示,该方法包括如下步骤:In the above application scenario, the present application provides an embodiment of a method for implementing a cross-domain Layer 2 network service, which can be applied but not limited to the system shown in FIG. 2 . FIG. 3 is a flowchart of a method for implementing a cross-domain Layer 2 network service provided by an embodiment of the present invention. As shown in FIG. 3 , the method includes the following steps:
步骤S301,集中控制器获取多个隧道服务器的链路状态信息,其中,多个隧道服务器分布式部署于多个局域网中,用于建立任意两个局域网间的隧道,每个隧道服务器与相应局域网的本地网关相连。Step S301, the centralized controller acquires link state information of multiple tunnel servers, wherein the multiple tunnel servers are distributed and deployed in multiple local area networks to establish a tunnel between any two local area networks, and each tunnel server is connected to a corresponding local area network. connected to the local gateway.
具体地,集中控制器与每个局域网的本地网关相连,每个局域网的本地网关与该局域网的隧道服务器相连,由此,作为第一种可选的实施方式,在部署完每个局域网的LGW后,集中控制器可以通过每个局域网的LGW探测相应局域网的LNS的链路状态信息,以便根据每个LNS的链路状态信息确定待传输报文的传输路径信息,需要说明的是,需要获取的链路状态信息可以包括但不限于如下至少之一:每个隧道服务器的位置信息、容量信息、运行状态、时延信息、链路带宽、负载信息。Specifically, the centralized controller is connected to the local gateway of each local area network, and the local gateway of each local area network is connected to the tunnel server of the local area network. Therefore, as a first optional implementation manner, after the LGW of each local area network is deployed After that, the centralized controller can detect the link state information of the LNS of the corresponding local area network through the LGW of each local area network, so as to determine the transmission path information of the to-be-transmitted message according to the link state information of each LNS. The link state information may include, but is not limited to, at least one of the following: location information, capacity information, running state, delay information, link bandwidth, and load information of each tunnel server.
在第一种可选的实施方式中,当集中控制器通过每个局域网的LGW获取相应局域网的LNS的链路状态信息的情况下,集中控制器只需要与每个局域网的LGW相连即可,具体地,上述步骤S301可以包括如下步骤:集中控制器向每个局域网的本地网关发送路径探测请求,其中,路径探测请求用于指示每个局域网的本地网关探测相应隧道服务器的链路状态信息,其中,路径探测请求中至少包含待探测的多个隧道服务器的网络地址;集中控制器接收每个局域网的本地网关根据路径探测请求探测到的隧道服务器的链路状态信息。In the first optional implementation manner, when the centralized controller obtains the link status information of the LNS of the corresponding local area network through the LGW of each local area network, the centralized controller only needs to be connected to the LGW of each local area network, Specifically, the above step S301 may include the following steps: the centralized controller sends a path detection request to the local gateway of each local area network, wherein the path detection request is used to instruct the local gateway of each local area network to detect the link state information of the corresponding tunnel server, Wherein, the path detection request contains at least the network addresses of the multiple tunnel servers to be detected; the centralized controller receives the link state information of the tunnel servers detected by the local gateway of each local area network according to the path detection request.
可选地,上述路径探测请求中还可以包含探测周期,以便实现LGW定期主动向集中控制器上报相应局域网的LNS的链路状态信息的目的。具体地,每个局域网的本地网关根据探测周期向相应隧道服务器发送路径探测请求,以获取相应隧道服务器的链路状态信息;并向集中控制器定期上报相应隧道服务器的链路状态信息。Optionally, the above-mentioned path detection request may further include a detection period, so as to realize the purpose of periodically actively reporting the link status information of the LNS of the corresponding local area network to the centralized controller by the LGW. Specifically, the local gateway of each local area network sends a path detection request to the corresponding tunnel server according to the detection period to obtain the link state information of the corresponding tunnel server; and periodically reports the link state information of the corresponding tunnel server to the centralized controller.
此处需要说明的是,由于第一种实施方式中,集中控制器仅与每个局域网的LGW相连,则在集中控制器获取多个隧道服务器的链路状态信息之前,集中控制器还可以配置网络拓扑信息,和/或根据每个局域网的本地网关主动上报的自身的状态信息确定网络拓扑信息,其中,网络拓扑信息包括每个局域网的本地网关的如下至少一种信息:位置信息、容量信息。It should be noted here that, since the centralized controller is only connected to the LGW of each local area network in the first embodiment, before the centralized controller acquires the link status information of multiple tunnel servers, the centralized controller can also configure Network topology information, and/or determine network topology information according to its own state information actively reported by the local gateway of each local area network, wherein the network topology information includes at least one of the following information of the local gateway of each local area network: location information, capacity information .
容易注意的是,由于LGW仅能获得LNS的运行状态、时延、链路带宽等状态信息,而有些用于计算传输路径的状态信息(例如,LNS的容量、负载、位置等信息)可能获取不到。由此,作为第二种可选的实施方式,集中控制器还可以直接与每个局域网的LNS相连,直接从每个LNS开放的接口获取每个LNS的状态信息。It is easy to note that since the LGW can only obtain the LNS's operating status, delay, link bandwidth and other status information, some status information (such as LNS capacity, load, location, etc.) used to calculate the transmission path may be obtained. not. Therefore, as a second optional implementation manner, the centralized controller may also be directly connected to the LNS of each local area network, and directly obtain the status information of each LNS from the open interface of each LNS.
在第二种可选的实施方式中,集中控制器与每个局域网的本地网关和隧道服务器分别连接,因而,集中控制器接收每个局域网的隧道服务器上报的自身的链路状态信息。具体地,集中控制器接收每个局域网的隧道服务器上报的自身的链路状态信息的时候,集中控制器可以向每个局域网的隧道服务器发送业务请求,并接收每个局域网的隧道服务器根据业务请求返回自身的链路状态信息。其中,该业务请求用于指示每个局域网的隧道服务器上报自身的链路状态信息;In a second optional implementation manner, the centralized controller is respectively connected to the local gateway and the tunnel server of each local area network, so the centralized controller receives its own link state information reported by the tunnel server of each local area network. Specifically, when the centralized controller receives its own link state information reported by the tunnel server of each local area network, the centralized controller can send a service request to the tunnel server of each local area network, and receive the service request from the tunnel server of each local area network according to the service request. Returns its own link state information. Wherein, the service request is used to instruct the tunnel server of each local area network to report its own link state information;
可选地,上述业务请求中可以包含上报周期,其中,集中控制器接收每个局域网的隧道服务器根据业务请求返回自身的链路状态信息,包括:每个局域网的隧道服务器按照上报周期向集中控制器定期上报自身的链路状态信息。Optionally, the above service request may include a reporting period, wherein the centralized controller receives the link status information returned by the tunnel server of each local area network according to the service request, including: the tunnel server of each local area network reports to the centralized control according to the reporting period. The switch periodically reports its own link status information.
此处需要说明的是,由于第二种实施方式中,集中控制器不仅与每个局域网的本地网关相连,还与每个局域网的隧道服务器相连,由此,在集中控制器获取多个隧道服务器的链路状态信息之前,集中控制器还可以根据每个局域网的本地网关主动上报的自身的状态信息和每个局域网的隧道服务器上报的自身的状态信息确定网络拓扑信息,其中,网络拓扑信息包括每个局域网的本地网关和隧道服务器的如下至少一种信息:位置信息、容量信息。It should be noted here that, in the second embodiment, the centralized controller is not only connected to the local gateway of each local area network, but also connected to the tunnel server of each local area network. Therefore, the centralized controller obtains multiple tunnel servers. Before the link state information is sent, the centralized controller can also determine the network topology information according to its own state information actively reported by the local gateway of each local area network and its own state information reported by the tunnel server of each local area network, wherein the network topology information includes At least one of the following information of the local gateway and tunnel server of each local area network: location information, capacity information.
步骤S302,集中控制器根据多个隧道服务器的链路状态信息,确定待传输报文的传输路径信息,其中,待传输报文为多个局域网中任意一个局域网向其他局域网传输的报文,传输路径信息至少包括:接收待传输报文的局域网的隧道服务器的地址信息。Step S302, the centralized controller determines the transmission path information of the to-be-transmitted packet according to the link state information of the multiple tunnel servers, wherein the to-be-transmitted packet is a packet transmitted from any one of the multiple local area networks to other local area networks, and the transmission The path information at least includes: address information of the tunnel server of the local area network that receives the message to be transmitted.
具体地,集中控制器可以在获取到每个隧道服务器的链路状态信息后,自动确定待传输报文的传输路径信息,也可以根据每个局域网的本地网关发送的路径请求的情况下,根据获取到的每个隧道服务器的链路状态信息确定待传输报文的传输路径信息,其中,路径请求为每个局域网的本地网关在接收到相应局域网的客户端设备发送的隧道报文的情况下,向集中控制器发送的请求,隧道报文为相应局域网的客户端设备采用虚拟网络地址对待传输报文进行封装,生成的隧道报文。Specifically, the centralized controller can automatically determine the transmission path information of the to-be-transmitted packets after acquiring the link status information of each tunnel server, or can also determine the transmission path information according to the path request sent by the local gateway of each local area network. The obtained link state information of each tunnel server determines the transmission path information of the to-be-transmitted message, wherein the path request is when the local gateway of each local area network receives the tunnel message sent by the client device of the corresponding local area network , the request sent to the centralized controller, the tunnel message is the tunnel message generated by the client device of the corresponding local area network encapsulating the message to be transmitted by using the virtual network address.
步骤S303,集中控制器将待传输报文的传输路径信息发送至相应局域网的本地网关,其中,相应局域网的本地网关根据集中控制器确定的传输路径信息将待传输报文发送至接收待传输报文的局域网的隧道服务器。Step S303, the centralized controller sends the transmission path information of the message to be transmitted to the local gateway of the corresponding local area network, wherein the local gateway of the corresponding local area network sends the message to be transmitted to receive the message to be transmitted according to the transmission path information determined by the centralized controller. The tunnel server of the local area network of the text.
具体地,在确定待传输报文的传输路径信息后,也即确定了接收待传输报文的真实的LNS IP地址,可以将相应的隧道报文的目的地址修改为这个真实的LNS IP并转发至这个LNS。Specifically, after the transmission path information of the to-be-transmitted packet is determined, that is, the real LNS IP address for receiving the to-be-transmitted packet is determined, the destination address of the corresponding tunnel packet can be modified to this real LNS IP and forwarded to this LNS.
可选地,集中控制器确定的传输路径信息可以是一个路径串,即指示到最优的LNS前还要经过其他LGW,因而,上述集中控制器确定的传输路径信息中还可以包含待传输报文在传输过程中经过的一个或多个本地网关的地址信息。Optionally, the transmission path information determined by the centralized controller may be a path string, that is, other LGWs need to be passed before the instruction is directed to the optimal LNS. Therefore, the transmission path information determined by the centralized controller may also include messages to be transmitted. Address information of one or more local gateways through which the text passes during transmission.
一种可选的实施方式中,集中控制器将待传输报文的传输路径信息发送至相应局域网的本地网关的时候,可以包括如下步骤:集中控制器将待传输报文的传输路径信息发送至待传输报文在传输过程中经过的每个本地网关;基于待传输报文的传输路径信息,待传输报文在传输过程中经过的每个本地网关,采用下一传输节点的本地网关或隧道服务器的地址对接收到的报文进行二次封装,并传输到下一传输节点的本地网关或隧道服务器。In an optional implementation manner, when the centralized controller sends the transmission path information of the message to be transmitted to the local gateway of the corresponding local area network, the following steps may be included: the centralized controller sends the transmission path information of the message to be transmitted to the local gateway. Each local gateway that the to-be-transmitted message passes through during the transmission process; based on the transmission path information of the to-be-transmitted message, each local gateway that the to-be-transmitted message passes through during the transmission process adopts the local gateway or tunnel of the next transmission node The address of the server performs secondary encapsulation on the received message and transmits it to the local gateway or tunnel server of the next transit node.
另一种可选的实施方式中,集中控制器将待传输报文的传输路径信息发送至相应局域网的本地网关的时候,可以包括如下步骤:集中控制器将待传输报文的传输路径信息发送至待传输报文在传输过程中经过的第一个本地网关;基于待传输报文的传输路径信息,待传输报文在传输过程中经过的每个本地网关,将报文的目的地址修改为下一传输节点的本地网关或隧道服务器的地址,并传输到下一传输节点的本地网关或隧道服务器。In another optional implementation manner, when the centralized controller sends the transmission path information of the message to be transmitted to the local gateway of the corresponding local area network, the following steps may be included: the centralized controller sends the transmission path information of the message to be transmitted. To the first local gateway through which the message to be transmitted passes during the transmission process; based on the transmission path information of the message to be transmitted, for each local gateway that the message to be transmitted passes through during the transmission process, the destination address of the message is modified to The address of the local gateway or tunnel server of the next transport node, and transmitted to the local gateway or tunnel server of the next transport node.
下面,为了更好地理解本发明,根据本申请提供的跨域二层网络业务的实现方案,图4、图5和图6示出了可选的具体实施方式。Below, in order to better understand the present invention, according to the implementation scheme of the cross-domain Layer 2 network service provided by the present application, FIG. 4 , FIG. 5 and FIG. 6 show optional specific implementation manners.
图4示出了多APN、EPC通知LNS隧道建立的方案的具体流程,如图4所示,包括如下步骤:Fig. 4 shows the specific flow of the scheme of multiple APNs and EPCs notifying LNS tunnel establishment, as shown in Fig. 4, including the following steps:
步骤S400,拓扑上报。在部署完成LGW后,每个LGW主动发消息到集中控制器,告知集中控制器自身的状态信息,该状态信息可能包括如下几种中的一种或多种:功能特性、业务容量、位置信息。步骤S400是可选的。Step S400, topology reporting. After the LGW is deployed, each LGW actively sends a message to the centralized controller to inform the centralized controller of its own status information. The status information may include one or more of the following: functional characteristics, service capacity, location information . Step S400 is optional.
步骤S401,拓扑管理。即在系统初始的时候,集中控制器配置网络拓扑,或者通过步骤S400实现自动拓扑发现。Step S401, topology management. That is, when the system is initialized, the centralized controller configures the network topology, or realizes automatic topology discovery through step S400.
步骤S402,集中控制器向每个LGW发送路径探测请求。该路径探测请求可以用于指示LGW定期探测到每个LNS的路径状态,可选地,该路径探测请求中可以携带要探测的多个LNS IP,可选地,还可以携带探测周期时长等信息。Step S402, the centralized controller sends a path detection request to each LGW. The path detection request can be used to instruct the LGW to periodically detect the path status of each LNS. Optionally, the path detection request can carry multiple LNS IPs to be detected, and optionally, can also carry information such as the detection period duration .
步骤S403,路径探测。每个局域网的LGW接收到来自集中控制器的路径探测请求后,按照探测周期定时发送路径探测请求到LNS,获取LNS的链路状态信息,获取的信息包括如下几种信息中的一种或多种:LNS是否正常运行、时延、链路带宽、LNS的容量、LNS位置。Step S403, path detection. After receiving the path detection request from the centralized controller, the LGW of each local area network sends the path detection request to the LNS according to the detection period, and obtains the link status information of the LNS. The obtained information includes one or more of the following information: Type: whether the LNS is running normally, delay, link bandwidth, LNS capacity, and LNS location.
步骤S404,每个局域网的LGW向集中控制器上报探测路径探测结果。上报的方式可以是定期上报,也可以基于集中控制器的路径探测请求实时上报的。Step S404, the LGW of each local area network reports the detection result of the detection path to the centralized controller. The reporting method can be periodic reporting, or real-time reporting based on the path detection request of the centralized controller.
步骤S405,集中控制器将确定的传输路径信息返回给每个LGW。其中,可以通过步骤S405a主动推送给每个LGW。也可以通过步骤S405b1和步骤S405b2在接收到路径请求的情况下,将传输路径信息返回给每个LGW。具体地,每个局域网的LGW收到CPE发往虚拟LNS IP的L2隧道报文后,发送路径请求到集中控制器,集中控制器通过计算得到最优路径的LNS,并将选定的LNS的真实IP返回给LGW。具体地计算时将考虑此前LGW上报的路径探测结果信息,即考虑LNS的运行状态、时延、容量、带宽、位置等信息。Step S405, the centralized controller returns the determined transmission path information to each LGW. Wherein, it can be actively pushed to each LGW through step S405a. It is also possible to return the transmission path information to each LGW when a path request is received through steps S405b1 and S405b2. Specifically, after receiving the L2 tunnel message sent by the CPE to the virtual LNS IP, the LGW of each local area network sends a path request to the centralized controller. The real IP is returned to the LGW. Specifically, the path detection result information previously reported by the LGW will be considered in the calculation, that is, information such as the running status, delay, capacity, bandwidth, and location of the LNS will be considered.
容易注意的是,上述两种方式可以任选,其中,步骤S405是集中控制器获得LGW的上报的路径探测结果后,为每个LGW计算出当前最合适的LNS主动告知给每个LGW;而步骤S405b1和步骤S405b2是被动式,当收到LGW的请求后再选择最合适的LNS告知给该LGW。It is easy to note that the above two methods can be optional, wherein, in step S405, after the centralized controller obtains the path detection result reported by the LGW, it calculates the current most suitable LNS for each LGW and actively informs each LGW; and Steps S405b1 and S405b2 are passive. After receiving the request of the LGW, the most suitable LNS is selected and notified to the LGW.
最后,当LGW得到选定的真实LNS IP后,将隧道报文目的修改为这个真实的LNS IP并转发至这个LNS。Finally, when the LGW obtains the selected real LNS IP, it modifies the destination of the tunnel packet to this real LNS IP and forwards it to this LNS.
需要说明的是,图4所示的实施方式,集中控制器仅控制LGW,图5所示的实施方式,集中控制器既能控制LGW,也能控制LNS。每个局域网的LNS开放接口给集中控制器,将相关信息直接报送给集中控制器。具体地,包括如下步骤:It should be noted that, in the embodiment shown in FIG. 4 , the centralized controller only controls the LGW, and in the embodiment shown in FIG. 5 , the centralized controller can control both the LGW and the LNS. The LNS of each local area network opens the interface to the centralized controller, and directly reports the relevant information to the centralized controller. Specifically, it includes the following steps:
步骤S500,拓扑上报。在LGW和LNS部署完成后,LGW通过步骤S500a主动连接集中控制器上报自己的状态信息,LNS通过步骤S500b主动连接集中控制器上报自己的状态信息,上报的信息包括如下几种信息中的一种或多种:能力信息(LGW还是LNS)、容量信息、位置信息。Step S500, topology reporting. After the LGW and LNS are deployed, the LGW actively connects to the centralized controller to report its state information through step S500a, and the LNS actively connects to the centralized controller to report its own state information through step S500b, and the reported information includes one of the following types of information Or multiple: capability information (LGW or LNS), capacity information, location information.
步骤S501,集中控制器管理LGW和LNS上报的信息,生成一个逻辑拓扑网络图进行管理。Step S501, the centralized controller manages the information reported by the LGW and the LNS, and generates a logical topology network diagram for management.
步骤S502,集中控制器向每个LGW发送路径探测请求。该路径探测请求可以用于指示LGW定期探测到每个LNS的路径状态,可以由集中控制器定期发送指示,也可以告知LGW一个周期,让LGW定期去探测。Step S502, the centralized controller sends a path detection request to each LGW. The path detection request can be used to instruct the LGW to periodically detect the path status of each LNS. The centralized controller can periodically send an instruction, or it can inform the LGW for a period so that the LGW can periodically detect.
步骤S503,路径探测。每个局域网的LGW发送探测报文给LNS,以获得LNS的状态、时延信息。可选地,也可以主动周期性地发起探测。Step S503, path detection. The LGW of each LAN sends detection packets to the LNS to obtain the status and delay information of the LNS. Optionally, the probe can also be actively and periodically initiated.
步骤S504,LGW将路径探测结果周期地发送给集中控制器。探测结果中的信息包括但不限于各个LNS的状态、时延、带宽中的一种或多种。Step S504, the LGW periodically sends the path detection result to the centralized controller. The information in the detection result includes, but is not limited to, one or more of the status, delay, and bandwidth of each LNS.
步骤S505和S506,与步骤S502类似,集中控制器可以周期发送业务请求给每个LNS,以查询每个LNS的服务状态、负载等信息;也可以指示LNS主动周期上报这些信息。In steps S505 and S506, similar to step S502, the centralized controller may periodically send service requests to each LNS to query information such as service status and load of each LNS; it may also instruct the LNS to actively report these information periodically.
步骤S507,同图4所示的步骤S405。集中控制器可以确定的传输路径信息通过步骤S507a主动推送给每个LGW。也可以通过步骤S507b1和步骤S507b2在接收到路径请求的情况下,将传输路径信息返回给每个LGW。每个局域网的LGW收到CPE发往虚拟LNS IP的L2隧道报文后,发送路径请求到集中控制器,集中控制器通过计算最优路径选择一个最优的LNS,并将选定的LNS的真实IP返回给LGW。具体地计算时可以考虑此前LGW上报的路径探测结果信息,即考虑LNS的运行状态、时延、容量、带宽、位置等信息。Step S507 is the same as step S405 shown in FIG. 4 . The transmission path information that can be determined by the centralized controller is actively pushed to each LGW through step S507a. It is also possible to return the transmission path information to each LGW when a path request is received through steps S507b1 and S507b2. After the LGW of each LAN receives the L2 tunnel message sent from the CPE to the virtual LNS IP, it sends a path request to the centralized controller. The centralized controller selects an optimal LNS by calculating the optimal path, and assigns the The real IP is returned to the LGW. Specifically, the path detection result information previously reported by the LGW may be considered in the calculation, that is, information such as the running state, delay, capacity, bandwidth, and location of the LNS may be considered.
容易注意的是,上述两种方式可以任选,其中,步骤S507a是集中控制器获得LGW的上报的路径探测结果后,为每个LGW计算出当前最合适的LNS主动告知给每个LGW;步骤S507b1和S507b2是被动式,当收到LGW的请求后再选择最合适的LNS告知给该LGW。It is easy to note that the above two ways can be optional, wherein, in step S507a, after the centralized controller obtains the path detection result reported by the LGW, it calculates the currently most suitable LNS for each LGW and actively informs each LGW; step S507b1 and S507b2 are passive, and after receiving the request of the LGW, the most suitable LNS is selected and notified to the LGW.
同实施例一,LGW得到选定的真实LNS IP后,将隧道报文目的修改为这个真实的LNS IP并转发至这个LNS。Similar to Embodiment 1, after the LGW obtains the selected real LNS IP, it modifies the destination of the tunnel packet to this real LNS IP and forwards it to this LNS.
图6示出的实施方式,与图4和图5类似,不同是的集中控制器计算得到的是一个路径串,指示到最优的LNS前还要经过其他LGW,具体流程包括如下步骤:The embodiment shown in FIG. 6 is similar to FIG. 4 and FIG. 5 , except that what the centralized controller calculates is a path string, and other LGWs need to pass through before indicating the optimal LNS. The specific process includes the following steps:
步骤S600a、S600b、S601、S602、S603、S604、S605、S606所执行的内容同图5所示的步骤S500a、S500b、S501、S502、S503、S504、S505、S506描述一致。The contents executed in steps S600a, S600b, S601, S602, S603, S604, S605, and S606 are consistent with the descriptions of steps S500a, S500b, S501, S502, S503, S504, S505, and S506 shown in FIG. 5 .
步骤S607,集中控制器收到路径请求后,根据算法得到一个到最终LNS的路径串。以图2中所示的路径串LGW1<->LGW3<->LNS3为例,,可以有如下两种处理方式:Step S607, after receiving the path request, the centralized controller obtains a path string to the final LNS according to an algorithm. Taking the path string LGW1<->LGW3<->LNS3 shown in Figure 2 as an example, there are two processing methods as follows:
第一种,集中控制器告知路径上的每个LGW报文处理规则,如上图中需要告知LGW1和LGW3。LGW1将这种隧道报文再次封装一层隧道转发至LGW3,然后LGW3根据集中控制器指示的规则解开隧道封装后转发至LNS3,即修改隧道报文的目的IP为LNS3的实际IP。First, the centralized controller informs each LGW packet processing rule on the path, as shown in the figure above, it needs to inform LGW1 and LGW3. LGW1 re-encapsulates the tunnel packet with one layer of tunnel and forwards it to LGW3, and then LGW3 unencapsulates the tunnel according to the rules instructed by the centralized controller and forwards it to LNS3, that is, modify the destination IP of the tunnel packet to the actual IP of LNS3.
第二种,集中控制器仅告知LGW1这个路径串以及处理规则,即图6所示的步骤S607b2的步骤为可选的,当LGW1收到报文后,修改隧道报文的目的地址为LGW3的地址并将这个路径串携带在每个隧道报文中,路径上的LGW收到报文后获得这个路径串修改目的地址为路径串中的下一跳。如此最终转至LNS3。Second, the centralized controller only informs LGW1 of the path string and processing rules, that is, the step of step S607b2 shown in Figure 6 is optional. After LGW1 receives the message, it modifies the destination address of the tunnel message to that of LGW3. address and carry the path string in each tunnel message. After receiving the message, the LGW on the path obtains the path string and modifies the destination address to the next hop in the path string. This eventually goes to LNS3.
图7为本发明实施例提供的一种跨域二层网络业务的实现装置的结构示意图,如图7所示,该装置包括:链路状态信息获取模块11、传输路径确定模块12、报文传输模块13。FIG. 7 is a schematic structural diagram of an apparatus for implementing a cross-domain Layer 2 network service according to an embodiment of the present invention. As shown in FIG. 7 , the apparatus includes: a link state
链路状态信息获取模块11,用于获取多个隧道服务器的链路状态信息,其中,多个隧道服务器分布式部署于多个局域网中,用于建立任意两个局域网间的隧道,每个隧道服务器与相应局域网的本地网关相连;The link state
传输路径确定模块12,用于根据多个隧道服务器的链路状态信息,确定待传输报文的传输路径信息,其中,待传输报文为多个局域网中任意一个局域网向其他局域网传输的报文,传输路径信息至少包括:接收待传输报文的局域网的隧道服务器的地址信息;The transmission
报文传输模块13,用于将待传输报文的传输路径信息发送至相应局域网的本地网关,其中,相应局域网的本地网关根据确定的传输路径信息将待传输报文发送至接收待传输报文的局域网的隧道服务器。The
可选地,上述链路状态信息获取模块11还用于向每个局域网的本地网关发送路径探测请求,其中,路径探测请求用于指示每个局域网的本地网关探测相应隧道服务器的链路状态信息,其中,路径探测请求中至少包含待探测的多个隧道服务器的网络地址;接收每个局域网的本地网关根据路径探测请求探测到的隧道服务器的链路状态信息,其中,链路状态信息包括如下至少之一:每个隧道服务器的位置信息、容量信息、运行状态、时延信息、链路带宽、负载信息。Optionally, the above-mentioned link state
可选地,路径探测请求中还包含探测周期,每个局域网的本地网关根据探测周期向相应隧道服务器发送路径探测请求,以获取相应隧道服务器的链路状态信息;每个局域网的本地网关向集中控制器定期上报相应隧道服务器的链路状态信息。Optionally, the path detection request also includes a detection period, and the local gateway of each local area network sends a path detection request to the corresponding tunnel server according to the detection period to obtain the link status information of the corresponding tunnel server; The controller periodically reports the link status information of the corresponding tunnel server.
可选地,上述装置还可以包括:网络拓扑确定模块,用于配置网络拓扑信息,和/或根据每个局域网的本地网关主动上报的自身的状态信息确定网络拓扑信息,其中,网络拓扑信息包括每个局域网的本地网关的如下至少一种信息:位置信息、容量信息。Optionally, the above device may further include: a network topology determination module, configured to configure network topology information, and/or determine network topology information according to its own state information actively reported by the local gateway of each local area network, wherein the network topology information includes: At least one of the following information of the local gateway of each local area network: location information, capacity information.
可选地,上述链路状态信息获取模块11还用于接收每个局域网的隧道服务器上报的自身的链路状态信息。Optionally, the above-mentioned link state
可选地,上述链路状态信息获取模块11还用于向每个局域网的隧道服务器发送业务请求,其中,业务请求用于指示每个局域网的隧道服务器上报自身的链路状态信息;以及接收每个局域网的隧道服务器根据业务请求返回自身的链路状态信息。Optionally, the above-mentioned link state
可选地,业务请求中包含上报周期,每个局域网的隧道服务器按照上报周期向集中控制器定期上报自身的链路状态信息。Optionally, the service request includes a reporting period, and the tunnel server of each local area network periodically reports its own link state information to the centralized controller according to the reporting period.
可选地,上述网络拓扑确定模块还用于集中控制器根据每个局域网的本地网关主动上报的自身的状态信息和每个局域网的隧道服务器上报的自身的状态信息确定网络拓扑信息,其中,网络拓扑信息包括每个局域网的本地网关和隧道服务器的如下至少一种信息:位置信息、容量信息。Optionally, the above-mentioned network topology determination module is also used for the centralized controller to determine network topology information according to its own state information actively reported by the local gateway of each local area network and its own state information reported by the tunnel server of each local area network, wherein the network The topology information includes at least one of the following information of the local gateway and tunnel server of each local area network: location information and capacity information.
可选地,上述报文传输模块13还用于在接收到每个本地网关发送的路径请求的情况下,根据多个隧道服务器的链路状态信息,确定待传输报文的传输路径信息,其中,路径请求为每个局域网的本地网关在接收到相应局域网的客户端设备发送的隧道报文的情况下,向集中控制器发送的请求,隧道报文为相应局域网的客户端设备采用虚拟网络地址对待传输报文进行封装,生成的隧道报文。Optionally, the above-mentioned
可选地,传输路径信息中海包含待传输报文在传输过程中经过的一个或多个本地网关的地址信息,上述报文传输模块13还用于集中控制器将待传输报文的传输路径信息发送至待传输报文在传输过程中经过的每个本地网关;基于待传输报文的传输路径信息,待传输报文在传输过程中经过的每个本地网关,采用下一传输节点的本地网关或隧道服务器的地址对接收到的报文进行二次封装,并传输到下一传输节点的本地网关或隧道服务器。Optionally, the transmission path information includes address information of one or more local gateways that the message to be transmitted passes through during the transmission process, and the above-mentioned
可选地,上述报文传输模块13还用于将待传输报文的传输路径信息发送至待传输报文在传输过程中经过的第一个本地网关;基于待传输报文的传输路径信息,待传输报文在传输过程中经过的每个本地网关,将报文的目的地址修改为下一传输节点的本地网关或隧道服务器的地址,并传输到下一传输节点的本地网关或隧道服务器。Optionally, the above-mentioned
图7所示装置可以执行图3-图6所示实施例的方法,本实施例未详细描述的部分,可参考对图3-图6所示实施例的相关说明。该技术方案的执行过程和技术效果参见图3-图6所示实施例中的描述,在此不再赘述。The apparatus shown in FIG. 7 may execute the method of the embodiment shown in FIG. 3 to FIG. 6 . For the part not described in detail in this embodiment, reference may be made to the related description of the embodiment shown in FIG. 3 to FIG. 6 . For the execution process and technical effects of the technical solution, refer to the descriptions in the embodiments shown in FIG. 3 to FIG. 6 , which will not be repeated here.
以上描述了跨域二层网络业务的实现装置的内部功能和结构,在一个可能的设计中,跨域二层网络业务的实现装置的结构可实现为一电子设备,例如,用于管理网络业务的服务器设备,如图8所示,该电子设备可以包括:处理器21和存储器22。其中,所述存储器22用于存储支持电子设备执行上述图3-图6所示实施例中提供的跨域二层网络业务的实现方法的程序,所述处理器21被配置为用于执行所述存储器22中存储的程序。The above describes the internal functions and structure of the device for implementing the cross-domain Layer 2 network service. In a possible design, the structure of the device for implementing the cross-domain Layer 2 network service can be implemented as an electronic device, for example, for managing network services As shown in FIG. 8 , the electronic device may include: a
所述程序包括一条或多条计算机指令,其中,所述一条或多条计算机指令被所述处理器21执行时能够实现如下步骤:The program includes one or more computer instructions, wherein the one or more computer instructions can realize the following steps when executed by the processor 21:
获取多个隧道服务器的链路状态信息,其中,多个隧道服务器分布式部署于多个局域网中,用于建立任意两个局域网间的隧道,每个隧道服务器与相应局域网的本地网关相连;Acquire link state information of multiple tunnel servers, wherein the multiple tunnel servers are distributed and deployed in multiple local area networks to establish a tunnel between any two local area networks, and each tunnel server is connected to the local gateway of the corresponding local area network;
根据多个隧道服务器的链路状态信息,确定待传输报文的传输路径信息,其中,待传输报文为多个局域网中任意一个局域网向其他局域网传输的报文,传输路径信息至少包括:接收待传输报文的局域网的隧道服务器的地址信息;Determine the transmission path information of the to-be-transmitted packet according to the link status information of the multiple tunnel servers, wherein the to-be-transmitted packet is a packet transmitted from any one of the multiple local area networks to other local area networks, and the transmission path information at least includes: The address information of the tunnel server of the local area network to be transmitted;
将待传输报文的传输路径信息发送至相应局域网的本地网关,其中,相应局域网的本地网关根据确定的传输路径信息将待传输报文发送至接收待传输报文的局域网的隧道服务器。The transmission path information of the message to be transmitted is sent to the local gateway of the corresponding local area network, wherein the local gateway of the corresponding local area network sends the message to be transmitted to the tunnel server of the local area network receiving the message to be transmitted according to the determined transmission path information.
可选地,所述处理器21还用于执行前述图3-图6所示实施例中的全部或部分步骤。Optionally, the
其中,所述电子设备的结构中还可以包括通信接口23,用于该电子设备与其他设备或通信网络通信。Wherein, the structure of the electronic device may further include a
另外,本发明实施例提供了一种计算机存储介质,用于储存电子设备所用的计算机软件指令,其包含用于执行上述图3-图6所示方法实施例中跨域二层网络业务的实现方法所涉及的程序。In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions used by an electronic device, which includes an implementation of a cross-domain Layer 2 network service for executing the method embodiments shown in FIG. 3 to FIG. 6 above. The procedures involved in the method.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed over multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助加必需的通用硬件平台的方式来实现,当然也可以通过硬件和软件结合的方式来实现。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以计算机产品的形式体现出来,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。From the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and certainly can also be implemented by combining hardware and software. Based on this understanding, the above-mentioned technical solutions can be embodied in the form of computer products in essence or that contribute to the prior art. In the form of a computer program product embodied on a medium (including but not limited to disk storage, CD-ROM, optical storage, etc.).
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程跨域二层网络业务的实现设备的处理器以产生一个机器,使得通过计算机或其他可编程跨域二层网络业务的实现设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, special-purpose computer, embedded processor or other programmable cross-domain layer 2 network service implementation device to generate a machine that enables the computer or other programmable cross-domain layer 2 network The instructions executed by the processor of the enabling device of the service produce means for implementing the functions specified in the flow or flows of the flowcharts and/or the blocks or blocks of the block diagrams.
这些计算机程序指令也可存储在能引导计算机或其他可编程跨域二层网络业务的实现设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a computer-readable memory capable of directing a computer or other programmable cross-domain layer 2 network service implementation device to work in a specific manner, so that the instructions stored in the computer-readable memory generate the instruction means An article of manufacture, the instruction means implementing the functions specified in the flow or flow of the flowchart and/or the block or blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程跨域二层网络业务的实现设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable cross-domain layer 2 network service implementation device, so that a series of operation steps are performed on the computer or other programmable device to generate computer-implemented processing, so that the computer or other The instructions executing on the programmable device provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-persistent memory in computer readable media, random access memory (RAM) and/or non-volatile memory in the form of, for example, read only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes both persistent and non-permanent, removable and non-removable media, and storage of information may be implemented by any method or technology. Information may be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash Memory or other memory technology, Compact Disc Read Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media, such as modulated data signals and carrier waves.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that it can still be The technical solutions described in the foregoing embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
本申请公开A1、一种跨域二层网络业务的实现方法,包括:The present application discloses A1, a method for realizing a cross-domain Layer 2 network service, comprising:
集中控制器获取多个隧道服务器的链路状态信息,其中,所述多个隧道服务器分布式部署于多个局域网中,用于建立任意两个局域网间的隧道,每个隧道服务器与相应局域网的本地网关相连;The centralized controller obtains the link state information of multiple tunnel servers, wherein the multiple tunnel servers are distributed and deployed in multiple local area networks, and are used to establish a tunnel between any two local area networks. connected to the local gateway;
所述集中控制器根据所述多个隧道服务器的链路状态信息,确定待传输报文的传输路径信息,其中,所述待传输报文为所述多个局域网中任意一个局域网向其他局域网传输的报文,所述传输路径信息至少包括:接收所述待传输报文的局域网的隧道服务器的地址信息;The centralized controller determines the transmission path information of the to-be-transmitted packet according to the link state information of the multiple tunnel servers, wherein the to-be-transmitted packet is transmitted from any one of the multiple local area networks to other local area networks message, the transmission path information at least includes: address information of the tunnel server of the local area network receiving the message to be transmitted;
所述集中控制器将所述待传输报文的传输路径信息发送至相应局域网的本地网关,其中,所述相应局域网的本地网关根据所述集中控制器确定的传输路径信息将所述待传输报文发送至接收所述待传输报文的局域网的隧道服务器。The centralized controller sends the transmission path information of the message to be transmitted to the local gateway of the corresponding local area network, wherein the local gateway of the corresponding local area network sends the message to be transmitted according to the transmission path information determined by the centralized controller. The message is sent to the tunnel server of the local area network that receives the message to be transmitted.
A2、根据A1所述的方法,集中控制器与每个局域网的本地网关连接,其中,集中控制器获取多个隧道服务器的链路状态信息,包括:A2. According to the method described in A1, the centralized controller is connected to the local gateway of each local area network, wherein the centralized controller obtains link state information of multiple tunnel servers, including:
所述集中控制器向所述每个局域网的本地网关发送路径探测请求,其中,所述路径探测请求用于指示所述每个局域网的本地网关探测相应隧道服务器的链路状态信息,其中,所述路径探测请求中至少包含待探测的多个隧道服务器的网络地址;The centralized controller sends a path detection request to the local gateway of each local area network, wherein the path detection request is used to instruct the local gateway of each local area network to detect the link state information of the corresponding tunnel server, wherein the The path detection request contains at least the network addresses of multiple tunnel servers to be detected;
所述集中控制器接收每个局域网的本地网关根据所述路径探测请求探测到的隧道服务器的链路状态信息,其中,所述链路状态信息包括如下至少之一:每个隧道服务器的位置信息、容量信息、运行状态、时延信息、链路带宽、负载信息。The centralized controller receives the link state information of the tunnel server detected by the local gateway of each local area network according to the path detection request, wherein the link state information includes at least one of the following: location information of each tunnel server , capacity information, running status, delay information, link bandwidth, load information.
A3、根据A2所述的方法,所述路径探测请求中还包含探测周期,其中,所述集中控制器接收每个局域网的本地网关根据所述路径探测请求探测到的隧道服务器的链路状态信息,包括:A3. The method according to A2, wherein the path detection request further includes a detection period, wherein the centralized controller receives the link state information of the tunnel server detected by the local gateway of each local area network according to the path detection request ,include:
所述每个局域网的本地网关根据所述探测周期向相应隧道服务器发送路径探测请求,以获取所述相应隧道服务器的链路状态信息;The local gateway of each local area network sends a path detection request to the corresponding tunnel server according to the detection period to obtain the link state information of the corresponding tunnel server;
所述每个局域网的本地网关向所述集中控制器定期上报所述相应隧道服务器的链路状态信息。The local gateway of each local area network periodically reports the link state information of the corresponding tunnel server to the centralized controller.
A4、根据A2所述的方法,在集中控制器获取多个隧道服务器的链路状态信息之前,所述方法还包括:A4. According to the method described in A2, before the centralized controller acquires the link state information of the multiple tunnel servers, the method further includes:
所述集中控制器配置网络拓扑信息,和/或根据所述每个局域网的本地网关主动上报的自身的状态信息确定所述网络拓扑信息,其中,所述网络拓扑信息包括每个局域网的本地网关的如下至少一种信息:位置信息、容量信息。The centralized controller configures network topology information, and/or determines the network topology information according to its own state information actively reported by the local gateway of each local area network, wherein the network topology information includes the local gateway of each local area network. at least one of the following information: location information and capacity information.
A5、根据A1所述的方法,集中控制器与每个局域网的本地网关和隧道服务器分别连接,其中,集中控制器获取多个隧道服务器的链路状态信息,包括:A5. According to the method described in A1, the centralized controller is respectively connected to the local gateway and the tunnel server of each local area network, wherein the centralized controller obtains link status information of multiple tunnel servers, including:
所述集中控制器接收所述每个局域网的隧道服务器上报的自身的链路状态信息。The centralized controller receives its own link state information reported by the tunnel server of each local area network.
A6、根据A5所述的方法,所述集中控制器接收所述每个局域网的隧道服务器上报的自身的链路状态信息,包括:A6. According to the method of A5, the centralized controller receives its own link state information reported by the tunnel server of each local area network, including:
所述集中控制器向所述每个局域网的隧道服务器发送业务请求,其中,所述业务请求用于指示所述每个局域网的隧道服务器上报自身的链路状态信息;The centralized controller sends a service request to the tunnel server of each local area network, wherein the service request is used to instruct the tunnel server of each local area network to report its own link state information;
所述集中控制器接收所述每个局域网的隧道服务器根据所述业务请求返回自身的链路状态信息。The centralized controller receives the link state information returned by the tunnel server of each local area network according to the service request.
A7、根据A6所述的方法,所述业务请求中包含上报周期,其中,所述集中控制器接收所述每个局域网的隧道服务器根据所述业务请求返回自身的链路状态信息,包括:A7. The method according to A6, wherein the service request includes a reporting period, wherein the centralized controller receives the link status information returned by the tunnel server of each local area network according to the service request, including:
所述每个局域网的隧道服务器按照所述上报周期向所述集中控制器定期上报自身的链路状态信息。The tunnel server of each local area network periodically reports its own link state information to the centralized controller according to the reporting period.
A8、根据A5所述的方法,在集中控制器获取多个隧道服务器的链路状态信息之前,所述方法还包括:A8. According to the method of A5, before the centralized controller acquires the link state information of the multiple tunnel servers, the method further includes:
所述集中控制器根据所述每个局域网的本地网关主动上报的自身的状态信息和所述每个局域网的隧道服务器上报的自身的状态信息确定网络拓扑信息,其中,所述网络拓扑信息包括每个局域网的本地网关和隧道服务器的如下至少一种信息:位置信息、容量信息。The centralized controller determines network topology information according to its own state information actively reported by the local gateway of each local area network and its own state information reported by the tunnel server of each local area network, wherein the network topology information includes each At least one of the following information of the local gateway and tunnel server of a local area network: location information and capacity information.
A9、根据A1至A8中任意一项所述的方法,所述集中控制器根据所述多个隧道服务器的链路状态信息,确定待传输报文的传输路径信息,包括:A9. According to the method described in any one of A1 to A8, the centralized controller determines the transmission path information of the to-be-transmitted packets according to the link state information of the multiple tunnel servers, including:
所述集中控制器在接收到所述每个本地网关发送的路径请求的情况下,根据所述多个隧道服务器的链路状态信息,确定待传输报文的传输路径信息,其中,所述路径请求为所述每个局域网的本地网关在接收到相应局域网的客户端设备发送的隧道报文的情况下,向所述集中控制器发送的请求,所述隧道报文为所述相应局域网的客户端设备采用虚拟网络地址对所述待传输报文进行封装,生成的隧道报文。In the case of receiving the path request sent by each local gateway, the centralized controller determines the transmission path information of the to-be-transmitted packet according to the link state information of the multiple tunnel servers, wherein the path The request is a request sent by the local gateway of each local area network to the centralized controller in the case of receiving a tunnel message sent by a client device of the corresponding local area network, and the tunnel message is a client of the corresponding local area network. The end device uses the virtual network address to encapsulate the to-be-transmitted message to generate a tunnel message.
A10、根据A9所述的方法,所述传输路径信息中包含所述待传输报文在传输过程中经过的一个或多个本地网关的地址信息,其中,所述集中控制器将所述待传输报文的传输路径信息发送至相应局域网的本地网关,包括:A10. The method according to A9, wherein the transmission path information includes address information of one or more local gateways through which the to-be-transmitted message passes during the transmission process, wherein the centralized controller stores the to-be-transmitted message The transmission path information of the message is sent to the local gateway of the corresponding LAN, including:
所述集中控制器将所述待传输报文的传输路径信息发送至所述待传输报文在传输过程中经过的每个本地网关;The centralized controller sends the transmission path information of the to-be-transmitted message to each local gateway through which the to-be-transmitted message passes during transmission;
基于所述待传输报文的传输路径信息,所述待传输报文在传输过程中经过的每个本地网关,采用下一传输节点的本地网关或隧道服务器的地址对接收到的报文进行二次封装,并传输到下一传输节点的本地网关或隧道服务器。Based on the transmission path information of the to-be-transmitted packet, each local gateway that the to-be-transmitted packet passes through in the transmission process uses the address of the local gateway of the next transmission node or the address of the tunnel server to perform a binary analysis on the received packet. It is encapsulated and transmitted to the local gateway or tunnel server of the next transport node.
A11、根据A9所述的方法,所述传输路径信息中包含所述待传输报文在传输过程中经过的一个或多个本地网关的地址信息,其中,所述集中控制器将所述待传输报文的传输路径信息发送至相应局域网的本地网关,包括:A11. The method according to A9, wherein the transmission path information includes address information of one or more local gateways through which the to-be-transmitted message passes during the transmission process, wherein the centralized controller stores the to-be-transmitted message The transmission path information of the message is sent to the local gateway of the corresponding LAN, including:
所述集中控制器将所述待传输报文的传输路径信息发送至所述待传输报文在传输过程中经过的第一个本地网关;The centralized controller sends the transmission path information of the to-be-transmitted message to the first local gateway through which the to-be-transmitted message passes during transmission;
基于所述待传输报文的传输路径信息,所述待传输报文在传输过程中经过的每个本地网关,将报文的目的地址修改为下一传输节点的本地网关或隧道服务器的地址,并传输到下一传输节点的本地网关或隧道服务器。Based on the transmission path information of the message to be transmitted, the destination address of the message is modified to the address of the local gateway or tunnel server of the next transmission node for each local gateway that the message to be transmitted passes through during the transmission process, and transmitted to the local gateway or tunnel server of the next transport node.
本申请公开B12、一种跨域二层网络业务的实现系统,包括:The present application discloses B12, a system for realizing cross-domain Layer 2 network services, comprising:
多个隧道服务器,分布式部署于多个局域网中,用于建立任意两个局域网间的隧道;Multiple tunnel servers, distributed in multiple LANs, are used to establish tunnels between any two LANs;
多个本地网关,分布式部署于多个局域网中,与相应局域网的隧道服务器相连;Multiple local gateways, distributed in multiple LANs, connected to tunnel servers in corresponding LANs;
集中控制器,与所述多个本地网关和隧道服务器分别相连,用于获取多个隧道服务器的链路状态信息,根据所述多个隧道服务器的链路状态信息,确定待传输报文的传输路径信息,并将所述待传输报文的传输路径信息发送至相应局域网的本地网关,其中,所述待传输报文为所述多个局域网中任意一个局域网向其他局域网传输的报文,所述传输路径信息至少包括:接收所述待传输报文的局域网的隧道服务器的地址信息;A centralized controller, connected to the multiple local gateways and the tunnel servers respectively, is used to obtain link state information of the multiple tunnel servers, and determine the transmission of the to-be-transmitted message according to the link state information of the multiple tunnel servers path information, and send the transmission path information of the to-be-transmitted packet to the local gateway of the corresponding local area network, wherein the to-be-transmitted packet is a packet transmitted from any one of the multiple local area networks to other local area networks, so The transmission path information at least includes: address information of the tunnel server of the local area network that receives the to-be-transmitted message;
其中,所述相应局域网的本地网关根据所述集中控制器确定的传输路径信息将所述待传输报文发送至接收所述待传输报文的局域网的隧道服务器。Wherein, the local gateway of the corresponding local area network sends the to-be-transmitted message to the tunnel server of the local area network that receives the to-be-transmitted message according to the transmission path information determined by the centralized controller.
本申请公开C13、一种跨域二层网络业务的实现装置,包括:The present application discloses C13, a device for implementing a cross-domain Layer 2 network service, comprising:
链路状态信息获取模块,用于获取多个隧道服务器的链路状态信息,其中,所述多个隧道服务器分布式部署于多个局域网中,用于建立任意两个局域网间的隧道,每个隧道服务器与相应局域网的本地网关相连;A link state information acquisition module is used to acquire link state information of multiple tunnel servers, wherein the multiple tunnel servers are distributed and deployed in multiple local area networks, and are used to establish a tunnel between any two local area networks, each The tunnel server is connected to the local gateway of the corresponding local area network;
传输路径确定模块,用于根据所述多个隧道服务器的链路状态信息,确定待传输报文的传输路径信息,其中,所述待传输报文为所述多个局域网中任意一个局域网向其他局域网传输的报文,所述传输路径信息至少包括:接收所述待传输报文的局域网的隧道服务器的地址信息;A transmission path determination module, configured to determine the transmission path information of the to-be-transmitted packet according to the link state information of the multiple tunnel servers, wherein the to-be-transmitted packet is any one of the multiple local area networks to the other The message transmitted by the local area network, the transmission path information at least includes: address information of the tunnel server of the local area network that receives the message to be transmitted;
报文传输模块,用于将所述待传输报文的传输路径信息发送至相应局域网的本地网关,其中,所述相应局域网的本地网关根据确定的传输路径信息将所述待传输报文发送至接收所述待传输报文的局域网的隧道服务器。The message transmission module is configured to send the transmission path information of the message to be transmitted to the local gateway of the corresponding local area network, wherein the local gateway of the corresponding local area network sends the message to be transmitted to the local gateway according to the determined transmission path information. A tunnel server of the local area network that receives the message to be transmitted.
本申请公开D14、一种电子设备,包括:存储器、处理器;其中,The present application discloses D14, an electronic device, comprising: a memory and a processor; wherein,
所述存储器用于存储一条或多条计算机指令,其中,所述一条或多条计算机指令被所述处理器执行时实现如A1至A11中任一项所述的跨域二层网络业务的实现方法。The memory is used to store one or more computer instructions, wherein, when the one or more computer instructions are executed by the processor, the implementation of the cross-domain Layer 2 network service described in any one of A1 to A11 is realized method.
Claims (14)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811395151.6A CN109617778B (en) | 2018-11-22 | 2018-11-22 | Method, device and system for realizing cross-domain two-layer network service |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811395151.6A CN109617778B (en) | 2018-11-22 | 2018-11-22 | Method, device and system for realizing cross-domain two-layer network service |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN109617778A CN109617778A (en) | 2019-04-12 |
| CN109617778B true CN109617778B (en) | 2021-05-18 |
Family
ID=66003744
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811395151.6A Active CN109617778B (en) | 2018-11-22 | 2018-11-22 | Method, device and system for realizing cross-domain two-layer network service |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109617778B (en) |
Families Citing this family (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112217657B (en) * | 2019-07-11 | 2023-08-04 | 奇安信科技集团股份有限公司 | Data transmission method, data processing method, device and medium based on SD-WAN system |
| CN110601882B (en) * | 2019-09-04 | 2022-08-16 | 厦门网宿有限公司 | Two-layer private network system and configuration method |
| CN110601893B (en) * | 2019-09-18 | 2022-12-20 | 成都西加云杉科技有限公司 | Data transmission system, method and device |
| CN113746687B (en) * | 2020-05-29 | 2025-11-11 | 华为技术有限公司 | Link quality detection and tunnel establishment method, system and communication device |
| CN111585864A (en) * | 2020-06-16 | 2020-08-25 | 湖南华诺科技有限公司 | An intelligent reverse control method and system based on tunnel technology |
| CN112350918B (en) * | 2020-12-10 | 2021-03-23 | 武汉绿色网络信息服务有限责任公司 | Service traffic scheduling method, device, equipment and storage medium |
| CN112910791B (en) * | 2021-02-08 | 2023-06-30 | 网宿科技股份有限公司 | Diversion system and method thereof |
| CN112910790B (en) * | 2021-02-08 | 2023-06-30 | 网宿科技股份有限公司 | Diversion system and method thereof |
| CN113507475B (en) * | 2021-07-14 | 2022-12-23 | 杭州数梦工场科技有限公司 | Cross-domain access method and device |
| CN119906733A (en) * | 2022-08-31 | 2025-04-29 | 重庆赛力斯凤凰智创科技有限公司 | Automobile E/E architecture and signal transmission method |
| CN117411762B (en) * | 2023-10-25 | 2024-08-23 | 中国科学院空天信息创新研究院 | Distributed message transmission method, device, equipment and medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103747116A (en) * | 2014-01-24 | 2014-04-23 | 杭州华三通信技术有限公司 | Business access method and device based on Layer 2 Tunneling Protocol (L2TP) |
| CN106130926A (en) * | 2016-08-30 | 2016-11-16 | 杭州迪普科技有限公司 | A kind of processing method and processing device of message |
| CN106559303A (en) * | 2015-09-28 | 2017-04-05 | 瞻博网络公司 | Using multicast address as the tunnel remote gateway address in layer 2 tunneling protocol LAC |
| CN107147580A (en) * | 2017-06-23 | 2017-09-08 | 北京佰才邦技术有限公司 | The method and communication system of a kind of tunnel building |
| CN108183849A (en) * | 2016-12-08 | 2018-06-19 | 华为技术有限公司 | Device management method, equipment and system based on L2TP |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4862065B2 (en) * | 2009-06-02 | 2012-01-25 | 株式会社日立製作所 | LAC device and failover method |
-
2018
- 2018-11-22 CN CN201811395151.6A patent/CN109617778B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103747116A (en) * | 2014-01-24 | 2014-04-23 | 杭州华三通信技术有限公司 | Business access method and device based on Layer 2 Tunneling Protocol (L2TP) |
| CN106559303A (en) * | 2015-09-28 | 2017-04-05 | 瞻博网络公司 | Using multicast address as the tunnel remote gateway address in layer 2 tunneling protocol LAC |
| CN106130926A (en) * | 2016-08-30 | 2016-11-16 | 杭州迪普科技有限公司 | A kind of processing method and processing device of message |
| CN108183849A (en) * | 2016-12-08 | 2018-06-19 | 华为技术有限公司 | Device management method, equipment and system based on L2TP |
| CN107147580A (en) * | 2017-06-23 | 2017-09-08 | 北京佰才邦技术有限公司 | The method and communication system of a kind of tunnel building |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109617778A (en) | 2019-04-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109617778B (en) | Method, device and system for realizing cross-domain two-layer network service | |
| JP7079866B2 (en) | Packet processing method and device | |
| US9231820B2 (en) | Methods and apparatus for controlling wireless access points | |
| US10085253B2 (en) | Methods and apparatus for controlling wireless access points | |
| US9173244B2 (en) | Methods for establishing and using public path, M2M communication method, and systems thereof | |
| CN110324225B (en) | Method and device for processing message | |
| US11057281B2 (en) | Determination of quality of service of a network tunnel | |
| US11824685B2 (en) | Method for implementing GRE tunnel, access point and gateway | |
| CN109788018B (en) | Cross-domain service intercommunication method, network equipment and storage medium | |
| CN106851435B (en) | Method for sending multicast stream and backend device | |
| WO2022142905A1 (en) | Packet forwarding method and apparatus, and network system | |
| CN117811875A (en) | A method and device for accessing home intercommunication network | |
| CN103023783B (en) | A kind of data transmission method and equipment based on DVPN | |
| CN112910791B (en) | Diversion system and method thereof | |
| CN116319503A (en) | Traffic scheduling method and device | |
| CN110474830B (en) | P2P tunnel communication method based on port forwarding | |
| CN115955512B (en) | Data transmission method, device and computer-readable storage medium | |
| CN112910790B (en) | Diversion system and method thereof | |
| CN118175058A (en) | Path quality detection method, device and medium | |
| CN116346584A (en) | Communication method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20251214 Address after: 100000 Beijing City, Haidian District, No. 81 Beiqing Road, Zhongguancun Yihao A1 Building, 10th Floor Patentee after: Beijing Baicai Xinzhan Technology Co.,Ltd. Country or region after: China Address before: Room 202, A9 Building, Phase II, Software New Town Research and Development Base, 156 Tiangu Eighth Road, Xi'an High-tech Zone, Shaanxi Province Patentee before: XI'AN BAICAIBANG NETWORK TECHNOLOGY Co.,Ltd. Country or region before: China |