[go: up one dir, main page]

CN110661721B - Method and device for preventing packet attacks - Google Patents

Method and device for preventing packet attacks Download PDF

Info

Publication number
CN110661721B
CN110661721B CN201810712659.8A CN201810712659A CN110661721B CN 110661721 B CN110661721 B CN 110661721B CN 201810712659 A CN201810712659 A CN 201810712659A CN 110661721 B CN110661721 B CN 110661721B
Authority
CN
China
Prior art keywords
session
car
rate
protocol
packet
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.)
Active
Application number
CN201810712659.8A
Other languages
Chinese (zh)
Other versions
CN110661721A (en
Inventor
常静
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Huawei Digital Technologies Co Ltd
Original Assignee
Beijing Huawei Digital Technologies Co Ltd
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 Beijing Huawei Digital Technologies Co Ltd filed Critical Beijing Huawei Digital Technologies Co Ltd
Priority to CN201810712659.8A priority Critical patent/CN110661721B/en
Publication of CN110661721A publication Critical patent/CN110661721A/en
Application granted granted Critical
Publication of CN110661721B publication Critical patent/CN110661721B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/20Traffic policing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/20Network architectures or network communication protocols for network security for managing network security; network security policies in general
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本申请实施例公开了一种报文防攻击方法和装置,涉及通信技术领域,解决了现有技术中某个已经建立的会话报文发生攻击时,其他已经建立的会话会受攻击影响导致断链的问题。具体方案为:转发面设备接收协议报文;根据协议报文中携带的会话特征,若确定协议报文属于第一会话,对协议报文进行会话承诺访问速率CAR限速;其中,第一会话为已建立的任意一个会话;已建立的会话中每个会话分别对应一个会话CAR限速,且不同会话之间的会话CAR限速隔离;对会话CAR限速后的协议报文进行会话簇CAR限速;会话簇CAR限速对应至少一个已建立的会话;将会话簇CAR限速后的协议报文发送至控制面设备。

Figure 201810712659

The embodiments of the present application disclose a packet attack prevention method and device, which relate to the field of communication technologies, and solve the problem that when a packet of an established session in the prior art is attacked, other established sessions will be affected by the attack and cause interruptions. chain problem. The specific solution is as follows: the forwarding plane device receives the protocol packet; according to the session characteristics carried in the protocol packet, if it is determined that the protocol packet belongs to the first session, the session commitment access rate CAR is performed on the protocol packet; wherein, the first session Any session that has been established; each session in the established session corresponds to a session CAR rate limit, and the session CAR rate limit between different sessions is isolated; the session cluster CAR is performed on the protocol packets after the session CAR rate limit. Rate limit; the session cluster CAR rate limit corresponds to at least one established session; the protocol packets after the session cluster CAR rate limit are sent to the control plane device.

Figure 201810712659

Description

一种报文防攻击方法和装置Method and device for preventing packet attacks

技术领域technical field

本申请实施例涉及通信技术领域,尤其涉及一种报文防攻击方法和装置。The embodiments of the present application relate to the field of communications technologies, and in particular, to a method and device for preventing packet attacks.

背景技术Background technique

路由器一般采用控制面和转发面分离的系统架构,其中,控制面的中央处理器(Central Processing Unit,CPU)处理报文的能力相对于转发面的网络处理器(NetworkProcessor,NP)处理报文的能力较弱,一旦发生路由协议本地报文攻击,会导致CPU处理繁忙,路由协议会话震荡,进而造成整个网络不稳定。一般情况下,路由协议报文从转发面上送到控制面的过程中都会采取承诺访问速率(Committed Access Rate,CAR)限速策略,保证上送到CPU的报文流量在CPU处理能力范围内。A router generally adopts a system architecture in which the control plane and the forwarding plane are separated, in which the central processing unit (CPU) of the control plane has the capability to process packets relative to the network processor (NP) of the forwarding plane to process packets. The capability is weak. Once the local packet attack of the routing protocol occurs, the CPU will be busy, and the session of the routing protocol will be flapped, thereby causing the entire network to be unstable. In general, when routing protocol packets are sent from the forwarding plane to the control plane, the Committed Access Rate (CAR) rate limit policy is adopted to ensure that the traffic of the packets sent to the CPU is within the processing capacity of the CPU. .

现有的一种防报文攻击方法是通过将报文分为已建立会话的报文和未建立会话的报文,对已建立会话的报文,提取会话特征下发ACL规则。路由器接收到协议报文时,会查找和比较已下发的ACL规则,命中ACL规则的报文通过白名单CAR限速上送CPU。未建立的会话报文无法匹配ACL规则,通过协议普通CAR限速上送CPU。白名单CAR和协议普通CAR之间限速隔离,白名单CAR比协议普通CAR拥有更大的带宽,和更高的上送CPU的优先级。该方案虽然保证了已建立会话的报文不受未建立会话的报文攻击影响,但是由于已建立的会话报文仍然共用一个白名单CAR通道,因此如果有已建立会话的报文发生带宽攻击,其他已建立的会话报文会受攻击影响,导致会话断链。An existing method for preventing packet attacks is to divide packets into packets with established sessions and packets without sessions, and extract session characteristics for packets with established sessions and issue ACL rules. When the router receives protocol packets, it searches and compares the delivered ACL rules, and the packets matching the ACL rules are sent to the CPU through the whitelist CAR to limit the rate. Unestablished session packets cannot match ACL rules, and are sent to the CPU through the common CAR rate limit protocol. Speed limit isolation between whitelist CAR and protocol common CAR. Whitelist CAR has larger bandwidth and higher priority for sending to CPU than protocol common CAR. Although this solution ensures that the packets of established sessions are not affected by the attacks of packets without established sessions, since the packets of established sessions still share a whitelisted CAR channel, if there are packets of established sessions, bandwidth attacks will occur. , other established session packets will be affected by the attack, resulting in session disconnection.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供一种报文防攻击方法和装置,能够避免某个已经建立的会话报文发生攻击时,其他已经建立的会话会受攻击影响导致断链情况发生。The embodiments of the present application provide a packet attack prevention method and device, which can avoid that when a packet of an established session is attacked, other established sessions will be affected by the attack, resulting in a chain disconnection.

为达到上述目的,本申请实施例采用如下技术方案:In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:

本申请实施例的第一方面,提供一种报文防攻击方法,该方法包括:首先,转发面设备接收协议报文;然后,根据该协议报文中携带的会话特征,若确定该协议报文属于第一会话,对该协议报文进行会话承诺访问速率CAR限速;其中,该第一会话为已建立的任意一个会话;已建立的会话中每个会话分别对应一个会话CAR限速,且不同会话之间的会话CAR限速隔离;再对会话CAR限速后的协议报文进行会话簇CAR限速;该会话簇CAR限速对应至少一个已建立的会话;最后,将会话簇CAR限速后的协议报文发送至控制面设备。基于本方案,通过对已建立会话的协议报文进行两级限速,能够降低已经建立的会话报文之间攻击影响,避免某个已经建立的会话发生攻击时,其他已经建立的会话会受攻击影响导致断链情况发生。A first aspect of the embodiments of the present application provides a method for preventing packet attacks. The method includes: first, a forwarding plane device receives a protocol packet; then, according to a session feature carried in the protocol packet, if it is determined that the protocol packet The message belongs to the first session, and the session commitment access rate CAR rate limit is performed on the protocol packet; wherein, the first session is any session that has been established; each session in the established session corresponds to a session CAR rate limit, respectively. And the session CAR rate limit between different sessions is isolated; then the session cluster CAR rate limit is performed on the protocol packets after the session CAR rate limit; the session cluster CAR rate limit corresponds to at least one established session; finally, the session cluster CAR rate limit is The rate-limited protocol packets are sent to the control plane device. Based on this solution, by performing two-level rate limiting on the protocol packets of established sessions, the impact of attacks between packets of established sessions can be reduced, and when an attack occurs on an established session, other established sessions will be affected by the attack. The impact of the attack causes a broken link to occur.

结合第一方面,在第一种可能的实现方式中,上述会话簇CAR限速对应至少一个已建立的会话,包括:该会话簇CAR限速对应已建立的会话中同一路由协议的会话或者不同路由协议的会话。具体的,若已建立的会话为同一路由协议的会话,会话簇CAR限速可以对应所有已建立的同一路由协议的会话;若已建立的会话为不同路由协议的会话,会话簇CAR限速可以对应所有已建立的不同路由协议的会话,或者,每个会话簇CAR限速可以对应已建立的不同路由协议的会话中同一路由协议的会话。基于本方案,能够将同一路由协议的已建立会话作为一个会话簇进行会话簇CAR限速,也可以将不同路由协议的已建立会话作为一个会话簇进行会话簇CAR限速。In combination with the first aspect, in a first possible implementation manner, the above-mentioned session cluster CAR rate limit corresponds to at least one established session, including: the session cluster CAR rate limit corresponds to a session of the same routing protocol or a different session in the established session. routing protocol session. Specifically, if the established sessions are sessions of the same routing protocol, the session cluster CAR rate limit can correspond to all established sessions of the same routing protocol; if the established sessions are sessions of different routing protocols, the session cluster CAR rate limit can be Corresponds to all established sessions of different routing protocols, or each session cluster CAR rate limit may correspond to sessions of the same routing protocol among established sessions of different routing protocols. Based on this solution, the established sessions of the same routing protocol can be used as a session cluster for session cluster CAR rate limiting, and the established sessions of different routing protocols can be regarded as a session cluster for session cluster CAR rate limitation.

结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,上述会话CAR限速采用双速率三色双桶trTCM、色盲模式,上述会话簇CAR限速采用单速率三色双桶srTCM、色敏模式;其中,trTCM的四个流量参数分别为峰值信息速率PIR、峰值突发尺寸PBS、承诺信息速率CIR、承诺突发尺寸CBS;srTCM的三个流量参数分别为承诺信息速率CIR、承诺突发尺寸CBS和超额突发尺寸EBS。基于本方案,能够对协议报文进行两级限速,使得已经建立的会话发生攻击时,其他已经建立的会话会受攻击影响导致断链情况发生。Combining the first aspect and the above possible implementation manners, in another possible implementation manner, the session CAR speed limit adopts a two-rate three-color double-bucket trTCM and colorblind mode, and the session cluster CAR speed limit adopts a single-rate three-color double-color mode. Bucket srTCM, color-sensitive mode; among them, the four traffic parameters of trTCM are peak information rate PIR, peak burst size PBS, committed information rate CIR, committed burst size CBS; three traffic parameters of srTCM are committed information rate CIR, Committed Burst Size CBS and Excess Burst Size EBS. Based on this solution, two-level rate limiting can be implemented for protocol packets, so that when an attack occurs on an established session, other established sessions will be affected by the attack, resulting in a broken link.

结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,若上述会话簇CAR限速对应已建立的全部会话,该会话簇CAR限速的CIR大于或等于全部会话CAR限速的CIR之和,小于或等于控制面设备的处理能力;或者,若上述会话簇CAR限速中的每个会话簇CAR限速对应已建立的会话中同一路由协议的会话,该每个会话簇CAR限速的CIR大于或等于同一路由协议的会话中每个会话对应的会话CAR限速的CIR之和,每个会话簇CAR限速的CIR之和小于或等于所述控制面设备的处理能力。基于本方案,能够确保会话CAR限速后被标记为绿色的协议报文在进行会话簇CAR限速时,全部在C桶中取到令牌,正常通过,从而不会发生断链。Combining the first aspect and the above possible implementation manners, in another possible implementation manner, if the above session cluster CAR rate limit corresponds to all established sessions, the session cluster CAR rate limit CIR is greater than or equal to the all session CAR limit. The sum of the CIRs of the speed limit is less than or equal to the processing capability of the control plane device; or, if each session cluster CAR speed limit in the above session cluster CAR speed limit corresponds to the session of the same routing protocol in the established session, each session The rate-limited CIR of the cluster CAR is greater than or equal to the sum of the CIRs of the session CAR rate-limited corresponding to each session in the sessions of the same routing protocol, and the sum of the CIRs of the cluster CAR rate-limited of each session is less than or equal to the processing of the control plane device ability. Based on this solution, it can be ensured that protocol packets marked green after the session CAR rate limit are all received tokens in the C bucket when the session cluster CAR rate is limited, and pass through normally, so that no chain disconnection occurs.

结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,上述会话簇CAR限速的CIR大于或等于上述会话CAR限速的PIR;上述会话簇CAR限速的CBS大于或等于所述会话CAR限速的PBS。基于本方案,能够在只有一个已建立会话时,避免会话CAR限速时未被丢弃的协议报文,在会话簇CAR限速时被丢弃的情况发生。Combining the first aspect and the above possible implementation manner, in another possible implementation manner, the CIR of the above-mentioned session cluster CAR rate-limiting is greater than or equal to the PIR of the above-mentioned session CAR rate-limiting; the CBS of the above-mentioned session cluster CAR rate-limiting is greater than or equal to PBS equal to the session CAR rate limit. Based on this solution, when only one session has been established, the protocol packets that are not discarded when the session CAR rate is limited can be prevented from being discarded when the session cluster CAR rate is limited.

结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,上述转发面设备接收协议报文之前,报文防攻击方法还包括:转发面设备提取已建立会话的报文的会话特征,下发访问控制列表ACL规则;上述确定该协议报文属于第一会话,包括:转发面设备根据该协议报文携带的会话特征确定该协议报文是否命中所述ACL规则;若该协议报文命中该ACL规则,确定该协议报文属于第一会话。基于本方案,能够根据已建立会话的ACL规则确定接收到的协议报文是否属于已建立会话。Combining the first aspect and the above possible implementation manner, in another possible implementation manner, before the forwarding plane device receives the protocol message, the packet attack prevention method further includes: the forwarding plane device extracts the message of the established session. Session characteristics, and issue access control list ACL rules; the above-mentioned determining that the protocol packet belongs to the first session includes: the forwarding plane device determines whether the protocol packet hits the ACL rule according to the session characteristics carried by the protocol packet; if the protocol packet matches the ACL rule; If the protocol packet hits the ACL rule, it is determined that the protocol packet belongs to the first session. Based on this solution, it can be determined whether the received protocol packet belongs to the established session according to the ACL rule of the established session.

本申请实施例的第二方面,提供一种报文防攻击装置,该装置包括:接收单元,用于接收协议报文;处理单元,用于根据上述接收单元接收的协议报文中携带的会话特征,确定该协议报文是否属于第一会话;若该协议报文属于第一会话,上述处理单元还用于对该协议报文进行会话承诺访问速率CAR限速;其中,该第一会话为已建立的任意一个会话;已建立的会话中每个会话分别对应一个会话CAR限速,且不同会话之间的会话CAR限速隔离;上述处理单元,还用于对会话CAR限速后的协议报文进行会话簇CAR限速;该会话簇CAR限速对应至少一个已建立的会话;发送单元,用于将会话簇CAR限速后的协议报文发送至控制面设备。In a second aspect of the embodiments of the present application, there is provided a packet attack prevention device, the device includes: a receiving unit, configured to receive a protocol packet; feature, to determine whether the protocol packet belongs to the first session; if the protocol packet belongs to the first session, the processing unit is further configured to perform session commitment access rate CAR rate limit on the protocol packet; wherein, the first session is Any session that has been established; each session in the established session corresponds to a session CAR rate limit, and the session CAR rate limit between different sessions is isolated; the above processing unit is also used for the protocol after the session CAR rate limit. The session cluster CAR rate limit is applied to packets; the session cluster CAR rate limit corresponds to at least one established session; the sending unit is used to send the protocol packets after the session cluster CAR rate limit to the control plane device.

结合第二方面,在第一种可能的实现方式中,上述会话簇CAR限速对应至少一个已建立的会话,包括:上述会话簇CAR限速对应已建立的会话中同一路由协议的会话或者不同路由协议的会话。In combination with the second aspect, in a first possible implementation manner, the session cluster CAR rate limit corresponds to at least one established session, including: the session cluster CAR rate limit corresponds to a session of the same routing protocol or a different session in the established session. routing protocol session.

结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,上述会话CAR限速采用双速率三色双桶trTCM、色盲模式,上述会话簇CAR限速采用单速率三色双桶srTCM、色敏模式;其中,trTCM的四个流量参数分别为峰值信息速率PIR、峰值突发尺寸PBS、承诺信息速率CIR、承诺突发尺寸CBS;srTCM的三个流量参数分别为承诺信息速率CIR、承诺突发尺寸CBS和超额突发尺寸EBS。Combining the second aspect and the above possible implementation manners, in another possible implementation manner, the session CAR speed limit adopts a dual-rate three-color dual-bucket trTCM and color blind mode, and the session cluster CAR speed limit adopts a single-rate three-color dual-color mode. Bucket srTCM, color-sensitive mode; among them, the four traffic parameters of trTCM are peak information rate PIR, peak burst size PBS, committed information rate CIR, committed burst size CBS; three traffic parameters of srTCM are committed information rate CIR, Committed Burst Size CBS and Excess Burst Size EBS.

结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,若上述会话簇CAR限速对应已建立的全部会话,该会话簇CAR限速的CIR大于或等于全部会话CAR限速的CIR之和,小于或等于控制面设备的处理能力;或者,若上述会话簇CAR限速中的每个会话簇CAR限速对应已建立的会话中同一路由协议的会话,该每个会话簇CAR限速的CIR大于或等于同一路由协议的会话中每个会话对应的会话CAR限速的CIR之和,每个会话簇CAR限速的CIR之和小于或等于所述控制面设备的处理能力。Combining the second aspect and the above possible implementation manner, in another possible implementation manner, if the above session cluster CAR rate limit corresponds to all established sessions, the session cluster CAR rate limit CIR is greater than or equal to the all session CAR limit. The sum of the CIRs of the speed limit is less than or equal to the processing capability of the control plane device; or, if each session cluster CAR speed limit in the above session cluster CAR speed limit corresponds to the session of the same routing protocol in the established session, each session The rate-limited CIR of the cluster CAR is greater than or equal to the sum of the CIRs of the session CAR rate-limited corresponding to each session in the sessions of the same routing protocol, and the sum of the CIRs of the cluster CAR rate-limited of each session is less than or equal to the processing of the control plane device ability.

结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,上述会话簇CAR限速的CIR大于或等于上述会话CAR限速的PIR;上述会话簇CAR限速的CBS大于或等于所述会话CAR限速的PBS。Combining the second aspect and the above possible implementation manner, in another possible implementation manner, the CIR of the session cluster CAR rate-limiting is greater than or equal to the PIR of the session CAR rate-limiting; the CBS of the session cluster CAR rate-limiting is greater than or equal to PBS equal to the session CAR rate limit.

结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,上述处理单元,还用于提取已建立会话的报文的会话特征,下发访问控制列表ACL规则;、上述处理单元,具体用于根据协议报文携带的会话特征确定该协议报文是否命中上述ACL规则;若该协议报文命中上述ACL规则,上述处理单元还用于确定该协议报文属于上述第一会话。In combination with the second aspect and the above possible implementation manner, in another possible implementation manner, the above processing unit is also used to extract the session feature of the message of the established session, and issue the ACL rule of the access control list; the above processing unit, which is specifically configured to determine whether the protocol packet hits the above-mentioned ACL rule according to the session characteristics carried in the protocol packet; if the protocol packet hits the above-mentioned ACL rule, the above-mentioned processing unit is further configured to determine that the protocol packet belongs to the above-mentioned first session. .

上述第二方面以及第二方面的各种实现方式的效果描述可以参考第一方面和第一方面的各种实现方式的相应效果的描述,在此不再赘述。For the description of the effects of the second aspect and various implementations of the second aspect, reference may be made to the description of the corresponding effects of the first aspect and various implementations of the first aspect, and details are not repeated here.

本申请实施例的第三方面,提供一种计算机存储介质,所述计算机存储介质中存储有计算机程序代码,当所述计算机程序代码在处理器上运行时,使得所述处理器执行第一方面或第一方面的可能的实现方式中任一项所述的报文防攻击方法。In a third aspect of the embodiments of the present application, a computer storage medium is provided, where computer program codes are stored in the computer storage medium, and when the computer program codes are executed on a processor, the processor is caused to execute the first aspect Or the packet attack defense method described in any one of the possible implementation manners of the first aspect.

本申请实施例的第四方面,提供一种通信装置,应用于转发面设备中,该通信装置包括处理器,该处理器用于与存储器耦合,并读取存储器中的指令,并根据所述指令执行上述第一方面所述的报文防攻击方法。In a fourth aspect of the embodiments of the present application, a communication apparatus is provided, which is applied to a forwarding plane device. The communication apparatus includes a processor, and the processor is configured to be coupled to a memory, read instructions in the memory, and execute instructions according to the instructions. Perform the packet attack defense method described in the first aspect above.

本申请实施例的第五方面,提供了一种计算机程序产品,该程序产品储存有上述处理器执行的计算机软件指令,该计算机软件指令包含用于执行上述方面所述方案的程序。A fifth aspect of the embodiments of the present application provides a computer program product, where the program product stores computer software instructions executed by the processor, and the computer software instructions include a program for executing the solution described in the above aspect.

本申请实施例的第六方面,提供了一种装置,该装置以芯片的产品形态存在,该装置的结构中包括处理器和存储器,该存储器用于与处理器耦合,保存该装置必要的程序指令和数据,该处理器用于执行存储器中存储的程序指令,使得该装置执行上述方法中报文防攻击装置的功能。A sixth aspect of the embodiments of the present application provides a device, the device exists in the form of a chip product, and the structure of the device includes a processor and a memory, and the memory is used for coupling with the processor and storing necessary programs of the device Instructions and data, the processor is used to execute the program instructions stored in the memory, so that the device executes the function of the device for preventing message attacks in the above method.

附图说明Description of drawings

图1为本申请实施例提供的一种路由器的结构示意图;1 is a schematic structural diagram of a router according to an embodiment of the present application;

图2为本申请实施例提供的一种报文防攻击方法的流程图;FIG. 2 is a flowchart of a method for preventing packet attacks according to an embodiment of the present application;

图3为本申请实施例提供的一种路由器间建立会话的结构示意图;3 is a schematic structural diagram of establishing a session between routers according to an embodiment of the present application;

图4为本申请实施例提供的另一种路由器间建立会话的结构示意图;FIG. 4 is another schematic structural diagram of establishing a session between routers according to an embodiment of the present application;

图5为本申请实施例提供的一种报文防攻击方法的流程图;FIG. 5 is a flowchart of a method for preventing packet attacks according to an embodiment of the present application;

图6为本申请实施例提供的另一种报文防攻击方法的流程图;FIG. 6 is a flowchart of another packet attack defense method provided by an embodiment of the present application;

图7为本申请实施例提供的另一种报文防攻击方法的流程图;FIG. 7 is a flowchart of another packet attack prevention method provided by an embodiment of the present application;

图8为本申请实施例提供的另一种报文防攻击方法的流程图;FIG. 8 is a flowchart of another packet attack prevention method provided by an embodiment of the present application;

图9为本申请实施例提供的一种报文防攻击装置的组成示意图;FIG. 9 is a schematic diagram of the composition of a device for preventing packet attacks according to an embodiment of the present application;

图10为本申请实施例提供的另一种报文防攻击装置的组成示意图。FIG. 10 is a schematic diagram of the composition of another device for preventing packet attacks according to an embodiment of the present application.

具体实施方式Detailed ways

首先,对本申请实施例中涉及的部分名词进行解释说明:First, some terms involved in the embodiments of the present application are explained:

1、承诺访问速率CAR1. Committed access rate CAR

CAR作用于网络的入口处,用于对进入网络的某一类报文的流量进行控制,允许符合流量规定的报文进入网络。CAR可以保证符合流量规定的报文进入网络,对于超出流量规定的报文,则根据当前网络资源的使用情况可以选择直接丢弃,或是重标记(即降低这部分报文的优先级)后继续转发,当发生拥塞时,这部分报文会被优先丢弃。CAR acts at the entrance of the network and is used to control the traffic of a certain type of packets entering the network, allowing packets that meet the traffic regulations to enter the network. CAR can ensure that the packets that meet the traffic regulations enter the network. For the packets that exceed the traffic regulations, according to the current network resource usage, you can choose to directly discard them, or re-mark (that is, reduce the priority of this part of the packets) and then continue. Forwarding, when congestion occurs, this part of the packets will be discarded preferentially.

CAR通过令牌桶(Token Bucket)算法实现。令牌桶可以看作是一个存放令牌的容器,而令牌则可以看作是报文通过令牌桶的通行证。一方面令牌以一定的速率注入令牌桶;另一方面报文在通过令牌桶时,会消耗掉与报文长度相当的令牌数。如果桶中的令牌数不足,令牌桶将丢弃报文或是重标记报文后转发。这样就可以通过控制向令牌桶发送令牌的速率来控制通过令牌桶的报文的速率,从而达到控制报文进入网络的速率。例如,本申请实施例中的令牌桶算法包括单速率三色双桶算法srTCM和双速率三色双桶算法trTCM。CAR is implemented through the Token Bucket algorithm. A token bucket can be regarded as a container for storing tokens, and a token can be regarded as a pass for packets to pass through the token bucket. On the one hand, the token is injected into the token bucket at a certain rate; on the other hand, when the packet passes through the token bucket, the number of tokens equal to the length of the packet will be consumed. If the number of tokens in the bucket is insufficient, the token bucket will discard the packet or remark the packet and forward it. In this way, the rate of packets passing through the token bucket can be controlled by controlling the rate at which tokens are sent to the token bucket, thereby controlling the rate at which packets enter the network. For example, the token bucket algorithm in this embodiment of the present application includes a single-rate three-color two-bucket algorithm srTCM and a two-rate three-color two-bucket algorithm trTCM.

2、双速率三色双桶trTCM、色盲模式2. Double-rate, three-color, two-barrel trTCM, color-blind mode

双速率三色双桶trTCM的四个流量参数为:峰值信息速率PIR、与PIR相关联的峰值突发尺寸PBS、承诺信息速率CIR、与CIR相关联的承诺突发尺寸CBS,其中,PIR大于或等于CIR。The four traffic parameters of the two-rate three-color two-bucket trTCM are: peak information rate PIR, peak burst size PBS associated with PIR, committed information rate CIR, and committed burst size CBS associated with CIR, where PIR is greater than or equal to CIR.

令牌桶P和C最初(时间0处)都是满的,其令牌数目Tp(0)=PBS,Tc(0)=CBS,令牌数目Tp以每秒PIR次的速率加一直到达到PBS,令牌数目Tc以每秒CIR次的速率加一直到达到CBS。Token buckets P and C are initially full (at time 0), and the number of tokens Tp(0) = PBS, Tc(0) = CBS, and the number of tokens Tp is incremented at the rate of PIR times per second until it reaches PBS, the number of tokens Tc is incremented at the rate of CIR times per second until CBS is reached.

当一个尺寸为B字节的报文在时间t处到达时,trTCM在色盲模式下,那么执行下列操作:When a packet of size B bytes arrives at time t, trTCM is in colorblind mode, then the following operations are performed:

如果Tp(t)-B<0,那么报文标记为红色,否则,If Tp(t)-B<0, then the packet is marked red, otherwise,

如果Tc(t)-B<0,那么报文标记为黄色,并将Tp减去B。否则,If Tc(t)-B<0, then the packet is marked yellow and Tp is subtracted from B. otherwise,

报文标记为绿色,Tp和Tc都减去B。Packets are marked in green, and B is subtracted from both Tp and Tc.

3、单速率三色双桶srTCM、色敏模式3. Single-rate three-color dual-barrel srTCM, color-sensitive mode

单速率三色双桶srTCM的三个流量参数为:承诺信息速率CIR、承诺突发尺寸CBS和超额突发尺寸EBS。The three traffic parameters of the single-rate, three-color, two-bucket srTCM are: Committed Information Rate CIR, Committed Burst Size CBS, and Excess Burst Size EBS.

令牌桶C和E最初(时间0处)都是满的,其令牌数目Tc(0)=CBS,Te(0)=EBS。CBS比EBS小。Tc和Te在每秒钟内更新CIR次,通常是先往C桶中添加令牌,等C桶满了,再往E桶中添加令牌,当两桶都被填满时,新产生的令牌将会被丢弃,即令牌数目更新时遵循以下规则:Token buckets C and E are both initially (at time 0) full, with their number of tokens Tc(0)=CBS, Te(0)=EBS. CBS is smaller than EBS. Tc and Te update the CIR times per second. Usually, tokens are added to bucket C first, and when bucket C is full, tokens are added to bucket E. When both buckets are full, the newly generated Tokens will be discarded, i.e. the number of tokens is updated according to the following rules:

如果Tc<CBS,则Tc增加1,否则,Tc is incremented by 1 if Tc < CBS, otherwise,

如果Te<EBS,则Te增加1,否则,If Te < EBS, then Te is incremented by 1, otherwise,

Tc和Te都不增加。Neither Tc nor Te increase.

当一个尺寸为B字节的报文在时间t处达到的时候,srTCM在色敏模式下,那么执行下列操作:When a packet of size B bytes arrives at time t, and the srTCM is in color-sensitive mode, the following operations are performed:

如果报文已被标记为绿色且Tc(t)-B≥0,则报文被标记为绿色,且Tc减去B,否则,If the packet has been marked green and Tc(t)-B ≥ 0, then the packet is marked green and Tc minus B, otherwise,

如果报文已被标记为绿色或黄色且Te(t)-B≥0,则报文被标记为黄色,且Te减去B,否则,If the packet has been marked green or yellow and Te(t)-B ≥ 0, then the packet is marked yellow and Te minus B, otherwise,

报文被标记为红色且Tc和Te都不降低。Packets are marked red and neither Tc nor Te is degraded.

4、会话CAR限速4. Session CAR speed limit

会话CAR限速是指以会话为单位对会话内接收到的协议报文统一进行限速。例如,会话1在某一时间段内接收到协议报文1、协议报文2和协议报文3,对会话1进行会话CAR限速是指对该会话1内接收到的协议报文1、协议报文2和协议报文3统一进行限速。Session CAR rate limiting means that the rate of protocol packets received in a session is uniformly limited on a session-by-session basis. For example, if session 1 receives protocol packet 1, protocol packet 2, and protocol packet 3 within a certain period of time, the session CAR rate limit for session 1 refers to protocol packets 1, 2 and 3 received in session 1. The rate of protocol packet 2 and protocol packet 3 is uniformly limited.

5、会话CAR限速隔离5. Session CAR speed limit isolation

会话CAR限速隔离是指每个会话单独进行会话CAR限速,且不同会话之间的会话CAR限速相互独立,互不影响,每个会话的会话CAR限速均是独立的。例如,每个会话的会话CAR限速的参数设置可以互不相同,每个会话根据与其对应的会话CAR限速的参数对该会话内接收的协议报文进行限速,各个会话在进行会话CAR限速时,多个会话之间不会互相影响。例如,会话1、会话2和会话3的会话CAR限速隔离是指,对会话1、会话2和会话3分别单独进行会话CAR限速,会话1、会话、会话3的会话CAR限速的参数设置可以相同也可以不同,对会话1、会话2和会话3进行CAR限速时,各会话间是互相独立的,不会互相影响。Session CAR rate limit isolation means that each session performs session CAR rate limit independently, and the session CAR rate limits of different sessions are independent of each other and do not affect each other. The session CAR rate limits of each session are independent. For example, the parameter settings of the session CAR rate limit for each session can be different from each other. Each session limits the rate of the protocol packets received in the session according to the corresponding session CAR rate limit parameters. When the rate is limited, multiple sessions will not affect each other. For example, session CAR rate limit isolation for session 1, session 2, and session 3 means that session 1, session 2, and session 3 are individually session CAR rate-limited, and the session CAR rate-limit parameters for session 1, session, and session 3 The settings can be the same or different. When CAR rate limiting is performed on session 1, session 2, and session 3, the sessions are independent of each other and will not affect each other.

6、会话簇CAR限速6. Session cluster CAR rate limit

会话簇CAR限速是指以会话簇为单位对该会话簇内接收到的协议报文统一进行限速。例如,会话1、会话2和会话3为已建立会话,将会话1、会话2和会话3作为一个会话簇,对该会话簇内接收到的协议报文用一组会话簇CAR限速参数进行限速。The session cluster CAR rate limit means that the rate of protocol packets received in the session cluster is uniformly limited by the session cluster. For example, session 1, session 2, and session 3 are established sessions, and session 1, session 2, and session 3 are regarded as a session cluster, and the protocol packets received in the session cluster are processed by a set of session cluster CAR rate limiting parameters. speed limit.

在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present application, words such as "exemplary" or "for example" are used to represent examples, illustrations or illustrations. Any embodiments or designs described in the embodiments of the present application as "exemplary" or "such as" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present the related concepts in a specific manner.

本申请实施例提供一种报文防攻击方法,该方法应用于一种架构,该架构包括转发面设备和控制面设备。An embodiment of the present application provides a packet attack defense method, and the method is applied to an architecture, where the architecture includes a forwarding plane device and a control plane device.

该转发面设备,用于进行数据报文的封装、转发。示例性的,系统接收到IP报文后,由转发面设备对该IP报文进行解封装,查路由表,从出接口转发等工作。例如,该转发面设备可以为网络处理器,该网络处理器可以对接收到的需要本地处理的路由协议报文采取承诺访问速率CAR限速策略,再将限速后的路由协议本地报文发送至控制面设备。The forwarding plane device is used to encapsulate and forward data packets. Exemplarily, after the system receives the IP packet, the forwarding plane device decapsulates the IP packet, checks the routing table, and forwards the IP packet from the outgoing interface. For example, the forwarding plane device may be a network processor, and the network processor may adopt a committed access rate CAR rate limit policy for the received routing protocol packets that need to be processed locally, and then send the rate-limited routing protocol local packets to the control surface device.

该控制面设备,用于传送指令、计算表项。例如,路由协议学习、路由表项维护、协议报文转发、协议表项计算、维护等。示例性的,该转发面设备可以为中央处理器,该中央处理器可以接收转发面设备发送的报文。The control plane device is used to transmit instructions and calculate table entries. For example, routing protocol learning, routing entry maintenance, protocol packet forwarding, protocol entry calculation, and maintenance. Exemplarily, the forwarding plane device may be a central processing unit, and the central processing unit may receive a packet sent by the forwarding plane device.

可以理解的,本申请实施例中的转发面设备和控制面设备可以是处理器也可以是芯片。该转发面设备和控制面设备可以分开配置,也可以配置在一个设备中,本申请对此并不进行限定。在此仅以转发面设备和控制面设备配置在一个设备中为例进行说明,示例性的,该设备可以为路由器。It can be understood that the forwarding plane device and the control plane device in this embodiment of the present application may be a processor or a chip. The forwarding plane device and the control plane device may be configured separately, or may be configured in one device, which is not limited in this application. Here, only the forwarding plane device and the control plane device are configured in one device for description, and the device may be a router by way of example.

示例性的,该路由器100采用控制面和转发面分离的系统架构,转发面用于实现报文转发的功能,控制面用于实现对于报文转发的控制,如图1所示,该路由器100由主控板、交换网板和接口板等组成。该主控板是路由器100的控制核心,用于完成整个路由器的管理和控制,直接接收网管中心的指令;该交换网板用于在路由器100中完成高速数据交换;该接口板用于处理报文转发。示例性的,图1中以两块接口板为例,该两块接口板能够并行处理报文转发,使得报文转发能力大幅提升。本申请实施例对于路由器100的具体结构并不进行限定。Exemplarily, the router 100 adopts a system architecture in which the control plane and the forwarding plane are separated, the forwarding plane is used to implement the function of packet forwarding, and the control plane is used to implement the control of packet forwarding. As shown in FIG. 1 , the router 100 It consists of main control board, switching network board and interface board. The main control board is the control core of the router 100, which is used to complete the management and control of the entire router and directly receive the instructions of the network management center; the switching network board is used to complete high-speed data exchange in the router 100; the interface board is used to process the report Text forwarding. Illustratively, two interface boards are used as an example in FIG. 1 . The two interface boards can process packet forwarding in parallel, so that the packet forwarding capability is greatly improved. This embodiment of the present application does not limit the specific structure of the router 100 .

如图1所示,该路由器100接口板的转发面包括:网络处理器101、物理接口卡102和转发表项存储器103;控制面包括:中央处理器104。As shown in FIG. 1 , the forwarding plane of the interface board of the router 100 includes: a network processor 101 , a physical interface card 102 and a forwarding table entry memory 103 ; the control plane includes: a central processing unit 104 .

网络处理器101:是专门为处理数据包而设计的可编程处理器,可以用于路由表的管理、系统配置和管理。该网络处理器101内部通常由若干个微码处理器和若干硬件协处理器组成,多个微码处理器在网络处理器内部并行处理,通过预先编制的微码来控制处理流程。而对于复杂操作(例如内存操作、路由表查找算法、QoS的拥塞控制算法、流量调度算法等),则采用硬件协处理器来进一步提高处理性能,从而实现了业务灵活性和高性能的有机结合。Network processor 101: It is a programmable processor specially designed for processing data packets, and can be used for routing table management, system configuration and management. The inside of the network processor 101 is usually composed of several microcode processors and several hardware co-processors. Multiple microcode processors are processed in parallel inside the network processor, and the processing flow is controlled by pre-programmed microcodes. For complex operations (such as memory operations, routing table lookup algorithms, QoS congestion control algorithms, traffic scheduling algorithms, etc.), hardware coprocessors are used to further improve processing performance, thus achieving an organic combination of business flexibility and high performance. .

物理接口卡102:提供了路由器100与特定类型的网络介质之间的物理连接,该物理接口卡102的接口可以根据实际需要灵活地进行升级和变动。Physical interface card 102: Provides a physical connection between the router 100 and a specific type of network medium, and the interface of the physical interface card 102 can be flexibly upgraded and changed according to actual needs.

转发表项存储器103:存储了路由器100的路由转发表,该路由转发表是根据控制面的路由表生成的,其表项和路由表项有直接对应关系,但转发表的格式和路由表的格式不同,它更适合实现快速查找。The forwarding table entry storage 103: stores the routing forwarding table of the router 100. The routing forwarding table is generated according to the routing table of the control plane. The format is different, it is more suitable for fast lookup.

本申请实施例中,转发表项存储器103具体可以包括易失性存储器(VolatileMemory),例如随机存取存储器(Random-Access Memory,RAM);该存储器也可以包括非易失性存储器(Non-Volatile Memory),快闪存储器(Flash Memory),硬盘(Hard Disk Drive,HDD)或固态硬盘(Solid-State Drive,SSD);该转发表项存储器103还可以包括上述种类的存储器的组合。In this embodiment of the present application, the forwarding entry memory 103 may specifically include a volatile memory (Volatile Memory), such as a random-access memory (Random-Access Memory, RAM); the memory may also include a non-volatile memory (Non-Volatile Memory). Memory), flash memory (Flash Memory), hard disk (Hard Disk Drive, HDD) or solid-state drive (Solid-State Drive, SSD); the forwarding table entry memory 103 may also include a combination of the above types of memory.

中央处理器104:是路由器的核心部件,可以用于执行路由操作系统的指令,以及解释、执行用户输入的命令,同时完成与计算有关的工作。The central processing unit 104: is the core component of the router, and can be used to execute the instructions of the routing operating system, interpret and execute the commands input by the user, and complete the work related to the calculation at the same time.

可理解的是,图1仅为示例性说明,实际应用中,路由器100可以包括比图1所示更多或者更少的部件,图1所示结构不对本申请实施例提供的路由器构成任何限制。It can be understood that FIG. 1 is only an exemplary illustration, and in practical applications, the router 100 may include more or less components than those shown in FIG. 1 , and the structure shown in FIG. 1 does not constitute any limitation to the router provided by this embodiment of the present application. .

为了解决背景技术中,某个已建立的会话报文发生攻击时,其他已建立的会话报文会受到攻击影响导致会话断链的问题,本申请实施例提供了一种报文防攻击方法,该方法能够降低已建立的会话报文之间攻击影响,避免某个已经建立的会话报文发生攻击时,其他已经建立的会话会受攻击影响导致断链的情况发生。In order to solve the problem in the background art that when a certain established session packet is attacked, other established session packets will be affected by the attack, resulting in session disconnection, an embodiment of the present application provides a packet attack defense method, The method can reduce the impact of attacks between established session packets, and avoid the situation that when an established session packet is attacked, other established sessions will be affected by the attack, resulting in a chain disconnection.

结合图1,如图2所示,本申请实施例提供的报文防攻击方法,可以包括S201-S204。With reference to FIG. 1 , as shown in FIG. 2 , the packet attack defense method provided by the embodiment of the present application may include S201-S204.

S201、转发面设备接收协议报文。S201. The forwarding plane device receives the protocol packet.

示例性的,如图1所示,该转发面设备可以为图3、图4所示的路由器A中的网络处理器,该网络处理器可以接收协议报文。示例性的,该网络处理器可以接收其他路由器发送的同一路由协议的报文,也可以接收其他路由器发送的不同路由协议的报文。Exemplarily, as shown in FIG. 1 , the forwarding plane device may be a network processor in router A shown in FIG. 3 and FIG. 4 , and the network processor may receive protocol packets. Exemplarily, the network processor may receive packets of the same routing protocol sent by other routers, or may receive packets of different routing protocols sent by other routers.

示例性的,如图3所示,该网络处理器可以接收路由器B、路由器C、路由器D发送的边界网关协议(Border Gateway Protocol,BGP)报文;如图4所示,该网络处理器也可以接收路由器B、路由器C、路由器D发送的BGP协议报文,和路由器E、路由器F发送的开放式最短路径优先(Open Shortest Path First,OSPF)协议报文。本申请实施例对于该网络处理器接收的其他路由器发送的协议报文的种类不进行限定,图3、图4仅是本申请的一个示例。例如,转发面设备接收到的协议报文也可以是路由信息协议(Route Information Protocol,RIP)报文,或者内部网关路由协议(Interior Gateway Routing Protool,IGRP)报文,或者中间系统到中间系统(Intermediate system to intermediate system,IS-IS)协议报文。Exemplarily, as shown in FIG. 3 , the network processor may receive Border Gateway Protocol (Border Gateway Protocol, BGP) packets sent by router B, router C, and router D; as shown in FIG. 4 , the network processor also It can receive BGP protocol packets sent by router B, router C, and router D, and Open Shortest Path First (OSPF) protocol packets sent by router E and router F. This embodiment of the present application does not limit the types of protocol packets received by the network processor and sent by other routers. FIG. 3 and FIG. 4 are only examples of the present application. For example, the protocol packet received by the forwarding plane device may also be a Route Information Protocol (Route Information Protocol, RIP) packet, or an Interior Gateway Routing Protocol (Interior Gateway Routing Protool, IGRP) packet, or an intermediate system-to-intermediate system ( Intermediate system to intermediate system, IS-IS) protocol message.

S202、转发面设备根据协议报文中携带的会话特征,若确定协议报文属于第一会话,对协议报文进行会话承诺访问速率CAR限速。S202. According to the session feature carried in the protocol packet, if it is determined that the protocol packet belongs to the first session, the forwarding plane device performs a session commitment access rate CAR rate limit on the protocol packet.

其中,第一会话为已建立的任意一个会话,已建立的会话中每个会话分别对应一个会话CAR限速,且不同会话之间的会话CAR限速隔离。The first session is any session that has been established, and each session in the established sessions corresponds to a session CAR rate limit, and the session CAR rate limits between different sessions are isolated.

示例性的,已建立的会话是指路由协议peer之间通过交互报文建立连接,当路由协议peer之间完成对彼此的认证后,认为对方是可信的,称为已建立的会话。示例性的,如图3所示,路由器A分别和路由器B、路由器C、路由器D建立BGP会话连接后,已建立的BGP会话1、BGP会话2和BGP会话3为已建立的会话。本申请实施例中的步骤S202-S204均适用于属于已建立的会话的协议报文。对于未建立的会话的协议报文的处理方式与现有技术一样,在此不予赘述。Exemplarily, an established session refers to that a connection is established between routing protocol peers by exchanging messages. After routing protocol peers complete authentication to each other, they consider each other to be credible, which is called an established session. Exemplarily, as shown in FIG. 3 , after router A establishes BGP session connections with router B, router C, and router D respectively, the established BGP session 1, BGP session 2, and BGP session 3 are established sessions. Steps S202-S204 in this embodiment of the present application are all applicable to protocol packets belonging to established sessions. The processing manner of the protocol message of the unestablished session is the same as that in the prior art, which is not repeated here.

示例性的,转发面设备可以根据该协议报文中携带的会话特征确定该协议报文是否属于第一会话。Exemplarily, the forwarding plane device may determine whether the protocol packet belongs to the first session according to the session feature carried in the protocol packet.

第一会话为已建立的任意一个会话,已建立的会话中每个会话分别对应各自的ACL规则。例如,已建立的会话包括BGP会话1,BGP会话2和BGP会话3,该BGP会话1,BGP会话2和BGP会话3分别对应各自的ACL规则。该ACL规则可以包括五元组信息,如源IP地址、目的IP地址、源端口号、目的端口号、IP协议号。本申请实施例对于ACL规则具体包含的内容并不进行限定,例如,若该转发面设备接收的协议报文为BGP协议报文,该ACL规则还可以包括VPN实例索引号,若该转发面设备接收的协议报文为OSPF协议报文,该ACL规则还可以包括接口索引。该ACL规则可以为转发面设备提取已建立会话的报文的会话特征获得的。The first session is any established session, and each session in the established session corresponds to its own ACL rule. For example, the established sessions include BGP session 1, BGP session 2 and BGP session 3, and the BGP session 1, BGP session 2 and BGP session 3 respectively correspond to respective ACL rules. The ACL rule may include five-tuple information, such as source IP address, destination IP address, source port number, destination port number, and IP protocol number. This embodiment of the present application does not limit the specific content of the ACL rule. For example, if the protocol packet received by the forwarding plane device is a BGP protocol packet, the ACL rule may also include the VPN instance index number. The received protocol packet is an OSPF protocol packet, and the ACL rule may also include an interface index. The ACL rule can be obtained by extracting the session feature of the packet of the established session for the forwarding plane device.

若该协议报文携带的会话特征命中BGP会话2的ACL规则,则确定该协议报文属于BGP会话2(第一会话)。本申请实施例对于转发面设备确定协议报文属于第一会话的具体方式并不进行限定。If the session feature carried in the protocol packet matches the ACL rule of the BGP session 2, it is determined that the protocol packet belongs to the BGP session 2 (the first session). This embodiment of the present application does not limit the specific manner in which the forwarding plane device determines that the protocol packet belongs to the first session.

示例性的,该会话特征可以包括协议报文的源IP地址、目的IP地址、源端口号、目的端口号、IP协议号等,不同路由协议会话的协议报文中携带的会话特征可以相同,也可以不同。Exemplarily, the session characteristics may include the source IP address, destination IP address, source port number, destination port number, IP protocol number, etc. of the protocol packet, and the session characteristics carried in the protocol packets of different routing protocol sessions may be the same, Can also be different.

若确定该协议报文属于第一会话,对协议报文进行第一会话对应的会话CAR限速。If it is determined that the protocol packet belongs to the first session, a session CAR rate limit corresponding to the first session is performed on the protocol packet.

需要说明的是,已建立的会话中每个会话分别对应一个会话CAR限速,且不同会话之间的会话CAR限速隔离。会话CAR限速是指以会话为单位对会话内接收到的协议报文统一进行限速。例如,BGP会话1在某一时间段内接收到BGP协议报文一,对该BGP协议报文一进行限速。It should be noted that each session in the established sessions corresponds to a session CAR rate limit, and the session CAR rate limits between different sessions are isolated. Session CAR rate limiting means that the rate of protocol packets received in a session is uniformly limited on a session-by-session basis. For example, BGP session 1 receives BGP protocol packet 1 within a certain period of time, and the rate of the BGP protocol packet 1 is limited.

会话CAR限速隔离是指每个会话单独进行会话CAR限速,且不同会话之间的会话CAR限速相互独立,互不影响。例如,如图5所示,BGP协议报文一属于BGP会话1、BGP协议报文二属于BGP会话2、BGP协议报文三属于BGP会话3,对BGP协议报文一进行BGP会话1的会话CAR限速、对BGP协议报文二进行BGP会话2的会话CAR限速、对BGP协议报文三进行BGP会话3的会话CAR限速,且BGP会话1、BGP会话2和BGP会话3之间的会话CAR限速相互独立,互不影响。Session CAR rate limit isolation means that each session performs session CAR rate limit independently, and the session CAR rate limits of different sessions are independent of each other and do not affect each other. For example, as shown in Figure 5, BGP protocol packet 1 belongs to BGP session 1, BGP protocol packet 2 belongs to BGP session 2, and BGP protocol packet 3 belongs to BGP session 3, and BGP protocol packet 1 belongs to BGP session 1. CAR rate limiting, BGP session 2 session CAR rate limiting for BGP protocol packet 2, BGP session 3 session CAR rate limiting for BGP protocol packet 3, and between BGP session 1, BGP session 2, and BGP session 3 The session CAR speed limits are independent of each other and do not affect each other.

示例性的,本申请实施例中的会话CAR限速可以采用双速率三色双桶trTCM、色盲模式。不同会话的会话CAR限速的参数设置可以相同,也可以不同。Exemplarily, the session CAR rate limit in this embodiment of the present application may adopt a dual-rate, three-color, dual-bucket trTCM, and a color-blind mode. The parameter settings of the session CAR rate limit for different sessions can be the same or different.

结合图3所示场景为例,对会话CAR限速的具体过程进行说明。如图3所示,路由器A(转发面设备)分别接收路由器B、路由器C和路由器D发送的BGP协议报文一、BGP协议报文二和BGP协议报文三,其中,BGP协议报文一和BGP协议报文二为BGP攻击报文,该攻击报文的报文流量均为10Mbps,BGP协议报文三为正常报文,该正常报文的报文流量为10Kbps,对BGP协议报文一、BGP协议报文二和BGP协议报文三进行会话CAR限速时,BGP协议报文一属于BGP会话1、BGP协议报文二属于BGP会话2、BGP协议报文三属于BGP会话3,在此,仅以BGP会话1、BGP会话2和BGP会话3的会话CAR限速的参数设置为相同为例同会话的会话CAR限速的参数设置为相同为例进行说明,仅是示例性的,三个会话的会话CAR参数设置如下。Taking the scenario shown in Figure 3 as an example, the specific process of session CAR rate limiting is described. As shown in Figure 3, router A (forwarding plane device) receives BGP protocol packet 1, BGP protocol packet 2, and BGP protocol packet 3 sent by router B, router C, and router D respectively. Among them, BGP protocol packet 1 BGP protocol packet 2 and BGP protocol packet 2 are BGP attack packets. The packet traffic of this attack packet is 10Mbps. BGP protocol packet 3 is normal packet. The packet traffic of this normal packet is 10Kbps. 1. When BGP protocol packet 2 and BGP protocol packet 3 perform session CAR rate limit, BGP protocol packet 1 belongs to BGP session 1, BGP protocol packet 2 belongs to BGP session 2, and BGP protocol packet 3 belongs to BGP session 3. Here, only the parameters of session CAR rate limiting of BGP session 1, BGP session 2 and BGP session 3 are set to be the same as an example for description, which is only an example. , the session CAR parameters of the three sessions are set as follows.

CIR 32Kbps,CBS 9000000Bytes,PIR 4Mbps,PBS 9000000Bytes。CIR 32Kbps, CBS 9000000Bytes, PIR 4Mbps, PBS 9000000Bytes.

如图5所示,为根据BGP会话1,BGP会话2和BGP会话3各自的会话CAR参数,分别对BGP协议报文一、BGP协议报文二和BGP协议报文三进行会话CAR限速的过程。As shown in Figure 5, according to the respective session CAR parameters of BGP session 1, BGP session 2 and BGP session 3, the session CAR rate limit is performed for BGP protocol packet 1, BGP protocol packet 2 and BGP protocol packet 3 respectively. process.

示例性的,在对BGP协议报文一进行会话CAR限速时,由于BGP协议报文一的报文流量为10Mbps,大于BGP会话1的会话CAR限速的PIR(4Mbps),故经会话CAR限速后,BGP协议报文一中超过BGP会话1的会话CAR限速的PIR(4Mbps)部分的6Mbps报文将被丢弃,剩余的4Mbps报文通过,其中,该剩余的4Mbps报文中的32Kbps的部分报文被标记为绿色,其余报文被标记为黄色;在对BGP协议报文二进行会话CAR限速时,由于BGP协议报文二的报文流量为10Mbps,大于BGP会话2的会话CAR限速的PIR(4Mbps),故经会话CAR限速后,BGP协议报文二中超过BGP会话2的会话CAR限速的PIR(4Mbps)部分的6Mbps报文将被丢弃,剩余的4Mbps报文通过,其中,该剩余的4Mbps报文中的32Kbps的部分报文被标记为绿色,其余报文被标记为黄色;在对BGP协议报文三进行会话CAR限速时,由于BGP协议报文三的报文流量为10Kbps,小于BGP会话3的会话CAR的CIR(32Kbps),故经会话CAR限速后,BGP协议报文三的报文全部被标记为绿色。Exemplarily, when session CAR rate limiting is performed on BGP protocol packet 1, since the packet traffic of BGP protocol packet 1 is 10 Mbps, which is greater than the PIR (4 Mbps) of the session CAR rate limiting rate of BGP session 1, the session CAR After the rate is limited, the 6Mbps packets in BGP protocol packet 1 that exceed the PIR (4Mbps) part of the session CAR rate limit of BGP session 1 will be discarded, and the remaining 4Mbps packets will pass. Some packets of 32 Kbps are marked in green, and other packets are marked in yellow; when the session CAR rate limit is performed on BGP protocol packet 2, the packet traffic of BGP protocol packet 2 is 10 Mbps, which is greater than that of BGP session 2. The session CAR rate-limited PIR (4Mbps), so after the session CAR rate-limiting, the 6Mbps packets in the BGP protocol packet 2 that exceed the session CAR rate-limited PIR (4Mbps) of BGP session 2 will be discarded, and the remaining 4Mbps packets will be discarded. The packets pass through, among which, some of the 32Kbps packets in the remaining 4Mbps packets are marked in green, and the rest of the packets are marked in yellow; The packet traffic of Wen 3 is 10 Kbps, which is less than the CIR of the session CAR of BGP session 3 (32 Kbps). Therefore, after the session CAR rate is limited, all BGP protocol packets 3 are marked in green.

S203、转发面设备对会话CAR限速后的协议报文进行会话簇CAR限速。S203 , the forwarding plane device performs session cluster CAR rate limiting on the protocol packets whose session CAR rate is limited.

会话簇CAR限速是指以会话簇为单位对该会话簇内接收到的协议报文统一进行限速。会话簇CAR限速对应至少一个已建立的会话。例如,如图6所示,会话簇CAR限速对应BGP会话1、BGP会话2、BGP会话3、OSPF会话1和OSPF会话2;或者如图7所示,一个会话簇CAR限速对应BGP会话1、BGP会话2和BGP会话3,一个会话簇CAR限速对应OSPF会话1和OSPF会话2。The session cluster CAR rate limit means that the rate of protocol packets received in the session cluster is uniformly limited by the session cluster. The session cluster CAR rate limit corresponds to at least one established session. For example, as shown in Figure 6, a session cluster CAR rate limit corresponds to BGP session 1, BGP session 2, BGP session 3, OSPF session 1, and OSPF session 2; or as shown in Figure 7, a session cluster CAR rate limit corresponds to BGP sessions 1. BGP session 2 and BGP session 3, a session cluster CAR rate limit corresponds to OSPF session 1 and OSPF session 2.

示例性的,会话簇CAR限速对应已建立的会话中同一路由协议的会话或者不同路由协议的会话。例如,若已建立的会话为同一路由协议的会话,会话簇CAR限速可以对应所有已建立的同一路由协议的会话;若已建立的会话为不同路由协议的会话,会话簇CAR限速可以对应所有已建立的不同路由协议的会话,或者,每个会话簇CAR限速可以对应已建立的不同路由协议的会话中同一路由协议的会话。Exemplarily, the session cluster CAR rate limit corresponds to sessions of the same routing protocol or sessions of different routing protocols in the established sessions. For example, if the established sessions are sessions of the same routing protocol, the session cluster CAR rate limit can correspond to all established sessions of the same routing protocol; if the established sessions are sessions of different routing protocols, the session cluster CAR rate limit can correspond to All established sessions of different routing protocols, or each session cluster CAR rate limit may correspond to sessions of the same routing protocol among the established sessions of different routing protocols.

下面分别对上述三种情况进行说明。The above three cases are described below.

第一种情况:若已建立的会话为同一路由协议的会话,会话簇CAR限速可以对应所有已建立的同一路由协议的会话。Case 1: If the established sessions are sessions of the same routing protocol, the session cluster CAR rate limit can correspond to all established sessions of the same routing protocol.

示例性的,结合图3所示的场景,如图5所示,路由器A中的网络处理器对BGP协议报文一、BGP协议报文二和BGP协议报文三进行会话簇CAR限速时,该会话簇CAR限速对应BGP会话1、BGP会话2和BGP会话3,即将BGP会话1、BGP会话2和BGP会话3(所有已建立的同一路由协议的会话)作为一个会话簇,统一进行会话簇CAR限速。Exemplarily, with reference to the scenario shown in FIG. 3 and as shown in FIG. 5 , when the network processor in router A performs session cluster CAR rate limiting on BGP protocol packets 1, BGP protocol packets 2, and BGP protocol packets 3 , the CAR rate limit of the session cluster corresponds to BGP session 1, BGP session 2 and BGP session 3, that is, BGP session 1, BGP session 2 and BGP session 3 (all established sessions of the same routing protocol) are regarded as a session cluster. Session cluster CAR rate limit.

第二种情况:若已建立的会话为不同路由协议的会话,会话簇CAR限速可以对应所有已建立的不同路由协议的会话。Case 2: If the established sessions are sessions of different routing protocols, the session cluster CAR rate limit can correspond to all established sessions of different routing protocols.

示例性的,结合图4所示的场景,如图6所示,路由器A中的网络处理器对BGP协议报文一、BGP协议报文二、BGP协议报文三、OSPF协议报文一和OSPF协议报文二进行会话簇CAR限速时,该会话簇CAR限速对应BGP会话1、BGP会话2、BGP会话3、OSPF会话1和OSPF会话2,即将BGP会话1、BGP会话2、BGP会话3、OSPF会话1和OSPF会话2(所有已建立的不同路由协议的会话)作为一个会话簇,统一进行会话簇CAR限速。Exemplarily, in combination with the scenario shown in FIG. 4 and as shown in FIG. 6 , the network processor in router A compares BGP protocol packet 1, BGP protocol packet 2, BGP protocol packet 3, OSPF protocol packet 1 and When OSPF protocol packet 2 performs session cluster CAR rate limiting, the session cluster CAR rate limiting corresponds to BGP session 1, BGP session 2, BGP session 3, OSPF session 1 and OSPF session 2, namely BGP session 1, BGP session 2, BGP session 2 Session 3, OSPF session 1, and OSPF session 2 (all established sessions with different routing protocols) are used as a session cluster, and the session cluster CAR rate limit is uniformly performed.

第三种情况:若已建立的会话为不同路由协议的会话,每个会话簇CAR限速可以对应已建立的不同路由协议的会话中同一路由协议的会话。Case 3: If the established sessions are sessions of different routing protocols, the CAR rate limit of each session cluster can correspond to the sessions of the same routing protocol among the established sessions of different routing protocols.

示例性,结合图4所示的场景,如图6所示,路由器A中的网络处理器对BGP协议报文一、BGP协议报文二、BGP协议报文三、OSPF协议报文一和OSPF协议报文二进行会话簇CAR限速时,一个会话簇CAR限速对应BGP会话1、BGP会话2和BGP会话3,一个会话簇CAR限速对应OSPF会话1和OSPF会话2,即将BGP会话1、BGP会话2和BGP会话3(已建立的不同路由协议的会话中BGP路由协议的会话)作为一个会话簇,统一进行会话簇CAR限速,将OSPF会话1和OSPF会话2(已建立的不同路由协议的会话中OSPF路由协议的会话)作为一个会话簇,统一进行会话簇CAR限速。Exemplarily, in combination with the scenario shown in FIG. 4 and as shown in FIG. 6 , the network processor in router A compares BGP protocol packet 1, BGP protocol packet 2, BGP protocol packet 3, OSPF protocol packet 1, and OSPF protocol packet 1. When protocol packet 2 is rate-limited by session cluster CAR, one session cluster CAR rate limit corresponds to BGP session 1, BGP session 2, and BGP session 3, and one session cluster CAR rate limit corresponds to OSPF session 1 and OSPF session 2, that is, BGP session 1. , BGP session 2 and BGP session 3 (the sessions of the BGP routing protocol in the established sessions of different routing protocols) are used as a session cluster, and the session cluster CAR rate limit is unified, and the OSPF session 1 and OSPF session 2 (established different In the session of the routing protocol, the session of the OSPF routing protocol) is regarded as a session cluster, and the session cluster CAR rate limit is uniformly performed.

可以理解的,对于转发面设备(网络处理器)具体采用上述哪种实现方式对协议报文进行会话簇CAR限速本申请实施例并不进行限定,采用上述任一种情况的限速方式均在本申请实施例的保护范围内,实际应用中,可以依据实际情况确定具体的限速方式。It can be understood that which of the above-mentioned implementation methods is used by the forwarding plane device (network processor) to perform session cluster CAR rate limit on protocol packets is not limited in this embodiment of the present application, and the rate-limiting method in any of the above cases is not limited. Within the protection scope of the embodiments of the present application, in practical applications, a specific speed limiting mode may be determined according to actual conditions.

示例性的,本申请实施例中的会话簇CAR限速可以采用单速率三色双桶srTCM、色敏模式。不同会话簇CAR限速的参数设置可以相同也可以不同。Exemplarily, the session cluster CAR rate limit in this embodiment of the present application may adopt a single-rate, three-color, two-bucket srTCM and a color-sensitive mode. The parameter settings of the CAR rate limit for different session clusters can be the same or different.

示例性的,以图3所示的场景为例,对会话簇CAR限速的具体过程进行说明。如图3所示,路由器A(转发面设备)对会话CAR限速后的BGP协议报文一、BGP协议报文二和BGP协议报文三进行会话簇CAR限速,会话簇CAR限速对应BGP会话1、BGP会话2和BGP会话3,仅是示例性的,该会话簇CAR限速的参数设置如下:Exemplarily, taking the scenario shown in FIG. 3 as an example, the specific process of the session cluster CAR rate limiting will be described. As shown in Figure 3, router A (forwarding plane device) performs session cluster CAR rate limiting on BGP protocol packets 1, BGP protocol packets 2, and BGP protocol packets 3 after session CAR rate limitation. The session cluster CAR rate limitation corresponds to BGP session 1, BGP session 2, and BGP session 3 are only examples, and the parameter settings for the CAR rate limit of the session cluster are as follows:

CIR 4Mbps,CBS 9000000B,EBS 9000000B;CIR 4Mbps, CBS 9000000B, EBS 9000000B;

如图5所示,为根据会话簇CAR限速的参数对BGP协议报文一、BGP协议报文二和BGP协议报文三进行会话簇CAR限速的过程。As shown in Figure 5, it is the process of implementing session cluster CAR rate limiting for BGP protocol packets 1, BGP protocol packets 2 and BGP protocol packets 3 according to the parameters of session cluster CAR rate limiting.

示例性的,在对BGP协议报文一、BGP协议报文二和BGP协议报文三进行会话簇CAR限速时,将BGP会话1、BGP会话2和BGP会话3作为一个会话簇进行会话簇CAR限速。由于该BGP协议报文一中剩余的4Mbps报文中的32Kbps的部分报文被标记为绿色,其余报文被标记为黄色,BGP协议报文二中剩余的4Mbps报文中的32Kbps的部分报文被标记为绿色,其余报文被标记为黄色,BGP协议报文三全部被标记为绿色,因此,对BGP协议报文一、BGP协议报文二和BGP协议报文三进行会话簇CAR限速时,BGP协议报文一、BGP协议报文二和BGP协议报文三中的绿色报文从C桶中取令牌,BGP协议报文一和BGP协议报文二中的黄色报文从E桶中取令牌。由于BGP协议报文一中被标记为绿色的报文大小为32Kbps、BGP协议报文二中被标记为绿色的报文大小为32Kbps,BGP协议报文三中被标记为绿色的报文大小为10Kbps,故BGP会话1、BGP会话2和BGP会话3的绿色报文共74Kbps,小于会话簇CAR限速的CIR(4Mbps),因此,BGP协议报文一、BGP协议报文二和BGP协议报文三中的绿色报文从C桶中取令牌时可以全部取到令牌,正常通过。而BGP协议报文一和BGP协议报文二中的黄色报文从E桶中取令牌时,能够在E桶中取到令牌的报文正常通过,取不到令牌的报文被丢弃。Exemplarily, when the session cluster CAR rate limit is performed on BGP protocol packets 1, BGP protocol packets 2, and BGP protocol packets 3, BGP session 1, BGP session 2, and BGP session 3 are used as a session cluster to perform session clustering. CAR speed limit. Since some of the 32Kbps packets in the remaining 4Mbps packets in the BGP protocol packet 1 are marked in green, and the rest of the packets are marked in yellow, the 32Kbps part in the remaining 4Mbps packets in the BGP protocol packet 2 is marked as green. BGP protocol packets are marked green, other packets are marked yellow, and all BGP protocol packets are marked green. When the speed is high, the green packets in BGP protocol packet 1, BGP protocol packet 2, and BGP protocol packet 3 get the token from bucket C, and the yellow packets in BGP protocol packet 1 and BGP protocol packet 2 are from the bucket C. Get the token from the E bucket. Since the size of the packet marked green in BGP protocol packet 1 is 32Kbps, and the size of the packet marked green in BGP protocol packet 2 is 32Kbps, the size of the packet marked green in BGP protocol packet 3 is Therefore, the green packets of BGP session 1, BGP session 2, and BGP session 3 total 74 Kbps, which is less than the CIR (4 Mbps) of the session cluster CAR rate limit. Therefore, BGP protocol packet 1, BGP protocol packet 2, and BGP protocol packet The green packets in text 3 can get all the tokens when they get tokens from bucket C and pass normally. However, when the yellow packets in BGP protocol packet 1 and BGP protocol packet 2 get the token from the E bucket, the packets that can get the token in the E bucket pass normally, and the packets that cannot get the token are rejected. throw away.

BGP协议报文一、BGP协议报文二和BGP协议报文三经过会话CAR限速和会话簇CAR限速后,BGP协议报文上送到CPU的流量仍然可以保证限制在4Mbps,并且正常的会话报文(报文流量小于CIR)可以全部上送到转发面设备进行处理,保证会话不断链。After BGP protocol packet 1, BGP protocol packet 2, and BGP protocol packet 3 pass the session CAR rate limit and the session cluster CAR rate limit, the traffic of BGP protocol packets sent to the CPU can still be guaranteed to be limited to 4 Mbps, and the normal All session packets (the packet flow rate is less than the CIR) can be sent to the forwarding plane device for processing to ensure the continuous chaining of sessions.

示例性的,若按照上述第一种情况和第二种情况的限速方式,会话簇CAR限速对应已建立的全部会话,该会话簇CAR限速的CIR大于或等于全部会话CAR限速的CIR之和,小于或等于控制面设备的处理能力。Exemplarily, if according to the rate limiting methods in the first and second cases above, the session cluster CAR rate limiting corresponds to all established sessions, and the session cluster CAR rate limiting CIR is greater than or equal to the CAR rate limiting of all sessions. The sum of the CIRs is less than or equal to the processing capability of the control plane devices.

示例性的,若按照上述第三种情况的限速方式,会话簇CAR限速中的每个会话簇CAR限速对应已建立的会话中同一路由协议的会话,每个会话簇CAR限速的CIR大于或等于同一路由协议的会话中每个会话对应的会话CAR限速的CIR之和,每个会话簇CAR限速的CIR之和小于或等于控制面设备的处理能力。Exemplarily, according to the rate limiting method in the third case, the rate limiting of each session cluster CAR in the session cluster CAR rate limiting corresponds to the session of the same routing protocol in the established session, and the rate limiting rate of each session cluster CAR is The CIR is greater than or equal to the sum of the CAR rate-limited CIRs of each session in the same routing protocol session, and the sum of the CAR rate-limited CIRs of each session cluster is less than or equal to the processing capability of the control plane device.

在此,以会话簇CAR限速对应已建立的全部会话为例进行说明。由于本申请实施例中的会话簇CAR的下限为全部会话CAR限速的CIR之和,而且会话簇CAR限速采用的srTCM算法是持续先往C桶中注入令牌,因此,可以保证经会话CAR限速后的绿色报文全部取到令牌,正常通过。故采用本申请实施例的报文防攻击方法可以避免某个已经建立的会话发生攻击时,其他已经建立的会话会受攻击影响导致断链情况发生。Here, the description is given by taking the session cluster CAR rate limit corresponding to all established sessions as an example. Since the lower limit of the session cluster CAR in the embodiment of this application is the sum of the CIRs of all session CAR rate limits, and the srTCM algorithm adopted for the session cluster CAR rate limit is to continuously inject tokens into the C bucket first, it can be guaranteed that the session All green packets after the CAR rate limit get tokens and pass normally. Therefore, by adopting the packet attack defense method of the embodiment of the present application, when an attack occurs on a certain established session, other established sessions will be affected by the attack, resulting in the occurrence of chain disconnection.

S204、转发面设备将会话簇CAR限速后的协议报文发送至控制面设备。S204: The forwarding plane device sends the protocol packet after the session cluster CAR rate-limited to the control plane device.

示例性的,如图5-图7所示,路由器A中的转发面设备可以将经过两级限速后的报文发送至控制面设备,该控制面设备可以为路由器A中控制面的中央处理器CPU。Exemplarily, as shown in FIG. 5-FIG. 7, the forwarding plane device in router A can send the packets after two levels of rate limit to the control plane device, and the control plane device can be the center of the control plane in router A. Processor CPU.

可以理解的,由于网络处理器对收到的已建立会话的协议报文进行了两级限速,限速后的协议报文能够保证发送至CPU的报文带宽维持不变,上送CPU报文带宽不会随协议会话数增长。It is understandable that since the network processor implements two-level rate limiting on the received protocol packets of the established session, the protocol packets after the rate limiting can ensure that the bandwidth of the packets sent to the CPU remains unchanged, and the packets sent to the CPU are sent to the CPU. The bandwidth does not increase with the number of protocol sessions.

本申请实施例提供的报文防攻击方法,通过转发面设备接收协议报文;根据该协议报文中携带的会话特征,若确定该协议报文属于第一会话,对该协议报文进行会话CAR限速,其中,该第一会话为已建立的任意一个会话,已建立的会话中每个会话分别对应一个会话CAR限速,且不同会话之间的会话CAR限速隔离;对会话CAR限速后的协议报文进行会话簇CAR限速,该会话簇CAR限速对应至少一个已建立的会话;将会话簇CAR限速后的协议报文发送至控制面设备。本申请实施例通过对已建立会话的协议报文进行两级限速,可以降低已经建立的会话报文之间攻击影响,避免某个已经建立的会话发生攻击时,其他已经建立的会话会受攻击影响导致断链情况发生;同时保证路由协议上送CPU的报文带宽维持不变,上送CPU报文带宽不会随协议会话数增长。In the packet attack defense method provided by the embodiment of the present application, a protocol packet is received through a forwarding plane device; according to the session characteristics carried in the protocol packet, if it is determined that the protocol packet belongs to the first session, a session is performed on the protocol packet. CAR rate limit, where the first session is any session that has been established, each session in the established sessions corresponds to a session CAR rate limit, and the session CAR rate limits between different sessions are isolated; The rate-limited protocol packets are subjected to session cluster CAR rate-limiting, which corresponds to at least one established session; the protocol packets after the session-cluster CAR rate-limited are sent to the control plane device. In this embodiment of the present application, by performing two-level rate limiting on protocol packets of established sessions, the impact of attacks between packets of established sessions can be reduced, and when an attack occurs on an established session, other established sessions will be affected by other established sessions. The impact of the attack leads to the disconnection of the link. At the same time, ensure that the bandwidth of the packets sent to the CPU by the routing protocol remains unchanged, and the bandwidth of the packets sent to the CPU will not increase with the number of protocol sessions.

本申请实施例还提供一种报文防攻击方法,如图8所示,该方法在步骤S201之前,还包括步骤S205。This embodiment of the present application further provides a method for preventing packet attacks. As shown in FIG. 8 , the method further includes step S205 before step S201 .

S205、转发面设备提取已建立会话的报文的会话特征,下发访问控制列表ACL规则。S205. The forwarding plane device extracts the session feature of the packet of the established session, and issues an access control list ACL rule.

本申请实施例提供的报文防攻击方法,通过转发面设备提取已建立会话的报文的会话特征,下发访问控制列表ACL规则;该转发面设备接收协议报文;根据该协议报文中携带的会话特征,确定该协议报文是否命中该ACL规则,若该协议报文命中该ACL规则,确定该协议报文属于第一会话;若确定该协议报文属于第一会话,对该协议报文进行会话CAR限速,其中,该第一会话为已建立的任意一个会话,已建立的会话中每个会话分别对应一个会话CAR限速,且不同会话之间的会话CAR限速隔离;对会话CAR限速后的协议报文进行会话簇CAR限速,该会话簇CAR限速对应至少一个已建立的会话;将会话簇CAR限速后的协议报文发送至控制面设备。本申请实施例通过对已建立会话的协议报文进行两级限速,可以降低已经建立的会话报文之间攻击影响,避免某个已经建立的会话发生攻击时,其他已经建立的会话会受攻击影响导致断链情况发生;同时保证路由协议上送CPU的报文带宽维持不变,上送CPU报文带宽不会随协议会话数增长。In the packet attack prevention method provided by the embodiment of the present application, the forwarding plane device extracts the session feature of the packet of the established session, and issues an access control list ACL rule; the forwarding plane device receives the protocol packet; The session characteristics carried, determine whether the protocol packet matches the ACL rule. If the protocol packet matches the ACL rule, determine that the protocol packet belongs to the first session; if it is determined that the protocol packet belongs to the first session, the protocol packet belongs to the first session. The packets are subject to session CAR rate limiting, where the first session is any established session, each session in the established sessions corresponds to a session CAR rate limiting, and the session CAR rate limiting between different sessions is isolated; Session-cluster CAR rate-limiting is performed on protocol packets after session CAR rate-limiting, and the session-cluster CAR rate-limiting corresponds to at least one established session; the protocol packets with session-cluster CAR rate-limiting rate-limited are sent to the control plane device. In this embodiment of the present application, by performing two-level rate limiting on protocol packets of established sessions, the impact of attacks between packets of established sessions can be reduced, and when an attack occurs on an established session, other established sessions will be affected by other established sessions. The impact of the attack leads to the disconnection of the link. At the same time, ensure that the bandwidth of the packets sent to the CPU by the routing protocol remains unchanged, and the bandwidth of the packets sent to the CPU will not increase with the number of protocol sessions.

上述主要从方法步骤的角度对本申请实施例提供的方案进行了介绍。可以理解的是,计算机为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的模块及算法步骤,本申请能够以硬件和计算机软件的结合形式来实现。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The solutions provided by the embodiments of the present application are described above mainly from the perspective of method steps. It can be understood that, in order to realize the above functions, the computer includes corresponding hardware structures and/or software modules for executing each function. Those skilled in the art should easily realize that, the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in the present application in the form of a combination of hardware and computer software. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.

本申请实施例可以根据上述方法示例对计算机进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment of the present application, the computer can be divided into functional modules according to the above method examples. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. It should be noted that, the division of modules in the embodiments of the present application is schematic, and is only a logical function division, and there may be other division manners in actual implementation.

在采用对应各个功能划分各个功能模块的情况下,本申请实施例还提供一种网络处理器,如图9所示,该网络处理器900包括:接收单元901、处理单元902和发送单元903。接收单元901可以用于支持网络处理器900执行图2中的S201;处理单元902可以用于支持网络处理器900执行图2中的S202-S203,或者图8中的S205;发送单元903用于支持网络处理器900执行图2中的S204。其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。In the case where each functional module is divided corresponding to each function, an embodiment of the present application further provides a network processor. As shown in FIG. 9 , the network processor 900 includes: a receiving unit 901 , a processing unit 902 and a sending unit 903 . The receiving unit 901 can be used to support the network processor 900 to perform S201 in FIG. 2; the processing unit 902 can be used to support the network processor 900 to perform S202-S203 in FIG. 2, or S205 in FIG. 8; the sending unit 903 is used for The support network processor 900 executes S204 in FIG. 2 . Wherein, all relevant contents of the steps involved in the above method embodiments can be cited in the functional descriptions of the corresponding functional modules, which will not be repeated here.

在采用集成的单元的情况下,本申请实施例还提供一种网络处理器,如图10所示,该网络处理器1000包括:存储模块1001和处理模块1002。处理模块1002用于对计算机的动作进行控制管理,例如,处理模块1002用于支持计算机执行图2中的S201-S204,或图8中的S201-S205,和/或用于本文所描述的技术的其它过程。存储模块1001,用于存储计算机的程序代码和数据。另一种实现,上述实施例所涉及的计算机结构还可以为包括处理器和接口,处理器和接口通信,处理器用于执行本发明实施例。处理器可以是CPU,也可以是其他硬件,如现场可编程门阵列(Field-Programmable Gate Array,FPGA)等,或者两者的组合。In the case of using an integrated unit, an embodiment of the present application further provides a network processor. As shown in FIG. 10 , the network processor 1000 includes: a storage module 1001 and a processing module 1002 . The processing module 1002 is used to control and manage the actions of the computer, for example, the processing module 1002 is used to support the computer to perform S201-S204 in FIG. 2, or S201-S205 in FIG. 8, and/or for the techniques described herein other processes. The storage module 1001 is used to store program codes and data of the computer. In another implementation, the computer structure involved in the above embodiments may also include a processor and an interface, the processor communicates with the interface, and the processor is used to execute the embodiments of the present invention. The processor may be a CPU, or other hardware, such as a field-programmable gate array (Field-Programmable Gate Array, FPGA), etc., or a combination of the two.

本申请实施例还提供一种装置,该装置以芯片的产品形态存在,该装置的结构中包括处理器和接口电路,处理器可以通过接口电路获取其他路由器发送的协议报文,可选的,该装置还可以包括存储器,该存储器用于与处理器耦合,保存该装置必要的程序指令和数据,该处理器用于执行存储器中存储的程序指令,使得该装置执行上述方法中报文防攻击装置的功能。可选地,所述存储器可以为所述芯片内的存储模块,如寄存器、缓存等,所述存储模块还可以是位于所述芯片外部的存储模块,如ROM或可存储静态信息和指令的其他类型的静态存储设备,RAM等。The embodiment of the present application also provides a device, the device exists in the form of a chip product, the structure of the device includes a processor and an interface circuit, and the processor can obtain protocol packets sent by other routers through the interface circuit. Optionally, The device may further include a memory, which is used for coupling with the processor to store necessary program instructions and data of the device, and the processor is used for executing the program instructions stored in the memory, so that the device executes the message attack prevention device in the above method. function. Optionally, the memory may be a storage module in the chip, such as a register, a cache, etc., and the storage module may also be a storage module located outside the chip, such as a ROM or other storage modules that can store static information and instructions. Types of static storage devices, RAM, etc.

结合本申请公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器(Random Access Memory,RAM)、闪存、可擦除可编程只读存储器(Erasable Programmable ROM,EPROM)、电可擦可编程只读存储器(ElectricallyEPROM,EEPROM)、寄存器、硬盘、移动硬盘、只读光盘(CD-ROM)或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。另外,该ASIC可以位于核心网接口设备中。当然,处理器和存储介质也可以作为分立组件存在于核心网接口设备中。The steps of the methods or algorithms described in conjunction with the disclosure of the present application may be implemented in a hardware manner, or may be implemented in a manner in which a processor executes software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (Random Access Memory, RAM), flash memory, Erasable Programmable Read-Only Memory (Erasable Programmable ROM, EPROM), electrically erasable programmable Programmable read only memory (Electrically EPROM, EEPROM), registers, hard disk, removable hard disk, compact disk read only (CD-ROM) or any other form of storage medium well known in the art. An exemplary storage medium is coupled to the processor, such that the processor can read information from, and write information to, the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and storage medium may reside in an ASIC. Alternatively, the ASIC may be located in the core network interface device. Of course, the processor and the storage medium may also exist in the core network interface device as discrete components.

本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should appreciate that, in one or more of the above examples, the functions described in this application may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage medium can be any available medium that can be accessed by a general purpose or special purpose computer.

以上所述的具体实施方式,对本申请的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本申请的具体实施方式而已,并不用于限定本申请的保护范围,凡在本申请的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本申请的保护范围之内。The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above descriptions are only specific embodiments of the present application, and are not intended to limit the The protection scope, any modifications, equivalent replacements, improvements, etc. made on the basis of the technical solutions of the present application shall be included within the protection scope of the present application.

Claims (14)

1.一种报文防攻击方法,其特征在于,所述方法包括:1. A packet attack prevention method, wherein the method comprises: 转发面设备接收协议报文;The forwarding plane device receives the protocol packet; 根据所述协议报文中携带的会话特征,若确定所述协议报文属于第一会话,对所述协议报文进行会话承诺访问速率CAR限速;其中,所述第一会话为已建立的任意一个会话;已建立的会话中每个会话分别对应一个会话CAR限速,且不同会话之间的会话CAR限速隔离;According to the session feature carried in the protocol packet, if it is determined that the protocol packet belongs to the first session, the session commitment access rate CAR is performed on the protocol packet; wherein, the first session is an established session. Any session; each session in the established session corresponds to a session CAR rate limit, and the session CAR rate limit isolation between different sessions; 对会话CAR限速后的协议报文进行会话簇CAR限速;所述会话簇CAR限速对应至少一个已建立的会话;Perform session cluster CAR rate limiting on protocol packets after session CAR rate limiting; the session cluster CAR rate limiting corresponds to at least one established session; 将会话簇CAR限速后的协议报文发送至控制面设备。Send the protocol packets with the rate-limited session cluster CAR to the control plane device. 2.根据权利要求1所述的报文防攻击方法,所述会话簇CAR限速对应至少一个已建立的会话,包括:2. The packet attack prevention method according to claim 1, wherein the session cluster CAR rate limit corresponds to at least one established session, comprising: 所述会话簇CAR限速对应已建立的会话中同一路由协议的会话或者不同路由协议的会话。The session cluster CAR rate limit corresponds to sessions of the same routing protocol or sessions of different routing protocols in the established sessions. 3.根据权利要求1或2所述的报文防攻击方法,所述会话CAR限速采用双速率三色双桶trTCM、色盲模式,所述会话簇CAR限速采用单速率三色双桶srTCM、色敏模式;3. The packet attack prevention method according to claim 1 and 2, the session CAR speed limit adopts dual-rate three-color dual-barrel trTCM, color blind mode, and the session cluster CAR speed-limit adopts single-rate three-color dual-barrel srTCM. , color sensitive mode; 其中,所述trTCM的四个流量参数分别为峰值信息速率PIR、峰值突发尺寸PBS、承诺信息速率CIR、承诺突发尺寸CBS;所述srTCM的三个流量参数分别为承诺信息速率CIR、承诺突发尺寸CBS和超额突发尺寸EBS。The four traffic parameters of the trTCM are respectively the peak information rate PIR, the peak burst size PBS, the committed information rate CIR, and the committed burst size CBS; the three traffic parameters of the srTCM are respectively the committed information rate CIR, committed Burst Size CBS and Excess Burst Size EBS. 4.根据权利要求1-3任一项所述的报文防攻击方法,若所述会话簇CAR限速对应已建立的全部会话,所述会话簇CAR限速的CIR大于或等于全部所述会话CAR限速的CIR之和,小于或等于所述控制面设备的处理能力;4. The packet attack defense method according to any one of claims 1-3, if the session cluster CAR rate limit corresponds to all established sessions, the CIR of the session cluster CAR rate limit is greater than or equal to all of the The sum of the CIRs of the session CAR rate limit is less than or equal to the processing capability of the control plane device; 若所述会话簇CAR限速中的每个会话簇CAR限速对应已建立的会话中同一路由协议的会话,所述每个会话簇CAR限速的CIR大于或等于所述同一路由协议的会话中每个会话对应的会话CAR限速的CIR之和,所述每个会话簇CAR限速的CIR之和小于或等于所述控制面设备的处理能力。If each session cluster CAR rate limit in the session cluster CAR rate limit corresponds to the session of the same routing protocol in the established session, the CIR of each session cluster CAR rate limit is greater than or equal to the session of the same routing protocol The sum of the CIR rate-limited by the session CAR corresponding to each session in , the sum of the CIR rate-limited by the CAR rate of each session cluster is less than or equal to the processing capability of the control plane device. 5.根据权利要求1-4任一项所述的报文防攻击方法,所述会话簇CAR限速的CIR大于或等于所述会话CAR限速的PIR;所述会话簇CAR限速的CBS大于或等于所述会话CAR限速的PBS。5. The packet attack prevention method according to any one of claims 1-4, wherein the CIR of the session cluster CAR rate-limiting is greater than or equal to the PIR of the session CAR rate-limiting; the CBS rate-limited of the session cluster CAR PBS greater than or equal to the session CAR rate limit. 6.根据权利要求1-5任一项所述的报文防攻击方法,所述转发面设备接收协议报文之前,所述方法还包括:6. The packet attack prevention method according to any one of claims 1-5, before the forwarding plane device receives the protocol packet, the method further comprises: 所述转发面设备提取已建立会话的报文的会话特征,下发访问控制列表ACL规则;The forwarding plane device extracts the session feature of the message of the established session, and issues an access control list ACL rule; 所述确定所述协议报文属于第一会话,包括:The determining that the protocol packet belongs to the first session includes: 所述转发面设备根据所述协议报文携带的会话特征确定所述协议报文是否命中所述ACL规则;The forwarding plane device determines whether the protocol packet matches the ACL rule according to the session feature carried in the protocol packet; 若所述协议报文命中所述ACL规则,确定所述协议报文属于所述第一会话。If the protocol packet hits the ACL rule, it is determined that the protocol packet belongs to the first session. 7.一种报文防攻击装置,其特征在于,所述装置包括:7. A message anti-attack device, characterized in that the device comprises: 接收单元,用于接收协议报文;a receiving unit for receiving protocol messages; 处理单元,用于根据所述接收单元接收的所述协议报文中携带的会话特征,确定所述协议报文是否属于第一会话;若所述协议报文属于所述第一会话,所述处理单元还用于对所述协议报文进行会话承诺访问速率CAR限速;其中,所述第一会话为已建立的任意一个会话;已建立的会话中每个会话分别对应一个会话CAR限速,且不同会话之间的会话CAR限速隔离;a processing unit, configured to determine whether the protocol packet belongs to the first session according to the session feature carried in the protocol packet received by the receiving unit; if the protocol packet belongs to the first session, the The processing unit is further configured to perform session commitment access rate CAR rate limiting on the protocol message; wherein, the first session is any session that has been established; each session in the established sessions corresponds to a session CAR rate limiting respectively , and the session CAR rate limit isolation between different sessions; 所述处理单元,还用于对会话CAR限速后的协议报文进行会话簇CAR限速;所述会话簇CAR限速对应至少一个已建立的会话;The processing unit is further configured to perform session cluster CAR rate limiting on the protocol packets after session CAR rate limiting; the session cluster CAR rate limiting corresponds to at least one established session; 发送单元,用于将会话簇CAR限速后的协议报文发送至控制面设备。The sending unit is used to send the protocol packets after the rate limit of the session cluster CAR to the control plane device. 8.根据权利要求7所述的报文防攻击装置,所述会话簇CAR限速对应至少一个已建立的会话,包括:8. The message anti-attack device according to claim 7, wherein the session cluster CAR rate limit corresponds to at least one established session, comprising: 所述会话簇CAR限速对应已建立的会话中同一路由协议的会话或者不同路由协议的会话。The session cluster CAR rate limit corresponds to sessions of the same routing protocol or sessions of different routing protocols in the established sessions. 9.根据权利要求7或8所述的报文防攻击装置,所述会话CAR限速采用双速率三色双桶trTCM、色盲模式,所述会话簇CAR限速采用单速率三色双桶srTCM、色敏模式;9. The device for preventing packet attacks according to claim 7 or 8, wherein the session CAR speed limit adopts dual-rate three-color dual-barrel trTCM and color blind mode, and the session cluster CAR speed-limit adopts single-rate three-color dual-barrel srTCM , color sensitive mode; 其中,所述trTCM的四个流量参数分别为峰值信息速率PIR、峰值突发尺寸PBS、承诺信息速率CIR、承诺突发尺寸CBS;所述srTCM的三个流量参数分别为承诺信息速率CIR、承诺突发尺寸CBS和超额突发尺寸EBS。The four traffic parameters of the trTCM are respectively the peak information rate PIR, the peak burst size PBS, the committed information rate CIR, and the committed burst size CBS; the three traffic parameters of the srTCM are respectively the committed information rate CIR, committed Burst Size CBS and Excess Burst Size EBS. 10.根据权利要求7-9任一项所述的报文防攻击装置,若所述会话簇CAR限速对应已建立的全部会话,所述会话簇CAR限速的CIR大于或等于全部所述会话CAR限速的CIR之和,小于或等于所述控制面设备的处理能力;10. The packet attack prevention device according to any one of claims 7-9, if the session cluster CAR rate limit corresponds to all established sessions, the CIR of the session cluster CAR rate limit is greater than or equal to all of the The sum of the CIRs of the session CAR rate limit is less than or equal to the processing capability of the control plane device; 若所述会话簇CAR限速中的每个会话簇CAR限速对应已建立的会话中同一路由协议的会话,所述每个会话簇CAR限速的CIR大于或等于所述同一路由协议的会话中每个会话对应的会话CAR限速的CIR之和,所述每个会话簇CAR限速的CIR之和小于或等于所述控制面设备的处理能力。If each session cluster CAR rate limit in the session cluster CAR rate limit corresponds to the session of the same routing protocol in the established session, the CIR of each session cluster CAR rate limit is greater than or equal to the session of the same routing protocol The sum of the CIR rate-limited by the session CAR corresponding to each session in , the sum of the CIR rate-limited by the CAR rate of each session cluster is less than or equal to the processing capability of the control plane device. 11.根据权利要求7-10任一项所述的报文防攻击装置,所述会话簇CAR限速的CIR大于或等于所述会话CAR限速的PIR;所述会话簇CAR限速的CBS大于或等于所述会话CAR限速的PBS。11. The packet attack prevention device according to any one of claims 7-10, wherein the CIR of the session cluster CAR rate-limited is greater than or equal to the PIR of the session CAR rate-limited; the CBS of the session cluster CAR rate-limited PBS greater than or equal to the session CAR rate limit. 12.根据权利要求7-11任一项所述的报文防攻击装置,所述处理单元,还用于提取已建立会话的报文的会话特征,下发访问控制列表ACL规则;12. The packet attack prevention device according to any one of claims 7-11, wherein the processing unit is further configured to extract session characteristics of packets of established sessions, and issue access control list ACL rules; 所述处理单元,具体用于根据所述协议报文携带的会话特征确定所述协议报文是否命中所述ACL规则;The processing unit is specifically configured to determine whether the protocol packet hits the ACL rule according to the session feature carried in the protocol packet; 若所述协议报文命中所述ACL规则,所述处理单元还用于确定所述协议报文属于所述第一会话。If the protocol packet hits the ACL rule, the processing unit is further configured to determine that the protocol packet belongs to the first session. 13.一种通信装置,应用于转发面设备中,其特征在于,所述装置包括处理器,所述处理器用于与存储器耦合,并读取存储器中的指令,并根据所述指令执行如权利要求1-6任一项所述的报文防攻击方法。13. A communication apparatus, applied in a forwarding plane device, characterized in that the apparatus comprises a processor, and the processor is configured to be coupled to a memory, read instructions in the memory, and execute the claims according to the instructions. The packet attack prevention method described in any one of 1-6 is required. 14.一种计算机存储介质,所述计算机存储介质中存储有计算机程序代码,其特征在于,当所述计算机程序代码在处理器上运行时,使得所述处理器执行如权利要求1-6任一项所述的报文防攻击方法。14. A computer storage medium, wherein computer program codes are stored in the computer storage medium, wherein when the computer program codes are executed on a processor, the processor is caused to perform any one of claims 1-6. The packet attack defense method described in one item.
CN201810712659.8A 2018-06-29 2018-06-29 Method and device for preventing packet attacks Active CN110661721B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810712659.8A CN110661721B (en) 2018-06-29 2018-06-29 Method and device for preventing packet attacks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810712659.8A CN110661721B (en) 2018-06-29 2018-06-29 Method and device for preventing packet attacks

Publications (2)

Publication Number Publication Date
CN110661721A CN110661721A (en) 2020-01-07
CN110661721B true CN110661721B (en) 2022-04-22

Family

ID=69027111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810712659.8A Active CN110661721B (en) 2018-06-29 2018-06-29 Method and device for preventing packet attacks

Country Status (1)

Country Link
CN (1) CN110661721B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114765621B (en) * 2020-12-31 2024-10-18 华为技术有限公司 Method, device and network equipment for detecting state of BGP session

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012063478A1 (en) * 2010-11-10 2012-05-18 株式会社日立製作所 Session management method, session management system, and program
CN105743843A (en) * 2014-12-08 2016-07-06 华为技术有限公司 Processing method and device of preventing packet attack

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9729399B2 (en) * 2015-03-11 2017-08-08 Verizon Patent And Licensing Inc. Bandwidth on demand automation

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012063478A1 (en) * 2010-11-10 2012-05-18 株式会社日立製作所 Session management method, session management system, and program
CN105743843A (en) * 2014-12-08 2016-07-06 华为技术有限公司 Processing method and device of preventing packet attack

Also Published As

Publication number Publication date
CN110661721A (en) 2020-01-07

Similar Documents

Publication Publication Date Title
CN103299588B (en) Communication system, forwarding node and receiving packet processing method
CN101436995B (en) A Method of Fast IP Address Blocking Based on BGP Virtual Next Hop
CN101616097B (en) Method and system for managing output port queue of network processor
CN102857491B (en) Management schemes for filter sets
US9071529B2 (en) Method and apparatus for accelerating forwarding in software-defined networks
US7835285B2 (en) Quality of service, policy enhanced hierarchical disruption tolerant networking system and method
US8161145B2 (en) Method for managing of denial of service attacks using bandwidth allocation technology
US10263887B2 (en) Propagating flow characteristics in service function chaining (SFC) headers
US7680049B2 (en) Methods and apparatus for allowing promotion in color-based policers
JP2021516012A (en) Flow management in the network
US10079805B2 (en) Bypassing a firewall for authorized flows using software defined networking
US20100278189A1 (en) Methods and Apparatus for Providing Dynamic Data Flow Queues
WO2021197003A1 (en) Boundary filtering method and device for srv6 trust domain
US10291518B2 (en) Managing flow table entries for express packet processing based on packet priority or quality of service
CN111431811B (en) Message transmission control method, device and network equipment
WO2017107814A1 (en) Method, apparatus and system for propagating qos policies
CN107566286A (en) Distributing wideband network gateway function for effective content delivery network equity
US10326663B2 (en) Fabric-wide bandth management
CN113497800A (en) Boundary filtering method and device for SRv6 trust domain
US20090122784A1 (en) Method and device for implementing the security of the backbone network
CN114095448A (en) Method and equipment for processing congestion flow
CN107135185A (en) A kind of attack processing method, equipment and system
US7577737B2 (en) Method and apparatus for controlling data to be routed in a data communications network
CN110661721B (en) Method and device for preventing packet attacks
KR20160116622A (en) Openflow switch capable of service chaining

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