Pesquisa Imagens Mapas Play Gmail Drive Calendário Tradutor Mais »
Entrar
Utilizadores de leitores de ecrã: clique neste link para ativar o modo acessível. O modo acessível inclui as mesmas funcionalidades, mas funciona melhor com o seu leitor.

Patentes

  1. Pesquisa Avançada de Patentes
Número de publicaçãoCN102571610 A
Tipo de publicaçãoCandidatura
Número de candidaturaCN 201210053926
Data de publicação11 Jul 2012
Data de apresentação2 Mar 2012
Data de prioridade2 Mar 2012
Número de publicação201210053926.8, CN 102571610 A, CN 102571610A, CN 201210053926, CN-A-102571610, CN102571610 A, CN102571610A, CN201210053926, CN201210053926.8
Inventores宋小恒, 郑国良
Requerente杭州华三通信技术有限公司
Exportar citaçãoBiBTeX, EndNote, RefMan
Links Externos:  SIPO, Espacenet
Packet forwarding method and edge equipment
CN 102571610 A
Resumo
The invention provides a packet forwarding method and edge equipment. A low-specification interface board of the edge equipment receives packets sending by a user side to remote sites and queries an own media access control (MAC) hardware table; if the query fails, the packet is transmitted to a high-specification interface board of the edge equipment and sent out from a loopback port of the high-specification interface board; the high-specification interface board of the edge equipment receives the packets which are sent out from the loopback port and enter again and queries an own MAC hardware table; and if the query succeeds, the packets are sent to the remote sites according to export information recorded in the own MAC hardware table of the high-specification interface board. By adopting the scheme provided by the invention, the low-specification interface board and the high-specification interface board can be mixed for use, and the packets can be accurately forwarded as well, so that resources can be greatly saved.
Reivindicações(13)  traduzido de Chinês
1. 一种报文转发方法,其特征在于,该方法包括:边缘设备的第一接口板接收到用户侧发送给远端站点的报文,利用该报文查询第一接口板自身的媒体接入控制MAC硬件表,所述第一接口板与用户侧相连,其自身的MAC硬件表用于保存本地站点的MAC地址,在未命中时,将该报文传输给边缘设备的第二接口板,从第二接口板的环回口发送出去;边缘设备的第二接口板接收到从环回口发送后且再次进入的报文,利用该报文查询第二接口板自身的MAC硬件表,所述第二接口板与公网侧相连,其自身的MAC硬件表用于保存本地站点和远端站点的MAC地址,在命中时,根据所述第二接口板自身的MAC硬件表记录的出口信息将该报文发送给远端站点。 A packet forwarding method, wherein the method comprises: a first edge device interface board sends the user side receives the packets to the remote site, use the message board's own inquiries first interface media access MAC hardware into the control table, the first interface board is connected to the user side, its own MAC hardware table to preserve local sites MAC address, in misses, the message is transmitted to the second edge device interface board , sent from the second interface board loopback interface out; second edge device interface board receives from the loopback interface to send packets and re-enter using the packet queries the second MAC hardware interface board own table, The second interface board is connected to the public network side, its own MAC hardware table to preserve local sites and remote sites MAC address, when the hit, according to the second interface board's own MAC hardware table record exports Information will send the message to the remote site.
2.根据权利要求1所述的方法,其特征在于,所述边缘设备是以太网连接虚拟化EVI网络中的边缘设备,所述EVI用于将多个数据中心互联。 2. The method according to claim wherein the device is an Ethernet connection edge virtualization EVI network edge device, the EVI used to interconnect multiple data centers.
3.根据权利要求1所述的方法,其特征在于,该方法进一步包括:所述第二接口板接收到公网侧发送给本地站点的报文,利用该报文查询所述第二接口板自身的MAC硬件表,在命中时,根据所述第二接口板自身的MAC硬件表记录的出口信息将该报文转发给本地站点用户侧,在未命中时,将该报文在本虚拟局域网VLAN内广播。 The second interface board interface board received the second public network side transmits packets to the local site, use packet inquiring the: 3. The method according to claim 1, wherein, wherein the method further comprises its MAC hardware table, when hit, export information in accordance with the second interface board's own MAC hardware table records the packet will be forwarded to the local site user side, the misses, the message in this virtual LAN broadcast the VLAN.
4.根据权利要求1所述的方法,其特征在于,边缘设备的第二接口板接收到从环回口发送后且再次进入的报文,且利用该报文查询第二接口板自身的MAC硬件表但未命中时,该方法进一步包括:所述第二接口板将该报文在本EVI实例内广播。 4. The method according to claim 1, characterized in that the second edge device interface board receives from the loopback interface to send packets and re-enter, and use the message board's own inquiry second interface MAC Hardware table but misses, the method further comprises: a second interface board packet broadcasting within the EVI instance.
5.根据权利要求1〜4任一项所述的方法,其特征在于,所述边缘设备包括M个第一接口板和N个第二接口板,所述M和N是大于或等于1的整数;当一个第一接口板学习到用户侧的MAC地址时,该方法进一步包括:该第一接口板将学习到的MAC地址下发到自身的MAC硬件表中,并将学习到的MAC地址同步给本VLAN其他成员口所在的其它第一接口板,且同步给所有的第二接口板。 5. The method according to any of claims 1 ~ 4, characterized in that the edge device includes a first interface board M and N second interface board, the M and N is greater than or equal to 1 Integer; when a first interface board learned MAC address of the user side, the method further comprises: the first interface board will be sent to the next MAC address learning to their own hardware MAC table and the MAC address learning Other first interface board synchronization to other members of the VLAN port is located, and synchronized to all the second interface board.
6.根据权利要求1〜4任一项所述的方法,其特征在于,所述边缘设备包括M个第一接口板和N个第二接口板,所述M和N是大于或等于1的整数;当一个第一接口板学习到用户侧的MAC地址,且用于学习MAC地址的报文是通过聚合属性的入端口进入第一接口板的,该方法进一步包括:该第一接口板将学习到的MAC地址下发到自身的MAC硬件表中,并将学习到的MAC地址同步给其它所有的第一接口板,且同步给所有的第二接口板。 6. The method according to any of claims 1 ~ 4, characterized in that the edge device includes a first interface board M and N second interface board, the M and N is greater than or equal to 1 integer; when a first interface board learned MAC address of the user side, and for learning MAC address packets entering the first interface board into the port by aggregating properties, the method further comprises: the first interface board By learning to the MAC address sent to its MAC hardware table and learned MAC addresses synchronized to all other first interface board, and synchronized to all the second interface board.
7.根据权利要求1〜4任一项所述的方法,其特征在于,所述边缘设备包括M个第一接口板和N个第二接口板,所述M和N是大于或等于1的整数;当一个第二接口板学习到公网侧的MAC地址,该方法进一步包括:该第二接口板将学习到的MAC地址下发到自身的MAC硬件表中,并将学习到的MAC地址同步给其它所有的第二接口板。 7. The method according to any of claims 1 ~ 4, characterized in that the edge device includes a first interface board M and N second interface board, the M and N is greater than or equal to 1 integer; when a second interface board learned MAC addresses on the public network side, the method further comprising: at the second interface board will learn the MAC address sent to its MAC hardware table and learned MAC addresses All other synchronized to a second interface board.
8. —种边缘设备,包括主控板和接口板,其特征在于,所述接口板包括:第一接口板和第二接口板;所述第一接口板,在接收到用户侧发送给远端站点的报文时,利用该报文查询第一接口板自身的媒体接入控制MAC硬件表,所述第一接口板与用户侧相连,其自身的MAC硬件表用于保存本地站点的MAC地址,在未命中时,将该报文传输给第二接口板;所述第二接口板,将来自第一接口板的报文从环回口发送出去,接收到从环回口发送后且再次进入的报文时,利用该报文查询第一接口板自身的MAC硬件表,所述第一接口板与公网侧相连,其自身的MAC硬件表用于保存本地站点和远端站点的MAC地址,在命中时,根据所述第二接口板自身的MAC硬件表记录的出口信息将该报文发送给远端站点。 8. - kind of edge devices, including the main control board and an interface board, characterized in that said interface board comprising: a first interface board and a second interface board; the first interface board, after receiving the user is sent to the far side When the packet terminal site, use query packet interface board itself first media access control (MAC) hardware table, the first interface board is connected to the user side, its own MAC hardware table to preserve local sites MAC address, in misses, the message is transmitted to the second interface board; the second interface board from the first packet from the ring interface board sent back to port received from the loopback interface to send and re-enter the packet, use the message board's own inquiries first interface MAC hardware table, the first interface board is connected to the public network side, its own MAC hardware table to save the local site and remote site MAC address, the hit, the export information in accordance with the second interface board's own MAC hardware table records the message is sent to the remote site.
9.根据权利要求8所述的设备,其特征在于,所述第二接口板进一步用于:接收到公网侧发送给本地站点的报文,利用该报文查询所述第二接口板自身的MAC硬件表,在命中时,根据所述第二接口板自身的MAC硬件表记录的出口信息将该报文转发给本地站点用户侧,在未命中时,将该报文在本虚拟局域网VLAN内广播。 9. The apparatus according to claim 8, wherein said second interface board is further operable to: receive to transmit the public network packets to the local site, use the message board itself querying the second interface The MAC hardware table, the hit, the export information in accordance with the second interface board's own MAC hardware table records the packet will be forwarded to the local site user side, the misses, the message in this virtual LAN (VLAN) within the broadcast.
10.根据权利要求8所述的设备,其特征在于,所述第二接口板进一步用于,接收到从环回口发送后且再次进入的报文,且利用该报文查询第二接口板自身的MAC硬件表但未命中时,将该报文在本EVI实例内广播。 10. The apparatus according to claim 8, wherein said second interface board is further configured to receive from the loopback interface to send packets and re-enter, and use the second query packet interface board its MAC hardware table but misses, it will be the message broadcast within the EVI instance.
11.根据权利要求8〜10任一项所述的设备,其特征在于,所述第一接口板有M个,所述M是大于或等于1的整数;所述第一接口板进一步用于,当学习到用户侧的MAC地址时,将学习到的MAC地址下发到自身的MAC硬件表中,并将学习到的MAC地址同步给本VLAN其他成员口所在的其它第一接口板,且同步给所有的第二接口板。 11. The apparatus according to any one of claims 8~10 claim, wherein said first interface board with M, said M is an integer greater than or equal to 1; the first interface board is further operable to When learning the MAC address of the user side, the lower the learned MAC address sent to its MAC hardware table and learned MAC address synchronization to other members of the VLAN port where the other first interface board, and synchronization to all the second interface board.
12.根据权利要求8〜10任一项所述的设备,其特征在于,所述第一接口板有M个,所述M是大于或等于1的整数;所述第一接口板进一步用于,学习到用户侧的MAC地址,且用于学习MAC地址的报文是通过聚合属性的入端口进入第一接口板的,将学习到的MAC地址下发到自身的MAC硬件表中,并将学习到的MAC地址同步给其它所有的第一接口板,且同步给所有的第二接口板。 12. The apparatus according to any one of claims 8~10 claim, wherein said first interface board with M, said M is an integer greater than or equal to 1; the first interface board is further operable to learning to the user side MAC address and MAC address learning for the packets is the first interface board, will be sent to the next to the MAC address learning its MAC hardware table by the polymerisation of the property to enter into a port and learned MAC addresses synchronized to all other first interface board, and synchronized to all the second interface board.
13.根据权利要求8〜10任一项所述的设备,其特征在于,所述第二接口板有N个,所述N是大于或等于1的整数;所述第二接口板进一步用于,在学习到公网侧的MAC地址时,将学习到的MAC地址下发到自身的MAC硬件表中,并将学习到的MAC地址同步给其它所有的第二接口板。 13. The apparatus according to any one of claims 8~10, wherein said second interface board has N, the N is an integer greater than or equal to 1; the second interface board is further operable to next, in the study to the public network side MAC address, you will learn the MAC address sent to its MAC hardware table and learned MAC addresses synchronized to all other second interface board.
Descrição  traduzido de Chinês

一种报文转发方法和边缘设备技术领域[0001] 本发明涉及通信领域,特别涉及一种报文转发方法和边缘设备。 A packet forwarding method and edge devices Technical Field [0001] The present invention relates to the field of communications, and more particularly to a method and an edge device forwarding a message. 背景技术[0002] 现有技术中,可利用公网将若干私网互联,私网和私网之间可以更加安全、方便地通信。 [0002] prior art, can be used between a number of public network private network connectivity, private networks and private networks can be more secure, convenient communications. 当然,私网侧的报文要进入公网,或者公网侧的报文要进入私网则是通过边缘设备来转发的。 Of course, the private network packet to enter the public network or public network side of the packet to enter the private network is forwarded through the edge device. [0003] 边缘设备中有主控板和若干接口板,每个接口板上都有媒体接入控制(MAC)硬件表,接口板就是通过自身的MAC硬件表来转发报文的。 [0003] The edge device has the main control board and a number of interface boards, each interface board has a Media Access Control (MAC) hardware tables, interface board is through its MAC hardware table to forward packets. 不同规格的接口板,其MAC硬件表的容量也不同。 Different specifications of the interface board, the capacity of its MAC hardware table is also different. 低规格接口板的MAC硬件表容量小,可保存较少的MAC地址。 Low standard interface board hardware MAC table size small, it can save fewer MAC address. 高规格接口板的MAC硬件表容量大,可保存较多的MAC地址。 High standard interface board MAC hardware table large capacity, it can save more MAC addresses. [0004] 但某些应用场景中,比如:网络系统中有大量的MAC地址,边缘设备必须维护所有的MAC地址,并且要求全局同步,才能正确地转发报文。 [0004] However, in some scenarios, for example: network system has a large number of MAC address, the edge devices must maintain all MAC addresses, and require global synchronization, can forward packets correctly. 这种情况下,边缘设备的所有接口板必须保存同样数量的MAC地址。 In this case, all the interface board edge equipment must be kept the same number of MAC addresses. 由于网络系统中MAC数量很多,低规格接口板的MAC硬件表容量又小,因此只能将边缘设备中所有接口板都配置成高规格接口板才能满足需求。 Due to high number of MAC network system, low specification hardware interface board MAC table size and small, so only the edges of the device in all interface cards are configured to a high standard interface board to meet demand. 这样一来,势必会丢弃边缘设备原有的低规格接口板,造成严重的资源浪费。 As a result, bound to discard the original lower edge equipment specification interface board, causing a serious waste of resources. 发明内容[0005] 本发明提供了一种报文转发方法和边缘设备,可以混合使用低规格接口板和高规格接口板,达到节约资源的目的。 SUMMARY [0005] The present invention provides a packet forwarding method and edge devices, can be mixed with low specification interface boards and high-standard interface board, to save resources. [0006] 针对上述第一个发明目的,本发明提出的技术方案为:[0007] —种报文转发方法,该方法包括:[0008] 边缘设备的第一接口板接收到用户侧发送给远端站点的报文,利用该报文查询第一接口板自身的媒体接入控制MAC硬件表,所述第一接口板与用户侧相连,其自身的MAC硬件表用于保存本地站点的MAC地址,在未命中时,将该报文传输给边缘设备的第二接口板, 从第二接口板的环回口发送出去;[0009] 边缘设备的第二接口板接收到从环回口发送后且再次进入的报文,利用该报文查询第二接口板自身的MAC硬件表,所述第二接口板自身的MAC硬件表用于保存本地站点和远端站点的MAC地址,在命中时,根据所述第二接口板自身的MAC硬件表记录的出口信息将该报文发送给远端站点。 [0006] For the above-mentioned first object of the invention, the invention proposes a technical solution is: [0007] - the kind of packet forwarding, the method comprising: [0008] a first edge device interface board receives the user is sent to the far side packet end sites, use the message board's own inquiries first interface Media Access Control (MAC) hardware table, the first interface board is connected to the user side, its own MAC hardware table to preserve local sites MAC address In misses, the message is transmitted to the second edge device interface board, sent out from the second interface board loopback interface; [0009] a second edge device interface board receives from the loopback interface after sending and re-enter the packet by packet queries the second MAC hardware interface board their table, the second interface board's own MAC hardware table to save the local site and remote site of MAC address, the hit, the The message is sent to the remote site based on the second interface board export its MAC hardware table records. [0010] 针对上述第二个发明目的,本发明提出的技术方案为:[0011] 一种边缘设备,包括主控板和接口板,所述接口板包括:第一接口板和第二接口板;[0012] 所述第一接口板,在接收到用户侧发送给远端站点的报文时,利用该报文查询第一接口板自身的媒体接入控制MAC硬件表,所述第一接口板与用户侧相连,自身的MAC硬件表用于保存本地站点的MAC地址,在未命中时,将该报文传输给第二接口板;[0013] 所述第二接口板,将来自第一接口板的报文从环回口发送出去,接收到从环回口发送后且再次进入的报文时,利用该报文查询第二接口板自身的MAC硬件表,所述第二接口板与公网侧相连,其自身的MAC硬件表用于保存本地站点和远端站点的MAC地址,在命中时,根据所述第二接口板自身的MAC硬件表记录的出口信息将该报文发送给远端站点。 [0010] For the above second object, the present invention proposes a technical solution is: [0011] An edge device comprises a main control board and an interface board, the interface board comprising: a first and a second interface board interface board ; [0012] the first interface board, upon receiving a message sent to the user side of the far site, use query packet interface board itself first media access control (MAC) hardware table, the first interface plate and connected to the user side, its MAC hardware table to hold local site MAC address, in misses, the message is transmitted to the second interface board; [0013] The second interface board from the first When the interface packets from the ring plate sent back port received from the loopback interface to send packets and re-enter using the packet queries the second MAC hardware interface board's own table, the second interface board and connected to the public network side, its own MAC hardware table to save the local site and remote site of MAC address, the hit, the export information in accordance with the second interface board's own MAC hardware table records the message will be sent to far site. [0014] 本发明提供一种报文转发方法和边缘设备,将第一接口板和第二接口板混合使用,第一接口板的MAC硬件表只保存本地站点的MAC地址,第二接口板的MAC硬件表保存本地站点和远端站点的MAC地址。 [0014] The present invention provides a packet forwarding method and edge devices, the first and the second interface board interface board used in combination, the first MAC hardware interface board table only preserve local sites MAC address, the second interface board MAC hardware MAC address table holds the local site and remote site. 当用户侧报文要发送给公网侧时,没命中第一接口板MAC 硬件表时,利用第二接口板环回口的作用来再次查找第二接口板MAC硬件表,正确地转发报文,从而实现第一、第二接口板的混合使用,大大节约资源。 When a user-side packets to be transmitted to the public network, do not hit the first MAC hardware interface board table, use the second interface board loopback interface role to find a second MAC hardware interface board table again, the correct packet forwarding in order to achieve the first, second hybrid interface board, greatly saving resources. 附图说明[0015] 图1是本发明提出的边缘设备结构示意图。 BRIEF DESCRIPTION OF DRAWINGS [0015] FIG. 1 is a schematic structural view of the edge of the device proposed by the present invention. [0016] 图2是本发明实施例中以太网连接虚拟化(EVI)网络的示意图。 [0016] FIG. 2 is a virtual Ethernet connection (EVI) network schematic embodiment of the present invention. [0017] 图3是本发明实施例中边缘设备的内部结构示意图。 [0017] FIG. 3 is a schematic view of the internal structure of the embodiment of the present invention edge devices. [0018] 图4是边缘设备中各接口板保存MAC地址的一个示例图。 [0018] FIG. 4 is an edge device MAC address for each interface board to save an example of FIG. 具体实施方式[0019] 本发明提出一种报文转发方法,不需要在边缘设备中全部配置高规格的第二接口板,而是将原有的低规格的第一接口板和高规格的第二接口板混合使用,并且同样可以正确地转发报文,达到节约资源的目的。 DETAILED DESCRIPTION [0019] The present invention proposes a packet forwarding method, do not need to configure the edge devices of all high-profile second interface board, but the original low-spec first interface board and high-standard first two mixed use interface board, and the same can forward packets correctly, to save resources. [0020] 如图1所示,假设本发明的边缘设备包括主控板101、低规格接口板102和高规格接口板103。 As shown in [0020] FIG. 1, assuming that the margin apparatus of the present invention comprises a main control board 101, the low standard interface board 102 and high-standard interface board 103. 其中,主控板101作为边缘设备系统的控制中心,其功能属于现有技术,此处不详细介绍。 Among them, the control board 101 as the control center edge equipment system, which functions belong to the prior art, not described in detail here. 另外,为描述方便,以下实施例中所述低规格接口板就是指第一接口板,高规格接口板就是指第二接口板。 In addition, for the convenience of description, the following examples of the low-compliant interface board refers to the first interface board, interface board high specification refers to the second interface board. [0021] 低规格接口板102在接收到用户侧发送给远端站点的报文时,利用该报文查询低规格接口板自身的MAC硬件表,低规格接口板自身的MAC硬件表用于保存本地站点的MAC 地址,在未命中时,将该报文传输给高规格接口板103。 When the [0021] low specification interface board 102 receives the user side transmits packets to the far site, the use of low standard query packet interface board's own MAC hardware table, low standard interface board's own MAC hardware table to save MAC address of the local site, the misses, the message is transmitted to the high standard of the interface board 103. [0022] 高规格接口板103将来自低规格接口板102的报文从环回口发送出去,接收到从环回口发送后且再次进入的报文时,利用该报文查询高规格接口板103自身的MAC硬件表, 所述高规格接口板103自身的MAC硬件表用于保存本地站点和远端站点的MAC地址,在命中时,根据高规格接口板103自身的MAC硬件表记录的出口信息将该报文发送给远端站点。 [0022] The high-profile interface board 103 from the low-compliant interface board 102 packets sent from the loopback interface, received from the loopback interface to send packets and re-enter, the use of high-profile inquiry packet interface board MAC hardware table 103 itself, the high standard of the interface board 103 itself MAC hardware table to save the local site and remote site of MAC address, the hit, the outlet's own hardware MAC table records according to a high standard interface board 103 Information will send the message to the remote site. [0023] 也就是说,本发明的技术方案可以这样实现:[0024] 在边缘设备中混合使用低规格接口板和高规格接口板,每个接口板中都含有自身的MAC硬件表。 [0023] In other words, the technical aspect of the present invention can be achieved: [0024] a mixture of low and high-standard specification interface board interface board on the edge of the device, each interface board contains its own MAC hardware table. 其中,低规格接口板的MAC硬件表保存本地站点的MAC地址,高规格接口板的MAC硬件表保存本地站点和远端站点的MAC地址。 Among them, the low standard interface board table saved MAC hardware MAC address of the local site, a high interface board MAC hardware MAC address table holds the local site and remote site. 当低规格接口板接收到用户侧发送给远端站点的报文时,利用该报文查询低规格接口板自身的MAC硬件表。 When the low-compliant interface board sends the user side receives packets to the remote site, the use of low standard query packet interface board's own MAC hardware table. 由于低规格接口板的MAC硬件表保存的是本地站点的MAC地址,不会命中,再将该报文传输给高规格接口板, 从高规格接口板的环回口发送出去。 Due to the low standard interface board MAC hardware MAC address table holds the local site does not hit, then the packet is transmitted to the high standard of the interface board, from high-standard interface board loopback interface to send out. 报文从环回口再次进入后,高规格接口板利用该报文查询自身的MAC硬件表,命中时,根据记录的出口信息将该报文发送给远端站点。 After the packets are re-entering the loopback interface, high-profile inquiry packet interface board use its MAC hardware table, miss, according to export recorded message will be sent to the remote site. [0025] 由于边缘设备并不全部使用高规格接口板,而是将原有的低规格接口板和高规格接口板混合使用,但通过巧妙使用环回口的作用,同样可以正确地转发报文,以此达到节约资源的目的。 [0025] Since the edge devices do not all use high specification interface board, but the original low-compliant interface board and high-standard interface board mix, but through clever use of the role of loopback interface, the same can forward packets correctly in order to conserve resources. [0026] 为了更好的说明本发明方案,下面用较佳实施例进行详细描述。 [0026] In order to better illustrate the invention, with the following detailed description of preferred embodiments. [0027] 本实施例中,假设边缘设备是以太网连接虚拟化(EVI)网络中的边缘设备(ED)。 Example [0027] This, it is assumed that the Ethernet connection edge device virtualization (EVI) network edge devices (ED). EVI网络是一种可以将异地部署的多个数据中心这类私网连接起来的网络,可通过虚拟机在数据中心之间进行自由迁移,以实现负载分担和高可靠性等目的。 EVI network is a network deployed in multiple data centers in different places such private network can be connected together, can migrate freely through the virtual machines between data centers to achieve load balancing and high reliability purposes. [0028] 图2是EVI网络的示意图。 [0028] FIG. 2 is a schematic view of a network of EVI. 如图所示,EVI网络由核心网络和若干站点网络组成, 站点网络就是部署各地的数据中心,属于私网,核心网络就是公网,即若干私网通过公网连接起来。 As shown in Figure, EVI network from the core network and the network of several sites, site networks is to deploy data centers around the country, belonging to the private network, the core network is a public network, that a number of private network through the public network to connect. 站点网络包括边缘网络和接入网络,其中,边缘网络指汇聚设备与边缘设备之间的网络,接入网络指接入设备与汇聚设备之间的网络。 Site network including the edge of the network and access network, in which the edge of the network refers to the network edge aggregation equipment and devices, access network refers to the network access device and the aggregation device. 与其他如虚拟专用局域网(VPLQ等现有的虚拟网络技术相似,EVI也可以实现虚拟局域网(VLAN)在不同站点间的扩展功能,这些扩充的VLAN上构成独立的EVI网络实例,不同EVI实例的VLAN内转发相互隔离。当然, 本实施例中所述的EVI与VPLS等其他技术也有区别,但与本发明方案实质不相关,这里不再详细描述。[0029] 图3是边缘设备ED的结构示意图,本实施例主要描述ED中如何实现一个EVI实例内的报文转发。如图3所示,ED包括:[0030] 低规格接口板1〜4,高规格接口板1〜2,各个接口板之间可以从内部通道交互。 当然,实际应用中,低规格接口板和高规格接口板的个数不限,可以为M个和N个,只要M、N 是大于或等于1的整数即可。[0031] 与现有接口板技术一样,本实施例的每个接口板上包括若干物理的端口、CPU、转发芯片以及MAC硬件表等(图中未画出)。另外,与现有技术相同,ED还包括主控板,但不涉及本实施例的方案,这里也不再详细描述。[0032] 本实施例中,低规格接口板上的MAC硬件表容量小,其范围可以是几十K〜一百多K,仅保存本地站点的MAC地址,所述低规格接口板即第一接口板,与用户侧相连,而不与公网侧相连。而高规格接口板上的MAC硬件表容量大,范围是IM〜几十M,既保存本地站点的MAC地址,还保存远端站点的MAC地址(EVI实例内的所有的MAC地址),所述高规格接口板即第二接口板,与公网侧相连,而不与用户侧相连。这里所谓本地站点的MAC地址是指边缘设备从本地用户侧学习到的MAC地址,其方法与现有技术相同。所谓远端站点的MAC地址是指边缘设备从公网侧学习到的MAC地址,可以通过如中间系统到中间系统(ISIS)协议来完成。[0033] 如何进行MAC学习,下面从用户侧VLAN内的MAC学习和公网侧的MAC学习两个方面进行详细描述。[0034] 一、用户侧VLAN内的MAC学习,仅限于低规格接口板。其方法与现有技术相同, 即:某个VLAN内,若属于该VLAN的某个端口接到用户侧报文,从该报文中解析出VLAN号、 源MAC地址等信息,将该VLAN号、源MAC地址和接收该报文的端口记录下来,下发到自身的MAC硬件表中。[0035] 比如:以图3为例,假设低规格接口板1的端口1属于VLAN100,接收到用户侧的报文后,解析出其VLAN号为VLAN100,源MAC地址是MACl,于是将VLAWOO、MACl和端口1等信息下发到低规格接口板1的MAC硬件表中: [0036] Similar to other areas such as Virtual Private LAN (VPLQ and other existing virtual network technology, EVI can also implement virtual local area network (VLAN) extensions between different sites, constitute a separate network instance EVI these expanded VLAN, different instances of EVI VLAN forwarding isolated within the course, etc. EVI and VPLS other technology described in the present embodiment are different, but the essence of the scheme is not related to the present invention, not described in detail. [0029] FIG. 3 is an edge device ED of structure each interface [0030] The low standard interface board ~ 4, 1 to 2 high-profile interface board,: a diagram of the present embodiment describes how to implement ED packet forwarding inside an EVI examples shown in Figure 3, ED included. between the plates can, of course, practical applications, low specification interface boards and high-standard interface board from inside the channel number Any interaction may be the M and N, long integers M, N is greater than or equal to 1, that is, available. [0031] Like the prior art the interface board, each interface board of the present embodiment comprises a plurality of physical ports, CPU, chips and MAC hardware forwarding table, etc. (not shown). Further, the prior the same technology, ED also includes the main control board, but no program of this embodiment, also not described in detail. [0032] In this embodiment, a small low table size MAC hardware specifications of the interface board, which can range dozens K~ hundred K, save the MAC address of the local site only, the low standard interface board that is the first interface board, is connected to the user side, but not connected to the public network. The MAC high-profile Interface Board hardware table large capacity, range IM~ tens M, both saved MAC address of the local site, but also save the MAC address of the remote site (all the MAC addresses within EVI instance), the high-compliant interface board that is a second interface board, and is connected to the public network side, but not connected to the user side. MAC address so-called here the local site refers to edge devices to learn from the local to the MAC address of the user side, the same way as in the prior art. A remote site of MAC address is an edge device to learn from the public network side to the MAC address, you can as Intermediate System to Intermediate System (ISIS) protocol. [0033] MAC learning how to, the following user-side VLAN from the MAC learning and public network MAC side of learning both described in detail [0034] First, MAC learning user side VLAN, restricted to its low Specifications Interface board the same method in the prior art, namely: a certain VLAN, if this VLAN a port connected to user packets, parse out the VLAN number, source MAC address from the packet, and the VLAN number, source MAC address and port receiving the packet down record, issued to itself MAC hardware table [0035] For example: In Figure 3, for example, assume that a lower standard interface board port 1 belongs VLAN100, after receiving the user side of the packet, parses its VLAN number VLAN100, the source MAC address is MACl and, therefore, VLAWOO, MACl and port 1 and other information issued to low specification MAC hardware interface board Table 1: [0036]

VLAN 号 MAC地址 出口信息 • ·. VLAN100 MACl 端口1 • ·. • ·. • ·. • ·. VLAN number MAC address export • ·. VLAN100 MACl port 1 • ·. • ·. • ·. • ·.

[0037]表一 [0037] Table I

[0038] 当某个低规格接口板学习到某个MAC地址后,还需要同步给其他的低规格接口板,这分为两种情况: [0038] When a low-compliant interface board learned a MAC address, also needs to be synchronized to the other low standard interface board, which is divided into two situations:

[0039] 情况一:如果其它低规格接口板也包括本VLAN的成员口,不管用户侧报文进入低规格接口板的入端口是聚合口还是非聚合口,需要将学习到的MAC地址同步给包含本VLAN 其他成员口所在的其它低规格接口板。 [0039] Case 1: If the other low-compliant interface board also includes members of the VLAN port, regardless of user packets into the low standard interface board into the port opening polymerization or non-polymeric mouth, you need to learn the MAC address synchronization to The VLAN contains other low specification interface boards of other member interfaces located.

[0040] 比如:在上述的这个例子中,假设低规格接口板2的端口2也属于VLAN100的成员口,但低规格接口板3和4中不包括VLAN100的成员口。 [0040] For example: In the above example, assume that a low standard interface board port 2 2 VLAN100 members also belong to the mouth, but the low standard interface boards 3 and 4 are not included in VLAN100 member interfaces. 那么,需要将学习到的MACl同步给低规格接口板2,但无需同步给低规格接口板3和4。 So, you need to learn to MACl synchronous interface board 2 to a low standard, but without synchronization to a low standard interface boards 3 and 4.

[0041] 情况二:如果学习MAC地址时,用户侧报文进入低规格接口板的入端口是聚合口, 为更好地保证流量不丢失,不但需要将学习到的MAC地址同步给包含本VLAN成员口的其它低规格接口板,还需要同步给其他未包含本VLAN成员口的低规格接口板,即:需要同步给其他所有的低规格接口板。 [0041] Case 2: If the MAC address learning, user packets into the low standard interface board into the port aggregation port, to better ensure the flow is not lost, not only need to learn the MAC address synchronization to contain this VLAN Other low Specifications Interface board member interfaces, but also need to be synchronized to other members not included in this VLAN port interface board low specification, namely: the need to synchronize to all other low specification interface board.

[0042] 比如:假设低规格接口板1的端口2是聚合口,且属于VLAN200的成员口,那么,不管低规格接口板2、3、4是否包含VLAN200的成员口,都需要将学习到的MAC2同步给低规格接口板2、3、4。 [0042] For example: Suppose the low standard interface card port 2 is an aggregation of port and port belong VLAN200 members, then, regardless of the low standard interface board contains 2,3,4 VLAN200 member interfaces, you need to learn to MAC2 synchronized to the low standard interface boards 2,3,4.

[0043] 上述是将本地站点用户侧MAC地址同步给低规格接口板的情况。 [0043] The above is the local site user side MAC address synchronization to a low standard interface board situation. 另外,由于高规格接口板需要保存EVI实例中所有的MAC地址,因此,低规格接口板还需要将学习到的MAC 地址同步给所有的高规格接口板。 In addition, due to the high standard interface board needs to be saved EVI example, all the MAC addresses, therefore, low specification interface board will also need to learn the MAC address synchronization to all high standard interface board. 比如:在上述的这两个例子中,低规格接口1需要将学习到的MACl同步给高规格接口板1和2,低规格接口板2也需要将学习到的MAC2同步给高规格接口板1和2。 For example: In the above two examples, the low standard interfaces 1 MACl need to learn to synchronize to a high standard interfaces plates 1 and 2, low specification interface board 2 also needs to learn to MAC2 synchronized to a high standard Interface Board 1 and 2.

[0044] 二、公网侧的MAC学习仅限于高规格接口板,其方法也与现有技术相似,即:本地站点的高规格接口板通过ISIS协议学习到远端站点发布的信息,将获得的VLAN号、MAC地址、隧道出接口等信息下发到自身的MAC硬件表中。 [0044] two, MAC learning public network side is limited to high-profile interface board, which is similar to the prior art methods, namely: the local site interface board high-profile study protocol to a remote site via ISIS release of information, will get Under VLAN number, MAC address, a tunnel interface information sent to the MAC hardware table.

[0045] 比如:以图3为例,假设高规格接口板1通过ISIS协议学习到远端站点发布的信息,获知VLAN号为VLAN300,MAC地址为MAC3,隧道出接口为接口3,则下发到自身的MAC硬件表中为:[0046] [0045] For example: In Figure 3, for example, assume that a high-level interface board by ISIS protocol to a remote site study published information, learn VLAN number VLAN300, MAC address MAC3, tunnel out interface is the interface 3, then issued to the MAC hardware table as follows: [0046]

Figure CN102571610AD00081

[0047]表二 [0047] Table II

[0048] 需要注意的是,高规格接口板中记录的出口信息与低规格接口板记录的出口信息含义不一样。 [0048] It should be noted that export high-specification describes the interface board in record export record low standard interface board is not the same. 在低规格接口板中,出口信息是低规格接口板的端口号,也就是学习MAC地址时接收其报文的入端口,是物理端口。 In the lower specification interface board, the export is low specification interface board port number, which is receiving its packets into port learning MAC address is a physical port. 而高规格接口板中,出口信息是隧道出接口,是由远端站点发布过来的,是逻辑接口,其具体内容包括隧道头部、公网的出VLAN号、公网的出端口^fn 息。 The high-profile interface board, and export out of the tunnel interface is released by the remote site over, is a logical interface, which specifically includes a port ^ fn interest tunnel head, out of the public network VLAN number, the public network .

[0049] 另夕卜,由于高规格接口板要保存EVI实例内所有的MAC地址,因此学习到公网侧的MAC地址后,还需要同步给其他所有的高规格接口板。 [0049] Another Xi Bu, due to the high standard interface board to be saved in the EVI all instances of MAC addresses, MAC address learning to the public network side of the post, but also need to be synchronized to all other high-profile interface board.

[0050] 上面关于学习到MACl〜MAC3的例子执行后,各接口板保存MAC地址的示例如图4所示。 Example [0050] The above examples about learning to MACl~MAC3 after the execution, each interface board to save the MAC address shown in Figure 4. 其中,MACl保存在低规格接口板1和2,以及高规格接口板1和2中,MAC2保存在所有的低规格接口板和高规格接口板中,MAC3仅保存在所有的高规格接口板中。 Wherein, MACl stored in the lower specification Interface Board 1 and 2, as well as high-standard interface board. 1 and 2, MAC2 stored in all of the low standard interface boards and high-standard interface card, MAC3 only save at all high-profile interface card .

[0051] 以上是关于接口板学习以及同步MAC地址的部分,下面进一步介绍报文转发的部分。 [0051] The above is an interface board on MAC address learning and synchronization section, further described below packet forwarding section.

[0052] 仍然参考图3,假设低规格接口板1的端口1接收到用户侧报文,该报文需要发送给远端站点,还假设未知单播的广播出接口被设置为高规格接口板1的环回口。 [0052] Still referring to FIG. 3, assuming that low standard interface board 1 port 1 receives user packets, the message needs to be sent to the remote site, and also assumes that the unknown unicast broadcast the interface is set to a high standard interface board ring 1 back port. 该方法包括: The method comprising:

[0053] Sl :低规格接口板1从端口1接收到用户侧发送给远端站点的报文,触发EVI实例内的MAC查找,即:利用该报文中的目的MAC地址查询低规格接口板1自身的MAC硬件表。 [0053] Sl: low specification interface board 1 is received from the user side port 1 to send packets to the remote site, triggering MAC lookup within EVI instance, namely: the use of the packet destination MAC address lookup lower standard interface board MAC hardware table 1 itself. 这里,由于本实施例中的低规格接口板1仅保存了本地站点的MAC地址,查询自然不会命中。 Here, since the present embodiment, a low-compliant interface board only save the MAC address of the local site, the query will naturally not hit.

[0054] S2 :未命中时,低规格接口板1将该报文在本VLAN内广播。 [0054] S2: misses, low specification Interface Board 1 will broadcast the packet within the VLAN. 本实施例将未知的单播报文的广播出接口设置为高规格接口板的环回口,那么,报文在本VLAN内广播实际上是通过内部通道传输给高规格接口板1,并从高规格接口板1的环回口发送出去。 This embodiment will broadcast the interface settings unknown unicast packets of high-profile interface board loopback interface, then packets within the VLAN broadcast is actually transmitted through the internal passage to the high-standard interface board 1, and from the high Specifications Interface board loopback interface. 1 sent.

[0055] 本步骤是假设将报文传送给高规格接口板1,但实际应用中还可以设置成传输给其他高规格接口板。 [0055] The present step is to assume that the packet to the high-profile Interface Board 1, but the practical application can also be configured to transmit to other high-profile interface board. 或者,为了负载分担的原因,还可以将所有的高规格板的环回口设置为聚合口,并通过哈希运算确定应该将报文传输给哪个高规格接口板的环回口。 Or, for load balancing reasons, but also all of the high-profile panel of loopback interface is set to aggregation port and should be determined by the hashed packet transmission to which high-standard interface board loopback interface.

[0056] 需要注意到是,环回口是接口板中转发芯片内部的环回电路,从该口出去的报文将直接返回,不会从接口板对外的物理端口发送出去。 [0056] need to be aware that the loopback interface is an interface board forwarded loopback circuit inside the chip, from the mouth out packets will return directly sent from the interface board will not be made physical port.

[0057] S3 :高规格接口板1接收到从环回口发送后且再次进入的报文,触发EVI实例内的MAC查找,S卩:利用该报文中的目的MAC地址查询高规格接口板1自身的MAC硬件表。 [0057] S3: high-specification interface board 1 receives from the loopback interface to send and re-entering the packets trigger a MAC EVI instance look inside, S Jie: the use of the packet destination MAC address lookup high specification interface board MAC hardware table 1 itself. 这里, 从环回口重新进入的报文将会被高规格接口板1当作新接收到的报文一样处理。 Here, from the loopback interface to re-enter the message will be high-profile Interface Board 1 as a new message is received the same treatment.

[0058] S4 :命中时,高规格接口板1根据自身的MAC硬件表记录的出口信息将该报文发送给远端站点。 [0058] S4: miss, high specification interface board 1 according to their MAC hardware table record export will send the message to the remote site. 正如前面MAC学习部分描述的,高规格接口板的MAC硬件表会记录VLAN号、 MAC地址、隧道出接口等信息,将报文发送给远端站点之前需要从隧道出接口信息中获取如隧道头部、公网出端口等信息,然后根据这些信息进行报文封装后,从高规格接口板1的出端口发送到公网。 As previously described in section MAC learning, high specification hardware interface board table records the MAC VLAN number, MAC address, tunnel outbound interface, the packet before sending it to the far site needs from the tunnel interface information acquired as a tunnel head section, the public network of ports and other information, then the information based on these encapsulated packets transmitted from the high-profile interface board of the port 1 to the public network.

[0059] 上面步骤S4是高规格接口板查找MAC地址命中的情况,实际应用中,如果未命中, 则需要在整个VEI实例内广播,S卩:高规格接口板1公网侧所有的隧道出接口都会转发该报文。 [0059] The above step S4 is a high-profile case of MAC address lookup interface board hit, practical applications, if you do not hit, you need to broadcast the entire VEI instance, S Jie: high-standard public network interface board 1 side all the tunnels out the interface will forward the packet. 此外,用户侧本VLAN所有的成员口也会转发该报文,S卩:低规格接口板所有该VLAN的成员口都会转发该报文。 In addition, the user-side with members of the VLAN port will forward the packet, S Jie: low specification interface board members of all the VLAN port will forward the packet.

[0060] 参考图3,如果高规格接口板1端口1接收到公网侧报文,该报文需要发送给本地站点的用户侧,该方法包括: [0060] Referring to Figure 3, the user side of the interface board if the high standard 1-port 1 receives packets to the public network side, the message needs to be sent to the local site, the method comprising:

[0061] Dl :高规格接口板1接收到公网侧发送给本地站点用户侧的报文,触发EVI实例内的MAC查找:利用该报文查询高规格接口板1自身的MAC硬件表。 Transmit high Specifications Interface board 1 receives public network side to the user side of the local site packet trigger MAC EVI instance inside look:: [0061] Dl use high-profile inquiry packet interface board 1 itself MAC hardware table.

[0062] 由于从公网侧接收到的报文是经过隧道封装的,实际应用中需要解封装后再查MAC硬件表,比如:如果隧道采用IP GRE隧道,那么就需要先执行弹出IP GRE隧道的操作, 之后再进行MAC查找,这是本领域技术人员公知的,此处不再详细描述。 [0062] Since the reception from the public side to the packet is encapsulated through the tunnel, the actual application requires decapsulated MAC hardware table after the investigation, such as: if the tunnel using IP GRE tunnel, you need to first perform pop IP GRE tunnels operation, then after the MAC lookup, which is known to those skilled in the art, not described in detail herein.

[0063] D2 :如果命中,将根据高规格接口板1自身的MAC硬件表记录的出口信息将该报文转发给本地站点用户侧,并结束本流程。 [0063] D2: If you hit, the meter will record export high-profile forwards the message according to its own interface board 1 MAC hardware to the local site user side, and finishes the process.

[0064] 由于报文的目的MAC地址是本地站点用户侧的MAC地址,那么对应的出口信息应该是低规格接口板的端口,比如是低规格接口板1的端口1。 [0064] Since the destination MAC address of the packet is the MAC address of the local site user side, the corresponding export should be low specification interface board port, such as a low-spec port 1 of the interface board. 高规格接口板1就应该通过内部通道将报文发送给低规格接口板1,再由低规格接口板1从端口1转发给用户侧。 High specification Interface Board 1 should be the message sent to a low standard interface board 1 through the internal passageway, then 1 is forwarded from port 1 to the user side by a low standard interface board.

[0065] D3 :如果未命中,则将该报文在本VLAN内广播,即:所有低规格接口板上属于该VLAN的成员口都会将该报文转发给用户侧,然后结束本流程。 [0065] D3: If you do not hit, the packet within the VLAN broadcasting, namely: all low-specification interface board members belonging to the VLAN port packet will be forwarded to the user side, then the end of the process.

[0066] 本步骤在VLAN内广播是因为来自公网侧的报文应该发送给本地站点用户侧,仅需要通过该VLAN的成员口转发,而且由于水平分割的原因,高规格接口板也不会转发给公网侧。 [0066] This step in the VLAN broadcast because packets from the public network side of the local site should be sent to the user side, only by members of the VLAN port forwarding, and because the reasons for the split horizon, high specification interface board does not forwarded to the public network side.

[0067] 本实施例是以EVI中边缘设备为例进行介绍本发明方案的,但实际应用中,也可以在其他网络设备上实施,比如VPLS上的边缘设备PE等,并不受本发明实施例的限制。 [0067] The present embodiments are EVI edge device of the present invention are described as an example, but the actual application, may also be implemented on other network devices, such as PE and other VPLS edge device on, not by the embodiment of the present invention limited to the examples.

[0068] 应用本发明方案,可以将原有的低规格接口板和新增加的高规格接口板混合使用,但同样可以正确转发报文,从而实现了节约资源的目的。 [0068] Application of the present invention may be the original low-compliant interface board and the newly added high-profile mixed use interface board, but the same can properly forward packets, in order to achieve the purpose of saving resources.

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

Citações de Patentes
Patente Citada Data de apresentação Data de publicação Requerente Título
CN101459607A *31 Dez 200817 Jun 2009华为技术有限公司Packet transmitting method and router
CN101610215A *21 Jul 200923 Dez 2009杭州华三通信技术有限公司Route forwarding method and gateway equipment
CN101827038A *24 Mai 20108 Set 2010杭州华三通信技术有限公司Distributed equipment and method for forwarding message in distributed equipment
US20070010250 *7 Jul 200511 Jan 2007Peter BoschMethod of hard handover in a wireless communication system
Referenciado por
Patente Onde é Citada Data de apresentação Data de publicação Requerente Título
CN102946350A *18 Set 201227 Fev 2013杭州华三通信技术有限公司Priority-based data transmission method and device
CN102946350B *18 Set 201210 Ago 2016杭州华三通信技术有限公司一种基于优先级的数据传输方法和设备
CN103023724B *17 Dez 20128 Jun 2016杭州华三通信技术有限公司一种实现ce监控的方法和设备
CN103685006B *30 Ago 201221 Dez 2016杭州华三通信技术有限公司一种在边缘设备上的报文转发方法和边缘设备
CN103795631A *30 Out 201214 Mai 2014杭州华三通信技术有限公司Flow forwarding method and device equipped with Ethernet virtual interconnection (EVI) in network
CN103905284A *27 Dez 20122 Jul 2014杭州华三通信技术有限公司EVI-network-based flow load sharing method and device
CN104022954A *1 Mar 20133 Set 2014杭州华三通信技术有限公司Message forwarding method and device
CN104022954B *1 Mar 201310 Mai 2017新华三技术有限公司报文转发方法及装置
CN104065582A *22 Mar 201324 Set 2014杭州华三通信技术有限公司Message transmission method and gateway device
CN104065582B *22 Mar 201327 Jun 2017杭州华三通信技术有限公司一种报文传输方法和网关设备
WO2014032598A1 *29 Ago 20136 Mar 2014Hangzhou H3C Technologies Co., Ltd.Forward packet with edge device
Classificações
Classificação InternacionalH04L12/741, H04L29/12
Eventos Legais
DataCódigoEventoDescrição
11 Jul 2012C06Publication
17 Out 2012C10Entry into substantive examination
21 Set 2016C12Rejection of a patent application after its publication