WO2007048318A1 - A stream classification device, a stream classification method and a base station applying the stream classification device - Google Patents

A stream classification device, a stream classification method and a base station applying the stream classification device Download PDF

Info

Publication number
WO2007048318A1
WO2007048318A1 PCT/CN2006/002712 CN2006002712W WO2007048318A1 WO 2007048318 A1 WO2007048318 A1 WO 2007048318A1 CN 2006002712 W CN2006002712 W CN 2006002712W WO 2007048318 A1 WO2007048318 A1 WO 2007048318A1
Authority
WO
WIPO (PCT)
Prior art keywords
ssid
stream
classification
cid
protocol data
Prior art date
Application number
PCT/CN2006/002712
Other languages
French (fr)
Chinese (zh)
Inventor
Liubo Mei
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 WO2007048318A1 publication Critical patent/WO2007048318A1/en

Links

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/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2441Traffic characterised by specific attributes, e.g. priority or QoS relying on flow classification, e.g. using integrated services [IntServ]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/08Access point devices

Definitions

  • the present invention relates to a stream classification technique, and more particularly to a stream classification apparatus and method for classifying a higher layer protocol data stream such as an Ethernet or an IP packet, and a base station (BS) employing the stream classification apparatus.
  • a higher layer protocol data stream such as an Ethernet or an IP packet
  • BS base station
  • MAC medium access control
  • CS service identification convergence sublayer
  • CPS&SS public part sublayer and security sublayer
  • the PHY layer is mainly used to establish physical connections, implement channel baseband coding and decoding, medium-frequency RF modulation and demodulation, and RF subsystem control.
  • the MAC layer is mainly used to establish logical connections, realize the identification and classification of service flows, the establishment and management of logical connections, bandwidth allocation and scheduling, and data encryption and decryption.
  • the CS is configured to receive data from an upper layer of the MAC layer, and send the converted and processed data to the CPS.
  • the specific processing operations may include association of an upper layer data classification, a service flow identifier (SFID), and a connection identifier (CID). And header compression (PHS), etc.; as the core sublayer of the MAC layer, CPS is used for MAC layer data framing, uplink and downlink bandwidth allocation and scheduling, connection establishment and maintenance, and guaranteed service (QoS) processing;
  • Encryption sublayer, SS is used to encrypt user data.
  • CS For CS, CS for Asynchronous Transfer Mode (ATM) is defined in 802.16, and CS for Ethernet or IP packets.
  • the present invention is primarily related to the implementation of the CS.
  • the main function of the package CS defined by 802.16 is through traffic classification, such as Ethernet or IP packets.
  • traffic classification such as Ethernet or IP packets.
  • Such a high-level protocol data flow to the connection identifier (CID) mapping that is, to find the corresponding CID of each data packet and add it to each data packet, so as to distinguish the upper layer data packet into different connections.
  • CID connection identifier
  • 802.16 defines a comprehensive and complex traffic classification related protocol domain, including: MAC destination address, MAC source address, 802.1p, virtual local area network identifier (VLAN ID), Ethernet type, IP destination address, IP source address, IP protocol type, User Datagram Protocol/Transmission Control Protocol (UDP/TCP) destination port, UDP/TCP source port, IP Differentiated Service Code Point (DSCP) domain, and required to be able to match flows exactly, by mask, by range
  • the classification rule that is, the multi-domain flow classification function.
  • the current wireless network access is usually implemented by a base station located on the network side and a subscriber station (SS) located on the user terminal side.
  • SS subscriber station
  • one BS is connected to multiple SSs, where the BS is used to connect multiple SSs.
  • the SS is used to provide access to the network for multiple user terminals.
  • the traffic classification is done by the BS side.
  • the traffic classification is done by the SS side.
  • the traffic classification is done by the SS side.
  • the traffic classification is done by the SS side.
  • SS side Commonly, they support 802.16. This paper mainly deals with downstream classification devices and methods from BS to multiple SSs.
  • the prior art BS 100 includes: a PHY layer device 130, and a MAC layer device 110 including a CS device 115 and a CPS&SS device 114.
  • the CS device 115 includes a downstream classifier (DLC) 156 as a traffic classification device, and the DLC 156 stores a traffic classification rule of the BS 100. Commonly, it uses a three-value content addressed access memory (TCAM) and a recursive traffic classification algorithm. (RFC) or a binary tree based lookup algorithm (Tries) and its corresponding improved algorithm for stream classification of data packets.
  • TCAM three-value content addressed access memory
  • RRC recursive traffic classification algorithm
  • Tries binary tree based lookup algorithm
  • the CS device 115 is configured to receive data packets from the upper layer of the MAC layer through the MAC layer upper layer interface AO.
  • the data from the interface AO generally appears as a to-be-served data unit of the external network, and the data is found by the DLC 156 according to the stored traffic classification rule.
  • the packet with the CID field added to the CPS&SS device 114 is transmitted through the interface A1.
  • the CPS&SS device 114 is configured to receive the CID field-added data packet from the CS device 115 through the interface A1, schedule and encrypt according to its CID, and transmit the framed MAC layer data frame to the PHY device 130.
  • the PHY layer device 130 receives the MAC layer data frame from the MAC layer device 110, performs channel coding and decoding thereof, and performs intermediate radio frequency modulation and demodulation, and then transmits it to the corresponding ss.
  • the two SSs are: SS1, which is connected with a user terminal whose MAC is "0x000011111111”; SS2 is connected to a user whose MAC is "0x000011111112"
  • the terminal implements a bridging function in the BS0, in which two service flows are configured for the user terminal connected to the SS1, and three service flows are configured for the user terminal connected to the SS2. That is to say, BS0 will forward the packet with the MAC destination address "0x000011111111” to SS1, and the packet with the MAC destination address "0x000011111112" will be forwarded to SS2.
  • FIG. 2 is a structural diagram of a traffic classification device using the prior art BS0.
  • the DLC 156 as the traffic classification device stores a packet for searching for the upper layer from the MAC layer.
  • the CID traffic classification rule is defined according to the 802.16-2004 standard.
  • One possible traffic classification rule is shown in Table 1.
  • Table 1 is the flow classification rule table of DLC 156, and each flow classification rule is listed in Table 1. The rule description, the CID of the rule map, and the SS of the CID connection.
  • the CID connection rule describes the mapped CID
  • IP Protocol 6
  • TCP SPort 161 ⁇
  • DLC 156 receives a total of five data packets, which are: packet 1 matching flow classification rule 11, packet 2 matching flow classification rule 21, packet 3 matching flow classification rule 31, and flow Classification rule 41 matched packet 4, packet 5 matching the flow classification rule 51.
  • the prior art flow classification method is as follows: After the DLC 156 finds the CID according to the flow classification rule in Table 1, the corresponding CID field is added to the data packet and the data packet with the CID field added is output, which are: CID2 packet 1, BS0 will forward the packet to SS1; add CID4 packet 2, BS0 will forward the packet to SS1; add CID1 packet 3, BS0 will forward the packet to SS2; Add For packet 4 of CID3, BS0 will forward the packet to SS2; packet 5 with CID5 is added, and BS0 will forward the packet to SS2.
  • the DLC 156 often uses a three-value content addressed access memory (TCAM) and a recursive flow classification algorithm (RFC).
  • TCAM three-value content addressed access memory
  • RRC recursive flow classification algorithm
  • the advantage is that high-speed, large-capacity multi-domain stream classification can be realized, but the disadvantage is that the cost is higher when using TCAM, and it is not conducive to Range matching, and using RFC or Tries and their corresponding changes When entering the algorithm, a balance must be found between the memory resource and the search speed. If the number of streams is small, the algorithm of the single block can be used. If the number of streams is large, a more complicated algorithm must be used. In general, the prior art flow classification apparatus and method can realize high-speed, large-capacity multi-domain flow classification, but occupy a large memory resource and have high cost. Summary of the invention
  • the present invention provides a stream classification apparatus, which includes a subscriber station identification SSID search module and one or more flow classifiers respectively corresponding to different SSIDs, and the SSID search module respectively and each Flow classifier connection,
  • the SSID searching module searches for the SSID of the higher layer protocol data stream received by the SSID according to the SSID classification rule, and transmits the received higher layer protocol data stream to the stream classifier corresponding to the SSID according to the obtained SSID;
  • Each of the stream classifiers corresponding to the different SSIDs searches for the CID of the received higher layer protocol data stream according to the connection identifier CID classification rule, and outputs the upper layer protocol data stream after adding the CID field.
  • the SSID lookup module includes: a memory for storing an SSID classification rule and a processor for performing an SSID lookup operation.
  • the flow classifier corresponding to each different SSID includes: a memory for storing a CID classification rule and a processor for performing a CID search operation.
  • the memory is a static random access memory (SRAM) or a dynamic random access memory (DRAM).
  • the processor is a field programmable gate array FPGA, a network processor NP, or a central processing unit CPU.
  • the present invention provides a flow classification method, which is applicable to a flow classification device including an SSID search module and one or more flow classifiers respectively corresponding to different SSIDs, the method comprising:
  • the SSID search module receives the upper layer protocol data stream, searches for the SSID of the upper layer protocol data stream, and sends the higher layer protocol data stream to the stream classifier corresponding to the SSID according to the obtained SSID;
  • Each stream classifier receives the upper layer protocol data stream, searches the CID of the upper layer protocol data stream, and adds the corresponding CID field to the upper layer protocol data stream, and outputs the upper layer protocol data stream after adding the CID field.
  • the one or more flow classifiers respectively corresponding to different SSIDs are: each flow classifier corresponding to each SSID-one; or each flow classifier corresponding to one or more SSIDs, and corresponding to each flow classifier SSIDs do not overlap each other.
  • the high-level protocol data stream is: an Ethernet packet or an IP packet.
  • the present invention provides a base station BS including a physical layer device for establishing a physical connection and a medium access control MAC layer device for establishing a logical connection, the MAC layer device including Service Identification Convergence Sublayer CS Equipment and Common Part Sublayer and Security Sublayer CPS&SS Equipment:
  • the MAC layer device further includes a stream classification device, the device comprising an SSID lookup module and one or more flow classifiers respectively corresponding to different SSIDs, the SSID lookup modules being respectively connected to each flow classifier,
  • the SSID search module searches for a high-level protocol received by itself according to the SSID classification rule.
  • the SSID of the data stream and transmitting the received higher layer protocol data stream to the stream classifier corresponding to the SSID according to the obtained SSID;
  • Each of the stream classifiers corresponding to the different SSIDs searches for the CID of the received higher layer protocol data stream according to the CID classification rule, and outputs the higher layer protocol data stream after adding the CID field to the CPS&SS device.
  • the one or more flow classifiers corresponding to different SSIDs are located in the CS device.
  • the SSID search module is located in the CS device.
  • the SSID lookup module includes: a memory for storing an SSID classification rule and a processor for performing an SSID lookup operation.
  • the flow classifier corresponding to each different SSID includes: a memory for storing a CID classification rule and a processor for performing a CID search operation.
  • the traffic classification apparatus and method provided by the present invention divides a large number of traffic classification rules in the prior art into multiple DLCs according to a subscriber station identifier (SSID), for a specific data packet,
  • the first stream classification is performed by the SSID search module to obtain the user station identifier (SSID) of the data packet, and the data packet with the SSID field added is sent to the DLC corresponding to the SSID, and then the DLC pair corresponding to the SSID is added.
  • the data packet of the SSID field is subjected to secondary stream classification to obtain the CID of the data packet, and the data packet to which the CID field is added is output.
  • the secondary flow classification only needs to find the corresponding CID in a small number of traffic classification rules corresponding to one SSID, so the rule space of the two flow classifications is compared with the prior art.
  • the flow classification rule space is much smaller, which makes the two flow classifications adopt the direct matching method, that is, extracting several domains from the head of the data packet, and comparing each relevant domain of each matching space one by one until it finds Up to the matching rules, the purpose of occupying memory resources is small and the cost is low.
  • FIG. 1 is a structural view of a BS in the prior art
  • FIG. 2 is a structural diagram of a flow classification device using the prior art BS0;
  • Figure 3 is a structural view of a BS in the present invention.
  • Fig. 4 is a structural diagram of a stream sorting apparatus using the BS0 of the present invention. Mode for carrying out the invention
  • the core idea of the present invention is: dividing a large number of traffic classification rules in the prior art into multiple DLCs according to different SSs, where each DLC performs flow classification on only one SS corresponding data packet, or more than one or more The SS corresponding packet performs flow classification.
  • SSs which are SS1, SS2, SS3, SS4, and SS5.
  • DLCs corresponding to 5 SSs respectively.
  • DLC2 corresponds to SS4 and SS5.
  • the actual setting method can be determined according to the actual application needs.
  • For the received data packet first find the SSID of the SS corresponding to the data packet, and then send the data packet to the DLC corresponding to the SSID to perform flow classification according to the SSID obtained by the search.
  • the stream classification apparatus of the present invention includes: an SSID lookup module 370 and a plurality of DLCs 356 divided according to SSIDs, wherein the SSID lookup module 370 and the plurality of DLCs 356 are connected to each other.
  • the SSID lookup module 370 stores the SSID classification rule of the BS 300, which The data packet from the upper layer of the MAC layer is received through the interface AO, and the SSID of the data packet is found according to the stored SSID classification rule, and the received data packet is sent to the DLC 356 corresponding to the SSID according to the SSID obtained by the search.
  • Each DLC 356 stores a CID classification rule divided by the BS 300 according to the SSID, and each DLC 356 receives the data packet from the SSID search module 370, finds the CID of the data packet according to the CID classification rule stored by itself, and sets the corresponding CID. After the field is added to the specific data packet, the data packet to which the CID is added is transmitted to the CPS&SS device 114 through the interface A1.
  • the SSID search module 370 is located between the upper layer interface AO of the MAC layer and the plurality of DLCs 356 divided according to the SSID.
  • the plurality of DLCs 356 according to the SSID are often located in the CS device 315, and the SSID lookup module 370 can be as shown in FIG. 3. It is shown in the CS device 315 and may also be located outside of the CS device 315. If the SSID lookup module is located outside of the CS device, it may further include an interface A2 with the CS device to transmit the data packet to the corresponding DLC.
  • the SSID lookup module 370 and each of the plurality of DLCs 356 partitioned according to the SSID include a memory for storing stream classification rules and a processor for performing a lookup operation.
  • the memory may be static random access memory (SRAM) or dynamic random access memory (DRAM)
  • the processor may be a field programmable gate array (FPGA), a network processor (NP), or a central processing unit ( CPU).
  • FIG. 4 is a structural diagram of a flow classification device using BS0 of the present invention, the flow classification device includes: SSID search The module 370, DLC1 corresponding to SS1, and DLC2 corresponding to SS2, wherein the SSID lookup module 370 is connected to DLC1 and DLC2, respectively.
  • the SSID search module 370 stores a flow classification rule for searching for an SSID of a data packet from an upper layer of the MAC layer, and the flow classification rule is as shown in Table 2, and Table 2 is an SSID search module.
  • the DLC1 stores a traffic classification rule for finding the CID of the data packet to be forwarded to the SSI.
  • the flow classification rule is shown in Table 3.
  • Table 3 is the flow classification rule table of the DLC1.
  • the DLC2 stores a flow classification rule for finding the CID of the data packet to be forwarded to the SS2.
  • the flow classification rule is shown in Table 4.
  • Table 4 is the flow classification rule table of the DLC2.
  • the five traffic classification rules in Table 1 in the prior art are divided according to the SS, wherein the traffic classification rules 11 and 21 applicable to the data packets to be forwarded to the SS1 are divided into the DLC1. Among them, the flow classification rules 31, 41, and 51 applicable to the data packet to be forwarded to SS2 are divided into DLC2.
  • the stream classification apparatus of the present invention receives a total of five data packets, which are: packet 1 matching the traffic classification rule 11, and obviously, the packet 1 and the traffic classification rule 12 are further matched with the traffic classification rule 13 ; packet 2 matching the flow classification rule 21, obviously, the packet 2 is matched with the flow classification rule 12 and further with the flow classification rule 23.; the packet 3 matching the flow classification rule 31, obviously, the packet 3 Matching with the traffic classification rule 22 and further with the traffic classification rule 14; the data packet 4 matching the traffic classification rule 41, obviously, the data packet 4 and the traffic classification rule 22 are further matched with the traffic classification rule 24; and the traffic classification rule 51 The matched packet 5, obviously, packet 5 is matched with the traffic classification rule 22 and further with the traffic classification rule 34.
  • a DLC performs traffic classification only for packets belonging to one SS.
  • BS0 is connected to three SSs, including SS1, SS2, and SS3.
  • the traffic classification rules for SS1 and SS2 can also be stored in DLC1, and the traffic classification rules corresponding to SS3 are stored in DCL2.
  • DLC1 performs flow classification on packets belonging to SS1 and SS2;
  • DLC2 performs flow classification on packets belonging to SS3.
  • the method for classifying a packet of an upper layer MAC packet by using the stream classifying apparatus of the present invention includes the following steps. Before performing the method, the correspondence between each SSID and the corresponding DLC interface needs to be set according to the DLC corresponding to each SSID.
  • the DLC interface here refers to the interface between the DLC and the SSID lookup module. Therefore, in the present invention, as long as the SSID is found, the data packet can be sent to the DLC corresponding to the SSID for processing according to the interface of the DLC corresponding to the SSID.
  • the SSID search module After receiving the MAC layer upper layer data packet, the SSID search module searches for the SSID of the data packet according to the flow classification rule stored in the SSID for searching, and sends the data packet to the SSID corresponding to the SSID according to the DLC interface corresponding to the SSID. Processing in the DLC.
  • the SSID lookup module 370 matches the DMAC and VLAN fields of the packets 1 to 5 according to Table 2, and since the DMAC and VLAN fields of the packets 1 and 2 match the flow classification rule 12, the SSID lookup module 370 Finding data packets 1 and 2 corresponding to SSID1, then transmitting data packets 1 and 2 to DLC1 for processing according to the DLC1 interface corresponding to SSID1; since the DMAC and VLAN fields of data packets 3 ⁇ 5 match the traffic classification rule 22 Similarly, the SSID lookup module 370 sends the packets 3 ⁇ 5 to the DLC2 for processing.
  • the plurality of DLCs After receiving the data packets from the SSID lookup module 370, the plurality of DLCs respectively find the CIDs of the data packets according to the respective flow classification rules, respectively add the corresponding CID fields to the data packets and output the data packets with the CID field added. .
  • the DLC1 matches the corresponding fields of the data packets 1 and 2 according to the flow classification rule table 3, since the data packets 1 and 2 are respectively associated with the traffic classification. Rules 31 and 32 match, so DLC1 adds the CID2 field and the CID4 field on packets 1 and 2, respectively, and outputs packets 1 and 2 to which the CID field is added.
  • DLC2 when DLC2 receives the data packets 3 ⁇ 5 from the SSID lookup module 370, the corresponding fields of the data packets 3-5 are matched according to the flow classification rule table 4, because the data packets 3, 4, and 5 respectively correspond to the flow classification rules. 14, 23, 34 match, so DLC2 adds a CID1 field, a CID3 field, and a CID5 field on packets 3, 4, and 5, respectively, and outputs a packet 3-5 with the CID field added.
  • the traffic classification rules for SS1 and SS2 may also be stored in the DLC1, and the traffic classification rules corresponding to the SS3 may be stored in the DCL2.
  • DLC1 performs flow classification on data packets belonging to SS1 and SS2;
  • DLC2 performs flow classification on data packets belonging to SS3.
  • the specific processing method is the same as the method described above, except that the flow classification is performed on the data packets sent to the three SSs, and the corresponding The SSID is sent to the corresponding DLC for processing, and the specific process will not be described in detail herein.
  • the rules are matched by the direct matching method in both the SSID lookup module and the DLC, the rules occupy the SSID lookup module and the size of the memory in the DLC is equal to the sum of the sizes of each rule.
  • the key value of each flow rule is 128 bits.
  • RFC is used for traffic classification, considering the drastic changes of the entries and the redundancy switching of the entries, it takes 30 Mbits of memory space when using RFC.
  • the memory control required by the rules in the SSID lookup module and the stream classifier is only 1.256 Mbits.
  • the price of mass storage is much larger than the sum of the prices of the small-capacity memories having the same capacity sum.
  • the method provided by the present invention achieves the purpose of less occupation of memory resources and lower cost.
  • the rules are assigned to different DLCs for matching, the speed of the flow classification can be handled by the present invention, and the processing speed of the flow classification can be flexibly adjusted according to the rules assigned to the DLC.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A stream classification device comprise a subscriber station identifier SSID searching module and more than one stream classifier corresponding to various SSID, the said SSID searching module is connected to each stream classifier respectively, the said SSID searching module searches the SSID of the high layer protocol data stream received by itself according to SSID classification rule, and transmits the received high layer protocol data stream to the stream classifier corresponding to the SSID; the said each stream classifier corresponding to various SSID, searches the CID of the received high layer protocol data stream according to connection identifier CID classification rule, and outputs the high layer data stream appended with CID field. The invention also comprises a stream classification method and a base station BS applying the stream classification device. The stream classification device and method provided in the invention occupies less memory resource, and reduces the cost.

Description

一种流分类装置和方法以及采用该流分类装置的基站  Flow classification device and method, and base station using the same
技术领域 Technical field
本发明涉及流分类技术, 特别涉及用于对诸如以太网或者 IP 包 ( Packet )之类高层协议数据流进行分类的流分类装置和方法以及采用 该流分类装置的基站(Base Station, BS )。 发明背景  The present invention relates to a stream classification technique, and more particularly to a stream classification apparatus and method for classifying a higher layer protocol data stream such as an Ethernet or an IP packet, and a base station (BS) employing the stream classification apparatus. Background of the invention
当前, 在世界微波接入互操作组织 (WiMAX ) 的宽带无线接入标 准 802.16 中, 定义了物理 (PHY )层和媒体接入控制 (MAC )层, 其 中 MAC层又包括服务识别会聚子层 (CS )、 公共部分子层和安全子层 ( CPS&SS )。  Currently, in the Broadband Wireless Access Standard 802.16 of the World Microwave Access Interoperability Organization (WiMAX), a physical (PHY) layer and a medium access control (MAC) layer are defined, wherein the MAC layer further includes a service identification convergence sublayer ( CS), public part sublayer and security sublayer (CPS&SS).
具体来说, PHY层主要用于建立物理连接, 实现信道基带编码和解 码、 中射频调制解调、 射频子系统控制等功能。  Specifically, the PHY layer is mainly used to establish physical connections, implement channel baseband coding and decoding, medium-frequency RF modulation and demodulation, and RF subsystem control.
MAC层主要用于建立逻辑连接, 实现业务流的识别和分类、 逻辑 连接的建立和管理、带宽分配和调度以及数据加密和解密等功能。其中, CS用于接收来自 MAC层上层的数据,并将经转换和处理后的数据发送 到 CPS, 具体的处理操作可包括上层数据分类、 业务流标识(SFID )与 连接标识(CID )的关联以及包头压缩(PHS )等; 作为 MAC层的核心 子层, CPS用于 MAC层数据成帧、 上下行带宽分配和调度、 连接的建 立和维护以及保证服务(QoS )处理等; 作为 MAC层的加密子层, SS 用于对用户数据进行加密。  The MAC layer is mainly used to establish logical connections, realize the identification and classification of service flows, the establishment and management of logical connections, bandwidth allocation and scheduling, and data encryption and decryption. The CS is configured to receive data from an upper layer of the MAC layer, and send the converted and processed data to the CPS. The specific processing operations may include association of an upper layer data classification, a service flow identifier (SFID), and a connection identifier (CID). And header compression (PHS), etc.; as the core sublayer of the MAC layer, CPS is used for MAC layer data framing, uplink and downlink bandwidth allocation and scheduling, connection establishment and maintenance, and guaranteed service (QoS) processing; Encryption sublayer, SS is used to encrypt user data.
对于 CS来说, 802.16中定义了针对异步传输模式(ATM ) 的 CS, 以及针对以太网或 IP包的包 CS ,本发明主要与包 CS的实现相关。 802.16 所定义的包 CS, 其主要功能是通过流分类, 实现从诸如以太网或 IP包 之类的高层协议数据流到连接标识(CID ) 的映射, 亦即查找各数据包 相对应的 CID并将之添加到各数据包,以便将上层数据包区分到不同的 连接中。 为此, 802.16定义了全面而复杂的流分类相关协议域, 其中包 括: MAC目的地址、 MAC源地址、 802.1p,虚拟局域网标识( VLAN ID )、 以太网类型、 IP 目的地址、 IP源地址、 IP协议类型、 用户数据报协议 / 传送控制协议(UDP/TCP ) 目的端口、 UDP/TCP源端口、 IP 区别服务 编码点 (DSCP )域, 并且要求能够按精确、 按掩码、 按范围匹配流分 类规则, 亦即实现多域流分类功能。 For CS, CS for Asynchronous Transfer Mode (ATM) is defined in 802.16, and CS for Ethernet or IP packets. The present invention is primarily related to the implementation of the CS. The main function of the package CS defined by 802.16 is through traffic classification, such as Ethernet or IP packets. Such a high-level protocol data flow to the connection identifier (CID) mapping, that is, to find the corresponding CID of each data packet and add it to each data packet, so as to distinguish the upper layer data packet into different connections. To this end, 802.16 defines a comprehensive and complex traffic classification related protocol domain, including: MAC destination address, MAC source address, 802.1p, virtual local area network identifier (VLAN ID), Ethernet type, IP destination address, IP source address, IP protocol type, User Datagram Protocol/Transmission Control Protocol (UDP/TCP) destination port, UDP/TCP source port, IP Differentiated Service Code Point (DSCP) domain, and required to be able to match flows exactly, by mask, by range The classification rule, that is, the multi-domain flow classification function.
当前的无线网络接入, 通常由位于网络侧的基站和位于用户终端侧 的用户站(Subscriber Station, SS )实现, 常见的, 一个 BS连接有多个 SS, 其中, BS用于将多个 SS接入网络, SS用于为多个用户终端提供 接入网络的功能。 在从 BS到用户站 SS的下行方向, 由 BS侧完成流分 类, 在从 SS到 BS的上行方向, 由 SS侧完成流分类, 常见的, 它们支 持 802.16。 本文主要涉及从 BS到多个 SS的下行流分类装置及方法。  The current wireless network access is usually implemented by a base station located on the network side and a subscriber station (SS) located on the user terminal side. Generally, one BS is connected to multiple SSs, where the BS is used to connect multiple SSs. Accessing the network, the SS is used to provide access to the network for multiple user terminals. In the downstream direction from the BS to the subscriber station SS, the traffic classification is done by the BS side. In the uplink direction from SS to BS, the traffic classification is done by the SS side. Commonly, they support 802.16. This paper mainly deals with downstream classification devices and methods from BS to multiple SSs.
图 1是现有技术中 BS的结构图,现有技术的 BS 100包括: PHY层 设备 130,以及包含有 CS设备 115和 CPS&SS设备 114的 MAC层设备 110。 其中, CS设备 115包括作为流分类装置的下行流分类器 (DLC ) 156, DLC 156存储 BS 100的流分类规则, 常见的, 其采用三值内容寻 址访问存储器(TCAM )、 递归流分类算法(RFC )或者基于二叉树的查 找算法(Tries )及其相应的改进算法对数据包进行流分类。  1 is a block diagram of a prior art BS 100. The prior art BS 100 includes: a PHY layer device 130, and a MAC layer device 110 including a CS device 115 and a CPS&SS device 114. The CS device 115 includes a downstream classifier (DLC) 156 as a traffic classification device, and the DLC 156 stores a traffic classification rule of the BS 100. Commonly, it uses a three-value content addressed access memory (TCAM) and a recursive traffic classification algorithm. (RFC) or a binary tree based lookup algorithm (Tries) and its corresponding improved algorithm for stream classification of data packets.
CS设备 115用于通过 MAC层上层接口 AO接收来自 MAC层上层 的数据包,来自接口 AO的数据一般表现为外部网络的待服务数据单元, 在 DLC 156根据其存储的流分类规则查找到该数据包的 CID,并将相应 CID字段添加到数据包后, 通过接口 A1传送添加了 CID字段的数据包 到 CPS&SS设备 114。 CPS&SS设备 114用于通过接口 A1接收来自 CS设备 115的添加了 CID字段的数据包, 根据其 CID进行调度、 加密, 并将成帧后的 MAC 层数据帧传送到 PHY设备 130。 The CS device 115 is configured to receive data packets from the upper layer of the MAC layer through the MAC layer upper layer interface AO. The data from the interface AO generally appears as a to-be-served data unit of the external network, and the data is found by the DLC 156 according to the stored traffic classification rule. After the CID of the packet is added to the packet, the packet with the CID field added to the CPS&SS device 114 is transmitted through the interface A1. The CPS&SS device 114 is configured to receive the CID field-added data packet from the CS device 115 through the interface A1, schedule and encrypt according to its CID, and transmit the framed MAC layer data frame to the PHY device 130.
PHY层设备 130接收来自 MAC层设备 110的 MAC层数据帧, 对 其进行信道编码和解码以及中射频调制解调后发送到相应的 ss。  The PHY layer device 130 receives the MAC layer data frame from the MAC layer device 110, performs channel coding and decoding thereof, and performs intermediate radio frequency modulation and demodulation, and then transmits it to the corresponding ss.
以连接两个 SS的某一 BS即 BS0为例,個-设这两个 SS分别是: SS1 , 其连接有 MAC为" 0x000011111111"的用户终端; SS2, 其连接有 MAC 为" 0x000011111112"的用户终端,在 BS0中实现桥接功能,其中,为 SS1 下接的用户终端配置 2个业务流, 为 SS2下接的用户终端配置 3个业务 流。也就是说, BS0将把 MAC目的地址为" 0x000011111111"的数据包转 发到 SS1 , 4巴 MAC目的地址为" 0x000011111112"的数据包转发到 SS2。  Taking BS0, which is a BS connected to two SSs, as an example, the two SSs are: SS1, which is connected with a user terminal whose MAC is "0x000011111111"; SS2 is connected to a user whose MAC is "0x000011111112" The terminal implements a bridging function in the BS0, in which two service flows are configured for the user terminal connected to the SS1, and three service flows are configured for the user terminal connected to the SS2. That is to say, BS0 will forward the packet with the MAC destination address "0x000011111111" to SS1, and the packet with the MAC destination address "0x000011111112" will be forwarded to SS2.
相应的, 位于 BS0中的流分类装置如图 2所示, 图 2是采用现有技 术 BS0的流分类装置的结构图, 作为流分类装置的 DLC 156存储用于 查找来自 MAC层上层的数据包的 CID的流分类规则,根据 802.16 - 2004 标准的定义, 一种可能的流分类规则如表 1所示, 表 1为 DLC 156的流 分类规则表,表 1中列出了各条流分类规则的规则描述、规则映射的 CID 以及 CID连接的 SS。  Correspondingly, the traffic classification device located in BS0 is as shown in FIG. 2. FIG. 2 is a structural diagram of a traffic classification device using the prior art BS0. The DLC 156 as the traffic classification device stores a packet for searching for the upper layer from the MAC layer. The CID traffic classification rule is defined according to the 802.16-2004 standard. One possible traffic classification rule is shown in Table 1. Table 1 is the flow classification rule table of DLC 156, and each flow classification rule is listed in Table 1. The rule description, the CID of the rule map, and the SS of the CID connection.
规则 该 CID连接 规则描述 映射的 CID  Rule The CID connection rule describes the mapped CID
序号 的 SS  Serial number of SS
{DMAC=0x000011111111 , VLAN ID=0xl ,  {DMAC=0x000011111111, VLAN ID=0xl,
11 C1D2 SSI  11 C1D2 SSI
1ρ =7}  1ρ =7}
{ D AC=0x000011111111 , VLAN ID=0x 1 ,  { D AC=0x000011111111 , VLAN ID=0x 1 ,
21 DIP =0x10.11.13.*, SIP =0x10.20.20.20 , CID4 SSI  21 DIP =0x10.11.13.*, SIP =0x10.20.20.20 , CID4 SSI
IP Protocol=6 , TCP SPort= 161 }  IP Protocol=6 , TCP SPort= 161 }
{DMAC=0x000011111112, VLAN ID=0x2,  {DMAC=0x000011111112, VLAN ID=0x2,
31 CID1 SS2  31 CID1 SS2
lp=6} {DMAC=0x000011111112, VLAN ID=0x2 , Lp=6} {DMAC=0x000011111112, VLAN ID=0x2,
41 DIP=0xl0.11.15.*, IP Protocols, CID3 SS2  41 DIP=0xl0.11.15.*, IP Protocols, CID3 SS2
TCP SPort=80}  TCP SPort=80}
{DMAC=0x000011111112, VLAN ID=0x2,  {DMAC=0x000011111112, VLAN ID=0x2,
51 DIP=0xl0.11.15.*, SIP=0xl 0.20.20.21 , CID5 SS2  51 DIP=0xl0.11.15.*, SIP=0xl 0.20.20.21 , CID5 SS2
IP Protocol- 17, UDP SPort= 67 } IP Protocol- 17, UDP SPort= 67 }
Figure imgf000006_0001
Figure imgf000006_0001
假设 DLC 156共接收到 5个数据包, 它们分别是: 与流分类规则 11 匹配的数据包 1 , 与流分类规则 21 匹配的数据包 2, 与流分类规则 31 匹配的数据包 3, 与流分类规则 41 匹配的数据包 4, 与流分类规则 51匹配的数据包 5。  Assume that DLC 156 receives a total of five data packets, which are: packet 1 matching flow classification rule 11, packet 2 matching flow classification rule 21, packet 3 matching flow classification rule 31, and flow Classification rule 41 matched packet 4, packet 5 matching the flow classification rule 51.
现有技术的流分类方法为: DLC 156根据表 1中的流分类规则查找 到 CID后, 将相应的 CID字段添加到这些数据包并输出添加了 CID字 段的数据包, 它们分别是: 添加了 CID2的数据包 1 , BS0将转发该数据 包到 SS1 ; 添加了 CID4的数据包 2, BS0将转发该数据包到 SS1 ; 添加 了 CID1的数据包 3, BS0将转发该数据包到 SS2; 添加了 CID3的数据 包 4, BS0将转发该数据包到 SS2; 添加了 CID5的数据包 5, BS0将转 发该数据包到 SS2。  The prior art flow classification method is as follows: After the DLC 156 finds the CID according to the flow classification rule in Table 1, the corresponding CID field is added to the data packet and the data packet with the CID field added is output, which are: CID2 packet 1, BS0 will forward the packet to SS1; add CID4 packet 2, BS0 will forward the packet to SS1; add CID1 packet 3, BS0 will forward the packet to SS2; Add For packet 4 of CID3, BS0 will forward the packet to SS2; packet 5 with CID5 is added, and BS0 will forward the packet to SS2.
在当前的无线网络中, 一个 BS通常管理多个 SS, 这就使得 BS侧 必须支持大量的流分类规则才能满足多个 SS 的需求, 常见的, 如果一 个 BS管理了 512个 SS, 每个 SS支持 16条流分类规则, 那么 BS侧支 持的流分类规则总数将达到 512x16 = 8K条, 在现有技术中, DLC 156 常采用三值内容寻址访问存储器(TCAM )、 递归流分类算法(RFC )或 者基于二叉树的查找算法(Tries )及其相应的改进算法进行流分类, 其 优势在于能够实现高速、大容量多域流分类,但其不利在于,釆用 TCAM 时成本较高, 且不利于范围匹配, 而采用 RFC或者 Tries及其相应的改 进算法时, 必须在存储器资源和查找速度之间找到平衡点, 如果流数目 较少, 可采用筒单的算法, 如果流数目较多, 就必须采用较复杂的算法。 总的来说, 现有技术的流分类装置及方法, 虽然能够实现高速、 大容量 多域流分类, 但是对存储器资源占用较大、 成本较高。 发明内容 In the current wireless network, a BS usually manages multiple SSs, which makes the BS side have to support a large number of traffic classification rules to meet the requirements of multiple SSs. Commonly, if a BS manages 512 SSs, each SS Supporting 16 flow classification rules, the total number of flow classification rules supported by the BS side will reach 512x16 = 8K. In the prior art, the DLC 156 often uses a three-value content addressed access memory (TCAM) and a recursive flow classification algorithm (RFC). Or the binary tree-based search algorithm (Tries) and its corresponding improved algorithm for stream classification, the advantage is that high-speed, large-capacity multi-domain stream classification can be realized, but the disadvantage is that the cost is higher when using TCAM, and it is not conducive to Range matching, and using RFC or Tries and their corresponding changes When entering the algorithm, a balance must be found between the memory resource and the search speed. If the number of streams is small, the algorithm of the single block can be used. If the number of streams is large, a more complicated algorithm must be used. In general, the prior art flow classification apparatus and method can realize high-speed, large-capacity multi-domain flow classification, but occupy a large memory resource and have high cost. Summary of the invention
有鉴于此, 本发明的目的在于提供一种流分类装置, 其对存储器资 源占用较小、 成本较低。  In view of the above, it is an object of the present invention to provide a stream sorting apparatus that occupies less memory resources and is less expensive.
本发明的目的还在于提供一种流分类方法, 其对存储器资源占用较 小、 成本较 ^氐。  It is also an object of the present invention to provide a stream classification method that is less expensive to occupy and has a lower cost.
本发明的目的进一步在于提供一种 BS, 其采用的流分类装置对存 储器资源占用较小、 成本较低。  It is a further object of the present invention to provide a BS that employs a stream classification device that is less expensive to store and less expensive.
为实现本发明的第一发明目的, 本发明提供了一种流分类装置, 该 装置包括用户站标识 SSID查找模块和一个以上分别与不同 SSID对应的 流分类器, 所述 SSID查找模块分别与每个流分类器连接,  In order to achieve the first object of the present invention, the present invention provides a stream classification apparatus, which includes a subscriber station identification SSID search module and one or more flow classifiers respectively corresponding to different SSIDs, and the SSID search module respectively and each Flow classifier connection,
所述 SSID查找模块,根据 SSID分类规则查找自身收到的高层协议 数据流的 SSID, 并根据查找得到的 SSID将收到的高层协议数据流传输 到与该 SSID对应的流分类器;  The SSID searching module searches for the SSID of the higher layer protocol data stream received by the SSID according to the SSID classification rule, and transmits the received higher layer protocol data stream to the stream classifier corresponding to the SSID according to the obtained SSID;
所述每个与不同 SSID对应的流分类器, 根据连接标识 CID分类规 则查找所收到的高层协议数据流的 CID,并输出添加 CID字段后的高层 协议数据流。  Each of the stream classifiers corresponding to the different SSIDs searches for the CID of the received higher layer protocol data stream according to the connection identifier CID classification rule, and outputs the upper layer protocol data stream after adding the CID field.
其中, 所述 SSID查找模块包括: 用于存储 SSID分类规则的存储器 和用于执行 SSID查找操作的处理器。  The SSID lookup module includes: a memory for storing an SSID classification rule and a processor for performing an SSID lookup operation.
其中, 所述每个与不同 SSID对应的流分类器包括: 用于存储 CID 分类规则的存储器和用于执行 CID查找操作的处理器。 其中, 所述存储器是静态随机存取存储器 SRAM、 或动态随机存取 存储器 DRAM。 The flow classifier corresponding to each different SSID includes: a memory for storing a CID classification rule and a processor for performing a CID search operation. The memory is a static random access memory (SRAM) or a dynamic random access memory (DRAM).
其中, 所述处理器是现场可编程门阵列 FPGA、 网络处理器 NP、 或 中央处理单元 CPU。  The processor is a field programmable gate array FPGA, a network processor NP, or a central processing unit CPU.
为实现本发明的第二发明目的, 本发明提供了一种流分类方法, 适 用于包括 SSID查找模块和一个以上分别与不同 SSID对应的流分类器的 流分类装置, 该方法包括:  In order to achieve the second object of the present invention, the present invention provides a flow classification method, which is applicable to a flow classification device including an SSID search module and one or more flow classifiers respectively corresponding to different SSIDs, the method comprising:
A、 SSID 查找模块接收高层协议数据流, 查找高层协议数据流的 SSID, 并根据查找得到的 SSID将该高层协议数据流发送到与该 SSID 对应的流分类器;  A. The SSID search module receives the upper layer protocol data stream, searches for the SSID of the upper layer protocol data stream, and sends the higher layer protocol data stream to the stream classifier corresponding to the SSID according to the obtained SSID;
B、 每个流分类器分别接收高层协议数据流, 查找高层协议数据流 的 CID并将相应 CID字段添加到高层协议数据流, 输出添加 CID字段 后的高层协议数据流。  B. Each stream classifier receives the upper layer protocol data stream, searches the CID of the upper layer protocol data stream, and adds the corresponding CID field to the upper layer protocol data stream, and outputs the upper layer protocol data stream after adding the CID field.
其中, 所述一个以上分别与不同 SSID对应的流分类器为: 各流分 类器分別与各 SSID—一对应;或者,各流分类器分别与一个以上的 SSID 对应, 并且各流分类器对应的 SSID不相互重叠。  The one or more flow classifiers respectively corresponding to different SSIDs are: each flow classifier corresponding to each SSID-one; or each flow classifier corresponding to one or more SSIDs, and corresponding to each flow classifier SSIDs do not overlap each other.
其中, 所述高层协议数据流为: 以太网包或 IP包。  The high-level protocol data stream is: an Ethernet packet or an IP packet.
为实现本发明的第三发明目的, 本发明提供了一种基站 BS, 包括 用于建立物理连接的物理层设备和用于建立逻辑连接的媒体接入控制 MAC层设备, 所述 MAC层设备包括服务识别会聚子层 CS设备以及公 共部分子层和安全子层 CPS&SS设备:  In order to achieve the third object of the present invention, the present invention provides a base station BS including a physical layer device for establishing a physical connection and a medium access control MAC layer device for establishing a logical connection, the MAC layer device including Service Identification Convergence Sublayer CS Equipment and Common Part Sublayer and Security Sublayer CPS&SS Equipment:
所述 MAC层设备进一步包括流分类装置,该装置包括 SSID查找模 块和一个以上分别与不同 SSID对应的流分类器,所述 SSID查找模块分 别与每个流分类器连接,  The MAC layer device further includes a stream classification device, the device comprising an SSID lookup module and one or more flow classifiers respectively corresponding to different SSIDs, the SSID lookup modules being respectively connected to each flow classifier,
所述 SSID查找模块,根据 SSID分类规则查找自身收到的高层协议 数据流的 SSID, 并根据查找得到的 SSID将收到的高层协议数据流传输 到与该 SSID对应的流分类器; The SSID search module searches for a high-level protocol received by itself according to the SSID classification rule. The SSID of the data stream, and transmitting the received higher layer protocol data stream to the stream classifier corresponding to the SSID according to the obtained SSID;
所述每个与不同 SSID对应的流分类器, 根据 CID分类规则查找所 收到的高层协议数据流的 CID,并输出添加 CID字段后的高层协议数据 流到所述 CPS&SS设备。  Each of the stream classifiers corresponding to the different SSIDs searches for the CID of the received higher layer protocol data stream according to the CID classification rule, and outputs the higher layer protocol data stream after adding the CID field to the CPS&SS device.
其中,所述一个以上与不同 SSID对应的流分类器位于所述 CS设备 中。  The one or more flow classifiers corresponding to different SSIDs are located in the CS device.
其中, 所述 SSID查找模块位于所述 CS设备中。  The SSID search module is located in the CS device.
其中, 所述 SSID查找模块包括: 用于存储 SSID分类规则的存储器 和用于执行 SSID查找操作的处理器。  The SSID lookup module includes: a memory for storing an SSID classification rule and a processor for performing an SSID lookup operation.
其中, 所述每个与不同 SSID对应的流分类器包括: 用于存储 CID 分类规则的存储器和用于执行 CID查找操作的处理器。  The flow classifier corresponding to each different SSID includes: a memory for storing a CID classification rule and a processor for performing a CID search operation.
可见, 本发明提供的流分类装置及方法, 通过将现有技术中较大数 量的流分类规则按照用户站标识(SSID )划分到多个 DLC中, 对某一具 体的数据包来说,先由 SSID查找模块对其进行首次流分类得到该数据包 的用户站标识(SSID ) , 并将添加了 SSID字段的数据包发送到该 SSID 对应的 DLC中,而后由该 SSID对应的 DLC对添加了 SSID字段的数据包进 行二次流分类得到该数据包的 CID,并输出添加了 CID字段的数据包。 由 于首次流分类仅需查找数据包的 SSID,二次流分类仅需在一个 SSID对应 的较少数量流分类规则中查找相应的 CID, 故而这两次流分类的规则空 间较之现有技术的流分类规则空间都要小很多, 这就使得这两次流分类 都可以采用直接匹配的方法, 即从数据包的头部提取若干域, 逐一比较 每一匹配空间的每一相关域, 直到找到相匹配的规则为止, 达到了对存 储器资源占用较小、 成本较低的目的。 N2006/002712 附图简要说明 It can be seen that the traffic classification apparatus and method provided by the present invention divides a large number of traffic classification rules in the prior art into multiple DLCs according to a subscriber station identifier (SSID), for a specific data packet, The first stream classification is performed by the SSID search module to obtain the user station identifier (SSID) of the data packet, and the data packet with the SSID field added is sent to the DLC corresponding to the SSID, and then the DLC pair corresponding to the SSID is added. The data packet of the SSID field is subjected to secondary stream classification to obtain the CID of the data packet, and the data packet to which the CID field is added is output. Since the first flow classification only needs to find the SSID of the data packet, the secondary flow classification only needs to find the corresponding CID in a small number of traffic classification rules corresponding to one SSID, so the rule space of the two flow classifications is compared with the prior art. The flow classification rule space is much smaller, which makes the two flow classifications adopt the direct matching method, that is, extracting several domains from the head of the data packet, and comparing each relevant domain of each matching space one by one until it finds Up to the matching rules, the purpose of occupying memory resources is small and the cost is low. N2006/002712 BRIEF DESCRIPTION OF THE DRAWINGS
图 1是现有技术中 BS的结构图;  1 is a structural view of a BS in the prior art;
图 2是采用现有技术 BS0的流分类装置的结构图;  2 is a structural diagram of a flow classification device using the prior art BS0;
图 3是本发明中 BS的结构图;  Figure 3 is a structural view of a BS in the present invention;
图 4是采用本发明 BS0的流分类装置的结构图。 实施本发明的方式  Fig. 4 is a structural diagram of a stream sorting apparatus using the BS0 of the present invention. Mode for carrying out the invention
本发明的核心思想是: 将现有技术中较大数量的流分类规则按照不 同的 SS划分到多个 DLC中,其中每个 DLC仅对一个 SS对应的数据包 执行流分类、 或者对一个以上的 SS对应的数据包执行流分类。  The core idea of the present invention is: dividing a large number of traffic classification rules in the prior art into multiple DLCs according to different SSs, where each DLC performs flow classification on only one SS corresponding data packet, or more than one or more The SS corresponding packet performs flow classification.
例如, 假设存在 5个 SS, 分别为 SS1、 SS2、 SS3、 SS4和 SS5, 这 里可以设置 5个 DLC,分别与 5个 SS——对应;也可以设置 2个 DLC, DLC1与 SS1、 SS2和 SS3对应、 DLC2与 SS4和 SS5对应。 实际设置 的方法可以根据实际的应用需要确定。  For example, suppose there are 5 SSs, which are SS1, SS2, SS3, SS4, and SS5. Here, you can set 5 DLCs, corresponding to 5 SSs respectively. You can also set 2 DLCs, DLC1 and SS1, SS2, and SS3. Corresponding, DLC2 corresponds to SS4 and SS5. The actual setting method can be determined according to the actual application needs.
对于收到的数据包, 首先查找得到该数据包所对应 SS的 SSID, 再 根据查找得到的 SSID, 将数据包发送至与该 SSID对应的 DLC中执行 流分类。  For the received data packet, first find the SSID of the SS corresponding to the data packet, and then send the data packet to the DLC corresponding to the SSID to perform flow classification according to the SSID obtained by the search.
为使本发明的目的、技术方案和优点更加清楚明白, 以下举实施例, 并参照附图, 对本发明进一步详细说明。  The present invention will be further described in detail below with reference to the accompanying drawings.
图 3是本发明中 BS的结构图 ,本发明的 BS 300包括: PHY层设备 130,以及包含有 CS设备 315和 CPS&SS设备 114的 MAC层设备 310。 与现有技术不同的是, 本发明的流分类装置包括: SSID 查找模块 370 和多个根据 SSID划分的 DLC 356,其中 SSID查找模块 370和多个 DLC 356相互连接。  3 is a structural diagram of a BS in the present invention, and the BS 300 of the present invention includes: a PHY layer device 130, and a MAC layer device 310 including a CS device 315 and a CPS&SS device 114. Different from the prior art, the stream classification apparatus of the present invention includes: an SSID lookup module 370 and a plurality of DLCs 356 divided according to SSIDs, wherein the SSID lookup module 370 and the plurality of DLCs 356 are connected to each other.
具体来说, SSID查找模块 370存储 BS 300的 SSID分类规则, 其 通过接口 AO接收来自 MAC层上层的数据包,根据自身存储的 SSID分 类规则查找到该数据包的 SSID, 并根据查找得到的 SSID将收到的数据 包发送给与该 SSID对应的 DLC 356。 Specifically, the SSID lookup module 370 stores the SSID classification rule of the BS 300, which The data packet from the upper layer of the MAC layer is received through the interface AO, and the SSID of the data packet is found according to the stored SSID classification rule, and the received data packet is sent to the DLC 356 corresponding to the SSID according to the SSID obtained by the search.
每一 DLC 356分别存储 BS 300根据 SSID划分的 CID分类规则, 每一 DLC 356分别接收来自 SSID查找模块 370的数据包, 根据自身存 储的 CID分类规则查找到该数据包的 CID,并将相应 CID字段添加到具 体的数据包后, 通过接口 A1将添加了 CID的数据包发送给 CPS&SS设 备 114。  Each DLC 356 stores a CID classification rule divided by the BS 300 according to the SSID, and each DLC 356 receives the data packet from the SSID search module 370, finds the CID of the data packet according to the CID classification rule stored by itself, and sets the corresponding CID. After the field is added to the specific data packet, the data packet to which the CID is added is transmitted to the CPS&SS device 114 through the interface A1.
其中, SSID查找模块 370位于 MAC层上层接口 AO和多个根据 SSID 划分的 DLC 356之间 , 所述多个根据 SSID划分的 DLC 356常位于 CS 设备 315中, 而 SSID查找模块 370可如图 3所示位于 CS设备 315中, 也可位于 CS设备 315之外。 如果 SSID查找模块位于 CS设备之外, 则 其与 CS设备间可进一步包括一个接口 A2, 以便传输数据包到相应的 DLC。  The SSID search module 370 is located between the upper layer interface AO of the MAC layer and the plurality of DLCs 356 divided according to the SSID. The plurality of DLCs 356 according to the SSID are often located in the CS device 315, and the SSID lookup module 370 can be as shown in FIG. 3. It is shown in the CS device 315 and may also be located outside of the CS device 315. If the SSID lookup module is located outside of the CS device, it may further include an interface A2 with the CS device to transmit the data packet to the corresponding DLC.
常见的, SSID查找模块 370和多个根据 SSID划分的 DLC 356中的 每一个 DLC 中都包括用于存储流分类规则的存储器和用于执行查找操 作的处理器。在具体实现中,存储器可以是静态随机存取存储器( SRAM ) 或动态随机存取存储器 (DRAM ), 处理器可以是现场可编程门阵列 ( FPGA )、 网络处理器 (NP )或中央处理单元(CPU )。  Typically, the SSID lookup module 370 and each of the plurality of DLCs 356 partitioned according to the SSID include a memory for storing stream classification rules and a processor for performing a lookup operation. In a specific implementation, the memory may be static random access memory (SRAM) or dynamic random access memory (DRAM), and the processor may be a field programmable gate array (FPGA), a network processor (NP), or a central processing unit ( CPU).
仍以连接 SS1和 SS2的 BS0为例, 本发明中位于 BS0中的流分类 装置如图 4所示, 图 4是采用本发明 BS0的流分类装置的结构图, 该流 分类装置包括: SSID查找模块 370、 与 SS1对应的 DLC1 以及与 SS2 对应的 DLC2, 其中 SSID查找模块 370分别与 DLC1和 DLC2连接。  Still taking BS0 connecting SS1 and SS2 as an example, the flow classification device located in BS0 in the present invention is as shown in FIG. 4, and FIG. 4 is a structural diagram of a flow classification device using BS0 of the present invention, the flow classification device includes: SSID search The module 370, DLC1 corresponding to SS1, and DLC2 corresponding to SS2, wherein the SSID lookup module 370 is connected to DLC1 and DLC2, respectively.
其中, SSID查找模块 370存储用于查找来自 MAC层上层的数据包 的 SSID的流分类规则, 其流分类规则如表 2所示,表 2为 SSID查找模 块 370的流分类规则表。 The SSID search module 370 stores a flow classification rule for searching for an SSID of a data packet from an upper layer of the MAC layer, and the flow classification rule is as shown in Table 2, and Table 2 is an SSID search module. A flow classification rule table for block 370.
Figure imgf000012_0001
Figure imgf000012_0001
表 2  Table 2
DLC1存储用于查找待转发到 SSI的数据包的 CID的流分类规则, 其流分类规则如表 3所示, 表 3为 DLC1的流分类规则表。  The DLC1 stores a traffic classification rule for finding the CID of the data packet to be forwarded to the SSI. The flow classification rule is shown in Table 3. Table 3 is the flow classification rule table of the DLC1.
Figure imgf000012_0002
Figure imgf000012_0002
表 3  table 3
DLC2存储用于查找待转发到 SS2的数据包的 CID的流分类规则 , 其流分类规则如表 4所示, 表 4为 DLC2的流分类规则表。  The DLC2 stores a flow classification rule for finding the CID of the data packet to be forwarded to the SS2. The flow classification rule is shown in Table 4. Table 4 is the flow classification rule table of the DLC2.
Figure imgf000012_0003
Figure imgf000012_0003
表 4  Table 4
明显的, 现有技术中表 1的五个流分类规则按照 SS进行了划分, 其中,适用于待转发到 SS1的数据包的流分类规则 11和 21划分到 DLC1 中, 适用于待转发到 SS2的数据包的流分类规则 31、 41和 51 划分到 DLC2中。 Obviously, the five traffic classification rules in Table 1 in the prior art are divided according to the SS, wherein the traffic classification rules 11 and 21 applicable to the data packets to be forwarded to the SS1 are divided into the DLC1. Among them, the flow classification rules 31, 41, and 51 applicable to the data packet to be forwarded to SS2 are divided into DLC2.
仍假设本发明的流分类装置共接收到五个数据包, 它们分别是: 与 流分类规则 11 匹配的数据包 1 , 明显的, 数据包 1与流分类规则 12并 进一步与流分类规则 13 匹配; 与流分类规则 21 匹配的数据包 2, 明显 的, 数据包 2与流分类规则 12并进一步与流分类规则 23.匹配; 与流分 类规则 31 匹配的数据包 3 , 明显的, 数据包 3与流分类规则 22并进一 步与流分类规则 14匹配; 与流分类规则 41 匹配的数据包 4, 明显的, 数据包 4与流分类规则 22并进一步与流分类规则 24匹配; 与流分类规 则 51 匹配的数据包 5, 明显的, 数据包 5与流分类规则 22并进一步与 流分类规则 34匹配。  It is still assumed that the stream classification apparatus of the present invention receives a total of five data packets, which are: packet 1 matching the traffic classification rule 11, and obviously, the packet 1 and the traffic classification rule 12 are further matched with the traffic classification rule 13 ; packet 2 matching the flow classification rule 21, obviously, the packet 2 is matched with the flow classification rule 12 and further with the flow classification rule 23.; the packet 3 matching the flow classification rule 31, obviously, the packet 3 Matching with the traffic classification rule 22 and further with the traffic classification rule 14; the data packet 4 matching the traffic classification rule 41, obviously, the data packet 4 and the traffic classification rule 22 are further matched with the traffic classification rule 24; and the traffic classification rule 51 The matched packet 5, obviously, packet 5 is matched with the traffic classification rule 22 and further with the traffic classification rule 34.
在上面的例子中, 介绍的是一个 DLC仅对属于一个 SS的数据包执 行流分类的情况。 假设 BS0连接有三个 SS, 包括 SS1、 SS2和 SS3, 也 可以将针对 SS1和 SS2的流分类规则存储在 DLC1中,将 SS3对应的流 分类规则存储在 DCL2中。 DLC1对属于 SS1和 SS2的数据包执行流分 类; DLC2对属于 SS3的数据包执行流分类。  In the above example, a case where a DLC performs traffic classification only for packets belonging to one SS is described. Assume that BS0 is connected to three SSs, including SS1, SS2, and SS3. The traffic classification rules for SS1 and SS2 can also be stored in DLC1, and the traffic classification rules corresponding to SS3 are stored in DCL2. DLC1 performs flow classification on packets belonging to SS1 and SS2; DLC2 performs flow classification on packets belonging to SS3.
利用本发明的流分类装置对 MAC层上层数据包进行流分类的方法 包括以下步骤。 在执行本方法之前, 需要根据每个 SSID对应的 DLC, 设置每个 SSID与对应的 DLC接口之间的对应关系。 这里的 DLC接口 是指, DLC与 SSID查找模块之间的接口。 因此, 在本发明中, 只要查 找得到 SSID, 就能根据 SSID对应的 DLC的接口 , 将数据包发送至与 SSID对应的 DLC中进行处理。  The method for classifying a packet of an upper layer MAC packet by using the stream classifying apparatus of the present invention includes the following steps. Before performing the method, the correspondence between each SSID and the corresponding DLC interface needs to be set according to the DLC corresponding to each SSID. The DLC interface here refers to the interface between the DLC and the SSID lookup module. Therefore, in the present invention, as long as the SSID is found, the data packet can be sent to the DLC corresponding to the SSID for processing according to the interface of the DLC corresponding to the SSID.
A、 SSID查找模块接收到 MAC层上层数据包后, 根据自身存储的 用于查找 SSID的流分类规则查找到数据包的 SSID, 根据 SSID对应的 DLC接口, 将数据包发送到与该 SSID对应的 DLC中进行处理。 具体到 BSO的流分类装置, SSID查找模块 370根据表 2匹配数据 包 1 ~ 5的 DMAC和 VLAN字段,由于数据包 1和 2的 DMAC和 VLAN 字段与流分类规则 12匹配,故 SSID查找模块 370查找得到数据包 1和 2对应 SSID1 , .则在根据 SSID1对应的 DLC1接口, 将数据包 1和 2发 送到 DLC1中进行处理; 由于数据包 3 ~ 5的 DMAC和 VLAN字段与流 分类规则 22匹配,同理, SSID查找模块 370将数据包 3 ~ 5发送到 DLC2 中进行处理。 After receiving the MAC layer upper layer data packet, the SSID search module searches for the SSID of the data packet according to the flow classification rule stored in the SSID for searching, and sends the data packet to the SSID corresponding to the SSID according to the DLC interface corresponding to the SSID. Processing in the DLC. Specifically, to the BSO stream classification device, the SSID lookup module 370 matches the DMAC and VLAN fields of the packets 1 to 5 according to Table 2, and since the DMAC and VLAN fields of the packets 1 and 2 match the flow classification rule 12, the SSID lookup module 370 Finding data packets 1 and 2 corresponding to SSID1, then transmitting data packets 1 and 2 to DLC1 for processing according to the DLC1 interface corresponding to SSID1; since the DMAC and VLAN fields of data packets 3~5 match the traffic classification rule 22 Similarly, the SSID lookup module 370 sends the packets 3~5 to the DLC2 for processing.
B、 多个 DLC分别接收到来自 SSID查找模块 370的数据包后, 根 据各自的流分类规则查找到数据包的 CID,分别将相应 CID字段添加到 这些数据包并输出添加了 CID字段的数据包。  B. After receiving the data packets from the SSID lookup module 370, the plurality of DLCs respectively find the CIDs of the data packets according to the respective flow classification rules, respectively add the corresponding CID fields to the data packets and output the data packets with the CID field added. .
具体到 BS0的流分类装置, DLC1接收到来自 SSID查找模块 370 的数据包 1和 2后,根据流分类规则表 3匹配数据包 1和 2的相应字段, 由于数据包 1和 2分别与流分类规则 31和 32匹配, 故 DLC1分别在数 据包 1和 2上添加 CID2字段和 CID4字段并输出添加了 CID字段的数 据包 1和 2。  Specifically, to the stream classification device of BS0, after receiving the data packets 1 and 2 from the SSID lookup module 370, the DLC1 matches the corresponding fields of the data packets 1 and 2 according to the flow classification rule table 3, since the data packets 1 and 2 are respectively associated with the traffic classification. Rules 31 and 32 match, so DLC1 adds the CID2 field and the CID4 field on packets 1 and 2, respectively, and outputs packets 1 and 2 to which the CID field is added.
同理, 当 DLC2接收到来自 SSID查找模块 370的数据包 3 ~ 5后, 根据流分类规则表 4匹配数据包 3 - 5的相应字段, 由于数据包 3、 4和 5上分别与流分类规则 14、 23、 34 匹配, 故 DLC2分别在数据包 3、 4 和 5上添加 CID1字段、 CID3字段和 CID5字段并输出添加了 CID字段 的数据包 3 - 5。  Similarly, when DLC2 receives the data packets 3~5 from the SSID lookup module 370, the corresponding fields of the data packets 3-5 are matched according to the flow classification rule table 4, because the data packets 3, 4, and 5 respectively correspond to the flow classification rules. 14, 23, 34 match, so DLC2 adds a CID1 field, a CID3 field, and a CID5 field on packets 3, 4, and 5, respectively, and outputs a packet 3-5 with the CID field added.
当然, 当 BS0存在三个 SS, 包括 SS1、 SS2和 SS3, 也可以将针对 SS1和 SS2的流分类规则存储在 DLC1中 , 将 SS3对应的流分类规则存 储在 DCL2中。 DLC1对属于 SS1和 SS2的数据包执行流分类; DLC2 对属于 SS3的数据包执行流分类。 具体处理的方法与上面描述方法的流 程相同, 不同的是对发送至三个 SS 的数据包执行流分类, 并根据对应 的 SSID送至相应的 DLC中进行处理, 具体流程在此不再详述。 Certainly, when there are three SSs in the BS0, including SS1, SS2, and SS3, the traffic classification rules for SS1 and SS2 may also be stored in the DLC1, and the traffic classification rules corresponding to the SS3 may be stored in the DCL2. DLC1 performs flow classification on data packets belonging to SS1 and SS2; DLC2 performs flow classification on data packets belonging to SS3. The specific processing method is the same as the method described above, except that the flow classification is performed on the data packets sent to the three SSs, and the corresponding The SSID is sent to the corresponding DLC for processing, and the specific process will not be described in detail herein.
在本发明中, 由于在 SSID查找模块以及 DLC中均采用直接匹配法 对规则进行匹配, 因此规则占用 SSID查找模块以及 DLC中存储器的大 小等于每条规则的大小总和。  In the present invention, since the rules are matched by the direct matching method in both the SSID lookup module and the DLC, the rules occupy the SSID lookup module and the size of the memory in the DLC is equal to the sum of the sizes of each rule.
相对与直接匹配法, 采用递归流分类算法(RFC )进行流分类时, 所需占用的存储空间将远远大于直接匹配法所需占用的存储空间。  Relative and direct matching method, when using the recursive stream classification algorithm (RFC) for stream classification, the storage space required will be much larger than the storage space required by the direct matching method.
例如, 假设一个 BS管理了 512个 SS, 每个 SS支持 16条流分类规 则, 那么 BS侧支持的流分类规则总数将达到 512 X 16 = 8K条。 这里, 每条流规则关键值长度为 128bit。  For example, if a BS manages 512 SSs and each SS supports 16 traffic classification rules, the total number of traffic classification rules supported by the BS side will reach 512 X 16 = 8K. Here, the key value of each flow rule is 128 bits.
如果采用 RFC进行流分类,考虑到表项的剧烈变化以及表项的冗余 倒换方式, 釆用 RFC时需占用 30Mbits的存储器空间。  If RFC is used for traffic classification, considering the drastic changes of the entries and the redundancy switching of the entries, it takes 30 Mbits of memory space when using RFC.
如果采用本发明的方法, 即使考虑到 SSID查找模块采用 Hash算法 进行匹配, SSID查找模块以及流分类器中的规则所需占用的存储器控制 也只是 1.256Mbits。 同时, 大容量存储器的价格, 相对于具有相同容量 总和的各小容量存储器的价格总和要大的多。  If the method of the present invention is employed, even if it is considered that the SSID lookup module uses the Hash algorithm for matching, the memory control required by the rules in the SSID lookup module and the stream classifier is only 1.256 Mbits. At the same time, the price of mass storage is much larger than the sum of the prices of the small-capacity memories having the same capacity sum.
因此, 明显的采用本发明所提供的方法, 实现了对存储器资源占用 较小、 成本较低的目的。 另外, 由于将规则分配到不同的 DLC 中进行 匹配, 因此本发明处理流分类的速度, 还可以根据规则分配到 DLC 中 的情况, 对流分类的处理速度进行灵活的调整。  Therefore, it is obvious that the method provided by the present invention achieves the purpose of less occupation of memory resources and lower cost. In addition, since the rules are assigned to different DLCs for matching, the speed of the flow classification can be handled by the present invention, and the processing speed of the flow classification can be flexibly adjusted according to the rules assigned to the DLC.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的 保护范围。  The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.

Claims

权利要求书 Claim
1、 一种流分类装置, 其特征在于, 该装置包括用户站标识 SSID查 找模块和一个以上分别与不同 SSID对应的流分类器,所述 SSID查找模 块分别与每个流分类器连接,  A stream classification apparatus, comprising: a subscriber station identification SSID search module and one or more flow classifiers respectively corresponding to different SSIDs, wherein the SSID search modules are respectively connected to each flow classifier.
所述 SSID查找模块,根据 SSID分类规则查找自身收到的高层协议 数据流的 SSID, 并根据查找得到的 SSID将收到的高层协议数据流传输 到与该 SSID对应的流分类器;  The SSID searching module searches for the SSID of the higher layer protocol data stream received by the SSID according to the SSID classification rule, and transmits the received higher layer protocol data stream to the stream classifier corresponding to the SSID according to the obtained SSID;
所述每个与不同 SSID对应的流分类器, 根据连接标识 CID分类规 则查找所收到的高层协议数据流的 CID, 并输出添加 CID字段后的高层 协议数据流。  Each of the stream classifiers corresponding to different SSIDs searches for the CID of the received higher layer protocol data stream according to the connection identifier CID classification rule, and outputs a higher layer protocol data stream after adding the CID field.
2、 如权利要求 1所述的流分类装置, 其特征在于, 所述 SSID查找 模块包括:用于存储 SSID分类规则的存储器和用于执行 SSID查找操作 的处理器。  2. The stream classification apparatus according to claim 1, wherein the SSID lookup module comprises: a memory for storing an SSID classification rule and a processor for performing an SSID lookup operation.
3、 如权利要求 1所述的流分类装置, 其特征在于, 所述每个与不同 SSID对应的流分类器包括: 用于存储 CID分类规则的存储器和用于执 行 CID查找操作的处理器。  3. The stream classification apparatus according to claim 1, wherein each of the stream classifiers corresponding to different SSIDs comprises: a memory for storing a CID classification rule and a processor for performing a CID search operation.
4、 如权利要求 2或 3所述的流分类装置, 其特征在于, 所述存储器 是静态随机存取存储器 SRAM、 或动态随机存取存储器 DRAM。  The stream sorting apparatus according to claim 2 or 3, wherein the memory is a static random access memory (SRAM) or a dynamic random access memory (DRAM).
5、 如权利要求 2或 3所述的流分类装置, 其特征在于, 所述处理器 是现场可编程门阵列 FPGA、 网络处理器 NP、 或中央处理单元 CPU。  The stream classification device according to claim 2 or 3, wherein the processor is a field programmable gate array FPGA, a network processor NP, or a central processing unit CPU.
6、 一种流分类方法, 适用于包括 SSID查找模块和一个以上分别与 不同 SSID对应的流分类器的流分类装置, 其特征在于, 该方法包括: A flow classification method, which is applicable to a flow classification device including an SSID search module and one or more flow classifiers respectively corresponding to different SSIDs, wherein the method includes:
A、 SSID 查找模块接收高层协议数据流, 查找高层协议数据流的 SSID, 并根据查找得到的 SSID将该高层协议数据流发送到与该 SSID 对应的流分类器; B、 每个流分类器分別接收高层协议数据流, 查找高层协议数据流 的 CID并将相应 CID字段添加到高层协议数据流, 输出添加 CID字段 后的高层协议数据流。 A, the SSID search module receives the upper layer protocol data stream, finds the SSID of the upper layer protocol data stream, and sends the higher layer protocol data stream to the stream classifier corresponding to the SSID according to the obtained SSID; B. Each stream classifier receives the upper layer protocol data stream, searches the CID of the upper layer protocol data stream, and adds the corresponding CID field to the upper layer protocol data stream, and outputs the upper layer protocol data stream after adding the CID field.
7、 如权利要求 6所述的流分类方法, 其特征在于, 所述一个以上分 别与不同 SSID对应的流分类器为:各流分类器分别与各 SSID——对应; 或者, 各流分类器分别与一个以上的 SSID对应, 并且各流分类器对应 的 SSID不相互重叠。  The flow classification method according to claim 6, wherein the one or more flow classifiers respectively corresponding to different SSIDs are: each flow classifier respectively corresponds to each SSID; or each flow classifier Each of the stream identifiers corresponds to one or more SSIDs, and the SSIDs of the stream classifiers do not overlap each other.
8、如权利要求 6或 7所述的流分类方法, 其特征在于, 所述高层协 议数据流为: 以太网包或 IP包。  The stream classification method according to claim 6 or 7, wherein the high layer protocol data stream is: an Ethernet packet or an IP packet.
9、 一种基站 BS, 包括用于建立物理连接的物理层设备和用于建立 逻辑连接的媒体接入控制 MAC层设备, 所述 MAC层设备包括服务识 别会聚子层 CS设备以及公共部分子层和安全子层 CPS&SS设备, 其特 征在于:  A base station BS, comprising: a physical layer device for establishing a physical connection and a medium access control MAC layer device for establishing a logical connection, the MAC layer device comprising a service identification convergence sublayer CS device and a common part sublayer And security sublayer CPS&SS devices, which are characterized by:
所述 MAC层设备进一步包括流分类装置,该装置包括 SSID查找模 块和一个以上分别与不同 SSID对应的流分类器,所述 SSID查找模块分 别与每个流分类器连接,  The MAC layer device further includes a stream classification device, the device comprising an SSID lookup module and one or more flow classifiers respectively corresponding to different SSIDs, the SSID lookup modules being respectively connected to each flow classifier,
所述 SSID查找模块,根据 SSID分类规则查找自身收到的高层协议 数据流的 SSID, 并根据查找得到的 SSID将收到的高层协议数据流传输 到与该 SSID对应的流分类器;  The SSID searching module searches for the SSID of the higher layer protocol data stream received by the SSID according to the SSID classification rule, and transmits the received higher layer protocol data stream to the stream classifier corresponding to the SSID according to the obtained SSID;
所述每个与不同 SSID对应的流分类器 , 根据 CID分类规则查找所 收到的高层协议数据流的 CID, 并输出添加 CID字段后的高层协议数据 流到所述 CPS&SS设备。  Each of the stream classifiers corresponding to the different SSIDs searches for the CID of the received higher layer protocol data stream according to the CID classification rule, and outputs the higher layer protocol data stream after adding the CID field to the CPS&SS device.
10、 如权利要求 9所述的 BS, 其特征在于, 所述一个以上与不同 SSID对应的流分类器位于所述 CS设备中。  The BS according to claim 9, wherein the one or more stream classifiers corresponding to different SSIDs are located in the CS device.
11、 如权利要求 10所述的 BS, 其特征在于, 所述 SSID查找模块 位于所述 cs设备中。 The BS according to claim 10, wherein the SSID search module Located in the cs device.
12、 如权利要求 9所述的 BS, 其特征在于, 所述 SSID查找模块包 括:用于存储 SSID分类规则的存储器和用于执行 SSID查找操作的处理 器。  The BS according to claim 9, wherein the SSID lookup module includes: a memory for storing an SSID classification rule and a processor for performing an SSID lookup operation.
13、 如权利要求 9所述的 BS, 其特征在于, 所述每个与不同 SSID 对应的流分类器包括: 用于存储 CID分类规则的存储器和用于执行 CID 查找操作的处理器。  The BS according to claim 9, wherein each of the stream classifiers corresponding to different SSIDs comprises: a memory for storing CID classification rules and a processor for performing CID search operations.
PCT/CN2006/002712 2005-10-24 2006-10-16 A stream classification device, a stream classification method and a base station applying the stream classification device WO2007048318A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNB2005101145155A CN100417140C (en) 2005-10-24 2005-10-24 Flow classification device and base station adopting same
CN200510114515.5 2005-10-24

Publications (1)

Publication Number Publication Date
WO2007048318A1 true WO2007048318A1 (en) 2007-05-03

Family

ID=37133710

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2006/002712 WO2007048318A1 (en) 2005-10-24 2006-10-16 A stream classification device, a stream classification method and a base station applying the stream classification device

Country Status (2)

Country Link
CN (1) CN100417140C (en)
WO (1) WO2007048318A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2710823A1 (en) * 2011-05-17 2014-03-26 Nec Corporation Network communication system and terminal
WO2016173541A1 (en) * 2015-04-30 2016-11-03 Hangzhou H3C Technologies Co., Ltd. Packet classification

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101848248B (en) * 2010-06-04 2012-12-26 华为技术有限公司 Rule searching method and device
CN102448053B (en) * 2010-09-30 2015-08-26 上海贝尔股份有限公司 Back haul link performs method and the via node of multiple MAC PDU transmission
CN103561010B (en) * 2013-10-28 2016-10-12 北京交通大学 A kind of integrated identification network data flow characteristics identification method
CN114827030B (en) * 2022-03-26 2023-04-07 西安电子科技大学 Flow classification device based on folded SRAM and table entry compression method
CN114745336B (en) * 2022-05-05 2023-11-21 中国人民解放军国防科技大学 Message classification method, device, computer equipment and storage medium based on RFC

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003304278A (en) * 2002-04-08 2003-10-24 Hitachi Ltd Flow detector and packet transfer device having flow detecting function
CN1477494A (en) * 2002-08-20 2004-02-25 深圳市中兴通讯股份有限公司上海第二 Data packet recursive flow sorting method
CN1494278A (en) * 2002-11-02 2004-05-05 华为技术有限公司 Data stream classifying method
US6741556B1 (en) * 2000-09-29 2004-05-25 Nortel Networks Limited Method for classifying persistent TCP flows
US6801530B1 (en) * 1999-09-20 2004-10-05 Telefonaktiebolaget Lm Ericsson (Publ) Communication system and method in a communication system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6757284B1 (en) * 2000-03-07 2004-06-29 Cisco Technology, Inc. Method and apparatus for pipeline sorting of ordered streams of data items
CN1172490C (en) * 2001-06-01 2004-10-20 华为技术有限公司 Fast double sorting and searching method
US7257131B2 (en) * 2002-12-13 2007-08-14 Cisco Technology, Inc. System and method for communicating traffic between a cell site and a central office in a telecommunications network
CN100377545C (en) * 2004-03-13 2008-03-26 鸿富锦精密工业(深圳)有限公司 Network quality service system and method
CN1633111B (en) * 2005-01-14 2010-04-28 中国科学院计算技术研究所 High-speed network traffic flow classification method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6801530B1 (en) * 1999-09-20 2004-10-05 Telefonaktiebolaget Lm Ericsson (Publ) Communication system and method in a communication system
US6741556B1 (en) * 2000-09-29 2004-05-25 Nortel Networks Limited Method for classifying persistent TCP flows
JP2003304278A (en) * 2002-04-08 2003-10-24 Hitachi Ltd Flow detector and packet transfer device having flow detecting function
CN1477494A (en) * 2002-08-20 2004-02-25 深圳市中兴通讯股份有限公司上海第二 Data packet recursive flow sorting method
CN1494278A (en) * 2002-11-02 2004-05-05 华为技术有限公司 Data stream classifying method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2710823A1 (en) * 2011-05-17 2014-03-26 Nec Corporation Network communication system and terminal
EP2710823A4 (en) * 2011-05-17 2015-04-22 Nec Corp Network communication system and terminal
US9215738B2 (en) 2011-05-17 2015-12-15 Nec Corporation Network communication system and terminal
WO2016173541A1 (en) * 2015-04-30 2016-11-03 Hangzhou H3C Technologies Co., Ltd. Packet classification
US10425343B2 (en) 2015-04-30 2019-09-24 Hewlett Packard Enterprise Development Lp Packet classification

Also Published As

Publication number Publication date
CN1852241A (en) 2006-10-25
CN100417140C (en) 2008-09-03

Similar Documents

Publication Publication Date Title
US10057387B2 (en) Communication traffic processing architectures and methods
US9065701B2 (en) Enhanced serialization mechanism
WO2007048318A1 (en) A stream classification device, a stream classification method and a base station applying the stream classification device
KR100358153B1 (en) QoS supported IP packet forwarding dispersion processing apparatus and method
WO2018126692A1 (en) Method and apparatus for controlling data transmission
WO2018133095A1 (en) Method for transmitting data packet, sending device, and receiving device
WO2010031324A1 (en) Method, device and system for data transmission
WO2022022229A1 (en) Method and device for processing message
WO2010034255A1 (en) Data transmission method and network node and data transmission system
WO2020063338A1 (en) Method for implementing data transmission, apparatus, and system
CN111884930B (en) Network layer message processing method and device applied to world-wide integrated network
US20230006937A1 (en) Packet flow identification with reduced decode operations
WO2011032446A1 (en) Method and system for encapsulating data
US20130064177A1 (en) Payload header reduction classification for multiprotocol convergence sublayer
CN109863733B (en) Method for dynamically indicating QFI and user equipment
CN115066975B (en) Layer 2 downstream data on-line processing using integrated circuits
WO2011097859A1 (en) Method and device for realizing flexible qinq
US9240898B1 (en) Integrating VLAN-unaware devices into VLAN-enabled networks
WO2022011561A1 (en) Wireless communication method and device
US20100316030A1 (en) Techniques for supporting multiple protocols in wireless networks
CN115460651A (en) Data transmission method and device, readable storage medium and terminal
CN101902830A (en) WiMAX network service classifier and service classification method
CN106550397A (en) For transmitting method, the apparatus and system of wireless data
US20230413108A1 (en) Pdu rate reduction in mobile communications
WO2023115283A1 (en) Communication methods, apparatuses, network element, communication device and computer storage medium

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: 06804933

Country of ref document: EP

Kind code of ref document: A1