[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN103701679A - VLAN (virtual local area network) conversion implementation method - Google Patents

VLAN (virtual local area network) conversion implementation method Download PDF

Info

Publication number
CN103701679A
CN103701679A CN201310694670.3A CN201310694670A CN103701679A CN 103701679 A CN103701679 A CN 103701679A CN 201310694670 A CN201310694670 A CN 201310694670A CN 103701679 A CN103701679 A CN 103701679A
Authority
CN
China
Prior art keywords
data flow
vlan
information
default
conversion
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.)
Granted
Application number
CN201310694670.3A
Other languages
Chinese (zh)
Other versions
CN103701679B (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

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses a VLAN (virtual local area network) conversion implementation method and belongs to the technical field of QinQ. The method comprises the following steps: (1) reading data streams through OLT (optical line terminal) equipment; (2) matching a corresponding data stream sequence number of each data steam with corresponding address domain information, and searching preset subscriber target information corresponding to each uplink data stream in a matching manner according to the address domain information; (3) matching each data stream with a preset processing rule set according to each piece of subscriber target information; (4) correspondingly processing each data stream according to each processing rule set, and then outputting the processed data streams through the OLT equipment. According to the technical scheme, the VLAN conversion implementation method has the beneficial effects that a flexible QinQ allocation rule based on an LLID (logical link identifier) is realized; the 1:N VLAN conversion of downlink data streams is implemented, so that the data streams in a non-conversion rule can be processed through a corresponding rule.

Description

A kind of method that realizes VLAN conversion
Technical field
The present invention relates to QinQ technical field, relate in particular to a kind of method of the VLAN of realization conversion.
Background technology
In EPON system, traditional transfer of data is only used the VLAN label of common port, when data flow is being admitted to the VLAN label of only being stamped common network while processing in switch.Because the VLAN label of common network is limited, for the data flow in private network access public network situation, the number of the VLAN label of common network is limited, there will be unavoidably the problem of label collision.Meanwhile, user wishes that the data flow of user side is carried out to certain individual to be processed, such as the VLAN label etc. that adds some user side private networks.QinQ technology has been born under the demand.
Traditional QinQ technology, conventionally on OLT equipment, increase a QinQ port, first data flow is added a vpn label (being the VLAN label of user side) at user side, and QinQ port adds a unified outer layer label (being the VLAN label of common network) to entering the data flow of this port subsequently.The addition manner of this VLAN label, in practice, limitation is larger, for example, when a plurality of users are during from same QinQ port access network, cannot distinguish etc. user type and type of service.Therefore, need to adopt another kind of QinQ technology, i.e. selective QinQ technology to VLAN transfer process.
So-called selective QinQ technology, refers to according to the value difference in every data flow, distributes to corresponding outer layer label of every data flow, thereby different data flow is carried out to different processing.Particularly, in selective QinQ, actual meeting be added different outer layer labels according to the information such as port numbers of the VLAN label of message, MAC Address, IP agreement, source address, destination address, priority or application program to different data flow, thereby realized according to different user, different business, different priorities etc., message is taked to corresponding processing mode.But in traditional selective QinQ technology, only can process (i.e. data flow under the transformation rule in VLAN) for the data flow being included in the vlan list defaulting in OLT equipment, for the data flow under non-conversion rule, owing to adding VLAN, operate the data flow in default vlan list that is not included in producing, traditional selective QinQ technology can not well be processed, and even can carry out misclassification to this data flow.
Chinese patent (CN1838629) discloses a kind of method that the QinQ of utilization technology realizes virtual switch, to solve prior art, can not between different geographical has the network of different VLAN ID sign, realize the problem of double layer intercommunication.Comprise the steps: configuration step, in intermediate equipment, configure QinQ VLAN swap table, comprise the information such as new private network VLAN ID after public network VLAN ID, outbound port number, private network VLAN ID and exchange; Query steps, when QinQ terminates, removes to inquire about QinQ VLAN swap table with the VLAN ID of the outer public network VLAN ID+ outbound port peeled off number+private network, obtains new private network VLANID; Exchange and forwarding step, replace original VLAN ID with new private network VLAN ID, and the packet after replacing is sent from outbound port.Technique scheme is only introduced QinQ technology, and introduce and be confined to add public network VLAN ID outward at private network VLAN ID, when output, peeling outer layer public network VLAN ID, to form a new private network VLAN ID, can not solve problems of the prior art.
Chinese patent (CN1838628) discloses a kind of method that realizes network interconnection between different QinQ apparatus, incompatible to solve between QinQ equipment dissimilar in prior art, have between the network of different QinQ equipment can not intercommunication problem.Comprise the steps: to configure QinQ access style table for defining the QinQ device type value of various approvals in an intermediate equipment, according to inbound port QinQ packet information inquiry QinQ access style table, process legal QinQ type data packets; In equipment, configure QinQ type conversion table for defining the QinQ types value of opposite equip. approval, by searching QinQ type conversion table, output QinQ type of data packet value is replaced with to the QinQ types value that opposite equip. is supported.Technique scheme is not explained selective QinQ technology and is further improved, cannot solve problems of the prior art.
Summary of the invention
According to the defect existing in prior art, existing selective QinQ technology cannot be carried out the problem of different switching in the situation that of descending N:1 to the up-downgoing data flow of sending in same ONU equipment, and a kind of method of the VLAN of realization conversion is now provided, and specifically comprises:
A method that realizes VLAN conversion, is applicable in EPON system; Described EPON system comprises ONU equipment and OLT equipment; Described OLT equipment connects described ONU equipment by PON interface; Described OLT equipment connects external network by NNI interface; In described OLT equipment, include the Switching Module of realizing VLAN conversion;
Described data flow is admitted in described Switching Module by described PON interface after being added the VLAN label of user side;
Described Switching Module carries out VLAN conversion, the data flow of changing through VLAN by described NNI interface output subsequently after the described data flow receiving being added to the VLAN label of common port;
Wherein: described ONU equipment and the corresponding data flow sequence number of every data flow between described OLT equipment;
The method of the described VLAN of realization conversion comprises:
Step 1, described OLT equipment reads described data flow;
Step 2, for described data flow sequence number corresponding to data flow every described, coupling one corresponding address domain information; And according to the default ownership goal information of corresponding every the described upstream of described address domain information matched and searched;
Step 3, according to ownership goal information described in each, to a default processing rule collection of data flow coupling every described;
Step 4, according to processing rule collection described in each, processes accordingly to data flow every described; Described OLT equipment is exported treated described data flow subsequently.
Preferably, this realizes the method for VLAN conversion, and wherein, described data flow comprises upstream and downstream data flow; Described upstream is sent to described OLT equipment by described ONU equipment by described PON interface, after described OLT device processes, by described NNI interface, is sent to external network; Described downstream data flow is read by described NNI interface by described OLT equipment from described external network, and by described PON interface, is sent to corresponding described ONU equipment after described OLT device processes;
, the corresponding described downstream data flow of described upstream.
Preferably, this realizes the method for VLAN conversion, and wherein, described data flow sequence number comprises transmission sequence number information and target address information; Every corresponding described transmission sequence number information of described upstream, every corresponding described target address information of described downstream data flow.
Preferably, this realizes the method for VLAN conversion, wherein, in described step 2, to upstream every described, distributes the method for a default ownership goal information specifically to comprise:
Step 21, according to described transmission sequence number information, searches the matching range that defaults in the described address domain information in described Switching Module;
Step 22, the VLAN sequence number comprising according to described upstream is searched the described address domain information corresponding with described transmission sequence number information in described matching range;
Step 23, according to described address domain information, obtains a corresponding ownership goal information as the described ownership goal information of described upstream.
Preferably, this realizes the method for VLAN conversion, and wherein, in described step 22, the described address domain information of order coupling in described matching range, to find the described address domain information that adapts to described VLAN sequence number.
Preferably, this realizes the method for VLAN conversion, wherein, in described step 22, determines that the method for described matching range specifically comprises:
Step 221, searches address domain information described in first in described matching range;
Step 222, the quantity of searching the described address domain information that described matching range comprises;
Step 223, limits described matching range with the result of described step 221 and the result of described step 222.
Preferably, the method that this realizes VLAN conversion, wherein, arranges a default address domain information; The default ownership goal information of described default address domain information correspondence one; When the described VLAN sequence number comprising according to described upstream, cannot mate and obtain corresponding described address and information, adopt described default address domain information, to obtain corresponding described default ownership goal information.
Preferably, this realizes the method for VLAN conversion, wherein, in described step 2, to downstream data flow every described, distributes the method for a default ownership goal information specifically to comprise: according to described target address information, and the described ownership goal information that coupling one is default.
Preferably, this realizes the method for VLAN conversion, wherein, in described step 2, if to described downstream data flow, cannot mate a default described ownership goal information, distribute the corresponding described ownership goal information of corresponding described upstream to described downstream data flow.
Preferably, this realizes the method for VLAN conversion, and wherein, in described step 2, all data flow that enter described OLT equipment from described PON interface are all detected as described upstream.
Preferably, this realizes the method for VLAN conversion, and wherein, in described step 3, described processing rule is concentrated and comprised a plurality of data rules and a plurality of operation rules; Described data rule is for limiting the attribute of described data flow; Described operation rules is for being suitable for the corresponding operating of described data rule to described data flow;
Described data rule is corresponding one by one with described operation rules.
Preferably, this realizes the method for VLAN conversion, wherein, in described step 3, a preset default processing rule collection in described Switching Module; Described default processing rule set pair is answered described default ownership goal information; Described default processing rule is concentrated and has been comprised a plurality of default data rules and a plurality of default operation rules; Described default data rule is for limiting the attribute of described data flow; Described default operation rules is for being suitable for the corresponding operating of described default data rule to described data flow.
The beneficial effect of technique scheme is: realize the selective QinQ allocation rule based on LLID, realize the VLAN conversion of downstream data flow 1:N, make the data flow in non-conversion rule also can obtain corresponding rule process.
Accompanying drawing explanation
Fig. 1 is in preferred embodiment of the present invention, the schematic diagram of the foundation structure that VLAN conversion method relies on;
Fig. 2 is in preferred embodiment of the present invention, the overall procedure schematic diagram of VLAN conversion;
Fig. 3 is in preferred embodiment of the present invention, upstream is distributed to the schematic flow sheet of relative users target information;
Fig. 4 is in preferred embodiment of the present invention, determines the schematic flow sheet of the matching range of address domain information;
Fig. 5 is in preferred embodiment of the present invention, the schematic flow sheet that upstream is processed;
Fig. 6 is in preferred embodiment of the present invention, the schematic flow sheet that downlink data is processed.
Embodiment
Below in conjunction with the drawings and specific embodiments, the invention will be further described, but not as limiting to the invention.
Selective QinQ technology of the prior art, has generally included two kinds of processing schemes:
The selective QinQ of scheme one be embodied as the implementation method based on single logical link mark (Logical Link Identifier, LLID) single ownership goal (subscriber), the implementation of 1:1, realizes by the classifying rules of ownership goal.?
In scheme one, be fixing unique subscriber of the corresponding distribution of every corresponding all upstreams of LLID, and search corresponding classifying rules according to this subscriber.According to the above-mentioned classifying rules finding, the data flow under this subscriber is processed subsequently, is comprised and add SVLAN(Service VLAN, service provider VLAN), delete SVLAN and other VLAN conversion etc.The defect of scheme one is, when upstream is processed, due to one of the unified coupling of many upstreams that may exist under same LLID is fixed to unique subscriber, therefore for N:1 change over condition (being to have many data flow under same LLID), the vpn label of the upstream under same LLID is respectively CVLAN10-18(Custom VLAN, when user side VLAN), the corresponding SVLAN that will be converted to is SVLAN100; When corresponding downstream data flow be take destination address (MAC Address) when MAC1 is sent out, carrying out the corresponding downstream data flow of changing can be all article one rule by coupling, be about to SVLAN100 and convert CVLAN10 to, cannot realize the correct conversion of 1:N in downstream data flow.
In scheme two, for every corresponding all upstreams correspondences of LLID are distributed a subscriber, and in conjunction with overall NNI VLAN conversion table (defaulting in the VLAN conversion table that also affects OLT equipment in upper strata by NNI interface), realize the VLAN conversion of data flow.In scheme two, when the descending data flow that has corresponding newly-increased CVLAN, i.e. this data flow being not included in the VLAN conversion table defaulting in upper strata, because the VLAN conversion table being present in upper strata is not learnt the CVLAN value of this data flow, therefore cannot to it, change according to default VLAN conversion table, whole transfer process there will be problem.
For the problems referred to above of carrying out producing in the process of VLAN conversion, in preferred embodiment of the present invention, provide a kind of method of the improved VLAN of realization conversion in selective QinQ technology.
As shown in Figure 1, in preferred embodiment of the present invention, the method that realizes VLAN conversion is applicable in EPON system.This EPON system has comprised OLT equipment 1 and ONU equipment 2.OLT equipment 1 has comprised a PON(Passive Optical Network, EPON) interface 11 and a NNI(Network Node Interface, network node interface) interface 12, OLT equipment 1 connects ONU equipment 2 by PON interface 11, further, OLT equipment 1 receives the data flow being sent by ONU equipment 2 by PON interface 11.OLT equipment 1 passes through the outwards treated data flow of output of NNI interface 12, and further, OLT equipment 1 connects external networks 3 by NNI interface 12, and passes through NNI interface 12 to external network 3 output streams.
In preferred embodiment of the present invention, a Switching Module 13 is set in each OLT equipment, the VLAN transfer process of data flow is all carried out in Switching Module 13.
In preferred embodiment of the present invention, the data flow of transmitting in EPON system is divided into upstream and downstream data flow.So-called upstream is sent to the data flow of OLT equipment 1 from ONU equipment 2.OLT equipment 1 is received this data flow and is processed by PON interface 11, subsequently treated data flow is exported by NNI interface; So-called downstream data flow is the data flow that OLT equipment 1 receives from NNI interface 12, is sent to ONU equipment 2 after treatment from the PON interface 11 of OLT equipment 1.
In preferred embodiment of the present invention, every data flow is corresponding to a data flow sequence number.In preferred embodiment of the present invention, this data flow sequence number is determined according to the classification of data flow, is specially: when data flow is upstream, above-mentioned data flow sequence number is specially transmission sequence number information, be LLID, so-called LLID is the sequence number of specifying a logical transmission link.Under a LLID, can comprise many data flow.When data flow is downstream data flow, above-mentioned data flow sequence number is specially the target address information (being mac address information) of data flow.
In preferred embodiment of the present invention, the mode that can adopt a plurality of ONU to connect forms an EPON system (system configuration that comprises an ONU equipment is only shown in Fig. 1).One of them OLT equipment is connected by the PON interface of a plurality of ONU equipment in PON interface and opposite end.
When up, data flow is added the VLAN label (inner VLAN label) of a user side when user side; Subsequent data stream is admitted to the PON interface of OLT equipment.This up data flow is added the VLAN label (being outside VLAN label) of a common port on PON interface, and the VLAN label of the common port being added according to this is processed accordingly; Treated data flow is output by NNI interface, in output, removes the outside VLAN label in this data flow.
Same, when descending, when the OLT of opposite end equipment receives above-mentioned data flow by NNI interface, the target address information that this OLT equipment comprises according to data flow (being the MAC Address of target) adds a corresponding outside VLAN label, and processes accordingly; Subsequently, OLT equipment is sent to corresponding ONU equipment by PON interface by treated data flow, when sending, removes above-mentioned outside VLAN label.In whole transmitting procedure, transmitting apparatus and receiving equipment are all without the outside VLAN label of learning that transfer OLT equipment adds like this.
In preferred embodiment of the present invention, the method that realizes VLAN conversion of carrying out according to the foundation structure in Fig. 1 specifically as shown in Figure 2, for:
Step 1, OLT equipment reading data flow;
In preferred embodiment of the present invention, for upstream, OLT equipment is from PON interface reading out data; For downstream data flow, OLT equipment is from NNI interface reading out data.
Step 2, for every data flow sequence number that data flow is corresponding, coupling one corresponding address domain information; And according to the default ownership goal information of corresponding every the upstream of address domain information matched and searched;
In preferred embodiment of the present invention, as described above, when data flow is upstream, data flow sequence number should be transmission sequence number information (LLID) mutually; When data flow is downstream data flow, data flow sequence number should be the target address information (MAC Address) of data flow mutually.
Step 3, according to each ownership goal information, to a default processing rule collection of every data flow coupling;
In preferred embodiment of the present invention, above-mentioned processing rule is concentrated and has been comprised data rule (key territory) and operation rules (fib territory).In preferred embodiment of the present invention, data rule has comprised the one or more restriction of a series of fields such as VLAN value to data flow, priority, ethernet type, VLAN range of choice; Operation rules comprises one or more operations that data-driven rule is carried out the relevant field of data flow, deletes conversion, revises priority etc. such as VLAN is added.Therefore,, in preferred embodiment of the present invention, above-mentioned data rule and operation rules are corresponding one by one.
Step 4, according to each processing rule collection, processes accordingly to every data stream; OLT equipment is exported treated data flow subsequently.
In preferred embodiment of the present invention, above-mentioned steps 1 is done to further expansion, specifically as shown in Figure 3:
Step 21, according to transmission sequence number information, searches the matching range that defaults in the address domain information in Switching Module;
In preferred embodiment of the present invention, in Switching Module, set in advance a plurality of address domain informations (VLAN Domain).The corresponding transmission sequence number information (LLID) of each address domain information.In preferred embodiment of the present invention, when Switching Module reads one or more upstream being included under single LLID, Switching Module, according to this LLID information, is searched the matching range that may have corresponding address domain information.
Step 22, the VLAN sequence number comprising according to upstream is searched the address domain information corresponding with transmission sequence number information in matching range;
In preferred embodiment of the present invention, in the matching range of having determined, a plurality of address domain informations have been comprised.
In preferred embodiment of the present invention, the VLAN sequence number that upstream comprises is VLANID.When mating according to above-mentioned VLAN sequence number, its matching way is order coupling, in preferred embodiment even of the present invention, at above-mentioned matching range, comprised X address domain information (VLAN Domain_0 to VLAN Domain_X), according to the order of VLAN Domain_0 to VLAN Domain_X, down mated successively.When matching corresponding address domain information, stop matching process, and extract corresponding address domain information as the address domain information to should data flow.In preferred embodiment of the present invention, the process of above-mentioned matched and searched address field can complete in one second is searched unit.In preferred embodiment of the present invention, above-mentioned second to search unit can be an address domain information look-up table (VLAN Domain Table).
Step 23, according to address domain information, obtains a corresponding ownership goal information as the ownership goal information of upstream.
In preferred embodiment of the present invention, the corresponding ownership goal information (Subscriber ID) of each address domain information.When coupling obtains after an address domain information, according to this address domain information, find a corresponding ownership goal information.In preferred embodiment of the present invention, above-mentioned process of searching ownership goal information can complete in one the 3rd searches unit.In preferred embodiment of the present invention, the above-mentioned the 3rd searches unit can search list (VLAN Map Table) for a VLAN user.
Further, in preferred embodiment of the present invention, as shown in Figure 4, the process of above-mentioned definite matching range specifically comprises:
Step 221, searches first address domain information in matching range;
Step 222, the quantity of searching the address domain information that matching range comprises;
Step 223, limits matching range with the result of step 221 and the result of step 222.
In preferred embodiment of the present invention, the process of above-mentioned definite matching range can complete in one first searches unit.In preferred embodiment of the present invention, first search unit can for one record LLID and address domain information corresponding relation search list (LLID Table).Therefore,, in preferred embodiment of the present invention, in above-mentioned steps 221, the operation of determining first address domain information can be the initial address of determining this matching range.And due in preferred embodiment of the present invention, the length of each address domain information is restricted to 1, so in above-mentioned steps 222, the operation of searching the quantity of the address domain information that matching range comprises can be the length of determining matching range.Be in preferred embodiment of the present invention, can determine according to the original position of address domain information the position of first address domain information, according to its length, determine the quantity of the address domain information that matching range comprises.
In preferred embodiment of the present invention, at each address domain information, comprised a plurality of ownership goal information (Subscriber ID_1-Subscriber ID_X).The process of searching ownership goal information also adopts the mode of sequential search to carry out.
In preferred embodiment of the present invention, add a default address domain information in second searches unit, this default address domain information can be arranged in last position in all address domain informations.In preferred embodiment of the present invention, when matching corresponding address domain information according to the corresponding transmission sequence number information of upstream by PON interface input OLT equipment, the corresponding VLAN sequence number of this upstream is what newly increase, or the VLAN sequence number not yet learnt of OLT equipment, now system is mated default address domain information to this upstream automatically.
Meanwhile, in preferred embodiment of the present invention, the corresponding default ownership goal information of default address domain information.Therefore, in preferred embodiment of the present invention, can, according to default address domain information, be, the ownership goal information corresponding to not being preset in an acquiescence of upstream distribution of the VLAN sequence number in OLT equipment.
In preferred embodiment of the present invention, comprised the objective attribute target attribute of a plurality of correspondences under each ownership goal information, these objective attribute target attributes are arranged in the memory cell of a correspondence.Further, this memory cell comprises a plurality of independently memory modules, and each memory module correspondence is preserved all objective attribute target attributes under an ownership goal information.In preferred embodiment of the present invention, said memory cells can be an attribute list (Per Subscribe Behavior Table).
Next the ownership goal of downstream data flow is distributed and elaborated.
In preferred embodiment of the present invention, the OLT equipment of corresponding upstream is exported treated upstream by its NNI interface, and the OLT equipment of opposite end receives the downstream data flow transmitting from external network by NNI interface.Therefore,, in preferred embodiment of the present invention, in an EPON system, upstream is always corresponding to a downstream data flow.
Further, in preferred embodiment of the present invention, downstream data flow distributing user target information is mainly realized to coupling by the entrained target address information (MAC Address) of downstream data flow.Target address information ordinary representation the MAC Address of the downstream data flow subscriber equipment that will transfer to.The target address information that Switching Module comprises according to downstream data flow, for the ownership goal information that this downstream data flow distributes MAC up study in this address to distribute, accomplishes that downlink user target information is consistent.
In preferred embodiment of the present invention, if downstream data flow does not comprise corresponding target address information, or the target address information that downstream data flow comprises can not match with default target address information, be that downstream data flow is broadcast or unknown unicast, be not this downstream data flow distributing user target information, do not carry out the processing of lower line discipline.
In preferred embodiment of the present invention, the above-mentioned data flow from PON interface input ONU equipment, is all detected as upstream.
Above the described process that realizes VLAN conversion can be as shown in Fig. 5-6.The flow process of in preferred embodiment of the present invention, upstream being processed has been shown in Fig. 5, wherein Rx llid is for receiving the step of LLID, in LLID Table, search original position (start) and the length (length) of VLAN Domain, and determine the matching range (having comprised VLAN Domain_0-VLAN Domain_X) as shown in VLAN Domain Table.Region value information in sequential search matching range, and definite corresponding ownership goal information (Subscriber ID) subsequently.In Fig. 5, the latter linked of subscriber ID is each attribute of its correspondence.
On the basis of technique scheme, core concept of the present invention is, according to default transformation rule, the upstream that is provided with different CVLAN labels to corresponding to (coming from an ONU transmission) under same LLID, distributes corresponding different Subscriber ID according to the difference of its CVLAN label; For downstream data flow, the target address information comprising according to each downstream data flow (MAC Address of target device) distributes a corresponding Subscriber ID to it, and the Subscriber ID that this Subscriber ID and this downstream data flow are assigned with when up matches.While stating transformation rule in realization, can accomplish that single Subscrbier ID is only corresponding to single up-downgoing data flow, for needing to be converted into for example SVLAN100 of same SVLAN(under same LLID) many data flow, because the MAC Address of its target device is different, correspondingly be assigned with different Subscriber ID, therefore can adopt different Subscriber ID to realize the different switching under same LLID with the data flow of different CVLAN labels, can solve completely and cannot the in the situation that of descending N:1, to the up-downgoing data flow of sending in same ONU equipment, carry out the problem of different switching.
Determine after ownership goal information, according to this ownership goal information, at processing rule, concentrate and find corresponding data rule (Subscriber ID keys), to determine, the attribute under this ownership goal information is done to which kind of restriction; In preferred embodiment of the present invention, as shown in Figure 5, Long rule, short rule and VLANrule etc. are the respective rule in data rule; L2key is the data rule of two layers of VLAN, and corresponding L3key is the data rule of three layers of VLAN, by that analogy.Search subsequently the corresponding operation rules of this data rule (Subscriber ID fib), and according to the data rule finding and operation rules, this upstream is done to corresponding operation.In preferred embodiment of the present invention, as shown in Figure 5, Subscriber ID fib latter linked is the specific rules in operation rules.
The flow process of in preferred embodiment of the present invention, downstream data flow being processed has been shown in Fig. 6.Wherein Rx nni represents to flow from NNI interface downlink data receiving.In preferred embodiment of the present invention, the entrained target address information of this downstream data flow is MAC1, and as shown in Figure 6, the destination address of this downstream data flow (DA) is MAC1, and ownership goal information (SUB) is subscriber1(sub1).In preferred embodiment of the present invention, by this target address information MAC1, obtain corresponding ownership goal information (Subscriber ID), above-mentioned search procedure is searched in list (L2Table) and is carried out at two layers of VLAN.Subsequently, be similar to shown in Fig. 5, obtain corresponding data rule and operation rules, and operate accordingly.
The foregoing is only preferred embodiment of the present invention; not thereby limit embodiments of the present invention and protection range; to those skilled in the art; should recognize that being equal to that all utilizations specification of the present invention and diagramatic content done replace and the resulting scheme of apparent variation, all should be included in protection scope of the present invention.

Claims (12)

1. a method that realizes VLAN conversion, is applicable in EPON system; Described EPON system comprises ONU equipment and OLT equipment; Described OLT equipment connects described ONU equipment by PON interface; Described OLT equipment connects external network by NNI interface; In described OLT equipment, include the Switching Module of realizing VLAN conversion;
Described data flow is admitted in described Switching Module by described PON interface after being added the VLAN label of user side;
Described Switching Module carries out VLAN conversion, the data flow of changing through VLAN by described NNI interface output subsequently after the described data flow receiving being added to the VLAN label of common port;
It is characterized in that: described ONU equipment and the corresponding data flow sequence number of every data flow between described OLT equipment;
The method of the described VLAN of realization conversion comprises:
Step 1, described OLT equipment reads described data flow;
Step 2, for described data flow sequence number corresponding to data flow every described, coupling one corresponding address domain information; And according to the default ownership goal information of corresponding every the described upstream of described address domain information matched and searched;
Step 3, according to ownership goal information described in each, to a default processing rule collection of data flow coupling every described;
Step 4, according to processing rule collection described in each, processes accordingly to data flow every described; Described OLT equipment is exported treated described data flow subsequently.
2. the method that realizes VLAN conversion as claimed in claim 1, is characterized in that, described data flow comprises upstream and downstream data flow; Described upstream is sent to described OLT equipment by described ONU equipment by described PON interface, after described OLT device processes, by described NNI interface, is sent to external network; Described downstream data flow is read by described NNI interface by described OLT equipment from described external network, and by described PON interface, is sent to corresponding described ONU equipment after described OLT device processes;
, the corresponding described downstream data flow of described upstream.
3. the method that realizes VLAN conversion as claimed in claim 2, is characterized in that, described data flow sequence number comprises transmission sequence number information and target address information; Every corresponding described transmission sequence number information of described upstream, every corresponding described target address information of described downstream data flow.
4. the method that realizes VLAN conversion as claimed in claim 3, is characterized in that, in described step 2, to upstream every described, distributes the method for a default ownership goal information specifically to comprise:
Step 21, according to described transmission sequence number information, searches the matching range that defaults in the described address domain information in described Switching Module;
Step 22, the VLAN sequence number comprising according to described upstream is searched the described address domain information corresponding with described transmission sequence number information in described matching range;
Step 23, according to described address domain information, obtains a corresponding ownership goal information as the described ownership goal information of described upstream.
5. the method that realizes VLAN conversion as claimed in claim 4, is characterized in that, in described step 22, the described address domain information of order coupling in described matching range, to find the described address domain information that adapts to described VLAN sequence number.
6. the method that realizes VLAN conversion as claimed in claim 4, is characterized in that, in described step 22, determines that the method for described matching range specifically comprises:
Step 221, searches address domain information described in first in described matching range;
Step 222, the quantity of searching the described address domain information that described matching range comprises;
Step 223, limits described matching range with the result of described step 221 and the result of described step 222.
7. the method that realizes VLAN conversion as claimed in claim 4, is characterized in that, a default address domain information is set; The default ownership goal information of described default address domain information correspondence one; When the described VLAN sequence number comprising according to described upstream, cannot mate and obtain corresponding described address and information, adopt described default address domain information, to obtain corresponding described default ownership goal information.
8. the method that realizes VLAN conversion as claimed in claim 3, it is characterized in that, in described step 2, to downstream data flow every described, distribute the method for a default ownership goal information specifically to comprise: according to described target address information, the described ownership goal information that coupling one is default.
9. the method that realizes VLAN conversion as claimed in claim 8, it is characterized in that, in described step 2, if to described downstream data flow, cannot mate a default described ownership goal information, distribute the corresponding described ownership goal information of corresponding described upstream to described downstream data flow.
10. the method that realizes VLAN conversion as claimed in claim 2, is characterized in that, in described step 2, all data flow that enter described OLT equipment from described PON interface are all detected as described upstream.
11. methods that realize VLAN conversion as claimed in claim 1, is characterized in that, in described step 3, described processing rule is concentrated and comprised a plurality of data rules and a plurality of operation rules; Described data rule is for limiting the attribute of described data flow; Described operation rules is for being suitable for the corresponding operating of described data rule to described data flow;
Described data rule is corresponding one by one with described operation rules.
12. methods that realize VLAN conversion as claimed in claim 7, is characterized in that, in described step 3, and a preset default processing rule collection in described Switching Module; Described default processing rule set pair is answered described default ownership goal information; Described default processing rule is concentrated and has been comprised a plurality of default data rules and a plurality of default operation rules; Described default data rule is for limiting the attribute of described data flow; Described default operation rules is for being suitable for the corresponding operating of described default data rule to described data flow.
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 true CN103701679A (en) 2014-04-02
CN103701679B 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)

Cited By (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
CN104202229A (en) * 2014-09-13 2014-12-10 潍坊学院 Method and system for processing passive optical network (PON) optical line terminal (OLT) equipment QINQ messages
CN105610673A (en) * 2016-01-19 2016-05-25 烽火通信科技股份有限公司 VLAN (Virtual Local Area Network) conversion device and method
CN105681151A (en) * 2016-02-26 2016-06-15 上海斐讯数据通信技术有限公司 Method and system for implementing QinQ, OTL device and electronic device
CN105847105A (en) * 2016-01-26 2016-08-10 鼎点视讯科技有限公司 Method for implementing discrimination on service flows of subnet
CN112449744A (en) * 2018-08-21 2021-03-05 华为技术有限公司 Management method and device of optical network unit
CN115334003A (en) * 2022-08-10 2022-11-11 上海欣诺通信技术股份有限公司 Data stream processing method and system based on convergence and diversion equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070223399A1 (en) * 2006-03-22 2007-09-27 Huawei Technologies Co., Ltd. Method of Configuring Native VLAN and Processing Ethernet Messages for a GPON System
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)

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070223399A1 (en) * 2006-03-22 2007-09-27 Huawei Technologies Co., Ltd. Method of Configuring Native VLAN and Processing Ethernet Messages for a GPON System
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)

Cited By (9)

* 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
CN104202229A (en) * 2014-09-13 2014-12-10 潍坊学院 Method and system for processing passive optical network (PON) optical line terminal (OLT) equipment QINQ messages
CN104202229B (en) * 2014-09-13 2017-10-27 潍坊学院 A kind of device for passive optical network OLT QINQ message processing methods and system
CN105610673A (en) * 2016-01-19 2016-05-25 烽火通信科技股份有限公司 VLAN (Virtual Local Area Network) conversion device and method
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
CN115334003A (en) * 2022-08-10 2022-11-11 上海欣诺通信技术股份有限公司 Data stream processing method and system based on convergence and diversion equipment

Also Published As

Publication number Publication date
CN103701679B (en) 2017-10-13

Similar Documents

Publication Publication Date Title
CN103701679A (en) VLAN (virtual local area network) conversion implementation method
CN101877728B (en) Method and device for converting and forwarding network addresses
EP2355374B1 (en) Method, system and optical line terminal for message transmission in an optical communication system
US8837481B2 (en) Inline packet replication in network devices
US9755749B2 (en) ONU, communication system and communication method for ONU
US8711856B2 (en) Method and device for processing broadcast packets/multicast control messages
CN102355610B (en) Method for implementing circuit identification in optical network unit (ONU) system based on EOC (Ethernet over Coaxial cable)
JP2007274693A (en) Passive optical network system for supporting virtual ethernet service, and method thereof
CN102714614B (en) Method for transmitting data in passive optical network, user-side equipment, and system
CN100407704C (en) Method of dynamically learning address on MAC layer
CN106921437B (en) A kind of method and apparatus for establishing virtual access node in optical access network
WO2009127128A1 (en) Method for avoiding downstream data flooding in ethernet passive optical network
CN108260032B (en) Method for realizing service virtual port in GPON-OLT system
CN104854819A (en) Method and device for vlan interface routing
EP2552058B1 (en) Method, system and device for implementing multicast preview
CN109257266B (en) Method for expanding PON local area network group based on VXLAN technology
CN101867523A (en) Method and device for configuring broadband services in PON (Passive Optical Network) system
CN102957589A (en) Method, network node and system for service data transmission
CN109121026B (en) Method and system for realizing VOLT (Voice over Internet protocol) based on logic port
CN107547346B (en) Message transmission method and device
CN101242370B (en) Method for realizing Ethernet and frame-relay Internet and protocol conversion device
EP2320598B1 (en) Multicast processing method and apparatus
CN104202229B (en) A kind of device for passive optical network OLT QINQ message processing methods and system
CN101360062A (en) Method and system implementing service of multi-point to multi-point Ethernet with root node
CN111385026A (en) OLT equipment virtualization method and OLT equipment

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.