CN111654437A - Data center-based packet forwarding method and device - Google Patents
Data center-based packet forwarding method and device Download PDFInfo
- Publication number
- CN111654437A CN111654437A CN202010523276.3A CN202010523276A CN111654437A CN 111654437 A CN111654437 A CN 111654437A CN 202010523276 A CN202010523276 A CN 202010523276A CN 111654437 A CN111654437 A CN 111654437A
- Authority
- CN
- China
- Prior art keywords
- group
- interface
- forwarding table
- cost multi
- interfaces
- 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
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/24—Multipath
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
- H04L45/745—Address table lookup; Address filtering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/12—Avoiding congestion; Recovering from congestion
- H04L47/125—Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/50—Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开了一种基于数据中心的报文转发方法及装置,该方法包括:确定报文的接收接口所属的第一共享风险链路组;在路由转发表中查找所述报文的目的IP地址对应的第一路由转发表项;若在所述路由转发表中查找到所述第一路由转发表项,则在所述第一路由转发表项中查找所述第一共享风险链路组对应的第一设定等价多路径组;若在所述第一路由转发表项中查找到所述第一设定等价多路径组,则根据所述第一设定等价多路径组转发所述报文;若在所述路由转发表项中未查找到所述第一设定等价多路径组,则根据所述第一路由转发表项中的第一原始等价多路径组转发所述报文。该方案可以避免三层环路的产生,也就可以避免丢包,确保业务报文的正常转发。
The invention discloses a message forwarding method and device based on a data center. The method includes: determining a first shared risk link group to which a receiving interface of a message belongs; searching a route forwarding table for the destination IP of the message The first routing forwarding table entry corresponding to the address; if the first routing forwarding table entry is found in the routing forwarding table, the first shared risk link group is searched in the first routing forwarding table entry The corresponding first set equal-cost multi-path group; if the first set equal-cost multi-path group is found in the first routing forwarding entry, then according to the first set equal-cost multi-path group forwarding the packet; if the first set equal-cost multi-path group is not found in the routing and forwarding entry, then according to the first original equal-cost multi-path group in the first routing and forwarding entry forward the message. This solution can avoid the occurrence of Layer 3 loops, which can also avoid packet loss and ensure normal forwarding of service packets.
Description
技术领域technical field
本发明涉及通信技术领域,尤指一种基于数据中心的报文转发方法及装置。The present invention relates to the technical field of communications, and in particular, to a data center-based packet forwarding method and device.
背景技术Background technique
在如图1所示的数据中心中,城域网交换机会发布默认路由给核心交换机、汇聚交换机和接入交换机,用于访问外网及跨数据中心的访问,接入交换机则向汇聚交换机和核心交换机发布下联主机的主机路由,用于访问接入交换机的下联主机。假设,汇聚交换机1与接入交换机1之间的链路发生故障,汇聚交换机1优先删除来自于接入交换机1的主机路由,此时外部访问接入交换机1下联主机的报文从核心交换机1、核心交换机2转发至汇聚交换机1、汇聚交换机2,汇聚交换机1根据最长匹配原则会匹配到默认路由,将报文转发至核心交换机1、核心交换机2;核心交换机1、核心交换机2重新将该报文转发至汇聚交换机1、汇聚交换机2,这就会造成在核心交换机1、核心交换机2与汇聚交换机1之间出现短暂的三层环路,直到汇聚交换机1向核心交换机1、核心交换机2通告删除来自于接入交换机1的主机路由;当核心交换机1、核心交换机2删除了以汇聚交换机1为接入交换机1的主机路由的下一跳、只保留汇聚交换机2为接入交换机1的主机路由的下一跳后,报文才会转发至汇聚交换机2上,三层环路才能解除。In the data center shown in Figure 1, the MAN switches will advertise default routes to the core switches, aggregation switches, and access switches for access to the external network and across data centers, and the access switches to the aggregation switches and access switches. The core switch advertises the host route of the downlink host, which is used to access the downlink host of the access switch. Suppose that the link between aggregation switch 1 and access switch 1 is faulty, and aggregation switch 1 preferentially deletes the host route from access switch 1. At this time, packets from external access switches to hosts connected to access switch 1 are sent from core switch 1. , the core switch 2 forwards the packet to the aggregation switch 1 and the aggregation switch 2. The aggregation switch 1 will match the default route according to the longest matching principle, and forward the packet to the core switch 1 and core switch 2; The packet is forwarded to aggregation switch 1 and aggregation switch 2, which will cause a brief Layer 3 loop between core switch 1, core switch 2, and aggregation switch 1, until aggregation switch 1 sends core switch 1 and core switch 1 to core switch 1. 2 Announce the deletion of the host route from access switch 1; when core switch 1 and core switch 2 delete the next hop of the host route with aggregation switch 1 as access switch 1, only aggregation switch 2 is retained as access switch 1 Only after the next hop of the host route is the next hop, the packet will be forwarded to the aggregation switch 2, and the Layer 3 loop will be eliminated.
上述报文转发方法中,会产生三层环路,而这种短暂的三层环路由会导致访问接入交换机1下联主机的报文部分丢包;并且会造成核心交换机1、核心交换机2与汇聚交换机1之间链路拥塞,从而影响其他业务报文的正常转发。In the above packet forwarding method, a Layer 3 loop will occur, and this short-term Layer 3 loop will cause some packets to be lost to the host connected to the access switch 1; and will cause core switch 1, core switch 2 and The link between aggregation switches 1 is congested, which affects the normal forwarding of other service packets.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种基于数据中心的报文转发方法及装置,用以解决现有技术中存在的三层环路的问题。Embodiments of the present invention provide a data center-based packet forwarding method and device, which are used to solve the problem of a three-layer loop existing in the prior art.
根据本发明实施例,提供一种基于数据中心的报文转发方法,,应用于所述数据中心包括的核心交换机中,包括:According to an embodiment of the present invention, a data center-based packet forwarding method is provided, which is applied to a core switch included in the data center, including:
确定报文的接收接口所属的第一共享风险链路组,所述第一共享风险链路组包括所述接收接口连接的交换机与所述核心交换机之间连接的各个接口;determining a first shared risk link group to which the receiving interface of the message belongs, where the first shared risk link group includes each interface connected between the switch connected to the receiving interface and the core switch;
在路由转发表中查找所述报文的目的互联网协议IP地址对应的第一路由转发表项;Find the first routing and forwarding table entry corresponding to the destination Internet Protocol IP address of the packet in the routing and forwarding table;
若在所述路由转发表中查找到所述第一路由转发表项,则在所述第一路由转发表项中查找所述第一共享风险链路组对应的第一设定等价多路径组;If the first routing and forwarding table entry is found in the routing and forwarding table, the first set equal-cost multi-path corresponding to the first shared risk link group is searched in the first routing and forwarding table entry Group;
若在所述第一路由转发表项中查找到所述第一设定等价多路径组,则根据所述第一设定等价多路径组转发所述报文;若在所述路由转发表项中未查找到所述第一设定等价多路径组,则根据所述第一路由转发表项中的第一原始等价多路径组转发所述报文;其中,所述第一设定等价多路径组包括的接口为所述第一原始等价多路径组包括的接口中除去属于所述第一共享风险链路组包括的接口之外的接口。If the first set equal-cost multi-path group is found in the first route forwarding entry, the packet is forwarded according to the first set equal-cost multi-path group; If the first set equal-cost multi-path group is not found in the entry, the packet is forwarded according to the first original equal-cost multi-path group in the first routing forwarding entry; wherein the first The interfaces included in the equal-cost multi-path group are set to be the interfaces included in the first original equal-cost multi-path group except the interfaces included in the first shared risk link group.
可选的,还包括:Optionally, also include:
将所述核心交换机的所有接口中与相同组网角色交换机连接的接口设置为一个负载分担接口组;Setting the interface connected to the switch with the same networking role among all the interfaces of the core switch as a load sharing interface group;
将所述核心交换机的所有接口中与相同交换机连接的接口设置为一个共享风险链路组。The interfaces connected to the same switch among all the interfaces of the core switch are set as a shared risk link group.
可选的,还包括:Optionally, also include:
学习到第二路由转发表项后,确定所述第二路由转发表项中的第二原始等价多路径组包括的各个接口是否属于同一负载分担接口组;After learning the second routing and forwarding entry, determine whether each interface included in the second original equal-cost multi-path group in the second routing and forwarding entry belongs to the same load sharing interface group;
若确定所述第二原始等价多路径组包括的各个接口属于同一负载分担接口组,则确定所述第二原始等价多路径组包括的各个接口所属的共享风险链路风险组;If it is determined that each interface included in the second original equal-cost multi-path group belongs to the same load sharing interface group, then determine the shared risk link risk group to which each interface included in the second original E-C multi-path group belongs;
在所述第二路由转发表项中添加确定出的每个共享风险链路组对应的设定等价多路径组,其中,添加的每个设定等价多路径组包括的接口为所述第二原始等价多路径组包括的接口中除去对应的共享风险链路组包括的接口之外的接口。A set equal-cost multi-path group corresponding to each of the determined shared risk link groups is added to the second routing and forwarding entry, wherein the interface included in each added set-equal-cost multi-path group is the The interfaces included in the second original equal-cost multi-path group are excluding the interfaces included in the corresponding shared risk link group.
可选的,还包括:Optionally, also include:
若在所述路由转发表中未查找到所述第一路由转发表项,则丢弃所述报文。If the first routing and forwarding table entry is not found in the routing and forwarding table, the packet is discarded.
根据本发明实施例,还提供一种基于数据中心的报文转发装置,应用于所述数据中心包括的核心交换机中,包括:According to an embodiment of the present invention, a data center-based packet forwarding device is also provided, which is applied to a core switch included in the data center, including:
第一确定模块,用于确定报文的接收接口所属的第一共享风险链路组,所述第一共享风险链路组包括所述接收接口连接的交换机与所述核心交换机之间连接的各个接口;A first determining module, configured to determine a first shared risk link group to which the receiving interface of the packet belongs, where the first shared risk link group includes each of the switches connected to the receiving interface and the core switch. interface;
第一查找模块,用于在路由转发表中查找所述报文的目的IP地址对应的第一路由转发表项;a first lookup module, configured to look up the first routing and forwarding table entry corresponding to the destination IP address of the message in the routing and forwarding table;
第二查找模块,用于若在所述路由转发表中查找到所述第一路由转发表项,则在所述第一路由转发表项中查找所述第一共享风险链路组对应的第一设定等价多路径组;A second search module, configured to search for the first route and forwarding entry corresponding to the first shared risk link group in the first route and forwarding entry if the first route and forwarding entry is found in the route and forwarding table. 1. Setting up an equal-cost multipath group;
转发模块,用于若在所述第一路由转发表项中查找到所述第一设定等价多路径组,则根据所述第一设定等价多路径组转发所述报文;若在所述路由转发表项中未查找到所述第一设定等价多路径组,则根据所述第一路由转发表项中的第一原始等价多路径组转发所述报文;其中,所述第一设定等价多路径组包括的接口为所述第一原始等价多路径组包括的接口中除去属于所述第一共享风险链路组包括的接口之外的接口。a forwarding module, configured to forward the packet according to the first set equal-cost multi-path group if the first set equal-cost multi-path group is found in the first routing forwarding entry; if If the first set equal-cost multi-path group is not found in the routing and forwarding entry, the packet is forwarded according to the first original equal-cost multi-path group in the first routing and forwarding entry; wherein , the interfaces included in the first set equal-cost multi-path group are the interfaces included in the first original equal-cost multi-path group except the interfaces included in the first shared risk link group.
可选的,还包括设置模块,用于:Optionally, also includes a settings module for:
将所述核心交换机的所有接口中与相同组网角色交换机连接的接口设置为一个负载分担接口组;Setting the interface connected to the switch with the same networking role among all the interfaces of the core switch as a load sharing interface group;
将所述核心交换机的所有接口中与相同交换机连接的接口设置为一个共享风险链路组。The interfaces connected to the same switch among all the interfaces of the core switch are set as a shared risk link group.
可选的,还包括第二确定模块,用于:Optionally, it also includes a second determining module for:
学习到第二路由转发表项后,确定所述第二路由转发表项中的第二原始等价多路径组包括的各个接口是否属于同一负载分担接口组;After learning the second routing and forwarding entry, determine whether each interface included in the second original equal-cost multi-path group in the second routing and forwarding entry belongs to the same load sharing interface group;
若确定所述第二原始等价多路径组包括的各个接口属于同一负载分担接口组,则确定所述第二原始等价多路径组包括的各个接口所属的共享风险链路风险组;If it is determined that each interface included in the second original equal-cost multi-path group belongs to the same load sharing interface group, then determine the shared risk link risk group to which each interface included in the second original E-C multi-path group belongs;
在所述第二路由转发表项中添加确定出的每个共享风险链路组对应的设定等价多路径组,其中,添加的每个设定等价多路径组包括的接口为所述第二原始等价多路径组包括的接口中除去对应的共享风险链路组包括的接口之外的接口。A set equal-cost multi-path group corresponding to each of the determined shared risk link groups is added to the second routing and forwarding entry, wherein the interface included in each added set-equal-cost multi-path group is the The interfaces included in the second original equal-cost multi-path group are excluding the interfaces included in the corresponding shared risk link group.
可选的,还包括丢弃模块,用于:Optionally, a discard module is also included to:
若在所述路由转发表中未查找到所述第一路由转发表项,则丢弃所述报文。If the first routing and forwarding table entry is not found in the routing and forwarding table, the packet is discarded.
根据本发明实施例,还提供一种电子设备,所述电子设备包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;According to an embodiment of the present invention, an electronic device is also provided, the electronic device includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
存储器,用于存放计算机程序;memory for storing computer programs;
处理器,用于执行存储器上所存储的程序时,实现上述的方法步骤。The processor is configured to implement the above method steps when executing the program stored in the memory.
根据本发明实施例,还提供一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述的方法步骤。According to an embodiment of the present invention, a computer-readable storage medium is further provided, where a computer program is stored in the computer-readable storage medium, and the computer program implements the above method steps when executed by a processor.
本发明有益效果如下:The beneficial effects of the present invention are as follows:
本发明实施例提供一种基于数据中心的报文转发方法及装置,通过确定报文的接收接口所属的第一共享风险链路组,所述第一共享风险链路组包括所述接收接口连接的交换机与所述核心交换机之间连接的各个接口;在路由转发表中查找所述报文的目的互联网协议IP地址对应的第一路由转发表项;若在所述路由转发表中查找到所述第一路由转发表项,则在所述第一路由转发表项中查找所述第一共享风险链路组对应的第一设定等价多路径组;若在所述第一路由转发表项中查找到所述第一设定等价多路径组,则根据所述第一设定等价多路径组转发所述报文;若在所述路由转发表项中未查找到所述第一设定等价多路径组,则根据所述第一路由转发表项中的第一原始等价多路径组转发所述报文;其中,所述第一设定等价多路径组包括的接口为所述第一原始等价多路径组包括的接口中除去属于所述第一共享风险链路组包括的接口之外的接口。该方案中,核心交换机接收报文后在第一路由转发表项中查找报文的接收接口所属的第一共享风险链路组对应的第一设定等价多路径组,若查找到,则通过第一设定等价路径组转发报文,由于第一设定等价多路径组包括的接口为第一原始等价多路径组包括的接口中除去属于第一共享风险链路组包括的接口之外的接口,并且第一共享风险链路组的接口连接的是同一个设备,因此,不会再通过该报文的接收接口所属的第一共享风险链路组包括的接口转发出去,也就可以确保不会将报文转发给发送该报文的交换机;若未查找到,说明第一原始等价多路径组包括的接口中不包括所述第一共享风险链路组包括的接口,则可以根据第一路由转发表项中的第一原始等价多路径组转发报文,也就可以确保不会将报文转发给发送该报文的交换机,可见,无论是否查找到第一设定等价多路径组,都可以确保该报文不会再返回给发送的交换机,从而可以避免三层环路的产生,也就可以避免丢包,确保业务报文的正常转发。Embodiments of the present invention provide a data center-based packet forwarding method and device, by determining a first shared risk link group to which a receiving interface of a packet belongs, where the first shared risk link group includes the receiving interface connection Each interface connected between the switch and the core switch; find the first routing forwarding table entry corresponding to the destination Internet Protocol IP address of the message in the routing forwarding table; the first routing and forwarding table entry, look up the first set equal-cost multi-path group corresponding to the first shared risk link group in the first routing and forwarding table entry; if in the first routing and forwarding table If the first set equal-cost multi-path group is found in the routing entry, the packet is forwarded according to the first set equal-cost multi-path group; if the first set equal-cost multi-path group is not found in the routing forwarding entry Once an equal-cost multi-path group is set, the packet is forwarded according to the first original equal-cost multi-path group in the first routing forwarding entry; wherein the first set equal-cost multi-path group includes The interface is the interface included in the first original equal-cost multi-path group except the interface included in the first shared risk link group. In this solution, after receiving the message, the core switch searches the first routing and forwarding entry for the first set equal-cost multipath group corresponding to the first shared risk link group to which the receiving interface of the message belongs. The packets are forwarded through the first set equal-cost path group, because the interfaces included in the first set equal-cost multi-path group are the interfaces included in the first original equal-cost multi-path group, except those included in the first shared risk link group The interface other than the interface, and the interface of the first shared risk link group is connected to the same device. Therefore, the packet will not be forwarded through the interface included in the first shared risk link group to which the receiving interface of the packet belongs. It can also ensure that the packet will not be forwarded to the switch that sent the packet; if it is not found, it means that the interfaces included in the first original equal-cost multipath group do not include the interfaces included in the first shared risk link group. , the packet can be forwarded according to the first original equal-cost multi-path group in the first routing forwarding entry, which ensures that the packet will not be forwarded to the switch that sent the packet. Setting an equal-cost multipath group can ensure that the packet will not be returned to the sending switch, thereby avoiding the occurrence of Layer 3 loops, and thus avoiding packet loss and ensuring normal forwarding of service packets.
附图说明Description of drawings
图1为现有技术中的数据中心的架构图;1 is an architecture diagram of a data center in the prior art;
图2为本发明实施例中一种基于数据中心的报文转发方法的流程图;2 is a flowchart of a data center-based packet forwarding method in an embodiment of the present invention;
图3为本发明实施例中一种基于数据中心的报文转发装置的结构示意图;3 is a schematic structural diagram of a data center-based message forwarding device in an embodiment of the present invention;
图4为本申请示出的一种电子设备的结构示意图。FIG. 4 is a schematic structural diagram of an electronic device shown in this application.
具体实施方式Detailed ways
针对现有技术中存在的三层环路的问题,本发明实施例提供一种基于数据中心的报文转发方法,应用于数据中心包括的核心交换机中,该方法的流程如图2所示,执行步骤如下:Aiming at the problem of Layer 3 loops in the prior art, an embodiment of the present invention provides a data center-based packet forwarding method, which is applied to a core switch included in the data center. The flow of the method is shown in FIG. 2 . The execution steps are as follows:
S21:确定报文的接收接口所属的第一共享风险链路组。S21: Determine the first shared risk link group to which the receiving interface of the packet belongs.
其中,第一共享风险链路组包括接收接口连接的交换机与核心交换机之间连接的各个接口,也就是说可以将连接同一个交换机的接口设置为一个共享风险链路组。The first shared risk link group includes each interface connected between the switch receiving the interface connection and the core switch, that is to say, the interfaces connected to the same switch can be set as a shared risk link group.
S22:在路由转发表中查找报文的目的互联网协议(Internet Protocol,IP)地址对应的第一路由转发表项,若在路由转发表中查找到第一路由转发表项,则执行S23;若在路由转发表中未查找到第一路由转发表项,则执行S26。S22: Find the first routing forwarding entry corresponding to the destination Internet Protocol (Internet Protocol, IP) address of the message in the routing forwarding table, and if the first routing forwarding entry is found in the routing forwarding table, perform S23; If the first routing and forwarding table entry is not found in the routing and forwarding table, S26 is executed.
S23:在第一路由转发表项中查找第一共享风险链路组对应的第一设定等价多路径组,若在第一路由转发表项中查找到第一设定等价多路径组,则执行S24;若在路由转发表项中未查找到第一设定等价多路径组,则执行S25。S23: Search the first routing and forwarding entry for the first set equal-cost multi-path group corresponding to the first shared risk link group, if the first set equal-cost multi-path group is found in the first routing and forwarding entry , then execute S24; if the first set equal-cost multi-path group is not found in the routing forwarding entry, execute S25.
若在路由转发表中查找到第一路由转发表项,则可以根据第一路由转发表项进行处理该报文,具体可以在第一路由转发表项中查找第一共享风险链路组对应的设定等价多路径组,该设定等价多路径做可以定义为第一设定等价多路径组。If the first routing and forwarding entry is found in the routing and forwarding table, the packet can be processed according to the first routing and forwarding entry. Specifically, the first routing and forwarding entry can be searched for the corresponding A set equal-cost multi-path group, the set-equal-cost multi-path group can be defined as the first set equal-cost multi-path group.
S24:根据第一设定等价多路径组转发报文。S24: Forward the packet according to the first set equal-cost multi-path group.
S25:根据第一路由转发表项中的第一原始等价多路径组转发报文。S25: Forward the packet according to the first original equal-cost multi-path group in the first route forwarding entry.
其中,第一设定等价多路径组包括的接口为第一原始等价多路径组包括的接口中除去属于第一共享风险链路组包括的接口之外的接口。The interfaces included in the first set equal-cost multi-path group are the interfaces included in the first original equal-cost multi-path group except the interfaces included in the first shared risk link group.
S26:丢弃报文。S26: Discard the packet.
若在路由转发表中未查找到报文的目的IP地址,则无法转发该报文,可以直接丢弃。If the destination IP address of the packet is not found in the routing and forwarding table, the packet cannot be forwarded and can be discarded directly.
该方案中,核心交换机接收报文后在第一路由转发表项中查找报文的接收接口所属的第一共享风险链路组对应的第一设定等价多路径组,若查找到,则通过第一设定等价路径组转发报文,由于第一设定等价多路径组包括的接口为第一原始等价多路径组包括的接口中除去属于第一共享风险链路组包括的接口之外的接口,并且第一共享风险链路组的接口连接的是同一个设备,因此,不会再通过该报文的接收接口所属的第一共享风险链路组包括的接口转发出去,也就可以确保不会将报文转发给发送该报文的交换机;若未查找到,说明第一原始等价多路径组包括的接口中不包括第一共享风险链路组包括的接口,则可以根据第一路由转发表项中的第一原始等价多路径组转发报文,也就可以确保不会将报文转发给发送该报文的交换机,可见,无论是否查找到第一设定等价多路径组,都可以确保该报文不会再返回给发送的交换机,从而可以避免三层环路的产生,也就可以避免丢包,确保业务报文的正常转发。In this solution, after receiving the message, the core switch searches the first routing and forwarding entry for the first set equal-cost multipath group corresponding to the first shared risk link group to which the receiving interface of the message belongs. The packets are forwarded through the first set equal-cost path group, because the interfaces included in the first set equal-cost multi-path group are the interfaces included in the first original equal-cost multi-path group, except those included in the first shared risk link group The interface other than the interface, and the interface of the first shared risk link group is connected to the same device. Therefore, the packet will not be forwarded through the interface included in the first shared risk link group to which the receiving interface of the packet belongs. It can also ensure that the packet will not be forwarded to the switch that sends the packet; if it is not found, it means that the interfaces included in the first original equal-cost multipath group do not include the interfaces included in the first shared risk link group, then The packet can be forwarded according to the first original equal-cost multi-path group in the first routing and forwarding entry, which ensures that the packet will not be forwarded to the switch that sends the packet. It can be seen that no matter whether the first setting is found or not Equal-cost multipath groups can ensure that the packet will not be returned to the sending switch, thereby avoiding the occurrence of Layer 3 loops, and thus avoiding packet loss and ensuring normal forwarding of service packets.
可选的,上述方法还包括:Optionally, the above method further includes:
将核心交换机的所有接口中与相同组网角色交换机连接的接口设置为一个负载分担接口组;Set the interfaces connected to the switches with the same networking role among all the interfaces of the core switch as a load balancing interface group;
将核心交换机的所有接口中与相同交换机连接的接口设置为一个共享风险链路组。Set all interfaces of the core switch that are connected to the same switch as a shared risk link group.
如图1所示,对于核心交换机1和核心交换机2而言,可以将与城域网交换机连接的接口设置为一个负载分担组,汇聚交换机1和汇聚交换机2在数据中心的组网角色都是汇聚交换机,所以可以将与汇聚交换机1、汇聚交换机2连接的接口设置为另一个负载分担组,然后将与汇聚交换机1连接的接口设置为一个共享风险链路组,将与汇聚交换机2连接的接口设置为另一个共享风险链路组。As shown in Figure 1, for core switch 1 and core switch 2, the interface connected to the MAN switch can be set as a load sharing group, and the networking roles of aggregation switch 1 and aggregation switch 2 in the data center are both aggregation switch, so you can set the interface connected to aggregation switch 1 and aggregation switch 2 as another load balancing group, and then set the interface connected to aggregation switch 1 as a shared risk link group, and set the interface connected to aggregation switch 2 as a shared risk link group. The interface is set to another shared risk link group.
相应地,上述方法还包括:Correspondingly, the above method also includes:
学习到第二路由转发表项后,确定第二路由转发表项中的第二原始等价多路径组包括的各个接口是否属于同一负载分担接口组;After learning the second routing and forwarding entry, determine whether each interface included in the second original equal-cost multi-path group in the second routing and forwarding entry belongs to the same load balancing interface group;
若确定第二原始等价多路径组包括的各个接口属于同一负载分担接口组,则确定第二原始等价多路径组包括的各个接口所属的共享风险链路风险组;If it is determined that each interface included in the second original equal-cost multi-path group belongs to the same load balancing interface group, then determine the shared risk link risk group to which each interface included in the second original E-multi-path group belongs;
在第二路由转发表项中添加确定出的每个共享风险链路组对应的设定等价多路径组,其中,添加的每个设定等价多路径组包括的接口为第二原始等价多路径组包括的接口中除去对应的共享风险链路组包括的接口之外的接口。A set equal-cost multi-path group corresponding to each of the determined shared risk link groups is added to the second routing and forwarding entry, wherein the interface included in each added set-equal-cost multi-path group is the second original etc. The interfaces included in the valence multipath group are excluding the interfaces included in the corresponding shared risk link group.
核心交换机会不停地学习路由转发表项,该路由转发表项可以定义为第二路由转发表项,第二路由转发表项中包括的等价多路径组可以定义为第二原始等价多路径组,可以确定第二原始等价多路径组包括的各个接口是否属于同一负载分担接口组,若确定第二原始等价多路径组包括的各个接口属于同一负载分担接口组,那么就有可能产生三层环路,需要进一步确定第二原始等价多路径组包括的各个接口所属的共享风险链路风险组,然后在第二路由转发表项中添加确定出的每个共享风险链路组对应的设定等价多路径组,其中,添加的每个设定等价多路径组包括的接口为第二原始等价多路径组包括的接口中除去对应的共享风险链路组包括的接口之外的接口,从而可以确保不会将接收到的报文转发给发送该报文的交换机。The core switch will continuously learn the routing and forwarding entry. The routing and forwarding entry can be defined as the second routing and forwarding entry, and the equal-cost multi-path group included in the second routing and forwarding entry can be defined as the second original equal-cost multi-path group. Path group, it can be determined whether each interface included in the second original equal-cost multi-path group belongs to the same load balancing interface group. When a Layer 3 loop is generated, it is necessary to further determine the shared risk link risk group to which each interface included in the second original equal-cost multipath group belongs, and then add each of the determined shared risk link groups to the second routing forwarding entry. The corresponding set equal-cost multi-path group, wherein, the interface included in each added set equal-cost multi-path group is the interface included in the second original equal-cost multi-path group except the interface included in the corresponding shared risk link group This ensures that the received packet will not be forwarded to the switch that sent the packet.
需要说明的是,第二路由转发表项与第一路由转发表项可以相同也可以不同。It should be noted that the second routing and forwarding entry and the first routing and forwarding entry may be the same or different.
下面以如图1所示的核心交换机1为例来介绍上述方法的具体实施方式,假设,核心交换机1与汇聚交换机1相连的接口为Gi0/0、Gi0/1,下一跳地址分别为10.1.0.1、10.1.1.1,核心交换机1与汇聚交换机2相连的接口为Gi0/2、Gi0/3,下一跳地址分别为10.1.2.1、10.1.3.1,核心交换机1与城域网交换机相连的接口为Gi0/4、Gi0/5,下一跳地址分别为10.1.4.1、10.1.5.1,可以将Gi0/0、Gi0/1、Gi0/2、Gi0/3配置为负载分担接口组1,将Gi0/4、Gi0/5配置为负载分担接口组2,还可以将Gi0/0、Gi0/1配置为共享风险链路组1,将Gi0/2、Gi0/3配置为共享风险链路组2,将Gi0/4、Gi0/5配置为共享风险链路组3。The following takes the core switch 1 shown in FIG. 1 as an example to introduce the specific implementation of the above method. It is assumed that the interfaces connecting the core switch 1 and the aggregation switch 1 are Gi0/0 and Gi0/1, and the next hop addresses are 10.1 respectively. .0.1, 10.1.1.1, the interfaces connecting core switch 1 and aggregation switch 2 are Gi0/2 and Gi0/3, and the next hop addresses are 10.1.2.1 and 10.1.3.1 respectively. Core switch 1 is connected to the MAN switch. The interfaces are Gi0/4 and Gi0/5, and the next hop addresses are 10.1.4.1 and 10.1.5.1 respectively. You can configure Gi0/0, Gi0/1, Gi0/2, and Gi0/3 as load balancing interface group 1. Gi0/4 and Gi0/5 are configured as load balancing interface group 2, Gi0/0 and Gi0/1 can also be configured as shared risk link group 1, and Gi0/2 and Gi0/3 can be configured as shared risk link group 2 , and configure Gi0/4 and Gi0/5 as shared risk link group 3.
若学习到来自于接入交换机1的路由表项100.1.1.1/32,其下一跳及出接口分别为<10.1.0.1,Gi0/0>、<10.1.1.1,Gi0/1>、<10.1.2.1,Gi0/2>、<10.1.3.1,Gi0/3>。路由100.1.1.1/32的所有出接口都在负载分担接口组1,其中出接口Gi0/0、Gi0/1、Gi0/2、Gi0/3属于不同共享风险链路组,因此需要为每个共享风险链路组设置对应的设定等价多路径组,分别为:If the routing table entry 100.1.1.1/32 from access switch 1 is learned, its next hop and outgoing interface are <10.1.0.1, Gi0/0>, <10.1.1.1, Gi0/1>, <10.1 respectively .2.1, Gi0/2>, <10.1.3.1, Gi0/3>. All outgoing interfaces of route 100.1.1.1/32 are in load balancing interface group 1, among which outgoing interfaces Gi0/0, Gi0/1, Gi0/2, and Gi0/3 belong to different sharing risk link groups. The set equivalent multipath groups corresponding to the risk link group settings are:
A)以{<10.1.0.1,Gi0/0>、<10.1.1.1,Gi0/1>、<10.1.2.1,Gi0/2>、<10.1.3.1,Gi0/3>}作为默认原始等价多路径组,以EP-0标记。A) With {<10.1.0.1, Gi0/0>, <10.1.1.1, Gi0/1>, <10.1.2.1, Gi0/2>, <10.1.3.1, Gi0/3>} as the default primitive equivalent Path groups, marked with EP-0.
B)将排除共享风险链路组1的转发路径集合{<10.1.2.1,Gi0/2>,<10.1.3.1,Gi0/3>}作为一个设定等价多路径组,以EP-1标记。B) The set of forwarding paths {<10.1.2.1, Gi0/2>, <10.1.3.1, Gi0/3>} that excludes the shared risk link group 1 as a set equal-cost multi-path group, marked with EP-1 .
C)将排除共享风险链路组2的转发路径集合{<10.1.0.1,Gi0/0>、<10.1.1.1,Gi0/1>}作为一个设定等价多路径组,以EP-2标记。C) The set of forwarding paths {<10.1.0.1, Gi0/0>, <10.1.1.1, Gi0/1>} that excludes the shared risk link group 2 as a set equal-cost multi-path group, marked with EP-2 .
可以将路由表项100.1.1.1/32关联EP-0、EP-1和EP-2。The routing table entry 100.1.1.1/32 may be associated with EP-0, EP-1 and EP-2.
对于外部访问接入交换机1下联服务器100.1.1.1的报文经过城域网交换机到达核心交换机1;核心交换机1从与城域网交换机之间的Gi0/4或Gi0/5接收到该报文,确定报文的接收接口所属的共享风险链路组3,然后根据报文的目的IP地址100.1.1.1查找路由转发表,查找到前缀为100.1.1.1/32的路由表项,再在路由表项100.1.1.1/32中查找共享风险链路组3对应的设定等价多路径组中查找,没有查到设定等价多路径组,此时可以基于原始等价多路径组EP-0转发报文到汇聚交换机1或汇聚交换机2;若汇聚交换机1与接入交换机1、接入交换机2之间链路发生故障,访问100.1.1.1服务器的报文在汇聚交换机1根据默认路由重新转发至核心交换机1、核心交换机2;核心交换机1从与汇聚交换机1之间的接口Gi0/0或Gi0/1接收到该报文,确定该报文的接收接口所属的共享风险链路组1,然后根据报文的目的IP地址100.1.1.1查找路由转发表,查找到前缀为100.1.1.1/32的路由表项,再在路由表项100.1.1.1/32中查找共享风险链路组1对应的设定等价多路径组,查找到EP-1,然后根据EP-1转发报文到汇聚交换机2(EP-1的转发路径不存在到达汇聚交换机1的);汇聚交换机2接收核心交换机1转发的报文,再将改报文转发至接入交换机1上。从而可以避免三层环路的产生。For external access to the packet of access switch 1 downlink server 100.1.1.1, it reaches the core switch 1 through the MAN switch; the core switch 1 receives the packet from Gi0/4 or Gi0/5 between the MAN switch and the MAN switch, Determine the shared risk link group 3 to which the receiving interface of the packet belongs, and then look up the routing forwarding table according to the destination IP address 100.1.1.1 of the packet, find the routing table entry with the prefix 100.1.1.1/32, and then enter the routing table entry in the routing table entry. In 100.1.1.1/32, the set ECM corresponding to the shared risk link group 3 is searched, and the set ECM is not found. In this case, the forwarding can be based on the original ECP group EP-0. The packets are sent to aggregation switch 1 or aggregation switch 2; if the link between aggregation switch 1, access switch 1, and access switch 2 fails, the packets accessing the 100.1.1.1 server are re-forwarded to aggregation switch 1 according to the default route. Core switch 1, core switch 2; the core switch 1 receives the packet from the interface Gi0/0 or Gi0/1 between the core switch 1 and the aggregation switch 1, determines the shared risk link group 1 to which the interface receiving the packet belongs, and then According to the destination IP address 100.1.1.1 of the packet, the route forwarding table is searched, the routing table entry with the prefix 100.1.1.1/32 is found, and then the device corresponding to the shared risk link group 1 is found in the routing table entry 100.1.1.1/32. Determines an equal-cost multipath group, finds EP-1, and forwards packets to aggregation switch 2 according to EP-1 (the forwarding path of EP-1 does not exist to reach aggregation switch 1); aggregation switch 2 receives the message forwarded by core switch 1 message, and then forward the modified message to access switch 1. Thus, the generation of a three-layer loop can be avoided.
基于同一发明构思,本发明实施例提供一种基于数据中心的报文转发装置,应用于数据中心包括的核心交换机中,该装置的结构如图3所示,包括:Based on the same inventive concept, an embodiment of the present invention provides a data center-based packet forwarding device, which is applied to a core switch included in a data center. The structure of the device is shown in FIG. 3 , including:
第一确定模块31,用于确定报文的接收接口所属的第一共享风险链路组,第一共享风险链路组包括接收接口连接的交换机与核心交换机之间连接的各个接口;The
第一查找模块32,用于在路由转发表中查找报文的目的IP地址对应的第一路由转发表项;The
第二查找模块33,用于若在路由转发表中查找到第一路由转发表项,则在第一路由转发表项中查找第一共享风险链路组对应的第一设定等价多路径组;The
转发模块34,用于若在第一路由转发表项中查找到第一设定等价多路径组,则根据第一设定等价多路径组转发报文;若在路由转发表项中未查找到第一设定等价多路径组,则根据第一路由转发表项中的第一原始等价多路径组转发报文;其中,第一设定等价多路径组包括的接口为第一原始等价多路径组包括的接口中除去属于第一共享风险链路组包括的接口之外的接口。The
该方案中,核心交换机接收报文后在第一路由转发表项中查找报文的接收接口所属的第一共享风险链路组对应的第一设定等价多路径组,若查找到,则通过第一设定等价路径组转发报文,由于第一设定等价多路径组包括的接口为第一原始等价多路径组包括的接口中除去属于第一共享风险链路组包括的接口之外的接口,并且第一共享风险链路组的接口连接的是同一个设备,因此,不会再通过该报文的接收接口所属的第一共享风险链路组包括的接口转发出去,也就可以确保不会将报文转发给发送该报文的交换机;若未查找到,说明第一原始等价多路径组包括的接口中不包括第一共享风险链路组包括的接口,则可以根据第一路由转发表项中的第一原始等价多路径组转发报文,也就可以确保不会将报文转发给发送该报文的交换机,可见,无论是否查找到第一设定等价多路径组,都可以确保该报文不会再返回给发送的交换机,从而可以避免三层环路的产生,也就可以避免丢包,确保业务报文的正常转发。In this solution, after receiving the message, the core switch searches the first routing and forwarding entry for the first set equal-cost multipath group corresponding to the first shared risk link group to which the receiving interface of the message belongs. The packets are forwarded through the first set equal-cost path group, because the interfaces included in the first set equal-cost multi-path group are the interfaces included in the first original equal-cost multi-path group, except those included in the first shared risk link group The interface other than the interface, and the interface of the first shared risk link group is connected to the same device. Therefore, the packet will not be forwarded through the interface included in the first shared risk link group to which the receiving interface of the packet belongs. It can also ensure that the packet will not be forwarded to the switch that sends the packet; if it is not found, it means that the interfaces included in the first original equal-cost multipath group do not include the interfaces included in the first shared risk link group, then The packet can be forwarded according to the first original equal-cost multi-path group in the first routing and forwarding entry, which ensures that the packet will not be forwarded to the switch that sends the packet. It can be seen that no matter whether the first setting is found or not Equal-cost multipath groups can ensure that the packet will not be returned to the sending switch, thereby avoiding the occurrence of Layer 3 loops, and thus avoiding packet loss and ensuring normal forwarding of service packets.
可选的,上述装置还包括设置模块,用于:Optionally, the above device further includes a setting module for:
将核心交换机的所有接口中与相同组网角色交换机连接的接口设置为一个负载分担接口组;Set the interfaces connected to the switches with the same networking role among all the interfaces of the core switch as a load balancing interface group;
将核心交换机的所有接口中与相同交换机连接的接口设置为一个共享风险链路组。Set all interfaces of the core switch that are connected to the same switch as a shared risk link group.
可选的,上述装置还包括第二确定模块,用于:Optionally, the above-mentioned device further includes a second determination module for:
学习到第二路由转发表项后,确定第二路由转发表项中的第二原始等价多路径组包括的各个接口是否属于同一负载分担接口组;After learning the second routing and forwarding entry, determine whether each interface included in the second original equal-cost multi-path group in the second routing and forwarding entry belongs to the same load balancing interface group;
若确定第二原始等价多路径组包括的各个接口属于同一负载分担接口组,则确定第二原始等价多路径组包括的各个接口所属的共享风险链路风险组;If it is determined that each interface included in the second original equal-cost multi-path group belongs to the same load balancing interface group, then determine the shared risk link risk group to which each interface included in the second original E-multi-path group belongs;
在第二路由转发表项中添加确定出的每个共享风险链路组对应的设定等价多路径组,其中,添加的每个设定等价多路径组包括的接口为第二原始等价多路径组包括的接口中除去对应的共享风险链路组包括的接口之外的接口。A set equal-cost multi-path group corresponding to each of the determined shared risk link groups is added to the second routing and forwarding entry, wherein the interface included in each added set-equal-cost multi-path group is the second original etc. The interfaces included in the valence multipath group are excluding the interfaces included in the corresponding shared risk link group.
可选的,上述装置还包括丢弃模块,用于:Optionally, the above device further includes a discarding module for:
若在路由转发表中未查找到第一路由转发表项,则丢弃报文。If the first routing forwarding table entry is not found in the routing forwarding table, the packet is discarded.
本申请实施例还提供了一种电子设备,请参见图4所示,包括处理器410、通信接口420、存储器430和通信总线440,其中,处理器410,通信接口420,存储器430通过通信总线440完成相互间的通信。An embodiment of the present application further provides an electronic device, as shown in FIG. 4 , including a
存储器430,用于存放计算机程序;a
处理器410,用于执行存储器430上所存放的程序时,实现上述实施例中任一所述的基于数据中心的报文转发方法。The
通信接口420用于上述电子设备与其他设备之间的通信。The
存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include random access memory (Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital SignalProcessing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above-mentioned processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; may also be a digital signal processor (Digital Signal Processing, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
该方案中,核心交换机接收报文后在第一路由转发表项中查找报文的接收接口所属的第一共享风险链路组对应的第一设定等价多路径组,若查找到,则通过第一设定等价路径组转发报文,由于第一设定等价多路径组包括的接口为第一原始等价多路径组包括的接口中除去属于第一共享风险链路组包括的接口之外的接口,并且第一共享风险链路组的接口连接的是同一个设备,因此,不会再通过该报文的接收接口所属的第一共享风险链路组包括的接口转发出去,也就可以确保不会将报文转发给发送该报文的交换机;若未查找到,说明第一原始等价多路径组包括的接口中不包括所述第一共享风险链路组包括的接口,则可以根据第一路由转发表项中的第一原始等价多路径组转发报文,也就可以确保不会将报文转发给发送该报文的交换机,可见,无论是否查找到第一设定等价多路径组,都可以确保该报文不会再返回给发送的交换机,从而可以避免三层环路的产生,也就可以避免丢包,确保业务报文的正常转发。In this solution, after receiving the message, the core switch searches the first routing and forwarding entry for the first set equal-cost multipath group corresponding to the first shared risk link group to which the receiving interface of the message belongs. The packets are forwarded through the first set equal-cost path group, because the interfaces included in the first set equal-cost multi-path group are the interfaces included in the first original equal-cost multi-path group, except those included in the first shared risk link group The interface other than the interface, and the interface of the first shared risk link group is connected to the same device. Therefore, the packet will not be forwarded through the interface included in the first shared risk link group to which the receiving interface of the packet belongs. It can also ensure that the packet will not be forwarded to the switch that sent the packet; if it is not found, it means that the interfaces included in the first original equal-cost multipath group do not include the interfaces included in the first shared risk link group. , the packet can be forwarded according to the first original equal-cost multi-path group in the first routing forwarding entry, which ensures that the packet will not be forwarded to the switch that sent the packet. Setting an equal-cost multipath group can ensure that the packet will not be returned to the sending switch, thereby avoiding the occurrence of Layer 3 loops, and thus avoiding packet loss and ensuring normal forwarding of service packets.
相应地,本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述实施例中任一所述的基于数据中心的报文转发方法。Correspondingly, an embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer is made to execute the data-based storage medium described in any of the foregoing embodiments. The center's packet forwarding method.
该方案中,核心交换机接收报文后在第一路由转发表项中查找报文的接收接口所属的第一共享风险链路组对应的第一设定等价多路径组,若查找到,则通过第一设定等价路径组转发报文,由于第一设定等价多路径组包括的接口为第一原始等价多路径组包括的接口中除去属于第一共享风险链路组包括的接口之外的接口,并且第一共享风险链路组的接口连接的是同一个设备,因此,不会再通过该报文的接收接口所属的第一共享风险链路组包括的接口转发出去,也就可以确保不会将报文转发给发送该报文的交换机;若未查找到,说明第一原始等价多路径组包括的接口中不包括所述第一共享风险链路组包括的接口,则可以根据第一路由转发表项中的第一原始等价多路径组转发报文,也就可以确保不会将报文转发给发送该报文的交换机,可见,无论是否查找到第一设定等价多路径组,都可以确保该报文不会再返回给发送的交换机,从而可以避免三层环路的产生,也就可以避免丢包,确保业务报文的正常转发。In this solution, after receiving the message, the core switch searches the first routing and forwarding entry for the first set equal-cost multipath group corresponding to the first shared risk link group to which the receiving interface of the message belongs. The packets are forwarded through the first set equal-cost path group, because the interfaces included in the first set equal-cost multi-path group are the interfaces included in the first original equal-cost multi-path group, except those included in the first shared risk link group The interface other than the interface, and the interface of the first shared risk link group is connected to the same device. Therefore, the packet will not be forwarded through the interface included in the first shared risk link group to which the receiving interface of the packet belongs. It can also ensure that the packet will not be forwarded to the switch that sent the packet; if it is not found, it means that the interfaces included in the first original equal-cost multipath group do not include the interfaces included in the first shared risk link group. , the packet can be forwarded according to the first original equal-cost multi-path group in the first routing forwarding entry, which ensures that the packet will not be forwarded to the switch that sent the packet. Setting an equal-cost multipath group can ensure that the packet will not be returned to the sending switch, thereby avoiding the occurrence of Layer 3 loops, and thus avoiding packet loss and ensuring normal forwarding of service packets.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.
尽管已描述了本发明的可选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括可选实施例以及落入本发明范围的所有变更和修改。Although alternative embodiments of the present invention have been described, additional changes and modifications to these embodiments may occur to those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be construed to include alternative embodiments and all changes and modifications that fall within the scope of the present invention.
显然,本领域的技术人员可以对本发明实施例进行各种改动和变型而不脱离本发明实施例的精神和范围。这样,倘若本发明实施例的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present invention without departing from the spirit and scope of the embodiments of the present invention. Thus, provided that these modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010523276.3A CN111654437B (en) | 2020-06-10 | 2020-06-10 | Message forwarding method and device based on data center |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010523276.3A CN111654437B (en) | 2020-06-10 | 2020-06-10 | Message forwarding method and device based on data center |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111654437A true CN111654437A (en) | 2020-09-11 |
| CN111654437B CN111654437B (en) | 2022-09-20 |
Family
ID=72352851
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010523276.3A Active CN111654437B (en) | 2020-06-10 | 2020-06-10 | Message forwarding method and device based on data center |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111654437B (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112637053A (en) * | 2020-12-30 | 2021-04-09 | 锐捷网络股份有限公司 | Method and device for determining backup forwarding path of route |
| CN113452614A (en) * | 2021-06-25 | 2021-09-28 | 新华三信息安全技术有限公司 | Message processing method and device |
| CN113595893A (en) * | 2021-07-20 | 2021-11-02 | 锐捷网络股份有限公司 | Route receiving system, route receiving method, device, equipment and medium |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050111349A1 (en) * | 2003-11-21 | 2005-05-26 | Vasseur Jean P. | Method and apparatus for determining network routing information based on shared risk link group information |
| CN101022413A (en) * | 2007-03-26 | 2007-08-22 | 杭州华为三康技术有限公司 | Load equalizing method and route server |
| US20140147107A1 (en) * | 2012-11-27 | 2014-05-29 | Gerard Leo SWINKELS | Drop port based shared risk link group systems and methods |
| CN108173765A (en) * | 2017-12-28 | 2018-06-15 | 新华三技术有限公司 | A kind of message forwarding method and device |
| CN108881035A (en) * | 2018-09-13 | 2018-11-23 | 杭州迪普科技股份有限公司 | A kind of message forwarding method and device |
-
2020
- 2020-06-10 CN CN202010523276.3A patent/CN111654437B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050111349A1 (en) * | 2003-11-21 | 2005-05-26 | Vasseur Jean P. | Method and apparatus for determining network routing information based on shared risk link group information |
| CN101022413A (en) * | 2007-03-26 | 2007-08-22 | 杭州华为三康技术有限公司 | Load equalizing method and route server |
| US20140147107A1 (en) * | 2012-11-27 | 2014-05-29 | Gerard Leo SWINKELS | Drop port based shared risk link group systems and methods |
| CN108173765A (en) * | 2017-12-28 | 2018-06-15 | 新华三技术有限公司 | A kind of message forwarding method and device |
| CN108881035A (en) * | 2018-09-13 | 2018-11-23 | 杭州迪普科技股份有限公司 | A kind of message forwarding method and device |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112637053A (en) * | 2020-12-30 | 2021-04-09 | 锐捷网络股份有限公司 | Method and device for determining backup forwarding path of route |
| CN112637053B (en) * | 2020-12-30 | 2022-05-20 | 锐捷网络股份有限公司 | Method and device for determining backup forwarding path of route |
| CN113452614A (en) * | 2021-06-25 | 2021-09-28 | 新华三信息安全技术有限公司 | Message processing method and device |
| CN113452614B (en) * | 2021-06-25 | 2022-06-21 | 新华三信息安全技术有限公司 | Message processing method and device |
| CN113595893A (en) * | 2021-07-20 | 2021-11-02 | 锐捷网络股份有限公司 | Route receiving system, route receiving method, device, equipment and medium |
| CN113595893B (en) * | 2021-07-20 | 2024-05-14 | 锐捷网络股份有限公司 | Route receiving system, route receiving method, device, equipment and medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111654437B (en) | 2022-09-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10924413B2 (en) | Transmission path determining method and apparatus | |
| CN106375231B (en) | A kind of flow switching method, equipment and system | |
| US9602428B2 (en) | Method and apparatus for locality sensitive hash-based load balancing | |
| CN102957600B (en) | A kind of data message forwarding method and device | |
| US10003539B1 (en) | Path discovery in multipath networks | |
| CN104052667B (en) | Message processing method and equipment | |
| US10129137B2 (en) | Transferring data in a gateway | |
| CN107040443A (en) | The Fast Convergent of the EVPN networks of many host's topologys | |
| EP3148124B1 (en) | System and method for eliminating undetected interest looping in information-centric networks | |
| CN106936939A (en) | A kind of message processing method, relevant apparatus and NVO3 network systems | |
| US20150295861A1 (en) | Link problem handling | |
| WO2016108140A1 (en) | Ccn fragmentation gateway | |
| US11924103B2 (en) | Traffic processing method, apparatus, and network device | |
| WO2017054770A1 (en) | Cluster communication | |
| CN113965521B (en) | Data packet transmission method, server and storage medium | |
| CN111654437A (en) | Data center-based packet forwarding method and device | |
| CN101534253A (en) | Message forwarding method and device | |
| CN114389967A (en) | Link detection method, device, equipment and storage medium | |
| CN105634776B (en) | method and device for determining message forwarding interface | |
| WO2019007139A1 (en) | Method, device, and system for implementing fault detection | |
| WO2020135339A1 (en) | Network path convergence method and related device | |
| CN118612145A (en) | A link abnormality processing method, device and related equipment | |
| CN112866107B (en) | IP address notification method, traffic guidance method and network equipment | |
| CN113472699A (en) | Network table item synchronization method and device | |
| US12363023B2 (en) | Route refresh method, apparatus, and system |
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 |
