CN107623636A - A kind of user isolation method and interchanger - Google Patents
A kind of user isolation method and interchanger Download PDFInfo
- Publication number
- CN107623636A CN107623636A CN201610552867.7A CN201610552867A CN107623636A CN 107623636 A CN107623636 A CN 107623636A CN 201610552867 A CN201610552867 A CN 201610552867A CN 107623636 A CN107623636 A CN 107623636A
- Authority
- CN
- China
- Prior art keywords
- multicast
- user
- address
- switch
- identifier
- 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.)
- Granted
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
本发明实施例提供一种用户隔离方法和交换机,涉及通信领域,能够解决BUM流量无法在租户间隔离的问题。其方法为:交换机侦听第一用户上线时发送的第一报文中携带的信息,交换机根据第一报文中携带的信息与EPG的标识的对应关系确定第一用户属于第一EPG,并根据第一EPG的标识以及EPG的标识与IP组播地址的对应关系确定第一用户对应第一IP组播地址,并确定第一用户属于第一IP组播地址所对应的组播组,而后,交换机将第一用户加入组播组,当交换机接收到第一用户发送的第一BUM流量时,交换机将第一BUM流量封装为组播组的第一组播流量,第一组播流量包括第一IP组播地址,以使得第一组播流量转发至组播组的其它用。本发明实施例用于VXLAN中的用户隔离。
Embodiments of the present invention provide a user isolation method and a switch, which relate to the communication field and can solve the problem that BUM traffic cannot be isolated between tenants. The method is: the switch monitors the information carried in the first message sent when the first user goes online, the switch determines that the first user belongs to the first EPG according to the correspondence between the information carried in the first message and the EPG identifier, and Determine that the first user corresponds to the first IP multicast address according to the identification of the first EPG and the correspondence between the identification of the EPG and the IP multicast address, and determine that the first user belongs to the multicast group corresponding to the first IP multicast address, and then , the switch adds the first user to the multicast group. When the switch receives the first BUM traffic sent by the first user, the switch encapsulates the first BUM traffic into the first multicast traffic of the multicast group. The first multicast traffic includes The first IP multicast address, so that the first multicast traffic is forwarded to other users of the multicast group. The embodiment of the present invention is used for user isolation in VXLAN.
Description
技术领域technical field
本发明涉及通信领域,尤其涉及一种用户隔离方法和交换机。The invention relates to the communication field, in particular to a user isolation method and a switch.
背景技术Background technique
虚拟局域网(Virtual Local Area Network,VLAN)是一组逻辑上的设备和用户,这些设备和用户并不受物理位置的限制,可以根据功能、部门及应用等因素将它们组织起来,相互之间的通信就类似于在同一个网段中一样,由此得名虚拟局域网。VLAN工作在开放系统互联(Open System Interconnection,OSI)参考模型的第2层和第3层。A virtual local area network (Virtual Local Area Network, VLAN) is a group of logical devices and users. These devices and users are not limited by physical locations. They can be organized according to factors such as functions, departments, and applications. The communication is similar to being in the same network segment, hence the name virtual local area network. VLAN works on Layer 2 and Layer 3 of the Open System Interconnection (OSI) reference model.
在计算机网络中,一个二层网络可以被划分为多个不同的广播域,一个广播域对应一个特定的租户,默认情况下这些不同的广播域是相互隔离的。不同的广播域之间想要通信,需要通过一个或多个路由器或交换机转发通信,这样的一个广播域就为一个VLAN,一个VLAN下的用户可以为一个租户,即一个租户中可以包括多个用户。租户可以理解为终端策略组(End-Point Policy Group,EPG),即一个租户中的所有用户为一个EPG。不同VLAN或不同的租户之间的通信是通过第3层的路由器或交换机来完成的。In a computer network, a Layer 2 network can be divided into multiple different broadcast domains, and a broadcast domain corresponds to a specific tenant. By default, these different broadcast domains are isolated from each other. If you want to communicate between different broadcast domains, you need to forward the communication through one or more routers or switches. Such a broadcast domain is a VLAN, and users under a VLAN can be a tenant, that is, a tenant can include multiple user. A tenant can be understood as an End-Point Policy Group (EPG), that is, all users in a tenant are an EPG. Communication between different VLANs or different tenants is done through Layer 3 routers or switches.
这样,采用不同的VLAN对用户进行隔离后,不同的EPG可以分配不同的VLAN,当一个VLAN中的一个设备发出广播或未知单播或组播(Broadcast、Unicast unknown、Multicast,BUM)流量时,会在该VLAN中泛洪,该VLAN中的整网设备都会接收到该BUM流量。但是,VLAN的资源有限,导致支持的租户(隔离组)数量有限,如果不同的租户共享同一个VLAN,将会导致BUM流量无法在租户间隔离。In this way, after using different VLANs to isolate users, different EPGs can allocate different VLANs. When a device in a VLAN sends broadcast or unknown unicast or multicast (Broadcast, Unicast unknown, Multicast, BUM) traffic, It will be flooded in this VLAN, and all network devices in this VLAN will receive this BUM traffic. However, VLAN resources are limited, resulting in a limited number of supported tenants (isolation groups). If different tenants share the same VLAN, BUM traffic cannot be isolated between tenants.
发明内容Contents of the invention
本发明实施例提供一种用户隔离方法和交换机,能够解决BUM流量无法在租户间隔离的问题。Embodiments of the present invention provide a user isolation method and a switch, which can solve the problem that BUM traffic cannot be isolated between tenants.
一方面,提供一种用户隔离方法,包括:On the one hand, a user isolation method is provided, including:
交换机侦听第一用户上线时发送的第一报文中携带的信息;交换机根据第一报文中携带的信息与终端策略组EPG的标识的对应关系确定第一用户属于第一EPG,并根据第一EPG的标识以及EPG的标识与网际协议IP组播地址的对应关系确定第一用户对应第一IP组播地址,并确定第一用户属于第一IP组播地址所对应的组播组;其中EPG包括虚拟局域网VLAN,虚拟扩展局域网VXLAN,或同一个网段或子网中的用户中的部分用户,第一EPG为多个EPG中的一个;交换机将第一用户加入组播组;当交换机接收到第一用户发送的第一广播和未知单播组播BUM流量时,交换机将第一BUM流量封装为组播组的第一组播流量,第一组播流量包括第一IP组播地址,以使第一组播流量转发至属于组播组对应的其它用户。The switch monitors the information carried in the first packet sent when the first user goes online; the switch determines that the first user belongs to the first EPG according to the correspondence between the information carried in the first packet and the identifier of the terminal policy group EPG, and according to The identification of the first EPG and the corresponding relationship between the identification of the EPG and the Internet Protocol IP multicast address determine that the first user corresponds to the first IP multicast address, and determine that the first user belongs to the corresponding multicast group of the first IP multicast address; Wherein the EPG includes a virtual local area network VLAN, a virtual extended local area network VXLAN, or some users in users in the same network segment or subnet, and the first EPG is one of a plurality of EPGs; the switch adds the first user to the multicast group; when When the switch receives the first broadcast and unknown unicast multicast BUM traffic sent by the first user, the switch encapsulates the first BUM traffic into the first multicast traffic of the multicast group, and the first multicast traffic includes the first IP multicast address, so that the first multicast traffic is forwarded to other users belonging to the corresponding multicast group.
由此,如果同一VLAN下存在不同的EPG,不同的EPG下的BUM流量需要隔离,一个EPG为一个租户群,当在交换机中为EPG配置了IP组播地址时,如果第一用户上线,交换机根据第一用户上线时侦听到的信息确定第一用户所属的组播组的第一IP组播地址,并将第一用户加入到该组播组中,如果交换机接收到第一用户发送的BUM流量,交换机便可根据第一IP组播地址将BUM流量封装为组播流量后转发至属于组播组的其余用户,使得同一VLAN下的不同的EPG间的BUM流量隔离。Therefore, if there are different EPGs under the same VLAN, the BUM traffic under different EPGs needs to be isolated. One EPG is a tenant group. When an IP multicast address is configured for the EPG in the switch, if the first user goes online, the switch Determine the first IP multicast address of the multicast group to which the first user belongs according to the information detected when the first user goes online, and add the first user to the multicast group. For BUM traffic, the switch can encapsulate the BUM traffic into multicast traffic according to the first IP multicast address and then forward it to other users belonging to the multicast group, so that the BUM traffic between different EPGs under the same VLAN is isolated.
在一种可能的设计中,方法进一步包括:交换机建立VLAN标识以及入接口标识共同与EPG的标识的对应关系;以及交换机建立EPG的标识与IP组播地址的对应关系。其中,对应关系可以是接入控制器(Access Controller,AC)向交换机下发配置的,也可以是人工配置在交换机中的。In a possible design, the method further includes: the switch establishes a correspondence between the VLAN ID and the inbound interface ID and the EPG ID; and the switch establishes the correspondence between the EPG ID and the IP multicast address. Wherein, the corresponding relationship may be configured by an access controller (Access Controller, AC) to the switch, or may be manually configured in the switch.
由此,当任一用户从交换机的接口上线时,可以根据对应关系确定用户所属的EPG及其IP组播地址,以便根据IP组播地址发送组播流量。Thus, when any user goes online through the interface of the switch, the EPG to which the user belongs and its IP multicast address can be determined according to the corresponding relationship, so as to send multicast traffic according to the IP multicast address.
在一种可能的设计中,交换机根据第一报文中携带的信息与终端策略组EPG的标识的对应关系确定第一用户属于第一EPG包括:交换机根据第一报文中携带的第一VLAN标识、交换机接收第一报文的第一入接口,以及VLAN标识以及入接口标识共同与EPG的标识的对应关系确定第一用户属于第一EPG。In a possible design, the switch determining that the first user belongs to the first EPG according to the correspondence between the information carried in the first message and the identifier of the terminal policy group EPG includes: the switch according to the first VLAN carried in the first message It is determined that the first user belongs to the first EPG through the identification, the first inbound interface of the switch that receives the first message, and the correspondence between the VLAN ID and the inbound interface ID and the EPG ID.
在一种可能的设计中,交换机将第一用户加入组播组包括:交换机确定是否存在与第一用户共同属于第一IP组播地址所对应的组播组的第二用户;确定是,则将第一用户加入到与第二用户共同所属的组播组,并建立第一入接口标识和第一IP组播地址的对应关系;若确定否,则交换机建立第一入接口标识和第一IP组播地址的对应关系,通过与交换机连接的上游设备向汇聚点RP发送组播加入消息,组播加入消息包括第一IP组播地址,以及建立交换机发送组播加入消息的第一出接口的标识与第一IP组播地址的对应关系,以使上游设备和RP建立接收组播加入消息的入接口标识和第一IP组播地址的对应关系,和发送组播加入消息的出接口标识与第一IP组播地址的对应关系。In a possible design, the switch adding the first user to the multicast group includes: the switch determines whether there is a second user who belongs to the multicast group corresponding to the first IP multicast address together with the first user; if yes, then Add the first user to the multicast group to which the second user belongs together, and set up the corresponding relationship between the first ingress interface identifier and the first IP multicast address; The corresponding relationship of the IP multicast address is to send a multicast join message to the rendezvous point RP through the upstream device connected to the switch. The multicast join message includes the first IP multicast address and establishes the first outgoing interface for the switch to send the multicast join message. The corresponding relationship between the identifier of the IP address and the first IP multicast address, so that the upstream device and the RP can establish the corresponding relationship between the incoming interface identifier receiving the multicast join message and the first IP multicast address, and the outgoing interface identifier sending the multicast join message Corresponding relationship with the first IP multicast address.
由此,将用户的IP组播地址与交换机的入接口和出接口建立对应关系后,当用户发送组播流量时,交换机可以根据IP组播地址与交换机的入接口和出接口将组播流量进行转发至组播组的其余用户,即基于接口粒度将用户加入到组播组中。Therefore, after establishing a corresponding relationship between the user's IP multicast address and the inbound and outbound interfaces of the switch, when the user sends multicast traffic, the switch can forward the multicast traffic according to the IP multicast address and the inbound and outbound interfaces of the switch. Forwarding to other users of the multicast group means adding users to the multicast group based on interface granularity.
在一种可能的设计中,交换机将第一用户加入组播组包括:交换机确定是否存在与第一用户属于同一组播组的第二用户;若确定是,则将第一用户加入到与第二用户共同所属的组播组,并建立第一入接口标识和第一IP地址共同与第一IP组播地址的对应关系,或建立第一入接口标识、第一IP地址和第一VLAN标识共同与第一IP组播地址的对应关系;若确定否,则交换机建立第一入接口标识和第一IP地址共同与第一IP组播地址的对应关系,或建立第一入接口标识、第一IP地址和第一VLAN标识共同与第一IP组播地址的标识的对应关系,通过与交换机连接的上游设备向汇聚点RP发送组播加入消息,组播加入消息包括第一IP组播地址,以及建立交换机发送组播加入消息的第一出接口标识与第一IP组播地址的对应关系,以使上游设备和RP建立接收组播加入消息的入接口标识和第一IP组播地址的对应关系,和发送组播加入消息的出接口标识与第一IP组播地址的对应关系。In a possible design, the switch adding the first user to the multicast group includes: the switch determines whether there is a second user belonging to the same multicast group as the first user; The multicast group to which the two users belong together, and establish the corresponding relationship between the first inbound interface identifier and the first IP address and the first IP multicast address, or establish the first inbound interface identifier, the first IP address and the first VLAN identifier Common correspondence with the first IP multicast address; if determined no, the switch establishes the correspondence between the first incoming interface identification and the first IP address and the first IP multicast address, or establishes the first incoming interface identification, the first incoming interface identification, the first IP multicast address An IP address and the corresponding relationship between the identification of the first VLAN and the identification of the first IP multicast address, the upstream device connected to the switch sends a multicast join message to the rendezvous point RP, and the multicast join message includes the first IP multicast address , and establish the corresponding relationship between the first outgoing interface identifier of the switch sending the multicast join message and the first IP multicast address, so that the upstream device and the RP establish the connection between the incoming interface identifier and the first IP multicast address for receiving the multicast join message The corresponding relationship, and the corresponding relationship between the outgoing interface identifier sending the multicast join message and the first IP multicast address.
由此,可基于用户粒度将用户加入到组播组中。这样,在同一接口下对应有多个用户例如对应多个VM时,如果多个VM属于不同的EPG,可以根据用户的IP地址和接口标识共同与EPG的对应关系确定属于同一EPG的VM,避免不必要的流量泛洪。Thus, users can be added to the multicast group based on user granularity. In this way, when there are multiple users corresponding to multiple VMs under the same interface, if the multiple VMs belong to different EPGs, the VMs belonging to the same EPG can be determined according to the corresponding relationship between the user's IP address and interface identifier and the EPG, so as to avoid Unnecessary flooding of traffic.
在一种可能的设计中,方法还包括:当交换机接收到第三用户对应的第二组播流量时,第二组播流量包括第三用户所属的组播组对应的第二IP组播地址,交换机根据第二IP组播地址与出接口的对应关系,向与第二IP组播地址对应的出接口下的用户复制并发送第二组播流量。In a possible design, the method further includes: when the switch receives the second multicast traffic corresponding to the third user, the second multicast traffic includes the second IP multicast address corresponding to the multicast group to which the third user belongs The switch copies and sends the second multicast traffic to users under the outgoing interface corresponding to the second IP multicast address according to the correspondence between the second IP multicast address and the outgoing interface.
在一种可能的设计中,方法还包括:当交换机接收到第三用户对应的第二组播流量时,第二组播流量包括第三用户所属的组播组对应的第二IP组播地址,交换机根据至少一个用户对应的第二入接口标识和第二IP地址共同与第二IP组播地址的对应关系,将第二IP组播地址替换为与第二IP组播地址对应的第二IP地址;交换机将与第二入接口标识对应的接口作为出接口,在出接口处复制第二组播流量,并根据替换后的第二IP地址将复制的第二组播流量发送给至少一个用户。In a possible design, the method further includes: when the switch receives the second multicast traffic corresponding to the third user, the second multicast traffic includes the second IP multicast address corresponding to the multicast group to which the third user belongs The switch replaces the second IP multicast address with the second IP multicast address corresponding to the second IP address; the switch uses the interface corresponding to the second incoming interface identifier as the outgoing interface, copies the second multicast flow at the outgoing interface, and sends the copied second multicast flow to at least one according to the replaced second IP address user.
举例来说,当交换机同一接口下连接有多个虚拟机(Virtual Machine,VM)时,如果多个虚拟机属于不同的EPG,可以根据接口标识和IP地址共同与IP组播地址的对应关系将IP组播地址替换为VM的IP地址,由组播改为单播,以使得同一EPG的用户的组播流量不会发送给其它EPG的用户。For example, when multiple virtual machines (Virtual Machine, VM) are connected to the same interface of the switch, if the multiple virtual machines belong to different EPGs, the corresponding relationship between the interface identifier and the IP address and the IP multicast address can be The IP multicast address is replaced with the IP address of the VM, and multicast is changed to unicast, so that the multicast traffic of users of the same EPG will not be sent to users of other EPGs.
在一种可能的设计中,在第一用户上线后,方法还包括:In a possible design, after the first user goes online, the method further includes:
交换机为第一用户建立成员表,成员表包括第一用户的MAC地址、第一入接口标识、第一VLAN标识和第一IP地址的对应关系,第一成员表用于检验发送组播流量的用户是否合法。The switch establishes a membership table for the first user, and the membership table includes the corresponding relationship between the MAC address of the first user, the first ingress interface identifier, the first VLAN identifier, and the first IP address, and the first membership table is used to check the status of sending multicast traffic. Whether the user is legitimate.
例如,有另一用户仿冒第一用户的IP地址和MAC地址,在另一接口向交换机发送攻击的组播流量,那么交换机可以根据保存的成员表确定组播流量对应的接口信息有误,确定该组播流量不合法,以便阻止该非法的组播流量的发送。For example, if another user forges the IP address and MAC address of the first user and sends attacking multicast traffic to the switch on another interface, then the switch can determine that the interface information corresponding to the multicast traffic is wrong according to the saved member list, and determine The multicast traffic is illegal, so as to prevent the sending of the illegal multicast traffic.
在一种可能的设计中,方法还包括:当交换机侦听到第一用户下线时,删除成员表,并向汇聚点RP发送第二报文,第二报文包括第一IP组播地址,以便RP删除接收组播加入消息的入接口标识和第一IP组播地址的对应关系,和出接口标识与第一IP组播地址的对应关系。In a possible design, the method further includes: when the switch detects that the first user is offline, delete the member list, and send a second message to the rendezvous point RP, the second message includes the first IP multicast address , so that the RP deletes the correspondence between the identifier of the incoming interface receiving the multicast join message and the first IP multicast address, and the correspondence between the identifier of the outgoing interface and the first IP multicast address.
由此,第一用户下线时,删除交换机中的成员表和RP中的对应关系,可以节省交换机和RP的存储空间。Therefore, when the first user goes offline, the corresponding relationship between the membership table in the switch and the RP is deleted, which can save the storage space of the switch and the RP.
另一方面,提供一种交换机,包括:In another aspect, a switch is provided, including:
侦听单元,用于侦听第一用户上线时发送的第一报文中携带的信息;确定单元,用于根据第一报文中携带的信息与终端策略组EPG的标识的对应关系确定第一用户属于第一EPG,并根据第一EPG的标识以及EPG的标识与网际协议IP组播地址的对应关系确定第一用户对应第一IP组播地址,并确定第一用户属于第一IP组播地址所对应的组播组,其中EPG包括虚拟局域网VLAN,虚拟扩展局域网VXLAN,或同一个网段或子网中的用户中的部分用户,第一EPG为多个EPG中的一个;加入单元,用于将第一用户加入组播组;封装单元,用于当交换机接收到第一用户发送的第一广播和未知单播组播BUM流量时,将第一BUM流量封装为组播组的第一组播流量,第一组播流量包括第一IP组播地址,以使第一组播流量转发至属于组播组对应的其它用户。The listening unit is configured to listen to the information carried in the first message sent when the first user goes online; the determining unit is configured to determine the first message according to the correspondence between the information carried in the first message and the identifier of the terminal policy group EPG. A user belongs to the first EPG, and according to the identification of the first EPG and the corresponding relationship between the identification of the EPG and the IP multicast address of the Internet Protocol, it is determined that the first user corresponds to the first IP multicast address, and it is determined that the first user belongs to the first IP group The multicast group corresponding to the multicast address, wherein the EPG includes a virtual local area network VLAN, a virtual extended local area network VXLAN, or some users in the same network segment or subnet, and the first EPG is one of multiple EPGs; the joining unit , for adding the first user to the multicast group; an encapsulation unit, used for encapsulating the first BUM traffic into the multicast group when the switch receives the first broadcast and unknown unicast multicast BUM traffic sent by the first user The first multicast traffic, where the first multicast traffic includes a first IP multicast address, so that the first multicast traffic is forwarded to corresponding other users belonging to the multicast group.
在一种可能的设计中,还包括:建立单元,用于建立VLAN标识以及入接口标识共同与EPG的标识的对应关系;以及建立EPG的标识与IP组播地址的对应关系。In a possible design, it also includes: an establishing unit, configured to establish a correspondence between the VLAN ID and the inbound interface ID and the EPG ID; and establish a corresponding relationship between the EPG ID and the IP multicast address.
在一种可能的设计中,确定单元用于:In one possible design, the determination unit is used to:
根据第一报文中携带的第一VLAN标识、交换机接收第一报文的第一入接口,以及VLAN标识以及入接口标识共同与EPG的标识的对应关系确定第一用户属于第一EPG。Determine that the first user belongs to the first EPG according to the first VLAN ID carried in the first message, the first inbound interface of the switch receiving the first message, and the correspondence between the VLAN ID and the inbound interface ID and the EPG ID.
在一种可能的设计中,加入单元包括:确定子单元,用于确定是否存在与第一用户共同属于第一IP组播地址所对应的组播组的第二用户;建立子单元用于:若确定是,则将第一用户加入到与第二用户共同所属的组播组,并建立第一入接口标识和第一IP组播地址的对应关系;若确定否,则建立第一入接口标识和第一IP组播地址的对应关系,方法还包括发送子单元,用于通过与交换机连接的上游设备向汇聚点RP发送组播加入消息,组播加入消息包括第一IP组播地址,以及建立交换机发送组播加入消息的第一出接口的标识与第一IP组播地址的对应关系,以使上游设备和RP建立接收组播加入消息的入接口标识和第一IP组播地址的对应关系,和发送组播加入消息的出接口标识与第一IP组播地址的对应关系。In a possible design, the joining unit includes: a determination subunit, configured to determine whether there is a second user who belongs to the multicast group corresponding to the first IP multicast address together with the first user; the establishment subunit is used for: If it is determined to be yes, then the first user is added to the multicast group to which the second user belongs together, and the corresponding relationship between the first ingress interface identifier and the first IP multicast address is established; if it is determined to be no, the first ingress interface is established The corresponding relationship between the identifier and the first IP multicast address, the method also includes a sending subunit, which is used to send a multicast join message to the rendezvous point RP through an upstream device connected to the switch, and the multicast join message includes the first IP multicast address, And establish the corresponding relationship between the identification of the first outgoing interface that the switch sends the multicast join message and the first IP multicast address, so that the upstream device and the RP establish the identification of the incoming interface that receives the multicast join message and the first IP multicast address The corresponding relationship, and the corresponding relationship between the outgoing interface identifier sending the multicast join message and the first IP multicast address.
在一种可能的设计中,加入单元包括:确定子单元,用于确定是否存在与第一用户属于同一组播组的第二用户;建立子单元用于:若确定是,则将第一用户加入到与第二用户共同所属的组播组,并建立第一入接口标识和第一IP地址共同与第一IP组播地址的对应关系,或建立第一入接口标识、第一IP地址和第一VLAN标识共同与第一IP组播地址的对应关系;若确定否,则建立第一入接口标识和第一IP地址共同与第一IP组播地址的对应关系,或建立第一入接口标识、第一IP地址和第一VLAN标识共同与第一IP组播地址的标识的对应关系,通过与交换机连接的上游设备向汇聚点RP发送组播加入消息,组播加入消息包括第一IP组播地址,以及建立交换机发送组播加入消息的第一出接口标识与第一IP组播地址的对应关系,以使上游设备和RP建立接收组播加入消息的入接口标识和第一IP组播地址的对应关系,和发送组播加入消息的出接口标识与第一IP组播地址的对应关系。In a possible design, the joining unit includes: a determining subunit, configured to determine whether there is a second user belonging to the same multicast group as the first user; the establishing subunit is configured to: if yes, add the first user Join the multicast group that the second user belongs to, and establish the correspondence between the first inbound interface identifier and the first IP address and the first IP multicast address, or establish the first inbound interface identifier, the first IP address and The corresponding relationship between the first VLAN mark and the first IP multicast address; if it is determined that no, then set up the common corresponding relationship between the first incoming interface mark and the first IP address and the first IP multicast address, or set up the first incoming interface ID, the first IP address, and the first VLAN ID together with the corresponding relationship of the ID of the first IP multicast address, send a multicast join message to the rendezvous point RP through the upstream device connected to the switch, and the multicast join message includes the first IP Multicast address, and establish the corresponding relationship between the first outgoing interface identifier of the switch sending the multicast join message and the first IP multicast address, so that the upstream device and RP can establish the incoming interface identifier and the first IP group for receiving the multicast join message The corresponding relationship between the multicast address and the corresponding relationship between the outgoing interface identifier sending the multicast join message and the first IP multicast address.
在一种可能的设计中,还包括发送单元,用于:当交换机接收到第三用户对应的第二组播流量时,第二组播流量包括第三用户所属的组播组对应的第二IP组播地址,根据第二IP组播地址与出接口的对应关系,向与第二IP组播地址对应的出接口下的用户复制并发送第二组播流量。In a possible design, it further includes a sending unit, configured to: when the switch receives the second multicast traffic corresponding to the third user, the second multicast traffic includes the second multicast traffic corresponding to the multicast group to which the third user belongs. The IP multicast address, according to the correspondence between the second IP multicast address and the outgoing interface, copies and sends the second multicast traffic to users under the outgoing interface corresponding to the second IP multicast address.
在一种可能的设计中,还包括替换单元,用于当交换机接收到第三用户对应的第二组播流量时,第二组播流量包括第三用户所属的组播组对应的第二IP组播地址,根据至少一个用户对应的第二入接口标识和第二IP地址共同与第二IP组播地址的对应关系,将第二IP组播地址替换为与第二IP组播地址对应的第二IP地址;发送单元,用于将与第二入接口标识对应的接口作为出接口,在出接口处复制第二组播流量,并根据替换后的第二IP地址将复制的第二组播流量发送给至少一个用户。In a possible design, a replacement unit is further included, configured to: when the switch receives the second multicast traffic corresponding to the third user, the second multicast traffic includes the second IP address corresponding to the multicast group to which the third user belongs For the multicast address, replace the second IP multicast address with the one corresponding to the second IP multicast address according to the corresponding relationship between the second inbound interface identifier and the second IP address corresponding to at least one user and the second IP multicast address. The second IP address; the sending unit is used to use the interface corresponding to the second incoming interface identifier as the outgoing interface, copy the second multicast flow at the outgoing interface, and copy the second group according to the replaced second IP address broadcast traffic to at least one user.
在一种可能的设计中,建立单元还用于:为第一用户建立成员表,成员表包括第一用户的MAC地址、第一入接口标识、第一VLAN标识和第一IP地址的对应关系,第一成员表用于检验发送组播流量的用户是否合法。In a possible design, the establishment unit is also used to: establish a membership table for the first user, the membership table includes the correspondence between the MAC address of the first user, the first ingress interface identifier, the first VLAN identifier, and the first IP address , the first member table is used to check whether the user sending the multicast traffic is legitimate.
在一种可能的设计中,还包括:删除单元,用于当交换机侦听到第一用户下线时,删除成员表;发送单元还用于:向汇聚点RP发送第二报文,第二报文包括第一IP组播地址,以便RP删除接收组播加入消息的入接口标识和第一IP组播地址的对应关系,和出接口标识与第一IP组播地址的对应关系。In a possible design, it also includes: a deletion unit, which is used to delete the member list when the switch detects that the first user is offline; the sending unit is also used to: send the second message to the rendezvous point RP, the second The message includes the first IP multicast address, so that the RP deletes the corresponding relationship between the incoming interface identifier and the first IP multicast address receiving the multicast join message, and the corresponding relationship between the outgoing interface identifier and the first IP multicast address.
本发明实施例提供一种用户隔离方法和交换机,交换机侦听第一用户上线时发送的第一报文中携带的信息,交换机根据第一报文中携带的信息与EPG的标识的对应关系确定第一用户属于第一EPG,并根据第一EPG的标识以及EPG的标识与IP组播地址的对应关系确定第一用户对应第一IP组播地址,并确定第一用户属于第一IP组播地址所对应的组播组,而后,交换机将第一用户加入组播组,当交换机接收到第一用户发送的第一BUM流量时,交换机将第一BUM流量封装为组播组的第一组播流量,第一组播流量包括第一IP组播地址,以使得第一组播流量转发至组播组的其它用户,这样通过在一个网络中划分不同的EPG,每个EPG分配一个IP组播地址用以承载该EPG的用户的所有BUM流量,即通过隔离的不同EPG的BUM流量来实现用户隔离,以解决共享同一VLAN或同一VXLAN的租户群间的BUM流量无法隔离的问题,相对于现有技术中非组播方式转发流量,可能会导致不必要的端口也接收到该流量,占用网络带宽,本申请会优化BUM流量的转发功能。An embodiment of the present invention provides a user isolation method and a switch. The switch listens to the information carried in the first message sent by the first user when going online, and the switch determines the information according to the correspondence between the information carried in the first message and the EPG identifier. The first user belongs to the first EPG, and according to the identification of the first EPG and the corresponding relationship between the identification of the EPG and the IP multicast address, it is determined that the first user corresponds to the first IP multicast address, and it is determined that the first user belongs to the first IP multicast The multicast group corresponding to the address, then, the switch adds the first user to the multicast group, when the switch receives the first BUM flow sent by the first user, the switch encapsulates the first BUM flow into the first group of the multicast group broadcast traffic, the first multicast traffic includes the first IP multicast address, so that the first multicast traffic is forwarded to other users of the multicast group, so that by dividing different EPGs in a network, each EPG is assigned an IP group The multicast address is used to carry all the BUM traffic of the users of the EPG, that is, to implement user isolation by isolating the BUM traffic of different EPGs, so as to solve the problem that the BUM traffic between tenant groups sharing the same VLAN or the same VXLAN cannot be isolated. In the prior art, forwarding traffic in a non-multicast mode may cause unnecessary ports to receive the traffic and occupy network bandwidth. This application will optimize the forwarding function of BUM traffic.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce 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 are only some of the present invention. Embodiments, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为本发明实施例提供的一种VLAN的网络结构示意图;Fig. 1 is the network structural diagram of a kind of VLAN that the embodiment of the present invention provides;
图2为本发明实施例提供的一种VXLAN的网络结构示意图;FIG. 2 is a schematic diagram of a VXLAN network structure provided by an embodiment of the present invention;
图3为本发明实施例提供的一种用户隔离方法的流程示意图;FIG. 3 is a schematic flowchart of a user isolation method provided by an embodiment of the present invention;
图4为本发明实施例提供的一种多个EPG间流量隔离的系统示意图;FIG. 4 is a schematic diagram of a system of traffic isolation between multiple EPGs provided by an embodiment of the present invention;
图5为本发明实施例提供的一种用户加入到组播组中的信号流程图;FIG. 5 is a signal flow diagram of a user joining a multicast group provided by an embodiment of the present invention;
图6为本发明实施例提供的一种发送组播流量的信号流程图;FIG. 6 is a signal flow diagram for sending multicast traffic provided by an embodiment of the present invention;
图7为本发明实施例提供的一种用户下线时的信号流程图;FIG. 7 is a signal flow diagram when a user goes offline according to an embodiment of the present invention;
图8为本发明实施例提供的一种交换机的结构示意图;FIG. 8 is a schematic structural diagram of a switch provided by an embodiment of the present invention;
图9为本发明实施例提供的一种交换机的结构示意图。FIG. 9 is a schematic structural diagram of a switch provided by an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
在VLAN中,每个VLAN对应一个网段或子网,可以减少在同一个广播域中的服务器的数量,降低不必要的广播流量。如图1所示,与交换机连接的多个用户对应不同的VLAN,用户1、用户2和用户3对应的用户设备属于VLAN10,用户4和用户5对应的用户设备属于VLAN20,VLAN10和VLAN20之间的BUM流量隔离,即VLAN10中的任一用户设备发送BUM流量时,VLAN10中的其它所有用户设备都会接收到该BUM流量,而VLAN20中的用户设备都不会接收到该BUM流量。如果该BUM流量需要从VLAN10传输至VLAN20,则需要通过路由器或三层交换机来实现。In VLAN, each VLAN corresponds to a network segment or subnet, which can reduce the number of servers in the same broadcast domain and reduce unnecessary broadcast traffic. As shown in Figure 1, multiple users connected to the switch correspond to different VLANs. The user equipment corresponding to user 1, user 2 and user 3 belongs to VLAN10, and the user equipment corresponding to user 4 and user 5 belongs to VLAN20, between VLAN10 and VLAN20 BUM traffic isolation, that is, when any user equipment in VLAN10 sends BUM traffic, all other user equipment in VLAN10 will receive the BUM traffic, and no user equipment in VLAN20 will receive the BUM traffic. If the BUM traffic needs to be transmitted from VLAN10 to VLAN20, it needs to be implemented through a router or a Layer 3 switch.
虚拟扩展局域网(Virtual eXtensible Local Area Network,VXLAN)是一种将二层报文用三层协议进行封装的技术,可以对二层网络在三层范围进行扩展。每个广播域(Broadcast Domain,BD)被称为VXLAN segment,它的ID是由位于VXLAN数据包头中的VXLAN网络标识符(VXLAN Network Identifier,VNI)标识的。VNI字段包含24bits,故segments最大数量为2的24次方个,并且只有在相同VXLAN segment内的虚拟机之间才可以相互通信。在VXLAN中,将传统的物理服务器虚拟化成若干个虚拟服务器,即虚拟机(VirtualMachine,VM),每个VM运行着独立的操作系统。同一个VXLAN对应的租户拥有虚拟服务器资源池中的一个VM或一组VM。如图2所示,VXLAN中,可以包括汇聚点(Rendezvous Point,RP)(图中未示出)、脊(spine)交换机、叶(leaf)交换机和服务器。不同的leaf交换机下连接有多个服务器,每个服务器中包括有至少一个VM,每个VM为一个独立的用户,服务器1包括VM1和VM2,服务器2包括VM3和VM4,服务器3包括VM5和VM6,同一服务器中的不同的VM可能属于不同的租户,如图2中的VM1和VM6可以属于同一租户,VM2和VM3可以属于同一租户,VM4和VM5可以属于同一租户。在同一VXLAN网络内任何一个VM(或服务器)发出的BUM流量都会在该VXLAN中泛洪至每个成员,跨VXLAN之间的BUM流量需要通过路由器或三层交换机来实现。Virtual eXtensible Local Area Network (VXLAN) is a technology that encapsulates Layer 2 packets with Layer 3 protocols, and can extend the Layer 2 network within the Layer 3 range. Each Broadcast Domain (Broadcast Domain, BD) is called a VXLAN segment, and its ID is identified by a VXLAN Network Identifier (VXLAN Network Identifier, VNI) located in the VXLAN packet header. The VNI field contains 24 bits, so the maximum number of segments is 2 to the 24th power, and only virtual machines in the same VXLAN segment can communicate with each other. In VXLAN, a traditional physical server is virtualized into several virtual servers, that is, virtual machines (Virtual Machine, VM), and each VM runs an independent operating system. A tenant corresponding to the same VXLAN owns a VM or a group of VMs in the virtual server resource pool. As shown in FIG. 2 , the VXLAN may include a rendezvous point (Rendezvous Point, RP) (not shown in the figure), a spine (spine) switch, a leaf (leaf) switch, and a server. There are multiple servers connected to different leaf switches, each server includes at least one VM, each VM is an independent user, server 1 includes VM1 and VM2, server 2 includes VM3 and VM4, server 3 includes VM5 and VM6 , different VMs in the same server may belong to different tenants, for example, VM1 and VM6 in Figure 2 may belong to the same tenant, VM2 and VM3 may belong to the same tenant, and VM4 and VM5 may belong to the same tenant. The BUM traffic sent by any VM (or server) in the same VXLAN network will be flooded to each member in the VXLAN, and the BUM traffic between cross-VXLANs needs to be implemented through routers or Layer 3 switches.
针对现有技术中VLAN和VXLAN需要全局规划,且VLAN和VXLAN资源有限,导致支持的隔离组数量有限,如果不同的租户共享同一个VLAN或VXLAN,则会导致BUM流量无法在租户间隔离的问题,本发明采用在同一个VLAN或VXLAN中划分不同的租户群EPG,并给每个EPG分配一个IP组播地址,用以承载同一EPG的BUM流量,这样通过隔离BUM流量来实现用户隔离。因此,本发明实施例提供一种用户隔离方法,以VXLAN为例,如图3所示,包括:VLAN and VXLAN in the prior art require global planning, and VLAN and VXLAN resources are limited, resulting in a limited number of supported isolation groups. If different tenants share the same VLAN or VXLAN, BUM traffic cannot be isolated between tenants. , the present invention divides different tenant group EPGs in the same VLAN or VXLAN, and assigns an IP multicast address to each EPG to carry the BUM traffic of the same EPG, thus realizing user isolation by isolating the BUM traffic. Therefore, an embodiment of the present invention provides a user isolation method, taking VXLAN as an example, as shown in FIG. 3 , including:
301、交换机建立VLAN标识及交换机的入接口标识共同与EPG的标识的对应关系,以及建立EPG的标识与IP组播地址的对应关系。301. The switch establishes a correspondence between the VLAN identifier and the inbound interface identifier of the switch and the EPG identifier, and establishes a correspondence between the EPG identifier and the IP multicast address.
这里的交换机为leaf交换机,即与用户设备直接连接的交换机。The switch here is a leaf switch, that is, a switch directly connected to the user equipment.
在本申请实施例中,可为每一个EPG都分配一个IP组播地址,并建立EPG的标识与IP组播地址的对应关系。EPG即为一个租户,同一个VLAN可能对应一个EPG或多个EPG,即多个EPG共享同一VLAN,同样的,同一个VXLAN也可能对应一个EPG或多个EPG。例如,如图4所示,不同的VM与机顶交换机(Top of Rank,ToR)连接(图中未示出),ToR为本实施例中的leaf交换机。其中VM1和VM6为同一个租户,属于EPG-1,EPG-1对应的IP组播地址为225.0.0.1,VM2和VM3为同一个租户,属于EPG-2,EPG-2对应的IP组播地址为225.0.0.2,VM4和VM5为同一个租户,属于EPG-3,EPG-3对应的IP组播地址为225.0.0.3。EPG-1、EPG-2和EPG-3均属于同一个VXLAN的广播域BD8,其对应的VNI为10000,该VXLAN对应的网段为IP192.168.1.1/16。网关(GateWay,GW)1和GW2可以为路由器或交换机。In the embodiment of the present application, an IP multicast address may be assigned to each EPG, and a correspondence between an EPG identifier and an IP multicast address is established. An EPG is a tenant. The same VLAN may correspond to one EPG or multiple EPGs, that is, multiple EPGs share the same VLAN. Similarly, the same VXLAN may correspond to one EPG or multiple EPGs. For example, as shown in FIG. 4 , different VMs are connected to a set-top switch (Top of Rank, ToR) (not shown in the figure), and the ToR is a leaf switch in this embodiment. Among them, VM1 and VM6 belong to the same tenant and belong to EPG-1. The IP multicast address corresponding to EPG-1 is 225.0.0.1. VM2 and VM3 belong to the same tenant and belong to EPG-2. The IP multicast address corresponding to EPG-2 is 225.0.0.2, VM4 and VM5 belong to the same tenant and belong to EPG-3, and the IP multicast address corresponding to EPG-3 is 225.0.0.3. EPG-1, EPG-2, and EPG-3 all belong to the same VXLAN broadcast domain BD8, the corresponding VNI is 10000, and the network segment corresponding to this VXLAN is IP192.168.1.1/16. Gateways (GateWay, GW) 1 and GW2 may be routers or switches.
当在leaf交换机中配置VLAN标识以及leaf交换机的入接口标识共同与EPG的标识的对应关系后,若某一用户上线时,则leaf交换机可根据接收该用户发送报文的入接口的标识和报文中携带的VLAN标识与EPG的标识的对应关系确定用户所属的EPG。After the VLAN ID and the corresponding relationship between the ID of the incoming interface of the leaf switch and the ID of the EPG are configured on the leaf switch, if a user goes online, the leaf switch can The corresponding relationship between the VLAN identifier carried in the text and the EPG identifier determines the EPG to which the user belongs.
其中,leaf交换机中建立的VLAN标识和入接口标识共同与EPG的标识的对应关系,和EPG的标识与IP组播地址的对应关系可以是人工配置在leaf交换机中的,也可以是如图4中的接入控制器(Access Controller,AC)向leaf交换机直接或间接通过其它交换机下发配置信息并保存在leaf交换机中的。其中在人工配置时,可以通过命令行将对应关系输入至leaf交换机;在AC下发配置信息至leaf交换机时,可以先将配置信息通过命令行输入配置在AC端,AC通过与leaf交换机之间连接的GW将配置信息透传给leaf交换机,或者AC也可以与leaf交换机直接连接,并将配置信息直接下发给leaf交换机,例如AC可以通过OpenFlow接口或网络管理接口或其它接口向leaf交换机下发配置信息。Among them, the corresponding relationship between the VLAN ID and the incoming interface ID established in the leaf switch and the EPG ID, and the corresponding relationship between the EPG ID and the IP multicast address can be manually configured in the leaf switch, or it can be as shown in Figure 4 The access controller (Access Controller, AC) in the AC sends configuration information to the leaf switch directly or indirectly through other switches and saves the configuration information in the leaf switch. During manual configuration, the corresponding relationship can be input to the leaf switch through the command line; when the AC sends configuration information to the leaf switch, the configuration information can be input and configured on the AC side through the command line, and the AC is connected to the leaf switch The GW transparently transmits the configuration information to the leaf switch, or the AC can also directly connect to the leaf switch and deliver the configuration information directly to the leaf switch. For example, the AC can deliver the configuration information to the leaf switch through the OpenFlow interface, the network management interface, or other interfaces. configuration information.
302、交换机侦听第一用户上线时发送的第一报文中携带的信息。302. The switch monitors the information carried in the first packet sent when the first user goes online.
当某一时刻,一个新用户(对应一个VM)从leaf交换机上线时,leaf交换机可以接收到第一用户发送的第一报文,该第一报文可以为动态主机配置协议(Dynamic HostConfiguration Protocol,DHCP)报文,并侦听DHCP报文中携带的第一用户的第一媒体访问控制(Media Access Control,MAC)地址和第一用户所属的第一VLAN的第一VLAN标识。When at a certain moment, when a new user (corresponding to a VM) goes online from the leaf switch, the leaf switch can receive the first message sent by the first user, and the first message can be a Dynamic Host Configuration Protocol (Dynamic HostConfiguration Protocol, DHCP) message, and listen to the first media access control (Media Access Control, MAC) address of the first user carried in the DHCP message and the first VLAN identifier of the first VLAN to which the first user belongs.
303、交换机根据第一报文中携带的信息与EPG的标识的对应关系确定第一用户属于第一EPG,并根据第一EPG的标识与IP组播地址的对应关系确定第一用户对应的第一IP组播地址。303. The switch determines that the first user belongs to the first EPG according to the correspondence between the information carried in the first message and the EPG identifier, and determines the first EPG corresponding to the first user according to the correspondence between the first EPG identifier and the IP multicast address. An IP multicast address.
Leaf交换机在侦听到第一报文中携带的第一用户的第一MAC地址和第一VLAN标识后,可根据接收到第一报文的接口确定第一用户连接leaf交换机的第一接口标识,并为第一用户分配第一IP地址。Leaf交换机可根据第一MAC地址、第一VLAN标识、第一IP地址和第一接口标识为第一用户设备建立成员表,成员表包括该第一MAC地址、第一VLAN标识、第一IP地址和第一接口标识等信息。该成员表可用于安全校验,以检测后续用户发送的组播流量是否合法,例如存在另一用户仿冒了与第一用户相同的第一MAC地址和第一IP地址,但是另一用户与第一用户分别和leaf交换机连接的是不同的接口,另一用户可能从另一接口向leaf交换机发送用于攻击的组播流量。假设leaf交换机在确定另一用户发送组播流量时与成员表中的第一IP地址和第一MAC地址均相同,但是接口标识与成员表中的第一接口标识不同,则leaf交换机可以不接收另一用户发送的组播流量。After the leaf switch detects the first MAC address and the first VLAN ID of the first user carried in the first message, it can determine the first interface ID of the first user connected to the leaf switch according to the interface that receives the first message , and assign the first IP address to the first user. The Leaf switch can establish a member table for the first user equipment according to the first MAC address, the first VLAN identifier, the first IP address and the first interface identifier, and the member table includes the first MAC address, the first VLAN identifier, and the first IP address and the first interface identifier and other information. This member table can be used for security verification to detect whether the multicast traffic sent by subsequent users is legal. One user is connected to the leaf switch through different interfaces, and another user may send multicast traffic for attacking to the leaf switch through another interface. Assuming that the leaf switch determines that another user sends multicast traffic, it is the same as the first IP address and first MAC address in the member table, but the interface ID is different from the first interface ID in the member table, then the leaf switch may not receive the multicast traffic. Multicast traffic sent by another user.
由于leaf交换机中保存有接口标识和VLAN标识共同与EPG的标识的对应关系,于是,leaf交换机可以根据第一接口标识和第一VLAN标识共同与第一EPG的标识的对应关系确定第一用户所属的第一EPG,例如第一用户属于EPG-1。又由于leaf交换机中保存有EPG的标识与IP组播地址的对应关系,因此,leaf交换机可以根据第一用户所属的第一EPG的标识与第一IP组播地址的对应关系确定第一用户所属的组播组对应的第一IP组播地址,例如EPG-1对应的IP组播地址为225.0.0.1,第一用户所属的组播组对应的IP组播地址就为225.0.0.1。组播组可以理解为组播报文或者数据帧发送的目标地址,这里的目标地址例如为225.0.0.1。Since the leaf switch stores the corresponding relationship between the interface identifier and the VLAN identifier and the EPG identifier, the leaf switch can determine the first user's identity according to the corresponding relationship between the first interface identifier and the first VLAN identifier and the first EPG identifier. The first EPG, for example, the first user belongs to EPG-1. And because the corresponding relationship between the EPG identifier and the IP multicast address is stored in the leaf switch, the leaf switch can determine the corresponding relationship between the first EPG identifier to which the first user belongs and the first IP multicast address. The first IP multicast address corresponding to the multicast group, for example, the IP multicast address corresponding to EPG-1 is 225.0.0.1, and the IP multicast address corresponding to the multicast group to which the first user belongs is 225.0.0.1. The multicast group can be understood as a destination address for sending multicast packets or data frames, where the destination address is, for example, 225.0.0.1.
Leaf交换机保存有接口标识和VLAN标识共同与EPG的标识的对应关系是由于leaf交换机的同一接口可能连接有不同EPG中的VM,即,leaf交换机的任一接口可连接不同的VXLAN或不同的EPG中的VM。Leaf switches store the corresponding relationship between the interface ID and VLAN ID and the EPG ID because the same interface of the leaf switch may be connected to VMs in different EPGs, that is, any interface of the leaf switch can be connected to different VXLANs or different EPGs VMs in .
304、交换机将第一用户加入组播组,而后执行步骤305或步骤306。304. The switch adds the first user to the multicast group, and then performs step 305 or step 306.
Leaf交换机在确定第一用户所属的组播组的第一IP组播地址后,可将第一用户加入到该组播组中。用户加入组播组的过程即为建立组播共享树的过程,建立的组播共享树时均以leaf交换机已知的RP为根建立。其中,组播共享树是在网络中选一个RP之后,所有的组播报文都需要从这个RP来进行传送。RP是预先设定的一个路由器或交换机,承担转发所有的组播报文的责任。发送组播报文的服务器在发送组播报文前,需要到RP上进行注册,然后通过直连的路由器或交换机来确定到RP的最短路径,通过RP来确定到目的地的最短路径。After the leaf switch determines the first IP multicast address of the multicast group to which the first user belongs, it can add the first user to the multicast group. The process of a user joining a multicast group is the process of establishing a multicast shared tree, and the established multicast shared tree is established with the known RP of the leaf switch as the root. Among them, the multicast shared tree means that after an RP is selected in the network, all multicast packets need to be transmitted from this RP. The RP is a pre-set router or switch that is responsible for forwarding all multicast packets. The server sending multicast packets needs to register with the RP before sending multicast packets, and then determine the shortest path to the RP through the directly connected router or switch, and determine the shortest path to the destination through the RP.
本申请实施例包括基于接口粒度加入到组播组中和基于用户粒度加入到组播组中。无论基于接口粒度还是用户粒度将第一用户加入到组播组中,在将第一用户加入到该组播组之前,由于leaf交换机不同的接口下可能连接有同一EPG中的用户,如果与第一用户属于同一组播组的另一用户已经加入到了该组播组中,那么另一用户与RP的传输路径和RP到目的地的传输路径已经建立好,leaf交换机不需要通过组播共享树向RP发送组播加入消息以加入到组播组中,leaf交换机只需将第一用户加入到与所述另一用户所共属的组播组中。This embodiment of the present application includes adding to a multicast group based on interface granularity and joining to a multicast group based on user granularity. Regardless of whether the first user is added to the multicast group based on interface granularity or user granularity, before the first user is added to the multicast group, users in the same EPG may be connected to different interfaces of the leaf switch. A user belonging to the same multicast group and another user has joined the multicast group, then the transmission path between the other user and the RP and the transmission path from the RP to the destination have been established, and the leaf switch does not need to pass through the multicast shared tree Sending a multicast join message to the RP to join the multicast group, the leaf switch only needs to add the first user to the multicast group that the other user belongs to.
因此,在leaf交换机将第一用户加入组播组之前,leaf交换机先确定交换机中是否保存有与第一用户属于相同组播组的第二用户,具体可以确定leaf交换机中是否建立有第一VLAN标识和第二接口标识与第一EPG的标识的对应关系,即leaf交换机中不同接口下的用户可以属于同一EPG,若确定建立有,则确定leaf交换机中存在与第一用户属于同一组播组的第二用户,此时,该组播组对应的用于转发组播流量的路径已经建立,leaf交换机只需将第一用户加入到leaf交换机的该组播组中即可。Therefore, before the leaf switch adds the first user to the multicast group, the leaf switch first determines whether there is a second user in the switch that belongs to the same multicast group as the first user. Specifically, it can be determined whether the first VLAN is established in the leaf switch The corresponding relationship between the identification and the second interface identification and the identification of the first EPG, that is, users under different interfaces in the leaf switch can belong to the same EPG. At this time, the path corresponding to the multicast group for forwarding multicast traffic has been established, and the leaf switch only needs to add the first user to the multicast group of the leaf switch.
具体地,若基于接口粒度将第一用户加入到组播组中,且已存在与第一用户属于同一组播组的第二用户,则leaf交换机建立接收到第一用户发送的第一报文的第一入接口标识和第一IP组播地址的对应关系;若基于接口粒度将第一用户加入到组播组中,且不存在与第一用户属于同一组播组的第二用户,则如图5所示,leaf交换机建立第一入接口标识和第一IP组播地址的对应关系,通过与交换机连接的上游设备向RP发送组播加入消息,组播加入消息包括第一IP组播地址,并建立leaf交换机发送组播加入消息的第一出接口标识与第一IP组播地址的对应关系,当上游设备和RP接收到组播加入消息时,上游设备和RP建立接收组播加入消息的接口的入接口标识和第一IP组播地址的对应关系,和发送组播加入消息的出接口标识与第一IP组播地址的对应关系。具体地,leaf交换机可以通过协议无关组播((Protocol Independent Multicast,PIM)Join报文向上游交换机和RP发送组播加入消息,每一级接收到组播加入消息的上游交换机以及RP建立接收到PIM Join报文的入接口与第一IP组播地址的对应关系,和发送PIM Join报文的出接口与第一IP组播地址的对应关系,以将第一用户加入到组播组中;Specifically, if the first user is added to the multicast group based on the interface granularity, and there is already a second user belonging to the same multicast group as the first user, the leaf switch establishes and receives the first message sent by the first user The corresponding relationship between the first incoming interface identifier and the first IP multicast address; if the first user is added to the multicast group based on the interface granularity, and there is no second user belonging to the same multicast group as the first user, then As shown in Figure 5, the leaf switch establishes the corresponding relationship between the first incoming interface identifier and the first IP multicast address, and sends a multicast join message to the RP through an upstream device connected to the switch. The multicast join message includes the first IP multicast address, and establish the corresponding relationship between the first outbound interface identifier of the leaf switch and the first IP multicast address for sending the multicast join message. When the upstream device and RP receive the multicast join message, the upstream device and RP establish the receiving multicast join The corresponding relationship between the incoming interface identifier of the interface of the message and the first IP multicast address, and the corresponding relationship between the outgoing interface identifier sending the multicast join message and the first IP multicast address. Specifically, the leaf switch can send a multicast join message to the upstream switch and RP through a protocol independent multicast (Protocol Independent Multicast, PIM) Join message, and each level receives the multicast join message. The corresponding relationship between the incoming interface of the PIM Join message and the first IP multicast address, and the corresponding relationship between the outgoing interface of the PIM Join message and the first IP multicast address, so as to add the first user to the multicast group;
若基于用户粒度将第一用户加入到组播组中,且已存在与第一用户属于同一组播组的第二用户,则leaf交换机建立第一入接口标识和第一IP地址共同与第一IP组播地址的对应关系,或建立第一入接口标识、第一IP地址和第一VLAN标识共同与第一IP组播地址的对应关系;若基于用户粒度将第一用户加入到组播组中,且不存在与第一用户属于同一组播组的第二用户,则leaf交换机建立第一入接口标识和第一IP地址共同与第一IP组播地址的对应关系,或建立第一入接口标识、第一IP地址和第一VLAN标识共同与第一IP组播地址的对应关系后,通过与leaf交换机连接的上游设备向RP发送组播加入消息,该组播加入消息包括第一IP组播地址,以及建立leaf交换机发送组播加入消息的第一出接口标识与第一IP组播地址的对应关系,每个上游设备和RP在接收到组播接入消息后,建立接收组播加入消息的入接口标识与第一IP组播地址的对应关系,和发送组播加入消息的出接口标识与第一IP组播地址的对应关系,以将第一用户加入到组播组中。If the first user is added to the multicast group based on user granularity, and there is already a second user belonging to the same multicast group as the first user, the leaf switch establishes the first inbound interface ID and the first IP address to share with the first The corresponding relationship between the IP multicast address, or establish the corresponding relationship between the first incoming interface identifier, the first IP address and the first VLAN identifier and the first IP multicast address; if the first user is added to the multicast group based on user granularity , and there is no second user belonging to the same multicast group as the first user, the leaf switch establishes the correspondence between the first ingress interface identifier and the first IP address and the first IP multicast address, or establishes the first ingress After the interface identifier, the first IP address, and the first VLAN identifier have a corresponding relationship with the first IP multicast address, the upstream device connected to the leaf switch sends a multicast join message to the RP, and the multicast join message includes the first IP Multicast address, and establish the corresponding relationship between the first outbound interface identifier of the leaf switch sending the multicast join message and the first IP multicast address. After receiving the multicast access message, each upstream device and RP establish a multicast receive message The corresponding relationship between the incoming interface identifier of the join message and the first IP multicast address, and the corresponding relationship between the outgoing interface identifier and the first IP multicast address for sending the multicast join message, so as to add the first user to the multicast group.
305、当交换机接收到第一用户发送的第一BUM流量时,交换机将第一BUM流量封装为组播组的第一组播流量,以使第一组播流量转发至属于组播组的其它用户。305. When the switch receives the first BUM traffic sent by the first user, the switch encapsulates the first BUM traffic into the first multicast traffic of the multicast group, so that the first multicast traffic is forwarded to other multicast traffic belonging to the multicast group. user.
当第一用户为VM时,leaf交换机中还可以部署有VXLAN隧道终端(VXLANTunneling End Point,VTEP),用于在一端将BUM流量封装为VXLAN数据报文后通过隧道向另一端VTEP发送封装报文,另一端VETP接收到封装的报文解封装后转发报文至各用户。可选的,VETP还可以部署在服务器的虚拟交换机(Virtual Switch,vSwitch)中,即leaf交换机在接收到用户发送的组播流量时,是vSwitch基于VM的MAC或IP控制使得转发查表失败确定流量不是单播,需要泛洪,可通过服务器中的vSwitch将BUM流量封装为组播流量发送给leaf交换机。When the first user is a VM, a VXLAN tunneling end point (VXLAN Tunneling End Point, VTEP) can also be deployed in the leaf switch, which is used to encapsulate the BUM traffic into a VXLAN data packet at one end and send the encapsulated packet to the VTEP at the other end through the tunnel , the other end VETP receives the encapsulated message and decapsulates it and forwards the message to each user. Optionally, VETP can also be deployed in the virtual switch (Virtual Switch, vSwitch) of the server, that is, when the leaf switch receives the multicast traffic sent by the user, it is the VM-based MAC or IP control of the vSwitch that makes the forwarding table lookup fail to determine The traffic is not unicast and needs to be flooded. The vSwitch in the server can encapsulate the BUM traffic as multicast traffic and send it to the leaf switch.
当leaf交换机将第一用户加入到组播组中后,若第一用户要发送BUM流量至组播组中的其它用户,则当与第一用户连接的leaf交换机接收到第一用户发送的第一BUM流量时,如果leaf交换机进行路由查表或地址解析协议(Address Resolution Protocol,ARP)查表或媒体访问控制(Media Access Control,MAC)查表失败时,说明流量不是单播,而是BUM流量,需要泛洪。如图6所示,leaf交换机中的VTEP将第一BUM流量封装为第一用户加入的组播组的第一组播流量,在VXLAN中按照组播共享树转发该第一组播流量,使得该第一组播流量在已建立的组播共享树中转发至属于该组播组的其它用户。具体地,第一组播流量中包括第一IP组播地址,当leaf交换机接收到该第一组播流量时,leaf交换机根据第一IP组播地址与第一出接口标识的对应关系将第一组播流量发送给上游交换机,上游交换机再根据步骤304中建立的入接口标识与第一IP组播地址的对应关系和出接口标识与第一IP组播地址的对应关系将第一组播流量经过spine交换机和RP发送给组播组与其余用户连接的其它leaf交换机,其它leaf交换机根据其余用户加入组播组时的第一IP组播地址和与其它leaf交换机连接的出接口的对应关系,将第一组播流量发送至组播组的其余用户。After the leaf switch adds the first user to the multicast group, if the first user wants to send BUM traffic to other users in the multicast group, when the leaf switch connected to the first user receives the first For BUM traffic, if the leaf switch fails to perform routing table lookup, Address Resolution Protocol (ARP) table lookup, or Media Access Control (MAC) table lookup, it means that the traffic is not unicast but BUM Traffic requires flooding. As shown in Figure 6, the VTEP in the leaf switch encapsulates the first BUM traffic as the first multicast traffic of the multicast group joined by the first user, and forwards the first multicast traffic in the VXLAN according to the multicast shared tree, so that The first multicast traffic is forwarded to other users belonging to the multicast group in the established multicast sharing tree. Specifically, the first multicast traffic includes the first IP multicast address, and when the leaf switch receives the first multicast traffic, the leaf switch converts the first IP multicast address to the first outgoing interface identifier according to the corresponding relationship The multicast flow is sent to the upstream switch, and the upstream switch transmits the first multicast according to the corresponding relationship between the incoming interface identifier and the first IP multicast address and the corresponding relationship between the outgoing interface identifier and the first IP multicast address established in step 304. The traffic is sent through the spine switch and RP to other leaf switches connected to the multicast group and other users. The other leaf switches are based on the correspondence between the first IP multicast address of other users when they join the multicast group and the outgoing interfaces connected to other leaf switches. , to send the first multicast traffic to the remaining users of the multicast group.
306、当交换机接收到第三用户对应的第二组播流量时,第二组播流量包括第三用户所属的组播组对应的第二IP组播地址,交换机根据第二IP组播地址与出接口的对应关系,向与第二IP组播地址对应的出接口下的用户复制并发送第二组播流量。306. When the switch receives the second multicast traffic corresponding to the third user, the second multicast traffic includes a second IP multicast address corresponding to the multicast group to which the third user belongs, and the switch according to the second IP multicast address and The corresponding relationship of the outgoing interface is to copy and send the second multicast traffic to the user under the outgoing interface corresponding to the second IP multicast address.
对于该leaf交换机来说,若是基于接口粒度将用户加入的组播组中,则如果该leaf交换机接收到组播共享树的上游设备转发的第三用户对应的第二组播流量时,假设第二组播流量包括第三用户所属的组播组对应的第二IP组播地址,该leaf交换机可以根据第二IP组播地址与出接口的对应关系,向与第二IP组播地址对应的出接口下的用户复制并发送该第二组播流量。由于第二组播流量中携带第二IP组播地址,该leaf交换机下连接的用户中与第三用户属于同一EPG的用户集合与第三用户对应的组播地址相同,即第二IP组播地址,该用户集合中上线的用户也会如同上述第一用户,在上线时加入到第三用户的组播组中,会建立与leaf交换机连接的入接口与第二IP组播地址的对应关系,那么当leaf交换机接收到上游发送的第二组播流量时,会根据第二组播流量中的第二IP组播地址与leaf交换机的入接口的对应关系,将入接口作为向下游的用户发送的出接口,向用户集合中与第三用户属于同一EPG的用户发送第二组播流量。由于同一EPG中的用户可能连接在leaf交换机上不同的接口上,当leaf交换机确定该EPG中的用户与leaf交换机连接的多个接口时,leaf交换机会在每个确定的接口下复制接收到的第二组播流量,并向每个确定的接口发送该第二组播流量,以使得leaf交换机下不同接口下同一EPG的用户接收到该第二组播流量。其中在发送第二组播流量时,leaf交换机中的VTEP可以根据目的IP即第二IP组播地址解封装第二组播流量,得到第二组播流量对应的报文,以复制和发送该报文至出接口下的用户;或者,leaf交换机将第二组播流量发送给出接口下的用户,用户所在的服务器中的vSwitch会对第二组播流量进行解封装,得到解封装后的报文。For the leaf switch, if the user is added to the multicast group based on the interface granularity, if the leaf switch receives the second multicast traffic corresponding to the third user forwarded by the upstream device of the multicast shared tree, it is assumed that the first The second multicast traffic includes the second IP multicast address corresponding to the multicast group to which the third user belongs. Users on the egress interface copy and send the second multicast traffic. Since the second multicast traffic carries the second IP multicast address, the set of users connected to the leaf switch that belong to the same EPG as the third user has the same multicast address as the third user, that is, the second IP multicast Address, the online users in this user set will also join the multicast group of the third user when they go online, just like the first user above, and will establish the corresponding relationship between the incoming interface connected to the leaf switch and the second IP multicast address , then when the leaf switch receives the second multicast traffic sent upstream, it will use the incoming interface as the downstream user according to the correspondence between the second IP multicast address in the second multicast traffic and the incoming interface of the leaf switch The outgoing interface for sending sends the second multicast traffic to users in the user set that belong to the same EPG as the third user. Since the users in the same EPG may be connected to different interfaces on the leaf switch, when the leaf switch determines the multiple interfaces that the users in the EPG are connected to the leaf switch, the leaf switch will copy the received second multicast traffic, and send the second multicast traffic to each determined interface, so that users of the same EPG under different interfaces under the leaf switch receive the second multicast traffic. Wherein when sending the second multicast traffic, the VTEP in the leaf switch can decapsulate the second multicast traffic according to the destination IP, that is, the second IP multicast address, and obtain the message corresponding to the second multicast traffic, so as to copy and send the or, the leaf switch sends the second multicast traffic to the user on the interface, and the vSwitch in the server where the user resides decapsulates the second multicast traffic to obtain the decapsulated message.
由于在VXLAN中,同一接口下连接的服务器中可能包括有多个VM,如果将组播流量在leaf交换机与服务器连接的接口下复制并转发至该服务器,可使得该服务器中的多个VM会接收到该组播流量,但是如果多个VM属于不同的EPG时,会使得不同的租户都会接收到该组播流量,因此,在上述步骤304中,若是基于用户粒度将用户加入的组播组,即leaf交换机建立有用户的IP地址与IP组播地址的对应关系,则当leaf交换机接收到第三用户对应的第二组播流量时,交换机可以根据至少一个用户对应的第二入接口标识和第二IP地址共同与第二IP组播地址的应关系,将第二IP组播地址替换为与第二IP组播地址对应的第二IP地址;leaf交换机将与第二入接口标识对应的接口作为出接口,在出接口处复制第二组播流量,并根据替换后的第二IP地址将复制的第二组播流量发送给至少一个用户。也就是说,当上游发送的第二组播流量到达leaf交换机时,如果leaf交换机中保存有第二组播流量中的第二IP组播地址与VM和leaf交换机连接的第二入接口标识和第二IP地址的对应关系,将组播转为单播,即用同一EPG下的多个VM的第二IP地址替换第二IP组播地址,并将同一EPG下的VM与该leaf交换机连接的多个入接口作为流量发送的出接口,在每个出接口处复制该第二组播流量,第二组播流量中携带有替换后的用于单播的第二IP地址,当服务器接收到第二组播流量后,会根据第二IP地址将第二组播流量发送给同一EPG下的多个VM,这样可以避免同一接口下不同的EPG的用户接收到组播流量,以减少下游设备不必要的流量泛洪或接收到未知流量。In VXLAN, the server connected to the same interface may contain multiple VMs. If the multicast traffic is copied and forwarded to the server on the interface connected to the leaf switch and the server, multiple VMs in the server will The multicast traffic is received, but if multiple VMs belong to different EPGs, different tenants will receive the multicast traffic. Therefore, in the above step 304, if the multicast group that the user joins based on user granularity , that is, the leaf switch establishes the corresponding relationship between the user's IP address and the IP multicast address, then when the leaf switch receives the second multicast traffic corresponding to the third user, the switch can identify the second incoming interface according to at least one user and the corresponding relationship between the second IP address and the second IP multicast address, replace the second IP multicast address with the second IP address corresponding to the second IP multicast address; the leaf switch will correspond to the second ingress interface identifier The interface is used as the outgoing interface, the second multicast flow is copied on the outgoing interface, and the copied second multicast flow is sent to at least one user according to the replaced second IP address. That is to say, when the second multicast traffic sent upstream arrives at the leaf switch, if the leaf switch stores the second inbound interface identifier and The corresponding relationship of the second IP address, convert multicast to unicast, that is, replace the second IP multicast address with the second IP addresses of multiple VMs under the same EPG, and connect the VMs under the same EPG to the leaf switch The multiple inbound interfaces of the network are used as the outbound interfaces for traffic transmission, and the second multicast traffic is copied at each outbound interface. The second multicast traffic carries the replaced second IP address for unicast. When the server receives After receiving the second multicast traffic, the second multicast traffic will be sent to multiple VMs under the same EPG according to the second IP address, which can prevent users of different EPGs under the same interface from receiving multicast traffic and reduce downstream The device is flooded with unnecessary traffic or receives unknown traffic.
可选的,当第一用户下线时,为了节省交换机的存储资源,该方法还包括:Optionally, when the first user goes offline, in order to save storage resources of the switch, the method further includes:
307、当交换机侦听到第一用户下线时,并向RP发送第二报文,第二报文包括第一IP组播地址,以便RP删除接收组播加入消息的入接口标识与第一IP组播地址的对应关系,和出接口标识与第一IP组播地址的对应关系。307. When the switch detects that the first user is offline, it sends a second packet to the RP, and the second packet includes the first IP multicast address, so that the RP deletes the identification of the incoming interface receiving the multicast join message and the first IP multicast address. The corresponding relationship between the IP multicast address and the corresponding relationship between the outgoing interface identifier and the first IP multicast address.
如图7所示,第一用户下线时,会向leaf交换机发送下线通知,该下线通知中包括第一用户的第一IP地址和第一IP组播地址,当leaf交换机侦听到第一用户下线时,会删除第一用户基于接口粒度加入组播组时的第一入接口标识与第一IP组播地址的对应关系,或删除第一用户基于用户粒度加入组播组时的第一入接口标识和第一IP地址共同与第一IP组播地址的对应关系,并向RP发送第二报文,第二报文中携带有第一IP组播地址,RP在接收到之后,删除第一IP组播地址与接收组播加入消息的入接口标识。同时,leaf交换机会将为第一用户建立的成员表删除。As shown in Figure 7, when the first user goes offline, an offline notification will be sent to the leaf switch. The offline notification includes the first IP address and the first IP multicast address of the first user. When the leaf switch detects When the first user goes offline, the correspondence between the first inbound interface ID and the first IP multicast address when the first user joins the multicast group based on the interface granularity is deleted, or when the first user joins the multicast group based on the user granularity The corresponding relationship between the first inbound interface identifier and the first IP address and the first IP multicast address, and sends a second message to the RP, the second message carries the first IP multicast address, and the RP receives the Afterwards, the first IP multicast address and the identifier of the incoming interface receiving the multicast join message are deleted. At the same time, the leaf switch will delete the membership list created for the first user.
此外,leaf交换机也会维护有用户的MAC表和ARP表。MAC表包括leaf交换机建立的MAC地址与接口的对应关系,ARP表包括MAC地址与IP地址的对应关系,因此,当第一用户下线时,leaf交换机也会使得第一用户的MAC地址对应的MAC表和ARP表老化,以节省leaf交换机的存储空间。In addition, the leaf switch also maintains the user's MAC table and ARP table. The MAC table includes the corresponding relationship between the MAC address and the interface established by the leaf switch, and the ARP table includes the corresponding relationship between the MAC address and the IP address. Therefore, when the first user goes offline, the leaf switch will also make the MAC address of the first user correspond to The MAC table and ARP table are aged to save the storage space of the leaf switch.
因此,本发明实施例提供一种用户隔离方法,交换机侦听第一用户上线时发送的第一报文中携带的信息,交换机根据第一报文中携带的信息与EPG的标识的对应关系确定第一用户属于第一EPG,并根据第一EPG的标识以及EPG的标识与IP组播地址的对应关系确定第一用户对应第一IP组播地址,并确定第一用户属于第一IP组播地址所对应的组播组,而后,交换机将第一用户加入组播组,当交换机接收到第一用户发送的第一BUM流量时,交换机将第一BUM流量封装为组播组的第一组播流量,第一组播流量包括第一IP组播地址,以使得第一组播流量转发至组播组的其它用户,这样通过在一个网络中划分不同的EPG,每个EPG分配一个IP组播地址用以承载该EPG的用户的所有BUM流量,即通过隔离的不同EPG的BUM流量来实现用户隔离,以解决共享同一VLAN或同一VXLAN的租户群间的BUM流量无法隔离的问题,相对于现有技术中非组播方式转发流量,可能会导致不必要的端口也接收到该流量,占用网络带宽,本申请会优化BUM流量的转发功能。Therefore, an embodiment of the present invention provides a method for user isolation. The switch listens to the information carried in the first message sent by the first user when the first user goes online, and the switch determines the corresponding relationship between the information carried in the first message and the EPG identifier. The first user belongs to the first EPG, and according to the identification of the first EPG and the corresponding relationship between the identification of the EPG and the IP multicast address, it is determined that the first user corresponds to the first IP multicast address, and it is determined that the first user belongs to the first IP multicast The multicast group corresponding to the address, then, the switch adds the first user to the multicast group, when the switch receives the first BUM flow sent by the first user, the switch encapsulates the first BUM flow into the first group of the multicast group broadcast traffic, the first multicast traffic includes the first IP multicast address, so that the first multicast traffic is forwarded to other users of the multicast group, so that by dividing different EPGs in a network, each EPG is assigned an IP group The multicast address is used to carry all the BUM traffic of the users of the EPG, that is, to implement user isolation by isolating the BUM traffic of different EPGs, so as to solve the problem that the BUM traffic between tenant groups sharing the same VLAN or the same VXLAN cannot be isolated. In the prior art, forwarding traffic in a non-multicast mode may cause unnecessary ports to receive the traffic and occupy network bandwidth. This application will optimize the forwarding function of BUM traffic.
本发明实施例提供一种交换机8,如图8所示,包括:An embodiment of the present invention provides a switch 8, as shown in FIG. 8, including:
侦听单元802,用于侦听第一用户上线时发送的第一报文中携带的信息;The listening unit 802 is configured to listen to the information carried in the first message sent when the first user goes online;
确定单元803,用于根据第一报文中携带的信息与终端策略组EPG的标识的对应关系确定第一用户属于第一EPG,并根据第一EPG的标识以及EPG的标识与网际协议IP组播地址的对应关系确定第一用户对应第一IP组播地址,并确定第一用户属于第一IP组播地址所对应的组播组,其中EPG包括虚拟局域网VLAN,虚拟扩展局域网VXLAN,或同一个网段或子网中的用户中的部分用户,第一EPG为多个EPG中的一个;The determining unit 803 is configured to determine that the first user belongs to the first EPG according to the correspondence between the information carried in the first message and the identifier of the terminal policy group EPG, and to determine that the first user belongs to the first EPG according to the identifier of the first EPG and the identifier of the EPG and the Internet Protocol IP group The corresponding relationship of the broadcast address determines that the first user corresponds to the first IP multicast address, and determines that the first user belongs to the multicast group corresponding to the first IP multicast address, wherein the EPG includes a virtual local area network VLAN, a virtual extended local area network VXLAN, or the same For some users in a network segment or subnet, the first EPG is one of multiple EPGs;
加入单元804,用于将第一用户加入组播组;A joining unit 804, configured to add the first user to the multicast group;
封装单元805,用于当交换机接收到第一用户发送的第一广播和未知单播组播BUM流量时,将第一BUM流量封装为组播组的第一组播流量,第一组播流量包括第一IP组播地址,以使第一组播流量转发至属于组播组对应的其它用户。The encapsulating unit 805 is configured to encapsulate the first BUM traffic into the first multicast traffic of the multicast group when the switch receives the first broadcast and unknown unicast multicast BUM traffic sent by the first user, the first multicast traffic The first IP multicast address is included, so that the first multicast traffic is forwarded to other users corresponding to the multicast group.
可选的,还可以包括:建立单元801,用于建立VLAN标识以及入接口标识共同与EPG的标识的对应关系;以及Optionally, it may also include: an establishing unit 801, configured to establish a correspondence between the VLAN ID and the incoming interface ID and the EPG ID; and
建立EPG的标识与IP组播地址的对应关系。A correspondence relationship between the EPG identifier and the IP multicast address is established.
可选的,确定单元803可以用于:Optionally, the determining unit 803 may be used to:
根据第一报文中携带的第一VLAN标识、交换机接收第一报文的第一入接口,以及VLAN标识以及入接口标识共同与EPG的标识的对应关系确定第一用户属于第一EPG。Determine that the first user belongs to the first EPG according to the first VLAN ID carried in the first message, the first inbound interface of the switch receiving the first message, and the correspondence between the VLAN ID and the inbound interface ID and the EPG ID.
可选的,确定单元803可以用于:Optionally, the determining unit 803 may be used to:
侦听第一用户上线时发送动态主机配置协议DHCP报文,DHCP报文携带第一用户的第一媒体访问控制MAC地址和第一用户所属的第一虚拟局域网VLAN标识。Sending a Dynamic Host Configuration Protocol DHCP message when listening to the first user going online, the DHCP message carries the first media access control MAC address of the first user and the first virtual local area network (VLAN) identifier to which the first user belongs.
可选的,加入单元804可以包括:Optionally, the adding unit 804 may include:
确定子单元8041,用于确定是否存在与第一用户共同属于第一IP组播地址所对应的组播组的第二用户;The determining subunit 8041 is configured to determine whether there is a second user who belongs to the multicast group corresponding to the first IP multicast address together with the first user;
建立子单元8042,用于若确定是,则将第一用户加入到与第二用户共同所属的组播组,并建立第一入接口标识和第一IP组播地址的对应关系;The establishment subunit 8042 is used to add the first user to the multicast group to which the second user belongs together if it is determined to be yes, and establish the corresponding relationship between the first inbound interface identifier and the first IP multicast address;
若确定否,则建立第一入接口标识和第一IP组播地址的对应关系,方法还包括发送子单元8043,用于通过与交换机连接的上游设备向汇聚点RP发送组播加入消息,组播加入消息包括第一IP组播地址,以及建立交换机发送组播加入消息的第一出接口的标识与第一IP组播地址的对应关系,以使上游设备和RP建立接收组播加入消息的入接口标识和第一IP组播地址的对应关系,和发送组播加入消息的出接口标识与第一IP组播地址的对应关系。If it is determined not, then establish the corresponding relationship between the first incoming interface identifier and the first IP multicast address, the method also includes a sending subunit 8043, which is used to send a multicast join message to the rendezvous point RP through the upstream device connected to the switch, and the group The broadcast join message includes the first IP multicast address, and establishes the corresponding relationship between the identifier of the first outgoing interface through which the switch sends the multicast join message and the first IP multicast address, so that the upstream device and the RP establish a connection for receiving the multicast join message The corresponding relationship between the incoming interface identifier and the first IP multicast address, and the corresponding relationship between the outgoing interface identifier sending the multicast join message and the first IP multicast address.
可选的,加入单元804可以包括:Optionally, the adding unit 804 may include:
确定子单元8041,用于确定是否存在与第一用户属于同一组播组的第二用户;A determining subunit 8041, configured to determine whether there is a second user belonging to the same multicast group as the first user;
建立子单元8042,用于若确定是,则将第一用户加入到与第二用户共同所属的组播组,并建立第一入接口标识和第一IP地址共同与第一IP组播地址的对应关系,或建立第一入接口标识、第一IP地址和第一VLAN标识共同与第一IP组播地址的对应关系;The establishment subunit 8042 is used to add the first user to the multicast group to which the second user belongs together if it is determined to be yes, and to establish a connection between the first inbound interface identifier and the first IP address and the first IP multicast address. Corresponding relationship, or establishing the corresponding relationship between the first incoming interface identifier, the first IP address and the first VLAN identifier and the first IP multicast address;
若确定否,则建立第一入接口标识和第一IP地址共同与第一IP组播地址的对应关系,或建立第一入接口标识、第一IP地址和第一VLAN标识共同与第一IP组播地址的标识的对应关系,通过与交换机连接的上游设备向汇聚点RP发送组播加入消息,组播加入消息包括第一IP组播地址,以及建立交换机发送组播加入消息的第一出接口标识与第一IP组播地址的对应关系,以使上游设备和RP建立接收组播加入消息的入接口标识和第一IP组播地址的对应关系,和发送组播加入消息的出接口标识与第一IP组播地址的对应关系。If it is determined to be negative, then the corresponding relationship between the first incoming interface identifier and the first IP address and the first IP multicast address is established, or the first incoming interface identifier, the first IP address and the first VLAN identifier are jointly associated with the first IP multicast address. The corresponding relationship of the identification of the multicast address is to send a multicast join message to the rendezvous point RP through the upstream device connected to the switch. The corresponding relationship between the interface identifier and the first IP multicast address, so that the upstream device and the RP can establish the corresponding relationship between the incoming interface identifier receiving the multicast join message and the first IP multicast address, and the outgoing interface identifier for sending the multicast join message Corresponding relationship with the first IP multicast address.
可选的,还可以包括:Optionally, may also include:
发送单元806,用于当交换机接收到第三用户对应的第二组播流量时,第二组播流量包括第三用户所属的组播组对应的第二IP组播地址,根据第二IP组播地址与出接口的对应关系,向与第二IP组播地址对应的出接口下的用户复制并发送第二组播流量。The sending unit 806 is configured to, when the switch receives the second multicast traffic corresponding to the third user, the second multicast traffic includes a second IP multicast address corresponding to the multicast group to which the third user belongs, and according to the second IP group The corresponding relationship between the multicast address and the outgoing interface, and copy and send the second multicast traffic to users under the outgoing interface corresponding to the second IP multicast address.
可选的,还包括替换单元807,用于当交换机接收到第三用户对应的第二组播流量时,第二组播流量包括第三用户所属的组播组对应的第二IP组播地址,根据至少一个用户对应的第二入接口标识和第二IP地址共同与第二IP组播地址的对应关系,将第二IP组播地址替换为与第二IP组播地址对应的第二IP地址;Optionally, a replacement unit 807 is also included, configured to, when the switch receives the second multicast traffic corresponding to the third user, the second multicast traffic includes the second IP multicast address corresponding to the multicast group to which the third user belongs , replacing the second IP multicast address with the second IP corresponding to the second IP multicast address according to the correspondence between the second inbound interface identifier and the second IP address corresponding to at least one user and the second IP multicast address address;
发送单元806可以用于:将与第二入接口标识对应的接口作为出接口,在出接口处复制第二组播流量,并根据替换后的第二IP地址将复制的第二组播流量发送给至少一个用户。The sending unit 806 may be configured to: use the interface corresponding to the second incoming interface identifier as the outgoing interface, copy the second multicast traffic at the outgoing interface, and send the copied second multicast traffic according to the replaced second IP address to at least one user.
可选的,建立单元801还可以用于:为第一用户建立成员表,成员表包括第一用户的MAC地址、第一入接口标识、第一VLAN标识和第一IP地址的对应关系,第一成员表用于检验发送组播流量的用户是否合法。Optionally, the establishment unit 801 may also be used to: establish a membership table for the first user, the membership table includes the correspondence between the MAC address of the first user, the first ingress interface identifier, the first VLAN identifier, and the first IP address, and the first A membership table is used to check whether the user sending multicast traffic is legitimate.
可选的,还可以包括:删除单元808,用于当交换机侦听到第一用户下线时,删除成员表;Optionally, it may also include: a deletion unit 808, configured to delete the member table when the switch detects that the first user is offline;
发送单元806还用于:向汇聚点RP发送第二报文,第二报文包括第一IP组播地址,以便RP删除接收组播加入消息的入接口标识和第一IP组播地址的对应关系,和出接口标识与第一IP组播地址的对应关系。The sending unit 806 is also used to: send a second message to the rendezvous point RP, the second message includes the first IP multicast address, so that the RP deletes the correspondence between the incoming interface identifier and the first IP multicast address for receiving the multicast join message relationship, and the corresponding relationship between the outgoing interface identifier and the first IP multicast address.
因此,本发明实施例提供的交换机侦听第一用户上线时发送的第一报文中携带的信息,交换机根据第一报文中携带的信息与EPG的标识的对应关系确定第一用户属于第一EPG,并根据第一EPG的标识以及EPG的标识与IP组播地址的对应关系确定第一用户对应第一IP组播地址,并确定第一用户属于第一IP组播地址所对应的组播组,而后,交换机将第一用户加入组播组,当交换机接收到第一用户发送的第一BUM流量时,交换机将第一BUM流量封装为组播组的第一组播流量,第一组播流量包括第一IP组播地址,以使得第一组播流量转发至组播组的其它用户,这样通过在一个网络中划分不同的EPG,每个EPG分配一个IP组播地址用以承载该EPG的用户的所有BUM流量,即通过隔离的不同EPG的BUM流量来实现用户隔离,以解决共享同一VLAN或同一VXLAN的租户群间的BUM流量无法隔离的问题,相对于现有技术中非组播方式转发流量,可能会导致不必要的端口也接收到该流量,占用网络带宽,本申请会优化BUM流量的转发功能。Therefore, the switch provided by the embodiment of the present invention listens to the information carried in the first packet sent when the first user goes online, and the switch determines that the first user belongs to the first packet according to the correspondence between the information carried in the first packet and the EPG identifier. An EPG, and according to the identification of the first EPG and the corresponding relationship between the identification of the EPG and the IP multicast address, it is determined that the first user corresponds to the first IP multicast address, and it is determined that the first user belongs to the group corresponding to the first IP multicast address Then, the switch adds the first user to the multicast group. When the switch receives the first BUM flow sent by the first user, the switch encapsulates the first BUM flow into the first multicast flow of the multicast group. The first The multicast traffic includes the first IP multicast address, so that the first multicast traffic is forwarded to other users of the multicast group, so that by dividing different EPGs in a network, each EPG allocates an IP multicast address to carry All the BUM traffic of the users of the EPG, that is, user isolation is implemented by isolating the BUM traffic of different EPGs to solve the problem that the BUM traffic between tenant groups sharing the same VLAN or the same VXLAN cannot be isolated. Forwarding traffic in multicast mode may cause unnecessary ports to receive the traffic and occupy network bandwidth. This application will optimize the forwarding function of BUM traffic.
图9示出了上述实施例中涉及到的交换机的结构示意图。该交换机可以是图1所示的网络架构中的交换机,也可以是图2所示的网络架构中的leaf交换机,也可以是图3中阐述的方法中的交换机。Fig. 9 shows a schematic structural diagram of the switch involved in the above embodiment. The switch may be a switch in the network architecture shown in FIG. 1 , or a leaf switch in the network architecture shown in FIG. 2 , or a switch in the method described in FIG. 3 .
该交换机可以包括:控制器/处理器902用于对交换机的动作进行控制管理。例如,控制器/处理器902用于支持交换机执行图3中的过程301~307,和/或用于本发明实施例中所描述的技术的其它过程。存储器901用于存储交换机的程序代码和数据。网络接口903用于支持交换机与其它网络实体的通信,网络接口可包括发射器和接收器。例如,网络接口903用于支持交换机与用户所在的服务器进行通信。又例如,网络接口903用于支持交换机与组播共享树中的其它交换机之间的通信。The switch may include: a controller/processor 902 configured to control and manage actions of the switch. For example, the controller/processor 902 is used to support the switch to perform the processes 301-307 in FIG. 3, and/or other processes for the techniques described in the embodiments of the present invention. The memory 901 is used to store program codes and data of the switch. The network interface 903 is used to support communication between the switch and other network entities, and the network interface may include a transmitter and a receiver. For example, the network interface 903 is used to support the communication between the switch and the server where the user is located. For another example, the network interface 903 is used to support communication between the switch and other switches in the multicast sharing tree.
在本发明实施例中,网络接口903执行本发明实施例可用于侦听第一用户上线时发送的第一报文中携带的信息;控制器/处理器902执行本发明实施例可用于根据所述第一报文中携带的信息与终端策略组EPG的标识的对应关系确定所述第一用户属于第一EPG,并根据所述第一EPG的标识以及所述EPG的标识与网际协议IP组播地址的对应关系确定所述第一用户对应第一IP组播地址,并确定所述第一用户属于所述第一IP组播地址所对应的组播组;其中所述EPG包括虚拟局域网VLAN,虚拟扩展局域网VXLAN,或同一个网段或子网中的用户中的部分用户,所述第一EPG为多个所述EPG中的一个;控制器/处理器902执行本发明实施例还用于将所述第一用户加入所述组播组;当网络接口903接收到所述第一用户发送的第一广播和未知单播组播BUM流量时,控制器/处理器902执行本发明实施例还用于将所述第一BUM流量封装为所述组播组的第一组播流量,所述第一组播流量包括所述第一IP组播地址,以使所述第一组播流量转发至属于所述组播组对应的其它用户。In the embodiment of the present invention, the network interface 903 executing the embodiment of the present invention can be used to listen to the information carried in the first message sent by the first user when going online; the controller/processor 902 can be used to execute the embodiment of the present invention according to the Determine that the first user belongs to the first EPG according to the correspondence between the information carried in the first message and the identifier of the terminal policy group EPG, and according to the identifier of the first EPG and the identifier of the EPG and the Internet Protocol IP group The corresponding relationship of the broadcast address determines that the first user corresponds to the first IP multicast address, and determines that the first user belongs to the multicast group corresponding to the first IP multicast address; wherein the EPG includes a virtual local area network (VLAN) , Virtual Extended Local Area Network VXLAN, or some users in the same network segment or subnet, the first EPG is one of the multiple EPGs; the controller/processor 902 executes the embodiment of the present invention and also uses To add the first user to the multicast group; when the network interface 903 receives the first broadcast and unknown unicast multicast BUM traffic sent by the first user, the controller/processor 902 executes the implementation of the present invention The example is also used to encapsulate the first BUM traffic into the first multicast traffic of the multicast group, the first multicast traffic includes the first IP multicast address, so that the first multicast The traffic is forwarded to other users corresponding to the multicast group.
上述控制器/处理器902和网络接口903的具体实现方式可参见上述实施例,此处不再赘述。For the specific implementation manners of the foregoing controller/processor 902 and the network interface 903, reference may be made to the foregoing embodiments, and details are not repeated here.
因此,本发明实施例提供的交换机,通过在一个网络中划分不同的EPG,每个EPG分配一个IP组播地址用以承载该EPG的用户的所有BUM流量,即通过隔离的不同EPG的BUM流量来实现用户隔离,以解决共享同一VLAN的租户群间的BUM流量无法隔离的问题,相对于现有技术中非组播方式转发流量,可能会导致不必要的端口也接收到该流量,占用网络带宽,本申请会优化BUM流量的转发功能。Therefore, the switch provided by the embodiment of the present invention divides different EPGs in a network, and each EPG allocates an IP multicast address to carry all BUM traffic of users of the EPG, that is, BUM traffic passing through different isolated EPGs To achieve user isolation, to solve the problem that the BUM traffic between tenant groups sharing the same VLAN cannot be isolated. Compared with the non-multicast mode of forwarding traffic in the prior art, unnecessary ports may also receive the traffic, occupying the network Bandwidth, this application will optimize the forwarding function of BUM traffic.
在本申请所提供的几个实施例中,应该理解到,所揭露的终端和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed terminal and method may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理包括,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may be physically included separately, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units implemented in the form of software functional units may be stored in a computer-readable storage medium. The above-mentioned software functional units are stored in a storage medium, and include several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) to execute some steps of the methods described in various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), magnetic disk or optical disk, etc., which can store program codes. medium.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than 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 Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; 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 various embodiments of the present invention.
Claims (18)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610552867.7A CN107623636B (en) | 2016-07-13 | 2016-07-13 | User isolation method and switch |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610552867.7A CN107623636B (en) | 2016-07-13 | 2016-07-13 | User isolation method and switch |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN107623636A true CN107623636A (en) | 2018-01-23 |
| CN107623636B CN107623636B (en) | 2020-08-25 |
Family
ID=61087494
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610552867.7A Active CN107623636B (en) | 2016-07-13 | 2016-07-13 | User isolation method and switch |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107623636B (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108900422A (en) * | 2018-07-27 | 2018-11-27 | 新华三技术有限公司 | Multicast forward method, device and electronic equipment |
| CN110661732A (en) * | 2019-09-20 | 2020-01-07 | 浪潮思科网络科技有限公司 | Device and method for scheduling traffic among working groups based on MAC (media access control) VLAN (virtual local area network) division |
| CN111464511A (en) * | 2020-03-18 | 2020-07-28 | 紫光云技术有限公司 | Method for supporting multi-VPC isolation in cloud computing network |
| CN112822104A (en) * | 2019-11-15 | 2021-05-18 | 华为技术有限公司 | Data message processing method, device, storage medium and system |
| CN113079030A (en) * | 2020-05-29 | 2021-07-06 | 新华三信息安全技术有限公司 | Configuration information issuing method and access equipment |
| CN116367236A (en) * | 2021-12-23 | 2023-06-30 | 中国电信股份有限公司 | Message forwarding method, device and computer-readable storage medium |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101159665A (en) * | 2007-08-28 | 2008-04-09 | 杭州华三通信技术有限公司 | Method and device to implement forwarding of unknown multicast packet to router port |
| US20160021015A1 (en) * | 2014-07-18 | 2016-01-21 | Cisco Technology, Inc. | Reducing transient packet duplication and improving split-horizon filtering |
| EP3013006A1 (en) * | 2014-10-22 | 2016-04-27 | Juniper Networks, Inc. | Protocol independent multicast sparse mode (pim-sm) support for data center interconnect |
-
2016
- 2016-07-13 CN CN201610552867.7A patent/CN107623636B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101159665A (en) * | 2007-08-28 | 2008-04-09 | 杭州华三通信技术有限公司 | Method and device to implement forwarding of unknown multicast packet to router port |
| US20160021015A1 (en) * | 2014-07-18 | 2016-01-21 | Cisco Technology, Inc. | Reducing transient packet duplication and improving split-horizon filtering |
| EP3013006A1 (en) * | 2014-10-22 | 2016-04-27 | Juniper Networks, Inc. | Protocol independent multicast sparse mode (pim-sm) support for data center interconnect |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108900422A (en) * | 2018-07-27 | 2018-11-27 | 新华三技术有限公司 | Multicast forward method, device and electronic equipment |
| CN108900422B (en) * | 2018-07-27 | 2021-10-12 | 新华三技术有限公司 | Multicast forwarding method and device and electronic equipment |
| CN110661732A (en) * | 2019-09-20 | 2020-01-07 | 浪潮思科网络科技有限公司 | Device and method for scheduling traffic among working groups based on MAC (media access control) VLAN (virtual local area network) division |
| CN110661732B (en) * | 2019-09-20 | 2022-05-27 | 浪潮思科网络科技有限公司 | Device and method for scheduling flow among working groups based on MAC (media access control) VLAN (virtual local area network) |
| CN112822104A (en) * | 2019-11-15 | 2021-05-18 | 华为技术有限公司 | Data message processing method, device, storage medium and system |
| CN111464511A (en) * | 2020-03-18 | 2020-07-28 | 紫光云技术有限公司 | Method for supporting multi-VPC isolation in cloud computing network |
| CN113079030A (en) * | 2020-05-29 | 2021-07-06 | 新华三信息安全技术有限公司 | Configuration information issuing method and access equipment |
| CN113079030B (en) * | 2020-05-29 | 2022-05-24 | 新华三信息安全技术有限公司 | Configuration information issuing method and access equipment |
| CN116367236A (en) * | 2021-12-23 | 2023-06-30 | 中国电信股份有限公司 | Message forwarding method, device and computer-readable storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107623636B (en) | 2020-08-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11765000B2 (en) | Method and system for virtual and physical network integration | |
| Del Piccolo et al. | A survey of network isolation solutions for multi-tenant data centers | |
| CN106936939B (en) | A message processing method, related device and NVO3 network system | |
| CN104869042B (en) | Message forwarding method and device | |
| Lasserre et al. | Framework for data center (DC) network virtualization | |
| EP2905930B1 (en) | Processing method, apparatus and system for multicast | |
| KR102054338B1 (en) | Routing vlan tagged packets to far end addresses of virtual forwarding instances using separate administrations | |
| CN104272668B (en) | Layer 3 Overlay Gateway | |
| Narten et al. | Problem statement: Overlays for network virtualization | |
| CN103200069B (en) | A kind of method and apparatus of Message processing | |
| CN107623636B (en) | User isolation method and switch | |
| CN105610632B (en) | A kind of virtual network device and related method | |
| EP3490197B1 (en) | Message forwarding | |
| CN105591916B (en) | A kind of message transmitting method and device | |
| CN110034993B (en) | Method, equipment and network system for transmitting data | |
| US10523464B2 (en) | Multi-homed access | |
| GB2497202A (en) | Transmitting frames between, possibly different, local VLANs by encapsulating frames for global VLAN tunnel | |
| WO2014205784A1 (en) | Method and device for processing multicast message in nvo3 network, and nvo3 network | |
| WO2015149253A1 (en) | Data center system and virtual network management method of data center | |
| WO2018205982A1 (en) | Method and device for implementing broadcast and multicast in software-defined network and storage medium | |
| CN106612224A (en) | Message forwarding method and device applied to VXLAN (Virtual eXtensible LAN) | |
| WO2017186122A1 (en) | Traffic scheduling | |
| CN105812221B (en) | The device and method of data transmission in virtual expansible Local Area Network | |
| CN102394825A (en) | Method and device for processing message | |
| CN113300931B (en) | Virtual machine migration discovery method and VTEP |
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 |