CN105939268A - Layer 2 forwarding table item aggregation method and layer 2 forwarding table item aggregation device - Google Patents

Layer 2 forwarding table item aggregation method and layer 2 forwarding table item aggregation device Download PDF

Info

Publication number
CN105939268A
CN105939268A CN201510712623.6A CN201510712623A CN105939268A CN 105939268 A CN105939268 A CN 105939268A CN 201510712623 A CN201510712623 A CN 201510712623A CN 105939268 A CN105939268 A CN 105939268A
Authority
CN
China
Prior art keywords
layer
vm
mac address
forwarding
prefix
Prior art date
Application number
CN201510712623.6A
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 CN201510712623.6A priority Critical patent/CN105939268A/en
Publication of CN105939268A publication Critical patent/CN105939268A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic regulation in packet switching networks
    • H04L47/70Admission control or resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/825Involving tunnels, e.g. MPLS

Abstract

The invention provides a layer 2 forwarding table item aggregation method and a layer 2 forwarding table item aggregation device, applied to switch equipment. The method comprises the following steps of: acquiring multiple layer 2 forwarding table items under the same port, wherein the layer 2 forwarding table items are used for recording a corresponding relationship of a media access control MAC address of a virtual machine VM and the port; and merging the multiple layer 2 forwarding table items under the same port according to a predefined MAC address allocation rule of the VM. With the method and the device provided by the invention, the number of the layer 2 forwarding table items in the switch equipment can be reduced, the requirement on storage space of the switch equipment is lowered, and the system resource of the switch equipment is saved.

Description

-种二层转发表项聚合方法及装置 - Layer seed polymerization method and device forwarding entries published

技术领域 FIELD

[0001] 本申请设及网络通信技术领域,尤其设及一种二层转发表项聚合方法及装置。 [0001] This application is provided and network communication technology, and in particular forwarding entry set and a Layer polymerization method and apparatus publication.

背景技术 Background technique

[0002] 数据中屯、通常采用服务器虚拟化技术,将一台物理服务器虚拟化成多台VM(Virtual Machine,虚拟机)。 [0002] The data Tun, usually server virtualization technology, a single physical server into multiple virtual VM (Virtual Machine, virtual machine). 在义用VXLAN(Virtual extensible LAN,可扩展虚拟局域网络)技术的大二层网络中,通常要求物理服务器支持VXLAN技术,从而对VM发送的二层报文进行S层封装,再由交换设备进行S层转发。 In the sense used VXLAN (Virtual extensible LAN, scalable virtual local area network) technology, a large layer 2 network, the server typically requires physical support VXLAN technique, thereby VM Layer 2 packets sent by the S-layer package, then the switching device S-layer forwarding. 因此,VM数量的增加不会对交换设备的处理能力带来影响。 Therefore, VM increase in the number does not affect the processing capability of switching equipment.

[0003] 但是,当VXLAN网络中存在传统物理服务器时,由于传统物理服务器不支持VXLAN 技术,无法对VM的二层报文进行S层封装,因此,要求与传统物理服务器相连的交换设备能够感知VM的MAC (Media Access Control,介质访问控制)地址,并根据VM的MAC地址生成二层转发表项。 [0003] However, when there is a conventional physical servers VXLAN network, since the server does not support VXLAN conventional physical technique, can not be S-layer encapsulation of Layer 2 packets of the VM, and therefore, the conventional exchange apparatus capable of sensing a physical server is connected VM's MAC (Media Access Control, MAC) address, and generates the second floor VM MAC address forwarding entry. 但随着VM数量的增加,二层转发表项也会增加,运将对交换设备的存储容量带来极大挑战。 But with the increasing number of VM, layer 2 forwarding entry will increase the storage capacity shipped will be switching devices bring great challenges.

发明内容 SUMMARY

[0004] 有鉴于此,本申请提供一种二层转发表项聚合方法及装置。 [0004] Accordingly, the present application provides a method and apparatus for the polymerization item Layer forwarding. 阳0化]具体地,本申请是通过如下技术方案实现的: Of male 0] Specifically, the present application is achieved by the following technical solutions:

[0006] 本申请提供一种二层转发表项聚合方法,应用于交换设备上,该方法包括: [0006] The present application provides a polymerization process Layer forwarding entry applied exchange device, the method comprising:

[0007] 获取位于同一端口下的多条二层转发表项,所述二层转发表项用于记录虚拟机VM 的介质访问控制MAC地址与端口的对应关系; [0007] obtaining a plurality of floor located in the same port forwarding entry, the recording layer 2 forwarding entry for a virtual machine (VM) medium access control correspondence between the MAC addresses and ports;

[0008] 根据预先定义的VM的MC地址分配规则对所述同一端口下的多条二层转发表项进行合并。 [0008] The combined forwarding entry MC address allocation rule predefined for a plurality of Layer VM at the same port.

[0009] 本申请还提供一种二层转发表项聚合装置,应用于交换设备上,该装置包括: [0009] The present application further provides a layer 2 forwarding entry polymerization apparatus, is applied to the switching device, the apparatus comprising:

[0010] 获取单元,用于获取位于同一端口下的多条二层转发表项,所述二层转发表项用于记录虚拟机VM的介质访问控制MC地址与端口的对应关系; [0010] acquiring unit, configured to obtain a plurality of floor located in the same port forwarding entry, the recording layer 2 forwarding entry for a virtual machine (VM) media access control address corresponding relationship MC with the port;

[0011] 合并单元,用于根据预先定义的VM的MAC地址分配规则对所述同一端口下的多条二层转发表项进行合并。 [0011] The combining unit, a plurality of floor for the same port in the combined forwarding entry MAC address allocation rule predefined VM. 阳01引由W上描述可W看出,本申请通过预定义VM的MC地址分配规则,使VM的MC地址分配有规律可循,进而根据该分配规律对交换设备学习到的二层转发表项进行合并,W 减少交换设备中二层转发表项的数量,降低对交换设备存储空间的要求,节约了交换设备的系统资源。 01 male primers can be seen from the description on W W, herein by the MC address allocation rule predefined VM, so that the MC address assigned to VM follow the law, to turn on the switching device learns according to the allocation rule of Layer 2 forwarding table combining the items, W reduce the number of switching devices the layer 2 forwarding entry, reducing the requirements for storage space switching device, saving system resources the switching device.

附图说明 BRIEF DESCRIPTION

[001引图1是一种VXLAN组网不意图; [001 FIG. 1 is a lead network VXLAN not intended;

[0014] 图2是另一种VXLAN组网示意图; [0014] FIG. 2 is a schematic diagram of another network VXLAN;

[0015] 图3是本申请一示例性实施例示出的一种二层转发表项聚合方法流程图; [0015] FIG. 3 is an Layer Item polymerization process of the present application shows an exemplary embodiment of a flowchart of the forwarding table;

[0016] 图4是本申请一示例性实施例示出的一种数据中屯、组网示意图; [0016] FIG. 4 is an exemplary embodiment of the present application to a data illustrated Tun, Network diagram;

[0017] 图5是本申请一示例性实施例示出的一种二层转发表项聚合装置所在设备的基础硬件结构示意图; [0017] FIG. 5 is an Layer illustrating an exemplary application of the present exemplary embodiment, a hardware forwarding entry schematic infrastructure equipment where the polymerization apparatus;

[0018] 图6是本申请一示例性实施例示出的一种二层转发表项聚合装置的结构示意图。 [0018] FIG. 6 is an Layer illustrating an exemplary application of the present exemplary embodiment, a schematic structure of the apparatus forwarding entry polymerization.

具体实施方式 Detailed ways

[0019] 运里将详细地对示例性实施例进行说明,其示例表示在附图中。 [0019] The operation in the exemplary embodiment will be described in detail with embodiments, which are illustrated in the accompanying drawings. 下面的描述设及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。 When the following description and drawings provided, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. W下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。 W Under an exemplary embodiment described in the embodiments do not represent the application consistent with the present embodiment all embodiments. 相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。 Instead, they are only in the book as detailed in the appended claims, some aspects of the present disclosure examples of apparatus and methods consistent phase.

[0020] 在本申请使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。 [0020] The terms used in the present application is solely for the purpose of describing particular embodiments only, not intended to limit the present application. 在本申请和所附权利要求书中所使用的单数形式的"一种"、"所述"和"该"也旨在包括多数形式,除非上下文清楚地表示其他含义。 In the singular forms used in this application and the appended claims "an", "the" and "the" are intended to include the plural forms unless the context clearly dictates otherwise. 还应当理解,本文中使用的术语"和/或"是指并包含一个或多个相关联的列出项目的任何或所有可能组合。 It should also be understood that, as used herein, the term "and / or" refers to and includes any or all possible combinations of one or more of the associated listed items.

[0021] 应当理解,尽管在本申请可能采用术语第一、第二、第=等来描述各种信息,但运些信息不应限于运些术语。 [0021] It should be appreciated that, although the terms may be employed in the present application a first, second, etc., to describe = a variety of information, but some information should not be limited transport transport these terms. 运些术语仅用来将同一类型的信息彼此区分开。 These terms are only used to transport the same type of information with each other separate regions. 例如,在不脱离本申请范围的情况下,第一信息也可W被称为第二信息,类似地,第二信息也可W被称为第一信息。 For example, without departing from the scope of the present application, the first information may also be termed a second information W, similarly, the second information may also be referred to as a first information W. 取决于语境,如在此所使用的词语"如果"可W被解释成为"在……时"或"当…… 时"或"响应于确定"。 Depending on the context, as used herein, the term "if" may be construed as W "when ......" or "when ......" or "in response to the determination."

[0022] 数据中屯、通常采用服务器虚拟化技术,将一台物理服务器虚拟化成多台VM。 [0022] The data Tun, usually server virtualization technology, a single physical server into multiple virtual VM. 如图1所示,在采用VXLAN技术的大二层网络中,通常要求物理服务器支持VXLAN技术,当VM发送的二层报文到达VTEP(VXLAN化nnel化d化int,VXLAN隧道终端节点)设备时,由VTEP 设备对二层报文进行=层封装,再由交换设备对封装后的报文进行=层转发。 1, a large network using Layer VXLAN art, typically requires that the server supports the physical VXLAN technology, when Layer packets transmitted VM reaches the VTEP (d of VXLAN of nnel of int, VXLAN terminal node tunnel) Equipment when, for encapsulation layer = layer 2 packets VTEP by the device, then the encapsulated packet to be forwarded by the switching device = layer. 此过程中,交换设备只能感知到物理服务器的MC地址,无法感知VM的MC地址,因此,VM数量的增加不会对交换设备的处理能力带来影响。 This process, switching equipment can only perceive the physical address of the server MC, MC address of the VM can not perceive, therefore, an increase in the number of VM does not affect the processing capability of switching equipment.

[0023] 但是,在图2所示组网环境下,由于传统物理服务器(物理服务器2)不支持VXLAN 技术,无法对VM的二层报文进行S层封装,因此,要求与该传统物理服务器相连的交换设备2能够感知VM的MC地址,并根据VM的MC地址生成二层转发表项。 [0023] However, in the networking shown in FIG. 2, since the conventional physical server (physical server 2) does not support VXLAN technology, it can not be S-layer encapsulation of Layer 2 packets of the VM, and therefore, requires the conventional physical server the switching device 2 can be connected to the sensing MC address of the VM, and generates a layer 2 forwarding entry according to the MC address of the VM. 然而,随着VM数量的增加,二层转发表项也会增加,运将对交换设备的存储容量带来极大挑战。 However, with the increase in the number of VM, layer 2 forwarding entry will increase the storage capacity shipped will be switching devices bring great challenges.

[0024] 针对上述问题,本申请实施例提出一种二层转发表项聚合方法,该方法根据预定义的VM的MAC地址分配规则对交换设备学习到的二层转发表项进行合并,W减少交换设备中二层转发表项的数量。 [0024] For the above-described problems, the present embodiment provides a layer 2 forwarding entry polymerization process, the method of switching device to learn the MAC address allocation rule predefined VM layer 2 forwarding entry is merged, W reduce Layer 2 forwarding switching equipment in the number of entries.

[0025] 参见图3,为本申请二层转发表项聚合方法的一个实施例流程图,该实施例对二层转发表项的聚合过程进行描述。 [0025] Referring to Figure 3, the polymerization process of the present application Layer forwarding entry to one flowchart embodiment, the polymerization process of the layer 2 forwarding entry embodiment of this embodiment will be described.

[00%] 步骤301,获取位于同一端口下的多条二层转发表项,所述二层转发表项用于记录VM的介质访问控制MC地址与端口的对应关系。 [00%] in step 301, obtaining a plurality of floor located under the same forwarding entry port, the layer 2 forwarding entry for the recording medium access control corresponding relationship between the VM and the port of the MC address.

[0027] 交换设备的二层转发表项(亦称为MC地址表项)通常采用自学习方式获得,即在接收到报文后,根据报文的源MC地址W及该报文的接收端口建立对应关系,W表示该MAC地址对应设备位于该端口下。 [0027] Layer switching device forwarding entries (also referred to as MC address entries) usually obtained from the learning mode, i.e., after receiving the packet, the MC packets according to the source address of the packet receiving port and W is establishing a corresponding relationship, W represents the MAC address of the device to the port is located.

[0028] 本申请实施例中,与传统物理服务器连接的交换设备也可通过自学习方式生成二层转发表项。 [0028] Application of the present embodiment, the switching device is connected to a conventional physical servers can also be generated by self-learning Layer forwarding entries. 参见表1,为本申请一示例性实施例示出的交换设备学习到的二层转发表项, 每一个二层转发表项中记录了VM的MC地址与端口的对应关系,即表示某一VM连接在对应端口下。 Referring to Table 1, the switching device of the present application shows an exemplary embodiment of the learned layer 2 forwarding entry, entry records correspondence between VM MC addresses and ports of each Layer 2 forwarding table, it means that a VM in a corresponding connection port.

[0029] [0029]

Figure CN105939268AD00051

[0030] 表1 [0030] TABLE 1

[0031] 步骤302,根据预先定义的VM的MC地址分配规则对所述同一端口下的多条二层转发表项进行合并。 [0031] Step 302, the MC address assignment according to pre-defined rules for the VM plurality of forwarding entries at the same port Layer merge. 阳03引本申请实施例在系统运行之前,预先定义了VM的MC地址分配规则。 03 male This application embodiment Before operating the system, the MC address predefined allocation rule VM.

[0033] 该VM的MC地址分配规则可W为:VM的MC地址由N位前缀和M位后缀组成, 其中,N位前缀用于表示与端口相连的物理网络,M位后缀用于表示位于所述物理网络中的VM。 [0033] MC address assignment rule of the VM may be W is: VM by N bits and the MC address prefix and suffix M bits, wherein, for N-bit prefix indicates the physical network port connected, suffixes for representing M bits located the physical network VM. 例如,W MC地址00:24:00:03:02: Ol为例,前立个字节(00:24:00)为前缀,后立个字节(03:02:01)为后缀。 For example, W MC address 00: 24: 00: 03: 02: Ol example, the first stand bytes (00:24:00) as a prefix, after Li bytes (03:02:01) suffix. 其中,可用前两个字节(00:24)表示VM所属数据中屯、;第=个字节(00)表示VM位于数据中屯、的哪个子物理网络中,是对数据中屯、物理网络的进一步细化,适用于数据中屯、物理网络比较分散的情况下,将数据中屯、划分为多个子物理网络,每一个子物理网络与交换设备的端口相连;后S个字节(03:02:01)用于区分同一物理网络中的VM。 Wherein, the first two bytes are available (00:24) represents the relevant data VM village,; = first byte (00) in the data represented in VM Tun, which physical sub-network, the data is Tun, physical further refinement of the network for the data Tun, physical network scattered case, the data in the village, divided into a plurality of physical sub-networks, each sub-port is connected to the physical network switching device; after S bytes ( 03:02:01) used to distinguish the same physical network VM.

[0034] 本申请实施例不具体限定前缀和后缀的位数,在实际应用中,可结合具体的网络布局灵活配置VM的MC地址的前缀和后缀。 Example [0034] The present application is not particularly limited digit prefixes and suffixes, in practical applications, the network layout may be combined with the specific prefixes and suffixes flexible configuration of the MC address of the VM.

[0035] 本步骤根据预先定义的VM的MC地址分配规则对同一端口下的二层转发表项进行合并,具体为: [0035] In this step, according to the MC address VM allocation rule defined in advance in the layer 2 forwarding entry port of the same combined, in particular:

[0036] 判断该端口下的多条二层转发表项中的VM的MAC地址前缀是否相同,将具有相同MC地址前缀的二层转发表项合并为一条二层转发表项。 [0036] determines whether a plurality of the same floor of a port forwarding entry of the VM MAC address prefix, the MC address having the same prefix layer 2 forwarding entry combined into one layer 2 forwarding entry. 具体合并操作可W为,将相同的MC地址前缀作为合并后的二层转发表项的MC地址前缀。 Specific merge operation may be W is the same as the MC address prefix MC Layer the combined transfer address prefix entries.

[0037] W表1中的端口20为例,该端口下有3条二层转发表项,且运3条二层转发表项的前缀(前=个字节)均为00:24:00,因此,将该3条二层转发表项合并,合并后的二层转发表项的MC地址为00:24:00:00:00:00,对应端口为20。 [0037] W in Table 1 as an example port 20, to the port 3 with a layer 2 forwarding entry and transport prefix (= bytes before) are 00:24:00 Layer 3 forwarding entries Therefore, the Layer 3 forwarding entry were combined, the combined floor forwarding entry MC address 00: 24: 00: 00: 00: 00, 20 corresponding to the port. 同理,其它端口也可W合并,合并后的二层转发表项如表2所示。 Similarly, other ports may be combined W, Layer the combined forwarding entries are shown in Table 2.

[0038] [0038]

Figure CN105939268AD00061

[0039] 表2 [0039] TABLE 2

[0040] 当交换设备接收到报文时,根据报文的目的MAC地址去匹配二层转发表项,在确认报文的目的MC地址前缀与合并后的二层转发表项的MC地址前缀相同时,通过对应端口转发报文。 [0040] When the switching device receives a message, according to the MAC addresses of the packets to match the layer 2 forwarding entry, in the floor after validation purposes MC address prefix combined with MC packet forwarding address prefix entry phase At the same time, the corresponding port forwarding packets.

[0041] 由上述描述可W看出,本申请通过预定义VM的MC地址分配规则,使VM的MC地址分配有规律可循,进而根据该分配规律对交换设备学习到的二层转发表项进行合并,W 减少交换设备中二层转发表项的数量,降低对交换设备存储空间的要求,节约了交换设备的系统资源。 [0041] W can be seen from the above description, the present application by the MC address allocation rule predefined VM, so that the MC address of the VM is assigned a pattern, to turn on the switching device according to the allocation rule of learning the layer 2 forwarding entry merger, W reduce the number of switching devices in layer 2 forwarding entry, reducing the demand for switching equipment storage space, saving system resources switching equipment.

[0042] 现W图4为例,详细介绍二层转发表项聚合处理过程。 [0042] W now to FIG 4 as an example, layer 2 forwarding entry details polymerization process. W43] 图4为简化的数据中屯、示意图,其中,¥]«11、¥]\112、¥]\121、¥]\122为虚拟机,5胖1和5胖2 为交换设备。 W43] FIG. 4 is a simplified data Tun, a schematic view, wherein, ¥] «11, ¥] \ 112, ¥] \ 121, ¥] \ 122 for the virtual machine, and 5 1 5 fat fat switching device 2. 假设,数据中屯、1和数据中屯、2都没有应用VXLAN技术,则SWl和SW2都需要执行二层转发表项聚合。 Suppose, Tun data, and data in a village, 2 VXLAN techniques are not applied, the SWl and SW2 need to perform layer 2 forwarding entry polymerization. W44] 假设,定义的虚拟机MC地址的分配规则为:MAC地址由立个字节(24bit)的前缀和=个字节(24bit)的后缀组成,其中,前两个字节表示数据中屯、,第=个字节表示子物理网络,后=个字节表示虚拟机。 W44] is assumed, the virtual machine allocation rule defined for the MC address: MAC address of the stand-byte (24bit) and prefix bytes = (24bit) suffix composition, wherein, in the first two bytes of data Tun = ,, the first byte represents the physical sub-network, represented by the bytes = VM. 各虚拟机的MAC地址分配参见表3。 MAC address of each virtual machine assigned to Table 3.

Figure CN105939268AD00062

[0045] [0045]

[0046] 表3 [0046] TABLE 3

[0047] SWl通过自学; [0047] SWl through self;

[0048] [0048]

[0049] 表4 [0049] TABLE 4

Figure CN105939268AD00071

[0050] 其中,SlO端[ 吏表项的MC地址前缀相同,对运两条二层转发畫, [0050] wherein, SlO end [MC same official address prefix entries, two of the transport Layer forwarding Videos,

[0051] [0051]

[0052] 表5 阳〇5引同理,SW2通i3 [0052] Table 5 male 〇5 cited Similarly, SW2 through i3

[0054] 阳化5] 表6 [0054] 5 of the male] TABLE 6

[0056] 对表6合并处 [0056] Table 6 were combined at the pair

[0057] [0057]

[0058] 表7 [0058] TABLE 7

[0059] 假设,数据中屯、1中的VMll向数据中屯、2中的VM21发送报文,SWl根据报文的目的MC地址00:25: Ol: 03:02: Ol匹配表5中的二层转发表项,该报文的目的MC地址前缀OO :25:01与第I条二层转发表项中的MAC地址前缀相同,因此,SWl将报文从端口Sio转发。 [0059] Suppose, Tun data, the data to 1 VMll Tun, the packet transmission 2 VM21, SWl packets according to the MC address object 00:25: Ol: 03:02: Ol Match Table 5 Layer 2 forwarding table entries, the packet purpose MC address prefix OO: 25: 01 and Article I, Layer 2 forwarding table entries in the same MAC address prefix, and therefore, SWl move packets from port Sio. W60] SW2接收到报文后,根据报文的目的MC地址00:25:01:03:02:01匹配表7中的二层转发表项,该报文的目的MC地址与第2条二层转发表项中的MC地址相同,因此,SW2 将报文从端口S21转发,报文到达VM21。 W60] SW2 after receiving the message, according to the destination address of the packet MC 00:25: 01:03: 02:01 match 7 Layer 2 forwarding table entry in the table, the packet address and MC purpose of Article 2 bis MC same layer forwarding address entry, therefore, SW2 forwards packets from port S21, packet arrives VM21.

[0061] 与前述二层转发表项聚合方法的实施例相对应,本申请还提供了二层转发表项聚合装置的实施例。 [0061] Example embodiments of the layer 2 forwarding entry corresponding to the published polymerization process, the present application also provides an embodiment of layer 2 forwarding entry polymerization apparatus.

[0062] 本申请二层转发表项聚合装置的实施例可W应用在交换设备上。 [0062] Example embodiments of the present application layer 2 forwarding entries may be made of W polymerization apparatus used in the switching device. 装置实施例可W 通过软件实现,也可W通过硬件或者软硬件结合的方式实现。 W apparatus embodiments may be implemented by software, W may also be implemented by means of hardware or a combination of hardware and software. W软件实现为例,作为一个逻辑意义上的装置,是通过其所在设备的处理器运行存储器中对应的计算机程序指令形成的。 W software, for example, as a device on the logical sense, are formed by computer program instructions corresponding thereto in the processor memory of the device operation. 从硬件层面而言,如图5所示,为本申请二层转发表项聚合装置所在设备的一种硬件结构图,除了图5所示的处理器、网络接口、W及存储器之外,实施例中装置所在的设备通常根据该设备的实际功能,还可W包括其他硬件,对此不再寶述。 From the hardware level, as shown in FIG. 5, the present application Layer A hardware configuration diagram of the apparatus where polymerization apparatus forwarding entry, in addition to the processor shown in FIG. 5, network interfaces, W, and a memory, embodiments apparatus in apparatus where typically the actual function of the device, W may also comprise other hardware, which is no longer described Po.

[0063] 请参考图6,为本申请一个实施例中的二层转发表项聚合装置的结构示意图。 [0063] Please refer to FIG. 6, a structural diagram of the present embodiment, the layer 2 forwarding entry polymerization apparatus according to the application. 该二层转发表项聚合装置包括获取单元601和合并单元602,其中: The layer 2 forwarding entry polymerization apparatus includes an acquisition unit 601 and combining unit 602, wherein:

[0064] 获取单元601,用于获取位于同一端口下的多条二层转发表项,所述二层转发表项用于记录虚拟机VM的介质访问控制MAC地址与端口的对应关系; [0064] The obtaining unit 601, configured to obtain a plurality of the second floor is located in the same port forwarding entry, the recording layer 2 forwarding entry for a virtual machine (VM) medium access control correspondence between the MAC addresses and ports;

[00化]合并单元602,用于根据预先定义的VM的MC地址分配规则对所述同一端口下的多条二层转发表项进行合并。 [Of 00] combining unit 602, a plurality of floor under the same port forwarding entry according to the MC address allocation rule merge predefined VM.

[0066] 进一步地, [0066] Further,

[0067] 所述VM的MC地址分配规则为所述VM的MC地址由N位前缀和M位后缀组成, 其中,所述N位前缀用于表示与端口相连的物理网络,所述M位后缀用于表示位于所述物理网络中的VM。 [0067] MC address of the VM allocation rule of the MC address of the VM by the N-bit prefix and suffix M bits, wherein said N-bit prefix is ​​used to indicate physical network port connected to said M-bit suffix positioned for representing the physical network VM.

[0068] 进一步地,所述合并单元602,包括: W例表项判断模块,用于判断所述多条二层转发表项中的VM的MC地址前缀是否相同; [0068] Further, the merging unit 602, comprising: W Example entry determining means for determining a plurality of layer 2 forwarding entry in the VM address prefix MC are the same;

[0070] 表项合并模块,用于将具有相同MC地址前缀的二层转发表项合并为一条二层转发表项。 Layer [0070] The merging module entry, the MC address for having the same prefix as a combined forwarding entries layer 2 forwarding entry. 阳071] 进一步地, Yang 071] Further,

[0072] 所述表项合并模块,具体用于将所述相同MAC地址前缀作为合并后的二层转发表项的MC地址前缀,W使所述交换设备在确认报文的目的MC地址前缀与所述合并后的二层转发表项的MC地址前缀相同时,通过对应端口转发所述报文。 [0072] The merging module entry, specifically for the same prefix as the MAC address forwarding table Layer the combined MC address prefix entry, W the switching device in the destination address prefix MC acknowledgment packets and Layer 2 forwarding entries of said integrated MC of the same address prefix, forward the packet via the corresponding port.

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

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

[0075] W上所述仅为本申请的较佳实施例而已,并不用W限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。 The [0075] W is the only application of the present preferred embodiments, W is not a limitation of the present application, all within the spirit and principle of the disclosure, made any modifications, equivalent replacements, improvements, etc., should It included within the scope of protection of the present application.

Claims (8)

1. 一种二层转发表项聚合方法,应用于交换设备上,其特征在于,该方法包括: 获取位于同一端口下的多条二层转发表项,所述二层转发表项用于记录虚拟机VM的介质访问控制MAC地址与端口的对应关系; 根据预先定义的VM的MAC地址分配规则对所述同一端口下的多条二层转发表项进行合并。 A layer 2 forwarding entry polymerization method is applied to the switching device, characterized in that, the method comprising: obtaining a plurality of the second floor is located in the same port forwarding entry said forwarding entry for recording Layer virtual machine (VM) medium access control (MAC) address correspondence with the port; Layer of the plurality of the same port forwarding entry combined MAC address allocation rule predefined VM.
2. 如权利要求1所述的方法,其特征在于: 所述VM的MAC地址分配规则为所述VM的MAC地址由N位前缀和Μ位后缀组成,其中, 所述Ν位前缀用于表示与端口相连的物理网络,所述Μ位后缀用于表示位于所述物理网络中的VM。 2. The method according to claim 1, wherein: the MAC address of the VM allocation rule for the MAC address of the VM by the N-bit prefix and suffix bits Μ, wherein the prefix bits for indicating Ν physical network port connected with the suffix Μ bits used to represent the physical network located VM.
3. 如权利要求2所述的方法,其特征在于,所述根据预先定义的VM的MAC地址分配规则对所述同一端口下的多条二层转发表项进行合并,包括: 判断所述多条二层转发表项中的VM的MAC地址前缀是否相同; 将具有相同MAC地址前缀的二层转发表项合并为一条二层转发表项。 3. The method according to claim 2, wherein said MAC address allocation rule predefined for a plurality of Layer VM under the same forwarding entry port merge, comprising: determining a plurality Article layer 2 forwarding entry VM MAC prefixes are the same; MAC address having the same prefix layer 2 forwarding entry combined into one layer 2 forwarding entry.
4. 如权利要求3所述的方法,其特征在于,所述将具有相同MAC地址前缀的二层转发表项合并为一条二层转发表项,包括: 将所述相同MAC地址前缀作为合并后的二层转发表项的MAC地址前缀,以使所述交换设备在确认报文的目的MAC地址前缀与所述合并后的二层转发表项的MAC地址前缀相同时,通过对应端口转发所述报文。 4. The method according to claim 3, characterized in that, the MAC address having the same prefix layer 2 forwarding entry combined into one layer 2 forwarding entry, comprising: after the same MAC address prefix as a combined Layer 2 forwarding table entry for the prefix MAC address, so that the switching device forwarding the MAC address prefix entries acknowledgment packet after Layer destination MAC address prefix with the combined aqueous phases while the port forwarding through the corresponding message.
5. -种二层转发表项聚合装置,应用于交换设备上,其特征在于,该装置包括: 获取单元,用于获取位于同一端口下的多条二层转发表项,所述二层转发表项用于记录虚拟机VM的介质访问控制MAC地址与端口的对应关系; 合并单元,用于根据预先定义的VM的MAC地址分配规则对所述同一端口下的多条二层转发表项进行合并。 5 - layer 2 forwarding entry seed polymerization apparatus, is applied to the switching device, characterized in that the apparatus comprises: an acquisition unit for acquiring a plurality of floor located under the same forwarding entry port, the layer 2 switch entry for the virtual machine VM recording medium access control correspondence between the MAC addresses and ports; combining unit, a plurality of floor under the same port forwarding entry according to the allocation rule predefined MAC address is the VM merge.
6. 如权利要求5所述的装置,其特征在于: 所述VM的MAC地址分配规则为所述VM的MAC地址由N位前缀和Μ位后缀组成,其中, 所述Ν位前缀用于表示与端口相连的物理网络,所述Μ位后缀用于表示位于所述物理网络中的VM。 6. The apparatus according to claim 5, wherein: the MAC address of the VM allocation rule for the MAC address of the VM by the N-bit prefix and suffix bits Μ, wherein the prefix bits for indicating Ν physical network port connected with the suffix Μ bits used to represent the physical network located VM.
7. 如权利要求6所述的装置,其特征在于,所述合并单元,包括: 表项判断模块,用于判断所述多条二层转发表项中的VM的MAC地址前缀是否相同; 表项合并模块,用于将具有相同MAC地址前缀的二层转发表项合并为一条二层转发表项。 7. The apparatus according to claim 6, wherein said combining unit, comprising: entry determination means for determining a plurality of layer 2 forwarding entry in the MAC address prefix VM is the same publication; Table Layer term merge module configured with the same MAC address forwarding entries prefix combined into a layer 2 forwarding entry.
8. 如权利要求7所述的装置,其特征在于: 所述表项合并模块,具体用于将所述相同MAC地址前缀作为合并后的二层转发表项的MAC地址前缀,以使所述交换设备在确认报文的目的MAC地址前缀与所述合并后的二层转发表项的MAC地址前缀相同时,通过对应端口转发所述报文。 8. The apparatus according to claim 7, wherein: the entry merge module is specifically a MAC address prefix for the same MAC address as the prefix Layer the combined forwarding table entry, so that the Layer switching device in the acknowledgment packet to the destination MAC address prefix combined with a MAC forwarding entry with the same address prefix, the corresponding packets through the port forwarding.
CN201510712623.6A 2015-10-28 2015-10-28 Layer 2 forwarding table item aggregation method and layer 2 forwarding table item aggregation device CN105939268A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510712623.6A CN105939268A (en) 2015-10-28 2015-10-28 Layer 2 forwarding table item aggregation method and layer 2 forwarding table item aggregation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510712623.6A CN105939268A (en) 2015-10-28 2015-10-28 Layer 2 forwarding table item aggregation method and layer 2 forwarding table item aggregation device

Publications (1)

Publication Number Publication Date
CN105939268A true CN105939268A (en) 2016-09-14

Family

ID=57152853

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510712623.6A CN105939268A (en) 2015-10-28 2015-10-28 Layer 2 forwarding table item aggregation method and layer 2 forwarding table item aggregation device

Country Status (1)

Country Link
CN (1) CN105939268A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506372A (en) * 2016-11-21 2017-03-15 赛特斯信息科技股份有限公司 Method for arranging forwarding table entries in virtualization equipment
CN107342941A (en) * 2017-06-01 2017-11-10 杭州迪普科技股份有限公司 Optimization method and device for VXLAN (Virtual Extensible Local Area Network) control plane

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101557341A (en) * 2009-05-14 2009-10-14 中兴通讯股份有限公司 Message forwarding method based on forwarding table of medium access control and system
US20120014387A1 (en) * 2010-05-28 2012-01-19 Futurewei Technologies, Inc. Virtual Layer 2 and Mechanism to Make it Scalable
CN102970227A (en) * 2012-11-12 2013-03-13 盛科网络(苏州)有限公司 Method and device for achieving virtual extensible local area network (VXLAN) message transmitting in application specific integrated circuit (ASIC)
CN103023827A (en) * 2012-11-23 2013-04-03 杭州华三通信技术有限公司 Data forwarding method for virtualized data centre and realization equipment of data forwarding method
CN103227843A (en) * 2012-08-31 2013-07-31 杭州华三通信技术有限公司 Physical link address management method and device
CN103795631A (en) * 2012-10-30 2014-05-14 杭州华三通信技术有限公司 Flow forwarding method and device equipped with Ethernet virtual interconnection (EVI) in network
CN103944826A (en) * 2013-01-22 2014-07-23 杭州华三通信技术有限公司 Entry aggregation method in SPBM (shortest path bridging MAC mode) network and equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101557341A (en) * 2009-05-14 2009-10-14 中兴通讯股份有限公司 Message forwarding method based on forwarding table of medium access control and system
US20120014387A1 (en) * 2010-05-28 2012-01-19 Futurewei Technologies, Inc. Virtual Layer 2 and Mechanism to Make it Scalable
CN103227843A (en) * 2012-08-31 2013-07-31 杭州华三通信技术有限公司 Physical link address management method and device
CN103795631A (en) * 2012-10-30 2014-05-14 杭州华三通信技术有限公司 Flow forwarding method and device equipped with Ethernet virtual interconnection (EVI) in network
CN102970227A (en) * 2012-11-12 2013-03-13 盛科网络(苏州)有限公司 Method and device for achieving virtual extensible local area network (VXLAN) message transmitting in application specific integrated circuit (ASIC)
CN103023827A (en) * 2012-11-23 2013-04-03 杭州华三通信技术有限公司 Data forwarding method for virtualized data centre and realization equipment of data forwarding method
CN103944826A (en) * 2013-01-22 2014-07-23 杭州华三通信技术有限公司 Entry aggregation method in SPBM (shortest path bridging MAC mode) network and equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506372A (en) * 2016-11-21 2017-03-15 赛特斯信息科技股份有限公司 Method for arranging forwarding table entries in virtualization equipment
CN106506372B (en) * 2016-11-21 2019-07-05 赛特斯信息科技股份有限公司 The method of combination of forwarding-table item in virtual equipment
CN107342941A (en) * 2017-06-01 2017-11-10 杭州迪普科技股份有限公司 Optimization method and device for VXLAN (Virtual Extensible Local Area Network) control plane

Similar Documents

Publication Publication Date Title
US8291148B1 (en) Resource virtualization switch
EP3091696B1 (en) Method and device for implementing virtual machine communication
US10225094B2 (en) SDN facilitated multicast in data center
US8964600B2 (en) Methods of forming virtual network overlays
US9116727B2 (en) Scalable network overlay virtualization using conventional virtual switches
US9912612B2 (en) Extended ethernet fabric switches
CN103793359B (en) A method for communication and a system virtual port
US10374878B2 (en) Forwarding tables for virtual networking devices
US9426060B2 (en) Software defined network (SDN) switch clusters having layer-3 distributed router functionality
US8959185B2 (en) Multitenant server for virtual networks within datacenter
EP2853066B1 (en) Layer-3 overlay gateways
US9450885B2 (en) System and method for supporting live migration of virtual machines in a virtualization environment
US20100036903A1 (en) Distributed load balancer
US7830882B2 (en) Switch scaling for virtualized network interface controllers
US20130294451A1 (en) Method of sending address correspondence in a second layer protocol of applying link state routing
CN104038401B (en) A method for systems interoperability and distributed overlay virtual environment
US9716665B2 (en) Method for sharding address lookups
KR101371993B1 (en) Method and apparatus for transparent cloud computing with a virtualized network infrastructure
US9331958B2 (en) Distributed packet switching in a source routed cluster server
US20080192648A1 (en) Method and system to create a virtual topology
US9350558B2 (en) Systems and methods for providing multicast routing in an overlay network
US20150350112A1 (en) High performance ethernet networking utilizing existing fibre channel fabric hba technology
JP6087922B2 (en) Communication control method and a gateway
US9185166B2 (en) Disjoint multi-pathing for a data center network
US20140376550A1 (en) Method and system for uniform gateway access in a virtualized layer-2 network domain

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
CB02