CN103701679B - A kind of method for realizing VLAN conversions - Google Patents

A kind of method for realizing VLAN conversions Download PDF

Info

Publication number
CN103701679B
CN103701679B CN201310694670.3A CN201310694670A CN103701679B CN 103701679 B CN103701679 B CN 103701679B CN 201310694670 A CN201310694670 A CN 201310694670A CN 103701679 B CN103701679 B CN 103701679B
Authority
CN
China
Prior art keywords
data flow
vlan
information
default
conversions
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.)
Active
Application number
CN201310694670.3A
Other languages
Chinese (zh)
Other versions
CN103701679A (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.)
Shandong Future Group Co ltd
Original Assignee
Shanghai Feixun Data Communication Technology 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201310694670.3A priority Critical patent/CN103701679B/en
Publication of CN103701679A publication Critical patent/CN103701679A/en
Application granted granted Critical
Publication of CN103701679B publication Critical patent/CN103701679B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses a kind of method for realizing VLAN conversions, it belongs to QinQ technical fields;Method includes:Step 1, OLT device reading data flow;Step 2, for the corresponding data flow sequence number of every data stream, a corresponding address domain information is matched;And according to the default ownership goal information of address domain information matched and searched every upstream of correspondence;Step 3, according to each ownership goal information, a default processing rule set is matched to every data stream;Step 4, according to each processing rule set, every data stream is handled accordingly;Subsequent OLT device exports treated data flow.The beneficial effect of above-mentioned technical proposal is:The selective QinQ allocation rule based on LLID is realized, downstream data flow 1 is realized:N VLAN conversions so that the data flow in non-conversion rule can also obtain corresponding rule process.

Description

A kind of method for realizing VLAN conversions
Technical field
The present invention relates to QinQ technical fields, more particularly to a kind of method for realizing VLAN conversions.
Background technology
In EPON system, traditional data transfer only uses the VLAN tag of common port, i.e., when data flow is being admitted to The VLAN tag of common network is only labeled with when being handled in interchanger.Due to the VLAN tag of common network be it is limited, For the data flow in the case of private network accesses public network, the number of the VLAN tag of common network is limited, and mark occurs unavoidably The problem of label conflict.Meanwhile, user wishes to carry out the data flow of user terminal certain private processing, for example, add some users Hold VLAN tag of private network etc..Be born QinQ technologies under the demand.
Traditional QinQ technologies, increase a QinQ port generally in OLT device, and data flow is added first in user terminal Plus a vpn label(That is the VLAN tag of user terminal), subsequent QinQ port is to one system of data flow addition into the port One outer layer label(That is the VLAN tag of common network).The addition manner of this VLAN tag, the limitation in practice It is larger, for example, when multiple users are from same QinQ port access network, it is impossible to carry out area to user type and type of service Grade.Accordingly, it would be desirable to use another QinQ technologies, i.e. selective QinQ technology to VLAN transfer processes.
So-called selective QinQ technology, refers to, according to different per the value in data stream, distribute to every data stream one right The outer layer label answered, so as to carry out different processing to different data flows.Specifically, actually can basis in selective QinQ The letters such as the VLAN tag of message, MAC Address, IP agreement, source address, destination address, the port numbers of priority or application program Cease and different outer layer labels are added to different data flows, it is achieved thereby that according to different user, different business, different priorities Deng taking message corresponding processing mode.But in traditional selective QinQ technology, be only capable of defaulting in OLT for being included in and setting The data flow in vlan list in standby is handled(Data flow i.e. under the transformation rule in VLAN), advised for non-conversion Data flow under then, i.e., the data flow being not included in default vlan list produced due to addition VLAN operations, tradition Selective QinQ technology can not be handled well, or even can to the data flow carry out misclassification.
Chinese patent(CN1838629)A kind of method that utilization QinQ technologies realize virtual switch is disclosed, it is existing to solve There is the problem of technology can not realize double layer intercommunication between the network that different geographical have different VLAN ID to identify.Including as follows Step:Configuration step, configures QinQ VLAN swap tables, including public network VLAN ID, go out port numbers, private network in intermediate equipment The information such as the VLAN ID and new private network VLAN ID after exchange;Query steps, when QinQ terminates, with the outer layer public network of stripping The VLAN ID of VLAN ID+ go out port numbers+private network go to inquire about QinQ VLAN swap tables, obtain new private network VLANID;Exchange and Forwarding step, original VLAN ID is replaced with new private network VLAN ID, and the packet after replacement is sent out from exit port Go.Above-mentioned technical proposal is only described to QinQ technologies, and introduction is confined to outside private network VLAN ID add public network VLAN ID, in output, peeling outer layer public network VLAN ID can not solve to deposit in the prior art to form a new private network VLAN ID The problem of.
Chinese patent(CN1838628)A kind of method for realizing network interconnection between different QinQ apparatus is disclosed, with Solve incompatible between different types of QinQ equipment in the prior art, having can not between the network of different QinQ equipment The problem of intercommunication.Comprise the following steps:QinQ access styles table is configured in an intermediate equipment to be used to define various accreditations QinQ device type values, QinQ access style tables are inquired about according to inbound port QinQ packet informations, handle legal QinQ types Packet;Configuration QinQ types conversion table is used for the QinQ types values for defining opposite equip. accreditation in a device, by searching QinQ type conversion tables, will export QinQ type of data packet values and replace with the QinQ types values that opposite equip. is supported.Above-mentioned technology Scheme is not explained selective QinQ technology and further improved, it is impossible to solve problems of the prior art.
The content of the invention
The defect according to present in prior art, i.e., existing selective QinQ technology can not be in descending N:It is right in the case of 1 The problem of up-downgoing data flow sent in same ONU equipment carries out different switching, now provides a kind of side for realizing VLAN conversions Method, is specifically included:
A kind of method for realizing VLAN conversions, it is adaptable in EPON system;The EPON system includes ONU equipment and OLT Equipment;The OLT device connects the ONU equipment by PON interfaces;The OLT device connects extranets by NNI interfaces Network;Include the Switching Module for realizing VLAN conversions in the OLT device;
The data flow is added after the VLAN tag of user terminal is admitted to the Switching Module by the PON interfaces In;
The Switching Module carries out VLAN conversions after the VLAN tag of common port is added to the data flow received, with The data flow changed by VLAN is exported by the NNI interfaces afterwards;
Wherein:The corresponding data flow sequence number of every data stream between the ONU equipment and the OLT device;
The method for realizing VLAN conversions includes:
Step 1, the OLT device reads the data flow;
Step 2, for the corresponding data flow sequence number of data flow every described, a corresponding address domain information is matched; And according to the default ownership goal information of the address domain information matched and searched every upstream of correspondence;
Step 3, according to each ownership goal information, to one default processing rule of data stream matches every described Collection;
Step 4, according to each processing rule set, data flow every described is handled accordingly;It is then described OLT device exports the treated data flow.
It is preferred that, this realizes the method for VLAN conversions, wherein, the data flow includes upstream and downlink data Stream;The upstream is sent to the OLT device by the ONU equipment by the PON interfaces, through the OLT device Sent after processing by the NNI interfaces to external network;The downstream data flow is connect by the OLT device by the NNI Mouth is read from the external network, and is sent after OLT device processing by the PON interfaces to corresponding described ONU equipment;
One upstream correspondence, one downstream data flow.
It is preferred that, this realizes the method for VLAN conversions, wherein, the data flow sequence number includes transmission sequence number information and mesh Mark address information;The one transmission sequence number information of every upstream correspondence, every downstream data flow correspondence One target address information.
It is preferred that, this realizes the method for VLAN conversions, wherein, in the step 2, upstream every described is distributed The method of one default ownership goal information is specifically included:
Step 21, according to the transmission sequence number information, the address domain information defaulted in the Switching Module is searched Matching range;
Step 22, the VLAN sequence numbers included according to the upstream, in the matching range search with it is described The corresponding address domain information of transmission sequence number information;
Step 23, according to the address domain information, obtain corresponding ownership goal information and be used as the upstream The ownership goal information.
It is preferred that, this realizes the method for VLAN conversions, wherein, in the step 22, order matching is in the matching model The interior address domain information is enclosed, to find the address domain information for adapting to the VLAN sequence numbers.
It is preferred that, this realizes the method for VLAN conversions, wherein, in the step 22, the method for determining the matching range Specifically include:
Step 221, first address domain information in the matching range is searched;
Step 222, the quantity for the address domain information that the matching range includes is searched;
Step 223, the matching range is limited with the result of the result of the step 221 and the step 222.
It is preferred that, this realizes the method for VLAN conversions, wherein, a default address domain information is set;The default ground Location domain information one default ownership goal information of correspondence;When the VLAN sequence numbers included according to the upstream can not Matching obtains the corresponding address and information, then corresponding described default to obtain using the default address domain information Ownership goal information.
It is preferred that, this realizes the method for VLAN conversions, wherein, in the step 2, downstream data flow every described is distributed The method of one default ownership goal information is specifically included:According to the target address information, the default use of matching one Family target information.
It is preferred that, this realizes the method for VLAN conversions, wherein, in the step 2, if to the downstream data flow, it is impossible to The default ownership goal information is matched, then distributes the ownership goal letter corresponding to the corresponding upstream Cease to the downstream data flow.
It is preferred that, this realizes the method for VLAN conversions, wherein, it is all to enter institute from the PON interfaces in the step 2 The data flow for stating OLT device is detected as the upstream.
It is preferred that, this realizes the method for VLAN conversions, wherein, in the step 3, include in the processing rule set many Individual data rule and multiple operation rules;The data rule is used for the attribute for limiting the data flow;The operation rules is used In the corresponding operating for the data flow be suitable to the data rule;
The data rule is corresponded with the operation rules.
It is preferred that, this realizes the method for VLAN conversions, wherein, in the step 3, preset one lacks in the Switching Module The processing rule set of province;The default processing rule set correspondence default ownership goal information;The default processing Include multiple default data rules and multiple default operation rules in rule set;The default data rule is used to limit The attribute of the fixed data flow;The default operation rules is used to the data flow is carried out to be suitable to the default data rule Corresponding operating then.
The beneficial effect of above-mentioned technical proposal is:The selective QinQ allocation rule based on LLID is realized, downlink data is realized Stream 1:N VLAN conversions so that the data flow in non-conversion rule can also obtain corresponding rule process.
Brief description of the drawings
Fig. 1 be the present invention preferred embodiment in, the schematic diagram for the foundation structure that VLAN conversion methods are relied on;
Fig. 2 be the present invention preferred embodiment in, VLAN conversion overall procedure schematic diagram;
Fig. 3 be the present invention preferred embodiment in, to upstream distribute relative users target information flow show It is intended to;
Fig. 4 be the present invention preferred embodiment in, determine the schematic flow sheet of the matching range of address domain information;
Fig. 5 be the present invention preferred embodiment in, the schematic flow sheet handled upstream;
Fig. 6 be the present invention preferred embodiment in, the schematic flow sheet handled downlink data.
Embodiment
The invention will be further described with specific embodiment below in conjunction with the accompanying drawings, but not as limiting to the invention.
Selective QinQ technology of the prior art, normally comprises two kinds of processing schemes:
The selective QinQ of scheme one be embodied as based on single logical link mark(Logical Link Identifier, LLID)Single user target(subscriber)Implementation method, i.e., 1:1 implementation, passes through the classifying rules of ownership goal Realize.
It is that all upstreams correspondence one fixation of distribution corresponding to every LLID is unique in scheme one Subscriber, and corresponding classifying rules is searched according to the subscriber.Then according to the above-mentioned classifying rules found Data flow under the subscriber is handled, including addition SVLAN(Service VLAN, service provider VLAN)、 Delete SVLAN and other VLAN conversions etc..The defect of scheme one is, when handling upstream, due to right One unique subscriber of fixation of the unified matching of a plurality of upstream that may be present under same LLID, therefore for N:For 1 change over condition(There is a plurality of data flow under i.e. same LLID), when the internal layer of the upstream under same LLID Label is respectively CVLAN10-18(Custom VLAN, user terminal VLAN), the corresponding SVLAN to be converted to is SVLAN100 When;Then when corresponding downstream data flow is with destination address(MAC Address)When being sent for MAC1, the lower line number accordingly changed It can be matched as the first rule according to stream, i.e., SVLAN100 is converted into CVLAN10, it is impossible to realize 1 in downstream data flow:N Correct conversion.
It is all upstreams correspondence one subscriber of distribution corresponding to every LLID in scheme two, and With reference to global NNI VLAN conversion tables(Defaulting in influences the VLAN conversion tables of OLT device in upper strata and by NNI interfaces)It is real The VLAN conversions of existing data flow.In scheme two, when descending presence corresponds to newly-increased CVLAN data flow, the i.e. data flow not It is included in and defaults in the VLAN conversion tables in upper strata, because the VLAN conversion tables being present in upper strata does not learn to the number According to the CVLAN values of stream, therefore it can not be changed according to default VLAN conversion tables, whole transfer process, which occurs, asks Topic.
The above mentioned problem that produces during for carrying out VLAN conversions in selective QinQ technology, it is of the invention preferably A kind of improved method for realizing VLAN conversions is provided in embodiment.
As shown in figure 1, in the preferred embodiment of the present invention, realizing the method for VLAN conversions suitable for EPON system. The EPON system includes OLT device 1 and ONU equipment 2.Include a PON in OLT device 1(Passive Optical Network, EPON)The NNI of interface 11 and one(Network Node Interface, network node interface)Interface 12, OLT device 1 connects ONU equipment 2 by PON interfaces 11, and further, OLT device 1 is received by ONU equipment by PON interfaces 11 2 data flows sent.OLT device 1 outwards exports treated data flow by NNI interfaces 12, further, OLT device 1 External network 3 is connected by NNI interfaces 12, and passes through the output stream of 12 external network of NNI interfaces 3.
In the preferred embodiment of the present invention, a Switching Module 13 is set in each OLT device, to the VLAN of data flow Transfer process is carried out in Switching Module 13.
In the preferred embodiment of the present invention, the data flow transmitted in EPON system is divided into upstream with Row data flow.So-called upstream is sent to the data flow of OLT device 1 from ONU equipment 2.OLT device 1 passes through PON interfaces 11 reception data flows are simultaneously handled, and then export treated data flow by NNI interfaces;So-called downstream data flow The data flow that i.e. OLT device 1 is received from NNI interfaces 12, sends to ONU from the PON interfaces 11 of OLT device 1 set after treatment Standby 2.
In the preferred embodiment of the present invention, correspond to a data flow sequence number per data stream.The present invention is preferably In embodiment, the data flow sequence number is specially depending on the classification of data flow:When data flow is upstream, above-mentioned number It is specially transmission sequence number information, i.e. LLID according to stream sequence number, so-called LLID is the sequence number of a specified logical transmission link.One A plurality of data flow can be included under LLID.When data flow is downstream data flow, above-mentioned data flow sequence number is specially data flow Target address information(That is mac address information).
In the preferred embodiment of the present invention, an EPON system can be constituted by the way of multiple ONU connections(Fig. 1 In only show to include the system architecture of an ONU equipment).One of OLT device is set by the multiple ONU in PON interfaces and opposite end Standby PON interfaces connection.
When up, data flow is added the VLAN tag of a user terminal in user terminal(That is inner VLAN label);With Data flow is admitted to the PON interfaces of OLT device afterwards.The VLAN of a common port is added to the up data flow on PON interfaces Label(That is outside VLAN label), and handled accordingly according to the VLAN tag of the common port being added;By processing Data flow be output by NNI interfaces, output while, remove the outside VLAN label in the data flow.
Likewise, when descending, when opposite end OLT device by NNI interfaces to above-mentioned data flow when, the OLT is set The standby target address information included according to data flow(That is the MAC Address of target)A corresponding outside VLAN label is added, and Handled accordingly;Then, OLT device is sent treated data flow to corresponding ONU equipment by PON interfaces, Above-mentioned outside VLAN label is removed while sending.So in whole transmitting procedure, send equipment and receiving device all without The outside VLAN label that transfer OLT device is added need to be learnt.
In the preferred embodiment of the present invention, what the foundation structure in Fig. 1 was carried out realizes the method tool of VLAN conversions Body is as shown in Fig. 2 be:
Step 1, OLT device reading data flow;
In the preferred embodiment of the present invention, for upstream, OLT device reads data from PON interfaces;For under Row data flow, OLT device reads data from NNI interfaces.
Step 2, for the corresponding data flow sequence number of every data stream, a corresponding address domain information is matched;And base area The default ownership goal information of location domain information matched and searched every upstream of correspondence;
In the preferred embodiment of the present invention, as described above, when data flow is upstream, data flow sequence number phase It should be transmission sequence number information(LLID);When data flow is downstream data flow, data flow sequence number is with mutually should be the target of data flow Location information(MAC Address).
Step 3, according to each ownership goal information, a default processing rule set is matched to every data stream;
In the preferred embodiment of the present invention, include data rule in above-mentioned processing rule set(Key domains)With operation rule Then(Fib domains).In the preferred embodiment of the present invention, the VLAN values, priority, ether to data flow are included in data rule A series of one or more of limitation of fields such as net type, VLAN ranges of choice;Operation rules is included to according to data rule The one or more operations carried out to the relevant field of data flow, for example, be added deletion conversion, modification priority to VLAN Deng.Therefore, in preferred embodiment of the invention, above-mentioned data rule and operation rules are corresponded.
Step 4, according to each processing rule set, every data stream is handled accordingly;Subsequent OLT device output warp Cross the data flow of processing.
In the preferred embodiment of the present invention, above-mentioned steps 1 are further spread out, it is specific as shown in Figure 3:
Step 21, according to transmission sequence number information, the matching range of the address domain information defaulted in Switching Module is searched;
In the preferred embodiment of the present invention, multiple address domain informations are pre-set in Switching Module(VLAN Domain).One transmission sequence number information of each address domain information correspondence(LLID).In the preferred embodiment of the present invention, work as friendship Mold changing block is when reading one or more upstream being included under single LLID, Switching Module according to the LLID information, Search the matching range that there may be corresponding address domain information.
Step 22, the VLAN sequence numbers included according to upstream, are searched and transmission sequence number information in matching range Corresponding address domain information;
The present invention preferred embodiment in, it is determined that matching range in include multiple address domain informations.
In the preferred embodiment of the present invention, the VLAN sequence numbers i.e. VLANID that upstream includes.When according to above-mentioned When VLAN sequence numbers are matched, its matching way matches for order, even in preferred embodiment of the invention, in above-mentioned matching Include X address domain information in scope(VLAN Domain_0 to VLAN Domain_X), then according to VLAN Domain_0 extremely VLAN Domain_X order is down matched successively.When matching corresponding address domain information, then stop matching process, and carry Take corresponding address domain information as to should data flow address domain information.In the preferred embodiment of the present invention, above-mentioned It can be completed with the process for searching address field in second searching unit.In the preferred embodiment of the present invention, above-mentioned the Two searching units can be an address domain information look-up table(VLAN Domain Table).
Step 23, according to address domain information, corresponding ownership goal information is obtained as user's mesh of upstream Mark information.
In the preferred embodiment of the present invention, one ownership goal information of each address domain information correspondence(Subscriber ID).After matching obtains an address domain information, corresponding ownership goal information is found according to the address domain information.This In the preferred embodiment of invention, the process of above-mentioned lookup ownership goal information can be completed in one the 3rd searching unit.This In the preferred embodiment of invention, above-mentioned 3rd searching unit can search list for a VLAN user(VLAN Map Table).
Further, in preferred embodiment of the invention, as shown in figure 4, the process of above-mentioned determination matching range is specific Including:
Step 221, first address domain information in matching range is searched;
Step 222, the quantity for the address domain information that matching range includes is searched;
Step 223, matching range is limited with the result of the result of step 221 and step 222.
In the preferred embodiment of the present invention, the process of above-mentioned determination matching range can be complete in one first searching unit Into.In the preferred embodiment of the present invention, the first searching unit can have LLID passes corresponding with address domain information for a record The lookup list of system(LLID Table).Therefore, in preferred embodiment of the invention, in above-mentioned steps 221, first is determined The operation of address domain information can be to determine the initial address of the matching range.And due to the preferred embodiment in the present invention In, the length of each address domain information is defined as in 1, therefore above-mentioned steps 222, searches the address field that matching range includes The operation of the quantity of information can be to determine the length of matching range., can be with base area i.e. in preferred embodiment of the invention The original position of location domain information determines the position of first address domain information, and the ground that matching range includes is determined according to its length The quantity of location domain information.
In the preferred embodiment of the present invention, multiple ownership goal information are included in each address domain information (Subscriber ID_1-Subscriber ID_X).The process of lookup ownership goal information is also by the way of sequential search Carry out.
In the preferred embodiment of the present invention, a default address domain information is added in the second searching unit, this lacks The address domain information of province can be arranged in last position in all address domain informations.In the preferred embodiment of the present invention, when It can not be matched accordingly according to the transmission sequence number information corresponding to the upstream that OLT device is inputted by PON interfaces Location domain information, i.e., what the VLAN serial numbers corresponding to the upstream were newly increased, or OLT device not yet learns VLAN sequence numbers, now automatic default address domain information is matched of system give the upstream.
Meanwhile, in preferred embodiment of the invention, the default ownership goal letter of default address domain information correspondence one Breath.Therefore, can be according to default address domain information, to set corresponding to not being preset in OLT in preferred embodiment of the invention The upstream of VLAN sequence numbers in standby distributes the ownership goal information of an acquiescence.
In the preferred embodiment of the present invention, multiple corresponding objective attribute target attributes are included under each ownership goal information, These objective attribute target attributes are arranged in a corresponding memory cell.Further, the memory cell includes multiple independent deposit Module is stored up, each memory module correspondence preserves all objective attribute target attributes under an ownership goal information.The present invention is preferably In embodiment, said memory cells can be an attribute list(Per Subscribe Behavior Table).
Next the ownership goal distribution to downstream data flow is elaborated.
In the preferred embodiment of the present invention, the OLT device of correspondence upstream is exported at by its NNI interface The upstream of reason, then the OLT device of opposite end pass through NNI interfaces to the downstream data flow transmitted from external network.Cause This, in preferred embodiment of the invention, in an EPON system, a upstream always corresponds to a downlink data Stream.
Further, in preferred embodiment of the invention, downstream data flow distributing user target information is mainly passed through Target address information entrained by downstream data flow(MAC Address)Realize matching.Target address information generally illustrates lower line number According to stream to be transmitted to user equipment MAC Address.The target address information that Switching Module includes according to downstream data flow, The address MAC ownership goal information of up study distribution is distributed for this downstream data flow, accomplishes downlink user target information Unanimously.
In the preferred embodiment of the present invention, if do not include corresponding target address information in downstream data flow, or under The target address information that row data flow includes can not match with default target address information, i.e., downstream data flow is broadcast Or unknown unicast, then it is not the downstream data flow distributing user target information, without the processing of lower line discipline.
In the preferred embodiment of the present invention, the above-mentioned data flow that ONU equipment is inputted from PON interfaces is detected as Row data flow.
The above process for realizing VLAN conversions can be as seen in figs. 5-6.Shown in Fig. 5 the present invention compared with The step of flow handled in good embodiment upstream, wherein Rx llid is receive LLID, in LLID VLAN Domain original position is searched in Table(start)And length(length), and determine such as VLAN Domain Matching range shown in Table(Include VLAN Domain_0-VLAN Domain_X).Subsequent sequential search matching range In region value information, and determine corresponding ownership goal information(Subscriber ID).In Fig. 5, subscriber ID it Latter linked is its each corresponding attribute.
On the basis of above-mentioned technical proposal, core concept of the invention is, according to default transformation rule, to correspondence In under same LLID(Send and come from an ONU)The upstream for being provided with different CVLAN labels, according to it The difference of CVLAN labels distributes corresponding different Subscriber ID;For downstream data flow, according to each descending The target address information that data flow includes(The MAC Address of target device)A corresponding Subscriber ID is distributed it, The Subscriber ID and the downstream data flow Subscriber ID allocated when up match.State and turn in realization When changing rule, it can accomplish that single Subscrbier ID correspond only to single up-downgoing data flow, for being needed under same LLID It is to be converted into same SVLAN(Such as SVLAN100)A plurality of data flow, because the MAC Address of its target device is different, phase Different Subscriber ID should be assigned, therefore can realize under same LLID have using different Subscriber ID There is the different switching of the data flow of different CVLAN labels, being fully able to solution can not be in descending N:To same in the case of 1 The problem of up-downgoing data flow sent in ONU equipment carries out different switching.
Determine after ownership goal information, corresponding data rule is focused to find out in processing rule according to the ownership goal information (Subscriber ID keys), so which kind of limitation determined to do the attribute under the ownership goal information;The present invention is preferably In embodiment, as shown in Figure 5, Long rule, short rule and VLANrule etc. are the corresponding rule in data rule Then;L2key is two layers of VLAN data rule, and corresponding L3key is three layers of VLAN data rule, by that analogy.Then look into Look for the operation rules corresponding to the data rule(Subscriber ID fib), and according to the data rule and operation found Rule, corresponding operation is done to the upstream.In the preferred embodiment of the present invention, as shown in figure 5, Subscriber The ID fib latter linked specific rules in operation rules.
The flow handled in the preferred embodiment that the present invention is shown in Fig. 6 downstream data flow.Wherein Rx Nni is represented from NNI interface downstream data flows.In the preferred embodiment of the present invention, the mesh entrained by the downstream data flow Mark address information is MAC1, as shown in fig. 6, the destination address of the downstream data flow(DA)For MAC1, ownership goal information(SUB) For subscriber1(sub1).In the preferred embodiment of the present invention, corresponding use is obtained by target address information MAC1 Family target information(Subscriber ID), above-mentioned search procedure is in two layers of VLAN lookup lists(L2Table)It is middle to carry out.Then, Shown in Fig. 5, corresponding data rule and operation rules are obtained, and operated accordingly.
Preferred embodiments of the present invention are the foregoing is only, embodiments of the present invention and protection model is not thereby limited Enclose, to those skilled in the art, should can appreciate that made by all utilization description of the invention and diagramatic content Scheme obtained by equivalent substitution and obvious change, should be included in protection scope of the present invention.

Claims (12)

1. a kind of method for realizing VLAN conversions, it is adaptable in EPON system;The EPON system includes ONU equipment and OLT is set It is standby;The OLT device connects the ONU equipment by PON interfaces;The OLT device connects external network by NNI interfaces; Include the Switching Module for realizing VLAN conversions in the OLT device;
Data flow is added after the VLAN tag of user terminal to be admitted in the Switching Module by the PON interfaces;
The Switching Module adds to the data flow received and VLAN conversions is carried out after the VLAN tag of common port, then logical Cross the data flow that the NNI interfaces output is changed by VLAN;
It is characterized in that:The corresponding data flow sequence number of every data stream between the ONU equipment and the OLT device;
The method for realizing VLAN conversions includes:
Step 1, the OLT device reads the data flow;
Step 2, for the corresponding data flow sequence number of data flow every described, a corresponding address domain information is matched;And root According to the default ownership goal information of the address domain information matched and searched every upstream of correspondence;
Step 3, according to each ownership goal information, to one default processing rule set of data stream matches every described;
Step 4, according to each processing rule set, data flow every described is handled accordingly;The subsequent OLT is set It is standby to export the treated data flow.
2. the method as claimed in claim 1 for realizing VLAN conversions, it is characterised in that the data flow includes upstream And downstream data flow;The upstream is sent to the OLT device by the ONU equipment by the PON interfaces, through institute Sent after stating OLT device processing by the NNI interfaces to external network;The downstream data flow is passed through by the OLT device The NNI interfaces are read from the external network, and are sent after OLT device processing by the PON interfaces to phase The ONU equipment answered;
One upstream correspondence, one downstream data flow.
3. the method as claimed in claim 2 for realizing VLAN conversions, it is characterised in that the data flow sequence number includes transmission sequence Number information and target address information;The one transmission sequence number information of every upstream correspondence, under every described Row data flow one target address information of correspondence.
4. the method as claimed in claim 3 for realizing VLAN conversions, it is characterised in that in the step 2, on every described Method of the row data flow point with a default ownership goal information is specifically included:
Step 21, according to the transmission sequence number information, of the address domain information defaulted in the Switching Module is searched With scope;
Step 22, the VLAN sequence numbers included according to the upstream, are searched and the transmission in the matching range The corresponding address domain information of serial number information;
Step 23, according to the address domain information, corresponding ownership goal information is obtained as the institute of the upstream State ownership goal information.
5. the method as claimed in claim 4 for realizing VLAN conversions, it is characterised in that in the step 22, at order matching In the address domain information in the matching range, to find the address domain information for adapting to the VLAN sequence numbers.
6. the method as claimed in claim 4 for realizing VLAN conversions, it is characterised in that in the step 22, it is determined that described Method with scope is specifically included:
Step 221, first address domain information in the matching range is searched;
Step 222, the quantity for the address domain information that the matching range includes is searched;
Step 223, the matching range is limited with the result of the result of the step 221 and the step 222.
7. the method as claimed in claim 4 for realizing VLAN conversions, it is characterised in that a default address domain information is set; The default address domain information one default ownership goal information of correspondence;Described in being included according to the upstream VLAN sequence numbers, which can not be matched, obtains the corresponding address and information, then using the default address domain information, with acquisition pair The default ownership goal information answered.
8. the method as claimed in claim 3 for realizing VLAN conversions, it is characterised in that in the step 2, under every described Method of the row data flow point with a default ownership goal information is specifically included:According to the target address information, matching one The default ownership goal information.
9. the method as claimed in claim 8 for realizing VLAN conversions, it is characterised in that in the step 2, if to described descending Data flow, it is impossible to match the default ownership goal information, then distribute the institute corresponding to the corresponding upstream Ownership goal information is stated to the downstream data flow.
10. the method as claimed in claim 2 for realizing VLAN conversions, it is characterised in that all from described in the step 2 The data flow that PON interfaces enter the OLT device is detected as the upstream.
11. the method as claimed in claim 1 for realizing VLAN conversions, it is characterised in that in the step 3, the processing rule Then concentrate and include multiple data rules and multiple operation rules;The data rule is used for the attribute for limiting the data flow; The operation rules is used to carry out the data flow corresponding operating suitable for the data rule;
The data rule is corresponded with the operation rules.
12. the method as claimed in claim 7 for realizing VLAN conversions, it is characterised in that in the step 3, is exchanged described Preset one default processing rule set in module;The default processing rule set correspondence default ownership goal information; Include multiple default data rules and multiple default operation rules in the default processing rule set;It is described default Data rule is used for the attribute for limiting the data flow;The default operation rules is used to be suitable to institute to the data flow State the corresponding operating of default data rule.
CN201310694670.3A 2013-12-16 2013-12-16 A kind of method for realizing VLAN conversions Active CN103701679B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310694670.3A CN103701679B (en) 2013-12-16 2013-12-16 A kind of method for realizing VLAN conversions

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310694670.3A CN103701679B (en) 2013-12-16 2013-12-16 A kind of method for realizing VLAN conversions

Publications (2)

Publication Number Publication Date
CN103701679A CN103701679A (en) 2014-04-02
CN103701679B true CN103701679B (en) 2017-10-13

Family

ID=50363081

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310694670.3A Active CN103701679B (en) 2013-12-16 2013-12-16 A kind of method for realizing VLAN conversions

Country Status (1)

Country Link
CN (1) CN103701679B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104133919A (en) * 2014-08-22 2014-11-05 上海斐讯数据通信技术有限公司 Management information base index value and device index value converting method and converting system
CN104202229B (en) * 2014-09-13 2017-10-27 潍坊学院 A kind of device for passive optical network OLT QINQ message processing methods and system
CN105610673B (en) * 2016-01-19 2018-12-11 烽火通信科技股份有限公司 A kind of VLAN conversion equipment and method
CN105847105A (en) * 2016-01-26 2016-08-10 鼎点视讯科技有限公司 Method for implementing discrimination on service flows of subnet
CN105681151A (en) * 2016-02-26 2016-06-15 上海斐讯数据通信技术有限公司 Method and system for implementing QinQ, OTL device and electronic device
CN112449744A (en) * 2018-08-21 2021-03-05 华为技术有限公司 Management method and device of optical network unit
CN115334003B (en) * 2022-08-10 2023-07-21 上海欣诺通信技术股份有限公司 Data stream processing method and system based on convergence and distribution equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668238A (en) * 2009-10-20 2010-03-10 上海市共进通信技术有限公司 Method, device and optical network unit for realizing N:1 concourse and 1:N conversion of VLAN in EPON
CN102577257A (en) * 2011-04-27 2012-07-11 华为技术有限公司 Virtual local area network identity transformation method and apparatus
CN102647329A (en) * 2012-05-09 2012-08-22 上海市共进通信技术有限公司 Method for achieving operating control of terminal services based on frequent pattern (FP) rule by optical network unit (ONU) in gigabit passive optical network (GPON)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100555949C (en) * 2006-03-22 2009-10-28 华为技术有限公司 A kind of to GPON system configuration Native VLAN and processing Ethernet method of message

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668238A (en) * 2009-10-20 2010-03-10 上海市共进通信技术有限公司 Method, device and optical network unit for realizing N:1 concourse and 1:N conversion of VLAN in EPON
CN102577257A (en) * 2011-04-27 2012-07-11 华为技术有限公司 Virtual local area network identity transformation method and apparatus
CN102647329A (en) * 2012-05-09 2012-08-22 上海市共进通信技术有限公司 Method for achieving operating control of terminal services based on frequent pattern (FP) rule by optical network unit (ONU) in gigabit passive optical network (GPON)

Also Published As

Publication number Publication date
CN103701679A (en) 2014-04-02

Similar Documents

Publication Publication Date Title
CN103701679B (en) A kind of method for realizing VLAN conversions
CN100442772C (en) Bridge-connection transmitting method
CN104272679B (en) Communication system, control device, communication means and recording medium
EP2139157B1 (en) Multicast control method in ethernet passive optical network
CN100490422C (en) Method and device for the classification and redirection of data packets in a heterogeneous network
US7613187B2 (en) Shared LAN emulation method and apparatus having VLAN recognition and LLID management functions on EPON
EP2355374B1 (en) Method, system and optical line terminal for message transmission in an optical communication system
CN101867523B (en) PON system middle width strip business collocation method and device
CN104184663B (en) Communication means and device based on software defined network and integrated identification network
CN104065582B (en) A kind of message transmitting method and gateway device
WO2019237521A1 (en) Access network olt slicing method and system employing onu granularity
CN100589443C (en) An Ethernet service processing method in Gbit passive optical network
CN102857428B (en) A kind of message forwarding method based on Access Control List (ACL) and equipment
WO2009150656A1 (en) Method and system for transparent lan services in a packet network
CN103081415A (en) A control apparatus, a communication system, a communication method and a recording medium having recorded thereon a communication program
CN101808042A (en) Access method and device of multiprotocol label switching double-layer virtual private network
CN105591868A (en) Virtual private network VPN access method and device
CN101778035B (en) Virtual private LAN service communication method and device
CN108260032A (en) The method that service virtual port is realized in GPON-OLT systems
CN107707474A (en) A kind of route distribution method and system
CN101114882B (en) Method for processing data traffic in GPON
CN100559772C (en) Mixed virtual private network system and backbone network edge apparatus and collocation method thereof
CN101330411B (en) Method and system for simulating large-scale network topological
CN104202229B (en) A kind of device for passive optical network OLT QINQ message processing methods and system
CN102104528A (en) Network system applied in rural area and service message transmission method

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201103

Address after: 318015 no.2-3167, zone a, Nonggang City, no.2388, Donghuan Avenue, Hongjia street, Jiaojiang District, Taizhou City, Zhejiang Province

Patentee after: Taizhou Jiji Intellectual Property Operation Co.,Ltd.

Address before: 201616 Shanghai city Songjiang District Guangfulin road 4855 Lane 20, No. 90

Patentee before: Phicomm (Shanghai) Co.,Ltd.

EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20140402

Assignee: Hangzhou Bolian Intelligent Technology Co.,Ltd.

Assignor: Taizhou Jiji Intellectual Property Operation Co.,Ltd.

Contract record no.: X2021330000763

Denomination of invention: A method of VLAN conversion

Granted publication date: 20171013

License type: Common License

Record date: 20211117

Application publication date: 20140402

Assignee: ZHEJIANG SUPCON TECHNOLOGY Co.,Ltd.

Assignor: Taizhou Jiji Intellectual Property Operation Co.,Ltd.

Contract record no.: X2021330000764

Denomination of invention: A method of VLAN conversion

Granted publication date: 20171013

License type: Common License

Record date: 20211117

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230914

Address after: Building 5, Guohua Times Square, No. 29666 Youyou Road, Shizhong District, Jinan City, Shandong Province, 250002

Patentee after: Shandong Future Group Co.,Ltd.

Address before: 318015 no.2-3167, area a, nonggangcheng, 2388 Donghuan Avenue, Hongjia street, Jiaojiang District, Taizhou City, Zhejiang Province

Patentee before: Taizhou Jiji Intellectual Property Operation Co.,Ltd.