WO2017124696A1 - Method of processing policy route, method of forwarding packet, and device - Google Patents

Method of processing policy route, method of forwarding packet, and device Download PDF

Info

Publication number
WO2017124696A1
WO2017124696A1 PCT/CN2016/087114 CN2016087114W WO2017124696A1 WO 2017124696 A1 WO2017124696 A1 WO 2017124696A1 CN 2016087114 W CN2016087114 W CN 2016087114W WO 2017124696 A1 WO2017124696 A1 WO 2017124696A1
Authority
WO
WIPO (PCT)
Prior art keywords
routing forwarding
policy routing
interface
forwarding table
policy
Prior art date
Application number
PCT/CN2016/087114
Other languages
French (fr)
Chinese (zh)
Inventor
张守忠
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017124696A1 publication Critical patent/WO2017124696A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/302Route determination based on requested QoS
    • H04L45/306Route determination based on the nature of the carried application
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/72Routing based on the source address

Definitions

  • This document relates to, but is not limited to, the field of data network communication, and in particular, to a policy routing processing method and apparatus.
  • policy routing is more powerful and flexible. It enables network administrators to select forwarding paths based on the destination address and packet application or source IP address.
  • the so-called message application includes the interface number of Transmission Control Protocol (TCP) or User Datagram Protocol (UDP), and also includes the length of the message.
  • TCP Transmission Control Protocol
  • UDP User Datagram Protocol
  • Policy routing can achieve traffic engineering to a certain extent, so that different quality of service flows or data of different nature, such as voice traffic and data traffic, take different paths.
  • a common method of switching a policy route to a traditional route in the related art is that the interface module first reports the interface failure to the protocol layer, and then the interface protocol notifies the policy routing protocol to recalculate the forwarding path, and then delivers the forwarding table switching of the control forwarding plane. To traditional routing.
  • One problem with such a switching method is that the switching time needs to count the time of the interface protocol notification policy routing recalculation, which may make the switching performance unable to meet the increasing high performance requirements, and in the case that the handover has not been completed, This will result in the loss of messages.
  • This document provides a method and device for processing policy routing, which can solve the problem of packet loss caused by the maintenance method of the forwarding table in related technologies.
  • This document provides a policy routing method, including:
  • the detected interface failure information is reported to the protocol layer, where the interface failure information is used to refer to
  • the protocol layer is configured to update the status of the policy routing forwarding table to be invalid
  • the policy routing forwarding table corresponding to the failed interface is invalid.
  • the invalidating the policy routing forwarding table corresponding to the invalid interface includes:
  • the determined policy routing forwarding table is placed invalid.
  • the determining, according to the interface ID, the policy routing forwarding table includes:
  • the policy routing forwarding table Determining, according to the interface ID, the next hop IP address, and the virtual private network ID, the policy routing forwarding table, where the next hop IP address and the virtual private network ID are determined according to the interface ID query mapping table.
  • the determining, according to the interface ID, the next hop IP address, and the virtual private network ID, the policy routing forwarding table includes:
  • the invalidating the policy routing forwarding table corresponding to the failed interface includes:
  • the policy routing forwarding table is invalidated by changing the valid flag bits of the policy routing forwarding table.
  • This document also provides a packet forwarding method, including:
  • the packet is forwarded according to the policy routing forwarding table
  • the packet is forwarded according to the ordinary routing forwarding table.
  • the method before the determining whether the policy routing forwarding information is obtained, the method further includes:
  • the ACL table is matched by the packet keyword, where the packet keyword is obtained by parsing the packet;
  • This document also provides a policy routing processing device, including:
  • the reporting module is configured to report the detected interface failure information to the protocol layer, where the interface failure information is used to instruct the protocol layer to update the status of the policy routing forwarding table to be invalid;
  • the processing module is configured to invalidate the policy routing forwarding table corresponding to the failed interface.
  • the processing module includes:
  • a determining unit configured to determine the policy routing forwarding table according to the interface ID, a next hop IP address, and a virtual private network ID, where the next hop IP address and the virtual private network ID are queried according to the interface ID
  • the mapping table is determined.
  • This document also provides a message forwarding device, including:
  • the determining module is configured to determine whether the policy routing forwarding information is obtained, where the policy routing forwarding information includes a valid marking bit;
  • the first forwarding module is configured to: when the determining module determines that the policy routing forwarding information is obtained, and the valid marking bit is valid, forwarding the packet according to the policy routing forwarding table;
  • a second forwarding module configured to: when the determining module determines that the policy routing forwarding information is not obtained, or the determining module determines that the policy routing forwarding information is obtained but the valid marking bit is invalid, the packet is configured to be Forward according to the normal routing forwarding table.
  • Also provided herein is a computer readable storage medium storing computer executable instructions for performing the following operations:
  • the detected interface failure information is reported to the protocol layer, where the interface failure information is used to indicate that the protocol layer updates the status of the policy routing forwarding table to be invalid;
  • Also provided herein is a computer readable storage medium storing computer executable instructions for performing the following operations:
  • the packet is forwarded according to the ordinary routing forwarding table.
  • the technical solution provided in this paper reports the failure information of the detected interface to the protocol layer, and puts the policy routing forwarding table corresponding to the failed interface into an invalid technical solution, which solves the problem of packet loss caused by the maintenance method of the forwarding table in the related technology, and reduces the problem. The possibility of losing packets.
  • FIG. 1 is a flowchart of a method for processing a policy route according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a packet forwarding method according to an embodiment of the present invention.
  • FIG. 3 is a structural block diagram of a policy routing processing apparatus according to an embodiment of the present invention.
  • FIG. 4 is a structural block diagram of a policy routing processing apparatus according to an embodiment of the present invention.
  • FIG. 5 is a structural block diagram of a message forwarding apparatus according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of a message processing method according to an embodiment of the present invention.
  • FIG. 7 is a flow chart of updating a policy routing forwarding table according to an embodiment of the present invention.
  • FIG. 8 is a flow diagram of policy routing handover to a common route in accordance with an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for processing a policy route according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps S102 and S104:
  • step S102 the interface module reports the detected interface failure information to the protocol layer, where the interface failure information is used to indicate that the protocol layer updates the status of the policy routing forwarding table to be invalid.
  • Step S104 The interface module disables the policy routing forwarding table corresponding to the failed interface.
  • the protocol layer sends an interface ID
  • the interface module determines the policy routing forwarding table according to the interface ID, and places the determined routing routing table to be invalid.
  • the interface ID may determine the next hop IP address and the virtual private network ID by using the query mapping table, and determine the policy routing forwarding table according to the interface ID, the next hop IP address, and the virtual private network ID query hash table.
  • the interface module can invalidate the policy routing forwarding table by changing the valid flag bits of the policy routing forwarding table. For example, if the valid flag bit is 1, the policy routing forwarding table is valid, and the forwarding plane can forward the packet according to the path of the policy routing forwarding table. If the valid flag bit is 0, the policy routing forwarding table is invalid. The forwarding plane forwards the packet according to the path of the ordinary routing forwarding table.
  • FIG. 2 is a flowchart of a packet forwarding method according to an embodiment of the present invention. As shown in FIG. 2, the process includes the following steps S202 and S204:
  • Step S202 The forwarding plane determines whether the policy routing forwarding information is obtained, where the policy routing forwarding information includes a valid marking bit.
  • Step S204 the forwarding plane forwards the packet according to the policy routing forwarding table when the judgment result is that the policy routing forwarding information is obtained, and the valid marking bit is valid; If the valid flag is invalid, or if the result of the determination is that the policy routing information is not obtained, the packet is forwarded according to the ordinary routing forwarding table.
  • determining whether the packet keyword matches the access control list determines whether the policy routing forwarding information is obtained. For example, the forwarding plane parses the packet to obtain the packet keyword, and matches the packet control keyword to the ACL table. If the ACL table is successfully matched, the routing information of the policy is obtained. If the ACL table is matched, it is determined that the policy routing forwarding information is not obtained.
  • a computer readable storage medium storing computer executable instructions for performing the above methods.
  • FIG. 3 is a structural block diagram of a policy routing processing apparatus according to an embodiment of the present invention. As shown in FIG. 3, the apparatus includes:
  • the reporting module 32 is configured to report the detected interface failure information to the protocol layer, where the interface failure information is used to indicate that the protocol layer updates the policy routing forwarding table status to invalid.
  • the processing module 34 is configured to invalidate the policy routing forwarding table corresponding to the failed interface.
  • the processing module 34 may be configured to invalidate the policy routing forwarding table corresponding to the invalid interface.
  • the processing module 34 may determine the policy routing forwarding table according to the interface identifier ID, where the interface ID is Delivered by the protocol layer; the determined policy routing forwarding table is invalidated.
  • the processing module 34 may also invalidate the policy routing forwarding table by changing the valid flag bits of the policy routing forwarding table.
  • the processing module 34 includes:
  • the determining unit 42 is configured to determine the policy routing forwarding table according to the interface ID, the next hop IP address, and the virtual private network ID, where the next hop IP address and the virtual private network ID are determined according to the interface ID query mapping table. of.
  • determining, by the determining unit 42 according to the interface ID, the next hop IP address, and the virtual private network ID, the policy routing forwarding table includes: determining a policy routing according to the interface ID, the next hop IP address, and the virtual private network ID query hash table. Forwarding table.
  • FIG. 5 is a structural block diagram of a message forwarding device according to an embodiment of the present invention. As shown in FIG. 5, the message forwarding device further includes:
  • the determining module 52 is configured to determine whether the policy routing forwarding information is obtained, where the policy The routing forwarding information includes a valid marking bit;
  • the first forwarding module 54 is configured to forward the packet according to the policy routing forwarding table if the judgment result is that the policy routing forwarding information is obtained and the valid marking bit is valid;
  • the second forwarding module 56 is configured to, according to the judgment result, that the policy routing forwarding information is not obtained, or the judgment result is that the policy routing forwarding information is obtained but the valid marking bit is invalid, the packet is forwarded according to the ordinary routing table. Forward.
  • the determining module 52 determines whether the ACL is matched by the packet keyword, and the packet is matched by the ACL, and the ACL is successfully matched to the ACL. In the case of the table, it is determined that the policy routing forwarding information is obtained. If the ACL table is not matched, it is determined that the policy routing forwarding information is not obtained.
  • This embodiment proposes a method for policy routing failure to reduce packet loss.
  • the control layer bottom interface module first updates the valid flag bit of the policy routing forwarding table when the interface is down, and the forwarding plane queries the common routing table and the policy routing forwarding table. If the valid tag of the policy routing table is valid, the mode of the packet forwarding path is determined. When the fault occurs in the network, the policy route is quickly switched to the common route to reduce the number of packets lost.
  • FIG. 6 is a flowchart of a packet processing method according to an embodiment of the present invention. As shown in FIG. 6, the method includes the following steps S602 and S604:
  • Step S602 the interface underlying control module detects that the interface is down, and notifies the policy routing module to change the policy routing forwarding table when the interface status is reported;
  • Step S604 in the data forwarding layer, use the destination IP address in the packet to check the routing table and the policy routing forwarding table. If the valid routing flag of the policy routing forwarding table is valid, the routing is forwarded according to the policy. If the valid routing label of the policy routing forwarding table is invalid, then Forward the result of checking the routing table according to the destination IP address of the packet;
  • step S606 the interface module reports the interface down information to the interface protocol layer, and then the interface protocol notifies the policy routing protocol to deliver the update policy routing forwarding table, so that the upper protocol layer and the lower hardware layer state are consistent.
  • FIG. 7 is a flowchart of a policy routing forwarding table update according to an embodiment of the present invention, as shown in FIG.
  • the method includes the following steps S702 to S710:
  • Step S702 The policy routing module applies the policy routing forwarding table according to the three key fields of the interface ID, the next hop IP address, and the virtual private network (also called VPN) ID delivered by the policy routing protocol, and performs the three fields.
  • the column also known as hash
  • Step S704 the policy routing module establishes a mapping table of the interface ID, the next hop IP address, and the VPN ID by using the policy routing interface ID as a key value.
  • Step S706 after detecting that the link failure is down, the interface module at the bottom of the control plane obtains the next hop IP address and the VPN ID by using the interface ID query mapping table.
  • Step S708 Perform a hash search hash table with the interface ID, the next hop IP address, and the VPN ID to obtain a policy routing forwarding table.
  • step S710 the valid flag bit field of the modified policy routing forwarding table is 0, that is, the policy routing forwarding table is invalid.
  • FIG. 8 is a flowchart of switching a policy route to a common route according to an embodiment of the present invention. As shown in FIG. 8, the method includes the following steps S802 to S808:
  • Step S802 The packet parsing module extracts the packet key. If the packet is an IP packet, the source IP address, the destination IP address, and the protocol number are parsed. If the packet is a UDP packet, the packet is parsed. Source IP address, destination IP address, IP protocol number, source interface, destination interface;
  • Step S804 the forwarding plane "route lookup module” obtains the common route forwarding table information by using the destination IP address of the packet to check the routing table and saves the information;
  • Step S806 the forwarding face "ACL matching module" uses the message key to match the ACL table. If the matching succeeds, the result table is obtained to obtain the policy routing forwarding table, and step S808 is performed; if there is no matching ACL table, the ordinary Routing forwarding table forwarding;
  • the functions of the modules described in FIG. 6-8 are implemented by a combination of one or more of an interface module, a reporting module, a processing module, a judging module, a first forwarding module, and a second forwarding module.
  • the detected interface failure information is reported to the protocol layer, and the policy routing forwarding table corresponding to the failed interface is invalidated, which solves the problem that the forwarding table maintenance mode causes packet loss in the related technology, and reduces the possibility of packet loss. Sex.

Abstract

A method of processing a policy route, a method of forwarding a packet, and a device. The method of processing the policy route comprises: reporting, to a protocol layer, detected invalid interface information, wherein the invalid interface information is used to instruct the protocol layer to update a state of a policy route forwarding table to be invalid; and setting the policy route forwarding table corresponding to the invalid interface to be invalid.

Description

策略路由处理、报文转发方法及装置Policy routing processing, message forwarding method and device 技术领域Technical field
本文涉及但不限于数据网络通信领域,尤其涉及一种策略路由处理方法及装置。This document relates to, but is not limited to, the field of data network communication, and in particular, to a policy routing processing method and apparatus.
背景技术Background technique
策略路由与传统路由相比,功能更强、使用更灵活,它使网络管理者不仅能够根据目的地址,而且能够根据报文应用或源IP地址来选择转发路径。所谓报文应用包括传输控制协议(TCP)或用户数据报协议(UDP)的接口号,还包括报文的长度。策略路由可以在一定程度上实现流量工程,使不同服务质量的流或不同性质的数据,如语音流量和数据流量,走不同的路径。Compared with traditional routing, policy routing is more powerful and flexible. It enables network administrators to select forwarding paths based on the destination address and packet application or source IP address. The so-called message application includes the interface number of Transmission Control Protocol (TCP) or User Datagram Protocol (UDP), and also includes the length of the message. Policy routing can achieve traffic engineering to a certain extent, so that different quality of service flows or data of different nature, such as voice traffic and data traffic, take different paths.
随着策略路由技术在网络中应用越来越广泛,对策略路由的要求越来越高,如路由器接口失效时策略路由快速切换到传统路由的性能提出了更高要求。相关技术中常见的策略路由切换到传统路由的方法是接口模块先将接口失效上报到协议层,然后再由接口协议通知策略路由的协议重新计算转发路径,然后下发控制转发面的转发表切换到传统路由。这样的切换方式存在的一个问题就是切换的时间需要将接口协议通知策略路由重新计算的时间算进来,这样可能会使切换性能满足不了日益增加的高性能需求,且在尚未完成切换的情况下,会导致报文丢失。As the policy routing technology is applied more widely in the network, the requirements for policy routing are higher and higher. For example, when the router interface fails, the performance of policy routing to switch to the traditional route is higher. A common method of switching a policy route to a traditional route in the related art is that the interface module first reports the interface failure to the protocol layer, and then the interface protocol notifies the policy routing protocol to recalculate the forwarding path, and then delivers the forwarding table switching of the control forwarding plane. To traditional routing. One problem with such a switching method is that the switching time needs to count the time of the interface protocol notification policy routing recalculation, which may make the switching performance unable to meet the increasing high performance requirements, and in the case that the handover has not been completed, This will result in the loss of messages.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本文提供了策略路由处理方法及装置,可以解决相关技术中转发表维护方式引起丢包的问题。This document provides a method and device for processing policy routing, which can solve the problem of packet loss caused by the maintenance method of the forwarding table in related technologies.
本文提供一种策略路由处理方法,包括:This document provides a policy routing method, including:
将检测到的接口失效信息上报协议层,其中,所述接口失效信息用于指 示所述协议层将所述策略路由转发表状态更新为无效;The detected interface failure information is reported to the protocol layer, where the interface failure information is used to refer to The protocol layer is configured to update the status of the policy routing forwarding table to be invalid;
将失效接口对应的策略路由转发表置于无效。The policy routing forwarding table corresponding to the failed interface is invalid.
可选地,上述方法中,所述将所述失效接口对应的策略路由转发表置于无效包括:Optionally, in the foregoing method, the invalidating the policy routing forwarding table corresponding to the invalid interface includes:
根据接口标识ID确定所述策略路由转发表,其中,所述接口ID为协议层下发的;Determining, according to the interface identifier, the policy routing forwarding table, where the interface ID is delivered by the protocol layer;
将确定的所述策略路由转发表置于无效。The determined policy routing forwarding table is placed invalid.
可选地,上述方法中,所述根据所述接口ID确定所述策略路由转发表包括:Optionally, in the foregoing method, the determining, according to the interface ID, the policy routing forwarding table includes:
根据所述接口ID、下一跳IP地址和虚拟专用网络ID确定所述策略路由转发表,其中,所述下一跳IP地址和虚拟专用网络ID是根据所述接口ID查询映射表确定的。Determining, according to the interface ID, the next hop IP address, and the virtual private network ID, the policy routing forwarding table, where the next hop IP address and the virtual private network ID are determined according to the interface ID query mapping table.
可选地,上述方法中,所述根据所述接口ID、所述下一跳IP地址和所述虚拟专用网络ID确定所述策略路由转发表包括:Optionally, in the foregoing method, the determining, according to the interface ID, the next hop IP address, and the virtual private network ID, the policy routing forwarding table includes:
根据所述接口ID、所述下一跳IP地址和所述虚拟专用网络ID查询散列表确定所述策略路由转发表。Determining the policy routing forwarding table according to the interface ID, the next hop IP address, and the virtual private network ID query hash table.
可选地,上述方法中,所述将失效接口对应的策略路由转发表置于无效包括:Optionally, in the foregoing method, the invalidating the policy routing forwarding table corresponding to the failed interface includes:
通过更改策略路由转发表的有效标记位的方式将策略路由转发表置于无效。The policy routing forwarding table is invalidated by changing the valid flag bits of the policy routing forwarding table.
本文还提供了一种报文转发方法,包括:This document also provides a packet forwarding method, including:
判断是否获取到策略路由转发信息,其中,所述策略路由转发信息包括有效标记位;Determining whether the policy routing forwarding information is obtained, where the policy routing forwarding information includes a valid marking bit;
在判断结果为获取到策略路由转发信息,并且所述有效标记位为有效的情况下,将所述报文按照策略路由转发表转发;If the result of the judgment is that the policy routing forwarding information is obtained, and the valid flag bit is valid, the packet is forwarded according to the policy routing forwarding table;
在判断结果为获取到策略路由转发信息,但所述有效标记位为无效的情况下,将所述报文按照普通路由转发表转发;If the result of the judgment is that the policy routing forwarding information is obtained, but the valid flag bit is invalid, the packet is forwarded according to the ordinary routing forwarding table;
在判断结果为未获取到策略路由转发信息的情况下,将所述报文按照普通路由转发表转发。 If the result of the judgment is that the policy routing forwarding information is not obtained, the packet is forwarded according to the ordinary routing forwarding table.
可选地,上述方法中,所述判断是否获取到策略路由转发信息前,还包括:Optionally, in the foregoing method, before the determining whether the policy routing forwarding information is obtained, the method further includes:
通过报文关键词匹配访问控制列表ACL表,其中,所述报文关键词通过解析报文获取;The ACL table is matched by the packet keyword, where the packet keyword is obtained by parsing the packet;
在成功匹配到ACL表的情况下,确定获取到所述策略路由转发信息;If the ACL table is successfully matched, determining that the policy routing forwarding information is obtained;
在未匹配到ACL表的情况下,确定未获取到所述策略路由转发信息。If the ACL table is not matched, it is determined that the policy routing forwarding information is not obtained.
本文还提供了一种策略路由处理装置,包括:This document also provides a policy routing processing device, including:
上报模块,设置为将检测到的接口失效信息上报协议层,其中,所述接口失效信息用于指示所述协议层将所述策略路由转发表状态更新为无效;The reporting module is configured to report the detected interface failure information to the protocol layer, where the interface failure information is used to instruct the protocol layer to update the status of the policy routing forwarding table to be invalid;
处理模块,设置为将失效接口对应的策略路由转发表置于无效。The processing module is configured to invalidate the policy routing forwarding table corresponding to the failed interface.
可选地,上述装置中,所述处理模块包括:Optionally, in the foregoing apparatus, the processing module includes:
确定单元,设置为根据所述接口ID、下一跳IP地址和虚拟专用网络ID确定所述策略路由转发表,其中,所述下一跳IP地址和虚拟专用网络ID是根据所述接口ID查询映射表确定的。a determining unit, configured to determine the policy routing forwarding table according to the interface ID, a next hop IP address, and a virtual private network ID, where the next hop IP address and the virtual private network ID are queried according to the interface ID The mapping table is determined.
本文还提供了一种报文转发装置,包括:This document also provides a message forwarding device, including:
判断模块,设置为判断是否获取到策略路由转发信息,其中,所述策略路由转发信息包括有效标记位;The determining module is configured to determine whether the policy routing forwarding information is obtained, where the policy routing forwarding information includes a valid marking bit;
第一转发模块,设置为在所述判断模块判断获取到策略路由转发信息,且所述有效标记位为有效的情况下,将所述报文按照策略路由转发表转发;The first forwarding module is configured to: when the determining module determines that the policy routing forwarding information is obtained, and the valid marking bit is valid, forwarding the packet according to the policy routing forwarding table;
第二转发模块,设置为在所述判断模块判断未获取到策略路由转发信息,或所述判断模块判断获取到策略路由转发信息但所述有效标记位为无效的情况下,将所述报文按照普通路由转发表转发。a second forwarding module, configured to: when the determining module determines that the policy routing forwarding information is not obtained, or the determining module determines that the policy routing forwarding information is obtained but the valid marking bit is invalid, the packet is configured to be Forward according to the normal routing forwarding table.
本文还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行如下操作:Also provided herein is a computer readable storage medium storing computer executable instructions for performing the following operations:
S1、将检测到的接口失效信息上报协议层,其中,所述接口失效信息用于指示所述协议层将所述策略路由转发表状态更新为无效;S1, the detected interface failure information is reported to the protocol layer, where the interface failure information is used to indicate that the protocol layer updates the status of the policy routing forwarding table to be invalid;
S2、将失效接口对应的策略路由转发表置于无效。S2: The policy routing forwarding table corresponding to the failed interface is invalid.
本文还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行如下操作: Also provided herein is a computer readable storage medium storing computer executable instructions for performing the following operations:
S1、判断是否获取到策略路由转发信息,其中,所述策略路由转发信息包括有效标记位;S1, determining whether the policy routing forwarding information is obtained, where the policy routing forwarding information includes a valid marking bit;
S2、在判断结果为获取到策略路由转发信息,并且所述有效标记位为有效的情况下,将所述报文按照策略路由转发表转发;S2. If the result of the judgment is that the policy routing forwarding information is obtained, and the valid flag bit is valid, the packet is forwarded according to the policy routing forwarding table.
S3、在判断结果为获取到策略路由转发信息,但所述有效标记位为无效的情况下,将所述报文按照普通路由转发表转发;S3. If the result of the judgment is that the policy routing forwarding information is obtained, but the valid marking bit is invalid, the packet is forwarded according to the ordinary routing forwarding table.
S4、在判断结果为未获取到策略路由转发信息的情况下,将所述报文按照普通路由转发表转发。S4. If the result of the judgment is that the policy routing forwarding information is not obtained, the packet is forwarded according to the ordinary routing forwarding table.
本文提供的技术方案,采用将检测到的接口失效信息上报协议层,将失效接口对应的策略路由转发表置于无效的技术方案,解决了相关技术中转发表维护方式引起丢包的问题,减少了丢包的可能性。The technical solution provided in this paper reports the failure information of the detected interface to the protocol layer, and puts the policy routing forwarding table corresponding to the failed interface into an invalid technical solution, which solves the problem of packet loss caused by the maintenance method of the forwarding table in the related technology, and reduces the problem. The possibility of losing packets.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1是根据本发明实施例的策略路由处理方法的流程图;1 is a flowchart of a method for processing a policy route according to an embodiment of the present invention;
图2是根据本发明实施例的报文转发方法的流程图;2 is a flowchart of a packet forwarding method according to an embodiment of the present invention;
图3是根据本发明实施例的策略路由处理装置的结构框图;3 is a structural block diagram of a policy routing processing apparatus according to an embodiment of the present invention;
图4是根据本发明实施例的策略路由处理装置的结构框图;4 is a structural block diagram of a policy routing processing apparatus according to an embodiment of the present invention;
图5是根据本发明实施例的报文转发装置的结构框图;FIG. 5 is a structural block diagram of a message forwarding apparatus according to an embodiment of the present invention; FIG.
图6是根据本发明实施例报文处理方法的流程图;6 is a flowchart of a message processing method according to an embodiment of the present invention;
图7是根据本发明实施例策略路由转发表更新流程图;7 is a flow chart of updating a policy routing forwarding table according to an embodiment of the present invention;
图8是根据本发明实施例策略路由切换到普通路由的流程图。8 is a flow diagram of policy routing handover to a common route in accordance with an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
下文中将结合附图对本文的实施例进行详细说明。需要说明的是,在不 冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。The embodiments herein will be described in detail below with reference to the accompanying drawings. It should be noted that, not In the case of a conflict, the features in the embodiments and the embodiments of the present application may be arbitrarily combined with each other.
在本实施例中提供了一种策略路由处理方法及装置,图1是根据本发明实施例的策略路由处理方法的流程图,如图1所示,该流程包括如下步骤S102和S104:In this embodiment, a method and a device for processing a policy route are provided. FIG. 1 is a flowchart of a method for processing a policy route according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps S102 and S104:
步骤S102,接口模块将检测到的接口失效信息上报协议层,其中,该接口失效信息用于指示该协议层将该策略路由转发表状态更新为无效;In step S102, the interface module reports the detected interface failure information to the protocol layer, where the interface failure information is used to indicate that the protocol layer updates the status of the policy routing forwarding table to be invalid.
步骤S104,所述接口模块将失效接口对应的策略路由转发表置于无效。Step S104: The interface module disables the policy routing forwarding table corresponding to the failed interface.
可选地,协议层下发接口ID,所述接口模块根据接口ID确定该策略路由转发表,将确定的该策略路由转发表置于无效。Optionally, the protocol layer sends an interface ID, and the interface module determines the policy routing forwarding table according to the interface ID, and places the determined routing routing table to be invalid.
可选地,接口ID可以通过查询映射表确定下一跳IP地址和虚拟专用网络ID,根据该接口ID、下一跳IP地址和虚拟专用网络ID查询散列表确定该策略路由转发表。Optionally, the interface ID may determine the next hop IP address and the virtual private network ID by using the query mapping table, and determine the policy routing forwarding table according to the interface ID, the next hop IP address, and the virtual private network ID query hash table.
可选地,接口模块可以通过更改策略路由转发表的有效标记位的方式将策略路由转发表置于无效。例如,在有效标记位为1的情况下,表示策略路由转发表有效,转发面可将报文按照策略路由转发表的路径转发;在有效标记位为0的情况下,表示策略路由转发表无效,转发面可将报文按照普通路由转发表的路径转发。Optionally, the interface module can invalidate the policy routing forwarding table by changing the valid flag bits of the policy routing forwarding table. For example, if the valid flag bit is 1, the policy routing forwarding table is valid, and the forwarding plane can forward the packet according to the path of the policy routing forwarding table. If the valid flag bit is 0, the policy routing forwarding table is invalid. The forwarding plane forwards the packet according to the path of the ordinary routing forwarding table.
通过上述步骤,解决了相关技术中转发表维护方式引起丢包的问题,减少了丢包的可能性。Through the above steps, the problem of packet loss caused by the maintenance method of the forwarding table in the related art is solved, and the possibility of packet loss is reduced.
图2是根据本发明实施例的报文转发方法的流程图,如图2所示,该流程包括如下步骤S202和S204:FIG. 2 is a flowchart of a packet forwarding method according to an embodiment of the present invention. As shown in FIG. 2, the process includes the following steps S202 and S204:
步骤S202,转发面判断是否获取到策略路由转发信息,其中,该策略路由转发信息包括有效标记位;Step S202: The forwarding plane determines whether the policy routing forwarding information is obtained, where the policy routing forwarding information includes a valid marking bit.
步骤S204,所述转发面在判断结果为获取到策略路由转发信息且该有效标记位为有效的情况下,将该报文按照策略路由转发表转发;在判断结果为获取到策略路由转发信息,但该有效标记位为无效的情况下,或者判断结果为未获取到策略路由转发信息的情况下,将该报文按照普通路由转发表转发。 Step S204, the forwarding plane forwards the packet according to the policy routing forwarding table when the judgment result is that the policy routing forwarding information is obtained, and the valid marking bit is valid; If the valid flag is invalid, or if the result of the determination is that the policy routing information is not obtained, the packet is forwarded according to the ordinary routing forwarding table.
可选地,可以通过判断报文关键词是否匹配访问控制列表ACL表判断是否获取到策略路由转发信息。例如,转发面解析报文获取报文关键词,通过报文关键词匹配访问控制列表ACL表,在成功匹配到ACL表的情况下,确定获取到该策略路由转发信息;在匹配失败(即未匹配到ACL表)的情况下,确定未获取到该策略路由转发信息。Optionally, determining whether the packet keyword matches the access control list ACL table determines whether the policy routing forwarding information is obtained. For example, the forwarding plane parses the packet to obtain the packet keyword, and matches the packet control keyword to the ACL table. If the ACL table is successfully matched, the routing information of the policy is obtained. If the ACL table is matched, it is determined that the policy routing forwarding information is not obtained.
另外,一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述方法。Additionally, a computer readable storage medium storing computer executable instructions for performing the above methods.
图3是根据本发明实施例的策略路由处理装置的结构框图,如图3所示,该装置包括:FIG. 3 is a structural block diagram of a policy routing processing apparatus according to an embodiment of the present invention. As shown in FIG. 3, the apparatus includes:
上报模块32,设置为将检测到的接口失效信息上报协议层,其中,该接口失效信息用于指示该协议层将该策略路由转发表状态更新为无效;The reporting module 32 is configured to report the detected interface failure information to the protocol layer, where the interface failure information is used to indicate that the protocol layer updates the policy routing forwarding table status to invalid.
处理模块34,设置为将失效接口对应的策略路由转发表置于无效。The processing module 34 is configured to invalidate the policy routing forwarding table corresponding to the failed interface.
其中,处理模块34将失效接口对应的策略路由转发表置于无效的方式有多种,可选地,处理模块34可以根据接口标识ID确定所述策略路由转发表,其中,所述接口ID为协议层下发的;将确定的所述策略路由转发表置于无效。可选地,处理模块34还可以通过更改策略路由转发表的有效标记位的方式将策略路由转发表置于无效。The processing module 34 may be configured to invalidate the policy routing forwarding table corresponding to the invalid interface. Optionally, the processing module 34 may determine the policy routing forwarding table according to the interface identifier ID, where the interface ID is Delivered by the protocol layer; the determined policy routing forwarding table is invalidated. Optionally, the processing module 34 may also invalidate the policy routing forwarding table by changing the valid flag bits of the policy routing forwarding table.
图4是根据一个可选实施例的策略路由处理装置的结构框图,如图4所示,该处理模块34包括:4 is a structural block diagram of a policy routing processing apparatus according to an alternative embodiment. As shown in FIG. 4, the processing module 34 includes:
确定单元42,设置为根据该接口ID、下一跳IP地址和虚拟专用网络ID确定该策略路由转发表,其中,该下一跳IP地址和虚拟专用网络ID是根据该接口ID查询映射表确定的。The determining unit 42 is configured to determine the policy routing forwarding table according to the interface ID, the next hop IP address, and the virtual private network ID, where the next hop IP address and the virtual private network ID are determined according to the interface ID query mapping table. of.
可选地,确定单元42根据该接口ID、下一跳IP地址和虚拟专用网络ID确定该策略路由转发表包括:根据接口ID、下一跳IP地址和虚拟专用网络ID查询散列表确定策略路由转发表。Optionally, determining, by the determining unit 42 according to the interface ID, the next hop IP address, and the virtual private network ID, the policy routing forwarding table includes: determining a policy routing according to the interface ID, the next hop IP address, and the virtual private network ID query hash table. Forwarding table.
图5是根据本发明实施例的报文转发装置的结构框图,如图5所示,该报文转发装置还包括:FIG. 5 is a structural block diagram of a message forwarding device according to an embodiment of the present invention. As shown in FIG. 5, the message forwarding device further includes:
判断模块52,设置为判断是否获取到策略路由转发信息,其中,该策略 路由转发信息包括有效标记位;The determining module 52 is configured to determine whether the policy routing forwarding information is obtained, where the policy The routing forwarding information includes a valid marking bit;
第一转发模块54,设置为在判断结果为获取到策略路由转发信息且该有效标记位为有效的情况下,将该报文按照策略路由转发表转发;The first forwarding module 54 is configured to forward the packet according to the policy routing forwarding table if the judgment result is that the policy routing forwarding information is obtained and the valid marking bit is valid;
第二转发模块56,设置为在判断结果为未获取到策略路由转发信息,或判断结果为获取到策略路由转发信息但该有效标记位为无效的情况下,将该报文按照普通路由转发表转发。The second forwarding module 56 is configured to, according to the judgment result, that the policy routing forwarding information is not obtained, or the judgment result is that the policy routing forwarding information is obtained but the valid marking bit is invalid, the packet is forwarded according to the ordinary routing table. Forward.
可选地,判断模块52判断是否获取到策略路由转发信息前,还可以通过报文关键词匹配访问控制列表ACL表,其中,所述报文关键词通过解析报文获取;在成功匹配到ACL表的情况下,确定获取到所述策略路由转发信息;在未匹配到ACL表的情况下,确定未获取到所述策略路由转发信息。Optionally, the determining module 52 determines whether the ACL is matched by the packet keyword, and the packet is matched by the ACL, and the ACL is successfully matched to the ACL. In the case of the table, it is determined that the policy routing forwarding information is obtained. If the ACL table is not matched, it is determined that the policy routing forwarding information is not obtained.
下面结合实际应用实例对本发明实施例进行详细说明。The embodiments of the present invention are described in detail below in conjunction with actual application examples.
本实施例提出了一种策略路由失效减少丢包的方法,通过控制面底层接口模块在接口down时先更新策略路由转发表的有效标记位,转发面查询普通路由表和策略路由转发表,由策略路由转发表的有效标记位是否有效,来判断报文转发路径的方式,实现网络中发生故障时策略路由快速切换到普通路由,减少丢包数量。This embodiment proposes a method for policy routing failure to reduce packet loss. The control layer bottom interface module first updates the valid flag bit of the policy routing forwarding table when the interface is down, and the forwarding plane queries the common routing table and the policy routing forwarding table. If the valid tag of the policy routing table is valid, the mode of the packet forwarding path is determined. When the fault occurs in the network, the policy route is quickly switched to the common route to reduce the number of packets lost.
图6是根据本发明实施例的报文处理方法的流程图,如图6所示,该方法包括以下步骤S602和S604:FIG. 6 is a flowchart of a packet processing method according to an embodiment of the present invention. As shown in FIG. 6, the method includes the following steps S602 and S604:
步骤S602,控制面底层接口模块检测到接口down,将接口状态上报时通知策略路由模块更改策略路由转发表为无效;Step S602, the interface underlying control module detects that the interface is down, and notifies the policy routing module to change the policy routing forwarding table when the interface status is reported;
步骤S604,在数据转发层面用报文中的目的IP地址查路由表和策略路由转发表,如果策略路由转发表有效标记位有效就按策略路由转发,如果策略路由转发表有效标记位无效,则按报文目的IP地址查路由表的结果转发;Step S604, in the data forwarding layer, use the destination IP address in the packet to check the routing table and the policy routing forwarding table. If the valid routing flag of the policy routing forwarding table is valid, the routing is forwarded according to the policy. If the valid routing label of the policy routing forwarding table is invalid, then Forward the result of checking the routing table according to the destination IP address of the packet;
步骤S606,接口模块将接口down信息上报接口协议层,再由接口协议通知策略路由协议下发更新策略路由转发表,使上层协议层与下层硬件层状态达到一致。In step S606, the interface module reports the interface down information to the interface protocol layer, and then the interface protocol notifies the policy routing protocol to deliver the update policy routing forwarding table, so that the upper protocol layer and the lower hardware layer state are consistent.
该上下层一致的步骤可以克服网络管理的困难。The consistent steps of the upper and lower layers can overcome the difficulties of network management.
图7是根据本发明实施例的策略路由转发表更新的流程图,如图7所示, 该方法包括以下步骤S702至S710:7 is a flowchart of a policy routing forwarding table update according to an embodiment of the present invention, as shown in FIG. The method includes the following steps S702 to S710:
步骤S702,策略路由模块根据策略路由协议下发的接口ID、下一跳IP地址、虚拟专用网络(又称VPN)ID三个关键字段申请策略路由转发表,并以这三个字段进行散列(又称hash)建立hash表,hash表内容是策略路由转发表;Step S702: The policy routing module applies the policy routing forwarding table according to the three key fields of the interface ID, the next hop IP address, and the virtual private network (also called VPN) ID delivered by the policy routing protocol, and performs the three fields. The column (also known as hash) establishes a hash table, and the content of the hash table is a policy routing forwarding table;
步骤S704,策略路由模块以策略路由接口ID为键值建立接口ID与下一跳IP地址、VPN ID的映射表;Step S704, the policy routing module establishes a mapping table of the interface ID, the next hop IP address, and the VPN ID by using the policy routing interface ID as a key value.
步骤S706,控制面底层的接口模块检测到链路失效down后,用接口ID查询映射表得到下一跳IP地址和VPN ID;Step S706, after detecting that the link failure is down, the interface module at the bottom of the control plane obtains the next hop IP address and the VPN ID by using the interface ID query mapping table.
步骤S708,用接口ID,下一跳IP地址和VPN ID进行hash查找hash表得到策略路由转发表;Step S708: Perform a hash search hash table with the interface ID, the next hop IP address, and the VPN ID to obtain a policy routing forwarding table.
步骤S710,修改策略路由转发表的有效标记位字段为0,即策略路由转发表无效。In step S710, the valid flag bit field of the modified policy routing forwarding table is 0, that is, the policy routing forwarding table is invalid.
图8为是根据本发明实施例的策略路由切换到普通路由的流程图,如图8所示,该方法包括以下步骤S802至S808:FIG. 8 is a flowchart of switching a policy route to a common route according to an embodiment of the present invention. As shown in FIG. 8, the method includes the following steps S802 to S808:
步骤S802,转发面“报文解析模块”提取报文关键字,若报文为IP报文,解析出源IP地址、目的IP地址,协议号等字段,若报文为UDP报文,解析出源IP地址,目的IP地址,IP协议号,源接口,目的接口;Step S802: The packet parsing module extracts the packet key. If the packet is an IP packet, the source IP address, the destination IP address, and the protocol number are parsed. If the packet is a UDP packet, the packet is parsed. Source IP address, destination IP address, IP protocol number, source interface, destination interface;
步骤S804,转发面“路由查找模块”用报文目的IP地址查路由表得到普通路由转发表信息并保存;Step S804, the forwarding plane "route lookup module" obtains the common route forwarding table information by using the destination IP address of the packet to check the routing table and saves the information;
步骤S806,转发面“ACL匹配模块”用报文关键字去匹配ACL表,若匹配成功,则取其结果表得到策略路由转发表,执行步骤S808;如果没有匹配的ACL表,则按上述普通路由转发表转发;Step S806, the forwarding face "ACL matching module" uses the message key to match the ACL table. If the matching succeeds, the result table is obtained to obtain the policy routing forwarding table, and step S808 is performed; if there is no matching ACL table, the ordinary Routing forwarding table forwarding;
步骤S808,查询策略路由转发表的有效标记位valID_flag,如果valID_flag=1,表示策略路由有效,按策略路由转发;如果valID_flag=0,则按普通路由转发。Step S808: Query the valid flag bit valID_flag of the policy routing forwarding table. If valID_flag=1, it indicates that the policy route is valid, and the route is forwarded according to the policy; if valID_flag=0, it is forwarded according to the common route.
图6-图8中所述的模块的功能由接口模块、上报模块、处理模块、判断模块、第一转发模块与第二转发模块中的一种或几种的组合实现。 The functions of the modules described in FIG. 6-8 are implemented by a combination of one or more of an interface module, a reporting module, a processing module, a judging module, a first forwarding module, and a second forwarding module.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序指令来实现其相应功能。本申请不限制于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware, such as a processor, which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, the modules/units in the above embodiments may be implemented in the form of hardware, for example, by implementing integrated functions to implement their respective functions, or may be implemented in the form of software function modules, for example, executing program instructions stored in the memory by the processor. To achieve its corresponding function. This application is not limited to any specific combination of hardware and software.
工业实用性Industrial applicability
本发明实施例,采用将检测到的接口失效信息上报协议层,将失效接口对应的策略路由转发表置于无效,解决了相关技术中转发表维护方式引起丢包的问题,减少了丢包的可能性。 In the embodiment of the present invention, the detected interface failure information is reported to the protocol layer, and the policy routing forwarding table corresponding to the failed interface is invalidated, which solves the problem that the forwarding table maintenance mode causes packet loss in the related technology, and reduces the possibility of packet loss. Sex.

Claims (12)

  1. 一种策略路由处理方法,包括:A policy routing processing method includes:
    将检测到的接口失效信息上报协议层,其中,所述接口失效信息用于指示所述协议层将所述策略路由转发表状态更新为无效;The detected interface failure information is reported to the protocol layer, where the interface failure information is used to instruct the protocol layer to update the policy routing forwarding table status to be invalid;
    将失效接口对应的策略路由转发表置于无效。The policy routing forwarding table corresponding to the failed interface is invalid.
  2. 根据权利要求1所述的方法,其中,所述将所述失效接口对应的策略路由转发表置于无效包括:The method of claim 1, wherein the invalidating the policy routing forwarding table corresponding to the failed interface comprises:
    根据接口标识ID确定所述策略路由转发表,其中,所述接口ID为协议层下发的;Determining, according to the interface identifier, the policy routing forwarding table, where the interface ID is delivered by the protocol layer;
    将确定的所述策略路由转发表置于无效。The determined policy routing forwarding table is placed invalid.
  3. 根据权利要求2所述的方法,其中,所述根据所述接口ID确定所述策略路由转发表包括:The method of claim 2, wherein the determining the policy routing forwarding table according to the interface ID comprises:
    根据所述接口ID、下一跳IP地址和虚拟专用网络ID确定所述策略路由转发表,其中,所述下一跳IP地址和虚拟专用网络ID是根据所述接口ID查询映射表确定的。Determining, according to the interface ID, the next hop IP address, and the virtual private network ID, the policy routing forwarding table, where the next hop IP address and the virtual private network ID are determined according to the interface ID query mapping table.
  4. 根据权利要求3所述的方法,其中,所述根据所述接口ID、所述下一跳IP地址和所述虚拟专用网络ID确定所述策略路由转发表包括:The method of claim 3, wherein the determining the policy routing forwarding table according to the interface ID, the next hop IP address, and the virtual private network ID comprises:
    根据所述接口ID、所述下一跳IP地址和所述虚拟专用网络ID查询散列表确定所述策略路由转发表。Determining the policy routing forwarding table according to the interface ID, the next hop IP address, and the virtual private network ID query hash table.
  5. 根据权利要求1至4任一项所述的方法,其中,所述将失效接口对应的策略路由转发表置于无效包括:The method according to any one of claims 1 to 4, wherein the invalidating the policy routing forwarding table corresponding to the failed interface includes:
    通过更改策略路由转发表的有效标记位的方式将策略路由转发表置于无效。The policy routing forwarding table is invalidated by changing the valid flag bits of the policy routing forwarding table.
  6. 一种报文转发方法,包括:A packet forwarding method includes:
    判断是否获取到策略路由转发信息,其中,所述策略路由转发信息包括有效标记位; Determining whether the policy routing forwarding information is obtained, where the policy routing forwarding information includes a valid marking bit;
    在判断结果为获取到策略路由转发信息,并且所述有效标记位为有效的情况下,将所述报文按照策略路由转发表转发;If the result of the judgment is that the policy routing forwarding information is obtained, and the valid flag bit is valid, the packet is forwarded according to the policy routing forwarding table;
    在判断结果为获取到策略路由转发信息,但所述有效标记位为无效的情况下,将所述报文按照普通路由转发表转发;If the result of the judgment is that the policy routing forwarding information is obtained, but the valid flag bit is invalid, the packet is forwarded according to the ordinary routing forwarding table;
    在判断结果为未获取到策略路由转发信息的情况下,将所述报文按照普通路由转发表转发。If the result of the judgment is that the policy routing forwarding information is not obtained, the packet is forwarded according to the ordinary routing forwarding table.
  7. 根据权利要求6所述的方法,其中,所述判断是否获取到策略路由转发信息前,还包括:The method according to claim 6, wherein before the determining whether the policy routing forwarding information is obtained, the method further includes:
    通过报文关键词匹配访问控制列表ACL表,其中,所述报文关键词通过解析报文获取;The ACL table is matched by the packet keyword, where the packet keyword is obtained by parsing the packet;
    在成功匹配到ACL表的情况下,确定获取到所述策略路由转发信息;If the ACL table is successfully matched, determining that the policy routing forwarding information is obtained;
    在未匹配到ACL表的情况下,确定未获取到所述策略路由转发信息。If the ACL table is not matched, it is determined that the policy routing forwarding information is not obtained.
  8. 一种策略路由处理装置,包括:A policy routing processing device includes:
    上报模块,设置为将检测到的接口失效信息上报协议层,其中,所述接口失效信息用于指示所述协议层将所述策略路由转发表状态更新为无效;The reporting module is configured to report the detected interface failure information to the protocol layer, where the interface failure information is used to instruct the protocol layer to update the status of the policy routing forwarding table to be invalid;
    处理模块,设置为将失效接口对应的策略路由转发表置于无效。The processing module is configured to invalidate the policy routing forwarding table corresponding to the failed interface.
  9. 根据权利要求8所述的装置,其中,所述处理模块包括:The apparatus of claim 8 wherein said processing module comprises:
    确定单元,设置为根据所述接口ID、下一跳IP地址和虚拟专用网络ID确定所述策略路由转发表,其中,所述下一跳IP地址和虚拟专用网络ID是根据所述接口ID查询映射表确定的。a determining unit, configured to determine the policy routing forwarding table according to the interface ID, a next hop IP address, and a virtual private network ID, where the next hop IP address and the virtual private network ID are queried according to the interface ID The mapping table is determined.
  10. 一种报文转发装置,包括:A message forwarding device includes:
    判断模块,设置为判断是否获取到策略路由转发信息,其中,所述策略路由转发信息包括有效标记位;The determining module is configured to determine whether the policy routing forwarding information is obtained, where the policy routing forwarding information includes a valid marking bit;
    第一转发模块,设置为在所述判断模块判断获取到策略路由转发信息,且所述有效标记位为有效的情况下,将所述报文按照策略路由转发表转发;The first forwarding module is configured to: when the determining module determines that the policy routing forwarding information is obtained, and the valid marking bit is valid, forwarding the packet according to the policy routing forwarding table;
    第二转发模块,设置为在所述判断模块判断未获取到策略路由转发信息,或所述判断模块判断获取到策略路由转发信息但所述有效标记位为无效的情 况下,将所述报文按照普通路由转发表转发。a second forwarding module, configured to determine, in the determining module, that the policy routing forwarding information is not obtained, or the determining module determines that the policy routing forwarding information is obtained but the valid marking bit is invalid The packet is forwarded according to the ordinary routing forwarding table.
  11. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行如下操作:A computer readable storage medium storing computer executable instructions for performing the following operations:
    S1、将检测到的接口失效信息上报协议层,其中,所述接口失效信息用于指示所述协议层将所述策略路由转发表状态更新为无效;S1, the detected interface failure information is reported to the protocol layer, where the interface failure information is used to indicate that the protocol layer updates the status of the policy routing forwarding table to be invalid;
    S2、将失效接口对应的策略路由转发表置于无效。S2: The policy routing forwarding table corresponding to the failed interface is invalid.
  12. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行如下操作:A computer readable storage medium storing computer executable instructions for performing the following operations:
    S1、判断是否获取到策略路由转发信息,其中,所述策略路由转发信息包括有效标记位;S1, determining whether the policy routing forwarding information is obtained, where the policy routing forwarding information includes a valid marking bit;
    S2、在判断结果为获取到策略路由转发信息,并且所述有效标记位为有效的情况下,将所述报文按照策略路由转发表转发;S2. If the result of the judgment is that the policy routing forwarding information is obtained, and the valid flag bit is valid, the packet is forwarded according to the policy routing forwarding table.
    S3、在判断结果为获取到策略路由转发信息,但所述有效标记位为无效的情况下,将所述报文按照普通路由转发表转发;S3. If the result of the judgment is that the policy routing forwarding information is obtained, but the valid marking bit is invalid, the packet is forwarded according to the ordinary routing forwarding table.
    S4、在判断结果为未获取到策略路由转发信息的情况下,将所述报文按照普通路由转发表转发。 S4. If the result of the judgment is that the policy routing forwarding information is not obtained, the packet is forwarded according to the ordinary routing forwarding table.
PCT/CN2016/087114 2016-01-21 2016-06-24 Method of processing policy route, method of forwarding packet, and device WO2017124696A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610040806.2A CN106992933A (en) 2016-01-21 2016-01-21 Policybased routing processing, message forwarding method and device
CN201610040806.2 2016-01-21

Publications (1)

Publication Number Publication Date
WO2017124696A1 true WO2017124696A1 (en) 2017-07-27

Family

ID=59362040

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/087114 WO2017124696A1 (en) 2016-01-21 2016-06-24 Method of processing policy route, method of forwarding packet, and device

Country Status (2)

Country Link
CN (1) CN106992933A (en)
WO (1) WO2017124696A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112565091A (en) * 2020-11-18 2021-03-26 普联国际有限公司 Message forwarding method and device, storage medium and terminal equipment
CN113992580A (en) * 2021-09-23 2022-01-28 新华三信息安全技术有限公司 Method and equipment for modifying policy routing
CN115051970A (en) * 2022-05-13 2022-09-13 中国电信股份有限公司 Method and device for controlling user to be online, forwarding plane network element and medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110035424B (en) * 2018-01-12 2021-10-19 华为技术有限公司 Communication method, device and system related to policy
CN109067744B (en) * 2018-08-08 2021-11-09 新华三技术有限公司合肥分公司 ACL rule processing method, device and communication equipment
CN109462589B (en) * 2018-11-13 2021-08-24 北京天融信网络安全技术有限公司 Method, device and equipment for controlling network access of application program
CN111147376B (en) * 2019-12-30 2022-04-26 杭州迪普科技股份有限公司 Route updating method, device, equipment and medium
CN116232997B (en) * 2023-02-10 2024-04-09 中国联合网络通信集团有限公司 Data forwarding method, device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744563A (en) * 2004-08-31 2006-03-08 杭州华为三康技术有限公司 Method for realizing strate gic route in Ethernet switch
CN103546380A (en) * 2013-11-05 2014-01-29 迈普通信技术股份有限公司 Message forwarding method and device based on strategy routing
CN104486229A (en) * 2014-12-24 2015-04-01 迈普通信技术股份有限公司 Method and equipment for realizing VPN message forwarding

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744563A (en) * 2004-08-31 2006-03-08 杭州华为三康技术有限公司 Method for realizing strate gic route in Ethernet switch
CN103546380A (en) * 2013-11-05 2014-01-29 迈普通信技术股份有限公司 Message forwarding method and device based on strategy routing
CN104486229A (en) * 2014-12-24 2015-04-01 迈普通信技术股份有限公司 Method and equipment for realizing VPN message forwarding

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112565091A (en) * 2020-11-18 2021-03-26 普联国际有限公司 Message forwarding method and device, storage medium and terminal equipment
CN113992580A (en) * 2021-09-23 2022-01-28 新华三信息安全技术有限公司 Method and equipment for modifying policy routing
CN115051970A (en) * 2022-05-13 2022-09-13 中国电信股份有限公司 Method and device for controlling user to be online, forwarding plane network element and medium

Also Published As

Publication number Publication date
CN106992933A (en) 2017-07-28

Similar Documents

Publication Publication Date Title
WO2017124696A1 (en) Method of processing policy route, method of forwarding packet, and device
US10547538B2 (en) Packet forwarding method and apparatus
US11050667B2 (en) Packet forwarding method, device, switch, apparatus, and storage medium
US8897134B2 (en) Notifying a controller of a change to a packet forwarding configuration of a network element over a communication channel
US9935980B2 (en) Adding firewall security policy dynamically to support group VPN
US20150058470A1 (en) System and method for sharing vxlan table information with a network controller
US20120036391A1 (en) Method, system, and apparatus for network device to access packet switched network
US9577874B2 (en) Method and apparatus for IP/MPLS fast reroute
US9716687B2 (en) Distributed gateways for overlay networks
US20160330167A1 (en) Arp Implementation Method, Switch Device, and Control Device
US9712649B2 (en) CCN fragmentation gateway
US20170005921A1 (en) Technique for network service availability
CA3104756C (en) Loop avoidance communications method, device, and system
WO2018050120A1 (en) Failover between active pseudo wire and standby pseudo wire
CA3108103A1 (en) Communication method, communications device, and communications system
JP6299745B2 (en) COMMUNICATION SYSTEM, CONTROL DEVICE, COMMUNICATION METHOD, AND PROGRAM
WO2019196914A1 (en) Method for discovering forwarding path, and related device thereof
US20200322276A1 (en) Egress maximum transmission unit (mtu) enforcement
WO2015117377A1 (en) Network connectivity verification method and device, and computer-readable storage medium
WO2021000619A1 (en) Method and device for packet forwarding
US20130230053A1 (en) System and Method for Facilitating Communication
WO2017054535A1 (en) Traffic forwarding method and apparatus
US20170012869A1 (en) Forwarding table management in computer networks
WO2016183732A1 (en) Data packet forwarding method and network device
WO2020134933A1 (en) Information processing method and device, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16885958

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16885958

Country of ref document: EP

Kind code of ref document: A1