[go: up one dir, main page]

WO2007019755A1 - Method for providing the different quality of service for data stream - Google Patents

Method for providing the different quality of service for data stream Download PDF

Info

Publication number
WO2007019755A1
WO2007019755A1 PCT/CN2006/001080 CN2006001080W WO2007019755A1 WO 2007019755 A1 WO2007019755 A1 WO 2007019755A1 CN 2006001080 W CN2006001080 W CN 2006001080W WO 2007019755 A1 WO2007019755 A1 WO 2007019755A1
Authority
WO
WIPO (PCT)
Prior art keywords
acl
rule
template
layer
data stream
Prior art date
Application number
PCT/CN2006/001080
Other languages
English (en)
French (fr)
Inventor
Yi Xiong
Original Assignee
Huawei 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 Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2007019755A1 publication Critical patent/WO2007019755A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5003Managing SLA; Interaction between SLA and QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0894Policy-based network configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability

Definitions

  • the present invention relates to the field of communications, and more particularly to a method of providing different QoS (Quality of Service) for a data stream.
  • QoS Quality of Service
  • a stream is classified by a stream, that is, a stream is identified and classified. Then, according to the result of the traffic classification, different QoS (Quality of Service) is provided for different data flows, and QoS is also called "action", including operations such as discarding, changing priorities, and bandwidth limitation.
  • QoS Quality of Service
  • the traditional traffic classification method is to classify packets according to the standard quintuple of the packet.
  • the quintuple is the five domains of the IP packet: the source IP address, the destination IP address, and the protocol number in the IP header of the packet. TCP (Transmission Control Protocol) or UDP (User Datagram Protocol) source port number, TCP or UDP destination port number.
  • the method first needs to extract the quintuple of the message and form a key (keyword), and then classify the packets whose key values satisfy certain conditions into one class.
  • the traditional quintuple-based classification method can not meet the requirements, and the data flow needs to be more fine-grained. Therefore, the packets are classified.
  • Other domains are added, such as source/destination MAC (Media Access Control) address, Ethernet type, VLAN (Virtual Local Area Network) priority, TOS (service type), segmentation flag, TCP synchronization flag, and so on.
  • ACL Access Control List
  • ⁇ source. 2222.2222.2222 >3 ⁇ 4
  • the processing flow of the ACL is shown in Figure 1.
  • the actual application of traffic classification techniques mainly includes the following:
  • HASH hash First, a key Hash hash of the key value, and then match the rules.
  • TCAM three-state content addressable memory
  • the first three implementations are all done by software.
  • the biggest problem is that the matching time is too large.
  • the current network transmission and router forwarding speed are constantly improving. This requires that the search speed of the ACL rule table should be correspondingly improved during the packet processing. Therefore, the TCAM technology is the main traffic classification technology in data communication equipment. .
  • TCAM is usually applied in the ACL implementation.
  • the TCAM is characterized by the hardware to complete the search and matching process of the rule table.
  • the specific processing process is as follows: First, various rules configured by the user are stored in the TCAM, and each rule is associated with an action. Then, the quintuple or the multi-group of the message to be classified is extracted to form a key, and the rule table stored in the TCAM is searched according to the key, and the items in the rule table are matched, and a rule is successfully matched (hit). , TCAM returns the corresponding action index.
  • TCAM The biggest advantage of TCAM is that the search speed is fast, and the search time has nothing to do with the number of entries. Therefore, when the table capacity is large, this advantage is particularly prominent, but the TCAM price is relatively expensive. In practical applications, the TCAM capacity has certain limitations.
  • the TCAM hardware specifications define several entry lengths: 72bits, 144bits, and 288bits.
  • a rule in an ACL can be regarded as a TCAM entry.
  • the rule length is equal to the length of the key. Therefore, the following relationship exists:
  • TCAM capacity key length (rule length) x number of TCAM entries.
  • a Layer 2 header field such as a source/destination MAC
  • Layer 3 header fields such as TCP synchronization flags, etc.
  • Layer 4 header fields such as TCP synchronization flags, etc.
  • the key length of the Layer 2 ACL and the IPv4 ACL is 144 bits, and the key of the IPv6 ACL is 288 bits.
  • the rule tables of the three ACLs occupy different TCAM areas.
  • the implementation module performs corresponding processing according to the selected ACL type and the type of the packet to be processed.
  • the specific processing flow is shown in Figure 5.
  • the specific processing procedure is as follows: If the user chooses to use the Layer 2 ACL, The content of the Layer 2 header field is extracted from the classified packet, and then matched with the rule table of the Layer 2 ACL. If the matching hits a rule, the action corresponding to the rule is returned, and the action is performed to perform corresponding processing on the packet;
  • the content of the Layer 3 and Layer 4 header fields is extracted from the packets to be classified, and then matched with the rule table of the Layer 3 ACL. If the match hits the rule, the rule is returned. Corresponding actions are performed to perform corresponding processing on the 4th text.
  • the content of the Layer 2 header field is extracted from the packet to be classified, and then matched with the rule table of the Layer 2 ACL. If the match hits a rule, the Layer 3 and Layer 4 header fields are continuously extracted from the packet. The content is then matched with the rule table of the three-layer ACL. If the match hits a rule, the action corresponding to the rule is returned, and the action is performed to process the message accordingly.
  • the TCAM matching rule
  • the SRAM is required to be accessed once more.
  • Static memory to find the action, therefore, the high bandwidth requirements of the peripherals, and in the routing device, usually the peripheral bandwidth resources are very limited, so the implementation of the two ACLs is likely to become a performance bottleneck of the forwarding device.
  • the present invention provides a method for providing different quality of service for data streams, so that the ACL type can be flexibly selected according to user requirements, and finer-grained data stream classification processing can be implemented to provide corresponding QoS for data streams.
  • a method of providing different quality of service for data streams including:
  • the flow template is used to specify matching conditions using the rule template to provide different quality of service QoS for the data stream.
  • the rule template includes at least one of a partial Layer 2 header field, a partial Layer 3 header field, and a partial Layer 4 header field.
  • the length of the rule template is less than the length of the entry defined in the TCAM specification of the tri-state content addressable memory.
  • the rule template is saved in a template library, and the user can add, delete, and modify operations in the template library.
  • the action corresponding to the rule is performed; otherwise, the data flow is forwarded according to a normal forwarding process.
  • the present invention does not need to increase the TCAM hardware investment, and provides an ACL rule template to enable users to flexibly select an ACL type according to requirements when configuring a traffic classification rule to implement a more fine-grained traffic classification process.
  • the present invention only needs to be executed once when the user needs to match the second and third layer fields of the message at the same time.
  • ACL can meet the requirements of users, which can save peripheral bandwidth resources.
  • the present invention can reduce useless fields in the TCAM and improve the utilization of TCAM resources.
  • Figure 1 is a flow chart of the specific processing of the ACL
  • FIG. 2 is a schematic diagram of a key structure of a Layer 2 ACL
  • Figure 3 is a schematic diagram of the key structure of the Ipv4 three-layer ACL
  • Figure 4 is a schematic diagram of the key structure of the Ipv6 three-layer ACL
  • FIG. 5 is a specific processing flow diagram of a method for enabling a Layer 2 ACL or a Layer 3 ACL in the prior art
  • FIG. 6 is a specific processing flowchart of a method for simultaneously enabling a Layer 2 ACL and a Layer 3 ACL in the prior art
  • FIG. 7 is a flow chart of a method for providing different quality of service for a data stream according to the present invention.
  • FIG. 8 is a schematic diagram of an embodiment of an Ipv4 ACL rule template in the method of the present invention.
  • FIG. 9 is a schematic diagram of an embodiment of an IPv6 ACL rule template in the method of the present invention.
  • FIG. 10 is a flowchart of a method for processing a Layer 2 ACL, a Layer 3 ACL, a Layer 4 ACL, and an ACL template according to the present invention.
  • the present invention provides a method of providing different quality of service to a data stream.
  • the core of the present invention is: By providing a common ACL rule template to the user, the ACL rule can be configured to implement fine-grained traffic classification without affecting the forwarding performance.
  • Step 7-1 Customize some ACL templates according to user requirements.
  • an ACL template needs to be customized according to the requirements of the user.
  • the ACL template can include some Layer 2 ACL information, some Layer 3 ACL information, and some Layer 4 ACL information.
  • the length of the template cannot exceed the length of the entry defined in the existing TCAM specification. Therefore, a customized ACL template cannot include all Layer 2 ACLs and Layer 3 ACL information.
  • the system is based on the configuration that is commonly used in the user's actual use, so it can meet the needs of most users. For example, you can customize the ACL template for identifying IPv4 packets: ⁇ MAC address, source IP address, destination IP address, TOS, protocol number>.
  • the structure of the template is shown in Figure 8.
  • IPv6 unicast addresses fall into two categories: global addresses (higher 64-bit addresses and lower 64-bit addresses, where the upper 64-bit address represents the network prefix, the lower 64-bit address represents the interface index) and the IPv6 address mapped by the IPv4 address. (High 64 is meaningless).
  • IPv6 ACL templates can customize some different IPv6 ACL templates according to the needs of users. That is, a part of the upper 64-bit address or the lower 64-bit address of the IPv6 address is selected, and the IPv6 ACL rule template is formed together with the Layer 2 information of the packet to implement a finer-grained IPv6 ACL.
  • IPv6 ACL template o ⁇ MAC, source IP (lower 64bits), destination IP, protocol number>, and the structure of the template is shown in Figure 9.
  • Step 7-2 Save the customized ACL template in the template library of the router.
  • the present invention needs to maintain a template library in the router, and save the customized ACL template in the template library, and the user can add the template to the template library according to actual needs. , delete, modify, etc.
  • Step 7-3 When a traffic classification operation is required, select an ACL template and specify a matching condition.
  • a required ACL template is selected from the template library. Then, the matching condition of each field in the selected ACL template is specified, that is, a specific ACL template rule is configured and stored in the TCAM.
  • Step 7- 4 According to the selected ACL template, extract the corresponding field content from the message and construct Become a key;
  • the corresponding field content is extracted from the data stream to be processed, for example, part of the second, third, and fourth header fields of the packet may be extracted, and then, The extracted content constitutes a key.
  • Step 7-5 Whether the Key and ACL rules match
  • the configured key is matched with the configured ACL rule. If the match is successful (hit), go to step 7-6; otherwise, go to step 7-7.
  • Step 7-6 Perform an action corresponding to the ACL rule.
  • the TCAM If the key and the configured ACL template rule can match, the TCAM returns a corresponding action index, finds a corresponding action according to the action index, and performs the action to provide a corresponding QoS policy to the data stream.
  • Step 7-7 Forward the packet normally.
  • the data packet to be processed is forwarded normally according to the normal forwarding process.
  • FIG. 10 is a flowchart of a method for processing a Layer 2 ACL, a Layer 3 ACL, a Layer 4 ACL, and an ACL template according to the present invention.
  • the method of the present invention can be combined with the existing processing method based on the Layer 2 ACL and the Layer 3 ACL.
  • the ACL type can be selected as follows: Layer 2 ACL, Layer 3 ACL, or ACL template.
  • Figure 10 shows. The process is as follows: If the user chooses to enable the Layer 2 ACL and the Layer 3 ACL, the content of the Layer 2 header field is extracted from the packets to be classified, and then matched with the rule table of the Layer 2 ACL.
  • a match hits a rule
  • the content of the Layer 3 and Layer 4 header fields is extracted from the message, and then matched with the rule table of the Layer 3 ACL. If the match hits a rule, the action corresponding to the rule is returned, and the action is performed. This action performs corresponding processing on the message.
  • the Layer 3 and Layer 4 header fields are extracted from the packets to be classified, and then matched with the Layer 3 ACL rule table. If the match matches a rule, the rule is returned. Corresponding actions are performed to perform corresponding processing on the message.
  • the matching conditions of the fields in the selected ACL profile you can specify the matching conditions of the fields in the selected ACL profile, and configure a specific ACL template rule to extract Layer 2 and Layer 3 packets from the packets to be classified according to the definition of the selected ACL profile. And the contents of the four-layer header field, and the configured ACL template Then, the matching is performed. If the matching hits, the action corresponding to the rule is returned, and the action is performed on the message.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Description

为数据流提供不同服务质量的方法 技术领域 本发明涉及通讯领域, 尤其涉及一种为数据流提供不同的 QoS (服务 质量) 的方法。
背景技术 在网络中, 需要对数据流进行流分类, 即对数据流进行识别、 分类。 然后, 根据流分类的结果, 对不同的数据流提供不同的 QoS (服务质量) , QoS也称为 "动作" , 包括丢弃、 改变优先级、 带宽限制等操作。
传统的流分类方法是根据报文的标准五元组对报文进行分类, 该五元 组即 IP报文的五个域: 源 IP地址、 目的 IP地址、 报文 IP头中的协议号、 TCP (传输控制协议)或 UDP (用户数据报协议) 源端口号、 TCP或 UDP目的 端口号。 该方法首先需要提取报文的五元组并构成一个 key (关键字) , 然 后, 将 key值满足一定条件的报文归为一类。
随着网络业务量的增大及用户对 QoS需求标准的不断提高, 传统的基 于五元组的分类方法已不能满足要求,需要对数据流进行更细粒度的划分, 因此,对报文进行分类时又增加了其它域,如源 /目的 MAC (媒体接入控制) 地址、 以太类型、 VLAN (虚拟局域网)优先级、 TOS (服务类型)、 分段 标志、 TCP同步标志等。
目前,在数据通信设备中,对数据流进行分类和动作通常通过 ACL (访 问控制列表)来实现, ACL是规则 (rule )和动作的组合, 规则即用于区分 某条数据流的特征, 例如{源 。=2222.2222.2222 >¾ 目的 IP=1.1.1.1}即 可构成一条规则。 ACL的处理流程如图 1所示。
在数据通信设备中, 实际应用的流分类技术主要有以下几种:
1、 无结构顺序匹配: 类似链表, 将 key和规则逐个进行匹配。
2、 HASH (哈希)散列: 先对 key值进行一级 Hash散列, 再匹配规则。
3、 预编译快速 ACL: 利用各种树运算技术, 快速定位到某个或某些规 则节点。
4、 TCAM (三态内容可寻址存储器)技术: 由硬件完成 key和规则的 匹配过程。
前三种实现均由软件来完成, 最大的问题在于匹配时间消耗过大。 当 前网络传输及路由器转发速度在不断的提高,这就要求在报文处理过程中, ACL规则表的查找速度也要相应地提高, 因此, TCAM技术是目前数据通 信设备中主要应用的流分类技术。
TCAM通常应用在 ACL实现中, TCAM的特点为通过硬件来完成规则 表的查找、 匹配过程。 其具体处理过程为: 首先在 TCAM中存放用户配置 的各种规则, 其中每一条规则都与某个动作相关联。 然后, 提取需要进行 分类的报文的五元组或多元组, 构成一个 key, 根据该 key查找在 TCAM中 存放的规则表, 与规则表中各项进行匹配, 成功匹配(命中)一条规则后, TCAM便返回对应的动作索引。
TCAM最大的优点在于查找速度快, 而且查找时间与表项数量无关, 因此在表容量很大时, 此优点尤为突出, 但 TCAM价格比较昂贵, 在实际 应用中, TCAM容量有一定的限制。 目前 TCAM硬件规格中定义了几种表 项长度: 72bits、 144bits和 288bits, ACL中的一个规则可以看作一个 TCAM 表项, 规则长度等于 key值长度, 因此, 存在如下关系:
TCAM容量 = key长度 (规则长度 ) x TCAM表项数。
为解决标准的五元组不能满足现有网络的需求的问题, 现有技术中一 种解决方案为: 在 ACL key中新增针对以太^ ^艮文的二层头字段(如源 /目的 MAC地址、 以太类型及 VLAN ID等) 、 三层头字段和四层头字段(如 TCP 同步标志等)。 由于受到 TCAM表项长度的限制, 无法将所有字段(二层、 三层和四层)同时放在一个 key中, 因此出现了所谓的二层 ACL及三层 ACL ( IPv4/IPv6 ACL ) , 在三层 ACL中包含了上述三层和四层头字段的内容, 其中二层 ACL的 key结构如图 2所示, IPv4三层 ACL的 key结构如图 3所示 , Ipv6三层 ACL的 key结构如图 4所示。
其中二层 ACL和 IPv4 ACL的 key长度均为 144比特, IPv6 ACL的 key为 288比特, 三种 ACL的规则表分别占用不同的 TCAM区域。
根据上述二层 ACL及三层 ACL, 用户在具体配置 ACL时, 有两种方式 可供选择: 1、在上述二层 ACL及三层 ACL中选择一种 ACL类型: 二层 ACL或者三 层 ACL。 然后, 实现模块会根据所选择的 ACL类型及需要处理的报文类型 进行相应处理, 具体处理流程如图 5所示, 具体处理过程筒单介绍如下: 如果用户选择使用二层 ACL, 则从待分类的报文中提取二层头字段的 内容, 然后, 和二层 ACL的规则表进行匹配, 如果匹配命中一条规则, 则 返回该规则对应的动作, 执行该动作对报文进行相应的处理;
如果用户选择使用三层 ACL, 则从待分类的报文中提取三层和四层头 字段的内容, 然后, 和三层 ACL的规则表进行匹配, 如果匹配命中一奈规 则, 则返回该规则对应的动作, 执行该动作对 4艮文进行相应的处理。
2、 若用户需要同时匹配报文的二、 三层字段, 可以通过两次 ACL来实 现,首先配置第一个 ACL (二层 ACL ),并将其动作指定为 "执行三层 ACL" , 将三层 ACL的动作指定为真正的 QoS策略。 处理流程如图 6所示, 具体处理 过程筒单介绍如下:
首先从待分类的报文中提取二层头字段的内容, 然后, 和二层 ACL的 规则表进行匹配, 如果匹配命中一条规则, 则继续从该报文中提取三层和 四层头字段的内容, 然后, 和三层 ACL的规则表进行匹配, 如果匹配命中 一条规则, 则返回该规则对应的动作, 执行该动作对报文进行相应的处理。
上述现有技术的解决方案的缺点为: 在该方案的第一种方式中, 用户 只能在二层 ACL及三层 ACL中选择一种类型的 ACL , 即不能同时匹配报文 的二、 三层字段。 因此, 无法实现细粒度的流量划分, 限制了用户的使用 效果。
在该方案的第二种方式中, 虽然可以实现二、 三层字段的同时匹配, 但是需要二次访问 TCAM (匹配 rule ) , 进行二次匹配规则表的操作, 甚至 还需要多访问一次 SRAM (静态存储器) 来查找动作, 因此, 对外设的带 宽提出了很高的要求, 而在路由设备中, 通常外设带宽资源非常有限, 因 而两次 ACL的执行很可能成为转发设备的性能瓶颈。
除此之外, 在实际应用中, 用户配置 ACL规则时, 很少会将规则表中 的字段都用到, 如对于以太 IPv4数据流, 用户可能只想识别出源 MAC和 目的 IP满足某条件的报文, 而不关心其它字段。 因此, 在实际应用中, 该 方案的规则表项的结构中很多字段没有用到, 造成 TCAM资源的浪费。 发明内容
有鉴于此, 本发明提供了一种为数据流提供不同的服务质量的方法, 从而可以实现根据用户需要灵活选择 ACL类型, 实现更细粒度的数据流分 类处理, 为数据流提供相应的 QoS。
本发明是通过以下技术方案实现的:
一种为数据流提供不同服务质量的方法, 包括:
定制常用访问控制列表 ACL规则模板;
流分类时利用所述规则模板指定匹配条件, 为数据流提供不同的服务 质量 QoS。
所述规则模板至少包括部分二层头字段、 部分三层头字段和部分四层 头字段中的其中之一。
所述规则模板的长度小于三态内容可寻址存储器 TCAM规格中定义的 表项长度。
将所述规则模板保存在模板库中, 用户可以在该模板库中进行增加、 删除、 修改操作。
在对数据流进行分类时, 选择一个规则模板并指定模板中各字段的匹 配条件。
利用所述规则模板, 配置各字段同时满足匹配条件的规则。
根据所述规则模板的定义, 从待处理的数据流中提取相应字段内容构 造关键字 key , 并与所述规则模板的规则进行匹配。
如果所述 key和所述规则模板的规则匹配, 则执行该规则所对应的动 作; 否则, 按照正常的转发流程对数据流进行转发。
由上述本发明提供的技术方案可以看出, 本发明通过给用户定制一些 ACL规则模板, 和现有技术相比具有如下优点:
1、 本发明无需增加 TCAM硬件投资, 通过给用户提供 ACL规则模板, 使用户配置流分类规则时可以根据需要灵活选择 ACL类型, 实现更细粒度 的流分类处理。
2、 本发明在用户需要同时匹配报文的二、 三层字段时, 只需执行一次 ACL即可满足用户的要求, 从而可以节约外设带宽资源。
3、本发明可以减少 TCAM中的无用字段,提高 TCAM资源的利用率。 附图说明
图 1为 ACL的具体处理流程图;
图 2为二层 ACL的 key结构示意图;
图 3为 Ipv4三层 ACL的 key结构示意图;
图 4为 Ipv6三层 ACL的 key结构示意图;
图 5为现有技术中使能二层 ACL或三层 ACL的处理方法的具体处理流 程图;
图 6为现有技术中同时使能二层 ACL和三层 ACL的处理方法的具体处 理流程图;
图 7为本发明为数据流提供不同服务质量的方法流程图;
图 8为本发明方法中 Ipv4 ACL规则模板实施例示意图;
图 9为本发明方法中 IPv6 ACL规则模板实施例示意图;
图 10为本发明的基于二层 ACL、 三层 ACL和四层 ACL以及 ACL模 板的处理方法流程图。
具体实施方式 本发明提供了一种给数据流提供不同的服务质量的方法。 本发明的核 心为: 在不增加 TCAM key长度的前提下,通过给用户提供一些常用的 ACL 规则模板, 使用户配置 ACL时既可以实现细粒度的流分类, 又不会对转发 性能产生影响。
下面结合附图来详细描述本发明, 本发明所述方法的具体处理流程如 图 7所示, 包括如下步骤:
步骤 7-1 : 根据用户的需求, 定制一些 ACL模板;
本发明中, 首先需要根据用户的需求, 定制一些 ACL模板, 该 ACL模 板可以同时包括部分二层 ACL信息、 部分三层 ACL信息及部分四层 ACL信 息。 该模板的长度不能超出现有的 TCAM规格中定义的表项长度。 因此, 定制的 ACL模板中不能包括所有的二层 ACL和三层 ACL信息, 但模板的定 制基于用户实际使用中常用的配置, 因此可以满足大多数用户的需求。 例如, 可以给用户定制这样一个识别 IPv4报文的 ACL模板: < MAC 地址, 源 IP地址, 目的 IP地址, TOS, 协议号 >, 该模板的结构如图 8所示。
对于 IPv6 ACL而言, 由于其 IP地址的特殊性, 同样可以采用类似方法 构造一些 ACL模板。 目前的 IPv6 ACL只实现了 IPv6的单播流分类处理。 IPv6 单播地址分为两类: 全局地址(高 64位的地址和低 64位的地址, 其中高 64 位地址表示网络前缀, 低 64位地址表示接口索引)和由 IPv4地址映射出的 IPv6地址(高 64位没有意义) 。
因此, 我们可以根据用户的需求, 定制一些不同的 IPv6 ACL模板。 即 分別选取 IPv6地址的高 64位地址或低 64位地址中的一部分, 与报文的部分 二层信息共同组成 IPv6 ACL规则模板, 实现更细粒度的 IPv6 ACL。 例如, 可以构造如下的 IPv6 ACL模板: o^MAC, 源 IP (低 64bits), 目的 IP, 协议 号>, 该模板的结构如图 9所示。
步骤 7-2: 将定制的 ACL模板保存在路由器的模板库中;
在根据用户的需求定制了一些 ACL模板后, 本发明需要在路由器中维 护一个模板库, 并将上述定制的一些 ACL模板保存在该模板库中, 用户可 以根据实际需要在该模板库中进行增加、 删除、 修改等操作。
步驟 7-3: 在需要进行流分类操作时, 从中选择一个 ACL模板并指定匹 配条件;
当用户需要根据上述定制的 ACL模板对一具体的数据流进行分类操作 时, 便从上述模板库选择一个需要的 ACL模板。 然后指定选择的 ACL模板 中各字段的匹配条件, 即配置一条具体的 ACL模板规则, 存于 TCAM中。
例如, 根据上面所述的图 8所示的 ACL模板, 可以配置如下的规则: MAC=00e0.fcfa.0000, 源 IP=2.2.2.2/24, 目的 IP=4.4.4.4/24, TOS = 0x4c, 协议号 =6 }。
根据上面所述的图 9所示的 ACL模板, 可以配置如下的规则:
{ 源 MAO 0e0.fcfa.0000 , VLAN ID=0x3 , 源 IP( 低 64bits)=0:0:C934:12FE, 目的 IP=2008::1, Traffic Class=0xc, 协议号 =17} 步骤 7-4: 根据选择的 ACL模板, 从报文中提取出相应的字段内容并构 成 Key;
根据上述选择的 ACL模板的定义, 从待处理的数据流报文中提取出相 应的字段内容, 比如, 可以提取出报文的二、 三层和四层头字段中的部分 内容, 然后, 将提取出的内容构成一个 key。
步骤 7-5: Key和 ACL规则是否匹配;
将所述构成的 key与配置的 ACL规则进行匹配,如果成功匹配(命中), 则执行步骤 7- 6; 否则, 执行步骤 7-7。
步骤 7-6: 执行和该 ACL规则对应的动作;
如果所述 key和配置的 ACL模板规则能够匹配, 则 TCAM会返回对应的 动作索引, 根据该动作索引找到相应的动作, 执行该动作给数据流提供相 应的 QoS策略。
步骤 7-7: 对报文进行正常转发。
如果所述 key和配置的 ACL模板规则不能够匹配, 则按照正常转发流 程, 对待处理数据流报文进行正常转发。
图 10为本发明的基于二层 ACL、 三层 ACL和四层 ACL以及 ACL模板的 处理方法流程图。 本发明所述方法可以和现有的基于二层 ACL和三层 ACL 的处理方法相结合, 即用户配置 ACL规则时, 可以根据需要选择 ACL类型: 二层 ACL、 三层 ACL或 ACL模板, 如图 10所示。 具体处理过程介绍如下: 如果用户选择同时使能二层 ACL和三层 ACL, 则首先从待分类的报文 中提取二层头字段的内容, 然后, 和二层 ACL的规则表进行匹配, 如果匹 配命中一条规则, 则继续从该报文中提取三层和四层头字段的内容, 然后, 和三层 ACL的规则表进行匹配, 如果匹配命中一条规则, 则返回该规则对 应的动作, 执行该动作对报文进行的相应处理。
如果用户选择使能三层 ACL, 则从待分类的报文中提取三层和四层头 字段的内容, 然后, 和三层 ACL的规则表进行匹配, 如果匹配命中一条规 则, 则返回该规则对应的动作, 执行该动作对报文进行相应的处理。
如果用户选择使能 ACL模板, 则指定选择的 ACL模板中各字段的匹配 条件, 配置一条具体的 ACL模板规则, 根据选择的 ACL模板的定义, 从待 分类的报文中提取二层、 三层和四层头字段的内容, 和配置的 ACL模板规 则进行匹配, 如果匹配命中, 则返回该规则对应的动作, 执行该动作对报 文进行的相应处理。
以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并 不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内 , 可轻易想到的变化或替换, 都应被涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应该以权利要求的保护范围为准。

Claims

权 利 要 求
1、 一种为数据流提供不同服务质量的方法, 包括:
定制常用访问控制列表 ACL规则模板;
流分类时利用所述规则模板指定匹配条件, 为数据流提供不同的服务 质量 QoS。
2、 根据权利要求 1所述的方法, 其特征在于: 所述规则模板至少包括 部分二层头字段、 部分三层头字段和部分四层头字段中的其中之一。
3、 根据权利要求 2所述的方法, 其特征在于: 所述规则模板的长度小
4、 根据权利要求 1所述的方法, 其特征在于: 将所述规则模板保存在 模板库中, 用户可以在该模板库中进行增加、 删除、 修改操作。
5、 根据权利要求 1、 2或 4所述的方法, 其特征在于: 在对数据流进行 分类时, 选择一个规则模板并指定模板中各字段的匹配条件。
6、 根据权利要求 5所述的方法, 其特征在于: 利用所述规则模板, 配 置各字段同时满足匹配条件的规则。
7、 根据权利要求 6所述的方法, 其特征在于: 根据所述规则模板的定 义, 从待处理的数据流中提取相应字段内容构造关键字 key, 并与所述规则 模板的规则进行匹配。
8、根据权利要求 7所述的方法, 其特征在于: 如果所述 key和所述规则 模板的规则匹配, 则执行该规则所对应的动作; 否则, 按照正常的转发流 程对数据流进行转发。
PCT/CN2006/001080 2005-08-19 2006-05-24 Method for providing the different quality of service for data stream WO2007019755A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNB2005100909049A CN100433715C (zh) 2005-08-19 2005-08-19 给数据流提供不同的服务质量策略的方法
CN200510090904.9 2005-08-19

Publications (1)

Publication Number Publication Date
WO2007019755A1 true WO2007019755A1 (en) 2007-02-22

Family

ID=37390472

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2006/001080 WO2007019755A1 (en) 2005-08-19 2006-05-24 Method for providing the different quality of service for data stream

Country Status (2)

Country Link
CN (1) CN100433715C (zh)
WO (1) WO2007019755A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114785534A (zh) * 2022-01-06 2022-07-22 新华三技术有限公司 通信方法及装置

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1964325B (zh) * 2006-11-24 2010-08-18 中兴通讯股份有限公司 流分类中快速进行等价类划分的方法
CN101141284B (zh) 2007-01-31 2011-01-19 中兴通讯股份有限公司 业务带宽配置方法和网管系统
CN101399747B (zh) * 2007-09-27 2011-03-16 中兴通讯股份有限公司 Acl配置实现方法
US8295198B2 (en) * 2007-12-18 2012-10-23 Solarwinds Worldwide Llc Method for configuring ACLs on network device based on flow information
CN101447917B (zh) * 2008-03-04 2011-09-21 中兴通讯股份有限公司 策略控制方法和装置
CN101594556B (zh) * 2008-05-28 2012-08-29 工业和信息化部电信传输研究所 一种在gpon系统中数据流分类的远程管理装置
CN101651623B (zh) * 2009-09-07 2012-05-23 中兴通讯股份有限公司 访问控制列表应用的生成方法及装置
CN101895467A (zh) * 2010-07-08 2010-11-24 中兴通讯股份有限公司 报文过滤方法和装置
TWI489825B (zh) * 2010-08-24 2015-06-21 Gemtek Technolog Co Ltd 路由設備及其網路封包處理方法
CN103685058B (zh) * 2012-09-11 2017-05-17 北京信息科技大学 控制流数据的服务质量的方法和OpenFlow控制器
CN104380658B (zh) * 2013-04-28 2018-06-05 华为技术有限公司 流分类器、业务路由触发器、报文处理的方法和系统
CN104579940B (zh) * 2013-10-10 2017-08-11 新华三技术有限公司 查找访问控制列表的方法及装置
CN105591914B (zh) * 2014-10-21 2020-07-03 中兴通讯股份有限公司 一种openflow流表的查表方法和装置
CN107124366B (zh) * 2016-02-24 2020-12-11 中兴通讯股份有限公司 一种实现服务质量控制的方法、装置及系统
CN106301970A (zh) * 2016-10-27 2017-01-04 盛科网络(苏州)有限公司 一种使用转发表收敛以减少tcam表项消耗的芯片实现方法
CN109194665B (zh) * 2018-09-17 2020-10-20 盛科网络(苏州)有限公司 一种报文查找键值的生成方法及装置
CN109547502A (zh) * 2019-01-22 2019-03-29 成都亚信网络安全产业技术研究院有限公司 防火墙acl管理方法及装置
CN112073357A (zh) * 2019-06-10 2020-12-11 中兴通讯股份有限公司 一种访问控制列表下发方法及装置

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1403952A (zh) * 2002-09-24 2003-03-19 武汉邮电科学研究院 一种以太网认证接入的方法
CN1411218A (zh) * 2002-04-23 2003-04-16 华为技术有限公司 分片报文的网络访问控制方法

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1414757A (zh) * 2002-05-08 2003-04-30 华为技术有限公司 自动按序配置访问控制列表规则的方法及其应用
US7509674B2 (en) * 2003-10-07 2009-03-24 Alcatel Lucent Access control listing mechanism for routers

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1411218A (zh) * 2002-04-23 2003-04-16 华为技术有限公司 分片报文的网络访问控制方法
CN1403952A (zh) * 2002-09-24 2003-03-19 武汉邮电科学研究院 一种以太网认证接入的方法

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114785534A (zh) * 2022-01-06 2022-07-22 新华三技术有限公司 通信方法及装置
CN114785534B (zh) * 2022-01-06 2023-10-27 新华三技术有限公司 通信方法及装置

Also Published As

Publication number Publication date
CN1863142A (zh) 2006-11-15
CN100433715C (zh) 2008-11-12

Similar Documents

Publication Publication Date Title
WO2007019755A1 (en) Method for providing the different quality of service for data stream
US10778612B2 (en) Variable TCAM actions
Van Lunteren et al. Fast and scalable packet classification
US8730967B1 (en) Policy-based virtual routing and forwarding (VRF) assignment
CN104823416B (zh) 实现OpenFlow的软件定义网络中的报文排序的装置和方法
JP5567641B2 (ja) 仮想ルータ機能を提供する方法
US7525958B2 (en) Apparatus and method for two-stage packet classification using most specific filter matching and transport level sharing
US7039018B2 (en) Technique to improve network routing using best-match and exact-match techniques
CN112437009B (zh) SRv6端到端流策略的方法、路由器、路由系统和存储介质
KR100920518B1 (ko) 패킷 분류 장치 및 방법
US20080205403A1 (en) Network packet processing using multi-stage classification
US20070171911A1 (en) Routing system and method for managing rule entry thereof
CN104488235B (zh) 报文转发方法和网络设备
CN102487374B (zh) 一种访问控制列表实现方法及装置
CN1465014A (zh) 使用tcam实现数据流的选择性路由
CN102427428A (zh) 基于多域最长匹配的流识别方法及设备
CN104579940A (zh) 查找访问控制列表的方法及装置
WO2016074502A1 (zh) 实现虚拟防火墙的方法及装置
WO2022127714A1 (zh) 一种默认策略路由的芯片实现方法、数据报文的芯片处理方法及装置
CN104641607B (zh) 一种用于做出超低延迟处理决策的方法及装置
CN101222434B (zh) 存储策略控制列表、策略搜索方法和三态寻址存储器
CN119233358A (zh) 用于应用识别和路径选择的方法、无线接入点及存储介质
CN105656786A (zh) 一种基于快、慢表的路由器查表方法
WO2010031354A1 (zh) 帧处理的方法、装置和系统
US10205658B1 (en) Reducing size of policy databases using bidirectional rules

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 06741968

Country of ref document: EP

Kind code of ref document: A1