Background technology
Various PDU(upper layer protocol data unit) there is typical package form below when being carried on Ethernet:
(1) Ethernet II(or DIX2.0)
Ethernet II packet format is the ethernet standard packet format formulated in nineteen eighty-two by Xerox and DEC, Intel, as shown in Figure 3.Wherein front 12 bytes are respectively mark and send " source node MAC Address " field of packet and " destination node MAC Address " field of reception packet.Ensuing 2 bytes are " ethernet type territory " fields, and the upper layer data type entrained by identification data packet, such as, 0x0800 represents IPv4 protocol data, and 0x8dDD represents IPv6 protocol data etc.4 bytes " bag effect sequence " field (Frame Check Sequence after " data " field of random length, FCS), 32 CRC cyclic redundancy effects are adopted to carry out effect to from " destination node MAC Address " field to the data of " data " field.
The Ethernet bag minimum length of Ethernet II type is 64 bytes (6+6+2+46+4), and maximum length is 1518 bytes (6+6+2+1500+4).
(2)Ethernet 802.3 raw
Ethernet 802.3 raw packet format is the dedicated ethernet standard packet format that Novell announced in nineteen eighty-three, as shown in Figure 4." ethernet type territory " field in Ethernet II type packet format is replaced with " length " field by Ethernet 802.3 raw type packet format, represent all field lengths arrived thereafter before " bag effect sequence " field, span is 46 ~ 1500.After " length " field, 2 bytes before " data " field are fixed as 0xFFFF, are Novell ethernet type packets for identifying this bag.
(3)Ethernet 802.3 SAP
Ethernet 802.3 SAP packet format is the SAP version ethernet packet format of the Ethernet802.3 that IEEE announced in 1985, as shown in Figure 5.0xFFFF in Ethernet 802.3 raw packet format is replaced with " source service access point " field (DSAP) of 1 byte and " destination service access point " field (SSAP) of 1 byte by Ethernet 802.3 SAP packet format, add " control " field of 1 byte, these 3 bytes constitute 802.2 logic link controls (LLC) stem simultaneously.DSAP and SSAP is for identifying the upper layer data type entrained by Ethernet bag." control " field is generally set as 0x03.
(4)Ethernet 802.3 SNAP
Ethernet 802.3 SNAP packet format, that is: Ethernet 802.3 SNAP PDU is packaged in ethernet packet format, as shown in Figure 6.DSAP and SSAP in Ethernet 802.3 SAP packet format is fixed as 0xAA by Ethernet 802.3 SNAP packet format, Control is fixed as 0x03, and add the PID field of 5 bytes, in RFC_1042 agreement, PID [39:16] is defined as 0X000000, and PID [15:0] is defined as " ethernet type " field (the EtherType territory with in Ethernet II) of 2 bytes.
The recognition methods of Ethernet data bag can carry out the identification of two layers of feature field, three layers of IP and four layers of TCP/UDP feature field according to above-mentioned specification, and characteristic feature field can be extracted be supplied to follow-up ACL(ACL) use or two layers, L3 Switching function uses.But along with the development of ethernet technology, the new data packet format at present based on Ethernet two layers encapsulation constantly occurs, below introduces the encapsulation technology that several main VLAN identifies:
(1) IEEE802.1Q and QINQ encapsulation
IEEE802.1Q(Virtual Bridged Local Area Networks) agreement, LAN is logically divided into multiple VLAN(VLAN), each VLAN adopts one No. VLAN_ID to carry out unique identification, and using vlan information as Tag(label) be inserted in basic Ethernet pack arrangement, its encapsulation format is (for Ethernet II type ethernet packet format) as shown in Figure 7.VLAN-Tag includes 4 bytes, and front 2 byte TPID are fixed as 0x8100, is be a kind of ethernet type of 802.1Q definition specially; In rear 2 bytes, Priority(3bit) represent the forwarding priority (defining in IEEE802.1p) of packet; VID(12bit) VLAN belonging to packet is represented.
It is nested that IEEE802.1ad agreement achieves VLAN on the basis of IEEE802.1Q, i.e. QinQ technology, and the encapsulation format (data packet format of band S-Tag, C-Tag) of packet as shown in Figure 7.According to the definition of IEEE802.1ad agreement, define the structure of the double layer VLAN of service provider VLAN (S-VLAN) and customer VLAN (C-VLAN), S-VLAN corresponds to service provider VLAN label (S-TAG), C-VLAN corresponds to customer VLAN tags (C-TAG), service provider uses S-VLAN, and client uses C-VLAN.Define the framework of service provider's bridge (Provider Bridge) and client bridge (Customer Bridge), client bridge is only responsive to C-VLAN, and service provider's bridge is only responsive to S-VLAN.
(2) multilayer VLAN treatment technology
Although in the definition of IEEE802.1ad agreement, define the structure of the double layer VLAN of service provider VLAN (S-VLAN) and customer VLAN (C-VLAN), but at some concrete service bearers with in realizing, also need to add extra mark in the packet and the information such as the logical links of bearer service in network are marked.Increase manageability and the QOS(Quality of Service of network).
Such as: the GPON(Gigabit-Capable PON current) in network and XGPON (10-Gigabit-capable passive optical networks) network.Up-downlink direction, Ethernet bag is directly encapsulated in GEM bag payload and carries.Before carrying out GEM encapsulation, lead code and SFD byte are dropped.Each Ethernet bag should be mapped to during an independent GEM bag or multiple GEM wrap, and when carrying out GEM and mapping, utilizes PORT_ID to carry out service identification.The mapping that Ethernet service wraps to GEM as shown in Figure 8.
At OLT(optical line terminal) on Ethernet bag is designated specific business and the problem being mapped to corresponding GEM port (PORT_ID) to solve.Often wrap again extra interpolation LLID (L-tag) at original Ethernet data.
Generally we take the data structure of VLAN field to LLID (L-tag), and figure is see Fig. 9 in definition.In order to systemic-function expansion and support more LLID, generally can insert two L_TAG at packet, can called after L0_TAG, L1_TAG.
At Ethernet service port, need the bag of reception and transmit band L0_TAG, L1_TAG, S-TAG, C_TAG tri-layers of VLAN mark and process according to different VLAN features.So abundant bag recognition capability must be possessed when carrying out the identification of Ethernet bag.
As can be seen from the Ethernet encapsulating structure of above-mentioned different technologies, the scene used along with ethernet port is different, two layers of encapsulation format of input packet there are differences, the number difference of VLAN mark, the difficulty all making packet resolve and complexity strengthen, and three layers of IP frame also has a variety of change in input packet side-play amount.
Therefore, in order to meet the demand of various application scenarios, be necessary the recognition device designing a kind of general ethernet frame, by the also unified recognition methods of this device specification.
Detailed description of the invention
Below in conjunction with accompanying drawing, the present invention is described in further detail.
As shown in Figure 1, the identification of Ethernet data bag of the present invention and treating apparatus, comprise: package identification analytics engine, Ethernet two layers encapsulating dress analytics engine and Ethernet two layers of Packet type field analytics engine, these three engines exist in the mode of stream treatment and identify two layers of encapsulation of Ethernet bag and process, prime engine exports whole variable to rear class engine, and rear class engine responds the input variable relevant with corresponding levels process and exports corresponding result.
On the basis of technique scheme, described package identification analytics engine comprises: Ethernet data bag input port, Ethernet data bag inputs from this input port, and carries out the dissection process of data frame identification, exports following variable to Ethernet two layers encapsulating dress analytics engine:
The nybble data of L0_Tag [31:0]: L0_Tag, first LLID variable,
The nybble data of L1_Tag [31:0]: L1_Tag, second LLID variable,
The nybble data of S_Tag [31:0]: S_Tag, service provider VLAN label variable,
The nybble data of C_Tag [31:0]: C_Tag, customer VLAN tags variable,
Tag_Code [3:0]: this variable is used to refer to the identification-state of input packet.
On the basis of technique scheme, described Tag_Code [3:0] information coding is defined as follows table 3.1:
The definition of table 3.1Tag_Code [3:0] information coding
On the basis of technique scheme, Ethernet two layers encapsulating dress analytics engine is according to the variable Tag_Code [3:0] received, the side-play amount of the payload field beyond the mark synchronously deriving Frame, and complete the identification to Ethernet data bag, be divided into Four types:
The packet that Ethernet II encapsulates,
The packet that Ethernet 802.3 raw encapsulates,
The packet that Ethernet 802.3 SAP encapsulates,
The packet that Ethernet 802.3 SNAP encapsulates,
Then, Ethernet two layers encapsulating dress analytics engine exports following variable further to Ethernet two layers of Packet type field analytics engine:
L2_package_data [39:0]: data relevant with packaging information in designation data frame, the concrete description defined see table 3.3,
Package_type [1:0]: indicative input bag is any of above-mentioned four kinds of Packet type, specific coding defines the description see table 3.3,
L2OFFSET_DATA [4:0]: the side-play amount of first data field in whole Frame in designation data frame beyond MAC_DA, MAC_SA, this side-play amount is different according to the difference of VLAN number.
On the basis of technique scheme, the corresponding relation that described L2_OFFSET_DATA [4:0] and Tag_Code [3:0] encodes is as following table 3.2:
The corresponding relation of table 3.2L2_OFFSET_DATA and Tag_Code [3:0]
Tag_Code [3:0] encodes |
L2_OFFSET_DATA [4:0] encodes |
0 |
13 |
1,2,4,8 |
17 |
3,5,6,9,10,12,14 |
21 |
7,11,13 |
25 |
15 |
29 |
On the basis of technique scheme, the definition of described L2_package_data [39:0] and Package_type [1:0] and corresponding relation are as following table 3.3:
The definition of table 3.3L2_package_data [39:0] and Package_type [1:0] and corresponding relation
On the basis of technique scheme, Ethernet two layers of Packet type field analytics engine receive the variable of Ethernet two layers encapsulating dress analytics engine output and the variable of package identification analytics engine output, add up to reception eight variablees, then according to the variable received, extract three layers of relevant information and port to after the whether enable control information of follow-up engine, processed in the processing engine of correspondence by Packet Generation, the processing engine of follow-up correspondence comprises:
IPV4 processing engine,
IPV6 processing engine,
Ethernet two layers of frame processing engine.
Ethernet two layers of frame processing engine are responsible for variables L 0_Tag [31:0], L1_Tag [31:0], S_Tag [31:0], and C_Tag [31:0] field processes, and identifies the content of each field and determines the process behavior that each field is corresponding; General behavior can comprise adds mark, deletes mark, replaces mark etc.;
IPV4 processing engine and IPV6 processing engine carry out the field process of IP layer respectively to the packet of IPV4 and IPV6.
Ethernet two layers of Packet type field analytics engine according to analysis result, when the packet of correspondence is IPV4 or IPV6 packet, can export L3_OFFSET_DATA [4:0]: indicate three layers of field relative to the side-play amount of two layers of field,
Follow-up IPV4 processing engine, IPV6 processing engine can easily utilize L2_OFFSET_DATA [4:0] variable and L3_OFFSET_DATA [4:0] variable to determine IP bag accurate side-play amount in the packet, carry out parsing and the process of IP field.
Above-mentioned Ethernet two layers of frame processing engine, IPV4 processing engine, the operation principle that IPV6 processing engine is concrete and device for carrying out said do not belong to this patent range of definition, therefore are no longer described in further detail.
The identification of Ethernet data bag of the present invention and the concrete working method for the treatment of apparatus as follows:
First package identification analytics engine resolves the mark of input packet.Concrete steps are as follows:
The port attribute Port_Mode [1:0] of the input port of setting data bag identification (RNC-ID) analytic engine and Ethernet bag VLAN identifies recognition template, and the input port shown in Fig. 1 refers in particular to the equipment input port that can receive ethernet data frame.
For different business or application model, equipment input port can work in different modes, receives the packet of different Ethernet encapsulated type.In the present invention, be equipment input port setting Port_Mode [1:0] variable, for setting the port attribute of this equipment input port.
The corresponding Three models of Port_Mode [1:0] variable:
Pattern 0:Port_Mode [1:0]=0, possesses the ability of the packet of resolving 802.1q encapsulation;
Pattern 1:Port_Mode [1:0]=1, possesses the analytic ability of pattern 0, can resolve the packet that two layers of Vlan mark (Qinq) encapsulate simultaneously;
Pattern 2:Port_Mode [1:0]=2, possesses the analytic ability of pattern 1, and can resolve multilayer Vlan mark, maximum analytic ability is four layers of Vlan simultaneously;
Under above 3 kinds of patterns, port can resolve the packet of traditional Ethernet encapsulation format, and the Packet analyzing ability of these 3 kinds of patterns strengthens successively, namely possesses the port of resolving QINQ encapsulated data packet, the sure packet parsing 802.1q encapsulation.
The setting of port attribute, relevant with the form of the port bearer service, according to its network attribute, different patterns can be selected.
If local terminal mouthpiece is used for the service adaptation port of XGPON network, then can select the pattern that is operated in 2, if the service needed of the port carrying supports the packet of QINQ, can selection mode 1, if be general terminal client port, selectable modes 0.
Ethernet bag VLAN identifies recognition template and comprises following database configuration:
Tpid_Data [3:0]: the TPID tag protocol identifier field of this optimum configurations 4 VLAN.Each TPID_DATA field 16 bit bit wide.In specifically arranging, this parameter must be greater than 0X0800.And can not overlap with traditional ethernet type (Ethertype) field.The definition of four TPID_DATA can be set as identical value.
To Tpid_Data [3:0] as given a definition:
Tpid_Data [0]: bit wide 16 bit, is defined as outermost VLAN field, corresponding to L0TAG.
Tpid_Data [1]: bit wide 16 bit, is defined as the VLAN field of second, corresponding to L1TAG.
Tpid_Data [2]: bit wide 16 bit, is defined as the VLAN field of the 3rd, corresponding to S TAG.
Tpid_Data [3]: bit wide 16 bit, is defined as the VLAN field of the 4th, corresponding to C TAG.
Package identification analytics engine workflow diagram as shown in Figure 2, in fig. 2:
Byte_1314: bit wide 16 bit, be defined as input packet and calculate from packet header first character joint, side-play amount is the content of 13,14 bytes.
Byte_1718: bit wide 16 bit, be defined as input packet and calculate from packet header first character joint, side-play amount is the content of 17,18 bytes.
Byte_2122: bit wide 16 bit, be defined as input packet and calculate from packet header first character joint, side-play amount is the content of 21,22 bytes.
Byte_2526: bit wide 16 bit, be defined as input packet and calculate from packet header first character joint, side-play amount is the content of 25,26 bytes.
When an Ethernet data bag inputs from port, according to Port_Mode [1:0] variable of port, carry out packet parsing, concrete steps are as follows:
If Port_Mode [1:0] equals 0, extract the 13rd of input packet the, 14 byte content Byte_1314, whether equal TPID_DATA [3], if not etc., then Tag_Code [3:0] assignment is 0.If equal, Tag_Code [3:0] assignment is 8.
Under Port_Mode [1:0] equals the prerequisite of 1:
If Byte_1314 equals TPID_DATA [3], Tag [3:0] assignment is 8.
If Byte_1314 is not equal to TPID_DATA [2], Byte_1314 is not equal to TPID_DATA [3], and Tag_Code [3:0] assignment is 0.
If Byte_1314 equals TPID_DATA [2], then continue 17,18 bytes extracting input packet, judge whether to equal TPID_DATA [3], if equal, then Tag_Code [3:0] assignment is 12.If etc., Tag_Code [3:0] assignment is not 4.
If Port_Mode [1:0] equals 2, carry out following condition judgment:
If Byte_1314 equal tpid_data [0] and Byte_1718 equal tpid_data [1] and Byte_2122 equal tpid_data [2] and
Byte_2324 equals tpid_data [3], then Tag_Code [3:0] assignment is 15.
If Byte_1314 equal tpid_data [0] and Byte_1718 equal tpid_data [1] and Byte_2122 equal tpid_data [2] and
Byte_2324 is not equal to tpid_data [3], and Tag_Code [3:0] assignment is 7.
If Byte_1314 equals tpid_data [0] and Byte_1718 equals tpid_data [1] and Byte_2122 equals tpid_data [3], Tag_Code [3:0] assignment is 11.
The estimate of situation of other branches of Fig. 2 is the same with above-mentioned, can carry out similar derivation, no longer describe in detail.
After completing above-mentioned derivation, obtain variable Tag_Code [3:0], according to Tag_Code [3:0], derive L0_Tag [31:0] in Ethernet data bag, L1_Tag [31:0], S_Tag [31:0], C_Tag [31:0] four variablees side-play amount in a data frame, carries out effective field extraction.Concrete side-play amount definition, see table 3.4.
In table 3.4,
Byte13TO16: bit wide 32 bit, be defined as input packet and calculate from packet header first character joint, side-play amount is the content of 13 to 16 bytes.
Byte17TO20: bit wide 32 bit, be defined as input packet and calculate from packet header first character joint, side-play amount is the content of 17 to 20 bytes.
Byte21TO24: bit wide 32 bit, be defined as input packet and calculate from packet header first character joint, side-play amount is the content of 21 to 24 bytes.
Byte25TO28: bit wide 32 bit, be defined as input packet and calculate from packet header first character joint, side-play amount is the content of 25 to 28 bytes.
Table 3.4 marking variable assignment definition list
The variable that the work of package identification analytics engine exports all delivers to Ethernet two layers encapsulating dress analytics engine.Partial Variable is applied at Ethernet two layers encapsulating dress analytics engine, and Partial Variable does not use, and is sent by former state.
The job step of Ethernet two layers encapsulating dress analytics engine is as follows:
Obtain the identification information Tag_Code [3:0] of Frame from package identification analytics engine, read a L2_OFFEST database according to this information, the content of this database is see the definition of table 3.2.Extract the offset information L2_OFFSET_DATA of data packet length and type field, extract data packet length and type field (Ethertype/Length) in the position that packet is corresponding, carry out the parsing of two layers of information in accordance with the following steps.
Relatively the size of Ethertype/Length byte and 0x0600, if be greater than 0x0600, then thinks ethernet type territory, and this packet is the packet that Ethernet II encapsulates;
If be less than 0x0600, and byte is following closely 0xAAAA_0300_0000, then think that this packet is the packet (for 4 kinds that introduce traditional Ethernet encapsulation format, Ethernet II and SNAP applies more at present) of SNAP encapsulation above.Here, packet can be identified as SNAP encapsulation.
If be less than 0x0600, and the byte after following closely is 0XFFFF, being then identified as this packet is the packet that Ethernet 802.3 raw encapsulates.
Otherwise being identified as this packet is the packet that Ethernet 802.3 SAP encapsulates.
After Ethernet two layers encapsulating dress analytics engine completes above-mentioned steps, export L2_package_data [39:0], Package_type [1:0] and L2_OFFSET_DATA [4:0] variable to Ethernet two layers of Packet type field analytics engine.
The job step of Ethernet two layers of Packet type field analytics engine is as follows:
First according to input Package_type [1:0], L2_Package_Data [39:0] variable carry out a degree of depth be 128 list item search, that mainly searches list item L2_Package_Entry searches territory, obtains the resultant field in matched and searched territory.
The structure of table 3.5L2_Package_Entry is defined as follows:
After Ethernet two layers of Packet type field analytics engine complete matched and searched, export following variable:
IPV4_ENGINERER_EN:IPV4 processing engine activates enable, and this variable is high, and indicative input bag has been identified as an IPV4 frame, needs to activate IPV4 processing engine and processes.
IPV6_ENGINERER_EN:IPV6 processing engine activates enable, and this variable is high, and indicative input bag has been identified as an IPV6 frame, needs to activate IPV6 processing engine and processes.
L2_ENGINERER_En: Ethernet two layers of frame processing engine activate enable.This variable is high, and indicative input bag has been identified as two layers of frame, needs activation two layers of processing engine.
L3_OFFSET_DATA [4:0]: indicate three layers of field relative to the side-play amount of two layers of field.This field can be carried out derivation according to Package_type variable and be obtained.Such as
Package_type equals 0, and be the packet that Ethernet II encapsulates, L3_OFFSET_DATA [4:0] assignment is 2.Indicate three layers of field immediately following after second byte of two layers of field.
Package_type equals 1, is the packet that Ethernet 802.3 SNAP encapsulates,
L3_OFFSET_DATA [4:0] assignment is 5, indicates three layers of field immediately following after second byte of two layers of field.
Input packet is by above-mentioned three large engines, and whole device exports following variable and processes to follow-up data packet processing engine:
Ipv4_Enginerer_En:IPV4 processing engine activates enable.
Ipv6_Enginerer_En:IPV6 processing engine activates enable.
L2_ENGINERER_En: Ethernet two layers of frame processing engine activate enable.
Package_type [1:0]: the type of indicative input bag.Specific coding definition is see the description of table 3.3.
Tag_Code [3:0]: the identification-state of indicative input bag.Table 3.1 is participated in specific coding definition.
The nybble data of L0_Tag [31:0]: L0_Tag.
The nybble data of L1_Tag [31:0]: L1_Tag.
The nybble data of S_Tag [31:0]: S_Tag.
The nybble data of C_Tag [31:0]: C_Tag.
L2_Package_Data [39:0]: concrete signal definition is see table 3.3.
L3_OFFSET_DATA [4:0]: indicate three layers of field relative to the side-play amount of two layers of field.
L2_OFFSET_DATA [4:0]: the side-play amount of instruction two layers of field.
According to above-mentioned field, follow-up can very easily with ethernet ip V4 processing engine, or IPV6 processing engine, Ethernet two layers of frame processing engine carry out interface.Complete the depth recognition of packet, resolve and process.
According to this device, for the various forms of Ethernet data bags of input, only by engine configuration database corresponding to this device of amendment, all two layers of parsings having packet under application scenarios just can be completed, and export the side-play amount of two layers of field, the side-play amount of three layers of field.
Follow-up engine can carry out the extraction of deep analysis and critical field automatically according to side-play amount.
Be below a specific embodiment:
In the HGU home gateway type unit of a FTTH application scenarios, there is the first line of a couplet port of a uni port (User Network Interface) and NNI (SNI).
For the ethernet frame of uni port ethernet port input, need to carry out following identifying processing:
1) can identify and receive the packet of 802.1q.Four kinds of Ethernet net encapsulation format can be supported.
2) to the DHCPV4 in the packet of input, DHCPV6, PPPOE agreement, can carry out deep analysis.
3) need to possess IPV4, the dissection process ability of IPV6 frame.
For above-mentioned application scenarios, can separate to arrange as follows and implement:
For the ethernet frame inputted from uni port ethernet port, first determine VLAN recognition capability, carry out following configuration:
PORT_MODE<=00, supports the identification of 802.1q encapsulated data packet.
The mark of Tpid_DATA [0] <=0X8100: configuration 802.1q encapsulation.
L2_offset_data such as table 3.6 configures, and accurately can identify the side-play amount of two layers of field.
Table 3.6L2_offset_data side-play amount allocation list
Tag_Code [3:0] encodes |
L2_OFFSET_DATA [4:0] encodes |
0 |
13 |
1,2,4,8 |
17 |
3,5,6,9,10,12,14 |
21 |
7,11,13 |
25 |
15 |
29 |
To the following entry of L2_Package_ENTRY table definition:
Entry 1: identify PPPOE Discovery bag, PPPOE frame is that typical EthernetII encapsulates, and ETHETTYPE field is 0x8863.
The then following configuration of L2_Package_ENTRY table:
Package_type[1:0]<=“0001”,
Package_type_CODE_Mask [3:0] <=" 0000 ", does not carry out mask
L2_Package_Data[39:0]<=0X0000008863,
L2_Package_Data [39:0] _ Mask<=0X0000000000, does not carry out mask.
Ipv4_Enginerer_En<=0, is not IP frame, does not start follow-up engine.
Ipv6_Enginerer_En<=0, is not IP frame, does not start follow-up engine.
L2_Enginerer_En<=1, enable Ethernet two layers of frame processing engine.
After completing above-mentioned configuration, when the ethernet frame of from then on port input untag and CTAG, can be accurately identified and be 13, CTAG packet by the side-play amount untag packet of two layers of field be 17.Pass to Ethernet two layers of Packet type field analytics engine.
Ethernet two layers of Packet type field analytics engine can identify ETHETTYPE field according to configuration and are 0x8863 frame and activate follow-up two layers of field processing engine.
For PPPOE Session Packet (PPPOE session packet), ETHETTYPE field is 0x8864.Can be configured in increase entry 2 in then L2_Package_ENTRY table and identify.
Configure as follows:
Entry 2: identify PPPOE Session Packet, ETHETTYPE field is the 0x8864. then following configuration of L2_Package_ENTRY table:
Package_type[1:0]<=“0001”,
L2_Package_Data[39:0]<=0X0000008863,
L2_Package_Data [39:0] _ Mask<=0X0000000000, does not carry out mask.
Ipv4_Enginerer_En<=0, is not IP frame, does not start follow-up engine.
Ipv6_Enginerer_En<=0, is not IP frame, does not start follow-up engine.
L3_OFFSET_DATA<=0, be not IP frame, L3_OFFSET_DATA variable is invalid.
L2_Enginerer_En<=1, enable Ethernet two layers of frame processing engine.
For the disposal ability activating IPV4 and IPV6, need configuring corresponding entry respectively in L2_Package_ENTRY table.
For IPV4 bag, configure as follows in the entry 3 of L2_Package_ENTRY table:
Package_type[1:0]<=“0011”,
L2_Package_Data[39:0]<=0X0000000800,
L2_Package_Data [39:0] _ Mask<=0X0000000000, does not carry out mask.
Ipv4_Enginerer_En<=1 is IPV4 frame, starts follow-up engine.
Ipv6_Enginerer_En<=0, is not IPV6 frame, does not start follow-up engine.
For IPV6 bag, configure as follows in the entry 4 of L2_Package_ENTRY table:
Package_type[1:0]<=“0011”,
L2_Package_Data[39:0]<=0X00000086DD,
L2_Package_Data [39:0] _ Mask<=0X0000000000, does not carry out mask.
Ipv4_Enginerer_En<=0, is not IPV4 frame, does not start follow-up engine.
Ipv6_Enginerer_En<=1 is IPV6 frame, starts follow-up engine.
After completing above configuration, this engine carries out two layers automatically, and the identification of three layer data frames also activates the work for the treatment of that corresponding engine carries out being correlated with.
The content be not described in detail in this description belongs to the known prior art of professional and technical personnel in the field.