Movatterモバイル変換


[0]ホーム

URL:


CN110035074A - A kind of chip implementing method and device of ACL matching UDF message - Google Patents

A kind of chip implementing method and device of ACL matching UDF message
Download PDF

Info

Publication number
CN110035074A
CN110035074ACN201910257519.0ACN201910257519ACN110035074ACN 110035074 ACN110035074 ACN 110035074ACN 201910257519 ACN201910257519 ACN 201910257519ACN 110035074 ACN110035074 ACN 110035074A
Authority
CN
China
Prior art keywords
acl
message
udf
matching
parsing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201910257519.0A
Other languages
Chinese (zh)
Inventor
焦凯
周杰
徐海青
赵茂聪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Centec Networks Suzhou Co Ltd
Original Assignee
Centec Networks Suzhou 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 Centec Networks Suzhou Co LtdfiledCriticalCentec Networks Suzhou Co Ltd
Priority to CN201910257519.0ApriorityCriticalpatent/CN110035074A/en
Publication of CN110035074ApublicationCriticalpatent/CN110035074A/en
Withdrawnlegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Present invention discloses the chip implementing methods and device of a kind of ACL matching UDF message, parse the method includes chip identification UDF message and to message, the parsing result that parsing is obtained is sent into ACL table;Parsing result is formed into ACL keyword, ACL table is searched according to ACL keyword, respective handling is carried out to message according to obtained matching behavior is searched.The present invention makes chip that the matching customized message of user may be implemented, so as to allow user to dispose more service applications.

Description

A kind of chip implementing method and device of ACL matching UDF message
Technical field
The present invention relates to a kind of ACL matching message technologies, realize more particularly, to a kind of chip of ACL matching UDF messageMethod and device.
Background technique
It is very big that UDF (user defined field, user's custom field) for user provides a kind of freedom degreeMatch (matching) tool, it is not necessary to stick to network layer/transport layer (L3/L4) defined protocol fields, but according to making by oneselfThe offset (offset) and content of justice are matched.
The full name of UDF ACL is User Define Field ACL.Common ACL (Access Control List, accessControl list) lack the matching capacity for being directed to four layers of information above.User's user-defined ACL (UDF ACL) is defined by user and is reportedThe deviation post and offset of text extract related content composition UDF (User Define Format) keyword from message to be comeThe mode for generating matching rule, formulates the matching rule of message, passes through the keyword in ACL key in which can allow user flexibilityUdf is identified.User-defined ACL is supported since the three layers of head, four layers of head of two layers of head of message, IPv4 and IPv6 partiallyIt moves, can at most configure 4 matching sections, every section of 4 bytes, maximum matching length is 16 bytes (128bit), it is necessary to be messageWithin the scope of preceding 144Bit.Mainly there are following features: compared to common ACL, the fixation position in fixed format message can only be matchedProtocol fields do not support Payload (load) partial content to match;And user's user-defined ACL is for passing through the position that specifies OffsetsSpecified matching regular length Bit data, it is more flexible, it customizes stronger;Also the matching of Payload partial content is supported, so as toRapid deployment is directed to the virus attack etc. with fixed character and is quickly defendd.
To sum up, although common ACL can remove ip, mpls (multiprotocol label switching), the arp (Address of matching criteriaResolution Protocol, address resolution protocol) etc. conventional message, but user be frequently necessary to ACL go to match it is some theyOneself fixed message, so need to provide a kind of ACL chip implementation of the matching customized message of user, so that user can be withDispose more service applications.
Summary of the invention
It is an object of the invention to overcome the deficiencies of existing technologies, a kind of chip realization side of ACL matching UDF message is providedMethod and device.
To achieve the above object, the following technical solutions are proposed by the present invention: a kind of chip realization side of ACL matching UDF messageMethod, which comprises
S1, chip identification UDF message simultaneously parse message, and the parsing result that parsing is obtained is sent into ACL table;
S2, forms ACL keyword for the parsing result, ACL table is searched according to the ACL keyword, according to searchingThe matching behavior arrived carries out respective handling to message.
Preferably, the S1 includes:
S11, chip search UDF table, find the matched message of condition according to lookup result, and carry out UDF to the messageParsing;
S12 takes out the matching content of designated position according to the lookup result from message;
S13, chip parse to obtain the parsing result, include the matching content in the parsing result.
Preferably, the lookup result includes the type and offset of start offset position.
Preferably, the parsing result further includes index address field and message validity field.
Preferably, the S2 includes:
S21 closes ACL described in the matching content of parsing result, index address field and message validity field groupsKey word;
S22 judges that the ACL keyword and mask do logical operation, does together with the keyword in ACL table with the maskWhether the result of the logical operation of sample is equal, if equal, the matching behavior is taken out from ACL table.
Preferably, in S22, the logical operation is logic and operation.
Present invention further teaches another technical solutions: a kind of chip realization device of ACL matching UDF message, describedDevice includes UDF message identification device and ACL coalignment, wherein
The UDF message identification device UDF message and parses message for identification, the parsing knot that parsing is obtainedFruit is sent into ACL table;
The ACL coalignment is used to the parsing result forming ACL keyword, is searched according to the ACL keywordACL table carries out respective handling to message according to obtained matching behavior is searched.
Preferably, the UDF message identification device includes searching parsing module, matching content taking-up module, the lookupParsing module finds the matched message of condition for searching UDF table, according to lookup result, and carries out UDF parsing to the message,Parsing obtains parsing result;The matching content is taken out module and is used for according to the lookup result for searching parsing module from messageThe middle matching content for taking out designated position includes the matching content in the parsing result.
Preferably, the parsing result further includes index address field and message validity field.
Preferably, the ACL coalignment includes group ACL keyword module and matching module, the ACL keyword moduleFor by ACL keyword described in the matching content of parsing result, index address field and message validity field groups;It is describedMatching module is done together with the keyword in ACL table with the mask for judging that the ACL keyword and mask do logical operationWhether the result of the logical operation of sample is equal, if equal, the matching behavior is taken out from ACL table.
The beneficial effects of the present invention are: the present invention makes chip that the matching customized message of user may be implemented, so as to allowUser disposes more service applications.
Detailed description of the invention
Fig. 1 is the schematic illustration of the method for the present invention;
Fig. 2 is the flow diagram of the method for the present invention;
Fig. 3 is the idiographic flow schematic diagram of step S1 of the present invention;
Fig. 4 is the idiographic flow schematic diagram of step S2 of the present invention.
Specific embodiment
Below in conjunction with attached drawing of the invention, clear, complete description is carried out to the technical solution of the embodiment of the present invention.
The revealed a kind of chip implementing method and device of ACL matching UDF message of the embodiment of the present invention, pass through identificationUDF message is matched from being taken out in required matching content feeding ACL in message, realizes that ACL can match unconventional UDF reportText is conducive to user and disposes more service applications.
Referring to figs. 1 and 2, the revealed a kind of chip realization side of ACL matching UDF message of the embodiment of the present inventionMethod is broadly divided into two large divisions, and first part is the process of chip identification UDF message, and second part is ACL matching UDF messageProcess.Specifically include:
S1, chip identification UDF message simultaneously parse message, and the parsing result that parsing is obtained is sent into ACL table.
As shown in connection with fig. 3, step S1 is specifically included:
S11, chip search UDF table, find the matched message of condition according to lookup result, and carry out UDF parsing to message.
Specifically, message enters chip, and chip first looks for UDF table (i.e. UDF cam, UDF content adressable memory), looks forTo the matched message of condition, UDF parsing is carried out.
UDF cam entry (entry) is defined in UDF cam (ParserUdfCam), comprising a plurality of in UDF camEntry, such as 16, validity field (entryValid), data field (data) and mask field are included in each entry(mask) etc..Wherein, the port information (portBitmapBase, portBitmap) in data field including message, message classType information (layer2Type, etherType), vlan quantity (vlanNum), two layers of information, three-layer information (ipsa, ipda),Four layers of information (l4srcport, l4dstport) etc..Wherein, UDF cam is a kind of chip memory mechanism, content addressable storageDevice (Coment Addressable Memory).
Chip matches according to the information in message with the above-mentioned corresponding field in UDF cam entry, if matching, i.e.,Matched entry is found, lookup result (ParserUdfCamResult) is obtained from the matching entry.
S12 takes out the matching content of designated position according to lookup result from message.
Specifically, include following field in above-mentioned lookup result:
The type (udfStartPosType) and offset (udfEntryOffset) of start offset position, the present embodimentIn, the type definition of start offset position four kinds, it is respectively as follows:
2 ' b00:Start from L2header indicate that udfStartPosType is 0, from two layer message headL2Header starts to take;
2 ' b01:Start after L2header indicate that udfStartPosType is 1, from three-tier message headL3Header starts to take;
2 ' b10:Start after L3header indicate that udfStartPosType is 2, from four layers of headerL4Header starts to take;
2 ' b11:UDF=127 ' d0 indicate disabling udf (disable udf).
Corresponding offset also defines four seed types:
UdfEntryOffset0 [3:0], unit:4Byte;
UdfEntryOffset1 [3:0], unit:4Byte;
UdfEntryOffset2 [3:0], unit:4Byte;
UdfEntryOffset3 [3:0], unit:4Byte.
That is, if lookup result are as follows:
If udfStartPosType is 0, taken since L2Header, udfEntryOffset0 [3:0]~UdfEntryOffset3 [3:0] specified 4 opposite offset initial positions, can at most take out 128bits content in total;
If udfStartPosType is 1, taken since L3Header, udfEntryOffset0 [3:0]~UdfEntryOffset3 [3:0] specified 4 opposite offset initial positions, can at most take out 128bits content in total;
If udfStartPosType is 2, taken since L4Header, udfEntryOffset0 [3:0]~UdfEntryOffset3 [3:0] specified 4 opposite offset initial positions, can at most take out 128bits content in total;
If udfStartPosType is 3, then it represents that disable udf.
S13, chip parse to obtain parsing result, include matching content in parsing result.
Specifically, chip parses UDF message, and obtained parsing result includes following data:
Matching content (ParserResult.udf): the 128bits message content of i.e. above-mentioned taking-up, asParserResult.udf[127:0];
Index address field: in the present embodiment, it is defined as ParserResult.udfHitIndex [3:0];
Message validity field: in the present embodiment, it is defined as ParserResult.udfValid.
Chip by these fields (ParserResult.udf [127:0], ParserResult.udfHitIndex [3:0],ParserResult.udfValid it) is sent into subsequent ACL and handles, that is, enter step S2.
S2, forms ACL keyword for parsing result, searches ACL table according to ACL keyword, the matching obtained according to lookupBehavior carries out respective handling to message.
This part is the process of above-mentioned ACL matching UDF message, and as shown in connection with fig. 4, specifically, S2 includes:
S21, by the matching content of parsing result, index address field and message validity field groups ACL keyword.
Data ParserResult.udf [127:0] that above-mentioned UDF is finally exported,ParserResult.udfHitIndex [3:0], ParserResult.udfValid form corresponding ACL keyword (key),It is matched for ACL.
S22 judges that ACL keyword and mask do logical operation, does same logic with mask with the keyword in ACL tableWhether the result of operation is equal, if equal, matching behavior is taken out from ACL table.
Specifically, after judging that the above-mentioned ACL key of chipset and the mask (mask) under user do logical operation, this implementationIt is logic and operation (&) in example, the knot of same logical operation is done with the keyword in ACL table and the mask under user (mask)Whether fruit is equal, if equal, i.e. expression TCAM is found, and takes corresponding matching behavior (Action), does corresponding processing;If noIt is equal, then illustrate that TCAM is not found, corresponding Action will not be taken.
It is corresponding with the above-mentioned ACL matching chip implementing method of UDF message, a kind of revealed ACL of the embodiment of the present inventionMatch the chip realization device of UDF message, including UDF message identification device and ACL coalignment, wherein
UDF message identification device UDF message and parses message for identification, and parsing result that parsing obtains is sentEnter ACL table.
Specifically, UDF message identification device includes searching parsing module, matching content taking-up module, wherein searches parsingModule finds the matched message of condition for searching UDF table, according to lookup result, and carries out UDF parsing to message, and parsing obtainsParsing result.
Matching content takes out module and is used to take out designated position from message according to the lookup result for searching parsing moduleMatching content includes matching content in parsing result.
ACL coalignment is used to parsing result forming ACL keyword, ACL table is searched according to ACL keyword, according to looking intoThe matching behavior found carries out respective handling to message.
Specifically, ACL coalignment includes group ACL keyword module and matching module, wherein
ACL keyword module is used for the matching content of parsing result, index address field and message validity field groupsAt ACL keyword.
Matching module is done together with the keyword in ACL table with mask for judging that ACL keyword and mask do logical operationWhether the result of the logical operation of sample is equal, if equal, matching behavior is taken out from ACL table.
Wherein, the concrete principle of above-mentioned UDF message identification device and ACL coalignment can refer to retouching in above-mentioned S1 and S2It states, which is not described herein again.
Technology contents and technical characteristic of the invention have revealed that as above, however those skilled in the art still may baseMake various replacements and modification without departing substantially from spirit of that invention, therefore, the scope of the present invention in teachings of the present invention and announcementIt should be not limited to the revealed content of embodiment, and should include various without departing substantially from replacement and modification of the invention, and be this patent ShenPlease claim covered.

Claims (10)

CN201910257519.0A2019-04-012019-04-01A kind of chip implementing method and device of ACL matching UDF messageWithdrawnCN110035074A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201910257519.0ACN110035074A (en)2019-04-012019-04-01A kind of chip implementing method and device of ACL matching UDF message

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910257519.0ACN110035074A (en)2019-04-012019-04-01A kind of chip implementing method and device of ACL matching UDF message

Publications (1)

Publication NumberPublication Date
CN110035074Atrue CN110035074A (en)2019-07-19

Family

ID=67237161

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910257519.0AWithdrawnCN110035074A (en)2019-04-012019-04-01A kind of chip implementing method and device of ACL matching UDF message

Country Status (1)

CountryLink
CN (1)CN110035074A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110708329A (en)*2019-10-162020-01-17盛科网络(苏州)有限公司Method for identifying unknown tunnel message based on UDF
CN111464559A (en)*2020-04-202020-07-28苏州雄立科技有限公司Data transmission method and transmission device based on UDB
CN113132241A (en)*2021-05-072021-07-16杭州迪普信息技术有限公司ACL template dynamic configuration method and device
CN113438252A (en)*2021-07-082021-09-24恒安嘉新(北京)科技股份公司Message access control method, device, equipment and storage medium
CN116346957A (en)*2021-12-232023-06-27苏州盛科通信股份有限公司 Message processing method and device, electronic equipment and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102857428A (en)*2012-09-182013-01-02杭州华三通信技术有限公司Message transmitting method and message transmitting equipment on basis of access control list
CN106572085A (en)*2016-10-192017-04-19盛科网络(苏州)有限公司Chip from perspective of UDF application and matching method
WO2017124693A1 (en)*2016-01-212017-07-27中兴通讯股份有限公司Method and device for message decapsulation and data writing
CN108881037A (en)*2018-09-122018-11-23盛科网络(苏州)有限公司It is a kind of that Hash operation, the method and device of load balancing are realized based on UDF message

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102857428A (en)*2012-09-182013-01-02杭州华三通信技术有限公司Message transmitting method and message transmitting equipment on basis of access control list
WO2017124693A1 (en)*2016-01-212017-07-27中兴通讯股份有限公司Method and device for message decapsulation and data writing
CN106572085A (en)*2016-10-192017-04-19盛科网络(苏州)有限公司Chip from perspective of UDF application and matching method
CN108881037A (en)*2018-09-122018-11-23盛科网络(苏州)有限公司It is a kind of that Hash operation, the method and device of load balancing are realized based on UDF message

Cited By (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110708329A (en)*2019-10-162020-01-17盛科网络(苏州)有限公司Method for identifying unknown tunnel message based on UDF
CN111464559A (en)*2020-04-202020-07-28苏州雄立科技有限公司Data transmission method and transmission device based on UDB
CN111464559B (en)*2020-04-202022-12-23苏州雄立科技有限公司Message data transmission method and transmission device based on UDB
CN113132241A (en)*2021-05-072021-07-16杭州迪普信息技术有限公司ACL template dynamic configuration method and device
CN113132241B (en)*2021-05-072022-05-24杭州迪普信息技术有限公司ACL template dynamic configuration method and device
CN113438252A (en)*2021-07-082021-09-24恒安嘉新(北京)科技股份公司Message access control method, device, equipment and storage medium
CN116346957A (en)*2021-12-232023-06-27苏州盛科通信股份有限公司 Message processing method and device, electronic equipment and computer storage medium
WO2023116318A1 (en)*2021-12-232023-06-29苏州盛科通信股份有限公司Packet processing method and apparatus, electronic device and computer storage medium

Similar Documents

PublicationPublication DateTitle
CN110035074A (en)A kind of chip implementing method and device of ACL matching UDF message
US8874876B2 (en)Method and apparatus for packet switching
CN109672669B (en)Method and device for filtering flow message
US10476794B2 (en)Efficient caching of TCAM rules in RAM
US10496680B2 (en)High-performance bloom filter array
US9627063B2 (en)Ternary content addressable memory utilizing common masks and hash lookups
US9984144B2 (en)Efficient lookup of TCAM-like rules in RAM
US7289498B2 (en)Classifying and distributing traffic at a network node
CN102577273B (en)Iterative parsing and classification
US7149216B1 (en)M-trie based packet processing
JP5518135B2 (en) Extensible multicast forwarding method and apparatus for data center
CN111937360B (en)Longest prefix matching
CN101030947B (en)Method and apparatus for transmitting message
WO2019185051A1 (en)Integrated flow table-based packet forwarding method and device
CN101035060A (en)Integrated processing method for three-folded content addressable memory message classification
US20140086249A1 (en)Method for IPv6 Longest Prefix Match
US20180316613A1 (en)Scaling of switching tables with high bandwidth
CN105591914A (en)Openflow flow table look-up method and device
US6970971B1 (en)Method and apparatus for mapping prefixes and values of a hierarchical space to other representations
CN112667526B (en)Method and circuit for realizing access control list circuit
US7219187B1 (en)Search parameter table in a content addressable memory
CN100472427C (en) A method of data packet recursive flow classification
US10205658B1 (en)Reducing size of policy databases using bidirectional rules
CN100403726C (en) A Method for Realizing IPv6 Packet Flow Classification
KR20130093707A (en)Packet classification apparatus and method for classfying packet thereof

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
WW01Invention patent application withdrawn after publication
WW01Invention patent application withdrawn after publication

Application publication date:20190719


[8]ページ先頭

©2009-2025 Movatter.jp