CN104202229B - A kind of device for passive optical network OLT QINQ message processing methods and system - Google Patents

A kind of device for passive optical network OLT QINQ message processing methods and system Download PDF

Info

Publication number
CN104202229B
CN104202229B CN201410466844.5A CN201410466844A CN104202229B CN 104202229 B CN104202229 B CN 104202229B CN 201410466844 A CN201410466844 A CN 201410466844A CN 104202229 B CN104202229 B CN 104202229B
Authority
CN
China
Prior art keywords
qinq
patterns
layer
data
tables
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.)
Expired - Fee Related
Application number
CN201410466844.5A
Other languages
Chinese (zh)
Other versions
CN104202229A (en
Inventor
陈光军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weifang University
Original Assignee
Weifang University
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 Weifang University filed Critical Weifang University
Priority to CN201410466844.5A priority Critical patent/CN104202229B/en
Publication of CN104202229A publication Critical patent/CN104202229A/en
Application granted granted Critical
Publication of CN104202229B publication Critical patent/CN104202229B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The present invention relates to passive optical network technical field there is provided a kind of device for passive optical network OLT QINQ message processing methods and system, method includes:Pass through PON interface data flows, Layer 2 data and the analysis of three layer datas are carried out to data stream, obtain Layer 2 data table and three layer data tables, and generate QINQ tables, the value corresponding to the field of matching will be needed to be delivered in register in QINQ tables, positioning searching handles function, carry out rule match, the match is successful, outer layer QINQ labels SVID mark is then performed to data flow, and data flow is delivered into corresponding port, QINQVLAN is configured in OLT device so as to realize, outer layer QINQ labels SVID mark is carried out from the ONU data flows received to OLT, improve the processing speed of QINQ messages, optimize the network configuration of EPON+EOC systems, improve user's networking speed.

Description

A kind of device for passive optical network OLT QINQ message processing methods and system
Technical field
Reported the invention belongs to passive optical network technical field, more particularly to a kind of device for passive optical network OLT QINQ Literary processing method and system.
Background technology
Ethernet passive optical network (Ethernet Passive Optical Network, EPON) technology be it is a kind of be based on Too network technology, point-to-multipoint passive optical network access technology, it employs EPON (Passive in physical layer Optical Network, PON) technology, Ethernet protocol is used in link layer, Ethernet is realized using PON topological structure Access, its low cost, high bandwidth, autgmentability for combining PON technologies and ethernet technology be strong and flexibly quickly service Advantage, its progressively turn into a kind of maximally effective communication means of broadband access network.
With the quickening of integration of three networks process, EPON+EOC systems are generally used, broadband access network, and video on demand business is increasingly Popularization.The PON interface connection 32 of optical line terminal (Optical Line Terminal, OLT) in EPON+EOC schemes ~64 optical network units (Optical Network Unit, ONU), one EOC of ONU connection local side, EOC's Local side connects 32~64 EOC family end, and EOC family end connects several main frames, a PON of such a OLT device Mouth 1000~6000 users of band, in a Radio & Television network of county level, the OLT that a general small towns installs one 8 PON mouthfuls is set Standby, a county is by more than ten of small towns, and number of users is very huge.
In the huge EPON+EOC schemes of number of users, OLT device upper end connection interchanger, lower end connects several ONU, Broadcast traffic in the data flow that OLT device is conveyed to ONU does not carry out effective processing, causes invalid traffic in systems Produce, considerable influence is produced to the networking speed of user.
The content of the invention
It is an object of the invention to provide a kind of device for passive optical network OLT QINQ message processing methods, it is intended to solves existing There is OLT device in technology not carry out effective processing to the broadcast traffic of the ONU data flows conveyed, cause in systems without The generation of flow is imitated, the problem of considerable influence is produced to the networking speed of user.
The present invention is achieved in that a kind of device for passive optical network OLT QINQ message processing methods, and methods described includes Following step:
The data flow conveyed by PON interfaces from ONU;
Layer 2 data analysis is carried out to the data flow received, the Layer 2 data corresponding with the data flow is obtained Table, the Layer 2 data table include field and value option, wherein, the Field Options include board ID, PON ports, LLID, L2DA, L2SA, L2TYPE, CVID and COS;
Three layer data analyses are carried out to the data flow received, three layer datas corresponding with the data flow are obtained Table, the three layer datas table includes field and value option, wherein, the Field Options include board ID, PON ports, source IP Location and purpose IP address;
According to the Layer 2 data table and three layer datas table generation QINQ tables, the QINQ tables include sequence number, field With value option, wherein, the Field Options include board ID, PON ports, LLID, L2DA, L2SA, L2TYPE, CVID, COS, Source IP address and purpose IP address;
According to the QINQ patterns and corresponding configuration parameter being pre-selected, the word of matching will be needed in the QINQ tables Value corresponding to section is delivered in register, meanwhile, the configuration processing letter corresponding to the QINQ patterns that positioning searching is pre-selected Number;
By positioning searching to configuration processing function pair described in register the need for value corresponding to the field that matches Carry out rule match;
The match is successful, then outer layer QINQ labels SVID mark is performed to the data flow corresponding to the QINQ tables, and will Data flow after mark delivers to corresponding port, output of queuing up.
As an improvement scheme, it is described conveyed by PON interfaces from ONU data flow the step of before also Comprise the steps:
The QINQ patterns being pre-selected on computer network pages and corresponding configuration parameter, the QINQ patterns Including QINQ single-modes and QINQ integrated modes.
As an improvement scheme, QINQ patterns being pre-selected on computer network pages and corresponding Configuration parameter the step of before also comprise the steps:
QINQ patterns are defined, and generate the configuration processing function corresponding with the QINQ patterns.
As an improvement scheme, it is described that QINQ patterns are defined, and generate it is corresponding with the QINQ patterns Configuration processing function the step of specifically include following step:
The QINQ single-modes are defined, five kinds of QINQ single-modes are determined, the QINQ single-modes include Port QINQ patterns, the QINQ patterns based on inner VLAN, the QINQ patterns based on mac addresses, IP-based QINQ patterns with And the QINQ patterns based on ethernet type;
Select five kinds of QINQ single-modes any two kinds, generate QINQ integrated modes;
Every kind of QINQ patterns that the QINQ single-modes and QINQ integrated modes are included carry out sequence number connection arrangement, Generate QINQ mode sequences tables;
Function is handled for every kind of QINQ pattern configurations in the QINQ mode sequences table, generation handles function allocation list, The processing function allocation list is associated with the QINQ mode sequences table with the sequence number index of the QINQ patterns;
By the QINQ mode sequences table and processing function allocation list storage into memory.
Another object of the present invention is to provide a kind of device for passive optical network OLT QINQ message handling systems, its feature It is, the system includes:
Data stream reception module, for the data flow conveyed by PON interfaces from ONU;
Layer 2 data table acquisition module, the data flow for being received to the data stream reception module carries out two layers Data analysis, obtains the Layer 2 data table corresponding with the data flow, and the Layer 2 data table includes field and value option, its In, the Field Options include board ID, PON ports, LLID, L2DA, L2SA, L2TYPE, CVID and COS;
Three layer data table acquisition modules, the data flow for being received to the data stream reception module carries out three layers Data analysis, obtains the three layer data tables corresponding with the data flow, and the three layer datas table includes field and value option, its In, the Field Options include board ID, PON ports, source IP address and purpose IP address;
QINQ table generation modules, for the Layer 2 data table that is got according to the Layer 2 data table acquisition module and The three layer data tables generation QINQ tables of the three layer datas table generation module generation, the QINQ tables include sequence number, field and value Option, wherein, the Field Options include board ID, PON ports, LLID, L2DA, L2SA, L2TYPE, CVID, COS, source IP Address and purpose IP address;
It is worth conveyor module, for according to the QINQ patterns and corresponding configuration parameter being pre-selected, by the QINQ The value corresponding to the field of matching is needed to be delivered in register in the QINQ tables of table generation module generation;
At configuration processing function locating searching modul, the configuration corresponding to QINQ patterns being pre-selected for positioning searching Manage function;
Rule match module, for handling the configuration processing that function locating searching modul positioning searching is arrived by the configuration The value corresponding to field matched the need in register described in function pair carries out rule match;
SVID mark modules, for when the match is successful for the rule match module, to the number corresponding to the QINQ tables Outer layer QINQ labels SVID mark is performed according to stream, and the data flow after mark is delivered into corresponding port, output of queuing up.
As an improvement scheme, the system also includes:
QINQ mode selection modules, for the QINQ patterns that are pre-selected on computer network pages and corresponding Configuration parameter, the QINQ patterns include QINQ single-modes and QINQ integrated modes.
As an improvement scheme, the system also includes:
QINQ patterns and configuration processing function definition module, for being defined to QINQ patterns, and generate with it is described The corresponding configuration processing function of QINQ patterns.
As an improvement scheme, the QINQ patterns and configuration processing function definition module specifically include:
QINQ single-mode definition module QINQ single-mode definition modules, for being determined the QINQ single-modes Justice, determines five kinds of QINQ single-modes, and the QINQ single-modes include port QINQ patterns, the QINQ moulds based on inner VLAN Formula, the QINQ patterns based on mac addresses, IP-based QINQ patterns and the QINQ patterns based on ethernet type;
QINQ integrated mode generation modules, any two kinds for selecting five kinds of QINQ single-modes, generation QINQ combinations Pattern;
QINQ mode sequences table generation modules, the QINQ for the QINQ single-modes definition module to be defined is mono- Every kind of QINQ patterns that one pattern and the QINQ integrated modes of QINQ integrated modes generation module generation are included are carried out Sequence number connection arrangement, generates QINQ mode sequences tables;
Function allocation list generation module is handled, for the QINQ moulds generated by the QINQ mode sequences table generation module In formula sequence table every kind of QINQ pattern configurations processing function, generation processing function allocation list, the processing function allocation list with The QINQ mode sequences table is indexed with the sequence number of the QINQ patterns and associated;
Memory module, for the QINQ mode sequences table for generating the QINQ mode sequences table generation module and the place The processing function allocation list for managing the generation of function allocation list generation module is stored into memory.
Due to the data flow conveyed by PON interfaces from ONU, two numbers of plies are carried out to the data flow received Analyzed according to three layer datas, the Layer 2 data table and three layer data tables corresponding with the data flow is obtained, according to the two of acquisition Layer data table and three layer data tables generation QINQ tables, will according to the QINQ patterns and corresponding configuration parameter being pre-selected The value corresponding to the field of matching is needed to be delivered in register in QINQ tables, meanwhile, the QINQ moulds that positioning searching is pre-selected Configuration processing function corresponding to formula, by positioning searching to configuration processing function pair register in the need for the field that matches Corresponding value carries out rule match, and the match is successful, then performs outer layer QINQ labels SVID to the data flow corresponding to QINQ tables Mark, and the data flow after mark is delivered into corresponding port, output of queuing up is configured so as to realize in OLT device QINQVLAN, carries out outer layer QINQ labels SVID mark from the ONU data flows received to OLT, improves QINQ messages Processing speed, in EPON+EOC networks, carries out inner VLAN tag identifier, outer layer is carried out on OLT on the port of EOC terminal QINQ labels SVID mark, because broadcast traffic can only be transmitted in identical vlan number, so this set is further The network configuration of EPON+EOC systems is optimized, the transmission range of broadcast traffic is greatly reduced, invalid traffic situation is reduced Appearance, improve user's networking speed.
Brief description of the drawings
Fig. 1 is the implementation process figure of device for passive optical network OLT QINQ message processing methods provided in an embodiment of the present invention;
Fig. 2 be it is provided in an embodiment of the present invention QINQ patterns are defined, and generate it is corresponding with the QINQ patterns Configuration processing function implementation process figure;
Fig. 3 is the structured flowchart of device for passive optical network OLT QINQ message handling systems provided in an embodiment of the present invention;
Fig. 4 is the structured flowchart of QINQ patterns provided in an embodiment of the present invention and configuration processing function definition module.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Fig. 1 shows the realization stream of device for passive optical network OLT QINQ message processing methods provided in an embodiment of the present invention Cheng Tu, its specific step is as described below:
In step S101, the data flow conveyed by PON interfaces from ONU.
In step s 102, Layer 2 data analysis is carried out to the data flow received, obtains two corresponding with data flow Layer data table, Layer 2 data table include field and value option, wherein, the Field Options include board ID, PON ports, LLID, L2DA, L2SA, L2TYPE, CVID and COS.
Wherein, in embodiments of the present invention, the implication of each above-mentioned term is:
QINQ technologies:Also referred to as Stacked VLAN or DoubleVLAN, standard comes from IEEE802.1ad, and its realization will be used Family private network VLANTag is encapsulated in public network VLANTag, makes message (public with the backbone network of two layers of VLANTag passing through provider Net);
LLID:Logical Link Identifier, logical links mark, LLID is that EPON system distributes to logic chain A kind of Digital ID connect, each logical connection can be assigned to different LLID, in EPON system, and LLID is by webmaster Distributed by OLT, OLT can distinguish that frame is sent by which ONU by LLID, or will by changing the LLID in frame Frame is forwarded at corresponding ONU;
L2DA:Data link layer target MAC (Media Access Control) address;
L2SA:Data link layer source MAC;
L2TYPE:Data link layer Ethernet protocol type;
CVID:User vlan ID;
COS:The priority flag of data link layer or 802.1Q data frames, 3Bit scopes are 0~7;
SVID:Service provider's VLAN id number.
In step s 103, three layer data analyses are carried out to the data flow received, obtained and the data flow phase Corresponding three layer datas table, the three layer datas table include field and value option, wherein, the Field Options include board ID, PON ports, source IP address and purpose IP address.
In step S104, QINQ tables are generated according to Layer 2 data table and three layer data tables, wherein, QINQ tables include sequence Number, field and value option, Field Options include board ID, PON ports, LLID, L2DA, L2SA, L2TYPE, CVID and COS, Source IP address and purpose IP address.
The concrete structure of the QINQ tables is as shown in the table:
Sequence number Field Value
1 Board ID
2 PON ports
3 LLID
4 L2DA
5 L2SA
6 L2TYPE
7 CVID
8 COS
9 Source IP address
10 Purpose IP address
It is following to have detailed introduction, it will not be repeated here, but not to limit the present invention.
In step S105, according to the QINQ patterns and corresponding configuration parameter being pre-selected, it will be needed in QINQ tables Value corresponding to the field to be matched is delivered in register, meanwhile, corresponding to the QINQ patterns that positioning searching is pre-selected Configuration processing function.
In step s 106, by positioning searching to configuration processing function pair register in the need for the field institute that matches Corresponding value carries out rule match.
In step s 107, whether the rule match in judgment step S105 succeeds, and is then to perform step S107, otherwise holds Row step S108.
In step S108, the match is successful, then perform outer layer QINQ labels to the data flow corresponding to the QINQ tables SVID mark, and the data flow after mark is delivered into corresponding port, output of queuing up.
It is without any processing to the data flow that receives in step S109, transparent transmission.
In embodiments of the present invention, before above-mentioned steps S101, also comprise the steps:
The QINQ patterns being pre-selected on computer network pages and corresponding configuration parameter, the QINQ patterns Including QINQ single-modes and QINQ integrated modes.
I.e. on the Webpage of computer, it is provided with and selects option accordingly, selective corresponding QINQ patterns, and The corresponding configuration parameter of configuration in this mode etc., will not be repeated here.
Also comprise the steps before above-mentioned QINQ mode selecting steps:
QINQ patterns are defined, and generate the configuration processing function corresponding with the QINQ patterns, such as Fig. 2 institutes Show, it specifically includes following step:
In step s 201, the QINQ single-modes are defined, determine five kinds of QINQ single-modes, the QINQ Single-mode include port QINQ patterns, the QINQ patterns based on inner VLAN, the QINQ patterns based on mac addresses, based on IP QINQ patterns and QINQ patterns based on ethernet type.
Wherein, QINQ and flexible Qinq of the definition of QINQ patterns based on port, policy selection is by LLID, CVLAN ID, EtherType, CVLAN priority, CVLAN ID+EtherType and CVLAN ID+CVLAN priority, design five kinds QINQ patterns, by the form input data of the page, its be mainly port QINQ patterns, the QINQ patterns based on inner VLAN, QINQ patterns based on mac addresses, IP-based QINQ patterns and the QINQ patterns based on ethernet type, specifically:
1. port QINQ patterns
Port QINQ, port numbers and outside VLAN are opened, it mainly includes board ID, PON port id and outer layer QINQ label SVID options, wherein, board is PON chip boards, and port QINQ patterns are defined as follows shown in table:
Board ID PON port ids SVID
2. QINQ patterns based on inner VLAN
It mainly includes board ID, PON port id, starts CVID (first layer QINQ labels), terminates CVID, SVID, COS Source and self-defined COS options, it is specifically defined as follows shown in table:
3. QINQ patterns based on mac addresses
It mainly includes board ID, PON port id, source MAC, target MAC (Media Access Control) address and SVID options, and its is specific It is defined as follows shown in table:
4. IP-based QINQ patterns
It mainly includes board ID, PON port id, source IP address, purpose IP address and SVID options, and it is specific fixed Justice is as shown in the table:
Board ID PON port ids Source IP address Purpose IP address SVID
5. QINQ patterns based on ethernet type
It mainly includes board ID, PON port id, Ethertpe and SVID options, and it is specifically defined as follows table institute Show:
Board ID PON port ids Ethertpe SVID
PPPOE types
IPOE types
Wherein, can basis when same user both includes PPPOE business of networking, and IPOE IPTV service is included again ETYPE carries out data distribution, and IPOE protocol number is 0x0800, and PPPOE protocol number is 0x8863/8864.
In step S202, select five kinds of QINQ single-modes any two kinds generate QINQ integrated modes.
Wherein, any wherein two formation assembled schemes of selection from five kinds of single-modes, its species combined can lead to The exhaustive mode for crossing combination is listed.
In step S203, every kind of QINQ patterns that the QINQ single-modes and QINQ integrated modes are included are carried out Sequence number connection arrangement, generates QINQ mode sequences tables.
It is at every kind of QINQ pattern configurations processing function in the QINQ mode sequences table, generation in step S204 Function allocation list is managed, the processing function allocation list is indexed with the sequence number of the QINQ patterns with the QINQ mode sequences table and closed Connection.
Configuration processing function has variable, structure, if-then sentences, case statement, and assignment statement is constituted, herein not Repeat again.
In step S205, by the QINQ mode sequences table and processing function allocation list storage into memory.
Wherein, the corresponding relation of QINQ mode sequences table and processing function allocation list is as shown in the table:
Sequence number Field Configuration processing function
1 Board ID
2 PON ports
3 L2DA
4 L2SA
5 L2TYPE
6 CVID
7 COS
8 Source IP address
9 Purpose IP address
In above table, sequence number 1-9 is with a flag register as mark, and 1-2 sequence numbers are used as index, sequence number When 3-9 pattern is selected, by pattern formation mask word, when selection 1, then sorted successively according to the size of sequence number, if choosing Two are selected, after large size comes before the sequence number corresponding to this two comes according to trumpet, two numbers splicings obtain new sequence number.If Selection three is also that before trumpet comes, large size comes rear three sequence numbers and splice obtaining new sequence number.Spliced sequence number It is worth a part for the storage address offset that function is handled as configuration, carries out the corresponding configuration processing function of quick positioning, enter Row respective handling.The QINQ of different mode writes different configuration processing functions.The parameter of configuration processing function passes has board Number, PON port numbers, No. LLID, mask word, item number, the value of each, the first address of function, configuration processing function sentence can There are variable, structure, if-then sentences, case statement, assignment statement composition.
The value of field can take VALUEl,VALUEr..., VALUEn, the parameter of matched rule sets from QINQ pattern Put, matched rule may be configured as being more than VALUEl, less than VALUErOr equal to VALUEnShi Jinhang is matched.It is between matched rule "AND" logical relation, if data flow meets matching condition, carries out QINQ configurations.
When data flow, which enters, to be needed to be matched, configuration processing function exports SVID value, then by data-flow analysis mould Block determines output port, into output buffer, waits to be output.
By QINQ mode sequences table and processing function allocation list storage into memory, when user have selected accordingly After pattern, just according to the sequence number of institute's lectotype, then the configuration processing function of Search and Orientation correspondence sequence number is handled using the configuration Function pair needs the field matched to carry out rule match.
In embodiments of the present invention, according to selected QINQ patterns, the analysis that data stream is carried out can be entered as needed The analysis of row Layer 2 data and the analysis of three layer datas, i.e.,:
Layer 2 data analysis is carried out to the data flow received, the Layer 2 data corresponding with the data flow is obtained Table, the Layer 2 data table include field and value option, wherein, the Field Options include board ID, PON ports, LLID, L2DA, L2SA, L2TYPE, CVID and COS;
Three layer data analyses are carried out to the data flow received, three layer datas corresponding with the data flow are obtained Table, the three layer datas table includes field and value option, wherein, the Field Options include board ID, PON ports, source IP Location and purpose IP address;
Wherein:
Layer 2 data table is:
Field Value
Board ID
PON ports
LLID
L2DA
L2SA
L2TYPE
CVID
COS
Three layer data analytical tables are:
Field Value
Board ID
PON ports
Source IP causes
Purpose IP address
The structure of the QINQ tables formed by the Layer 2 data table and three layer data tables, it is described in detail below:
Sequence number Field Value
1 Board ID
2 PON ports
3 LLID
4 L2DA
5 L2SA
6 L2TYPE
7 CVID
8 COS
9 Source IP address
10 Purpose IP address
In embodiments of the present invention, according to the QINQ patterns chosen, the corresponding deposit of field value feeding for needing to match Device, the address of configuration processing function is determined according to the sequence number of pattern, and quick bond-allocating handles function, is passed to configuration processing function The parameter passed have board number, PON port numbers, No. LLID, mask word, item number, the value of each, the field such as the first address of function, So as to improve the treatment effeciency of QINQ messages.
The actions such as reception and processing operation in embodiments of the present invention, for data flow, are required to drive module and enter Row driving, will not be repeated here.
In embodiments of the present invention, what each above-mentioned embodiment was provided is the data flow received to PON interfaces from ONU Process content, that is, specifically include to upstream data and second layer QINQ labels carried out to data stream packet according to different fields Addition, wherein which can include two kinds of situations:
(1) addition SVID and exchange CVID;(2) SVID is only added;
It will not be repeated here.
Accordingly, for the data flow from NNI mouthfuls of receptions, its processing mode is:
When downlink data stream enters NNI mouthfuls, the header information and corresponding data information of mac frame are taken, data stream is divided Analysis, determines the board ID and NNI of the data flow port numbers, according to the QINQ patterns chosen, and analysis needs the field matched, root The address of configuration processing function is determined according to the sequence number of pattern, quick bond-allocating handles function, improve the processing effect of QINQ messages Rate.
Its processing procedure is identical with the handling principle of upstream data, will not be repeated here, but not to limit the present invention.
Fig. 3 shows that the structure of device for passive optical network OLT QINQ message handling systems provided in an embodiment of the present invention is shown It is intended to, the part related to the embodiment of the present invention is only gived for convenience of description, in figure.
Data stream reception module 11 is used for the data flow conveyed by PON interfaces from ONU;
The data flow that 12 pairs of the Layer 2 data table acquisition module data stream reception module 11 is received carries out two layers Data analysis, obtains the Layer 2 data table corresponding with the data flow, and the Layer 2 data table includes field and value option, its In, the Field Options include board ID, PON ports, LLID, L2DA, L2SA, L2TYPE, CVID and COS;
The data flow that three layer data table generation modules 13 are used to receive the data stream reception module carries out three Layer data is analyzed, and obtains the three layer data tables corresponding with the data flow, and the three layer datas table includes field and value option, Wherein, the Field Options include board ID, PON ports, source IP address and purpose IP address.
QINQ tables generation module 14 is used for the Layer 2 data got according to the Layer 2 data table acquisition module 12 Table and three layer data generation modules 13 generation three layer data tables generation QINQ tables, the QINQ tables include sequence number, field and It is worth option, wherein, the Field Options include board ID, PON ports, LLID, L2DA, L2SA, L2TYPE, CVID, COS, source IP address and purpose IP address;
Value conveyor module 15 is used for according to the QINQ patterns and corresponding configuration parameter being pre-selected, by the QINQ The value corresponding to the field of matching is needed to be delivered in register in the QINQ tables that table generation module 14 is generated;
Configuration processing function locating searching modul 16 is used for the configuration corresponding to the QINQ patterns that positioning searching is pre-selected Handle function;
Rule match module 17 is used to handle the configuration that the positioning searching of function locating searching modul 16 is arrived by the configuration The value corresponding to field matched the need for register described in processing function pair is interior carries out rule match;
SVID mark modules 18 are used for when the match is successful for the rule match module, to the number corresponding to the QINQ tables Outer layer QINQ labels SVID mark is performed according to stream, and the data flow after mark is delivered into corresponding port, output of queuing up.
In embodiments of the present invention, QINQ mode selection modules 19 are used for what is be pre-selected on computer network pages QINQ patterns and corresponding configuration parameter, the QINQ patterns include QINQ single-modes and QINQ integrated modes.
QINQ patterns and configuration processing function definition module 20 be used for QINQ patterns are defined, and generate with it is described The corresponding configuration processing function of QINQ patterns.
As shown in figure 4, QINQ patterns and configuration processing function definition module 20 are specifically included:
QINQ single-mode definition module QINQ single-modes definition module 201 is used to carry out the QINQ single-modes Definition, determines five kinds of QINQ single-modes, and the QINQ single-modes include port QINQ patterns, the QINQ based on inner VLAN Pattern, the QINQ patterns based on mac addresses, IP-based QINQ patterns and the QINQ patterns based on ethernet type;
QINQ integrated modes generation module 202 is used for select five kinds of QINQ single-modes any two kinds, generates QINQ groups Syntype;
QINQ mode sequences tables generation module 203 is used to determine the QINQ single-modes definition module QINQ single-modes The QINQ single-modes and the QINQ combinations of the QINQ integrated modes generation module 202 generation that adopted module 201 is defined Every kind of QINQ patterns that pattern is included carry out sequence number connection arrangement, generate QINQ mode sequences tables;
Processing function allocation list generation module 204 is generated for the QINQ mode sequences table generation module 203 Every kind of QINQ pattern configurations processing function in QINQ mode sequences tables, generation processing function allocation list, the processing function is matched somebody with somebody Table is put to associate with the sequence number index of the QINQ patterns with the QINQ mode sequences table;
Memory module 205 is used for the QINQ mode sequences table for generating the QINQ mode sequences table generation module and described The processing function allocation list for handling the generation of function allocation list generation module is stored into memory.
Wherein, the concrete function of above-mentioned modules and principle are realized, as described in above-mentioned embodiment of the method, herein not Repeat again, but not to limit the present invention.
In embodiments of the present invention, the data flow conveyed by PON interfaces from ONU, to the number received Layer 2 data and the analysis of three layer datas, the acquisition Layer 2 data table corresponding with the data flow and three layer datas are carried out according to stream Table, QINQ tables are generated according to the Layer 2 data table of acquisition and three layer data tables, according to the QINQ patterns being pre-selected and relatively The configuration parameter answered, will need the value corresponding to the field of matching to be delivered in register in QINQ tables, meanwhile, positioning searching is pre- In configuration processing function corresponding to the QINQ patterns first selected, the configuration processing function pair register arrived by positioning searching Need the value corresponding to the field of matching to carry out rule match, the match is successful, then the data flow corresponding to QINQ tables is performed outer Layer QINQ labels SVID mark, and the data flow after mark is delivered into corresponding port, output of queuing up is set so as to realize in OLT Standby upper configuration QINQVLAN, carries out outer layer QINQ labels SVID mark from the ONU data flows received to OLT, improves The processing speed of QINQ messages, in EPON+EOC networks, carries out inner VLAN tag identifier, in OLT on the port of EOC terminal The upper mark for carrying out outer layer QINQ labels SVID, because broadcast traffic can only be transmitted in identical vlan number, so this set The network configuration for optimizing EPON+EOC systems further, greatly reduces the transmission range of broadcast traffic, reduces nothing The appearance of traffic situation is imitated, user's networking speed is improved.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention Any modifications, equivalent substitutions and improvements made within refreshing and principle etc., should be included in the scope of the protection.

Claims (6)

1. a kind of device for passive optical network OLT QINQ message processing methods, it is characterised in that methods described comprises the steps:
The data flow conveyed by PON interfaces from ONU;
Layer 2 data analysis is carried out to the data flow received, the Layer 2 data table corresponding with the data flow is obtained, The Layer 2 data table include field and value option, wherein, the Field Options include board ID, PON ports, LLID, L2DA, L2SA, L2TYPE, CVID and COS;
Three layer data analyses are carried out to the data flow received, the three layer data tables corresponding with the data flow are obtained, The three layer datas table include field and value option, wherein, the Field Options include board ID, PON ports, source IP address with And purpose IP address;
According to the Layer 2 data table and three layer datas table generation QINQ tables, the QINQ tables include sequence number, field and value Option, wherein, the Field Options include board ID, PON ports, LLID, L2DA, L2SA, L2TYPE, CVID, COS, source IP Address and purpose IP address;
QINQ patterns are defined, and generate the configuration processing function corresponding with the QINQ patterns, it is described to QINQ moulds Formula is defined, and is generated the step of configuration corresponding with the QINQ patterns handles function and specifically included following step:
The QINQ single-modes are defined, five kinds of QINQ single-modes are determined, the QINQ single-modes include port QINQ patterns, the QINQ patterns based on inner VLAN, the QINQ patterns based on mac addresses, IP-based QINQ patterns and base In the QINQ patterns of ethernet type;
Select five kinds of QINQ single-modes any two kinds, generate QINQ integrated modes;
Every kind of QINQ patterns that the QINQ single-modes and QINQ integrated modes are included carry out sequence number connection arrangement, generation QINQ mode sequences tables;
Function is handled for every kind of QINQ pattern configurations in the QINQ mode sequences table, generation processing function allocation list is described Processing function allocation list is associated with the QINQ mode sequences table with the sequence number index of the QINQ patterns;
By the QINQ mode sequences table and processing function allocation list storage into memory;
According to the QINQ patterns and corresponding configuration parameter being pre-selected, the field institute of matching will be needed in the QINQ tables Corresponding value is delivered in register, meanwhile, the configuration processing function corresponding to the QINQ patterns that positioning searching is pre-selected, institute State the parameter of configuration processing function passes have board number, PON port numbers, No. LLID, mask word, item number, the value of each and letter Several first address;
By positioning searching to configuration processing function pair described in register the need for value corresponding to the field that matches carry out Rule match;
The match is successful, then outer layer QINQ labels SVID mark is performed to the data flow corresponding to the QINQ tables, and will mark Data flow afterwards delivers to corresponding port, output of queuing up.
2. device for passive optical network OLT QINQ message processing methods according to claim 1, it is characterised in that described logical Also comprise the steps before the step of crossing the data flow that PON interfaces convey from ONU:
The QINQ patterns being pre-selected on computer network pages and corresponding configuration parameter, the QINQ patterns include QINQ single-modes and QINQ integrated modes.
3. a kind of device for passive optical network OLT QINQ message handling systems, it is characterised in that the system includes:
Data stream reception module, for the data flow conveyed by PON interfaces from ONU;
Layer 2 data table acquisition module, the data flow for being received to the data stream reception module carries out Layer 2 data Analysis, obtains the Layer 2 data table corresponding with the data flow, and the Layer 2 data table includes field and value option, wherein, The Field Options include board ID, PON ports, LLID, L2DA, L2SA, L2TYPE, CVID and COS;
Three layer data table generation modules, the data flow for being received to the data stream reception module carries out three layer datas Analysis, obtains the three layer data tables corresponding with the data flow, and the three layer datas table includes field and value option, wherein, The Field Options include board ID, PON ports, source IP address and purpose IP address;
QINQ table generation modules, for the Layer 2 data table that is got according to the Layer 2 data table acquisition module and described The three layer data tables generation QINQ tables of three layer data table generation modules generation, the QINQ tables include sequence number, field and value option, Wherein, the Field Options include board ID, PON ports, LLID, L2DA, L2SA, L2TYPE, CVID, COS, source IP address with And purpose IP address;
It is worth conveyor module, for according to the QINQ patterns and corresponding configuration parameter being pre-selected, the QINQ tables to be given birth to The value corresponding to the field of matching is needed to be delivered in register in the QINQ tables generated into module;
Configuration processing function locating searching modul, the configuration processing letter corresponding to the QINQ patterns being pre-selected for positioning searching Number, it is described configuration processing function passes parameter have board number, PON port numbers, No. LLID, mask word, item number, the value of each With the first address of function;
Rule match module, for handling the configuration processing function that function locating searching modul positioning searching is arrived by the configuration Rule match is carried out to the value corresponding to the field that matches the need in the register;
SVID mark modules, for when the match is successful for the rule match module, to the data flow corresponding to the QINQ tables Outer layer QINQ labels SVID mark is performed, and the data flow after mark is delivered into corresponding port, output of queuing up.
4. device for passive optical network OLT QINQ message handling systems according to claim 3, it is characterised in that the system System also includes:
QINQ mode selection modules, for the QINQ patterns being pre-selected on computer network pages and corresponding configuration Parameter, the QINQ patterns include QINQ single-modes and QINQ integrated modes.
5. device for passive optical network OLT QINQ message handling systems according to claim 4, it is characterised in that the system System also includes:
QINQ patterns and configuration processing function definition module, for being defined to QINQ patterns, and are generated and the QINQ moulds The corresponding configuration processing function of formula.
6. device for passive optical network OLT QINQ message handling systems according to claim 5, it is characterised in that described QINQ patterns and configuration processing function definition module are specifically included:
QINQ single-mode definition modules, for being defined to the QINQ single-modes, determine five kinds of QINQ single-modes, The QINQ single-modes include port QINQ patterns, the QINQ patterns based on inner VLAN, the QINQ moulds based on mac addresses Formula, IP-based QINQ patterns and the QINQ patterns based on ethernet type;
QINQ integrated mode generation modules, generate QINQ integrated modes by any two kinds for selecting five kinds of QINQ single-modes;
QINQ mode sequences table generation modules, for the single moulds of the QINQ for defining the QINQ single-modes definition module Every kind of QINQ patterns that formula and the QINQ integrated modes of QINQ integrated modes generation module generation are included carry out sequence number Connection arrangement, generates QINQ mode sequences tables;
Function allocation list generation module is handled, for the QINQ pattern sequences generated by the QINQ mode sequences table generation module In list every kind of QINQ pattern configurations processing function, generation processing function allocation list, the processing function allocation list with it is described QINQ mode sequences table is indexed with the sequence number of the QINQ patterns and associated;
Memory module, for the QINQ mode sequences table and the processing letter for generating the QINQ mode sequences table generation module The processing function allocation list of number allocation list generation module generation is stored into memory.
CN201410466844.5A 2014-09-13 2014-09-13 A kind of device for passive optical network OLT QINQ message processing methods and system Expired - Fee Related CN104202229B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410466844.5A CN104202229B (en) 2014-09-13 2014-09-13 A kind of device for passive optical network OLT QINQ message processing methods and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410466844.5A CN104202229B (en) 2014-09-13 2014-09-13 A kind of device for passive optical network OLT QINQ message processing methods and system

Publications (2)

Publication Number Publication Date
CN104202229A CN104202229A (en) 2014-12-10
CN104202229B true CN104202229B (en) 2017-10-27

Family

ID=52087459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410466844.5A Expired - Fee Related CN104202229B (en) 2014-09-13 2014-09-13 A kind of device for passive optical network OLT QINQ message processing methods and system

Country Status (1)

Country Link
CN (1) CN104202229B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105307059B (en) * 2015-09-23 2019-01-29 烽火通信科技股份有限公司 A kind of system and method for realizing QINQ voice service intercommunication in PON
CN105516832B (en) * 2016-01-07 2019-01-15 烽火通信科技股份有限公司 The implementation method of terminal device data QINQ in a kind of GPON system
CN107835466B (en) * 2017-11-14 2020-10-16 烽火通信科技股份有限公司 Statistical method and statistical system for PON equipment service flow
CN112449744A (en) * 2018-08-21 2021-03-05 华为技术有限公司 Management method and device of optical network unit

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1838629A (en) * 2005-03-24 2006-09-27 杭州华为三康技术有限公司 Method for realizing virtual exchange using QinQ technique
CN101064682A (en) * 2006-04-29 2007-10-31 华为技术有限公司 Optical network terminal and its packet processing method thereof
CN102045607A (en) * 2010-12-28 2011-05-04 武汉烽火网络有限责任公司 Method for enhancing QoS (Quality of Service) and VLAN (Virtual Local Area Network) processing capability in EPON (Ethernet Passive Optical Network) system
CN102316388A (en) * 2010-07-09 2012-01-11 中兴通讯股份有限公司 Flexible QinQ realization method and device for passive optical network system
CN103701679A (en) * 2013-12-16 2014-04-02 上海斐讯数据通信技术有限公司 VLAN (virtual local area network) conversion implementation method
CN103780982A (en) * 2012-10-25 2014-05-07 上海斐讯数据通信技术有限公司 Olt device and epon system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012092586A2 (en) * 2010-12-30 2012-07-05 Peerapp Ltd. Methods and systems for transmission of data over computer networks

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1838629A (en) * 2005-03-24 2006-09-27 杭州华为三康技术有限公司 Method for realizing virtual exchange using QinQ technique
CN101064682A (en) * 2006-04-29 2007-10-31 华为技术有限公司 Optical network terminal and its packet processing method thereof
CN102316388A (en) * 2010-07-09 2012-01-11 中兴通讯股份有限公司 Flexible QinQ realization method and device for passive optical network system
CN102045607A (en) * 2010-12-28 2011-05-04 武汉烽火网络有限责任公司 Method for enhancing QoS (Quality of Service) and VLAN (Virtual Local Area Network) processing capability in EPON (Ethernet Passive Optical Network) system
CN103780982A (en) * 2012-10-25 2014-05-07 上海斐讯数据通信技术有限公司 Olt device and epon system
CN103701679A (en) * 2013-12-16 2014-04-02 上海斐讯数据通信技术有限公司 VLAN (virtual local area network) conversion implementation method

Also Published As

Publication number Publication date
CN104202229A (en) 2014-12-10

Similar Documents

Publication Publication Date Title
CN1286297C (en) Method of realizing sign delivery of user's position
US8902757B2 (en) Method and system for transparent LAN services in a packet network
US7933268B1 (en) IP multicast forwarding in MAC bridges
CN101313533B (en) Optical network terminal and packet process method
CN102238083B (en) For the system and method for adapted packet process streamline
US8437349B2 (en) Multicast snooping on layer 2 virtual private network
CN101867523B (en) PON system middle width strip business collocation method and device
CN104202229B (en) A kind of device for passive optical network OLT QINQ message processing methods and system
US8837481B2 (en) Inline packet replication in network devices
CN102695103B (en) Business retransmission method and system
US20040184408A1 (en) Ethernet architecture with data packet encapsulation
CN103701679B (en) A kind of method for realizing VLAN conversions
US20080159285A1 (en) Method and apparatus for improved multicast routing
CN104218995B (en) A kind of ONU, communication system and ONU communication means
WO2017181757A1 (en) Packet forwarding method and device
US8711856B2 (en) Method and device for processing broadcast packets/multicast control messages
CN103840996B (en) The method and system of user port VLAN traffic management are realized in optical network unit
CN100589443C (en) An Ethernet service processing method in Gbit passive optical network
CN114465920B (en) Method, device and system for determining corresponding relation
CN103475559B (en) Method and system for processing and transmitting message according to contents of message
CN103107934A (en) Message processing control method and device
CN103200126B (en) XG-PON system flow management device and method
CN103457824A (en) Message processing method and device
CN101827012B (en) Packet transmitting network as well as method for bearing services of pure three layers of IP packets and outlet node
CN106658236B (en) GPON service bearing chip implementing method based on multilayer VLAN label processing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171027

Termination date: 20210913

CF01 Termination of patent right due to non-payment of annual fee