CN106878136A - Message forwarding method and apparatus - Google Patents

Message forwarding method and apparatus Download PDF

Info

Publication number
CN106878136A
CN106878136A CN201611239283.0A CN201611239283A CN106878136A CN 106878136 A CN106878136 A CN 106878136A CN 201611239283 A CN201611239283 A CN 201611239283A CN 106878136 A CN106878136 A CN 106878136A
Authority
CN
China
Prior art keywords
ed
vni
packet
vm
forwarding
Prior art date
Application number
CN201611239283.0A
Other languages
Chinese (zh)
Inventor
黄李伟
王伟
Original Assignee
新华三技术有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 新华三技术有限公司 filed Critical 新华三技术有限公司
Priority to CN201611239283.0A priority Critical patent/CN106878136A/en
Publication of CN106878136A publication Critical patent/CN106878136A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. local area networks [LAN], wide area networks [WAN]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/66Layer 2 routing, e.g. in Ethernet based MAN's

Abstract

The invention provides a message forwarding method and apparatus. The method is applied to a first edge device ED in an EVPN and includes that a first ED receives the first message transmitted by a first VM, the destination address of the first message is the second VM address in a second ED, the first message carries the first VNI corresponding to the first VM; according to the correspondence relationship between the ED identification and the VNI and the forwarding information, the second ED identification and the first forwarding information matching the first VNI and the second VM address are obtained; and the first message carries the second ED identification, the first message carrying the second ED identification is sent to the second ED according to the first forwarding message, so that the second ED transmits the first message to the second VM. Therefore, the virtual exchange instances of the opposite end can be prevented from being configured on the EDs, so that the virtual exchange resource of a data center can be saved.

Description

一种报文转发方法及装置 One kind of message forwarding method and apparatus

技术领域 FIELD

[0001]本发明涉及通信技术领域,尤其涉及一种报文转发方法及装置。 [0001] The present invention relates to communication technologies, and particularly to a method and apparatus for packet forwarding.

背景技术 Background technique

[0002] EVPN (Ethernet Virtual Private Network,以太网虚拟专用网络)是一种二层VPN (Virtual Private Network,虚拟专用网络)技术,其数据平面采用VXLAN (Virtual extensible LAN,可扩展虚拟局域网络)封装方式转发报文。 [0002] EVPN (Ethernet Virtual Private Network, Ethernet Virtual Private Network) is an Layer VPN (Virtual Private Network, VPN) technology, which uses the data plane VXLAN (Virtual extensible LAN, scalable virtual local area network) Package way forward packets. EVPN可以基于已有的服务提供商或企业IP网络,为同一租户的相同子网提供二层互联;通过EVPN网关为同一租户的不同子网提供三层互联,并为其提供与外部网络的三层互联。 EVPN can be based on an existing service provider or enterprise IP networks, providing interconnection for the same subnet as the same floor tenants; provide three different subnets interconnected by the same tenants EVPN gateway, and three to provide the external network layer interconnection.

[0003] 目前,EVPN中的ED (Edge Device,边缘设备)可以通过自动发现第二ED来建立DCI (Data Center Interconnection,数据中心间二层互联)隧道;本端ED和对端ED可以通过VXLAN二层转发数据。 [0003] Currently, EVPN the ED (Edge Device, an edge device) may establish a second ED DCI (Data Center Interconnection, Layer 2 communication between the data center) automatic discovery tunnel; peer local ED and ED can VXLAN Frame forwarding data.

发明内容 SUMMARY

[0004] 本发明实施例提供一种报文转发方法和装置,可以避免第一ED与第二ED之间通过VXLAN隧道转发数据时,需要使第一ED与第二ED两者都配置对端的VNI (VXLAN Network Identifier,VXLAN网络标识符),从而造成第一ED和第二ED中VNI资源浪费的问题。 [0004] An embodiment provides a packet forwarding method and apparatus of the present invention, to avoid a first time between the ED and ED forwarding data through the second VXLAN tunnel, the first and the second ED ED are arranged on both ends VNI (VXLAN network identifier, VXLAN network identifier), resulting in the first and second ED ED in VNI resources wasted.

[0005] 本发明实施例提供一种报文转发方法,所述方法应用于以太网虚拟专用网络EVPN 中的第一ED,所述方法包括: [0005] An embodiment provides a packet forwarding method, the method is applied to a first Ethernet Virtual Private Network EVPN ED in the present invention, the method comprising:

[0006] 第一ED接收第一VM发送的第一报文,所述第一报文的目的地址为第二中的第二VM地址,所述第一报文中携带第一VM对应的第一VNI; The first packet [0006] receiving a first VM ED first transmitted the first packet destination address is the second address in the second VM, the VM corresponding to the first of the first packet carries a VNI;

[0007] 根据m)标识与VNI及转发信息的对应关系,获取与所述第一VNI和第二VM地址匹配的第二ED标识及第一转发信息; [0007] The m) identifying VNI and forwarding correspondence information, acquires the first and second VM VNI address matches a first identifier and a second forwarding information ED;

[0008] 将所述第二ED标识携带在所述第一报文中,并根据所述第一转发信息将所述携带了第二ED标识的第一报文发送给所述第二ED,以使所述第二m)将所述第一报文发送给第二VM〇 [0008] The second identification ED carried in the first packet, the forwarding information according to the first and the second packet carrying the first identification ED ED is sent to the second, so that the second m) the first packet to a second VM〇

[0009] 基于相同的构思,本发明还提供一种报文转发装置,所述装置应用于以太网虚拟专用网络EVPN中的第一边缘设备m),所述装置包括: [0009] Based on the same concept, the present invention also provides a packet forwarding device, said Ethernet device is applied to a first virtual private network edge device EVPN in m), the apparatus comprising:

[0010] 报文接收单元,用于第一ED接收第一VM发送的第一报文,所述第一报文的目的地址为第二中的第二VM地址,所述第一报文中携带第一VM对应的第一VNI; [0010] The packet receiving unit, for receiving a first message a first ED sent by the first VM, the first packet of the destination address is a second address in the second VM, the first packet VNI corresponding first carrying first the VM;

[0011] 标识获取单元,用于根据ED标识与VNI及转发信息的对应关系,获取与所述第一VNI和第二VM地址匹配的第二ED标识及第一转发信息; [0011] The identifier acquisition unit for identifying ED VNI and forwarding correspondence information, acquires the first and second VM VNI address matches a first identifier and a second forwarding information ED;

[0012]报文转发单元,用于将所述第二m)标识携带在所述第一报文中,并根据所述第一转发信息将所述携带了第二ED标识的第一报文发送给所述第二ED,以使所述第二将所述第一报文发送给第二VM。 [0012] The packet forwarding unit for the second m) identifier carried in the first packet, the forwarding information according to the first and the second packet carrying the first identification of the ED transmitted to the second ED, so that the first and the second packet to the second VM.

[0013]由此可见,本发明可以通过第一ED接收第一VM发送第一报文,其中第一报文的目的地址为第二ED中的第二VM地址,并携带第一VM对应的第一VNI,然后根据标识与vN;[及转发信息的对应关系,获取与第一VNI和第二VM地址匹配的第二ED标识及第一转发信息,再将第二ED标识携带在第一报文中,并根据第一转发信息将携带了第二ED标识的第一报文发送给第二ED,以使第二ED将第一报文发送给第二VM。 [0013] Thus, the present invention may be received by a first VM ED first transmitting a first packet, the first packet destination address for the second address ED second VM, VM corresponding to the first and carries VNI first, and then according to the identifier vN; [and forwarding correspondence information acquired VNI match the first and second VM and the first identification address of a second forwarding information ED, and then the second identifier carried in the first ED packet, and forwarding information based on the first packet carrying the first identification of a second ED ED is sent to the second, so that the second ED first packet to the second VM. 因此本发明可以通过为对端ED配置ED 标识,并将自身的多个VNI映射到该ED标识,来实现在两个之间根据ED标识转发二层业务的目的,从而避免在ED上配置对端的虚拟交换实例,节省数据中心的虚拟交换资源。 Thus, the present invention can be configured to identify the peer ED ED, and map its identity plurality VNI to the ED to achieve the purpose of service according to ED Layer forwarding identification between two, in order to avoid configuration ED end virtual switching instance, saving the virtual exchange of data center resources.

附图说明 BRIEF DESCRIPTION

[0014] 图1是现有技术的VXLAN的网络模型示意图; [0014] FIG. 1 is a schematic view of a network model VXLAN prior art;

[0015]图2是本申请一种示例性实施方式中的一种报文转发方法的处理流程图; [0015] FIG 2 is a flowchart of an application for processing a packet forwarding method according to an exemplary embodiment;

[0016] 图3a是本申请一种示例性实施方式中的组网示意图; [0016] Figure 3a is a schematic diagram of an exemplary network of the present embodiment application of one embodiment;

[0017]图3b是本申请一种示例性实施方式中的报文格式示意图; [0017] Figure 3b is a schematic view of an exemplary embodiment of the present application packet format in the embodiment;

[0018]图4a本申请一种示例性实施方式中的报文转发装置所在ED设备的硬件结构图; [0019]图4b本申请一种示例性实施方式中的一种报文转发装置的逻辑结构图。 [0018] The hardware configuration of the device is located in FIG. 4a FIG ED ​​apparatus of the present application an exemplary embodiment of the packet forwarding; [0019] FIG logic means 4b an exemplary embodiment of the present application embodiment a packet forwarding structure.

具体实施方式 Detailed ways

[0020] VXLAN的典型网络模型中包括如下几部分: [0020] VXLAN typical network model comprises the following sections:

[0021] VM (Virtual Machine,虚拟机)用于为用户提供服务,在一台服务器上可以创建多台虚拟机,不同的虚拟机可以属于不同的VXLAN。 [0021] VM (Virtual Machine, Virtual Machine) used to provide services for users, you can create multiple virtual machines on a single server, different virtual machines can belong to different VXLAN. 属于相同VXLAN的虚拟机处于同一个逻辑二层网络,彼此之间二层互通;属于不同VXLAN的虚拟机之间二层隔离。 VXLAN belonging to the same virtual machine is in the same logical network Layer, Layer communicate with each other; Layer between different virtual machines belonging VXLAN isolation. VXLAN通过VXLAN ID 来标识,VXLAN ID又称VNI(VXLAN Network Identifier,VXLAN网络标识符),其长度为24比特; VXLAN identified by VXLAN ID, VXLAN ID also known VNI (VXLAN Network Identifier, VXLAN network identifier), a length of 24 bits;

[0022] VTEP (VXLAN Tunnel End Point,VXLAN隧道端点)是VXLAN的边缘设备。 [0022] VTEP (VXLAN Tunnel End Point, VXLAN tunnel endpoint) is VXLAN the edge device. VXLAN的相关处理都在VTEP上进行,例如识别以太网数据所属的VXLAN、基于VXLAN对数据进行二层转发、封装/解封装报文等。 VXLAN correlation processing is done on the VTEP, e.g. VXLAN identification Ethernet data belongs, based on the data VXLAN Layer 2 forwarding, encapsulation / decapsulation packets and the like. VTEP可以是一台独立的物理设备,也可以是虚拟机所在的服务器; [0023] VXLAN隧道是两个VTEP之间的点到点逻辑隧道。 VTEP can be a separate physical device, the virtual machine may be a server located; [0023] VXLAN tunnel is a tunnel between the two point to point logical VTEP. VTEP为数据帧封装VXLAN头、UDP头和IP头后,通过VXLAN隧道将封装后的报文转发给远端VTEP,远端VTEP对其进行解封装; [0024] 核心设备是指IP核心网络中的设备,核心设备不参与VXLAN处理,仅需要根据封装后报文的目的IP地址对报文进行三层转发。 VTEP VXLAN data frame encapsulation header, a UDP header and IP header, a tunnel by VXLAN forwards the encapsulated packet to the remote VTEP, de-encapsulate the distal VTEP; [0024] core device is the IP core network equipment, core equipment does not participate VXLAN process, requiring only Layer 3 packet forwarding based on the encapsulated packet's destination IP address of the packet.

[0025] 如图1所示,VM3和VM1在一个二层VXLAN内,其对应的VNI1是100,VM2和VM4是在一个二层VXLAN内,其对应的VNI2是200。 [0025] 1, VM3 and in a VM1 Layer VXLAN, corresponding VNI1 is 100, VM2 and VM4 are within a Layer VXLAN, corresponding VNI2 200. 目前,若在EDI和ED2之间通过EVPN协议建立VXLAN,需要两个数据中心之间具有相同的VNI,因此在EDI上面需配置VNI为200的VXLAN,但是在EDI 所在的数据中心内部,可能并不需要VNI2为200的VXLAN业务,同样,ED2也得配置VNI2为100 的VXLAN业务。 Currently, if VXLAN established by agreement between EDI and EVPN of ED2, you need to have the same VNI between two data centers, and therefore needs to be configured in the above EDI to VXLAN VNI 200 is, but is located within the data center of EDI, and may VXLAN service is not required VNI2 200, the same, they have the configuration of ED2 VXLAN service VNI2 of 100. 如果EDI上有很多二层业务,比如VNI为1到1000个VXLAN业务,ED2上面有1001 到2〇00个VXLAN业务,那么EDI和H)2上面都要配置1到2000的业务配置,这就导致数据中心内部只有1000个在执行实际业务,而另1000个业务是闲置的,因此极大的浪费的ED上面的VXLAN业务资源。 If you have a lot of business on the second floor of EDI, such as VNI is 1-1000 VXLAN business, 1001 to 2〇00 a VXLAN business ED2 above, it must be configured EDI and H) 2 above 1-2000 service configuration, which only lead to internal data center to perform the actual business in 1000 and the other 1000 business is idle, and therefore a great waste of ED above VXLAN business resources.

[0026] 为了解决上述技术方案存在的问题,本申请实施例提供一种报文转发方法及装置,通过第一ED接收第一VM发送的第一报文,其中第一报文的目的地址为第二ED中的第二VM地址,并携带第一VM对应的第一VNI,然后根据ED标识与VNI及转发信息的对应关系(其中,ED标识用于区分不同的ED设备),获取与第一VNI和第二VM地址匹配的第二ED标识及第一转发信息,再将第二ED标识携带在第一报文中,并根据第一转发信息将携带了第二m)标识的第一报文发送给第二ED,以使第二ED将第一报文发送给第二VM。 [0026] In order to solve the above technical solution of the problems, the present embodiment provides a method and apparatus for forwarding packet, the first packet by the first VM ED receiving a first transmitted, wherein the destination address of the packet is the first ED second address in the second VM, and the VM carries the first VNI corresponding to a first, then ED in accordance with the identifier and the correspondence relationship VNI forwarding information (where, ED ED identifier is used to distinguish between different devices), and acquires the first VNI VM and a second address matches the first identifier and the second forwarding information ED, and then the second identification ED carried in the first packet, the forwarding information according to the first and the second carrying m) a first identification packet to the second ED, ED first so that the second packet to the second VM. 因此本发明可以通过为对端ED配置ED标识,并将自身的多个VNI映射到该ED标识,来实现在两个ED之间根据ED标识I转发二层业务的目的,从而避免在ED上配置对端的虚拟交换实例,节省数据中心的虚拟交换资源。 Thus, the present invention can be configured to identify the peer ED ED, and a plurality of its own identification VNI mapped to the ED, the object is achieved between the two ED Layer forwarding service according to the I ED identifier, thereby avoiding the ED configure the virtual switch instance peer, saving virtual exchange of data center resources.

[G027] 请参考图2,是本申请实施例的一种示例性实施方式中的一种报文转发方法的处理流程图,该方法应用于EVPN中的边缘设备第一ED,所述方法包括: [G027] Please refer to FIG. 2 is a process flow diagram of a method for forwarding packets of an exemplary embodiment of the present application embodiment, the method is applied to a first edge device ED EVPN, said method comprising :

[0028] 步骤201、第一ED接收第一VM发送的第一报文,所述第一报文的目的地址为第二ED 中的第二VM地址,所述第一报文中携带第一VM对应的第一VNI; [0028] Step 201, a first receiving a first message a first ED sent by the VM, the first packet destination address is the second address ED second VM, the first message carries a first VNI VM corresponding to the first;

[0029] 在本实施例中,第一ED可以接收本地第一VNI业务对应的第一VM发送的第一报文, 其中该第一报文的目的MAC地址为第二ED中的第二VM的地址,源MAC地址为所述第一VM的地址,并且该第一报文中携带第一VM对应的第一VNI,其中第二与第一ED分别属于不同数据中心。 The first packet of the first VM [0029] In the present embodiment, the first VNI ED may receive a first service corresponding to the local transmission, wherein the first packet to a second destination MAC address of the second VM in the ED address, source MAC address is the address of the first VM, and the first message carries a first VNI corresponding first VM, wherein the first and second ED belong to different data centers.

[0030] 步骤202、根据ED标识与VNI及转发信息的对应关系,获取与所述第一VNI和第二VM 地址匹配的第二ED标识及第一转发信息; [0030] Step 202 The ED VNI and forwarding information identifying the correspondence relationship, obtaining the first and second VM VNI address matches a first identifier and a second forwarding information ED;

[0031] 在本实施例中,第一ED可以根据第一报文中的第一VNI和目的地址,即第二VM的地址,在本地记录的ED标识与VNI及转发信息的对应关系中,获取与所述第一VNI和第二VM地址匹配的第二ED标识及第一转发信息,所述第一转发信息具体包括第二VM的转发表项。 [0031] In the present embodiment, a first ED according to a first VNI and destination address in the first packet, i.e. the address of the second VM, and identifies the ED VNI correspondence relationship recorded locally and forwarded information, acquiring the first and second VM VNI address matching the first identifier and the second ED forwarding information, the first forwarding information comprises a second VM forwarding entry. 具体来讲,第一ED可以通过判断所述m)标识与VNI及转发信息的对应关系中是否存在与所述第一VNI匹配的VNI,且该VNI对应的第一转发信息与所述第二VM地址匹配,若存在这样的第一VNI和第二ED标识及第一转发信息的对应关系,则获取该对应关系中的第二ED标识及第一转发信息。 Specifically, by first determining the ED m) VNI and identifying the presence or absence of the first forwarding matching VNI in VNI correspondence information and the first forwarding information corresponding to the second VNI VM address match, if there is a correspondence relationship between a first and a second VNI ED forwarding information and the first identifier, the identifier of the ED obtain a second and a first correspondence relationship forwarding information.

[0032]下面针对第一ED获取所述ED标识与VNI及转发信息的对应关系的方法,进行说明。 [0032] The following method for acquiring the identifier and ED VNI and forwarding a first correspondence information ED, will be described. [0033] 作为一个实施例,第一ED在接收到其他ED发送的携带有用于标识不同ED的ED标识的路由报文时,可以获取自身存储的VNI,以及从所述路由报文中获取ED标识以及转发信息;然后建立所述VNI与ED标识以及转发信息的对应关系。 [0033] As one example, upon receiving a first ED ED sent by other routes packets carrying the ED ED for identifying different identifier, the VNI stored in itself can be acquired, and acquiring ED message from the routing and forwarding identification information; ED and then establishing the VNI identifier and forwarding correspondence information.

[0034]具体为,第二ED获取用于表示自身的第二ED标识(该第二ED标识可以为预先设置在第二ED中的),当第一ED与第二ED之间建立隧道时,第二ED将携带了该第二ED标识的路由报文发送给第一ED (其中,该路由报文可以为根据第二ED中VM发送的ARP报文获取,并且该路由报文还携带了转发信息,该转发信息可以为MAC转发表项),当第一ED接收到第二ED发送的携带了第二ED标识的路由报文后,可以获取自身存储的VNI,以及从所述路由报文中获取第二ED标识以及转发信息;然后建立所述VNI与第二ED标识以及转发信息的对应关系。 [0034] Specifically, the second acquiring ED itself for indicating a second identification ED (ED the second identifier may be provided in advance as in the second ED), when the ED between the first and the second tunnel establishing ED second carrying route ED ED identification of the second packet to a first ED (wherein, the packet may be routed to obtain an ARP packet according to the second VM ED, and the route packet further carries forwarding information, the forwarding information may be a MAC forwarding entry), when the first transmission ED ED receiving the second message carrying the second route identifier ED, VNI stored in itself can be acquired, and from the routing obtaining a second packet identifier and forwarding information ED; VNI and then establishing the second ED identifier and forwarding correspondence information. [0035] 在另一种实现方式中,第二ED获取用于表示自身的第二ED标识后,还可以在第二中建立第二ED标识与第二ED中存储的VNI的对应关系(为了与前述对应关系区分,以下将第二ED中建立的第二ED标识与第二m)中存储的VNI的对应关系称为目标对应关系),进一步,根据目标对应关系获取该路由报文,具体为,根据目标对应关系中的VNI确定对应的第二VM,进一步获取第二VM的转发信息并生成对应的路由报文。 [0035] In another implementation, the second ED for obtaining a rear ED second identification itself may also establish a second corresponding relationship between the identity and the second ED ED VNI stored in the second (for m second ED identity and the second corresponding relationship with the distinction will be established in the second ED) corresponding relationship stored in VNI correspondence relationship called the target), further, to obtain the corresponding relationship between the target packet routing, particularly is determined based on the target corresponding to the second VM correspondence relationship VNI, further obtains forwarding information of the second VM and generates corresponding routing packets.

[0036]需要说明的是,第一ED在根据第二ED发送的路由报文建立对应关系时,可以将自身存储的全部VNI与该第二ED标识和转发信息建立对应关系,也可以根据业务需要从自身存储的VNI中选取部分VNI与第二ED标识和转发信息建立对应关系。 [0036] Incidentally, when the first ED packet routing according to a second correspondence relationship ED transmitted, itself may be stored in VNI all correspondence relation to the second identifier and forwarding information ED can also be based on business VNI need to select the portion of the second identification ED and correlating information from the forwarding itself VNI stored.

[0037]当第一ED收到其他ED发送的携带ED标识的路由报文之后,在一种实施例中,可以直接处理该路由报文,获取该路由报文中的转发信息和ED标识,并根据获取的转发信息和ED标识建立对应关系;但是考虑到网络中可能存在不需与第一ED进行业务互通的其他ED, 因此为了实现针对不同ED发送的路由报文,有选择性的建立对应关系,本申请提供了另一种实施例,包括,第一ED获取自身存储的VNI,以及从所述路由报文中获取ED标识以及转发信息之后,还可以进一步判断自身是否存在与所述路由报文中携带的标识匹配的第三ED 标识(其中,该第三ED标识可以配置在第一ED中),若存在,则说明发送该路由报文ED与第一有业务互通,因此第一ED可以在本地建立所述VNI与ED标识以及转发信息的对应关系,从而指导后期的报文转发。 [0037] When the first message carries routing received ED ED ED other identifier sent, in one embodiment, can directly process the message routing, and acquiring the forwarding information identifying the ED routing packets, and establishing a corresponding relationship according to the forwarding information ED and the acquired identifier; but in view of the network may be other ED without performing the first service interworking with ED, and therefore in order to achieve route packets for different ED, there are selectively established correspondence, the present application provides another embodiments, including, acquiring a first ED VNI stored in itself, and acquiring ED identifier from the routing packet forwarding information and thereafter, may further determine whether it is present and the ED third identification packet routing identifier carried in the matching (wherein the third identifier may be arranged in a first ED ED) is, if present, it indicates the transmitted packet routing ED has first and second service interworking Thus, ED can create a message in the local VNI with ED and forwarding correspondence between the identification information to guide later forwarding.

[0038] 步骤203、将所述第二ED标识携带在所述第一报文中,并根据所述第一转发信息将所述携带了第二ED标识的第一报文发送给所述第二H),以使所述第二ED将所述第一报文发送给第二VM。 [0038] Step 203, the second identifier carried in the ED of the first packet, the forwarding information according to the first and the second packet carrying the first identification is transmitted to the ED of two H), so that the second ED of the first packet to the second VM.

[0039] 在本实施例中,当第一ED获取与所述第一VNI和第二VM地址匹配的第二ED标识及第一转发信息时,可以将所述第二ED标识携带在所述第一报文中,并根据所述第一转发信息将所述携带了第二ED标识的第一报文发送到第二ED,以使所述第二K)将所述第一报文发送给第二VM。 [0039] In the present embodiment, when the first ED obtaining the first and second VM VNI address matching the first identifier and the second forwarding information ED, ED may be the second identifier carried in the a first packet, the forwarding information according to the first and the second packet carrying the first identification transmission to the second ED ED, so that the second K) transmitting the first packet to the second VM.

[0040] 作为一个实施例,第一ED将所述第二ED标识携带在所述第一报文中,具体是将所述第一报文中的第一VNI替换为所述第二ED标识,由于第二ED没有第一VNI对应的虚拟交换实例,因此将第一报文中的第一VNI替换为第二ED标识可以实现第一报文在ED之间的业务转发。 [0040] As one example, a first ED ED said second identification carried in the first message, in particular the first packet is replaced with the first VNI second identification ED Since there is no first second VNI ED corresponding virtual switch instance, so the first packet in a first to a second ED VNI replaced identification may be implemented in a first packet forwarding traffic between ED.

[0041] 进一步的,当所述第二ED收到所述第一报文时,判断出该第一报文中携带了第二ED标识,则表示可以处理该第一报文,进一步,可以根据所述第一报文中携带的目的地址确定第二VM对应的第二VNI,然后将所述第一报文携带的所述第二ED标识替换为第二VM对应的第二VNI,之后将所述第一报文转发至第二VM。 [0041] Further, when the second ED receives the first message, it is determined that the first packet carries a second identification ED, it indicates the first packet can be processed further, can be carried in the first packet to determine a second destination address corresponding to the second VM VNI, and then the first packet carrying the second identification is replaced with a second VNI ED VM corresponding to the second, according to the following the first packet is forwarded to the second VM.

[0042] 作为另一个实施例,第一ED将所述第二ED标识携带在所述第一报文中,具体可以是在所述第一报文中增加用于携带第二ED标识的报文结构,将第二ED以及第一VNI携带在该第一报文中发送给第二ED,当第二m)接收到携带了第二ED标识和第一VNI的第一报文后, 根据第一报文的目的地址发送给第二VM。 [0042] As another example, a first ED ED said second identification carried in the first message, the particular message may be used to carry a second increase ED identified in the first message hereinafter structure, a first and a second ED VNI carried to a second ED in the first message, when the second m) receiving the second carries the first identifier and ED VNI a first packet, in accordance with the first destination address of the packet sent to the second VM. One

[0043] 作为另一个实施例,若第二ED中存在第二ED标识与第二ED中存储的丽的目标对应关系,当第二收到所述第一报文时,判断出该第一报文中携带了第二ED标识,获取该第一报文中的目的地址并确定该目的地址指向第二VM,获取该第二穩对应的第二VNI,判断所述目标对应关系中是否存在所述第二VNI,若存在,则将所述第二VNI携带在第一报文中并发送给第二VM。 [0043] As another example, if the corresponding relationship between a second target Korea identity and the second ED ED ED stored in the presence of a second, when the first message is received second, it is determined that the first message carries a second identification ED, first obtaining a destination address of the packet and determining that the VM object points to the second address, the second acquiring a second VNI corresponding stable, the target determines whether there is a correspondence relationship the second VNI, if present, will be carried in the second VNI first packet sent to the second VM.

[0044] 另外,需要说明的是,在本申请采用术语第一、第二、第三等来描述不同的ED,但这些信息不应限于这些术语。 [0044] Further, it is noted that, in this application, the term first, second, third, etc., to describe various ED, but they should not be limited by these terms. 这些术语仅用于区分即的角色,例如,在不脱离本申请范围的情况下,第一ED也可以被称为第二ED,类似地,第二ED也可以被称为第一ED。 These terms are only used to distinguish the role i.e., e.g., without departing from the scope of the present application, a first ED ED may also be termed a second, similarly, the second may also be referred to as first ED ED. 因此第:ED上的报文转发以及路由报文同步与上述第一m)中的处理方法类似,本文不再赘述。 Thus the first: the packet forwarding and routing packets ED synchronously with said first m) in a similar process method, will not be repeated herein.

[0045] 相比于现有技术,本发明可以通过使不同ED根据ED标识,并将不同ED上的多个VNI 映射到该ED标识上,从而在不同ED之间实现转发二层业务的目的,因此本发明可以避免在不同ED上配置对端的虚拟交换实例,节省数据中心的虚拟交换资源。 [0045] Compared to the prior art, the present invention can be identified according to the ED, and maps a plurality of different VNI on to the ED ED ED identified by a different, so as to achieve the purpose of forwarding traffic between different Layer ED Therefore the present invention avoids virtual end disposed on a different exchange ED instances, to save the virtual switching of data center resources.

[0046] 为使本发明的目的、技术方案及优点更加清楚明白,下面结合图3a、3b对本申请的方案作进一步地详细说明。 [0046] To make the objectives, technical solutions and advantages of the present invention will become more apparent below in conjunction with FIGS. 3a, 3b of the present application as described in further detail.

[0047] 在本实施例中,以MAP VNI作为ED标识(即针对每一个ED均会对应一个不同的MAP VNI),对本申请的方案进行进一步说明,请参考图3a为本实施例中的EVPN组网示意图,该组网中包括:ED 1和H)2之间通过EVPN协议动态的建立了VXLAN DCI隧道,EDI上面建立的VXLAN DCI隧道的目的地址为ED2的MAC地址2• 2• 2• 2;ED2上面建立的VXLAN DCI隧道的目的地址为EDI的MAC地址1 • 1 • 1 • 1;同时在EDI和ED2上配置了对应的ED标识,S卩MAP VNI为10000,贝丨j,在EDI配置的隧道信息包括:MAP VNI为10000与目的地址为2 • 2.2.2的对应关系;在ED2上配置的隧道信息包括:MAP VNI为10000与目的地址为1.1.1.1的对应关系。 [0047] In the present embodiment, in order to MAP VNI as ED identifier (i.e., for each ED will correspond to a different MAP VNI), of the present application will be further described, refer to Figure 3a of the present embodiment EVPN Network diagram, the networking comprises: ED 1 and H) between the two protocols by EVPN VXLAN DCI dynamically established tunnel, the destination address of the tunnel established VXLAN DCI EDI above the MAC address of ED2 2 • 2 • 2 • 2; destination address VXLAN DCI tunnel established ED2 above for the EDI MAC address 1 • 1 • 1 • 1; simultaneously in EDI and ED2 configured and the ED identification, S Jie MAP VNI 10000, shellfish Shu j, in EDI tunnel configuration information comprises: MAP VNI 10000 and the destination address is 2 • 2.2.2 correspondence relationship; tunnel information on ED2 comprising: MAP VNI 10000 and the destination address as the correspondence relationship 1.1.1.1. 配置完隧道的目的地址和MAP VNI之间的对应关系之后,在EDI和ED2跨数据中心互通时,EDI和ED2上的所有的VNI都可以映射到该MAP VNI上面,用户也可以根据自己的需求,删除某个数据中心内部的VNI到MAP VNI的对应关系,这样更加有利于用户对网络业务的处理。 After completion of configuring a corresponding relationship between the destination addresses of the tunnel and the MAP VNI, in exchange across data centers when EDI and ED2, EDI and ED2 all VNI on the MAP can be mapped to the VNI above, the user can according to their needs , delete VNI an internal data center to the correspondence between the MAP VNI, so more conducive to users on the network processing business.

[0048] VM1是直接连接到VNI为100的二层vxlan业务的虚拟机,当VM1上线时会发送免费ARP报文给ED1,ARP报文中的源地址为VM1的P地址和MAC地址;EDI通过学习ARP报文中IP地址和MAC地址,在本地生成mac AAA转发表项,EDI会将该mac AAA表项通过EVPN路由发送给所有的BGP EVPN邻居对端,其中包括目的MAC地址为2.2.2.2的ED2。 [0048] VM1 is connected directly to the VNI to Layer vxlan service 100 of the virtual machine, when the line VM1 sends a gratuitous ARP packet to ED1 of, ARP packets the source address of the VM1 P and MAC addresses; EDI ARP packet by learning the IP address and MAC address, generated locally mac AAA forwarding entry, EDI mac AAA sends the routing table entry by EVPN EVPN neighbor to all the BGP peer, which includes the destination MAC address is 2.2. 2.2 ED2.

[0049] 进一步的,如图3b所示的路由报文结构,EDI可以在EVPN路由报文中增加RD (Route-Distinguisher,路由区分符)和RT (Route-Target,路由目标)的扩展团体属性,例如,在ED 1和ED2上为MAP VNI对应的VXLAN业务配置对应的RD和RT,其中,RD用于区分不同ED,RT用于标识同一个ED发送的不同的路由,因此ED 1将携带mac AAA表项的EVPN路由以及MAP VN发送至IjED2的时候,可以在EVPN路由中携带EDI对应的RD,即1 • 1 • 1 • 1:10000;以及EDI的MAP VNI中的业务对应的RT,例如import vpn-target和export vpn-target都配置成65000:10000。 [0049] Further, the routing packet structure shown in FIG. 3b, EDI can increase RD (Route-Distinguisher, route distinguisher) and RT (Route-Target, target route) extended community attribute in the route packet EVPN for example, in the ED. 1 and ED2 of MAP VNI VXLAN corresponding service configuration corresponding to the RD and RT, wherein, RD ED are used to distinguish, identify RT for different routes of transmission same ED, ED. 1 and therefore carry the mac AAA EVPN routing entries and MAP VN sent to IjED2 time, may be carried in EVPN route EDI corresponding RD, i.e. 1 • 1 • 1 • 1: 10000; and a service corresponding to RT MAP VNI EDI in, For example import vpn-target export vpn-target and are arranged to 65000: 10000. 当ED2接受到该EVPN路由之后,通过解析该EVPN路由中的RT和RD信息,将该EVPN路由向对应业务进行引入,即在本地记录MAP VNI为10000与VNI2为200以及mac AAA 转发表项的对应关系。 When the received ED2 EVPN route, the routes EVPN introduced to a corresponding service by parsing the information in the RD and RT EVPN route, i.e., as recorded in the local MAP VNI 200 and 10,000 and VNI2 mac AAA forwarding entries correspondence.

[0050]当ED2接收VM2发送的第一报文时,其中第一报文的目的地址为EDI中的VM1的MAC 地址,第一报文中携带VM2对应的VNI2;然后ED2可以根据本地记录的MAP VNI为10000与VNI2为200以及mac AAA转发表项的对应关系,获取与VNI2和VM2的MAC地址匹配的MAP VNI为10000以及mac AAA转发表项;再将所述MAP VNI携带在所述第一报文中,并根据mac AAA转发表项将携带了MAP VNI的第一报文发送给EDUED1收到携带MAP VNI的第一报文后,可以进一步根据第一报文的目的地址,即VM1的MAC地址,查找VM1所属的VNI1,即100;然后将该第一报文携带的MAP VNI替换为VNI1,最后根据本地记录的mac AAA转发表项将该第一报文发送给VM1。 [0050] When receiving the first packet ED2 VM2 transmitted, wherein the destination address of the first packet is the MAC address of the EDI the VM1, VM2 carried in the first packet corresponding VNI2; ED2 can then locally recorded MAP VNI VNI2 200 and 10000 and mac AAA forwarding entry corresponding relationship, and acquires the MAC address VNI2 VM2 matching MAP VNI and mac AAA 10,000 forwarding entries; then the MAP VNI carried in the first a message, and in accordance with mac AAA forwarding entries will carry a MAP VNI first message sent after receipt of EDUED1 carry MAP VNI first message may further according to the destination address of the first packet, that is VM1 MAC address lookup VNI1 VM1 belongs, i.e., 100; and the first MAP VNI carried in the packet is replaced VNI1, and finally the first forwarding entry packet to VM1 the mac AAA recorded locally.

[0051]因此本发明可以通过将ED中的多个VNI映射到一个MAP VNI,来实现数据中心之间二层业务的转发共用VNI的目的;由于数据中心内部的L2VNI可以自动的映射到对应的MAP VNI上面,可以相对减少用户手工的配置,提供了整个EVPN组网的自动化程度,同时,如果有某个VNI的业务不需要跟跨数据中心进行转发,用户可以手动的删除或者添加VNI到MAP VNI的映射关系;而且本发明扩展了EVPN 2类路由,增加了MAP VNI和RT的扩展属性团体,让EVPN 2类路由在数据中心ED之间同步的时候,可以在MAP VNI和普通的L2VNI之间正常的来回迁徙,很提高数据系统的灵活性。 [0051] Thus, the present invention can be produced by the ED VNI mapped to a plurality of MAP VNI, to achieve the purpose of forwarding the common VNI Layer traffic between data centers; as L2VNI within the data center can be automatically mapped to a corresponding MAP VNI above, can be relatively reduced user manual configuration, provide the entire network automation EVPN the same time, if there is no need for a VNI business with forward across the data center, users can manually delete or add to VNI MAP VNI mapping relation; and the present invention extends EVPN type 2 routing, an increase of the mAP VNI RT and extended attribute groups, so EVPN type 2 routing synchronization between the data center when the ED, the mAP can VNI of ordinary L2VNI the migration back and forth between normal, increase the flexibility of data systems.

[0052] 基于相同的构思,本发明还提供一种报文转发装置,该装置可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。 [0052] Based on the same concept, the present invention also provides a packet forwarding device that can be implemented by software may be realized by way of hardware or a combination of hardware and software. 以软件实现为例,本发明的报文转发装置作为一个逻辑意义上的装置,是通过其所在装置的CPU将存储器中对应的计算机程序指令读取后运行而成。 Implemented in software as an example, the packet forwarding device of the present invention as a means of logical sense, after the memory corresponding computer program instructions read by the CPU of the device from which it is running.

[0053]请参考图4a,是本发明一种示例性实施方式中的一种报文转发装置400,所述装置应用于EVPN中的第一ED,该装置基本运行环境包括CPU,存储器以及其他硬件,从逻辑层面上来看,该装置400的逻辑结构如图4b所示,其中包括: [0053] Please refer to FIG 4a, the message is an exemplary embodiment of one inventive embodiment of the transfer apparatus 400, the first device ED is applied EVPN, the apparatus comprises a basic operating environment CPU, a memory, and other hardware, from a logical perspective, the logical structure of the apparatus 400 is shown in Figure 4b, which comprises:

[0054] 报文接收单元401,用于第一ED接收第一VM发送的第一报文,所述第一报文的目的地址为第二m)中的第二VM地址,所述第一报文中携带第一VM对应的第一VNI; The [0054] The packet receiving unit 401, a first ED receiving a first message sent by the first VM, the first packet is destined to a second m) address of the second VM, the first VNI first packet carries the VM corresponding to the first;

[0055] 标识获取单元402,用于根据ED标识与VNI及转发信息的对应关系,获取与所述第一VNI和第二VM地址匹配的第二ED标识及第一转发信息; [0055] The identifier acquisition unit 402, according to ED identifying VNI and forwarding correspondence information, acquires the first and second VM VNI address matches a first identifier and a second forwarding information ED;

[0056] 报文转发单元403,用于将所述第二ED标识携带在所述第一报文中,并根据所述第一转发信息将所述携带了第二ED标识的第一报文发送给所述第二ED,以使所述第二ED将所述第一报文发送给第二VM。 [0056] The packet forwarding unit 403, the second identifier for ED carried in the first packet, the forwarding information according to the first and the second packet carrying the first identification of the ED transmitted to the second ED, ED such that the first and the second packet to the second VM.

[0057] 可选的,所述标识获取单元402,具体用于若所述ED标识与VNI及转发信息的对应关系中存在与所述第一VNI匹配的VNI,且该VNI对应的第一转发信息与所述第二VM地址匹配时,获取与所述第一VNI和第二VM地址匹配的第二ED标识及第一转发信息。 [0057] Optionally, the identifier acquisition unit 402, particularly if the ED for the identification and forwarding VNI VNI VNI matching the first correspondence information present in, and corresponding to the first forwarding VNI when the address information matches the second VM, obtaining the first and second VM VNI address matching the first identifier and the second forwarding information ED.

[0058] 可选的,所述装置还包括: [0058] Optionally, the apparatus further comprising:

[0059] 关系建立单元404,用于接收其他ED发送的携带有用于标识不同ED的ED标识的路由报文;获取自身存储的VNI,以及从所述路由报文中获取ED标识以及转发信息;建立所述VNI与ED标识以及转发信息的对应关系。 [0059] The relationship establishing unit 404 for receiving packets carrying route for transmission of other ED ED ED of identifying different identifier; acquiring VNI stored in itself, and acquiring ED identifier from the routing and packet forwarding information; and establishing the VNI ED identifier and forwarding correspondence information.

[0060]可选的,所述关系建立单元404,还用于在获取自身存储的VNI,以及从所述路由报文中获取ED标识以及转发信息之后,判断自身是否存在与所述路由报文中携带的ED标识匹配的第三ED标识;若存在,则建立所述VNI与ED标识以及转发信息的对应关系。 [0060] Optionally, the relationship creation unit 404 is further configured to obtain the VNI stored in itself, and acquiring ED identifier from the routing packet forwarding information and thereafter, judging whether the present packet routing identifier carried in the third ED ED identification match; if yes, establishing the VNI and ED identifier and forwarding correspondence information.

[0061]可选的,所述报文转发单元403,具体用于将所述第一报文中的第一VNI替换为所述第二标识。 [0061] Optionally, the packet forwarding unit 403, specifically the first VNI for the first packet is replaced with the second identification.

[0062]可选的,所述报文转发单元4〇3,具体用于以使当所述第二ED收到所述第一报文时,根据所述第一报文中携带的目的地址确定第二VM对应的第二VNI,将所述第一报文携带的所述第二标识替换为第二VM对应的第二VNI,之后将所述第一报文转发至第二VM。 [0062] Optionally, the packet forwarding unit 4〇3 specifically configured such that when the second ED receives the first message, the destination address carried in the first packet of determining a second VNI corresponding to the second VM, the first packet carrying the second identification of a second alternative VNI corresponding to the second VM after the first packet is forwarded to the second VM.

[0063]由此可见,本发明可以通过第一ED接收第一VM发送第一报文,其中第一报文的目的地址为第二ED中的第二VM地址,并携带第一VM对应的第一VNI,然后根据ED标识与VNI及转发信息的对应关系,获取与第一VNI和第二VM地址匹配的第二ED标识及第一转发信息,再将第二ED标识携带在第一报文中,并根据第一转发信息将携带了第二ED标识的第一报文发送给第二ED,以使第二ED将第一报文发送给第二VM。 [0063] Thus, the present invention may be received by a first VM ED first transmitting a first packet, the first packet destination address for the second address ED second VM, VM corresponding to the first and carries VNI first, then ED in accordance with the identification and forwarding VNI correspondence information acquired VNI match the first and second VM and the first identification address of a second forwarding information ED, and then the second identifier carried in the first packet ED paper, and sent to the second forwarding information ED in accordance with a first packet carrying the first identification of the second ED, ED first so that the second packet to the second VM. 因此本发明可以通过为对端ED配置ED 标识,并将自身的多个VNI映射到该H)标识,来实现在两个ED之间通过ED标识转发二层业务的目的,从而避免在ED上配置对端的虚拟交换实例,节省数据中心的虚拟交换资源。 Thus, the present invention can be configured to identify the peer ED ED, and a plurality of itself to the map VNI H) identified, to achieve the purpose of forwarding traffic between two floor by ED ED identification, thereby avoiding the ED configure the virtual switch instance peer, saving virtual exchange of data center resources.

[0064] 上述装置中各个单元的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。 [0064] The means to achieve functions and effects of the process of each unit specific detailed implementation process of corresponding steps of the above method, not described herein again.

[0065] 对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。 [0065] For the apparatus of the embodiment, since a method which substantially corresponds to the embodiment, the portion of the embodiment of the method embodiments to be described where relevant. 以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。 It means the above-described embodiments are merely illustrative, as a unit wherein the separate parts may be or may not be physically separate, parts displayed as units may be or may not be physical units, i.e. may be located a place, or they may be distributed to multiple network units. 可以根据实际的需要选择其中的部分或者全部模块来实现本申请方案的目的。 Part or all of the modules may be selected according to actual needs to achieve the purposes of this application program. 本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。 Those of ordinary skill in the art without creative efforts, can be understood and implemented.

[0066] 以上所述仅为本发明的较佳实施例而己,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。 Example hexyl and [0066] The foregoing is only preferred embodiments of the present invention, not intended to limit the present invention, all within the spirit and principle of the present invention, any changes made, equivalent substitutions, improvements, etc., should It included within the scope of protection of the present invention.

Claims (12)

1.一种报文转发方法,其特征在于,所述方法应用于以太网虚拟专用网络EVPN中的第一边缘设备ED,所述方法包括: 第一ED接收第一VM发送的第一报文,所述第一报文的目的地址为第二ED中的第二VM地址,所述第一报文中携带第一VM对应的第一VNI; 根据ED标识与州〗及转发信息的对应关系,获取与所述第一VNI和第二VM地址匹配的第二ED标识及第一转发信息; 将所述第二ED标识携带在所述第一报文中,并根据所述第一转发信息将所述携带了第二ED标识的第一报文发送给所述第二ED,以使所述第二将所述第一报文发送给第二VM。 A packet forwarding method, wherein said method is applied to a first edge device ED Ethernet virtual private network EVPN, said method comprising: receiving a first packet of the first VM first transmitted ED , destination address of the first packet of the second VM ED second address, the first message carries a first VNI corresponding to the first VM; ED according to a correspondence relationship with the identification and forwarding information state〗 acquiring the first and second VM VNI address matches a first identifier and a second forwarding information ED; ED said second identifier carried in the first message, and forwarding information according to the first the first packet carrying the second identification ED ED is sent to the second, the second to the first packet to the second VM.
2.根据权利要求1所述的方法,其特征在于,所述根据ED标识与VNI及转发信息的对应关系,获取与所述第一VNI和第二VM地址匹配的第二ED标识及第一路由信息,包括: 若所述ED标识与VNI及转发信息的对应关系中存在与所述第一VNI匹配的VNI,且该VNI 对应的第一转发信息与所述第二VM地址匹配时,获取与所述第一VNI和第二VM地址匹配的第二ED标识及第一转发信息。 2. The method according to claim 1, characterized in that, according to the ED VNI and forwarding information identifying the correspondence relationship, obtaining the first and second VM VNI address matching the first identifier and the second ED routing information, comprising: if the presence of the first matching VNI VNI ED corresponding relationship between the identifier and the forwarding information and VNI in VNI and the forwarding information corresponding to the first VM and the second address match, acquires VNI the first and second VM address matching the first identifier and the second forwarding information ED.
3.根据权利要求1所述的方法,其特征在于,获取所述ED标识与VNI及转发信息的对应关系的方法,包括: 接收其他ED发送的携带有用于标识不同ED的ED标识的路由报文; 获取自身存储的VNI,以及从所述路由报文中获取ED标识以及转发信息; 建立所述VNI与ED标识以及转发信息的对应关系。 3. The method according to claim 1, wherein, identifying and acquiring the ED method VNI and forwarding correspondence information, comprising: receiving a transmitted additional ED for identifying packets carrying different routes of ED ED identified text; Get VNI stored in itself, and acquiring from the packet routing and forwarding identification information of ED; VNI establishing the correspondence relationship with the identification and forwarding information ED.
4.如权利要求3所述的方法,其特征在于,所述获取自身存储的VNI,以及从所述路由报文中获取ED标识以及转发信息之后,还包括: 判断自身是否存在与所述路由报文中携带的ED标识匹配的第三ED标识; 若存在,则建立所述VNI与ED标识以及转发信息的对应关系。 4. The method according to claim 3, wherein, said acquiring VNI stored in itself, and acquiring ED identifier from the routing packet forwarding information and thereafter, further comprising: judging whether the route is present carried in the third packet identifier ED ED identification match; if yes, establishing the VNI and ED identifier and forwarding correspondence information.
5.根据权利要求1所述的方法,其特征在于,所述将所述第二ED标识携带在所述第一报文中,包括: 将所述第一报文中的第一VNI替换为所述第二ED标识。 5. The method according to claim 1, characterized in that the said second identifier carried in the ED of the first packet, comprising: the first packet is replaced with a first VNI the second identification ED.
6.根据权利要求5所述的方法,其特征在于,所述以使所述第二ED将所述第一报文发送给第二VM,包括: 以使当所述第二ED收到所述第一报文时,根据所述第一报文中携带的目的地址确定第二VM对应的第二VNI,将所述第一报文携带的所述第二ED标识替换为第二VM对应的第二VNI,之后将所述第一报文转发至第二VM。 6. The method according to claim 5, characterized in that the ED so that the second of the first packet to the VM second, comprising: so that when said second received the ED when said first packet, determining a second corresponding to the second VM VNI the destination address carried in the first packet of the first packet carrying the second identification ED corresponding to replace the second VM second VNI, after the first packet is forwarded to the second VM.
7.—种报文转发装置,其特征在于,所述装置应用于以太网虚拟专用网络EVPN中的第一边缘设备ED,所述装置包括: 报文接收单元,用于第一ED接收第一VM发送的第一报文,所述第一报文的目的地址为第二ED中的第二VM地址,所述第一报文中携带第一VM对应的第一VNI; 标识获取单元,用于根据ED标识与VNI及转发信息的对应关系,获取与所述第一VNI和第二VM地址匹配的第二ED标识及第一转发信息; 报文转发单元,用于将所述第二ED标识携带在所述第一报文中,并根据所述第一转发信息将所述携带了第二m)标识的第一报文发送给所述第二ED,以使所述第二ED将所述第一报文发送给第二VM。 7.- species packet forwarding apparatus, characterized in that said device is applied to a first edge device ED Ethernet virtual private network EVPN, said apparatus comprising: a packet receiving unit, for receiving a first first ED the first packet sent by the VM, the first packet of the destination address is a second address of a second VM in the ED, the first message carries a first VNI corresponding to the first VM; identifier acquisition unit for the ED VNI to identify and forwarding correspondence information, acquires the first and second VM VNI address matches a first identifier and a second forwarding information ED; packet forwarding unit for the second ED identifier carried in the first packet, the forwarding information according to the first and the second carrying m) identifying a first packet to the second ED, so that the second will ED the first packet to the second VM.
8.根据权利要求7所述的装置,其特征在于, 所述标识获取单元,具体用于若所述ED标识与VNI及转发信息的对应关系中存在与所述第一VNI匹配的VNI,且该VNI对应的第一转发信息与所述第二vm地址匹配时,获取与所述第一VNI和第二VM地址匹配的第二ED标识及第一转发信息。 8. The apparatus according to claim 7, wherein the identifier obtaining unit is specifically configured to, if the identifier and the ED and forwarding VNI VNI VNI matching the first correspondence information in the present, and VNI corresponding to the first information and the second forwarding address matching vm, obtaining the first and second VM VNI address matching the first identifier and the second forwarding information ED.
9. 根据权利要求7所述的装置,其特征在于,所述装置还包括: 关系建立单元,用于接收其他ED发送的携带有用于标识不同ED的ED标识的路由报文; 获取自身存储的VNI,以及从所述路由报文中获取ED标识以及转发信息;建立所述VNI与ED 标识以及转发信息的对应关系。 9. The apparatus according to claim 7, characterized in that said apparatus further comprising: a relation establishing unit, configured to receive another transmission of the ED route packets carrying the ED ED for identifying different identifier; obtaining stored in itself VNI, and acquiring from the packet routing and forwarding identification information of ED; VNI establishing the correspondence relationship with the identification and forwarding information ED.
10. 如权利要求9所述的装置,其特征在于, 所述关系建立单元,还用于在获取自身存储的VNI,以及从所述路由报文中获取ED标识以及转发信息之后,判断自身是否存在与所述路由报文中携带的ED标识匹配的第三ED标识;若存在,则建立所述VNI与ED标识以及转发信息的对应关系。 After 10. The apparatus according to claim 9, wherein the relation establishing unit is further configured to obtain VNI stored in itself, and acquiring ED identifier from the routing and packet forwarding information, determines whether itself identification match exists ED ED third packet identifier and the routing carried; if yes, establishing the VNI and ED identifier and forwarding correspondence information.
11. 根据权利要求7所述的装置,其特征在于, 所述报文转发单元,具体用于将所述第一报文中的第一VNI替换为所述第二ED标识。 11. The apparatus according to claim 7, wherein said packet forwarding unit, particularly for the first packet in the first VNI replace the second identifier ED.
12. 根据权利要求11所述的装置,其特征在于, 所述报文转发单元,具体用于以使当所述第二ED收到所述第一报文时,根据所述第一报文中携带的目的地址确定第二VM对应的第二VNI,将所述第一报文携带的所述第二ED标识替换为第二VM对应的第二VNI,之后将所述第一报文转发至第二VM。 12. The apparatus according to claim 11, wherein said packet forwarding unit is configured such that when the second ED when the first message is received, according to the first packet determining a destination address carried in the second VNI corresponding to the second VM, the first packet carrying the second identification is replaced with a second VNI ED VM corresponding to the second, after the first packet forwarding to the second VM.
CN201611239283.0A 2016-12-28 2016-12-28 Message forwarding method and apparatus CN106878136A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611239283.0A CN106878136A (en) 2016-12-28 2016-12-28 Message forwarding method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611239283.0A CN106878136A (en) 2016-12-28 2016-12-28 Message forwarding method and apparatus

Publications (1)

Publication Number Publication Date
CN106878136A true CN106878136A (en) 2017-06-20

Family

ID=59164141

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611239283.0A CN106878136A (en) 2016-12-28 2016-12-28 Message forwarding method and apparatus

Country Status (1)

Country Link
CN (1) CN106878136A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108199963A (en) * 2017-12-27 2018-06-22 新华三技术有限公司 Message forwarding method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103841028A (en) * 2014-03-24 2014-06-04 杭州华三通信技术有限公司 Method and device for forwarding messages
CN103905284A (en) * 2012-12-27 2014-07-02 杭州华三通信技术有限公司 EVI-network-based flow load sharing method and device
CN104350714A (en) * 2014-05-29 2015-02-11 华为技术有限公司 Packet forwarding method and VxLAN gateway
CN104468394A (en) * 2014-12-04 2015-03-25 杭州华三通信技术有限公司 Method and device for forwarding messages in VXLAN network
CN104579954A (en) * 2013-10-16 2015-04-29 华为技术有限公司 Message cross-domain forwarding method and device as well as communication device
CN104601427A (en) * 2013-10-31 2015-05-06 杭州华三通信技术有限公司 Message forwarding method and device in data center network
CN105515978A (en) * 2016-01-08 2016-04-20 盛科网络(苏州)有限公司 Method and device for realizing distributed routing and physical host access

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905284A (en) * 2012-12-27 2014-07-02 杭州华三通信技术有限公司 EVI-network-based flow load sharing method and device
CN104579954A (en) * 2013-10-16 2015-04-29 华为技术有限公司 Message cross-domain forwarding method and device as well as communication device
CN104601427A (en) * 2013-10-31 2015-05-06 杭州华三通信技术有限公司 Message forwarding method and device in data center network
CN103841028A (en) * 2014-03-24 2014-06-04 杭州华三通信技术有限公司 Method and device for forwarding messages
CN104350714A (en) * 2014-05-29 2015-02-11 华为技术有限公司 Packet forwarding method and VxLAN gateway
CN104468394A (en) * 2014-12-04 2015-03-25 杭州华三通信技术有限公司 Method and device for forwarding messages in VXLAN network
CN105515978A (en) * 2016-01-08 2016-04-20 盛科网络(苏州)有限公司 Method and device for realizing distributed routing and physical host access

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108199963A (en) * 2017-12-27 2018-06-22 新华三技术有限公司 Message forwarding method and device

Similar Documents

Publication Publication Date Title
US9042384B2 (en) Distributed routing domains in multi-tenant datacenter virtual networks
US9374323B2 (en) Communication between endpoints in different VXLAN networks
AU2013303200B2 (en) Method and system for virtual and physical network integration
US7359394B2 (en) Method and apparatus for bridging between networks
CA2895001C (en) Method and apparatus for implementing communication between virtual machines
US20150172190A1 (en) Packet forwarding
US9887916B2 (en) Overlay tunnel in a fabric switch
US20150124823A1 (en) Tenant dhcp in an overlay network
EP2897347B1 (en) Method for transmitting addresses correspondence relationship in second-layer protocol using link status routing
US8369333B2 (en) Method and apparatus for transparent cloud computing with a virtualized network infrastructure
CN102804693B (en) Method and apparatus for L2 VPN implemented in the network ip
CN102577255B (en) Layer 2 seamless site extension of enterprises in cloud computing
CN102164091B (en) Method for building MAC (Media Access Control) address table and provider edge device
EP2982097B1 (en) Method and apparatus for exchanging ip packets among network layer 2 peers
CN102859973B (en) Method, apparatus and system for address resolution
CN104580024B (en) Extended Ethernet interconnect fabric switch
US20130318219A1 (en) Layer-3 overlay gateways
DE102012220834A1 (en) Method and apparatus for implementing a flexible virtual local area network
JP6189942B2 (en) Routing VLAN-tagged packets to the far-end address of a virtual forwarding instance using an individual management scheme
CN102821022B (en) Using the method and system for link aggregation frame forwarding Ethernet bridge in a distributed
US9621373B2 (en) Proxy address resolution protocol on a controller device
US9756682B2 (en) Method and system for partitioning wireless local area network
CN102238230B (en) Method and system for offloading tunnel packet processing in cloud computing
US20150358232A1 (en) Packet Forwarding Method and VXLAN Gateway
Bakshi Considerations for software defined networking (SDN): Approaches and use cases

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination